/* ============================================================
   Ascentia Forge — shared stylesheet
   Charcoal + Ivory + Antique Brass · Fraunces + DM Sans
   ============================================================ */

:root{
  --bg:#16171A;
  --bg2:#1F2025;
  --bg3:#2A2B31;
  --ink:#F2EDE3;
  --ink-dim:rgba(242,237,227,.64);
  --ink-faint:rgba(242,237,227,.55);
  --ink-ghost:rgba(242,237,227,.34);
  --accent:#C2A05A;            /* antique brass / old gold */
  --accent-2:#DCC68C;          /* champagne highlight */
  --accent-soft:rgba(194,160,90,.14);
  --line:rgba(242,237,227,.12);
  --line-soft:rgba(242,237,227,.07);
  --font-display:"Fraunces","Spectral",Georgia,"Times New Roman",serif;
  --font-body:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-label:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --maxw:1280px;
  --header-h:74px;
  --ease:cubic-bezier(.16,1,.3,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  background:var(--bg); color:var(--ink);
  font-family:var(--font-body); line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
::selection{ background:var(--accent); color:#1C1A14; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* ---------- film grain (very subtle, editorial) ---------- */
.grain{
  position:fixed; inset:0; z-index:2; pointer-events:none; opacity:.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- layout ---------- */
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 clamp(20px,5vw,64px); }
.section{ position:relative; z-index:3; padding:clamp(64px,11vh,140px) 0; }
.section--tight{ padding:clamp(48px,7vh,90px) 0; }
.section + .section{ border-top:1px solid var(--line-soft); }

/* ---------- type ---------- */
.kicker{
  font-family:var(--font-label); font-weight:600; font-size:12px;
  letter-spacing:.2em; text-transform:uppercase; color:var(--accent);
  display:inline-flex; align-items:center; gap:10px; margin-bottom:20px;
}
.kicker::before{ content:""; width:26px; height:1px; background:var(--accent); opacity:.6; }
.display{
  font-family:var(--font-display); font-weight:500; line-height:1.02;
  letter-spacing:-.015em; font-size:clamp(34px,5.4vw,72px);
}
.display .i, .accent-i{ color:var(--accent); font-style:italic; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:500; letter-spacing:-.01em; line-height:1.08; }
.lede{ font-size:clamp(16px,1.6vw,21px); color:var(--ink-dim); max-width:60ch; }
.muted{ color:var(--ink-dim); }
.mono{ font-family:var(--font-mono); }

.section-head{ max-width:760px; margin-bottom:clamp(36px,6vh,64px); }
.section-head .lede{ margin-top:18px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-label); font-weight:600; font-size:14px; letter-spacing:.01em;
  padding:13px 22px; border-radius:7px; cursor:pointer; border:1px solid transparent;
  transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.btn .arr{ transition:transform .3s var(--ease); }
.btn:hover .arr{ transform:translateX(3px); }
.btn-primary{ background:var(--accent); color:#1C1A14; }
.btn-primary:hover{ background:var(--accent-2); }
.btn-ghost{ border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-lg{ padding:16px 28px; font-size:15px; }
/* micro-interactions: tactile press + a clear brass focus ring */
.btn:active{ transform:translateY(1px); }
.btn-primary:active{ background:var(--accent); }
.btn:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; box-shadow:0 0 0 5px var(--accent-soft); }
/* hero headline: the brass phrase wipes in like ink on load (motion-safe only) */
@media (prefers-reduced-motion: no-preference){
  .hero h1 .i{ animation:inkSettle .85s var(--ease) .25s both; }
}
@keyframes inkSettle{ from{ clip-path:inset(0 105% 0 0); } to{ clip-path:inset(0 0 0 0); } }
/* signature: the live, hand-drawn instrument plot */
.instrument .plot{ position:relative; margin-top:clamp(28px,5vh,52px); background:var(--bg2);
  border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:0 30px 70px -40px rgba(0,0,0,.7); }
.instrument #instrument-plot{ display:block; width:100%; height:clamp(240px,38vh,420px); }
.instrument .plot-cap{ position:absolute; left:18px; bottom:13px; pointer-events:none; }
.instrument .plot-k{ font-family:var(--font-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:60; height:var(--header-h);
  display:flex; align-items:center;
  transition:background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(22,23,26,.72); backdrop-filter:blur(14px) saturate(1.2);
  border-bottom:1px solid var(--line-soft);
}
.header-inner{
  width:100%; max-width:var(--maxw); margin:0 auto; padding:0 clamp(20px,5vw,64px);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:inline-flex; align-items:center; gap:10px; }
.brand-logo{ height:30px; width:auto; max-width:200px; display:none; }
.brand-word{
  font-family:var(--font-display); font-weight:500; font-size:22px; letter-spacing:-.01em; color:var(--ink);
}
.brand-word .brand-word-2{ font-style:italic; color:var(--accent); }
.brand:hover .brand-word{ opacity:.82; }
.brand-mark{ display:inline-flex; align-items:center; line-height:0; }
.brand-mark svg{ display:block; transition:transform .4s var(--ease); }
.brand:hover .brand-mark svg{ transform:translateY(-1px); }

.site-nav{ display:flex; align-items:center; gap:clamp(18px,2.4vw,38px); }
.site-nav a{
  font-family:var(--font-label); font-size:15px; font-weight:500; color:var(--ink-dim);
  position:relative; padding:6px 0; transition:color .3s var(--ease);
}
.site-nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--accent);
  transition:width .3s var(--ease);
}
.site-nav a:hover{ color:var(--ink); }
.site-nav a.active{ color:var(--ink); }
.site-nav a.active::after, .site-nav a:hover::after{ width:100%; }
.site-nav a.nav-cta{
  color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:9px 18px;
}
.site-nav a.nav-cta::after{ display:none; }
.site-nav a.nav-cta:hover{ border-color:var(--accent); color:var(--accent); }

.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:7px; color:var(--ink);
  font-family:var(--font-label); font-weight:600; font-size:13px; letter-spacing:.04em;
  padding:9px 14px; cursor:pointer;
}
.mobile-nav{
  position:fixed; inset:0; z-index:55; background:var(--bg);
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  gap:6px; padding:0 clamp(28px,8vw,64px);
}
.mobile-nav[hidden]{ display:none; }
.mobile-nav a{
  font-family:var(--font-display); font-weight:500; font-size:clamp(34px,9vw,58px); color:var(--ink);
  padding:8px 0; letter-spacing:-.01em;
}
.mobile-nav a .i{ color:var(--accent); font-style:italic; }
.mobile-nav .mn-meta{ margin-top:30px; font-family:var(--font-mono); font-size:13px; color:var(--ink-faint); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  padding-top:var(--header-h); overflow:hidden;
}
.hero-stage{ position:absolute; inset:0; z-index:0;
  /* dawn-glow even when home-bg.jpg is absent, so the no-image state still feels intentional */
  background:
    radial-gradient(1100px 540px at 52% 98%, rgba(194,160,90,.15), transparent 62%),
    radial-gradient(720px 440px at 60% 82%, rgba(220,198,140,.07), transparent 66%),
    var(--bg); }
#hero-canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.hero-bg-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center bottom; transform:scale(1.14); will-change:transform; }
.hero-fallback{
  position:absolute; inset:0; display:none;
  background:
    radial-gradient(900px 600px at 72% 38%, rgba(194,160,90,.16), transparent 60%),
    radial-gradient(800px 700px at 20% 80%, rgba(220,198,140,.08), transparent 60%),
    var(--bg);
}
.hero-fallback svg{ position:absolute; right:6%; top:50%; transform:translateY(-50%); width:min(48vw,520px); opacity:.9; }
.hero::after{ /* scrim: protect the top nav, keep the headline legible, keep the dawn glow, blend the ridge */
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(92% 72% at 28% 42%, rgba(22,23,26,.46), transparent 68%),
    linear-gradient(0deg, var(--bg) 1%, transparent 24%),
    linear-gradient(180deg, rgba(22,23,26,.6) 0%, rgba(22,23,26,.24) 9%, transparent 19%);
}
.hero-inner{ position:relative; z-index:3; width:100%; }
.hero h1{
  font-family:var(--font-display); font-weight:500; letter-spacing:-.02em; line-height:.98;
  font-size:clamp(46px,8.2vw,116px); max-width:15ch; margin:.18em 0 .32em;
}
.hero h1 .i{ color:var(--accent); font-style:italic; }
.hero-sub{ font-size:clamp(17px,1.9vw,23px); color:var(--ink-dim); max-width:46ch; line-height:1.5; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:clamp(28px,4vh,42px); }
.hero-scroll{
  position:absolute; left:clamp(20px,5vw,64px); bottom:26px; z-index:3;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-faint);
  display:inline-flex; align-items:center; gap:9px;
}
.hero-scroll .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); animation:pulse 2.6s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{opacity:.4} 50%{opacity:1} }

