/* Ascentia Forge, the 3D site. Hand-written CSS: there is no build step for this file. */

/* Bricolage Grotesque and Instrument Sans, variable, self-hosted (SIL Open Font License). */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/bricolage-grotesque-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/instrument-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/instrument-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root{
  --ink-950:#08090D; --ink-900:#0D0E14; --ink-850:#12141C; --ink-800:#181B25;
  --gold:#F0B429; --ember:#FF6B35; --ember-300:#FF9468;
  --white:#FFFFFF; --body:#E2E8F0; --soft:#CBD5E1; --muted:#94A3B8; --placeholder:#8391A7;
  --wa:#25D366; --wa-ink:#0B141A;
  --line:rgba(255,255,255,.10); --line-soft:rgba(255,255,255,.07); --line-field:rgba(255,255,255,.14); --line-strong:rgba(255,255,255,.15);
  --display:'Bricolage Grotesque','Instrument Sans',sans-serif;
  --sans:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  --gutter:20px; --hdr:68px; --bar:0px;
}
@media (min-width:640px){ :root{ --gutter:32px; } }
@media (max-width:767px){ :root{ --bar:calc(76px + env(safe-area-inset-bottom)); } }

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scrollbar-color:#2a2e3d var(--ink-950); scrollbar-width:thin; }
body{
  margin:0; background:var(--ink-950); color:var(--body);
  font-family:var(--sans); font-size:1rem; line-height:1.6;
  font-variant-numeric:lining-nums proportional-nums; font-feature-settings:"zero" 0,"ss01" 0;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden; padding-bottom:var(--bar);
}
::selection{ background:var(--gold); color:var(--ink-900); }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:var(--ink-950); }
::-webkit-scrollbar-thumb{ background:#2a2e3d; border-radius:9999px; border:2px solid var(--ink-950); }
::-webkit-scrollbar-thumb:hover{ background:#3a3f52; }
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3,p,ul,ol,figure,fieldset{ margin:0; padding:0; }
ul,ol{ list-style:none; }
fieldset{ border:0; min-width:0; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; border-radius:4px; }
[hidden]{ display:none !important; }
[tabindex="-1"]:focus{ outline:none; }

.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip{ position:fixed; top:-80px; left:16px; z-index:100; background:var(--gold); color:var(--ink-950); padding:10px 16px; border-radius:8px; font-weight:600; }
.skip:focus{ top:16px; }
.wrap{ width:100%; max-width:1240px; margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); }

/* Lenis smooth scrolling (pointer devices only) */
html.lenis,html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-stopped{ overflow:hidden; }

/* ---------- the forge canvas, and what stands in for it ---------- */
.forge{ position:fixed; top:0; left:0; width:100%; height:100vh; height:100lvh; z-index:0; display:block; pointer-events:none; opacity:0; transition:opacity .4s ease; }
.webgl .forge{ opacity:1; }
.no-webgl .forge{ display:none; }
.atmos{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(42vw 42vw at 6% 8%, rgba(99,102,241,.16), transparent 70%),
    radial-gradient(38vw 38vw at 90% 14%, rgba(240,180,41,.12), transparent 70%),
    radial-gradient(36vw 36vw at 42% 80%, rgba(255,107,53,.08), transparent 70%),
    var(--ink-950);
}
/* Once the scene has faded in over it, the painted stand-in is no longer drawn. */
.webgl .atmos{ visibility:hidden; transition:visibility 0s linear .8s; }
.fallback{ width:auto; height:100%; max-height:260px; margin:0 auto; object-fit:contain; }
.js .fallback{ display:none; }
.js.no-webgl .fallback{ display:block; }
/* The finished mark as a still, sitting exactly where the forged one stands. Phones,
   reduced-motion and no-3D visitors see it from the first paint. On a computer the
   forge builds the mark instead ("forging"), so the still is held back and is shown
   only if the scene is late. When the scene is running it takes over from the still. */
.poster{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; transition:opacity .45s ease; }
.forging .poster{ opacity:0; transition:none; }
/* With scripts on, the still is drawn onto a canvas by a line of script beside it
   (a picture this large is otherwise timed by search engines as the page's main
   content, and here it can arrive after the headline). Without scripts, the picture. */
.drawn img.poster{ display:none; }
.webgl .poster{ opacity:0; visibility:hidden; transition:opacity .4s ease .35s,visibility 0s linear .75s; }
/* The sparks have gathered and the graphics card has not finished the gold: the still
   comes in hot and cools, standing in for the metal until it is ready. */
.webgl.stilled .poster{ opacity:1; visibility:visible; transition:opacity .3s ease; animation:cool .7s ease-out both; }
@keyframes cool{ from{ filter:brightness(2) saturate(1.3); } to{ filter:brightness(1) saturate(1); } }
/* The hearth warming up: on screen from the first paint, until the sparks arrive. */
.hero__slot::before{ content:""; position:absolute; left:50%; bottom:0; width:min(78%,620px); height:62%; transform:translateX(-50%); border-radius:50%; pointer-events:none; opacity:0; transition:opacity .7s ease;
  background:radial-gradient(closest-side, rgba(255,107,53,.17), rgba(240,180,41,.06) 58%, transparent); }
.forging .hero__slot::before{ opacity:1; animation:kindle 1.1s ease both; }
@keyframes kindle{ from{ opacity:0; transform:translateX(-50%) scale(.82); } to{ opacity:1; transform:translateX(-50%) scale(1); } }
main,.ftr{ position:relative; z-index:1; }
.can-strike body{ cursor:grab; }
.is-grabbing body{ cursor:grabbing; -webkit-user-select:none; user-select:none; }
/* a finger can turn the metal sideways; up and down still scrolls the page */
[data-slot]{ touch-action:pan-y; }

/* ---------- type ---------- */
.display,.headline,.title{ font-family:var(--display); color:var(--white); text-wrap:balance; }
.display{ font-size:clamp(2.35rem,6vw,4.4rem); font-weight:800; line-height:1.03; letter-spacing:-.04em; }
.headline{ font-size:clamp(1.875rem,4.2vw,3rem); font-weight:800; line-height:1.08; letter-spacing:-.035em; }
.title{ font-size:1.25rem; font-weight:700; line-height:1.3; letter-spacing:-.01em; }
.lead{ font-size:1.125rem; line-height:1.625; color:var(--soft); max-width:36rem; text-wrap:pretty; }
.body{ color:var(--soft); max-width:34rem; text-wrap:pretty; }
.gold{ color:var(--gold); }
.ember{ color:var(--ember); }
.status{ font-size:.9375rem; color:var(--muted); }
.status--ember{ display:inline-flex; align-items:center; gap:10px; color:var(--ember-300); font-weight:600; }
.dot{ width:6px; height:6px; border-radius:9999px; background:currentColor; flex:none; }
.dot--ember{ background:var(--ember); }
.link{ color:var(--soft); font-weight:600; text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:5px; transition:color .2s,text-decoration-color .2s; }
.link:hover{ color:var(--gold); text-decoration-color:var(--gold); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:52px; padding:14px 26px; border-radius:12px; border:1px solid transparent;
  font-weight:700; line-height:1.2; cursor:pointer; white-space:nowrap;
  transition:background-color .25s var(--ease),border-color .25s var(--ease),color .25s var(--ease),transform .25s var(--ease);
}
.btn svg{ flex:none; transition:transform .3s var(--ease); }
.btn:hover svg{ transform:translateX(3px); }
.btn:active{ transform:scale(.98); }
.btn--primary{ background:var(--white); color:var(--ink-950); }
.btn--primary:hover,.btn--primary:focus-visible{ background:var(--gold); }
.btn--primary[disabled]{ opacity:.6; cursor:wait; }
.btn--ghost{ background:rgba(255,255,255,.05); border-color:var(--line-strong); color:var(--white); font-weight:600; }
.btn--ghost:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.25); }
.btn--wa{ background:var(--wa); color:var(--wa-ink); }
.btn--wa:hover{ background:#3be07a; }
.btn--wa:hover svg,.btn--ghost:hover svg{ transform:none; }
.btn--ember{ background:var(--ember); color:var(--ink-950); }
.btn--ember:hover{ background:var(--ember-300); }
.actions{ display:flex; flex-wrap:wrap; gap:12px; }

/* ---------- ruled lists ---------- */
.ruled{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.ruled li{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 16px; padding:14px 0; color:var(--soft); }
.ruled li + li{ border-top:1px solid var(--line-soft); }
.ruled strong{ color:var(--white); font-weight:600; min-width:9.5rem; }
.ruled span{ color:var(--muted); }
.ruled--two{ display:grid; grid-template-columns:1fr 1fr; column-gap:32px; }
.ruled--two li:nth-child(2){ border-top:0; }
.ruled--two strong{ min-width:0; }
.ruled--sm li{ padding:11px 0; font-size:.9375rem; }
.ruled--tick li{ gap:12px; flex-wrap:nowrap; align-items:center; }
.ruled--tick li::before{
  content:""; width:20px; height:20px; flex:none; background:var(--gold);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- header ---------- */
.hdr{ position:fixed; top:0; left:0; right:0; z-index:50; border-bottom:1px solid transparent; transition:background-color .3s,border-color .3s; }
.hdr.is-scrolled{ background:rgba(8,9,13,.94); border-bottom-color:var(--line); }
.hdr__row{ display:flex; align-items:center; gap:24px; height:var(--hdr); }
.hdr__logo{ flex:none; border-radius:6px; }
.hdr__logo img{ height:36px; width:auto; }
.hdr__nav{ display:none; align-items:center; gap:4px; margin-left:auto; font-size:.875rem; }
.hdr__nav a{ display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:8px; color:var(--soft); transition:color .2s,background-color .2s; }
.hdr__nav a:hover,.hdr__nav a[aria-current="page"]{ color:var(--white); background:rgba(255,255,255,.05); }
.hdr__nav .hdr__cta{ margin-left:8px; padding:8px 16px; background:var(--white); color:var(--ink-950); font-weight:600; }
.hdr__nav .hdr__cta:hover{ background:var(--gold); color:var(--ink-950); }
.hdr__burger{ margin-left:auto; width:44px; height:44px; display:grid; place-items:center; background:none; border:0; border-radius:8px; color:var(--soft); cursor:pointer; }
.hdr__progress{ position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--gold); transform:scaleX(0); transform-origin:left; opacity:0; transition:opacity .3s; }
.hdr.is-scrolled .hdr__progress{ opacity:.9; }
.mnav{ border-top:1px solid var(--line); background:rgba(8,9,13,.98); padding:8px var(--gutter) 12px; }
.mnav a{ display:flex; align-items:center; gap:16px; padding:14px 0; font-size:1.125rem; font-weight:600; color:var(--white); }
.mnav a + a{ border-top:1px solid rgba(255,255,255,.05); }
.mnav a span{ font-size:.75rem; font-weight:600; color:var(--muted); font-variant-numeric:tabular-nums; }
.mnav .mnav__munshi{ color:var(--ember); }
.mnav a[aria-current="page"] span{ color:var(--gold); }
.hdr__home{ margin-left:auto; padding:8px 14px; border-radius:8px; border:1px solid var(--line-strong); font-size:.9375rem; font-weight:600; color:var(--soft); }
@media (min-width:900px){
  .hdr__home{ display:none; }
  .hdr__nav{ display:flex; }
  .hdr__burger,.mnav{ display:none !important; }
}

/* ---------- hero ---------- */
.hero{ position:relative; min-height:100vh; min-height:calc(100svh - var(--bar)); display:flex; padding:calc(var(--hdr) + 12px) 0 40px; }
.hero__inner{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.hero__slot{ position:relative; flex:1 1 auto; width:100%; min-height:210px; max-height:520px; margin-bottom:28px; display:flex; align-items:center; justify-content:center; }
.hero .display{ max-width:21ch; }
.hero .lead{ margin-top:22px; max-width:41rem; }
.hero .actions{ margin-top:30px; justify-content:center; }
@media (max-width:639px){
  .hero{ padding-bottom:28px; }
  .hero__slot{ min-height:170px; margin-bottom:20px; }
  .hero .lead{ font-size:1.0625rem; margin-top:18px; }
  .hero .actions{ margin-top:24px; width:100%; }
  .hero .actions .btn{ flex:1 1 auto; }
}

@media (min-width:900px) and (max-height:800px){
  .hero .display{ font-size:3.5rem; }
  .hero .lead{ margin-top:16px; }
  .hero .actions{ margin-top:22px; }
  .hero__slot{ margin-bottom:20px; }
}

/* entrance, from a visible default when scripts are off */
/* The headline and paragraph are there on the first paint; only the buttons ease in. */
@keyframes rise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
.js .rise{ animation:rise .9s var(--ease) .1s both; }
.js .reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.js .reveal.in{ opacity:1; transform:none; }

/* ---------- sections ---------- */
.band{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(13,14,20,.42); }
.sec-head{ max-width:44rem; }
.sec-head .lead{ margin-top:18px; }

/* ---------- pinned sequences ---------- */
.pin__stage{ padding:64px 0; }
@media (min-width:640px){ .pin__stage{ padding:96px 0; } }
.forge-on .pin{ height:var(--pin-h); }
.forge-on .pin__stage{
  position:sticky; top:0; height:100vh; height:100svh; padding:calc(var(--hdr) + 8px) 0 calc(var(--bar) + 16px);
  display:flex; align-items:center; overflow:hidden;
}
.build{ --pin-h:440vh; }
.process{ --pin-h:340vh; }

/* what we build */
.build__grid{ display:grid; gap:40px; }
.build__slot{ display:none; }
.chapter + .chapter{ margin-top:72px; }
.chapter .lead{ margin-top:18px; }
.chapter .ruled{ margin-top:28px; max-width:34rem; }
.more{ display:inline-flex; align-items:center; gap:8px; margin-top:24px; padding:6px 0; font-weight:600; color:var(--white); text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:6px; transition:color .25s var(--ease),text-decoration-color .25s var(--ease); }
.more svg{ flex:none; transition:transform .3s var(--ease); }
.more:hover{ color:var(--gold); text-decoration-color:var(--gold); }
.more:hover svg{ transform:translateX(4px); }
.seg{ display:none; }
.forge-on .build__grid{ width:100%; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(150px,34svh) auto; gap:20px; align-content:center; }
.forge-on .build__slot{ display:block; grid-row:1; min-height:0; }
.forge-on .build__copy{ grid-row:2; }
.forge-on .chapters{ display:grid; }
.forge-on .chapter{ grid-area:1 / 1; margin:0; opacity:0; visibility:hidden; transform:translateY(14px); will-change:opacity,transform; transition:opacity .45s var(--ease),transform .8s var(--ease),visibility 0s linear .45s; }
.forge-on .chapter.is-done{ transform:translateY(-14px); }
.forge-on .chapter.is-active{ opacity:1; visibility:visible; transform:none; transition-delay:.22s,.22s,0s; }
.forge-on .seg{ display:inline-flex; margin-top:30px; gap:2px; padding:4px; border-radius:12px; background:rgba(255,255,255,.03); border:1px solid var(--line); }
.seg button{ min-height:40px; padding:8px 18px; border-radius:8px; border:0; background:transparent; color:var(--muted); font-weight:600; font-size:.9375rem; cursor:pointer; transition:background-color .35s var(--ease),color .35s var(--ease); }
.seg button:hover{ color:var(--white); }
.seg button[aria-current="true"]{ background:rgba(255,255,255,.10); color:var(--white); }
@media (max-width:899px){
  .forge-on .chapter .lead{ font-size:1rem; margin-top:12px; }
  .forge-on .chapter .ruled{ margin-top:16px; }
  .forge-on .chapter .ruled li{ padding:9px 0; font-size:.9375rem; }
  .forge-on .chapter .ruled span{ display:none; }
  .forge-on .seg{ margin-top:16px; }
  .forge-on .chapter .headline{ font-size:clamp(1.6rem,6.6vw,2.1rem); }
}
@media (max-width:899px) and (max-height:700px){ .forge-on .chapter .ruled{ display:none; } }
@media (min-width:900px){
  .forge-on .build__grid{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); grid-template-rows:none; gap:56px; align-items:center; }
  .forge-on .build__slot{ grid-row:auto; grid-column:2; height:min(64vh,580px); }
  .forge-on .build__copy{ grid-row:auto; grid-column:1; }
}

@media (min-width:900px) and (max-height:780px){
  .forge-on .pin .headline{ font-size:clamp(1.875rem,3.4vw,2.5rem); }
  .forge-on .pin .lead{ font-size:1.0625rem; }
  .forge-on .build__slot{ height:min(60vh,460px); }
  .forge-on .seg{ margin-top:20px; }
  .more{ margin-top:18px; }
}

/* how we work */
.process__grid{ display:grid; gap:40px; width:100%; }
.process__left .lead{ margin-top:18px; }
.process__slot{ display:none; }
.steps{ border-top:1px solid var(--line); }
.step{ display:flex; gap:22px; padding:20px 0; border-bottom:1px solid var(--line); }
.step__n{ flex:none; width:2rem; padding-top:2px; font-family:var(--display); font-weight:800; font-size:1.0625rem; letter-spacing:-.02em; color:var(--gold); font-variant-numeric:tabular-nums lining-nums; }
.step__more p{ margin-top:6px; color:var(--soft); max-width:36rem; }
.forge-on .process__slot{ display:block; height:min(26svh,220px); margin-top:8px; }
.forge-on .process__grid{ gap:14px; }
.forge-on .process__left .lead{ display:none; }
.forge-on .step{ padding:13px 0; transition:opacity .4s var(--ease); opacity:.6; }
.forge-on .step__n{ color:var(--soft); transition:color .4s var(--ease); }
.forge-on .step__more{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .55s var(--ease); }
.forge-on .step__more p{ overflow:hidden; min-height:0; margin-top:0; opacity:0; transition:opacity .45s var(--ease); }
.forge-on .step.is-done{ opacity:.8; }
.forge-on .step.is-done .step__n,.forge-on .step.is-active .step__n{ color:var(--gold); }
.forge-on .step.is-active{ opacity:1; }
.forge-on .step.is-active .step__more{ grid-template-rows:1fr; }
.forge-on .step.is-active .step__more p{ opacity:1; transition-delay:.12s; }
@media (max-width:899px){
  .forge-on .process .headline{ font-size:clamp(1.6rem,6.6vw,2.1rem); }
  .forge-on .step .title{ font-size:1.0625rem; }
  .forge-on .step__more p{ font-size:.9375rem; }
}
@media (min-width:900px){
  .process__grid{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:72px; align-items:start; }
  .forge-on .process__grid{ gap:72px; align-items:center; }
  .forge-on .process__left .lead{ display:block; }
  .forge-on .process__slot{ height:min(38vh,340px); margin-top:28px; }
  .forge-on .step{ padding:18px 0; }
}

/* ---------- the four facts under the hero ---------- */
.stats__row{ display:grid; grid-template-columns:1fr 1fr; margin-top:0; margin-bottom:0; }
.stat{ display:flex; flex-direction:column-reverse; justify-content:flex-end; padding:26px 0 26px 20px; border-left:1px solid var(--line); }
.stat:nth-child(odd){ padding-left:0; border-left:0; }
.stat:nth-child(n+3){ border-top:1px solid var(--line); }
.stat dt{ margin-top:8px; font-size:.8125rem; color:var(--muted); }
.stat dd{ margin:0; font-family:var(--display); font-weight:800; font-size:clamp(1.875rem,3.4vw,2.5rem); line-height:1; letter-spacing:-.035em; color:var(--white); font-variant-numeric:tabular-nums lining-nums; }
.stat dd.gold{ color:var(--gold); }
@media (min-width:900px){
  .stats__row{ grid-template-columns:repeat(4,1fr); }
  .stat,.stat:nth-child(odd){ padding:32px 24px; border-left:1px solid var(--line); }
  .stat:first-child{ padding-left:0; border-left:0; }
  .stat:nth-child(n+3){ border-top:0; }
}

/* ---------- the systems we build ---------- */
.services{ padding:16px 0 24px; background:rgba(9,10,15,.82); }
.svc{ display:grid; grid-template-columns:1fr; column-gap:40px; }
.svc li{ padding:24px 0; border-bottom:1px solid var(--line-soft); }
.svc li:last-child{ border-bottom:0; }
.svc p{ margin-top:8px; max-width:30rem; font-size:.9375rem; color:var(--soft); }
.svc li{ position:relative; }
.svc a{ transition:color .25s var(--ease); }
.svc a::after{ content:""; position:absolute; inset:0; }
.svc li:hover a,.svc a:focus-visible{ color:var(--gold); }
.svc .svc__munshi{ color:var(--ember-300); }
.svc li:hover .svc__munshi{ color:var(--ember); }
@media (min-width:640px){
  .services{ padding:28px 0 36px; }
  .svc{ grid-template-columns:1fr 1fr; }
  .svc li:nth-last-child(-n+2){ border-bottom:0; }
  .js .svc li:nth-child(even){ transition-delay:.07s; }
}
@media (min-width:1100px){
  .svc{ grid-template-columns:repeat(4,1fr); }
  .svc li{ padding:32px 0; }
  .svc li:nth-last-child(-n+4){ border-bottom:0; }
  .js .svc li:nth-child(4n+2){ transition-delay:.07s; }
  .js .svc li:nth-child(4n+3){ transition-delay:.14s; }
  .js .svc li:nth-child(4n+4){ transition-delay:.21s; }
}

/* ---------- work ---------- */
.work{ padding:72px 0 40px; }
@media (min-width:640px){ .work{ padding:112px 0 72px; } }
.project{ display:grid; gap:44px; padding:44px 0; align-items:center; }
.project__media{ perspective:1500px; padding:0 2% 9% 0; }
.project--flip .project__media{ padding:0 0 9% 2%; }
.frame3d{
  position:relative; transform-style:preserve-3d; will-change:transform;
  transform:rotateX(calc(var(--t,0) * 9deg + var(--my,0) * -6deg)) rotateY(calc(var(--dir,1) * (-7deg + var(--t,0) * 7deg) + var(--mx,0) * 8deg));
  transition:transform .4s cubic-bezier(.2,.8,.2,1);
}
.shot{ border-radius:16px; border:1px solid var(--line); background:var(--ink-850); overflow:hidden; box-shadow:0 34px 70px -34px rgba(0,0,0,.85); }
.shot img{ width:100%; }
.shot__bar{ display:flex; align-items:center; gap:7px; height:36px; padding:0 14px; background:var(--ink-800); border-bottom:1px solid var(--line); }
.shot__bar i{ width:10px; height:10px; border-radius:9999px; background:#FF5F57; }
.shot__bar i:nth-child(2){ background:#FEBC2E; }
.shot__bar i:nth-child(3){ background:#28C840; }
.shot__bar span{ margin-left:10px; flex:1; min-width:0; padding:3px 10px; border-radius:6px; background:rgba(0,0,0,.4); font-size:.75rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shot--float{
  position:absolute; width:54%; right:-3%; bottom:-14%; border-radius:12px;
  transform:translateZ(90px) translateY(calc(var(--t,0) * 30px));
  box-shadow:0 30px 60px -24px rgba(0,0,0,.9);
}
.project--flip .shot--float{ right:auto; left:-3%; }
.project__copy .status{ margin-top:6px; }
.project__copy .body{ margin-top:16px; }
.project__copy .ruled{ margin-top:22px; max-width:34rem; }
.project__copy .title{ font-size:1.5rem; letter-spacing:-.02em; }
.work__all{ margin-top:28px; display:flex; justify-content:center; }
@media (min-width:900px){
  .project{ grid-template-columns:repeat(12,minmax(0,1fr)); gap:32px; padding:64px 0; }
  .project__media{ grid-column:1 / span 7; }
  .project__copy{ grid-column:9 / span 4; }
  .project--flip .project__media{ grid-column:6 / span 7; order:2; }
  .project--flip .project__copy{ grid-column:1 / span 4; order:1; }
}

@media (min-width:900px) and (max-height:780px){
  .forge-on .process__slot{ height:min(34vh,250px); margin-top:16px; }
  .forge-on .step{ padding:13px 0; }
}
@media (min-width:900px) and (max-height:640px){
  .forge-on .process__left .lead{ display:none; }
}

/* ---------- munshi ---------- */
.munshi{ padding:64px 0; }
.munshi__grid{ display:grid; gap:28px; align-items:center; }
.munshi__slot{ display:none; }
.forge-on .munshi__slot{ display:block; height:min(54svh,460px); }
.munshi__line{ margin-top:18px; font-size:1.25rem; font-weight:600; color:var(--white); line-height:1.35; }
.munshi .lead{ margin-top:12px; }
.munshi .status{ margin-top:22px; }
.munshi .actions{ margin-top:26px; }
@media (min-width:900px){
  .munshi{ padding:112px 0; }
  .munshi__grid{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:56px; }
  .forge-on .munshi__slot{ height:clamp(400px,66vh,600px); }
}

/* ---------- contact ---------- */
.contact{ padding:72px 0; }
.contact__grid{ display:grid; gap:44px; align-items:start; }
.contact__slot{ height:150px; width:217px; margin-bottom:28px; display:flex; justify-content:flex-start; }
.contact__slot .fallback{ margin:0; max-height:120px; }
.contact .lead{ margin-top:18px; }
.contact .ruled{ margin-top:30px; max-width:30rem; }
.direct span{ min-width:9.5rem; font-size:.9375rem; }
.direct a,.direct strong{ color:var(--white); font-weight:600; }
.direct a{ transition:color .2s; }
.direct a:hover{ color:var(--gold); }
.contact__direct{ margin-top:28px; display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; }
@media (min-width:900px){
  .contact{ padding:120px 0 112px; }
  .contact__grid{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:64px; }
  .contact__slot{ height:190px; width:275px; }
}
.panel{ border-radius:16px; border:1px solid var(--line); background:rgba(18,20,28,.94); padding:20px; }
@media (min-width:640px){ .panel{ padding:32px; } }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.field-row{ display:grid; gap:0 20px; }
@media (min-width:640px){ .field-row{ grid-template-columns:1fr 1fr; } }
.field{ margin-bottom:20px; }
.field > label,.field > legend{ display:block; margin-bottom:8px; font-size:.9375rem; font-weight:600; color:var(--body); }
.field > label span{ font-weight:400; color:var(--muted); }
.field input[type="text"],.field input[type="email"],.field input[type="tel"],.field textarea,.field select{
  width:100%; padding:13px 16px; border-radius:12px; border:1px solid var(--line-field); background:var(--ink-850);
  font-size:1rem; color:#F1F5F9; caret-color:var(--gold); transition:border-color .2s,background-color .2s,box-shadow .2s;
}
.field textarea{ resize:vertical; min-height:112px; display:block; }
.field ::placeholder{ color:var(--placeholder); opacity:1; }
.field input:hover,.field textarea:hover,.field select:hover{ border-color:rgba(255,255,255,.24); }
.field input:focus,.field textarea:focus,.field select:focus{ outline:none; border-color:var(--gold); background:var(--ink-800); box-shadow:0 0 0 3px rgba(240,180,41,.18); }
.field [aria-invalid="true"]{ border-color:var(--ember); }
.field__error{ margin-top:8px; font-size:.875rem; color:var(--ember-300); }
.select{ position:relative; }
.select select{ appearance:none; -webkit-appearance:none; padding-right:44px; cursor:pointer; }
.select select option{ background:var(--ink-850); color:#F1F5F9; }
.select svg{ position:absolute; right:16px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.chips{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
@media (min-width:640px){ .chips{ display:flex; flex-wrap:wrap; } }
.chip{ position:relative; display:block; cursor:pointer; }
.chip input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.chip span{
  display:flex; align-items:center; justify-content:center; text-align:center; min-height:44px; padding:9px 16px; border-radius:12px;
  border:1px solid var(--line-field); background:var(--ink-850); color:var(--soft); font-size:.9375rem; font-weight:600; line-height:1.25;
  transition:background-color .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease);
}
.chip:hover span{ border-color:rgba(240,180,41,.5); }
.chip input:checked + span{ background:var(--gold); border-color:var(--gold); color:var(--ink-900); }
.chip input:focus-visible + span{ outline:2px solid var(--gold); outline-offset:3px; }
.form__fail{ margin-bottom:20px; padding:16px; border-radius:12px; border:1px solid rgba(255,107,53,.4); background:rgba(255,107,53,.1); font-size:.9375rem; color:var(--body); }
.form__fail a{ font-weight:600; color:var(--wa); text-decoration:underline; text-underline-offset:4px; }
.form__foot{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin-top:4px; }
.form__note{ flex:1 1 15rem; font-size:.875rem; color:var(--muted); }
.form__note .link{ color:var(--gold); text-decoration-color:rgba(240,180,41,.4); }
.done{ padding:28px 4px; display:grid; gap:14px; justify-items:start; }
.done svg{ color:var(--gold); }
.done .btn{ margin-top:8px; }

/* ---------- footer ---------- */
.ftr{ border-top:1px solid var(--line); background:var(--ink-950); padding:64px 0 32px; }
.ftr__grid{ display:grid; gap:40px; }
@media (min-width:640px){ .ftr__grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){ .ftr__grid{ grid-template-columns:1.8fr 1fr 1fr 1.2fr; } }
.ftr__logo{ height:30px; width:auto; margin-bottom:20px; }
.ftr__blurb{ max-width:20rem; font-size:.875rem; line-height:1.65; color:var(--muted); }
.ftr__place{ margin-top:20px; font-size:.8125rem; color:var(--soft); }
.ftr__label{ margin-bottom:14px; font-size:.6875rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.ftr__grid a{ display:flex; align-items:center; gap:8px; padding:8px 0; font-size:.875rem; color:var(--muted); transition:color .2s; }
.ftr__grid a:hover,.ftr__base a:hover{ color:var(--gold); }
.ftr__base{ margin-top:56px; padding-top:24px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; font-size:.75rem; color:var(--muted); }
.ftr__legal{ display:flex; gap:20px; }
.ftr__base a{ padding:6px 0; transition:color .2s; }

/* ---------- phones: WhatsApp and Call stay under the thumb ---------- */
.phonebar{
  position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; gap:12px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line); background:rgba(8,9,13,.97);
}
.phonebar .btn{ flex:1; min-height:50px; padding:10px 16px; }
@media (min-width:768px){ .phonebar{ display:none; } }

/* ---------- legal and plain pages ---------- */
.page{ position:relative; z-index:1; padding:calc(var(--hdr) + 56px) 0 80px; }
.page .display{ max-width:20ch; }
.page__actions{ margin-top:28px; }
.prose{ max-width:46rem; margin-top:40px; color:var(--soft); }
.prose p{ margin-bottom:16px; }
.prose h2{ margin:40px 0 12px; font-family:var(--display); font-size:1.25rem; font-weight:700; color:var(--white); }
.prose ul{ list-style:disc; padding-left:22px; margin-bottom:16px; }
.prose li{ margin-bottom:8px; }
.prose strong{ color:var(--body); font-weight:600; }
.prose a{ color:var(--gold); text-decoration:underline; text-underline-offset:4px; }
.prose .note{ margin:24px 0; padding:18px 20px; border-radius:12px; border:1px solid var(--line); background:var(--ink-850); }
.prose .note p:last-child{ margin-bottom:0; }
.prose table{ width:100%; border-collapse:collapse; margin-bottom:16px; font-size:.9375rem; }
.prose th,.prose td{ text-align:left; padding:10px 12px 10px 0; border-bottom:1px solid var(--line-soft); vertical-align:top; }
.prose th{ color:var(--white); font-weight:600; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-delay:0s !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .js .reveal{ opacity:1; transform:none; }
  .frame3d{ transform:rotateY(calc(var(--dir,1) * -5deg)); }
}

/* ---------- fit: tablets, short windows and small phones ---------- */
@media (min-width:900px){
  .hero__slot{ min-height:clamp(190px,34vh,260px); }
}
@media (min-width:640px) and (max-width:899px){
  .forge-on .build__grid{ grid-template-rows:minmax(200px,42svh) auto; gap:28px; }
  .forge-on .process__slot{ height:min(34svh,360px); }
  .forge-on .process__left .lead{ display:block; }
}
@media (max-width:639px) and (max-height:720px){
  .forge-on .pin__stage{ padding-top:calc(var(--hdr) + 4px); padding-bottom:calc(var(--bar) + 10px); }
  .forge-on .build__grid{ grid-template-rows:minmax(100px,25svh) auto; gap:12px; }
  .forge-on .chapter .headline,.forge-on .process .headline{ font-size:1.5rem; }
  .forge-on .chapter .lead{ font-size:.9375rem; line-height:1.5; margin-top:8px; }
  .forge-on .chapter .more{ display:none; }
  .forge-on .seg{ margin-top:12px; }
  .seg button{ min-height:36px; padding:6px 13px; }
  .forge-on .process__grid{ gap:8px; }
  .forge-on .process__slot{ height:19svh; margin-top:2px; }
  .forge-on .step{ padding:8px 0; gap:16px; }
  .forge-on .step .title{ font-size:1rem; }
  .forge-on .step__more p{ font-size:.875rem; line-height:1.45; }
}

/* ---------- fit: the hero's buttons stay on the first screen ---------- */
@media (max-width:639px){ .hero .lead__more{ display:none; } .hero__slot{ min-height:150px; } }
@media (min-width:900px) and (max-height:700px){
  .hero .lead__more{ display:none; }
  .hero__slot{ min-height:150px; margin-bottom:14px; }
  .hero .display{ font-size:3.1rem; }
}
@media (max-width:639px) and (max-height:720px){
  .hero{ padding-top:calc(var(--hdr) + 4px); padding-bottom:16px; }
  .hero__slot{ min-height:112px; margin-bottom:12px; }
  .hero .display{ font-size:2rem; }
  .hero .lead{ font-size:1rem; line-height:1.5; margin-top:12px; }
  .hero .actions{ margin-top:18px; }
  .hero .actions .btn{ min-height:48px; padding:12px 18px; }
}

/* ---------- phones: tidy ---------- */
@media (max-width:767px){
  /* the two bars are solid, so nothing on the page shows through them */
  .hdr.is-scrolled,.hdr.is-open{ background:#08090d; }
  .mnav{ background:#08090d; }
  .phonebar{ background:#08090d; }

  /* hero: the buttons sit side by side, which gives the mark the room */
  .hero .actions{ flex-wrap:nowrap; gap:10px; }
  .hero .actions .btn{ flex:1 1 0; min-width:0; padding-left:10px; padding-right:10px; white-space:nowrap; font-size:.9375rem; }
  .hero__slot{ margin-bottom:16px; }

  /* the eight systems: a compact list, each row plainly a link */
  .services{ padding:4px 0 12px; }
  .svc li{ padding:15px 30px 15px 0; }
  .svc li::after{ content:""; position:absolute; right:5px; top:23px; width:7px; height:7px; border-top:2px solid var(--muted); border-right:2px solid var(--muted); transform:rotate(45deg); pointer-events:none; }
  .svc .title{ font-size:1.0625rem; }
  .svc p{ margin-top:3px; font-size:.875rem; line-height:1.5; }

  /* work: each project is one block (screens, then its words) with a rule between blocks */
  .work{ padding:56px 0 24px; }
  .work .sec-head .lead{ font-size:1rem; }
  .project{ gap:20px; padding:34px 0 36px; }
  .project + .project{ border-top:1px solid var(--line-soft); }
  .project__media{ padding-bottom:11%; }
  .project__copy .body{ margin-top:12px; font-size:1rem; }
  .project__copy .ruled{ margin-top:16px; }
  .work__all{ margin-top:8px; }
}
@media (max-width:349px){
  .hero .actions{ flex-wrap:wrap; }
}
/* the closing mark and its heading are centred on phones, like the hero */
@media (max-width:899px){
  .contact__copy{ text-align:center; }
  .contact__slot{ margin-left:auto; margin-right:auto; justify-content:center; }
  .contact__slot .fallback{ margin:0 auto; }
  .contact__copy .lead{ margin-left:auto; margin-right:auto; }
  .contact .ruled{ text-align:left; margin-left:auto; margin-right:auto; }
}

/* ---------- moving between pages ---------- */
@view-transition{ navigation:auto; }
.hdr{ view-transition-name:site-header; }
.phonebar{ view-transition-name:site-bar; }
@media (prefers-reduced-motion:no-preference){
  ::view-transition-old(root){ animation:page-out .2s ease both; }
  ::view-transition-new(root){ animation:page-in .42s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes page-out{ to{ opacity:0; transform:translateY(-10px); } }
@keyframes page-in{ from{ opacity:0; transform:translateY(14px); } }

/* ---------- the hero's words fall back as the page moves on ---------- */
.hero .display,.hero .lead,.hero .actions{ translate:0 calc(var(--hy,0) * -1px); opacity:var(--ho,1); }
/* ---------- a paragraph that lights up as it is read ---------- */
.lit__w{ transition:opacity .25s linear; }
@media (prefers-reduced-motion:reduce){ .hero .display,.hero .lead,.hero .actions{ translate:none; opacity:1; } .lit__w{ opacity:1 !important; } }

/* ---------- very small phones (320 wide, under 600 tall): everything still fits ---------- */
@media (max-width:639px) and (max-height:600px){
  .hero__slot{ min-height:84px; margin-bottom:8px; }
  .hero .display{ font-size:1.75rem; }
  .hero .lead{ font-size:.9375rem; line-height:1.45; margin-top:10px; }
  .hero .actions{ margin-top:14px; }
  .hero .actions .btn{ min-height:46px; padding-top:10px; padding-bottom:10px; }
  .forge-on .process .headline{ font-size:1.3125rem; }
  .forge-on .process__slot{ height:12svh; margin-top:0; }
  .forge-on .process__grid{ gap:4px; }
  .forge-on .step{ padding:5px 0; }
  .forge-on .step__more p{ font-size:.8125rem; line-height:1.4; }
}

/* ---------- a phone on its side: the still version, with the words first ---------- */
@media (max-height:479px){
  .hero{ min-height:0; padding:calc(var(--hdr) + 18px) 0 28px; }
  .hero__slot{ display:none; }
  .hero .display{ font-size:clamp(1.75rem,4.6vw,2.4rem); max-width:26ch; }
  .hero .lead{ font-size:1rem; line-height:1.5; margin-top:12px; max-width:46rem; }
  .hero .lead__more{ display:none; }
  .hero .actions{ margin-top:16px; flex-wrap:nowrap; width:auto; }
  .hero .actions .btn{ flex:0 0 auto; min-height:46px; }
}
@media (max-height:399px){
  .hero{ padding-top:calc(var(--hdr) + 10px); }
  .hero .display{ font-size:1.625rem; }
  .hero .lead{ font-size:.9375rem; margin-top:8px; }
  .hero .actions{ margin-top:12px; }
  .hero .actions .btn{ min-height:44px; padding-top:8px; padding-bottom:8px; }
}
