/*
Theme Name: Paviam
Theme URI: https://paviam.com
Author: Paviam SA
Author URI: https://paviam.com
Description: Combined theme for Paviam SA — full pre-built Home, Technology, About, and Contact pages with all extensive copy included, plus Customizer-based photo upload fields for real photographs and Elementor Shortcode-widget compatibility for future edits. Built in Ecublens, Vaud, Switzerland.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: paviam
*/

:root{
  --ink:#17140F;
  --porcelain:#F2ECE0;
  --cobalt:#234875;
  --vanadate:#D99A2B;
  --emission:#6EE2B0;
  --slate:#6B6459;
  --line: rgba(23,20,15,0.14);
  --line-on-ink: rgba(242,236,224,0.18);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--porcelain);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:500;
  letter-spacing:-0.01em;
  color:var(--ink);
}
a{color:inherit; text-decoration:none;}
.formula{font-family:'IBM Plex Mono', monospace; font-weight:500;}
.wrap{max-width:1180px; margin:0 auto; padding:0 40px;}
@media (max-width:720px){ .wrap{padding:0 22px;} }

/* ---------- NAV ---------- */
nav{
  position:sticky; top:0; z-index:50;
  background:rgba(242,236,224,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.wordmark{
  font-family:'Fraunces', serif; font-size:22px; font-weight:600;
  letter-spacing:-0.01em;
}
.wordmark span{color:var(--cobalt);}
.navlinks{display:flex; gap:36px; font-size:14.5px; font-weight:500;}
.navlinks ul{list-style:none; display:flex; gap:36px;}
.navlinks a{position:relative; padding-bottom:4px;}
.navlinks a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--cobalt); transition:width .25s ease;
}
.navlinks a:hover::after{width:100%;}
@media (max-width:720px){ .navlinks{display:none;} }

