/* ============================================================
   MOUNT OLYMPUS AI : style.css
   Palette: obsidian #0A0A0F, gold #A8843A > #E7CD88 > #C9A24B
   Fonts: Cormorant Garamond (display), Space Grotesk (body),
          JetBrains Mono (labels)
   ============================================================ */

:root{
  --obsidian:#0A0A0F;
  --obsidian-2:#0F0F16;
  --slate:#14141C;
  --slate-2:#1B1B26;
  --panel:#17171F;
  --gold-1:#A8843A;
  --gold-2:#C9A24B;
  --gold-3:#E7CD88;
  --gold-line:rgba(201,162,75,.28);
  --gold-faint:rgba(201,162,75,.12);
  --bone:#F4EFE6;
  --bone-dim:#C6C0B8;
  --muted:#8B8494;
  /* was #605A68, which measured 2.87:1 on the footer and 2.97:1 in the nav,
     below the 4.5:1 WCAG AA floor. #8A8391 clears 4.5:1 on both. */
  --muted-2:#8A8391;
  --hair:rgba(244,239,230,.08);
  --grad-gold:linear-gradient(118deg,#A8843A 0%,#E7CD88 46%,#C9A24B 100%);
  --wrap:1200px;
  --nav-h:76px;
  /* bottom stop of the hero veil, so the photo blends into whatever the
     page background is in the current theme */
  --hero-fade:10,10,15;
  --nav-scrolled:rgba(10,10,15,.72);
  --card-grad:linear-gradient(160deg,var(--slate) 0%,var(--obsidian-2) 100%);
  --aurora-strength:.5;
  /* band of shade that separates the Ascent section from its neighbours */
  --section-wash:rgba(20,20,28,.5);
  --sig-human:rgba(244,239,230,.78);
  --sig-machine:rgba(201,162,75,.85);
  --sig-tick:rgba(244,239,230,.16);
  --fab-bg:rgba(20,20,28,.82);
}

/* ================= LIGHT THEME =================
   Not an inversion. The decorative gold stays warm, but any gold used AS TEXT
   is darkened: #C9A24B on a light surface measures ~2.2:1 and fails WCAG.
   The hero stays dark in both themes; the photograph is the brand. */
:root[data-theme="light"]{
  /* Warm parchment, not white. A near-white page glares against this brand's
     obsidian identity; these values keep the light theme calm and readable. */
  --obsidian:#EBE4D6;
  --obsidian-2:#F4EFE4;
  --slate:#F6F2E9;
  --slate-2:#E2DBCA;
  --panel:#F6F2E9;
  /* #8A6A28 measured 3.98:1 on the parchment background once it was warmed
     down from near-white. #745821 restores 5.25:1 without going muddy. */
  --gold-1:#6E5320;
  --gold-2:#745821;
  --gold-3:#5D451A;
  --gold-line:rgba(138,106,40,.34);
  --gold-faint:rgba(138,106,40,.12);
  --bone:#15151C;
  --bone-dim:#3F3D46;
  --muted:#5C5866;
  --muted-2:#5F5B68;
  --hair:rgba(20,20,28,.14);
  /* Bronze, not bright gold. Ivory text on the old #A6822F mid-stop measured
     2.84:1 (chips, gold buttons, nav CTA). #6A4F1E..#745821 keeps every stop
     at 5.3:1 or better, and deepens the gold headline words on parchment too. */
  --grad-gold:linear-gradient(118deg,#6A4F1E 0%,#745821 46%,#6A4F1E 100%);
  --hero-fade:235,228,214;
  --nav-scrolled:rgba(235,228,214,.88);
  --card-grad:linear-gradient(160deg,#F8F4EC 0%,#F2ECE0 100%);
  --aurora-strength:.2;
  /* a LIGHT band, not the dark one: at 50% black this section turned to mud
     and swallowed its own text in light mode */
  --section-wash:rgba(248,244,236,.7);
  --sig-human:rgba(52,50,58,.62);
  --sig-machine:rgba(116,88,33,.9);
  --sig-tick:rgba(20,20,28,.16);
  --fab-bg:rgba(246,242,233,.94);
}
:root[data-theme="light"] .grain{opacity:.16}
/* The crest is gold-on-black artwork; give it a light plate to sit on */
:root[data-theme="light"] .brand img,
:root[data-theme="light"] .foot-brand img{
  background:#14141C;border-radius:9px;padding:3px;
}
/* Card photos are dark; hold them back so dark text stays readable */
:root[data-theme="light"] .cap-visual .cap-art img{opacity:.13}
:root[data-theme="light"] .cap-visual:hover .cap-art img{opacity:.2}
:root[data-theme="light"] .cap-visual .cap-art::after{
  background:linear-gradient(180deg,rgba(246,242,233,.5) 0%,rgba(246,242,233,.9) 58%,rgba(246,242,233,.97) 100%);
}
:root[data-theme="light"] .textured::before{opacity:.045}
:root[data-theme="light"] .textured.glow::after{opacity:.14}
:root[data-theme="light"] .summit.glow::after{opacity:.16}
:root[data-theme="light"] .summit::before{opacity:.07}
:root[data-theme="light"] .curtain{background:#EBE4D6}
:root[data-theme="light"] ::-webkit-scrollbar-track{background:#E2DBCA}
:root[data-theme="light"] ::-webkit-scrollbar-thumb{border-color:#E2DBCA}

/* The hero is a dark photograph in BOTH themes. It therefore needs its own
   token scope, otherwise its text inherits the light theme's near-black --bone
   and becomes dark-on-dark. */
:root[data-theme="light"] .hero-content,
:root[data-theme="light"] .nav:not(.scrolled){
  --bone:#F4EFE6;
  --bone-dim:#D6D1C8;
  --muted:#BDB7B0;
  --muted-2:#A9A39C;
  --gold-2:#C9A24B;
  --gold-3:#E7CD88;
  --obsidian:#0A0A0F;
  --grad-gold:linear-gradient(118deg,#A8843A 0%,#E7CD88 46%,#C9A24B 100%);
  --hair:rgba(244,239,230,.14);
}
/* No fade to light at all. Any wash tall enough to look like a gradient reached
   up behind the stats row and erased its labels. A dark hero with a crisp edge
   against the light page is both legible and a stronger composition. */
:root[data-theme="light"] .hero-veil{
  background:
    radial-gradient(80% 64% at 50% 46%,
      rgba(10,10,15,.7) 0%,
      rgba(10,10,15,.55) 44%,
      rgba(10,10,15,.3) 74%,
      rgba(10,10,15,.1) 100%),
    linear-gradient(180deg,
      rgba(10,10,15,.82) 0%,
      rgba(10,10,15,.32) 20%,
      transparent 40%);
}
:root[data-theme="light"] .brand img,
:root[data-theme="light"] .nav:not(.scrolled) .brand img{background:none;padding:0}
:root[data-theme="light"] .foot-brand img{background:#14141C;border-radius:9px;padding:3px}
/* The philosophy photo is dark and fades into its panel. In light mode it must
   fade to white, otherwise a hard dark edge lands mid-section. */
:root[data-theme="light"] .coevo-art::after{
  background:linear-gradient(90deg,rgba(246,242,233,0) 52%,rgba(246,242,233,.94) 100%),
             linear-gradient(180deg,rgba(246,242,233,.1),transparent 40%);
}
:root[data-theme="light"] html,
:root[data-theme="light"]{scrollbar-color:#8A6A28 #E2DBCA}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  background:var(--obsidian);
  color:var(--bone);
  font-family:'Space Grotesk',system-ui,sans-serif;
  font-weight:400;
  font-size:16.5px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection{background:var(--gold-2);color:var(--obsidian)}
::-webkit-scrollbar{width:11px}
::-webkit-scrollbar-track{background:var(--obsidian)}
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#A8843A,#C9A24B);
  border-radius:8px;border:3px solid var(--obsidian);
}
html{scrollbar-color:#A8843A #0A0A0F;scrollbar-width:thin}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
:focus-visible{outline:2px solid var(--gold-2);outline-offset:4px;border-radius:6px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px}
.gold-text{
  background:var(--grad-gold);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.serif{font-family:'Cormorant Garamond',serif}
.mono{font-family:'JetBrains Mono',monospace}

/* ================= AMBIENT BACKDROP ================= */
.aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.aurora::before,.aurora::after{
  content:"";position:absolute;border-radius:50%;filter:blur(120px);opacity:var(--aurora-strength);
}
.aurora::before{
  width:60vw;height:60vw;top:-20vw;left:50%;transform:translateX(-50%);
  background:radial-gradient(circle,rgba(201,162,75,.22),transparent 66%);
  animation:drift1 22s ease-in-out infinite alternate;
}
.aurora::after{
  width:44vw;height:44vw;bottom:-16vw;left:-8vw;
  background:radial-gradient(circle,rgba(168,132,58,.16),transparent 66%);
  animation:drift2 28s ease-in-out infinite alternate;
}
@keyframes drift1{to{transform:translateX(-46%) translateY(6vh)}}
@keyframes drift2{to{transform:translate(8vw,-4vh)}}
.grain{
  position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.4;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.88 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* NB: .nav is deliberately excluded here. Using `header.nav` in this
   selector out-specifies `.nav` below and silently forced the bar to
   position:relative/z-index:2, so it scrolled away instead of sticking. */
main,footer{position:relative;z-index:2}

/* ================= NAV ================= */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:60;height:var(--nav-h);
  display:flex;align-items:center;transition:background .4s,border-color .4s,backdrop-filter .4s;
  border-bottom:1px solid transparent;
}
.nav.scrolled{background:var(--nav-scrolled);backdrop-filter:blur(14px) saturate(1.2);border-color:var(--hair)}
.nav-inner{width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:13px}
.brand img{width:42px;height:42px;filter:drop-shadow(0 2px 8px rgba(201,162,75,.35))}
.brand-name{display:flex;flex-direction:column;line-height:1.05}
/* explicit color so it resolves against the nav's scoped token: while the bar
   is transparent over the dark hero it must stay light, even in light theme */
.brand-name b{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.12rem;letter-spacing:.06em;color:var(--bone)}
.brand-name span{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.34em;color:var(--gold-2);text-transform:uppercase;margin-top:2px}
.nav-links{display:flex;align-items:center;gap:6px;list-style:none}
.nav-links a{font-size:.82rem;letter-spacing:.06em;color:var(--muted);padding:10px 14px;transition:color .25s;position:relative}
.nav-links a:hover{color:var(--bone)}
.nav-links a.active{color:var(--gold-3)}
.nav-links a.active::after{
  content:"";position:absolute;left:14px;right:14px;bottom:4px;height:1px;
  background:var(--grad-gold);
}
.nav-links a.nav-cta.active::after{display:none}
.nav-cta{
  font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:.82rem;letter-spacing:.04em;
  color:var(--obsidian)!important;background:var(--grad-gold);
  padding:11px 20px!important;border-radius:100px;
  box-shadow:0 6px 22px -8px rgba(201,162,75,.6);transition:transform .2s,box-shadow .2s;
}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 10px 28px -8px rgba(201,162,75,.75)}
/* Language switcher */
.lang-switch{display:flex;align-items:center;gap:2px;margin:0 6px;padding-left:14px;
  border-left:1px solid var(--hair)}
.lang-switch a{
  font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.12em;
  color:var(--muted-2);padding:7px 7px;border-radius:6px;
  transition:color .2s,background .2s;
}
.lang-switch a:hover{color:var(--bone)}
.lang-switch a.active{color:var(--gold-3);background:rgba(201,162,75,.1)}

/* Theme toggle */
.theme-btn{
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;margin-left:4px;
  background:none;border:1px solid var(--hair);border-radius:9px;
  color:var(--muted);cursor:pointer;transition:color .25s,border-color .25s,background .25s;
}
.theme-btn:hover{color:var(--gold-3);border-color:var(--gold-line)}
.theme-btn svg{width:17px;height:17px}
.theme-btn .ico-sun{display:none}
:root[data-theme="light"] .theme-btn .ico-sun{display:block}
:root[data-theme="light"] .theme-btn .ico-moon{display:none}

.nav-toggle{display:none;width:46px;height:46px;background:none;border:1px solid var(--hair);border-radius:10px;color:var(--bone);cursor:pointer;align-items:center;justify-content:center}
.nav-toggle svg{width:22px;height:22px}

/* ================= HERO (cinematic image) ================= */
.hero{
  min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;position:relative;overflow:hidden;
  padding:calc(var(--nav-h) + 48px) 0 72px;
}
.hero-bg-wrap{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-bg-mover{position:absolute;inset:-12% 0 0 0;will-change:transform}
.hero-bg{
  position:absolute;inset:0;
  background-image:url("../images/hero.jpg");
  background-image:image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
  background-size:cover;background-position:center 30%;
  filter:brightness(.55) contrast(1.05);
  animation:heroZoom 14s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes heroZoom{from{transform:scale(1)}to{transform:scale(1.08)}}
.hero-dust{position:absolute;inset:0;z-index:1;pointer-events:none}
/* Layered shade: sits on top of the image, behind the text */
.hero-veil{
  position:absolute;inset:0;z-index:1;
  background:
    /* bottom-to-top, blends the hero into the next section */
    linear-gradient(0deg,
      rgba(var(--hero-fade),.94) 0%,
      rgba(var(--hero-fade),.66) 26%,
      rgba(var(--hero-fade),.24) 46%,
      transparent 60%),
    /* pool of shade centred on the headline (this hero is centre-aligned).
       Kept moderate because the image itself is already at brightness(.55). */
    radial-gradient(80% 64% at 50% 46%,
      rgba(10,10,15,.64) 0%,
      rgba(10,10,15,.5) 44%,
      rgba(10,10,15,.26) 74%,
      rgba(10,10,15,.06) 100%),
    /* top, keeps the nav readable over bright sky */
    linear-gradient(180deg,
      rgba(10,10,15,.8) 0%,
      rgba(10,10,15,.3) 20%,
      transparent 38%);
}
.hero-content{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;max-width:900px;padding:0 28px}
.hero-crest{position:relative;margin-bottom:34px}
.hero-crest img{
  width:96px;height:96px;border-radius:50%;
  filter:drop-shadow(0 12px 34px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(201,162,75,.35));
  animation:float 7s ease-in-out infinite;
}
.hero-crest .halo{
  position:absolute;inset:-38%;border-radius:50%;
  background:radial-gradient(circle,rgba(201,162,75,.34),transparent 62%);
  filter:blur(18px);animation:pulse 6s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:14px;
  font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;
  color:var(--gold-3);margin-bottom:26px;text-shadow:0 2px 12px rgba(0,0,0,.6);
}
.hero-eyebrow::before,.hero-eyebrow::after{content:"";width:36px;height:1px;background:var(--grad-gold)}
.hero h1{
  font-family:'Cormorant Garamond',serif;font-weight:500;
  font-size:clamp(3rem,6.8vw,5.9rem);line-height:1.02;letter-spacing:-.01em;
  color:var(--bone);
  text-shadow:0 2px 20px rgba(0,0,0,.6);
}
.hero h1 em{font-style:italic;font-weight:500;background-size:220% auto}
.hero-sub{
  margin-top:26px;max-width:56ch;font-size:1.13rem;font-weight:300;color:var(--bone-dim);
  text-shadow:0 2px 20px rgba(0,0,0,.6);
}
.hero-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:40px;justify-content:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:11px;
  font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:.94rem;letter-spacing:.02em;
  padding:16px 30px;border-radius:100px;border:1px solid transparent;cursor:pointer;
  transition:transform .2s,box-shadow .2s,border-color .25s,background .25s,color .25s;
}
.btn svg{width:17px;height:17px;transition:transform .28s cubic-bezier(.2,.7,.2,1)}
.btn:hover svg{transform:translateX(4px)}
.btn-gold{background:var(--grad-gold);color:var(--obsidian);font-weight:600;box-shadow:0 8px 28px -10px rgba(201,162,75,.65)}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 14px 34px -10px rgba(201,162,75,.8)}
.btn-ghost{border-color:rgba(244,239,230,.28);color:var(--bone);background:rgba(10,10,15,.32);backdrop-filter:blur(6px)}
.btn-ghost:hover{border-color:var(--gold-2);color:var(--gold-3)}
/* Grid, not flex-wrap: translated labels are longer than the English ones,
   and flex-wrap would drop the third stat onto its own row. */
.hero-meta{
  position:relative;z-index:2;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:760px;margin:64px auto 0;
  border-top:1px solid rgba(244,239,230,.14);padding-top:28px;
}
.hmeta{padding:0 22px;border-left:1px solid rgba(244,239,230,.14);text-align:left}
.hmeta:first-child{border-left:none}
.hmeta b{overflow-wrap:anywhere}
/* explicit color so it picks up .hero-content's scoped token in light mode
   instead of inheriting body's near-black */
.hmeta b{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.85rem;display:block;line-height:1;color:var(--bone);text-shadow:0 2px 16px rgba(0,0,0,.6)}
.hmeta span{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.14em;color:var(--bone-dim);text-transform:uppercase;margin-top:6px;display:block}

/* ================= ASCENT RAIL (scroll-drawn route) ================= */
.ascent-rail{
  position:fixed;left:26px;top:calc(var(--nav-h) + 30px);bottom:104px;width:2px;
  z-index:40;pointer-events:none;
}
.rail-track{position:absolute;inset:0;background:rgba(244,239,230,.07);border-radius:2px}
.rail-fill{
  position:absolute;inset:0;border-radius:2px;
  background:linear-gradient(180deg,#A8843A 0%,#E7CD88 55%,#C9A24B 100%);
  box-shadow:0 0 12px rgba(201,162,75,.35);
  transform:scaleY(0);transform-origin:top;will-change:transform;
}
.rail-node{
  position:absolute;left:1px;width:9px;height:9px;border-radius:50%;
  transform:translate(-50%,-50%);
  background:var(--obsidian);border:1px solid var(--gold-line);
  pointer-events:auto;cursor:pointer;
  transition:background .45s,box-shadow .45s,border-color .45s;
}
.rail-node.lit{
  background:linear-gradient(118deg,#A8843A,#E7CD88 60%,#C9A24B);
  border-color:transparent;
  box-shadow:0 0 10px rgba(201,162,75,.85),0 0 26px rgba(201,162,75,.35);
}
.rail-node::after{
  content:attr(data-label);
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.22em;
  text-transform:uppercase;color:var(--gold-3);white-space:nowrap;
  opacity:0;transition:opacity .25s;pointer-events:none;
  text-shadow:0 2px 8px rgba(0,0,0,.8);
}
.rail-node:hover::after{opacity:1}
@media (max-width:1100px){.ascent-rail{display:none}}
@media (prefers-reduced-motion: reduce){.ascent-rail{display:none}}

/* ================= SECTION SHELL ================= */
section{padding:120px 0;position:relative}
.sec-head{max-width:720px;margin-bottom:64px}
.sec-head.center{margin-left:auto;margin-right:auto;text-align:center}
.eyebrow{
  font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.28em;text-transform:uppercase;
  color:var(--gold-2);margin-bottom:18px;display:flex;align-items:center;gap:12px;
}
.sec-head.center .eyebrow{justify-content:center}
.eyebrow::before{content:"";width:30px;height:1px;background:var(--grad-gold)}
.sec-head.center .eyebrow::before{display:none}
h2{
  font-family:'Cormorant Garamond',serif;font-weight:500;
  font-size:clamp(2.3rem,4.4vw,3.5rem);line-height:1.08;letter-spacing:-.01em;
}
h2 em{font-style:italic}
.lead{margin-top:20px;font-size:1.08rem;font-weight:300;color:var(--bone-dim);max-width:60ch}
.sec-head.center .lead{margin-left:auto;margin-right:auto}

/* Texture overlay for select sections */
.textured::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url("../images/texture-1200.jpg");background-image:image-set(url("../images/texture-1200.webp") type("image/webp"), url("../images/texture-1200.jpg") type("image/jpeg"));
  background-size:1100px auto;background-repeat:repeat;
  opacity:.16;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);
  mask-image:linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);
}
/* Brighter copy of the texture, revealed in a soft circle around the cursor */
.textured::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url("../images/texture-1200.jpg");background-image:image-set(url("../images/texture-1200.webp") type("image/webp"), url("../images/texture-1200.jpg") type("image/jpeg"));
  background-size:1100px auto;background-repeat:repeat;
  opacity:0;transition:opacity .5s;
  -webkit-mask-image:radial-gradient(260px circle at var(--tx,50%) var(--ty,50%),#000 0%,transparent 72%);
  mask-image:radial-gradient(260px circle at var(--tx,50%) var(--ty,50%),#000 0%,transparent 72%);
}
.textured.glow::after{opacity:.4}
.textured > *{position:relative}

/* Skip link for keyboard users */
.skip-link{
  position:fixed;top:14px;left:14px;z-index:300;
  background:var(--grad-gold);color:var(--obsidian);
  font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:.85rem;
  padding:10px 18px;border-radius:100px;
  transform:translateY(-200%);transition:transform .25s;
}
.skip-link:focus{transform:none}

/* Coevolution signature (two lines become one ascent).
   Labels are real HTML so they stay legible at every width;
   the SVG carries only the drawn route. */
.coevo-sig{margin:88px 0 0}
.sig-stage{position:relative}
.sig-lines{display:block;width:100%;height:auto;overflow:visible}

/* Route colours live here, NOT as SVG stroke attributes. The human route used
   to be hardcoded bone-white, which made it invisible on the light theme's
   parchment background and no CSS audit could ever have found it. */
.sig-route{fill:none;stroke-linecap:round;stroke-linejoin:round}
.sig-route-human{stroke:var(--sig-human);stroke-width:3}
.sig-route-machine{stroke:var(--sig-machine);stroke-width:3}
.sig-route-merged{stroke:url(#sigGold);stroke-width:5;filter:url(#sigGlow)}
.sig-ticks path{stroke:var(--sig-tick);stroke-width:2;fill:none}
.sig-dot-human{fill:var(--sig-human)}
.sig-dot-machine{fill:var(--sig-machine)}
.sig-star-rays{stroke:var(--gold-3);stroke-width:2.4;fill:none;stroke-linecap:round}
.sig-star-halo{fill:none;stroke:var(--gold-2);stroke-width:1.5;opacity:.5}

/* A short dash chased along each route reads as light travelling the path.
   Cheaper and more robust than a motion-path plugin: no extra library, and it
   degrades to a static line if the animation never runs. */
.sig-comet{
  fill:none;stroke:var(--gold-3);stroke-width:5;stroke-linecap:round;
  filter:url(#sigGlow);opacity:0;
}
@media (prefers-reduced-motion: no-preference){
  .sig-comet{
    opacity:1;
    stroke-dasharray:26 3000;
    animation:sigTravel 4.6s cubic-bezier(.55,0,.45,1) infinite;
  }
  .comet-a{animation-delay:0s}
  .comet-b{animation-delay:.35s}
  .comet-c{animation-delay:1.6s;animation-duration:3.4s;stroke-width:6}
  .sig-star-halo{animation:sigHalo 3.2s ease-in-out infinite}
}
@keyframes sigTravel{
  0%   {stroke-dashoffset:1100;opacity:0}
  12%  {opacity:1}
  70%  {opacity:1}
  100% {stroke-dashoffset:0;opacity:0}
}
@keyframes sigHalo{
  0%,100%{transform:scale(1);opacity:.45}
  50%    {transform:scale(1.35);opacity:0}
}
.sig-star-halo{transform-origin:1130px 48px}
.sig-label{
  position:absolute;white-space:nowrap;line-height:1;
}
.sig-l-human{
  left:5%;top:28.24%;transform:translateY(-165%);
  font-family:'Cormorant Garamond',serif;font-style:italic;
  font-size:clamp(1.3rem,2vw,1.95rem);color:var(--bone);
}
.sig-l-machine{
  left:5%;top:76.47%;transform:translateY(90%);
  font-family:'JetBrains Mono',monospace;text-transform:uppercase;
  font-size:clamp(.72rem,.95vw,.9rem);letter-spacing:.26em;color:var(--bone-dim);
}
.sig-l-coevo{
  /* sits up and left of the summit star so it clears the star's rays */
  left:90%;top:14.12%;transform:translate(-100%,-230%);
  font-family:'JetBrains Mono',monospace;text-transform:uppercase;
  font-size:clamp(.82rem,1.15vw,1.05rem);letter-spacing:.3em;font-weight:500;
  background:var(--grad-gold);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
/* Narrow screens: the drawing gets short, so the labels drop into a
   tidy legend beneath it instead of overlapping the route. */
@media (max-width:760px){
  .coevo-sig{margin-top:56px}
  .sig-stage{display:flex;flex-direction:column;gap:14px}
  /* clear the desktop absolute offsets, or they push the labels off screen */
  .sig-label{
    position:relative;left:auto;top:auto;right:auto;
    transform:none;padding-left:18px;
  }
  .sig-label::before{
    content:"";position:absolute;left:0;top:.45em;
    width:7px;height:7px;border-radius:50%;
  }
  .sig-l-human::before{background:rgba(244,239,230,.8)}
  .sig-l-machine::before{background:var(--gold-2)}
  .sig-l-coevo::before{background:var(--grad-gold);box-shadow:0 0 8px rgba(201,162,75,.7)}
  .sig-stage{margin-top:4px}
  .sig-l-human{font-size:1.15rem}
  .sig-l-machine,.sig-l-coevo{font-size:.7rem}
}

/* ================= MANIFESTO ================= */
.manifesto{border-top:1px solid var(--hair)}
.manifesto .big{
  font-family:'Cormorant Garamond',serif;font-weight:400;font-style:italic;
  font-size:clamp(1.8rem,3.6vw,2.9rem);line-height:1.35;max-width:24ch;letter-spacing:-.01em;
}
.manifesto .big b{font-style:normal;font-weight:600}
.manifesto-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.manifesto-side{display:grid;gap:22px}
.m-point{display:flex;gap:16px;align-items:flex-start}
.m-point .dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--grad-gold);margin-top:11px;box-shadow:0 0 12px rgba(201,162,75,.6)}
.m-point p{font-size:1rem;font-weight:300;color:var(--bone-dim)}
.m-point b{color:var(--bone);font-weight:600}

/* ================= CAPABILITIES ================= */
.cap-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.cap{
  position:relative;border:1px solid var(--hair);border-radius:20px;
  background:var(--card-grad);
  padding:40px 38px;overflow:hidden;transition:transform .3s,border-color .3s;
}
.cap::before{
  content:"";position:absolute;inset:0;border-radius:20px;padding:1px;
  background:linear-gradient(140deg,rgba(201,162,75,.4),transparent 50%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .3s;
  pointer-events:none;z-index:3;
}
.cap:hover{transform:translateY(-6px);border-color:transparent}
.cap:hover::before{opacity:1}
.cap-icon{
  width:56px;height:56px;border-radius:14px;margin:18px 0 22px;
  display:flex;align-items:center;justify-content:center;color:var(--gold-3);
  background:radial-gradient(circle at 30% 30%,rgba(201,162,75,.18),rgba(201,162,75,.05));
  border:1px solid var(--gold-line);position:relative;z-index:2;
}
.cap-icon svg{width:27px;height:27px}
.cap h3{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.55rem;letter-spacing:.01em;margin-bottom:10px;position:relative;z-index:2}
.cap p{font-size:.98rem;font-weight:300;color:var(--bone-dim);position:relative;z-index:2}
.cap .tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;position:relative;z-index:2}
.cap .tags span{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.06em;color:var(--muted);border:1px solid var(--hair);border-radius:100px;padding:5px 11px}

/* Gold light sweep that follows the cursor (sheen span injected by JS) */
.cap-sheen{
  position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:20px;
  opacity:0;transition:opacity .35s;
  background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),rgba(231,205,136,.14),transparent 62%);
}
.cap:hover .cap-sheen{opacity:1}

/* Feature cards with image accents (voice + automation) */
.cap-visual .cap-art{
  position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:20px;
}
.cap-visual .cap-art img{
  width:100%;height:100%;object-fit:cover;object-position:center;
  opacity:.34;transition:opacity .45s,transform .45s;will-change:transform;
}
.cap-visual:hover .cap-art img{opacity:.5;transform:scale(1.04)}
.cap-visual .cap-art::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(15,15,22,.32) 0%,rgba(15,15,22,.86) 58%,rgba(15,15,22,.97) 100%);
}
.cap-visual{min-height:360px;display:flex;flex-direction:column;justify-content:flex-end}
.cap-visual .cap-icon{margin-top:0}

/* ================= ASCENT / PROCESS ================= */
.ascent{border-top:1px solid var(--hair);background:linear-gradient(180deg,transparent,var(--section-wash),transparent)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:20px}
.step{position:relative;padding:34px 26px 34px 0}
.step:not(:last-child)::after{content:"";position:absolute;top:52px;right:20px;left:52px;height:1px;background:linear-gradient(90deg,var(--gold-line),transparent)}
.step-node{
  width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-family:'JetBrains Mono',monospace;font-size:.9rem;color:var(--gold-3);
  border:1px solid var(--gold-line);background:var(--obsidian);margin-bottom:22px;position:relative;z-index:1;
}
.step h3{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.3rem;margin-bottom:9px}
.step p{font-size:.92rem;font-weight:300;color:var(--muted)}

/* ================= PHILOSOPHY (coevolution + image) ================= */
.coevo{border-top:1px solid var(--hair)}
.coevo-grid{
  display:grid;grid-template-columns:.94fr 1.06fr;gap:0;align-items:stretch;
  border:1px solid var(--hair);border-radius:24px;overflow:hidden;
  background:var(--card-grad);
}
.coevo-art{position:relative;min-height:520px}
.coevo-art img{position:absolute;left:0;right:0;top:-10%;width:100%;height:120%;object-fit:cover;object-position:center;will-change:transform}
.coevo-art::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(10,10,15,0) 55%,rgba(15,15,22,.92) 100%),
             linear-gradient(180deg,rgba(10,10,15,.16),transparent 40%);
}
.coevo-art .art-caption{
  position:absolute;left:30px;bottom:26px;z-index:2;
  font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.26em;text-transform:uppercase;
  /* sits on the dark photograph in both themes, so it is pinned light */
  color:#D6D1C8;text-shadow:0 2px 10px rgba(0,0,0,.85);
}
.coevo-cells{display:flex;flex-direction:column}
.coevo-cell{padding:52px 46px;flex:1;transition:background .5s}
.coevo-cell:first-child:hover{background:linear-gradient(160deg,rgba(244,239,230,.045),transparent 70%)}
.coevo-cell:last-child:hover{background:linear-gradient(160deg,rgba(201,162,75,.07),transparent 70%)}
.coevo-cell:first-child{border-bottom:1px solid var(--hair)}
.coevo-cell h3{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.7rem;margin-bottom:16px}
.coevo-cell h3 .mono{font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.2em;color:var(--gold-2);display:block;margin-bottom:12px;text-transform:uppercase}
.coevo-cell p{font-size:1rem;font-weight:300;color:var(--bone-dim)}

/* ================= PROOF ================= */
.proof-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.proof{
  border:1px solid var(--hair);border-radius:20px;padding:36px 32px;
  background:var(--card-grad);transition:border-color .3s,transform .3s;
}
.proof:hover{border-color:var(--gold-line);transform:translateY(-4px)}
.proof .k{font-family:'Cormorant Garamond',serif;font-weight:700;font-size:2.6rem;line-height:1}
.proof .l{font-size:.95rem;color:var(--bone-dim);font-weight:300;margin-top:10px}
.proof .d{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:16px}

/* ================= SUMMIT BANNER ================= */
.summit{
  position:relative;border-radius:28px;overflow:hidden;
  background:radial-gradient(80% 120% at 50% 120%,rgba(201,162,75,.22),transparent 60%),linear-gradient(180deg,var(--obsidian-2),var(--slate));
  border:1px solid var(--gold-line);padding:80px 48px;text-align:center;
}
.summit::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url("../images/texture-1200.jpg");background-image:image-set(url("../images/texture-1200.webp") type("image/webp"), url("../images/texture-1200.jpg") type("image/jpeg"));
  background-size:900px auto;opacity:.18;
  -webkit-mask-image:radial-gradient(90% 90% at 50% 50%,#000 30%,transparent 100%);
  mask-image:radial-gradient(90% 90% at 50% 50%,#000 30%,transparent 100%);
}
.summit::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url("../images/texture-1200.jpg");background-image:image-set(url("../images/texture-1200.webp") type("image/webp"), url("../images/texture-1200.jpg") type("image/jpeg"));
  background-size:900px auto;
  opacity:0;transition:opacity .5s;
  -webkit-mask-image:radial-gradient(260px circle at var(--tx,50%) var(--ty,50%),#000 0%,transparent 72%);
  mask-image:radial-gradient(260px circle at var(--tx,50%) var(--ty,50%),#000 0%,transparent 72%);
}
.summit.glow::after{opacity:.42}
.summit .peaks{position:absolute;left:0;right:0;bottom:0;width:100%;height:180px;opacity:.5}
.summit h2{position:relative;font-size:clamp(2.2rem,4.5vw,3.6rem)}
.summit .lead{position:relative;margin:18px auto 34px}
.summit .hero-actions{position:relative;justify-content:center;margin-top:0}

/* ================= CTA FINAL ================= */
.final{text-align:center;border-top:1px solid var(--hair)}
.final .kicker{font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.28em;text-transform:uppercase;color:var(--gold-2);margin-bottom:22px}
.final h2{font-size:clamp(2.6rem,5.4vw,4.6rem);max-width:16ch;margin:0 auto}
.final .lead{margin:22px auto 40px}
.final .hero-actions{justify-content:center;margin-top:0}
.contact-alt{
  margin-top:22px;font-size:.92rem;font-weight:300;color:var(--muted);
}
.contact-alt a{color:var(--bone-dim);border-bottom:1px solid var(--gold-line);padding-bottom:1px;transition:color .2s,border-color .2s}
.contact-alt a:hover{color:var(--gold-3);border-color:var(--gold-2)}
.contact-alt span{margin:0 10px;color:var(--muted-2)}
}

/* ================= FOOTER ================= */
footer{border-top:1px solid var(--hair);padding:64px 0 44px;background:var(--obsidian-2)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px;align-items:start}
.foot-brand p{margin-top:20px;font-size:.94rem;font-weight:300;color:var(--muted);max-width:38ch}
.foot-col h3{font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}
.foot-col ul{list-style:none;display:grid;gap:11px}
.foot-col a{font-size:.96rem;font-weight:300;color:var(--bone-dim);transition:color .2s}
.foot-col a:hover{color:var(--gold-3)}
.foot-base{margin-top:52px;padding-top:26px;border-top:1px solid var(--hair);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.08em;color:var(--muted-2)}
.back-top{color:var(--muted);transition:color .25s}
.back-top:hover{color:var(--gold-3)}

/* Spotlight: hovering one card pushes its siblings back, so the highlighted
   one reads as lifted out of the page. Applied by motion.js (GSAP owns these
   elements' transforms, so a CSS-only :has() version would be overridden). */
.spotlit{position:relative;z-index:4}

/* ================= INTENT FORM (contact) =================
   The message is shaped before WhatsApp opens: a few chips and one line.
   Chips are real checkboxes, so keyboard and screen readers get them free. */
.intent{max-width:720px;margin:44px auto 0;text-align:left}
.intent-label{
  display:block;font-family:'JetBrains Mono',monospace;font-size:.7rem;
  letter-spacing:.24em;text-transform:uppercase;color:var(--gold-2);margin-bottom:14px;
}
.intent-chips{border:0;padding:0;margin:0 0 28px;display:flex;flex-wrap:wrap;gap:10px}
.intent-chips legend{padding:0;float:left;width:100%}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}
.chip span{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;
  padding:0 18px;border-radius:100px;
  border:1px solid var(--hair);background:var(--card-grad);
  font-family:'Space Grotesk',sans-serif;font-size:.92rem;color:var(--bone-dim);
  transition:border-color .25s,color .25s,background .25s,transform .2s;
}
.chip span::before{
  content:"";width:7px;height:7px;border-radius:50%;
  border:1px solid var(--gold-line);transition:background .25s,border-color .25s;
}
.chip:hover span{border-color:var(--gold-line);color:var(--bone)}
.chip input:checked + span{
  border-color:transparent;color:var(--obsidian);background:var(--grad-gold);
  box-shadow:0 8px 24px -10px rgba(201,162,75,.7);
}
.chip input:checked + span::before{background:var(--obsidian);border-color:transparent}
.chip input:focus-visible + span{outline:2px solid var(--gold-2);outline-offset:3px}
.intent-field{display:block;margin-bottom:30px}
.intent-field input{
  width:100%;padding:16px 18px;border-radius:14px;
  border:1px solid var(--hair);background:var(--card-grad);color:var(--bone);
  font-family:'Space Grotesk',sans-serif;font-size:1rem;
  transition:border-color .25s,box-shadow .25s;
}
.intent-field input::placeholder{color:var(--muted-2)}
.intent-field input:focus{outline:none;border-color:var(--gold-2);box-shadow:0 0 0 3px var(--gold-faint)}
.intent .hero-actions{justify-content:flex-start;margin-top:0}
.intent .contact-alt{margin-top:26px}
.intent .btn{border:0}
@media (max-width:640px){
  .intent .hero-actions{justify-content:stretch}
  .intent .btn{width:100%}
  .chip span{min-height:46px}
}

/* ================= THIS PAGE IS THE PORTFOLIO ================= */
.built{padding:72px 0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.built .wrap{max-width:900px}
.built-line{
  font-family:'Cormorant Garamond',serif;font-weight:400;font-style:italic;
  font-size:clamp(1.35rem,2.4vw,1.95rem);line-height:1.4;letter-spacing:-.005em;
  color:var(--bone);
}
.built-note{
  margin-top:18px;font-family:'JetBrains Mono',monospace;font-size:.7rem;
  letter-spacing:.2em;text-transform:uppercase;color:var(--muted);
}

/* ================= QUESTIONS ================= */
.faq-list{max-width:820px}
.faq-item{border-top:1px solid var(--hair)}
.faq-item:last-child{border-bottom:1px solid var(--hair)}
.faq-item summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:26px 0;font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.45rem;
  color:var(--bone);transition:color .25s;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"";flex:none;width:12px;height:12px;
  border-right:1.5px solid var(--gold-2);border-bottom:1.5px solid var(--gold-2);
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .3s;
}
.faq-item[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.faq-item summary:hover{color:var(--gold-3)}
.faq-item summary:focus-visible{outline:2px solid var(--gold-2);outline-offset:4px;border-radius:6px}
.faq-item p{padding:0 0 28px;max-width:64ch;font-size:1rem;font-weight:300;color:var(--bone-dim)}
@media (prefers-reduced-motion: reduce){.faq-item summary::after{transition:none}}

/* ================= SELECTED ASCENTS (live demos) =================
   Real screenshots of real builds, each linking to the live site. The sector
   eyebrow encodes the one thing a prospect scans for: "did they build for a
   business like mine". No numbering: these are examples, not a sequence. */
.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.work-card{
  display:flex;flex-direction:column;border-radius:20px;overflow:hidden;
  border:1px solid var(--hair);background:var(--card-grad);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),border-color .3s,box-shadow .3s;
}
.work-card:hover,.work-card:focus-visible{
  transform:translateY(-6px);border-color:var(--gold-line);
  box-shadow:0 24px 50px -28px rgba(0,0,0,.8);
}
.work-card:focus-visible{outline:2px solid var(--gold-2);outline-offset:4px}
/* browser-window frame: three dots and a hairline, so the shot reads as a site */
.work-frame{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#0B0B10}
.work-frame::before{
  content:"";position:absolute;left:0;right:0;top:0;height:26px;z-index:2;
  background:linear-gradient(180deg,rgba(20,20,28,.96),rgba(20,20,28,.85));
  border-bottom:1px solid rgba(244,239,230,.08);
}
.work-frame::after{
  content:"";position:absolute;left:12px;top:9px;z-index:3;width:8px;height:8px;border-radius:50%;
  background:var(--gold-2);
  box-shadow:14px 0 0 rgba(244,239,230,.28),28px 0 0 rgba(244,239,230,.18);
}
.work-frame img{
  width:100%;height:100%;object-fit:cover;object-position:top;display:block;
  transform:scale(1.02);transition:transform .8s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-frame img{transform:scale(1.06) translateY(-1.5%)}
.work-meta{display:flex;flex-direction:column;gap:6px;padding:22px 24px 24px}
.work-sector{
  font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.22em;
  text-transform:uppercase;color:var(--gold-2);
}
.work-name{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.5rem;color:var(--bone);line-height:1.1}
.work-line{font-size:.95rem;font-weight:300;color:var(--bone-dim)}
.work-cta{
  margin-top:10px;font-family:'Space Grotesk',sans-serif;font-size:.84rem;font-weight:500;
  color:var(--gold-3);display:inline-flex;align-items:center;gap:6px;
}
.work-cta::after{content:"\2197";transition:transform .25s}
.work-card:hover .work-cta::after{transform:translate(2px,-2px)}
.work-note{
  margin-top:28px;font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);
}
@media (max-width:1000px){.work-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.work-grid{grid-template-columns:1fr;gap:18px}.work-meta{padding:18px 20px 20px}}
@media (prefers-reduced-motion: reduce){
  .work-card,.work-frame img,.work-cta::after{transition:none}
  .work-card:hover .work-frame img{transform:scale(1.02)}
}

/* ================= ATHENA (site assistant) =================
   Author display values beat the UA's [hidden] rule, so hide explicitly. */
.athena[hidden],.athena-mic[hidden],.athena-voice[hidden]{display:none}
/*
   Bottom-left, opposite the WhatsApp column. Built by athena.js; all colours
   come from the theme tokens, so it follows light and dark for free. */
.athena-launch{
  position:fixed;left:24px;bottom:24px;z-index:80;
  display:flex;align-items:center;gap:10px;height:54px;padding:0 18px 0 8px;
  border-radius:100px;border:1px solid var(--gold-line);cursor:pointer;
  background:var(--fab-bg);backdrop-filter:blur(10px);color:var(--bone);
  font-family:'Space Grotesk',sans-serif;font-size:.9rem;font-weight:500;
  box-shadow:0 10px 30px -14px rgba(0,0,0,.8);
  transition:border-color .25s,transform .25s,box-shadow .25s;
}
.athena-launch:hover,.athena-launch:focus-visible{border-color:var(--gold-2);transform:translateY(-2px)}
.athena-launch:focus-visible{outline:2px solid var(--gold-2);outline-offset:3px}
.athena-orb{
  position:relative;width:38px;height:38px;border-radius:50%;flex:none;
  background:var(--grad-gold);display:flex;align-items:center;justify-content:center;gap:3px;
}
.athena-orb i{display:block;width:3px;height:12px;border-radius:2px;background:var(--obsidian);transform-origin:center}
@media (prefers-reduced-motion: no-preference){
  .athena-orb i{animation:athenaWave 1.6s ease-in-out infinite}
  .athena-orb i:nth-child(2){animation-delay:.2s;height:18px}
  .athena-orb i:nth-child(3){animation-delay:.4s}
}
@keyframes athenaWave{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1)}}

.athena{
  position:fixed;left:24px;bottom:92px;z-index:85;
  width:min(400px,calc(100vw - 48px));max-height:min(72vh,640px);
  display:flex;flex-direction:column;
  border-radius:22px;border:1px solid var(--gold-line);
  background:var(--card-grad);backdrop-filter:blur(14px);
  box-shadow:0 30px 70px -30px rgba(0,0,0,.85);
  overflow:hidden;
}
.athena-head{display:flex;align-items:flex-start;gap:10px;padding:18px 18px 12px;border-bottom:1px solid var(--hair)}
.athena-titles{flex:1;min-width:0}
.athena-title{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:1.45rem;line-height:1;color:var(--bone);margin:0}
.athena-sub{margin:6px 0 0;font-size:.8rem;font-weight:300;color:var(--muted)}
.athena-voice{
  flex:none;background:none;border:1px solid var(--hair);border-radius:100px;cursor:pointer;
  font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);padding:7px 10px;transition:color .2s,border-color .2s;
}
.athena-voice[aria-pressed="true"]{color:var(--gold-3);border-color:var(--gold-line)}
.athena-close{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--hair);background:none;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center}
.athena-close:hover{color:var(--bone);border-color:var(--gold-line)}
.athena-close svg{width:15px;height:15px}
.athena-log{flex:1;overflow-y:auto;padding:16px 18px 6px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}
.athena-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:.93rem;line-height:1.55}
.athena-bot{align-self:flex-start;background:var(--gold-faint);color:var(--bone);border-bottom-left-radius:6px}
.athena-user{align-self:flex-end;background:var(--grad-gold);color:var(--obsidian);border-bottom-right-radius:6px;font-weight:500}
.athena-bot a{color:var(--gold-3);border-bottom:1px solid var(--gold-line)}
.athena-chips{flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:8px 18px 4px}
.athena-chip{
  border:1px solid var(--hair);background:none;color:var(--bone-dim);cursor:pointer;
  border-radius:100px;padding:8px 13px;font-family:'Space Grotesk',sans-serif;font-size:.82rem;
  transition:border-color .2s,color .2s;
}
.athena-chip:hover{border-color:var(--gold-line);color:var(--bone)}
.athena-form{display:flex;align-items:center;gap:8px;padding:12px 18px 6px}
.athena-form input{
  flex:1;min-width:0;height:44px;padding:0 14px;border-radius:12px;
  border:1px solid var(--hair);background:var(--obsidian);color:var(--bone);
  font-family:'Space Grotesk',sans-serif;font-size:.95rem;
}
.athena-form input:focus{outline:none;border-color:var(--gold-2);box-shadow:0 0 0 3px var(--gold-faint)}
.athena-mic,.athena-send{
  flex:none;width:44px;height:44px;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--hair);background:none;color:var(--bone-dim);transition:color .2s,border-color .2s,background .2s;
}
.athena-mic svg,.athena-send svg{width:20px;height:20px}
.athena-send{background:var(--grad-gold);color:var(--obsidian);border-color:transparent}
.athena-mic:hover{color:var(--gold-3);border-color:var(--gold-line)}
.athena-mic.is-on{color:var(--obsidian);background:var(--grad-gold);border-color:transparent}
@media (prefers-reduced-motion: no-preference){
  .athena-mic.is-on{animation:athenaPulse 1.4s ease-out infinite}
}
@keyframes athenaPulse{0%{box-shadow:0 0 0 0 rgba(201,162,75,.45)}100%{box-shadow:0 0 0 12px rgba(201,162,75,0)}}
.athena-status{min-height:1.2em;margin:0;padding:0 18px;font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-2)}
.athena-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:6px 18px 14px}
.athena-privacy{margin:0;flex:1 1 180px;font-size:.7rem;color:var(--muted-2)}
@media (max-width:640px){
  .athena-launch{left:16px;bottom:16px;height:50px;padding:0 8px}
  .athena-launch-label{display:none}
  .athena{left:0;right:0;bottom:0;width:100%;max-height:82vh;border-radius:22px 22px 0 0;border-bottom:0}
  .athena-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:6px}
  .athena-chip{flex:none}
  body.athena-open .float-stack,body.athena-open .athena-launch{visibility:hidden}
}
@media (prefers-reduced-motion: reduce){.athena-launch{transition:none}}