/* ============================================================
   PAGE HEADER BACKGROUND — drop-in image band for inner pages
   (Work, etc.). Sits behind the title and fades into the page.
   ============================================================ */
.page-head{ position:relative; overflow:hidden; }
.page-bg{ position:absolute; top:0; left:0; right:0; height:clamp(360px,56vh,560px); z-index:0; pointer-events:none; overflow:hidden; }
.page-bg img{ width:100%; height:100%; object-fit:cover; object-position:center; opacity:.3; transform:scale(1.14); will-change:transform; }
.page-bg::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(22,23,26,.6) 0%, rgba(22,23,26,.42) 38%, var(--bg) 86%); }
.page-head > .wrap{ position:relative; z-index:1; }
@media (prefers-reduced-motion: reduce){ .hero-bg-img, .page-bg img{ will-change:auto; } }


/* ---------- stat strip ---------- */
.statbar{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(16px,3vw,40px); }
.stat .stat-v{ font-family:var(--font-display); font-weight:500; font-size:clamp(28px,3.4vw,46px); line-height:1; }
.stat .stat-v .i{ color:var(--accent); font-style:italic; }
.stat .stat-l{ margin-top:10px; font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); }

/* ---------- two-column intro ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,6vw,90px); align-items:start; }
.split--narrow{ grid-template-columns:.85fr 1.15fr; }

/* ============================================================
   CARDS (services teaser, feature grid)
   ============================================================ */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2vw,26px); }
