/* ═══════════════════════════════════════════════════════════════
   CEREBRUMX — "Synaptic Obsidian"
   deep blue-black obsidian · burnished synapse gold · bone type
   display: Unbounded · body: Instrument Sans · hud: IBM Plex Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #06070a;
  --ink-2: #0b0d13;
  --ink-3: #10131b;
  --bone: #ece8df;
  --bone-dim: #a8a49b;
  --amber: #f0a929;
  --amber-hot: #ffcf7d;
  --amber-deep: #b06f14;
  --hairline: rgba(236, 232, 223, 0.09);
  --hairline-strong: rgba(236, 232, 223, 0.16);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.83, 0, 0.17, 1);

  --pad-x: clamp(1.25rem, 5vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--amber-deep) var(--ink);
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
}

.u-amber { color: var(--amber); }

.skip {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 300;
  background: var(--amber);
  color: var(--ink);
  padding: 0.8em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.3s var(--ease-out);
}
.skip:focus-visible { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border-radius: 5px;
  border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--amber-deep); }
.u-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 169, 41, 0.5);
}

/* masked line reveal for display titles */
.tline { display: block; overflow: hidden; padding-top: 0.08em; margin-top: -0.08em; }
.tline__in {
  display: inline-block;
  transform: translateY(114%);
  transition: transform 1s var(--ease-snap);
}
.tline:nth-child(2) .tline__in { transition-delay: 0.12s; }
[data-reveal].is-in .tline__in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tline__in { transform: none !important; }
}

.tick { color: var(--amber); margin-right: 0.5em; font-size: 0.6em; vertical-align: 0.15em; }

/* ── Reveal system ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* .card declares its own transition shorthand (hover tilt) which would
   override the reveal transition — restore it until the card is in */
.card[data-reveal]:not(.is-in) {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ── Preloader ─────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark {
  width: 64px; height: 64px;
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  display: grid; place-items: center;
  position: relative;
}
.preloader__mark::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 16px;
  border: 1px solid var(--amber);
  animation: pre-pulse 1.6s var(--ease-out) infinite;
}
@keyframes pre-pulse {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.5); }
}
.preloader__glyph {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--amber);
}
.preloader__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--hairline-strong);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--amber);
  transition: width 0.25s var(--ease-out);
}
.preloader__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--bone-dim);
}

/* ── Cursor ────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 150;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--amber);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(240, 169, 41, 0.45);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s;
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(240, 169, 41, 0.9);
  background: rgba(240, 169, 41, 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Scroll progress ───────────────────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-hot));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
}

/* ── WebGL canvas ──────────────────────────────────────────── */
#cortex {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
body.loaded #cortex { opacity: var(--gl-opacity, 1); }

/* readability veil between canvas and content */
.cortex-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.86) 0%, rgba(6, 7, 10, 0.46) 36%, rgba(6, 7, 10, 0) 62%),
    radial-gradient(130% 100% at 72% 45%, rgba(6, 7, 10, 0) 40%, rgba(6, 7, 10, 0.5) 74%, rgba(6, 7, 10, 0.9) 100%);
}
@media (max-width: 820px) {
  .cortex-veil {
    background:
      linear-gradient(180deg, rgba(6, 7, 10, 0.3) 0%, rgba(6, 7, 10, 0.68) 52%, rgba(6, 7, 10, 0.92) 100%);
  }
}