/* Floating action column.
   WhatsApp is the anchor and must never shift, so back-to-top sits above it and
   toggles with visibility, which keeps its box in the layout. */
.float-stack{
  position:fixed;right:24px;bottom:24px;z-index:80;
  display:flex;flex-direction:column;align-items:flex-end;gap:12px;
}

/* Back to top */
.to-top{
  width:50px;height:50px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--fab-bg);backdrop-filter:blur(10px);
  border:1px solid var(--gold-line);color:var(--gold-3);
  box-shadow:0 8px 26px -10px rgba(0,0,0,.55);
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .35s,transform .35s,visibility .35s,background .25s,border-color .25s;
}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--grad-gold);color:var(--obsidian);border-color:transparent}
.to-top svg{width:19px;height:19px}

/* WhatsApp. Brand gold rather than WhatsApp green: the glyph carries the
   recognition on its own, and a green disc would break the palette. */
.wa-fab{
  position:relative;
  display:flex;align-items:center;gap:0;
  height:56px;padding:0 16px;border-radius:100px;flex:none;
  background:var(--grad-gold);color:var(--obsidian);
  box-shadow:0 10px 30px -10px rgba(201,162,75,.7);
  transition:gap .35s cubic-bezier(.2,.7,.2,1),transform .25s,box-shadow .25s;
}
.wa-fab svg{width:26px;height:26px;flex:none}
.wa-label{
  font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:.92rem;
  white-space:nowrap;overflow:hidden;
  max-width:0;opacity:0;
  transition:max-width .35s cubic-bezier(.2,.7,.2,1),opacity .25s;
}
.wa-fab:hover,.wa-fab:focus-visible{
  transform:translateY(-2px);gap:11px;
  box-shadow:0 16px 38px -10px rgba(201,162,75,.85);
}
.wa-fab:hover .wa-label,.wa-fab:focus-visible .wa-label{max-width:130px;opacity:1}