.card-grid.two{ grid-template-columns:repeat(2,1fr); }
.feature{
  background:var(--bg2); border:1px solid var(--line); border-radius:12px;
  padding:clamp(22px,2.4vw,32px); transition:border-color .3s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}
.feature:hover{ border-color:rgba(194,160,90,.5); transform:translateY(-4px); }
.feature .f-ico{ width:30px; height:30px; color:var(--accent); margin-bottom:18px; }
.feature h3{ font-size:clamp(18px,1.5vw,22px); margin-bottom:10px; }
.feature p{ color:var(--ink-dim); font-size:15px; }

/* ============================================================
   WORK GRID + FILTERS
   ============================================================ */
.filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:clamp(28px,4vh,44px); }
.filter{
  font-family:var(--font-label); font-weight:500; font-size:13.5px; color:var(--ink-dim);
  background:none; border:1px solid var(--line); border-radius:999px; padding:9px 16px; cursor:pointer;
  transition:all .25s var(--ease);
}
.filter:hover{ color:var(--ink); border-color:var(--ink-faint); }
.filter.active{ background:var(--accent); color:#1C1A14; border-color:var(--accent); }

.work-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,2.2vw,30px); }
.work-card{
  text-align:left; background:var(--bg2); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  cursor:pointer; color:inherit; font:inherit; display:flex; flex-direction:column;
  transition:border-color .35s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work-card:hover{ border-color:rgba(194,160,90,.55); transform:translateY(-5px); box-shadow:0 24px 50px rgba(0,0,0,.4); }
.wc-shot{ overflow:hidden; position:relative; aspect-ratio:16/10; background:var(--bg3); }
.work-card .wc-shot{ aspect-ratio:16/10; background:var(--bg3); overflow:hidden; position:relative; }
/* live preview: the real app renders at a fixed 1200px logical width and is scaled to fit (scale set in JS) */
.wc-frame{ position:absolute; top:0; left:0; width:1200px; height:750px; border:0; transform-origin:0 0; pointer-events:none; background:var(--bg3); opacity:0; transition:opacity .6s var(--ease); }
.wc-shot.loaded .wc-frame{ opacity:1; }
.wc-shade{ position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg, rgba(22,23,26,.02) 0%, rgba(22,23,26,.12) 100%); box-shadow:inset 0 0 0 1px rgba(242,237,227,.03); }
.wc-shot img, [data-shot] img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s var(--ease); }
.work-card:hover .wc-shot img{ transform:scale(1.04); }
.work-card .wc-body{ padding:18px 20px 22px; display:flex; flex-direction:column; gap:7px; flex:1; }
.work-card .wc-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.work-card .wc-name{ font-family:var(--font-display); font-weight:500; font-size:clamp(19px,1.5vw,23px); }
.work-card .wc-year{ font-family:var(--font-mono); font-size:12px; color:var(--ink-faint); }
.work-card .wc-vert{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
.work-card .wc-client{ color:var(--ink-dim); font-size:14px; margin-top:auto; padding-top:8px; }
.work-card .wc-arrow{ color:var(--ink-faint); transition:color .3s var(--ease), transform .3s var(--ease); }
.work-card:hover .wc-arrow{ color:var(--accent); transform:translate(3px,-3px); }

/* ============================================================
   DOSSIER overlay (project detail)
   ============================================================ */
.dossier{ position:fixed; inset:0; z-index:100; display:none; }
.dossier.open{ display:block; }
.dossier-backdrop{ position:absolute; inset:0; background:rgba(8,8,10,.8); backdrop-filter:blur(3px); }
.dossier-panel{
  position:absolute; top:0; right:0; bottom:0; width:min(880px,95vw); background:var(--bg2);
  border-left:1px solid rgba(194,160,90,.3); box-shadow:-30px 0 80px rgba(0,0,0,.6);
  overflow-y:auto; padding:clamp(26px,5vw,56px);
  transform:translateX(40px); opacity:0; transition:transform .5s var(--ease), opacity .5s var(--ease);
}
.dossier.open .dossier-panel{ transform:none; opacity:1; }
.dossier-close{
  position:absolute; top:18px; right:20px; width:42px; height:42px; border-radius:50%;
  border:1px solid var(--line); background:none; color:var(--ink); font-size:18px; cursor:pointer;
  transition:border-color .3s var(--ease), color .3s var(--ease);
}
.dossier-close:hover{ border-color:var(--accent); color:var(--accent); }
.dos-hero{ height:clamp(460px,70vh,760px); border-radius:12px; overflow:hidden; border:1px solid var(--line); background:var(--bg3); margin-bottom:26px; position:relative; }
.dos-hero img{ width:100%; height:100%; object-fit:cover; }
.dos-device{ position:absolute; inset:0; display:flex; flex-direction:column; }
.dos-bar{ flex:0 0 auto; display:flex; align-items:center; gap:7px; height:40px; padding:0 12px; background:var(--bg3); border-bottom:1px solid var(--line); }
.dos-dot{ width:9px; height:9px; border-radius:50%; background:rgba(242,237,227,.18); }
.dos-url{ font-family:var(--font-mono); font-size:11px; color:var(--ink-faint); margin-left:8px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.dos-views{ margin-left:auto; flex:0 0 auto; display:inline-flex; gap:2px; padding:2px; background:rgba(0,0,0,.22); border:1px solid var(--line); border-radius:8px; }
.dos-view{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-faint); background:none; border:0; padding:4px 11px; border-radius:6px; cursor:pointer; transition:background .2s var(--ease), color .2s var(--ease); }
.dos-view:hover{ color:var(--ink); }
.dos-view.is-on{ background:var(--accent); color:#1C1A14; }
.dos-stage{ flex:1 1 auto; position:relative; overflow:hidden; background:var(--bg2); display:flex; justify-content:center; }
.dos-frame{ border:0; background:var(--bg2); display:block; }
/* DESKTOP: the real desktop layout at 1280px, scaled to fit the wide panel; the iframe scrolls inside itself for height */
.dos-device.is-desktop .dos-frame{ position:absolute; top:0; left:0; transform-origin:top left; }
/* MOBILE: real-size phone, centred, scrolls inside itself */
.dos-device.is-mobile .dos-stage{ background:var(--bg3); padding:16px 0; }
.dos-device.is-mobile .dos-frame{ position:relative; width:380px; max-width:90%; height:100%; border:1px solid var(--line); border-radius:20px; background:var(--bg); box-shadow:0 18px 46px rgba(0,0,0,.42); }
.dos-vert{ font-family:var(--font-mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); }
.dos-name{ font-family:var(--font-display); font-weight:500; font-size:clamp(28px,4vw,44px); line-height:1.05; margin:8px 0; }
.dos-sub{ font-family:var(--font-mono); font-size:12.5px; color:var(--ink-dim); }
.dos-block{ margin-top:clamp(22px,3.4vh,34px); }
.dos-block h4{ font-family:var(--font-mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:12px; }
.dos-block p{ color:var(--ink-dim); font-size:15.5px; line-height:1.65; }
.dos-list{ list-style:none; display:grid; gap:10px; }
.dos-list li{ display:flex; gap:11px; align-items:baseline; color:var(--ink-dim); font-size:15px; }
.dos-list li::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); flex:none; transform:translateY(-2px); }
.dos-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.dos-tags span{ font-family:var(--font-mono); font-size:11.5px; color:var(--ink-dim); border:1px solid var(--line); border-radius:6px; padding:6px 11px; }
.dos-metrics{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.dos-metric{ background:var(--bg3); border:1px solid var(--line); border-radius:10px; padding:16px; }
.dos-metric .dm-v{ font-family:var(--font-display); font-weight:500; font-size:18px; color:var(--accent); }
.dos-metric .dm-l{ font-size:12.5px; color:var(--ink-dim); margin-top:4px; }
.dos-cta{ display:inline-flex; align-items:center; gap:9px; margin-top:30px; background:var(--accent); color:#1C1A14;
  font-family:var(--font-label); font-weight:600; font-size:14px; padding:13px 22px; border-radius:7px; border:1px solid transparent; cursor:pointer; transition:background .3s var(--ease); }
.dos-cta:hover{ background:var(--accent-2); }
.dos-cta.is-disabled, .dos-cta.is-disabled:hover{ background:var(--bg3); color:var(--ink-faint); border-color:var(--line); cursor:not-allowed; }
.dos-cta-soon{ font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; opacity:.75; margin-left:2px; }

/* ---------- dossier screenshot gallery ---------- */
.dos-gallery{ margin-bottom:26px; }
.dos-main{ border-radius:12px; overflow:hidden; border:1px solid var(--line); background:var(--bg3); aspect-ratio:16/10; }
.dos-main img{ width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.dos-thumbs{ display:flex; gap:10px; margin-top:12px; }
.dos-thumb{ flex:1 1 0; min-width:0; aspect-ratio:16/10; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--bg3); cursor:pointer; padding:0; opacity:.55; transition:opacity .25s var(--ease), border-color .25s var(--ease); }
.dos-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.dos-thumb:hover{ opacity:.85; }
.dos-thumb.is-on{ opacity:1; border-color:var(--accent); }

/* ============================================================
   SERVICES page
   ============================================================ */
.cap-list{ display:grid; grid-template-columns:1fr 1fr; gap:0 clamp(40px,5vw,90px); }
.cap-item{ display:grid; grid-template-columns:auto 1fr; gap:18px; align-items:start; padding:clamp(20px,3vh,30px) 0; border-top:1px solid var(--line); }
.cap-item .cap-dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); margin-top:12px; }
.cap-item h3{ font-size:clamp(18px,1.6vw,23px); margin-bottom:8px; }
.cap-item p{ color:var(--ink-dim); font-size:15px; max-width:46ch; }
.process{ display:grid; grid-template-columns:repeat(5,1fr); gap:clamp(20px,2.4vw,38px); }
.proc-step .proc-num{ font-family:var(--font-display); font-weight:500; font-size:clamp(40px,5vw,76px); line-height:1;
  -webkit-text-stroke:1.2px var(--accent); color:transparent; margin-bottom:16px; }
