/* Smart Systems Controls — design system & layout */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"),
       url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations"),
       url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
/* metric-adjusted fallbacks to limit layout shift while fonts load */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 88%; descent-override: 21%; }
@font-face { font-family: "Mono Fallback"; src: local("Courier New"); size-adjust: 100%; }

:root {
  --ink: #07090c;
  --ink-2: #0e1217;
  --ink-3: #161b22;
  --paper: #ece8e1;
  --paper-2: #dfdad1;
  --muted: #8b9098;
  --muted-ink: #5d5a55;
  --line: rgba(236, 232, 225, .12);
  --line-ink: rgba(7, 9, 12, .14);
  --signal: #ff3d17;
  --signal-2: #ff6a3d;
  --armed: #45e09a;

  --f-display: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --f-text: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Mono Fallback", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: clamp(14px, 2vw, 28px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --fs-mono: clamp(.68rem, .62rem + .2vw, .78rem);
  --fs-body: clamp(1rem, .95rem + .25vw, 1.15rem);
  --fs-lead: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  --fs-h2: clamp(2.3rem, 1.2rem + 5vw, 6.4rem);
  --fs-hero: clamp(2.7rem, .6rem + 9.4vw, 11rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.mono { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" var(--wdth, 125);
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0;
}
.eyebrow { display: inline-flex; align-items: center; gap: .8em; margin: 0 0 1.6rem; color: var(--muted); }
.eyebrow .idx { color: var(--signal); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; position: relative; flex: none; }
.dot--armed { background: var(--armed); box-shadow: 0 0 0 0 rgba(69, 224, 154, .6); animation: ping 2.2s var(--ease-out) infinite; }
.dot--signal { background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 61, 23, .6); animation: pingRed 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(69, 224, 154, .55); } 100% { box-shadow: 0 0 0 12px rgba(69, 224, 154, 0); } }
@keyframes pingRed { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 23, .6); } 100% { box-shadow: 0 0 0 12px rgba(255, 61, 23, 0); } }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: var(--h); padding: 0 1.6em;
  border-radius: 999px;
  font-weight: 650; font-size: .98rem; letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), background-color .4s var(--ease-out);
  white-space: nowrap;
}
.btn--sm { --h: 44px; padding: 0 1.2em; font-size: .9rem; }
.btn--lg { --h: 64px; padding: 0 2em; font-size: 1.05rem; }
.btn--signal { background: var(--signal); color: #120402; }
.btn--signal::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper);
  border-radius: inherit;
  transform: scale(0); transform-origin: var(--mx, 50%) var(--my, 50%);
  transition: transform .6s var(--ease-out);
}
.btn--signal:hover::before { transform: scale(2.2); }
.btn__pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.btn__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; animation: btnPulse 1.8s var(--ease-out) infinite; }
@keyframes btnPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.btn--ghost { border-color: rgba(236, 232, 225, .35); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(236, 232, 225, .08); }

/* letter roll (built by JS) */
[data-roll] { display: inline-block; position: relative; }
.roll { display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.2; }
.roll__c { display: inline-block; position: relative; transition: transform .55s var(--ease-out); transition-delay: calc(var(--i) * 14ms); white-space: pre; }
.roll__c::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
a:hover .roll__c, button:hover .roll__c, .roll-host:hover .roll__c { transform: translateY(-100%); }

/* ---------- Boot loader ---------- */
.boot { position: fixed; inset: 0; z-index: 100; display: none; background: var(--ink); color: var(--paper); }
.js .boot { display: grid; place-items: center; }
.boot.is-done { display: none; }
.boot__inner { width: min(560px, calc(100% - 2 * var(--gutter))); }
.boot__brand { color: var(--signal); margin: 0 0 1.5rem; }
.boot__lines { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: .55rem; color: var(--muted); }
.boot__lines li { display: flex; align-items: center; gap: .8rem; opacity: 0; }
.boot__lines i { flex: 1; border-bottom: 1px dotted rgba(236, 232, 225, .25); }
.boot__lines b { color: var(--armed); font-weight: 600; }
.boot__count { display: flex; align-items: baseline; gap: 1rem; }
.boot__count span { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 125; font-size: clamp(4rem, 14vw, 9rem); line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.boot__count small { color: var(--muted); }
.boot__ring { position: absolute; left: 50%; top: 50%; width: 260vmax; height: 260vmax; margin: -130vmax; border-radius: 50%; border: 2px solid var(--signal); box-shadow: 0 0 40px rgba(255,61,23,.5), inset 0 0 40px rgba(255,61,23,.35); opacity: 0; transform: scale(0); pointer-events: none; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--signal); }
.cursor__ring { width: 34px; height: 34px; border: 1px solid rgba(236, 232, 225, .5); transition: width .4s var(--ease-out), height .4s var(--ease-out), border-color .3s, background-color .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--signal); background: rgba(255, 61, 23, .08); }
.cursor.is-light .cursor__ring { border-color: rgba(7, 9, 12, .45); }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-2%); } 80% { transform: translate(3%,3%); } }