/* ── Grain ─────────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s, box-shadow 0.35s;
  will-change: transform;
}
/* shine sweep */
.btn--solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.42) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}
@media (hover: hover) {
  .btn--solid:hover::after {
    transform: translateX(130%);
    transition: transform 0.85s var(--ease-out);
  }
}
.btn--solid {
  background: var(--amber);
  color: var(--ink);
  border: 1px solid var(--amber);
  font-weight: 500;
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--hairline-strong);
}
.btn--lg { padding: 1.15em 2.1em; font-size: 0.85rem; }
.btn__arr { transition: transform 0.35s var(--ease-out); }
@media (hover: hover) {
  .btn--solid:hover {
    background: var(--amber-hot);
    border-color: var(--amber-hot);
    box-shadow: 0 0 42px rgba(240, 169, 41, 0.35);
  }
  .btn--ghost:hover {
    border-color: var(--amber);
    color: var(--amber-hot);
  }
  .btn:hover .btn__arr { transform: translateX(5px); }
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  transition: background 0.5s ease, border-color 0.5s ease, padding 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 7, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  text-decoration: none;
}
.nav__logo em, .footer__brand em {
  font-style: normal;
  color: var(--amber);
}
.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--amber-hot); }
.nav__links a {
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease-snap);
}
.nav__links a:hover::after, .nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav__idx {
  color: var(--amber);
  font-size: 0.6rem;
  margin-right: 0.5em;
  vertical-align: 0.2em;
}
.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 130;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--bone);
  margin: 5px auto;
  transition: transform 0.4s var(--ease-snap), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--pad-x) 4rem;
}
.hero__inner { max-width: 900px; }
.hero__eyebrow {
  color: var(--bone-dim);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero__line {
  display: block;
  font-size: clamp(2.6rem, 9.5vw, 7.2rem);
}
.hero__line:not(.hero__line--x) {
  overflow: hidden;
  padding-top: 0.06em;
}
.hero__line .ch {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 0.9s var(--ease-snap);
  transition-delay: calc(var(--ci) * 42ms + 180ms);
}
body.loaded .hero__line .ch { transform: none; }
.hero__line--x {
  position: relative;
  color: var(--amber);
  font-size: clamp(3.4rem, 12vw, 9.4rem);
  line-height: 0.9;
  width: max-content;
}
.hero__x-echo {
  position: absolute;
  left: 0.62em;
  top: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 169, 41, 0.4);
  pointer-events: none;
  animation: x-drift 7s ease-in-out infinite alternate;
}
@keyframes x-drift {
  from { transform: translate(0, 0); opacity: 0.8; }
  to   { transform: translate(0.12em, -0.05em); opacity: 0.35; }
}
.hero__sub {
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--bone-dim);
  margin-bottom: 2.6rem;
  border-left: 1px solid rgba(240, 169, 41, 0.38);
  padding-left: 1.25rem;
}
.hero__sub strong { color: var(--bone); font-weight: 600; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__hud {
  position: absolute;
  z-index: 2;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
}
.hero__hud--tl { top: 6.2rem; left: var(--pad-x); }
.hero__hud--tr { top: 6.2rem; right: var(--pad-x); text-align: right; }
.hero__hud--bl { bottom: 2.4rem; left: var(--pad-x); }
.hud-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 0.7em;
  box-shadow: 0 0 10px var(--amber);
  animation: hud-blink 2.4s ease-in-out infinite;
}
@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.hero__scroll {
  position: absolute;
  bottom: 2.4rem;
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
}
.hero__scroll-line {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--hairline-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateX(-100%);
  animation: scroll-sweep 2.2s var(--ease-snap) infinite;
}
@keyframes scroll-sweep {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ── Marquee (two counter-scrolling rows, JS velocity-driven) ── */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(6, 7, 10, 0.5);
  overflow: hidden;
  padding: 0.9rem 0;
}
.marquee__row { overflow: hidden; }
.marquee__row--b { margin-top: 0.35rem; }
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  white-space: nowrap;
}
.marquee__row--b .marquee__track span {
  font-size: 0.85rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 169, 41, 0.38);
}
.marquee__track i {
  font-style: normal;
  color: var(--amber);
  margin: 0 1.4rem;
  -webkit-text-stroke: 0;
}

/* ── Sections (shared) ─────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(6rem, 12vw, 10rem) var(--pad-x);
}
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.eyebrow { display: block; margin-bottom: 1.2rem; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.ghost-num {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: var(--pad-x);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 223, 0.07);
  user-select: none;
  pointer-events: none;
}

/* ── About ─────────────────────────────────────────────────── */
.about { border-bottom: 1px solid var(--hairline); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}
.about__statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  line-height: 1.32;
  text-transform: none;
}
.about__statement em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--bone-dim);
}
.about__side p { color: var(--bone-dim); }
.about__side-note { margin-top: 1.4rem; color: var(--amber-deep); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
.stat {
  padding: 2rem 1.5rem 0.5rem 0;
  border-right: 1px solid var(--hairline);
}
.stat:last-child { border-right: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--amber);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.64rem;
}