.proc-step h3{ font-size:clamp(17px,1.5vw,21px); margin-bottom:9px; }
.proc-step p{ color:var(--ink-dim); font-size:14.5px; }

/* ============================================================
   ABOUT page
   ============================================================ */
.about-hero{ display:grid; grid-template-columns:.82fr 1.18fr; gap:clamp(34px,5vw,80px); align-items:start; }
.about-portrait{ position:relative; width:100%; aspect-ratio:4/5; border-radius:4px; overflow:hidden;
  border:1px solid var(--line); box-shadow:0 30px 70px rgba(0,0,0,.5); background:var(--bg2); }
.about-portrait img{ width:100%; height:100%; object-fit:cover; }
/* portrait develops in: a top-down wipe, a settle from slightly zoomed, and grey -> full colour */
@media (prefers-reduced-motion: no-preference){
  .about-portrait img{ transition:transform 1.25s var(--ease), clip-path 1.25s var(--ease), filter 1.25s var(--ease); }
  .about-portrait.reveal img{ clip-path:inset(0 0 100% 0); transform:scale(1.12); filter:grayscale(.55) brightness(.86); }
  .about-portrait.reveal.in img{ clip-path:inset(0 0 0 0); transform:scale(1); filter:none; }
  .about-portrait.in:hover img{ transform:scale(1.035); }
}
.about-portrait .ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--ink-faint); font-family:var(--font-mono); font-size:12px; }
.about-portrait figcaption{ position:absolute; left:0; right:0; bottom:0; padding:26px 16px 12px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-dim);
  background:linear-gradient(0deg, rgba(22,23,26,.92), transparent); }