/* ---------- HERO ---------- */
.hero{padding:96px 0 84px; position:relative;}
.hero-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center;
}
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr; gap:48px;} }
.eyebrow-loc{font-size:13.5px; color:var(--slate); margin-bottom:22px;}
.hero h1{font-size:clamp(34px, 4.6vw, 54px); line-height:1.12; max-width:13ch;}
.hero-sub{margin-top:26px; max-width:46ch; font-size:17.5px; color:#3a362d;}
.hero-cta{margin-top:36px; display:flex; gap:18px; flex-wrap:wrap;}
.btn{display:inline-block; padding:13px 26px; font-size:14.5px; font-weight:600; border-radius:2px; transition:all .2s ease; border:1px solid transparent; cursor:pointer;}
.btn-primary{background:var(--ink); color:var(--porcelain);}
.btn-primary:hover{background:var(--cobalt);}
.btn-ghost{border:1px solid var(--line); color:var(--ink); background:transparent;}
.btn-ghost:hover{border-color:var(--ink);}

/* Hero interactive particle */
.particle-stage{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:var(--ink); border-radius:2px; padding:40px 20px 30px;
  position:relative; overflow:hidden;
}
.particle-stage svg{width:100%; max-width:280px; cursor:pointer;}
.ring{fill:none; stroke:var(--line-on-ink); stroke-width:1;}
.core{
  fill:#0c0a08; stroke:rgba(110,226,176,0.0); stroke-width:2;
  transition:fill 1.1s ease, filter 1.1s ease, stroke 1.1s ease;
}
.particle-stage.excited .core{
  fill:var(--emission);
  stroke:rgba(110,226,176,0.55);
  filter:drop-shadow(0 0 22px rgba(110,226,176,0.85));
}
.beam{stroke:#8a5a00; stroke-width:1.4; stroke-dasharray:4 5; opacity:0.25; transition:opacity 1.1s ease, stroke .8s ease;}
.particle-stage.excited .beam{opacity:0.9; stroke:#ffb020;}
.stage-caption{margin-top:18px; font-size:12.5px; color:rgba(242,236,224,0.55); text-align:center; max-width:230px;}
.stage-caption b{color:rgba(242,236,224,0.92); font-weight:600;}
@media (prefers-reduced-motion: reduce){ .core, .beam { transition:none; } }

/* ---------- SECTION HEADS ---------- */
section{padding:88px 0;}
.section-head{max-width:56ch; margin-bottom:56px;}
.section-head h2{font-size:clamp(26px,3vw,34px); line-height:1.2;}
.section-head p{margin-top:16px; color:var(--slate); font-size:16.5px;}
.divider{height:1px; background:var(--line); border:none;}

/* ---------- PILLARS ---------- */
.pillars{display:grid; grid-template-columns:1fr 1px 1fr; gap:0;}
@media (max-width:860px){ .pillars{grid-template-columns:1fr;} .pillars .vline{display:none;} }
.vline{background:var(--line);}
.pillar{padding:0 48px;}
.pillar:first-child{padding-left:0;}
.pillar:last-child{padding-right:0;}
@media (max-width:860px){ .pillar{padding:40px 0 !important; border-bottom:1px solid var(--line);} .pillar:last-child{border-bottom:none;} }
.pillar-mark{width:34px; height:34px; margin-bottom:22px;}
.pillar h3{font-size:23px; margin-bottom:14px;}
.pillar p{color:#3a362d; font-size:15.8px;}
.pillar-tags{margin-top:22px; display:flex; gap:10px; flex-wrap:wrap;}
.pillar-tags span{font-family:'IBM Plex Mono', monospace; font-size:12px; border:1px solid var(--line); padding:5px 10px; color:var(--slate);}

/* ---------- MATERIALS STRIP ---------- */
.materials{background:var(--ink); color:var(--porcelain);}
.materials .section-head h2{color:var(--porcelain);}
.materials .section-head p{color:rgba(242,236,224,0.6);}
.mat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-on-ink); border:1px solid var(--line-on-ink);}
@media (max-width:760px){ .mat-grid{grid-template-columns:1fr 1fr;} }
.mat-cell{background:var(--ink); padding:30px 24px; min-height:180px; display:flex; flex-direction:column; justify-content:space-between;}
.swatch{width:30px; height:30px; border-radius:50%;}
.mat-formula{font-size:19px; margin-top:18px;}
.mat-name{font-size:13px; color:rgba(242,236,224,0.55); margin-top:6px;}
.mat-note{font-size:12.5px; color:rgba(242,236,224,0.45); margin-top:14px; line-height:1.5;}

/* ---------- DIFFERENTIATION ---------- */
.diff{display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; align-items:start;}
@media (max-width:860px){ .diff{grid-template-columns:1fr; gap:32px;} }
.diff h2{font-size:clamp(26px,3vw,32px); max-width:14ch;}
.diff-body p{color:#3a362d; font-size:16.5px; margin-bottom:18px;}
.diff-body p:last-child{margin-bottom:0;}

/* ---------- ABOUT ---------- */
.about{display:grid; grid-template-columns:0.7fr 1.3fr; gap:56px; align-items:center;}
@media (max-width:860px){ .about{grid-template-columns:1fr;} }
.portrait{aspect-ratio:4/5; background:linear-gradient(160deg,#dcd4c1,#c9bfa6); border-radius:2px; display:flex; align-items:center; justify-content:center; color:var(--slate); font-size:13px; text-align:center; padding:20px; overflow:hidden;}
.portrait img{width:100%; height:100%; object-fit:cover;}
.about h2{font-size:28px; margin-bottom:18px;}
.about p{color:#3a362d; font-size:16px; margin-bottom:14px;}
.credentials{margin-top:20px; font-size:14px; color:var(--slate); line-height:1.9;}

/* ---------- CONTACT / FOOTER ---------- */
footer{background:var(--ink); color:var(--porcelain); padding:80px 0 40px;}
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px;}
@media (max-width:760px){ .contact-grid{grid-template-columns:1fr; gap:40px;} }
footer h2{color:var(--porcelain); font-size:clamp(26px,3vw,32px); max-width:12ch;}
footer .lead{color:rgba(242,236,224,0.6); margin-top:16px; max-width:42ch; font-size:15.5px;}
.contact-list{margin-top:28px; font-size:15px;}
.contact-list div{padding:12px 0; border-bottom:1px solid var(--line-on-ink); display:flex; justify-content:space-between; gap:20px;}
.contact-list div span:first-child{color:rgba(242,236,224,0.5);}
.field{margin-bottom:16px;}
.field label{display:block; font-size:12.5px; color:rgba(242,236,224,0.55); margin-bottom:6px;}
.field input, .field textarea{width:100%; background:transparent; border:none; border-bottom:1px solid var(--line-on-ink); color:var(--porcelain); font-family:'Inter'; font-size:15px; padding:8px 0; outline:none;}
.field input:focus, .field textarea:focus{border-color:var(--emission);}
.form-note{margin-top:14px; font-size:13px; color:var(--emission);}
.foot-bottom{margin-top:64px; padding-top:24px; border-top:1px solid var(--line-on-ink); display:flex; justify-content:space-between; font-size:12.5px; color:rgba(242,236,224,0.45); flex-wrap:wrap; gap:10px;}

/* ---------- IN-PAGE NAV (Technology page anchor row) ---------- */
.subnav{display:flex; flex-wrap:wrap; gap:8px 22px; font-size:13.5px; padding:20px 0 0;}
.subnav a{color:var(--slate); position:relative; padding-bottom:3px;}
.subnav a:hover{color:var(--ink);}

/* ---------- THREE-WAY DIVIDED ROW (principles, feature levels) ---------- */
.trio{display:grid; grid-template-columns:1fr 1px 1fr 1px 1fr; gap:0;}
@media (max-width:860px){ .trio{grid-template-columns:1fr;} .trio .vline{display:none;} }
.trio .cell{padding:0 32px;}
.trio .cell:first-child{padding-left:0;}
.trio .cell:last-child{padding-right:0;}
@media (max-width:860px){ .trio .cell{padding:32px 0 !important; border-bottom:1px solid var(--line);} .trio .cell:last-child{border-bottom:none;} }
.trio .cell h3{font-size:19px; margin-bottom:10px;}
.trio .cell p{font-size:15px; color:#3a362d;}

/* ---------- NUMBERED STEPS (Print-then-fire, What to expect) ---------- */
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:28px; margin-top:12px;}
@media (max-width:860px){ .steps{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .steps{grid-template-columns:1fr;} }
.steps.steps-3{grid-template-columns:repeat(3,1fr);}
@media (max-width:760px){ .steps.steps-3{grid-template-columns:1fr;} }
.step-num{font-family:'Fraunces', serif; font-size:26px; color:var(--cobalt); margin-bottom:10px;}
.step h4{font-size:16px; margin-bottom:8px;}
.step p{font-size:14.5px; color:var(--slate);}

/* ---------- CALLOUT BOX ---------- */
.callout{background:#EAE3D2; border-left:3px solid var(--cobalt); padding:26px 30px; margin-top:16px;}
.callout h3{font-size:19px; margin-bottom:10px;}
.callout p{font-size:15px; color:#3a362d;}
.callout .note{margin-top:12px; font-size:12.5px; color:var(--slate); font-style:italic;}

/* ---------- FAQ (native details/summary, no JS dependency) ---------- */
.faq-item{border-bottom:1px solid var(--line); padding:18px 0;}
.faq-item summary{cursor:pointer; font-family:'Fraunces', serif; font-size:17px; list-style:none; display:flex; justify-content:space-between; align-items:center; color:var(--ink);}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+'; font-size:20px; color:var(--slate); margin-left:12px; transition:transform .2s ease;}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{margin-top:14px; font-size:15px; color:#3a362d; max-width:65ch;}
.faq-item .placeholder-flag{display:inline-block; margin-top:8px; font-size:12px; color:var(--vanadate); border:1px solid var(--vanadate); padding:2px 8px;}

/* ---------- LONG-FORM ESSAY BLOCK (About founding story) ---------- */
.essay{max-width:700px; margin:0 auto;}
.essay p{font-size:16.5px; color:#3a362d; margin-bottom:18px;}
.essay p:last-child{margin-bottom:0;}

/* ---------- DOMAIN LIST (About research background) ---------- */
.domain-list{margin-top:24px;}
.domain-item{padding:16px 0; border-bottom:1px solid var(--line);}
.domain-item:last-child{border-bottom:none;}
.domain-item b{color:var(--ink);}
.domain-item span{color:#3a362d; font-size:15.5px;}

/* ---------- CAREER TIMELINE ---------- */
.timeline{margin-top:40px; position:relative; padding-left:36px;}
.timeline::before{content:''; position:absolute; left:7px; top:6px; bottom:6px; width:1px; background:var(--line);}
.timeline-item{position:relative; padding-bottom:44px;}
.timeline-item:last-child{padding-bottom:0;}
.timeline-dot{position:absolute; left:-36px; top:4px; width:15px; height:15px; border-radius:50%; background:var(--porcelain); border:2px solid var(--cobalt);}
.timeline-item.is-current .timeline-dot{border-color:var(--emission); background:var(--emission);}
.timeline-year{font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--slate); margin-bottom:6px;}
.timeline-item h4{font-size:19px; margin-bottom:8px;}
.timeline-item p{font-size:15.5px; color:#3a362d; max-width:60ch;}

/* ---------- TAG ROW (contact page routing hint) ---------- */
.tag-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px;}
.tag-row span{font-family:'IBM Plex Mono', monospace; font-size:12px; border:1px solid var(--line); padding:6px 12px; color:var(--slate);}