/* One slow halo so the button is noticed, without nagging */
@media (prefers-reduced-motion: no-preference){
  .wa-fab::after{
    content:"";position:absolute;inset:0;border-radius:100px;pointer-events:none;
    animation:waPulse 3.8s ease-out infinite;
  }
  .wa-fab:hover::after{animation:none}
}
@keyframes waPulse{
  0%  {box-shadow:0 0 0 0 rgba(201,162,75,.5)}
  70% {box-shadow:0 0 0 18px rgba(201,162,75,0)}
  100%{box-shadow:0 0 0 0 rgba(201,162,75,0)}
}
/* The horizontal bar stops fitting at ~966px in English, and ~1038px once the
   longer PT/FR labels and the language switcher are in the row. Switch to the
   hamburger at 1040px so tablets and small laptops never see a wrapped nav. */
@media (max-width:1040px){
  .nav-links{
    position:fixed;inset:var(--nav-h) 0 auto 0;z-index:70;flex-direction:column;align-items:stretch;gap:0;
    background:var(--obsidian);backdrop-filter:blur(14px);border-bottom:1px solid var(--hair);
    padding:14px 28px 24px;display:none;
  }
  .nav-links.open{display:flex}
  /* display:block so each divider spans the full row instead of hugging the text */
  .nav-links a{display:block;padding:15px 4px;border-bottom:1px solid var(--hair)}
  .nav-links li:last-child a{border-bottom:none;margin-top:18px;text-align:center}
  /* Switcher becomes a horizontal row inside the open mobile menu */
  .lang-switch{margin:0;padding:14px 0 4px;border-left:none;border-top:1px solid var(--hair);
    justify-content:flex-start;gap:6px}
  /* min 44x44 touch target (WCAG 2.5.5) */
  .lang-switch a{display:flex;align-items:center;justify-content:center;border-bottom:none;
    padding:0 12px;min-width:44px;min-height:44px}
  .nav-toggle{display:flex}
}