.about-bio p{ font-size:clamp(16px,1.6vw,20px); color:var(--ink-dim); margin-bottom:20px; max-width:62ch; }
.about-bio p:first-child{ color:var(--ink); }
.about-bio strong{ color:var(--ink); font-weight:600; }
.principles{ list-style:none; display:grid; gap:12px; margin:clamp(20px,3vh,30px) 0; }
.principles li{ display:flex; align-items:center; gap:14px; font-family:var(--font-display); font-weight:500; font-size:clamp(16px,1.6vw,20px); }
.principles li::before{ content:""; width:22px; height:1px; background:var(--accent); flex:none; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,6vw,80px); align-items:start; }
.channels{ display:flex; flex-direction:column; gap:2px; }
.channel{ display:flex; gap:16px; align-items:baseline; padding:18px 0; border-bottom:1px solid var(--line); }
.channel .ch-l{ font-family:var(--font-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-faint); min-width:84px; }
.channel a, .channel .ch-v{ font-size:clamp(15px,1.5vw,18px); color:var(--ink); transition:color .3s var(--ease); }
.channel a:hover{ color:var(--accent); }
.vcard-btn{ background:none; border:none; color:var(--accent); font:inherit; cursor:pointer; padding:0; }
.contact-form .field{ margin-bottom:24px; }
.contact-form label{ display:block; font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:8px; }
.contact-form input, .contact-form textarea{
  width:100%; background:var(--bg2); border:1px solid var(--line); border-radius:8px; color:var(--ink);
  font-family:var(--font-body); font-size:16px; padding:13px 15px; transition:border-color .3s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color:var(--accent); }
.contact-form textarea{ resize:vertical; min-height:120px; }
.contact-form .err{ display:none; color:#E58B7B; font-family:var(--font-mono); font-size:11.5px; margin-top:7px; }
.contact-form .field.invalid .err{ display:block; }
.contact-form .field.invalid input, .contact-form .field.invalid textarea{ border-color:#E58B7B; }
.form-success{ display:none; margin-top:16px; font-family:var(--font-mono); font-size:13.5px; color:var(--accent); }
.form-success.show{ display:block; }

/* ---------- CTA band ---------- */
.cta-band{ text-align:center; }
.cta-band h2{ font-family:var(--font-display); font-weight:500; font-size:clamp(32px,5.5vw,68px); letter-spacing:-.015em; }
.cta-band h2 .i{ color:var(--accent); font-style:italic; }
.cta-band .lede{ margin:18px auto 30px; }
.cta-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ position:relative; z-index:3; border-top:1px solid var(--line); padding:clamp(54px,8vh,96px) 0 40px; background:var(--bg); }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:clamp(24px,3vw,48px); }
.footer-brand .footer-wordmark{ font-family:var(--font-display); font-weight:500; font-style:italic; font-size:clamp(30px,3.4vw,44px); letter-spacing:-.01em; }
.footer-brand p{ margin-top:14px; color:var(--ink-dim); font-size:14.5px; max-width:36ch; }
.footer-col h4, .footer-col-title{ font-family:var(--font-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-faint); margin:0 0 16px; font-weight:500; }
.footer-col a, .footer-col .fc-line{ display:block; color:var(--ink-dim); font-size:14.5px; padding:5px 0; transition:color .3s var(--ease); }
.footer-col a:hover{ color:var(--accent); }
.footer-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; margin-top:clamp(40px,6vh,64px);
  padding-top:24px; border-top:1px solid var(--line-soft);
  font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; color:var(--ink-faint); }
