/* ==========================================================================
   ASBC — Advanced Systems Building Company
   ========================================================================== */

:root {
  --bg: #050506;
  --ink: #ece7de;
  --ink-2: rgba(236, 231, 222, 0.64);
  --ink-3: rgba(236, 231, 222, 0.4);
  --line: rgba(236, 231, 222, 0.12);
  --line-2: rgba(236, 231, 222, 0.22);
  --gold: #d6b680;
  --gold-2: #f3e2bd;
  --gold-3: #a8814f;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0b0a08; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 500;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  transform: translateY(-200%); transition: transform .4s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Atmosphere layers ---------- */

#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; opacity: 0;
  transition: opacity 1.8s var(--ease);
}
#gl.on { opacity: 1; }
.no-webgl #gl { display: none; }

.bg-fallback {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 72% 42%, rgba(214, 182, 128, 0.10), transparent 70%),
    radial-gradient(40% 40% at 18% 85%, rgba(140, 160, 255, 0.05), transparent 70%),
    var(--bg);
}

.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 45; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(9) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  11% { transform: translate(-5%, -8%); }
  22% { transform: translate(-12%, 4%); }
  33% { transform: translate(6%, -14%); }
  44% { transform: translate(-4%, 12%); }
  55% { transform: translate(-12%, 6%); }
  66% { transform: translate(12%, 0); }
  77% { transform: translate(0, 10%); }
  88% { transform: translate(4%, -12%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: none;
  clip-path: inset(0% 0% 0% 0%);
}
.js .loader { display: grid; place-items: center; }
.no-motion .loader { display: none !important; }

.loader-word {
  display: flex; overflow: hidden;
  font-weight: 600; font-size: clamp(4.5rem, 17vw, 15rem);
  letter-spacing: -0.065em; line-height: .9; padding: 0 .06em .06em 0;
}
.loader-word span { display: inline-block; }
.js .loader-word span { transform: translateY(110%); }
.loader-word span:last-child { color: var(--gold); }

.loader-bar {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 40px);
  height: 1px; background: var(--line);
}
.loader-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transform-origin: left; transform: scaleX(0);
}
.loader-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.loader-count { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Type system ---------- */

.label {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}

.display {
  font-weight: 500;
  font-size: clamp(3.2rem, 9.4vw, 11.5rem);
  line-height: .9;
  letter-spacing: -0.058em;
}
.h2 {
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 6.6rem);
  line-height: .94;
  letter-spacing: -0.052em;
}
.h3 {
  font-weight: 500;
  font-size: clamp(2.8rem, 5.6vw, 6.6rem);
  line-height: .92;
  letter-spacing: -0.052em;
}
.body {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.62; color: var(--ink-2); max-width: 46ch;
}

.display em, .h2 em, .h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.015em;
  padding-right: .08em;
  background: linear-gradient(100deg, #a8814f 0%, #f3e2bd 30%, #d6b680 55%, #fff4dc 75%, #b8915c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* masked line reveals */
.line { display: block; overflow: hidden; padding: 0 .06em .12em 0; margin-bottom: -.12em; }
.line > span { display: block; will-change: transform; }

/* ---------- HUD ---------- */

.hud { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.hud-c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--line-2); }
.hud-c.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.hud-c.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.hud-c.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-c.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

.hud-l, .hud-r {
  position: absolute; bottom: 18px;
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hud-l { left: 40px; gap: 10px; }
.hud-r { right: 40px; }
.hud-r b { font-weight: 500; color: var(--ink-2); }
.hud-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px rgba(214, 182, 128, .8);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hud-mask { display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4em; }
.hud-mask span { display: inline-block; }

.hud-progress {
  position: absolute; right: 22px; top: 50%; width: 1px; height: 120px;
  transform: translateY(-50%); background: var(--line);
}
.hud-progress i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  transform-origin: top; transform: scaleY(0);
}

/* ---------- Cursor ---------- */

.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none; border-radius: 50%;
  transition: opacity .4s var(--ease);
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-2); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(236, 231, 222, .45);
  display: grid; place-items: center;
  mix-blend-mode: difference;
  transition: width .55s var(--ease), height .55s var(--ease), margin .55s var(--ease),
              background-color .55s var(--ease), border-color .55s var(--ease), opacity .4s var(--ease);
}
.cursor-hover .cursor-ring {
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  background-color: #fff; border-color: transparent;
}
.cursor-hover .cursor-dot { opacity: 0; }
.cursor-text .cursor-ring { width: 100px; height: 100px; margin: -50px 0 0 -50px; }
.cursor-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #000; opacity: 0; transition: opacity .3s var(--ease);
}
.cursor-text .cursor-label { opacity: 1; }
.cursor-away .cursor-dot, .cursor-away .cursor-ring { opacity: 0; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 350;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(236, 231, 222, .96); color: #0b0a08;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  transition: transform .9s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 6, .85), rgba(5, 5, 6, 0));
  opacity: 0; transition: opacity .6s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-130%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); overflow: visible; }