/* ── Services ──────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  position: relative;
  padding: 2rem 1.8rem 1.7rem;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
      rgba(240, 169, 41, 0.09), transparent 65%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.82), rgba(9, 11, 16, 0.9));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, transform 0.15s ease-out;
  will-change: transform;
}
/* HUD corner accents */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid transparent;
  transition: border-color 0.45s ease;
  pointer-events: none;
}
.card::before {
  top: 10px; left: 10px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 8px;
}
.card::after {
  bottom: 10px; right: 10px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 8px;
}
@media (hover: hover) {
  .card:hover { border-color: rgba(240, 169, 41, 0.45); }
  .card:hover::before, .card:hover::after { border-color: var(--amber); }
  .card:hover .card__icon {
    color: var(--amber-hot);
    transform: translateY(-3px) scale(1.06);
  }
  .card:hover .card__link { color: var(--amber-hot); }
  .card:hover .card__link i { transform: translateX(6px); }
}
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.6rem;
}
.card__idx { color: var(--amber); font-size: 0.7rem; }
/* giant ghost index watermark (injected by JS) */
.card__wm {
  position: absolute;
  right: 0.4rem;
  bottom: -1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 223, 0.06);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.5s ease;
}
@media (hover: hover) {
  .card:hover .card__wm { -webkit-text-stroke-color: rgba(240, 169, 41, 0.18); }
}
.card__icon {
  width: 44px; height: 44px;
  color: var(--bone-dim);
  transition: color 0.4s, transform 0.5s var(--ease-out);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.06rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}
.card__body {
  color: var(--bone-dim);
  font-size: 0.94rem;
  margin-bottom: 1.8rem;
  min-height: 4.4em;
}
.card__link {
  font-size: 0.64rem;
  color: var(--bone-dim);
  text-decoration: none;
  display: inline-block;
  padding: 0.6em 0;
  transition: color 0.3s;
}
.card__link i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

/* ── Deliveries ────────────────────────────────────────────── */
.work { border-top: 1px solid var(--hairline); }
.work__list {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}
.work__item {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.work__item--flip .work__shot { order: 2; }
.work__item--flip .work__info { order: 1; }
.work__shot {
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.15s ease-out;
  will-change: transform;
}
@media (hover: hover) {
  .work__shot:hover {
    border-color: rgba(240, 169, 41, 0.5);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(240, 169, 41, 0.12);
  }
}
.work__chrome {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(6, 7, 10, 0.85);
  font-size: 0.62rem;
  color: var(--bone-dim);
}
.work__dots { display: inline-flex; gap: 5px; }
.work__dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hairline-strong);
}
.work__dots i:first-child { background: rgba(240, 169, 41, 0.6); }
.work__shot img {
  display: block;
  width: 100%;
  height: auto;
}
.work__idx {
  color: var(--amber);
  font-size: 0.68rem;
  display: block;
  margin-bottom: 1rem;
}
.work__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.work__desc {
  color: var(--bone-dim);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.work__tags span {
  font-size: 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45em 1em;
  color: var(--bone-dim);
}
.work__metric b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--amber);
  line-height: 1.1;
}
.work__metric span {
  font-size: 0.6rem;
  color: var(--bone-dim);
}