.footer-legal{ display:inline-flex; flex-wrap:wrap; gap:8px 18px; }
.footer-legal a{ color:var(--ink-faint); transition:color .25s var(--ease); }
.footer-legal a:hover{ color:var(--accent); }

/* ---------- legal / sitemap pages ---------- */
.legal{ max-width:760px; }
.legal h2{ font-family:var(--font-display); font-weight:500; font-size:clamp(19px,2.3vw,27px); margin:40px 0 12px; }
.legal h2:first-of-type{ margin-top:8px; }
.legal p, .legal li{ color:var(--ink-dim); font-size:16px; margin:0 0 14px; }
.legal ul{ padding-left:22px; margin:0 0 16px; }
.legal li{ margin:0 0 8px; }
.legal a{ color:var(--accent); }
.legal .updated{ font-family:var(--font-mono); font-size:12px; color:var(--ink-faint); letter-spacing:.06em; text-transform:uppercase; margin-bottom:30px; }
.sitemap-list{ display:grid; gap:14px; max-width:680px; }
.sitemap-list a{ display:flex; justify-content:space-between; gap:16px; align-items:baseline; padding:18px 22px; border:1px solid var(--line); border-radius:12px; background:var(--bg2); transition:border-color .3s var(--ease), transform .3s var(--ease); }
.sitemap-list a:hover{ border-color:var(--accent); transform:translateX(4px); }
.sitemap-list .sm-name{ font-family:var(--font-display); font-size:19px; color:var(--ink); }
.sitemap-list .sm-desc{ color:var(--ink-faint); font-size:13.5px; text-align:right; }

/* ============================================================
   REVEAL — cards/elements sit small in the background and
   scale up + rise into place as they scroll in.
   ============================================================ */
.reveal{ opacity:0; transform:translateY(34px) scale(.94); transition:opacity .9s var(--ease), transform .9s var(--ease); will-change:opacity,transform; }
.reveal.pop{ transform:translateY(46px) scale(.86); }       /* stronger for work cards */
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.06s } .reveal.d2{ transition-delay:.12s } .reveal.d3{ transition-delay:.18s }
.reveal.d4{ transition-delay:.24s } .reveal.d5{ transition-delay:.30s } .reveal.d6{ transition-delay:.36s }
/* cards carry their own hover transitions — give the .reveal versions a combined
   transition so opacity+transform animate (scale-up) AND hover stays smooth */