.brand-mark [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.brand-mark circle { fill: var(--gold); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-sub {
  font-family: var(--mono); font-size: 9.5px; line-height: 1.35; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  padding-left: 12px; border-left: 1px solid var(--line-2);
}

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a {
  display: inline-block; overflow: hidden; line-height: 1.35;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); transition: color .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.roll { display: inline-block; position: relative; transition: transform .65s var(--ease); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--gold-2); }
a:hover > .roll, button:hover > .roll { transform: translateY(-100%); }

/* ---------- Pills ---------- */

.pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--ink);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(102%);
  transition: transform .7s var(--ease), border-radius .7s var(--ease);
}
.pill:hover { color: #0b0a08; border-color: var(--ink); }
.pill:hover::before { transform: translateY(0); border-radius: 0; }
.pill-gold {
  background: linear-gradient(120deg, #b38c58, #f1ddb5 45%, #cfa86f);
  border-color: transparent; color: #0b0a08;
}
.pill-gold::before { background: var(--ink); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Layout ---------- */

main { position: relative; z-index: 2; }
section { position: relative; }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(104px + 2vh) var(--pad) calc(var(--pad) + 20px);
}
.hero-meta { display: flex; justify-content: space-between; gap: 24px; }
.hero-meta .label b { color: var(--gold); font-weight: 400; }
.hero-title { margin: auto 0 5vh; }
.hero-title .line:nth-child(2) > span { padding-left: 9vw; }
.hero-title .line:nth-child(3) > span { padding-left: 3.4vw; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 460px) 1fr; align-items: end; gap: 32px;
}
.lead { font-size: clamp(1rem, 1.18vw, 1.22rem); line-height: 1.6; color: var(--ink-2); }
.lead strong { color: var(--ink); font-weight: 500; }
.scroll-cue { justify-self: end; display: flex; align-items: center; gap: 16px; }
.scroll-line { position: relative; width: 84px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll-line i {
  position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-100%); animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* Manifesto */
.manifesto {
  min-height: 170vh;
  display: flex; align-items: center;
  padding: 24vh var(--pad);
}
.manifesto-inner { max-width: 1320px; }
.manifesto-label { margin-bottom: 5vh; }
.manifesto-text {
  font-size: clamp(1.9rem, 4.4vw, 5rem);
  font-weight: 400; line-height: 1.06; letter-spacing: -0.04em;
  text-shadow: 0 2px 40px rgba(5, 5, 6, .5);
}
.manifesto-text em { font-family: var(--serif); font-style: italic; color: var(--gold-2); letter-spacing: -0.01em; }
.manifesto-sign { display: flex; align-items: center; gap: 16px; margin-top: 7vh; }
.manifesto-sign .rule { width: 64px; height: 1px; background: var(--gold); }

/* Services */
.section-head { padding: 26vh var(--pad) 4vh; }
.section-head .label { display: block; margin-bottom: 4vh; }

.service {
  min-height: 118vh;
  display: flex; align-items: center;
  padding: 12vh var(--pad);
}
.service-inner { width: min(600px, 100%); }
.service-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.service-idx { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--gold); }
.rule-h { width: 48px; height: 1px; background: var(--line-2); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px;
  border: 1px solid rgba(214, 182, 128, .35); border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(214, 182, 128, .06);
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(214, 182, 128, .7); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(214, 182, 128, 0); }
}
.service .h3 { margin-bottom: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.tags li {
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(5, 5, 6, .4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.tags li:hover { color: var(--gold-2); border-color: rgba(214, 182, 128, .5); }
.spec { margin-top: 40px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.spec dd { color: var(--ink); font-size: .98rem; }

/* Process */
.process-pin {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 12vh 0 9vh;
}
.process-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  padding: 0 var(--pad); margin-bottom: 7vh;
}
.process-head .label { display: block; margin-bottom: 3vh; }
.process-intro { max-width: 38ch; }
.process-track {
  display: flex; gap: clamp(14px, 1.6vw, 28px);
  width: max-content; padding: 0 var(--pad);
  will-change: transform;
}
.step {
  position: relative; overflow: hidden;
  width: clamp(300px, 28vw, 430px);
  min-height: clamp(380px, 52vh, 540px);
  padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(236, 231, 222, .06), rgba(236, 231, 222, .012) 55%, rgba(214, 182, 128, .03));
  -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
}
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 226, 189, .7), transparent);
}
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-num {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(5rem, 8.6vw, 9rem); line-height: .8; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(214, 182, 128, .6);
  margin: 4vh 0 2vh;
}
.step-title { font-size: clamp(1.7rem, 2.2vw, 2.4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 12px; }
.step-body { color: var(--ink-2); font-size: 1rem; line-height: 1.58; }
.step-out {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.step-end {
  justify-content: center; align-items: flex-start;
  background: linear-gradient(160deg, rgba(214, 182, 128, .14), rgba(214, 182, 128, .02) 60%);
  border-color: rgba(214, 182, 128, .28);
}
.step-end .h2 { font-size: clamp(2.4rem, 3.6vw, 4rem); margin-bottom: 32px; }

.process-progress { position: relative; height: 1px; margin: 6vh var(--pad) 0; background: var(--line); }
.process-progress i {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
}

/* Standards */
.standards { padding: 26vh var(--pad) 16vh; }
.standards .section-head { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 9vh; border-top: 1px solid var(--line); }
.stat { padding: 40px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num {
  display: flex; align-items: baseline;
  font-size: clamp(3.6rem, 7.4vw, 8.6rem); font-weight: 400; line-height: 1;
  letter-spacing: -0.06em; font-variant-numeric: tabular-nums;
}
.stat-num small {
  font-family: var(--serif); font-style: italic; font-size: .36em;
  letter-spacing: 0; color: var(--gold); margin: 0 .12em;
}
.stat .label { display: block; margin-top: 20px; max-width: 24ch; line-height: 1.7; }

/* Marquee */
.marquee {
  overflow: hidden; padding: 7vh 0 8vh;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0), rgba(5, 5, 6, .55) 50%, rgba(5, 5, 6, 0));
}
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-row + .marquee-row { margin-top: 1.4vh; }
.marquee-chunk { display: flex; align-items: center; flex-shrink: 0; }
.mq-item {
  font-size: clamp(3rem, 8.6vw, 9.8rem); font-weight: 500; line-height: 1.05;
  letter-spacing: -0.055em; white-space: nowrap; padding: 0 .3em;
}
.mq-item em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--gold-2); }
.mq-outline { color: transparent; -webkit-text-stroke: 1px rgba(236, 231, 222, .38); }
.mq-star { width: clamp(18px, 2.4vw, 40px); height: auto; color: var(--gold); flex-shrink: 0; }