.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-webgl .scene { display: none; }
.no-webgl .hero, .no-webgl .sequence { background: linear-gradient(180deg, rgba(7,9,12,.55), var(--ink) 95%), url("../img/ceiling-pipes-1600.webp") center / cover fixed; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s, color .4s;
}
.nav.is-scrolled { background: rgba(7, 9, 12, .62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand__mark { width: 38px; height: 38px; transition: transform 1s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__name { font-weight: 750; font-variation-settings: "wdth" 118; font-size: .82rem; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .92rem; font-weight: 550; }
.nav__links a { position: relative; padding: .4rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236, 232, 225, .3); background: transparent; position: relative; cursor: pointer; }
.nav__menu span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav__menu span:nth-child(1) { top: 18px; } .nav__menu span:nth-child(2) { top: 25px; }
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115; font-size: clamp(2rem, 9vw, 3.4rem); letter-spacing: -.03em; line-height: 1.12; border-bottom: 1px solid var(--line); padding: .5rem 0; }
.menu nav a small { color: var(--signal); }
.menu__foot { color: var(--muted); line-height: 2; }

/* ---------- HUD ---------- */
.hud { position: fixed; right: var(--gutter); bottom: 28px; z-index: 40; display: flex; align-items: center; gap: 14px; mix-blend-mode: difference; color: #fff; pointer-events: none; }
.hud__rail { width: 120px; height: 1px; background: rgba(255, 255, 255, .25); position: relative; }
.hud__fill { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--gutter) 40px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 20% 100%, rgba(7,9,12,.85), transparent 60%); }
.hero__grid { position: relative; width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: end; }
.hero__eyebrow { grid-column: 1 / -1; color: var(--paper); opacity: .8; }
.hero__title { grid-column: 1 / -1; font-size: var(--fs-hero); --wdth: 125; }
.hero__title .line { display: block; }
.hero__title .ch { font-variation-settings: "wdth" var(--wdth); }
.ch-mask, .ln-mask { padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .line--signal { color: var(--signal); }
.hero__period { color: var(--paper); }
.hero__aside { grid-column: 8 / -1; grid-row: 2; align-self: start; margin-top: clamp(.2rem, 2.6vw, 3rem); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.4; max-width: 34ch; margin: 0 0 1.6rem; color: rgba(236, 232, 225, .86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { grid-column: 1 / 8; list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; color: var(--muted); }
.hero__meta span { color: var(--signal); margin-right: .6em; }
.hero__scroll { grid-column: 8 / -1; justify-self: start; margin-top: 3rem; display: inline-flex; align-items: center; gap: .9rem; color: var(--paper); opacity: .8; }
.hero__scroll-line { width: 56px; height: 1px; background: rgba(236,232,225,.3); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--signal); animation: scan 2s var(--ease-io) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------- Sequence ---------- */
.sequence { position: relative; z-index: 1; height: 320vh; }
.sequence__sticky { position: sticky; top: 0; height: 100svh; padding: 110px var(--gutter) 48px; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto; column-gap: 20px; }
.sequence__clock { grid-column: 1 / -1; display: flex; align-items: center; gap: .7rem; color: var(--paper); }
.sequence__clock #seqClock { font-variant-numeric: tabular-nums; }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.sequence__steps { grid-column: 1 / 7; grid-row: 2; align-self: end; list-style: none; margin: 0; padding: 0; display: grid; }
.step { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.step.is-active { opacity: 1; visibility: visible; }
.js .step { transition: opacity .5s var(--ease-out), visibility .5s; }
.step__k { color: var(--signal); margin: 0 0 1rem; }
.step[data-step="2"] .step__k { color: var(--armed); }
.step__t { font-size: clamp(3.4rem, 1rem + 9vw, 10rem); }
.step__p { max-width: 38ch; font-size: var(--fs-lead); line-height: 1.4; color: rgba(236,232,225,.82); margin: 1.4rem 0 0; }
.sequence__legend { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 1.6rem; margin-top: 2rem; color: var(--muted); }
.sequence__legend span { display: inline-flex; align-items: center; gap: .6rem; }

/* ---------- Services (light chapter) ---------- */
.services { position: relative; z-index: 2; background: var(--paper); color: var(--ink); padding: clamp(90px, 12vw, 180px) var(--gutter) clamp(80px, 10vw, 150px); border-radius: var(--radius) var(--radius) 0 0; }
.services .eyebrow { color: var(--muted-ink); }
.services__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; margin-bottom: clamp(3rem, 7vw, 6rem); }
.services__head .eyebrow { grid-column: 1 / -1; }
.services__title { grid-column: 1 / 9; grid-row: 2; font-size: var(--fs-h2); }
.services__intro { grid-column: 9 / -1; grid-row: 2; align-self: end; margin: 0; color: var(--muted-ink); max-width: 42ch; }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-ink); counter-reset: svc; }
.svc { border-bottom: 1px solid var(--line-ink); position: relative; }
.svc__head {
  width: 100%; background: none; border: 0; padding: clamp(1.2rem, 2.6vw, 2.2rem) 0; cursor: pointer; text-align: left; color: var(--ink);
  display: grid; grid-template-columns: 3.2rem 1.6rem 1fr auto 2.6rem; align-items: center; gap: 0 1rem;
}
.svc__idx { color: var(--muted-ink); }
.svc__node { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; transition: background-color .3s, border-color .3s; }
.svc__node::before, .svc__node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--signal); opacity: 0; }
.svc__title { font-family: var(--f-display); font-weight: 750; font-size: clamp(1.45rem, .8rem + 2.7vw, 3.5rem); line-height: 1; letter-spacing: -.03em; font-variation-settings: "wdth" var(--wdth, 100); }
.svc__tag { color: var(--muted-ink); text-align: right; }
.svc__plus { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line-ink); position: relative; transition: background-color .4s, border-color .4s, transform .5s var(--ease-out); }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease-out); }
.svc__plus::after { transform: rotate(90deg); }
.svc__head:hover .svc__node, .svc.is-open .svc__node { background: var(--signal); border-color: var(--signal); }
.svc__head:hover .svc__node::before, .svc.is-open .svc__node::before { animation: nodeRing 1.6s var(--ease-out) infinite; }
.svc__head:hover .svc__node::after, .svc.is-open .svc__node::after { animation: nodeRing 1.6s .5s var(--ease-out) infinite; }
@keyframes nodeRing { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.svc__head:hover .svc__plus { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc.is-open .svc__plus { background: var(--signal); border-color: var(--signal); color: var(--ink); transform: rotate(180deg); }
.svc.is-open .svc__plus::after { transform: rotate(0deg); }

.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; display: grid; grid-template-columns: 4.8rem 1fr 1fr; column-gap: 1rem; }
.svc__inner img { display: none; }
.svc__lead { grid-column: 2; font-size: var(--fs-lead); line-height: 1.4; margin: 0 0 2rem; max-width: 40ch; }
.svc__caps { grid-column: 3; list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .65rem; color: var(--muted-ink); }
.svc__caps li::before { content: "+ "; color: var(--signal); }
.link-arrow { grid-column: 2; justify-self: start; margin-bottom: 2.4rem; font-weight: 650; border-bottom: 1px solid currentColor; padding-bottom: .2rem; display: inline-flex; gap: .5rem; }
.link-arrow span { transition: transform .4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }

.svc-preview { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; pointer-events: none; clip-path: inset(50% 50% 50% 50% round 18px); display: none; }
.has-cursor .svc-preview { display: block; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }

/* ---------- Frame ---------- */
.frame { position: relative; z-index: 2; background: var(--paper); padding: 0 0 clamp(60px, 8vw, 120px); }
.frame__media { position: relative; height: 100svh; margin: 0 auto; overflow: hidden; clip-path: inset(0 var(--gutter) 0 var(--gutter) round var(--radius)); }
.frame__media img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; }
.frame__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,12,.15), rgba(7,9,12,.75)); }
.frame__copy { position: absolute; left: calc(var(--gutter) * 2); right: calc(var(--gutter) * 2); bottom: clamp(32px, 6vw, 80px); }
.frame__copy .eyebrow { color: rgba(236,232,225,.75); }
.frame__title { font-size: var(--fs-h2); color: var(--paper); }
.frame__corner { position: absolute; width: 22px; height: 22px; border-color: var(--signal); border-style: solid; border-width: 0; }
.frame__corner--tl { top: calc(var(--gutter) + 18px); left: calc(var(--gutter) * 2); border-top-width: 2px; border-left-width: 2px; }
.frame__corner--tr { top: calc(var(--gutter) + 18px); right: calc(var(--gutter) * 2); border-top-width: 2px; border-right-width: 2px; }
.frame__corner--bl { bottom: 18px; left: calc(var(--gutter) * 2); border-bottom-width: 2px; border-left-width: 2px; display: none; }
.frame__corner--br { bottom: 18px; right: calc(var(--gutter) * 2); border-bottom-width: 2px; border-right-width: 2px; display: none; }