.feature.reveal{ transition:opacity .9s var(--ease), transform .6s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.work-card.reveal{ transition:opacity .9s var(--ease), transform .6s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease); }
.feature:hover, .feature:focus-visible, .work-card:hover, .work-card:focus-visible{ transition-delay:0s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1000px){
  .split, .split--narrow, .about-hero, .contact-grid{ grid-template-columns:1fr; }
  .card-grid{ grid-template-columns:repeat(2,1fr); }
  .work-grid{ grid-template-columns:repeat(2,1fr); }
  .process{ grid-template-columns:repeat(2,1fr); }
  .cap-list{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .about-portrait{ max-width:380px; }
}
@media (max-width:680px){
  .site-nav{ display:none; }
  .nav-toggle{ display:inline-block; }
  .statbar{ grid-template-columns:repeat(2,1fr); row-gap:26px; }
  .card-grid, .card-grid.two, .work-grid, .process{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; gap:30px; }
  .dossier-metrics, .dos-metrics{ grid-template-columns:1fr 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .reveal.d1,.reveal.d2,.reveal.d3,.reveal.d4,.reveal.d5,.reveal.d6{ transition-delay:0s; }
  .hero-scroll .dot{ animation:none; }
  .work-card:hover, .feature:hover{ transform:none; }
}

/* ============================================================
   THE CORRIDOR — pinned WebGL fly-through (Home) + static fallback
   ============================================================ */
.corridor{ position:relative; height:480vh; background:var(--bg); }
.corridor.is-static{ height:auto; padding:clamp(56px,9vh,120px) 0; }
.corridor-stage{ position:sticky; top:0; height:100vh; overflow:hidden; }
.corridor.is-static .corridor-stage{ position:static; height:auto; }
#corridor-canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
/* scrim so HUD type stays legible when a bright panel slides behind it */
.corridor:not(.is-static) .corridor-stage::after{ content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(0deg, rgba(22,23,26,.6), transparent 40%), linear-gradient(90deg, rgba(22,23,26,.45), transparent 38%); }
.corridor-hud{ position:absolute; inset:0; z-index:2; pointer-events:none; padding:clamp(24px,5vw,64px); }
.corridor-intro{ position:absolute; top:clamp(86px,13vh,150px); left:clamp(20px,5vw,64px); max-width:18ch; }
.corridor-caption{ position:absolute; left:clamp(20px,5vw,64px); bottom:clamp(40px,9vh,90px); max-width:min(80vw,640px);
  opacity:0; transform:translateY(16px); transition:opacity .5s var(--ease), transform .5s var(--ease); }
.corridor-caption.show{ opacity:1; transform:none; }
.corridor-caption .cc-vert{ font-family:var(--font-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); }
.corridor-caption .cc-name{ font-family:var(--font-display); font-weight:500; font-size:clamp(32px,5.6vw,66px); line-height:1; letter-spacing:-.02em; margin:8px 0; }
.corridor-caption .cc-name .i{ color:var(--accent); font-style:italic; }
.corridor-caption .cc-client{ font-family:var(--font-mono); font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-dim); }
.corridor-counter{ position:absolute; right:clamp(20px,5vw,64px); bottom:clamp(40px,9vh,90px); font-family:var(--font-mono); font-size:13px; letter-spacing:.16em; color:var(--ink-faint); }
.corridor-counter b{ color:var(--accent); font-weight:500; }
.corridor-hint{ position:absolute; right:clamp(20px,5vw,64px); top:clamp(86px,13vh,150px); font-family:var(--font-mono); font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-faint); }
/* static fallback filmstrip (no WebGL / reduced-motion / touch) */
.corridor-rail{ display:flex; gap:clamp(14px,2vw,24px); overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; padding:clamp(20px,4vw,40px) clamp(20px,5vw,64px); scrollbar-width:thin; }
.crail-card{ flex:0 0 min(78vw,460px); scroll-snap-align:center; background:var(--bg2); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.crail-card img{ width:100%; aspect-ratio:16/10; object-fit:cover; display:block; border-bottom:1px solid var(--line); }
.crail-card figcaption{ display:flex; flex-direction:column; gap:6px; padding:16px 18px 20px; }
.crail-card .crc-vert{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
.crail-card .crc-name{ font-family:var(--font-display); font-weight:500; font-size:22px; }
.crail-card .crc-client{ color:var(--ink-dim); font-size:13.5px; }
.corridor.is-static .corridor-hud{ position:relative; padding:0 0 18px; }
.corridor.is-static .corridor-intro{ position:static; max-width:none; padding:0 clamp(20px,5vw,64px); }
.corridor.is-static .corridor-caption, .corridor.is-static .corridor-counter, .corridor.is-static .corridor-hint{ display:none; }

/* ============================================================
   CARD DEPTH — unified-variable transform: arrival + lift + tilt
   (.scene-3d is added by JS only when motion is allowed)
   ============================================================ */
.scene-3d{ perspective:1500px; }
.scene-3d .work-card, .scene-3d .feature{
  transform:
    translate3d(0, calc(var(--enterY,0px) + var(--liftY,0px)), var(--enterZ,0px))
    rotateX(calc(var(--enterRX,0deg) + var(--tiltX,0deg)))
    rotateY(var(--tiltY,0deg))
    scale(var(--enterS,1));
  transition:opacity .9s var(--ease), transform .7s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease), background .3s var(--ease);
}
.scene-3d .work-card.tilting, .scene-3d .feature.tilting{ transition:transform .1s linear, box-shadow .5s var(--ease), border-color .35s var(--ease); }
.scene-3d .reveal{ --enterY:36px; --enterZ:-120px; --enterRX:7deg; --enterS:.94; opacity:0; }
.scene-3d .reveal.pop{ --enterY:48px; --enterZ:-150px; --enterRX:8deg; --enterS:.88; }
.scene-3d .reveal.in{ --enterY:0px; --enterZ:0px; --enterRX:0deg; --enterS:1; opacity:1; }
.scene-3d .work-card:hover{ --liftY:-6px; }
.scene-3d .feature:hover{ --liftY:-5px; }
.work-card, .feature{ position:relative; }
.tilt-sheen{ position:absolute; inset:0; pointer-events:none; opacity:0; border-radius:inherit; z-index:1;
  background:linear-gradient(105deg, transparent 38%, rgba(220,198,140,.10) 50%, transparent 62%);
  background-size:230% 230%; background-position:var(--sx,50%) var(--sy,50%); transition:opacity .4s var(--ease); }
.tilt-host:hover .tilt-sheen{ opacity:1; }

/* ============================================================
   CONNECTIVE TISSUE — stat underline, testimonials, FAQ
   ============================================================ */
.statbar .stat-v::after{ content:""; display:block; height:2px; width:0; background:var(--accent); margin-top:12px; transition:width .9s var(--ease) .25s; }
.statbar.counted .stat-v::after{ width:40px; }
.quotes{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,72px); }
.quote blockquote{ font-family:var(--font-display); font-weight:400; font-size:clamp(22px,2.8vw,34px); line-height:1.25; }
.quote blockquote .i{ color:var(--accent); font-style:italic; }
.quote figcaption{ margin-top:18px; font-family:var(--font-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); }
.quote figcaption b{ color:var(--ink-dim); font-weight:500; }
.faq details{ border-top:1px solid var(--line); padding:clamp(16px,2.4vh,24px) 0; }
.faq details:last-child{ border-bottom:1px solid var(--line); }
.faq summary{ font-family:var(--font-display); font-weight:500; font-size:clamp(17px,1.8vw,22px); cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color:var(--accent); font-family:var(--font-mono); font-size:22px; transition:transform .3s var(--ease); }
.faq details[open] summary::after{ transform:rotate(45deg); }
.faq details p{ color:var(--ink-dim); font-size:15.5px; line-height:1.65; max-width:64ch; margin-top:12px; }