/* ── Process ───────────────────────────────────────────────── */
.process { border-top: 1px solid var(--hairline); }
.process__list { list-style: none; position: relative; }
/* scroll-progress beam in the left gutter */
@media (min-width: 821px) {
  .process__list::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0; bottom: 0;
    width: 1px;
    background: var(--hairline);
  }
  .process__list::after {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0;
    width: 1px;
    height: var(--beam, 0%);
    background: linear-gradient(180deg, var(--amber-deep), var(--amber), var(--amber-hot));
    box-shadow: 0 0 14px rgba(240, 169, 41, 0.55);
    transition: height 0.2s linear;
  }
}
.process__step {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: padding-left 0.45s var(--ease-out);
}
.process__step::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0%;
  background: var(--amber);
  transition: width 0.6s var(--ease-snap);
}
@media (hover: hover) {
  .process__step:hover { padding-left: 1.2rem; }
  .process__step:hover::before { width: 100%; }
}
.process__num {
  font-size: 1rem;
  color: var(--amber);
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.process__step p {
  color: var(--bone-dim);
  max-width: 44rem;
  font-size: 0.97rem;
}
.process__tag {
  font-size: 0.62rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  white-space: nowrap;
}

/* ── Stack ─────────────────────────────────────────────────── */
.stack__rows { border-top: 1px solid var(--hairline); }
.stack__row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.stack__cat { color: var(--amber); font-size: 0.66rem; }
.stack__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.stack__items span {
  font-size: 0.88rem;
  color: var(--bone-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45em 1.05em;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .stack__items span:hover {
    color: var(--bone);
    border-color: rgba(240, 169, 41, 0.5);
    transform: translateY(-2px);
  }
}

/* ── Contact ───────────────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding-top: clamp(7rem, 14vw, 12rem);
  padding-bottom: clamp(7rem, 14vw, 12rem);
}
.contact .eyebrow { justify-content: center; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7.5vw, 6rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
/* shimmering amber on the key word */
.contact__title .u-amber {
  background: linear-gradient(100deg, var(--amber-deep) 5%, var(--amber-hot) 45%, var(--amber-deep) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.contact__sub {
  max-width: 36rem;
  margin: 0 auto 3rem;
  color: var(--bone-dim);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.contact__meta { font-size: 0.64rem; }
.orbit-badge {
  position: absolute;
  right: clamp(2rem, 8vw, 9rem);
  bottom: clamp(2rem, 7vw, 7rem);
  width: 128px; height: 128px;
  color: var(--amber);
  opacity: 0.75;
}
.orbit-badge svg { width: 100%; height: 100%; animation: orbit-spin 22s linear infinite; }
.orbit-badge text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  fill: var(--bone-dim);
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .orbit-badge { display: none; } }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  background: rgba(6, 7, 10, 0.7);
  overflow: hidden;
}
.footer__ghost {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 12.5vw, 11rem);
  line-height: 0.82;
  text-align: center;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 169, 41, 0.13);
  transform: translateY(30%);
  user-select: none;
  pointer-events: none;
}
.footer__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem var(--pad-x);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.62rem;
  color: var(--amber-deep);
}
.footer__status .hud-dot { width: 5px; height: 5px; }
.footer__row {
  padding: 2.4rem var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.62rem;
}
.footer__meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  padding: 0.9em 0.6em;
  margin: -0.9em -0.6em;
}
.footer__meta a:hover { color: var(--amber-hot); }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 200%);
  opacity: 0;
  visibility: hidden;
  z-index: 160;
  background: var(--ink-3);
  border: 1px solid rgba(240, 169, 41, 0.5);
  color: var(--amber-hot);
  border-radius: 999px;
  padding: 0.8em 1.6em;
  font-size: 0.68rem;
  transition: transform 0.5s var(--ease-out), opacity 0.4s, visibility 0.4s;
  pointer-events: none;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ── Responsive ────────────────────────────────────────────── */
/* cap content width on ultrawide monitors */
.section > * { max-width: 1680px; margin-inline: auto; }
.section > .ghost-num { margin-inline: 0; }

/* 821–1100px: desktop nav doesn't fit with the CTA — squeeze */
@media (max-width: 1100px) and (min-width: 821px) {
  .nav__cta { display: none; }
  .nav__links { gap: 1.4rem; }
}

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--hairline); padding-bottom: 1.6rem; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .about__grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.6rem;
    background: rgba(6, 7, 10, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1.05rem; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }

  .hero { padding-top: 8rem; }
  .hero__hud--tr { display: none; }
  .hero__scroll { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .card__body { min-height: 0; }

  .work__item,
  .work__item--flip { grid-template-columns: 1fr; }
  .work__item--flip .work__shot { order: 0; }
  .work__item--flip .work__info { order: 1; }

  .process__step {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    row-gap: 1rem;
  }
  .process__tag { grid-column: 2; justify-self: start; }

  .stack__row { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; justify-content: center; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .footer__row { justify-content: center; text-align: center; }
}

/* ── Static mode (?static=1 — screenshots / deterministic paint) ── */
html.static-mode { scroll-behavior: auto; }
.static-mode [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.static-mode .hero__line .ch { transform: none !important; transition: none !important; }
.static-mode .orbit-badge svg { animation: none; }
.static-mode .tline__in { transform: none !important; transition: none !important; }
.static-mode .contact__title .u-amber { animation: none; }
.static-mode .process__list::after { height: 62%; transition: none; }
.static-mode #cortex { transition: none; }
.static-mode .preloader { display: none; }
.static-mode .grain { animation: none; }

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #111; }
  .mono, .hero__sub, .card__body, .about__side p, .process__step p, .contact__sub { color: #333; }
  .u-outline, .about__statement em { color: #111; -webkit-text-stroke: 0; }
  .u-amber, .stat__num { color: #8a5a00; }
  #cortex, .cortex-veil, .grain, .progress, .preloader, .cursor-dot, .cursor-ring,
  .toast, .ghost-num, .hero__x-echo, .marquee, .orbit-badge, .hero__scroll { display: none !important; }
  .nav { position: static; background: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card { border-color: #ccc; background: none; }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