/* ---------- Process ---------- */
.process { position: relative; z-index: 2; background: var(--ink); overflow: hidden; }
.process__pin { min-height: 100svh; display: flex; align-items: center; }
.process__track { position: relative; display: flex; align-items: stretch; gap: clamp(24px, 3vw, 48px); padding: 120px var(--gutter) 80px; width: max-content; }
.process__intro { width: min(560px, 80vw); flex: none; display: flex; flex-direction: column; justify-content: center; padding-right: 3vw; }
.process__intro p:last-child { color: rgba(236,232,225,.75); max-width: 40ch; margin: 2rem 0 0; }
.process__title { font-size: clamp(2.3rem, 1rem + 4.2vw, 5.4rem); }
.process__line { position: absolute; left: calc(var(--gutter) + min(560px, 80vw) + clamp(24px, 3vw, 48px)); right: var(--gutter); top: 120px; height: 1px; background: var(--line); }
.process__line-fill { position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(255, 61, 23, .7); }
.pstep { position: relative; flex: none; width: clamp(300px, 30vw, 440px); padding-top: 3.2rem; display: flex; flex-direction: column; }
.pstep__node { position: absolute; top: -6px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 1.5px solid rgba(236,232,225,.4); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.pstep.is-lit .pstep__node { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px rgba(255,61,23,.18), 0 0 0 14px rgba(255,61,23,.08); }
.pstep__n { font-size: clamp(4rem, 7vw, 7.5rem); color: transparent; -webkit-text-stroke: 1.2px rgba(236,232,225,.35); transition: color .6s, -webkit-text-stroke-color .6s; }
.pstep.is-lit .pstep__n { color: var(--paper); -webkit-text-stroke-color: transparent; }
.pstep__t { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); font-weight: 750; font-variation-settings: "wdth" 112; letter-spacing: -.02em; margin: 1.2rem 0 .6rem; }
.pstep p:not(.pstep__n) { color: rgba(236,232,225,.72); margin: 0 0 1.6rem; max-width: 36ch; }
.pstep img { margin-top: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; filter: grayscale(.6) contrast(1.05); transition: filter .8s var(--ease-out); }
.pstep.is-lit img { filter: none; }