/* Contact */
.contact {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 42vh var(--pad) 0;
}
.contact-title { font-size: clamp(2.8rem, 7vw, 8.6rem); margin: 24px 0 6vh; }
.contact-row {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px;
  padding-bottom: 8vh; border-bottom: 1px solid var(--line);
}
.mail {
  position: relative; display: inline-flex; align-items: center; gap: .3em;
  font-size: clamp(1.45rem, 3.4vw, 3.6rem); font-weight: 400; letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: currentColor; transform-origin: right;
}
.mail:hover::after { animation: wipe 1.1s var(--ease-io); }
@keyframes wipe {
  0% { transform: scaleX(1); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: right; }
  50.1% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.mail-arrow { display: inline-block; color: var(--gold); transition: transform .7s var(--ease); }
.mail:hover .mail-arrow { transform: translate(.14em, -.14em); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 28px;
  padding: 28px 0 64px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.footer a { display: inline-block; overflow: hidden; line-height: 1.35; color: var(--ink-2); transition: color .4s var(--ease); }
.footer a:hover { color: var(--gold-2); }

/* ---------- Fallback: no motion / no JS ---------- */

.no-motion .line > span,
.no-motion [data-reveal],
.no-motion [data-reveal] > *,
.no-motion [data-hero-fade],
.no-motion .nav, .no-motion .hud {
  transform: none !important; opacity: 1 !important; visibility: visible !important;
}
.no-motion .w { opacity: 1 !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .brand-sub { display: none; }
}

@media (max-width: 900px) {
  .nav { padding: 16px var(--pad); }
  .nav-links { display: none; }
  .nav .pill { height: 40px; padding: 0 16px; }
  .hud { display: none; }

  .hero { padding-top: 96px; }
  .hero-meta .label:nth-child(2) { display: none; }
  .hero-title { font-size: clamp(3rem, 14.5vw, 6rem); margin-bottom: 4vh; }
  .hero-title .line:nth-child(2) > span,
  .hero-title .line:nth-child(3) > span { padding-left: 0; }
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { justify-self: start; }

  .manifesto { min-height: 140vh; }
  .service { min-height: 100vh; }
  .service-inner { text-shadow: 0 2px 24px rgba(5, 5, 6, .9); }

  .process-pin { min-height: 0; padding: 16vh 0 10vh; }
  .process-head { flex-direction: column; align-items: flex-start; }
  .process-track { flex-direction: column; width: auto; }
  .step { width: 100%; min-height: 0; gap: 8px; }
  .process-progress { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 32px 16px 32px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .contact { padding-top: 46vh; }
  .footer { flex-direction: column; align-items: flex-start; padding-bottom: 34px; }
}

@media (max-width: 520px) {
  .brand-name { font-size: 16px; }
  .contact-actions { width: 100%; }
  .contact-actions .pill { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-line i, .badge i, .hud-dot,
  .display em, .h2 em, .h3 em { animation: none !important; }
  #gl { transition-duration: .4s; }
}