/* ============================================================
   CHROME — scroll progress, kicker underline reveal, page aura
   ============================================================ */
.scroll-progress{ position:fixed; top:0; left:0; right:0; height:2px; z-index:65; transform:scaleX(0); transform-origin:0 50%;
  background:linear-gradient(90deg, var(--accent), var(--accent-2)); will-change:transform; }
.page-aura{ position:fixed; top:-10%; right:-6%; width:60vw; height:60vw; max-width:760px; max-height:760px; z-index:1; pointer-events:none;
  background:radial-gradient(closest-side, rgba(194,160,90,.10), rgba(194,160,90,.04) 55%, transparent 72%); opacity:.5; }
/* kicker underline wipes in when its section reveals (standalone kickers keep the default 26px dash) */
.reveal .kicker::before, .section-head.reveal .kicker::before{ width:0; transition:width .6s var(--ease) .15s; }
.reveal.in .kicker::before, .section-head.reveal.in .kicker::before{ width:26px; }

@media (max-width:680px){ .quotes{ grid-template-columns:1fr; } }

/* corridor + chrome under reduced motion: collapse to static, hide chrome */
@media (prefers-reduced-motion: reduce){
  .corridor{ height:auto !important; padding:clamp(56px,9vh,120px) 0; }
  .corridor-stage{ position:static !important; height:auto !important; }
  .scroll-progress, .page-aura{ display:none; }
  /* no autonomous scroll-triggered wipes under reduced motion */
  .statbar .stat-v::after, .reveal .kicker::before, .section-head.reveal .kicker::before{ transition:none; }
  .dossier-panel{ transition:none; transform:none; opacity:1; }
}

/* ============================================================
   AUDIT FIXES — skip link, menu state, rhythm, seams
   ============================================================ */
.skip-link{ position:absolute; left:-9999px; top:0; z-index:200; background:var(--accent); color:#1C1A14;
  font-family:var(--font-label); font-weight:600; font-size:14px; padding:12px 18px; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }
/* keep the most decorative micro-labels whisper-subtle (the rest were raised to AA) */
.hero-scroll, .corridor-hint, .corridor-counter{ color:var(--ink-ghost); }
.corridor-counter b{ color:var(--accent); }
/* hide the scroll-progress bar while the full-screen mobile menu is open */
.menu-open .scroll-progress{ display:none; }
body.menu-open{ overflow:hidden; }
/* restore the hairline rhythm around the corridor (it isn't a .section) */
.corridor + .section, .corridor{ border-top:1px solid var(--line-soft); }

/* ============================================================
   IN PRODUCTION — live-systems marquee (replaces the WebGL corridor)
   Reliable, no WebGL, no 480vh pin. Drop-in background image slot.
   ============================================================ */
.showcase{ position:relative; overflow:hidden; }
.showcase-bg{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.showcase-bg img{ width:100%; height:100%; object-fit:cover; opacity:.16; }
.showcase-bg::after{ content:""; position:absolute; inset:0;
  background:radial-gradient(130% 90% at 50% 0%, rgba(22,23,26,.35), var(--bg) 76%); }
.showcase > .wrap, .showcase > .marquee{ position:relative; z-index:1; }

.marquee{ margin-top:clamp(34px,5vh,60px); overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track{ display:flex; gap:clamp(16px,2vw,26px); width:max-content; will-change:transform; }
.mq-card{ flex:0 0 auto; width:clamp(216px,25vw,292px); background:var(--bg2);
  border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.mq-shot{ aspect-ratio:16 / 10; background:var(--bg3); overflow:hidden; }
.mq-shot img{ width:100%; height:100%; object-fit:cover; display:block; }
.mq-meta{ padding:13px 16px 15px; display:flex; flex-direction:column; gap:4px; }
.mq-vert{ font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
.mq-name{ font-family:var(--font-display); font-weight:500; font-size:19px; letter-spacing:-.01em; color:var(--ink); }

@media (prefers-reduced-motion: no-preference){
  .marquee-track{ animation:mq-scroll 64s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track{ animation-play-state:paused; }
}
@keyframes mq-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .marquee{ overflow-x:auto; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
}

/* teaser shot keeps rounded top corners under the .scene-3d transform */
.feature .wc-shot{ border-radius:12px 12px 0 0; overflow:hidden; }
/* statbar: avoid uneven wrapping on small tablets */
@media (max-width:880px) and (min-width:681px){ .statbar{ grid-template-columns:repeat(2,1fr); row-gap:28px; } }