/* ---------- Statement ---------- */
.statement { position: relative; z-index: 2; background: var(--ink); padding: clamp(80px, 12vw, 200px) var(--gutter); }
.statement__text { margin: 0; font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 112; font-size: clamp(1.9rem, .8rem + 4.2vw, 5.6rem); line-height: 1.04; letter-spacing: -.03em; max-width: 22ch; }
.statement__text em { font-style: normal; }
.statement__text .w { opacity: .14; transition: none; }
.no-motion .statement__text .w { opacity: 1; }
.statement__text em .w { color: var(--signal); }

/* ---------- Why ---------- */
.why { position: relative; z-index: 2; background: var(--ink); padding: 0 var(--gutter) clamp(90px, 12vw, 180px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: start; }
.feed { grid-column: 1 / 7; position: sticky; top: 100px; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.feed img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.85); }
.feed::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); pointer-events: none; mix-blend-mode: multiply; }
.feed__hud { position: absolute; inset: 0; z-index: 2; color: #fff; padding: 20px; }
.feed__hud > span { position: absolute; }
.feed__tl { top: 20px; left: 20px; display: flex; align-items: center; gap: .6rem; }
.feed__tr { top: 20px; right: 20px; font-variant-numeric: tabular-nums; }
.feed__bl { bottom: 20px; left: 20px; opacity: .75; }
.feed__br { bottom: 20px; right: 20px; color: var(--armed); }
.feed__box { left: 40%; top: 30%; width: 34%; height: 26%; border: 1.5px solid var(--signal); animation: boxDrift 7s var(--ease-io) infinite alternate; }
.feed__box em { position: absolute; top: -1.9em; left: -1.5px; background: var(--signal); color: var(--ink); font-style: normal; padding: .2em .5em; white-space: nowrap; }
@keyframes boxDrift { 0% { transform: translate(0, 0); } 50% { transform: translate(-40%, 30%) scale(.9); } 100% { transform: translate(-70%, -10%) scale(1.1); } }
.feed__scan { left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.08)); animation: feedScan 4.5s linear infinite; }
@keyframes feedScan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.why__copy { grid-column: 8 / -1; padding-top: clamp(2rem, 8vw, 8rem); }
.why__title { font-size: clamp(2.2rem, 1rem + 3.6vw, 4.8rem); margin-bottom: 3rem; }
.why__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.why__list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.why__list li > span { color: var(--signal); padding-top: .35rem; }
.why__list h3 { margin: 0 0 .4rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: -.01em; }
.why__list p { margin: 0; color: rgba(236,232,225,.7); }