@media (max-width:640px){
  .float-stack{right:16px;bottom:16px;gap:10px}
  .to-top{width:46px;height:46px}
  .wa-fab{height:52px;padding:0 14px}
  .wa-fab svg{width:24px;height:24px}
  /* touch devices have no hover, so the label would never open: keep a disc */
  .wa-label{display:none}
}
@media (prefers-reduced-motion: reduce){
  .to-top{transition:opacity .2s,visibility .2s;transform:none}
  .wa-fab{transition:none}
}

/* Entrance curtain (injected by motion.js, removed after load) */
.curtain{
  position:fixed;inset:0;z-index:200;background:var(--obsidian);
  display:flex;align-items:center;justify-content:center;
}
.curtain img{width:56px;height:56px;border-radius:50%;
  filter:drop-shadow(0 0 18px rgba(201,162,75,.45));
  animation:pulse 1.8s ease-in-out infinite;
}

/* ================= REVEAL ================= */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  /* Stop the motion, KEEP the imagery. A previous edit collapsed these two
     rules into one display:none, which stripped the hero photo and the crest
     from anyone browsing with reduced motion enabled. */
  .aurora::before,.aurora::after,.hero-crest img,.hero-crest .halo,
  .hero-bg{animation:none}
  .hero-dust{display:none}
}