/* ---------- Quote ---------- */
.quote { position: relative; z-index: 2; background: var(--paper); color: var(--ink); padding: clamp(90px, 12vw, 170px) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; border-radius: var(--radius) var(--radius) 0 0; }
.quote .eyebrow { color: var(--muted-ink); }
.quote__intro { grid-column: 1 / 6; }
.quote__intro > p:not(.eyebrow) { color: var(--muted-ink); max-width: 38ch; margin: 2rem 0 2.6rem; }
.quote__title { font-size: clamp(2.3rem, 1rem + 4vw, 5.2rem); }
.quote__contact { margin: 0; display: grid; gap: 1.2rem; }
.quote__contact dt { color: var(--muted-ink); margin-bottom: .2rem; }
.quote__contact dd { margin: 0; font-size: clamp(.8rem, .7rem + .3vw, .95rem); text-transform: none; letter-spacing: 0; }
.quote__contact a { border-bottom: 1px solid var(--line-ink); transition: border-color .3s; }
.quote__contact a:hover { border-color: var(--signal); }

.form { grid-column: 7 / -1; display: grid; gap: 1.6rem; }
.form__chips { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.form__chips legend { margin-bottom: 1rem; color: var(--muted-ink); padding: 0; }
.form__chips legend small { text-transform: none; letter-spacing: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-ink); font-weight: 600; font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s; }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { background: var(--signal); border-color: var(--signal); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(7,9,12,.3); background: transparent; padding: 1.5rem 0 .6rem; font-size: 1.05rem; border-radius: 0; outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 60%, calc(100% - 7px) 60%; background-size: 5px 5px; background-repeat: no-repeat; }
.field label { position: absolute; left: 0; top: 1.5rem; color: var(--muted-ink); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-1.35rem) scale(.78); color: var(--ink); }
.field.is-invalid input { border-color: var(--signal); }
.field.is-invalid label { color: #c4250a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: .6rem; }
.form__status { margin: 0; color: var(--muted-ink); text-transform: none; letter-spacing: .02em; }
.form__status.is-ok { color: #0d7a4a; }
.form__status.is-err { color: #c4250a; }

/* ---------- Finale ---------- */
.finale { position: relative; z-index: 2; background: var(--ink); min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.finale__bg { position: absolute; inset: 0; opacity: .85; }
.finale__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 30% 50%, rgba(7,9,12,.85), rgba(7,9,12,.2) 70%); pointer-events: none; }
.finale__inner { position: relative; z-index: 1; padding: 140px var(--gutter); width: 100%; }
.finale__title { font-size: clamp(2.4rem, .8rem + 5.6vw, 7.6rem); max-width: 16ch; }
.finale__title span { color: var(--signal); }
.finale__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 3rem; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--ink); border-top: 1px solid var(--line); padding: 70px var(--gutter) 28px; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 2rem; }
.footer__k { color: var(--muted); margin: 0 0 1.2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer ul a { color: rgba(236,232,225,.8); transition: color .3s; }
.footer ul a:hover { color: var(--signal); }
.footer__status { display: flex; align-items: center; gap: .7rem; align-self: start; justify-self: end; color: var(--armed); white-space: nowrap; }
.footer__word { font-size: 12vw; line-height: .8; white-space: nowrap; width: max-content; margin: 4rem 0 2rem; color: #1a2029; -webkit-text-stroke: 1px rgba(236,232,225,.2); --wdth: 125; letter-spacing: -.05em; }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.footer__base a:hover { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-block; }
  .hero__aside { grid-column: 1 / -1; grid-row: auto; margin-top: 2rem; }
  .hero__meta { grid-column: 1 / -1; }
  .hero__scroll { grid-column: 1 / -1; justify-self: start; }
  .svc__tag { display: none; }
  .svc__head { grid-template-columns: 2.6rem 1.4rem 1fr 2.6rem; }
  .why__copy { grid-column: 7 / -1; }
}

@media (max-width: 760px) {
  :root { --fs-hero: clamp(2.6rem, 13.4vw, 4.6rem); }
  .nav { padding: 14px var(--gutter); }
  .nav__cta .btn { display: none; }
  .brand__name { font-size: .74rem; }
  .hero { padding-top: 100px; padding-bottom: 28px; }
  .hero__title { --wdth: 100; }
  .hero__meta { margin-top: 2rem; gap: .5rem 1.2rem; }
  .hero__scroll { margin-top: 1.6rem; }
  .hud { display: none; }

  .sequence { height: 300vh; }
  .sequence__sticky { padding: 90px var(--gutter) 32px; }
  .sequence__steps { grid-column: 1 / -1; }
  .step__t { --wdth: 110; }
  .sequence__legend { flex-wrap: wrap; gap: .6rem 1.2rem; }

  .services__title, .services__intro { grid-column: 1 / -1; grid-row: auto; }
  .services__intro { margin-top: 1.6rem; }
  .svc__head { grid-template-columns: 2.1rem 1fr 2.4rem; gap: 0 .6rem; }
  .svc__node { display: none; }
  .svc__title { --wdth: 92; }
  .svc__inner { grid-template-columns: 1fr; }
  .svc__inner img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 1.4rem; }
  .svc__lead, .svc__caps, .link-arrow { grid-column: 1; }

  .frame__media { height: 82svh; }
  .frame__corner { display: none; }

  .process__pin { display: block; }
  .process__track { width: auto; flex-direction: column; padding: 90px var(--gutter) 70px calc(var(--gutter) + 26px); gap: 3.4rem; }
  .process__intro { width: auto; padding-right: 0; margin-left: -26px; }
  .process__line { left: calc(var(--gutter) + 6px); right: auto; top: 0; bottom: 0; width: 1px; height: auto; margin-top: 0; }
  .process__line-fill { transform: scaleY(0); transform-origin: top; }
  .pstep { width: auto; padding-top: 0; }
  .pstep__node { left: -26px; top: 1.4rem; }
  .pstep__n { font-size: 4.2rem; }

  .why { display: block; }
  .feed { position: relative; top: 0; aspect-ratio: 4 / 4.4; }
  .why__copy { padding-top: 3.4rem; }

  .quote { display: block; }
  .form { margin-top: 3.4rem; }
  .form__row { grid-template-columns: 1fr; }
  .finale__ctas .btn { width: 100%; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
  .footer__status { justify-self: start; grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