/* ================= RESPONSIVE ================= */
@media (max-width:1000px){
  .manifesto-grid,.cap-grid{grid-template-columns:1fr}
  .coevo-grid{grid-template-columns:1fr}
  .coevo-art{min-height:340px}
  .coevo-art::after{
    background:linear-gradient(180deg,rgba(10,10,15,0) 55%,rgba(15,15,22,.94) 100%);
  }
  .steps{grid-template-columns:1fr 1fr;gap:24px}
  .step:not(:last-child)::after{display:none}
  .proof-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr 1fr;gap:36px}
  section{padding:88px 0}
  .cap-visual{min-height:320px}
}
@media (max-width:640px){
  .steps{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .hero-meta{grid-template-columns:1fr;gap:22px;max-width:320px}
  .hmeta{padding:0;text-align:center;border-left:none}
  .summit{padding:56px 26px}
  .hero-crest img{width:78px;height:78px}
  .hero-meta{margin-top:48px}
  /* Hero text breaks first on phones: darken further so it reads effortlessly */
  .hero-bg{filter:brightness(.46) contrast(1.06)}
  .hero-veil{
    background:
      linear-gradient(0deg,
        rgba(var(--hero-fade),.96) 0%,
        rgba(var(--hero-fade),.78) 30%,
        rgba(var(--hero-fade),.4) 52%,
        transparent 68%),
      radial-gradient(130% 58% at 50% 46%,
        rgba(10,10,15,.9) 0%,
        rgba(10,10,15,.76) 45%,
        rgba(10,10,15,.52) 78%,
        rgba(10,10,15,.3) 100%),
      linear-gradient(180deg,
        rgba(10,10,15,.86) 0%,
        rgba(10,10,15,.42) 22%,
        transparent 42%);
  }
  .coevo-cell{padding:40px 28px}
  }

/* Smaller hero source on phones (the 2400px master is wasted at 375px). */
@media (max-width:640px){
  .hero-bg{background-image:url("../images/hero-1200.jpg");background-image:image-set(url("../images/hero-1200.webp") type("image/webp"), url("../images/hero-1200.jpg") type("image/jpeg"))}
}
.lang-switch > span{display:contents}

/* Touch targets: 44px minimum on touch-sized screens. Hit areas grow via a
   pseudo-element so the visual rhythm of the footer and contact line stays. */
@media (max-width:768px){
  .foot-col a,.contact-alt a,.foot-base a{position:relative}
  .foot-col a::before,.contact-alt a::before,.foot-base a::before{content:"";position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}
  .lang-switch a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .brand{min-height:44px;align-items:center}
  .skip-link{min-height:44px}
}
@media (max-width:1040px){ .theme-btn{width:44px;height:44px} }

/* Text floor for the two mono labels not covered above. */
.tags span,.art-caption{font-size:.7rem}
