/* ───────────── Tokens ───────────── */
:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --line: #2a2a2a;
  --line-2: #353535;
  --fg: #ffffff;
  --muted: #b9b9b9;
  --dim: #797979;
  --accent: #00ff41;
  --accent-ink: #0b0b0b;
  --light: #ffffff;
  --light-ink: #0b0b0b;
  --scan: rgba(255, 255, 255, 0.16);
  --code-base: #e1e4e8; --code-key: #f97583; --code-str: #9ecbff; --code-num: #79b8ff; --code-fn: #b392f0; --code-com: #6a737d;

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 1.4vw, 24px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background .3s, color .3s;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-transform: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #0b0b0b; }
body.is-locked, body.menu-open { overflow: hidden; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--dim); }
.eyebrow { color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.dot { display: inline-block; position: relative; width: 24px; height: 12px; vertical-align: middle; flex: none; }
.dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%); }
.dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); background: linear-gradient(to right, var(--accent) 0 32%, transparent 32% 68%, var(--accent) 68%); }
.dot--live { animation: flicker 2.6s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .2; } 10% { opacity: 1; } 60% { opacity: 1; } 62% { opacity: .35; } 64% { opacity: 1; } }

.display {
  font-weight: 400; font-size: clamp(54px, 7.6vw, 124px); line-height: .98;
  letter-spacing: -0.045em; margin: 0;
}
.h2 { font-weight: 400; font-size: clamp(36px, 3.4vw, 54px); line-height: 1.03; letter-spacing: -0.035em; margin: 0; }
.h3 { font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.sub { font-size: clamp(17px, 1.3vw, 20px); color: var(--fg); margin: 6px 0 0; max-width: 34ch; line-height: 1.35; }
.body-lg { font-size: 19px; line-height: 1.45; color: var(--muted); max-width: 52ch; }
.lead { font-size: clamp(20px, 2vw, 30px); line-height: 1.22; letter-spacing: -0.015em; margin: 40px 0 44px; }
.dotted { background-image: linear-gradient(var(--dim), var(--dim)), linear-gradient(var(--line-2), var(--line-2)); background-size: 100% 1px, 100% 1px; background-repeat: no-repeat; background-position: 0 100%, 0 calc(100% - 3px); padding-bottom: 2px; }

/* ───────────── Pills ───────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 46px; padding: 0 26px; border-radius: 0; white-space: nowrap;
  font-size: 19px; letter-spacing: -0.01em; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(0) scale(.98); }
.pill--sm { height: 30px; padding: 0 12px; font-size: 12px; }
.pill--lg { height: 48px; padding: 0 28px; font-size: 20px; }
.pill--xl { height: clamp(64px, 8vw, 120px); padding: 0 clamp(28px, 5vw, 80px); font-size: clamp(26px, 3.4vw, 52px); letter-spacing: -0.03em; flex: 1; }
.pill--accent { background: var(--accent); color: var(--accent-ink); }
.pill--accent:hover { background: #4dff7a; }
.pill--light { background: var(--light); color: var(--light-ink); }
.pill--outline { border-color: var(--fg); color: var(--fg); }
.pill--outline:hover { background: var(--fg); color: var(--bg); }
.pill--outline-accent { border-color: var(--accent); color: var(--fg); }
.pill--outline-accent:hover { background: var(--accent); color: var(--accent-ink); }
.mono-cmd { font-family: var(--mono); font-size: 18px; text-transform: none; letter-spacing: 0; }

/* ───────────── Announcement + Nav ───────────── */
.announce {
  display: flex; justify-content: center; gap: 8px; padding: 8px var(--gutter);
  background: var(--light); color: var(--light-ink); text-transform: none; font-size: 12.5px; text-align: center;
}
.announce:hover span:last-child { transform: translateX(3px); }
.announce span:last-child { transition: transform .2s; }
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px; padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand .logo-s { display: block; width: 144px; height: 32px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a, .nav__plain { color: var(--fg); opacity: .9; transition: opacity .2s, color .2s; }
.nav__links a:hover, .nav__plain:hover { color: var(--accent); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__burger { display: none; width: 32px; height: 32px; position: relative; }
.nav__burger span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: var(--fg); transition: transform .25s; }
.nav__burger span:first-child { top: 12px; } .nav__burger span:last-child { top: 19px; }
.nav__burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 56px 0 0; z-index: 49; background: var(--bg); display: flex; flex-direction: column; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); gap: 6px; overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu a { font-size: 44px; letter-spacing: -0.04em; border-bottom: 1px solid var(--line); padding: 6px 0; }

/* ───────────── Hero ───────────── */
.hero { position: relative; min-height: calc(100vh - 140px); display: flex; align-items: center; padding: 80px var(--gutter) 90px; overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ───────────── Marquee ───────────── */
.marquee { background: var(--accent); color: #0b0b0b; display: flex; align-items: center; height: 62px; overflow: hidden; }
.marquee__label { flex: none; padding: 0 28px 0 var(--gutter); font-size: 11px; color: #0b0b0b; background: var(--accent); position: relative; z-index: 1; }
.marquee__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__row { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo { font-size: 24px; white-space: nowrap; line-height: 1; }
.logo--0 { font-weight: 500; letter-spacing: -0.05em; }
.logo--1 { font-family: Georgia, serif; font-style: italic; font-size: 26px; }
.logo--2 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.04em; text-transform: lowercase; }
.logo--3 { font-weight: 300; letter-spacing: .28em; text-transform: uppercase; font-size: 18px; }
.logo--4 { font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; font-stretch: condensed; }

/* ───────────── Stats ───────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 28px; align-items: end; padding: 26px var(--gutter); border-bottom: 1px solid var(--line); }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: end; }
.stat__client { grid-column: 1 / -1; font-weight: 500; font-size: 22px; letter-spacing: -0.04em; }
.stat__value { font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.stat .readout { min-width: 3.4em; text-align: center; }   /* equal boxes, so the labels line up */
.stat__label { display: flex; flex-direction: column; color: var(--muted); }
.stat__label::before { content: ""; height: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); background-image: repeating-linear-gradient(to right, var(--dim) 0 1px, transparent 1px 40px), repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 8px); background-size: 100% 12px, 100% 6px; background-position: 0 0, 0 100%; background-repeat: no-repeat; }
.stat__label a { color: var(--fg); }
.stat__label a:hover { color: var(--accent); }

/* ───────────── Sections ───────────── */
.section { padding: clamp(90px, 11vw, 170px) var(--gutter) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1140px; margin: 0 auto clamp(48px, 6vw, 90px); }
.h2--left { margin-bottom: 48px; }

/* window frame */
.window { border: 1px solid var(--line-2); max-width: 1380px; margin: 0 auto; background: var(--bg); }
.window__bar { display: flex; align-items: center; gap: 22px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.window__dots { display: flex; gap: 4px; } .window__dots i { width: 12px; height: 2px; background: var(--line-2); }
.window__crumb { color: var(--dim); } .window__crumb b { color: #45ff00; font-weight: 400; }
.window__count { margin-left: auto; color: var(--dim); }
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filters button { padding: 3px 8px; color: var(--muted); border-radius: 0; transition: background .15s, color .15s; }
.filters button:hover { color: var(--fg); }
.filters button.is-active { background: var(--fg); color: var(--bg); }

.grid-work { display: grid; grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: block; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 14px 14px 22px; transition: opacity .35s, transform .35s var(--ease); }
.card:nth-child(2n) { border-right: 0; }
.card.is-hidden { display: none; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-2); }
.card__media svg { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.card:hover .card__media svg { transform: scale(1.035); }
.card__media::after { content: "Lock · View case →"; position: absolute; z-index: 3; left: 24px; bottom: 24px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; background: var(--accent); color: #0b0b0b; padding: 6px 10px; border-radius: 0; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.card:hover .card__media::after { opacity: 1; transform: none; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 16px; }
.card__title { font-size: 26px; letter-spacing: -0.035em; margin: 0; font-weight: 400; }
.card__year { color: var(--dim); }
.card__desc { color: var(--muted); margin: 6px 0 12px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 1px solid var(--line-2); border-radius: 0; padding: 3px 9px; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

/* ───────────── Services ───────────── */
.section--services .h2--left { max-width: 1380px; margin-left: auto; margin-right: auto; }
.svc { display: grid; grid-template-columns: 220px minmax(0, 360px) minmax(0, 1fr); gap: 0 32px; max-width: 1380px; margin: 0 auto; }
.svc__nav { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.svc__nav a { display: flex; gap: 14px; padding: 4px 6px; color: var(--muted); transition: color .2s, background .2s; }
.svc__nav a:hover { color: var(--fg); }
.svc__nav a.is-active { background: var(--fg); color: var(--bg); }
.svc__nav a span:first-child { opacity: .7; }
.svc__tape { --i: 0; position: relative; height: 320px; margin-top: 24px; border-left: 1px solid var(--line-2); background-image: repeating-linear-gradient(to bottom, var(--dim) 0 1px, transparent 1px 60px), repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px 12px); background-size: 22px 100%, 12px 100%; background-repeat: no-repeat; background-position: 0 calc(var(--i) * -60px + 30px), 0 calc(var(--i) * -60px + 30px); transition: background-position .6s var(--ease); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.svc__read { position: absolute; left: 34px; top: 20px; }
.svc__item { min-height: 78vh; padding-top: 4px; }
.svc__item .h3 { margin-bottom: 18px; }
.svc__item p { color: var(--muted); margin: 0 0 18px; }
.svc__item ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 7px; font-size: 15px; }
.svc__item li::before { content: "•"; margin-right: 10px; color: var(--dim); }
.svc__visual { position: sticky; top: 90px; align-self: start; height: min(76vh, 640px); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.svc__visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: .55; }
.viz { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.viz.is-active { opacity: 1; transform: none; pointer-events: auto; }
.svc__item-visual { display: none; }

/* viz: ui */
.mock { position: absolute; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.mock__bar { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--dim); }
.mock__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mock__row:last-child { border-bottom: 0; }
.mock__av { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.mock__pill { margin-left: auto; font-family: var(--mono); font-size: 10px; text-transform: uppercase; padding: 2px 7px; border-radius: 0; }
.skel { height: 8px; border-radius: 4px; background: var(--line-2); }

/* viz: code */
.code { position: absolute; left: 7%; right: 7%; top: 10%; bottom: 10%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.code pre { margin: 0; padding: 16px 0; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--code-base); counter-reset: ln; overflow: hidden; }
.code pre span.l { display: block; padding-left: 52px; position: relative; white-space: pre; min-height: 1.75em; }
.code pre span.l::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 34px; text-align: right; color: var(--dim); }
.k { color: var(--code-key); } .s { color: var(--code-str); } .n { color: var(--code-num); } .f { color: var(--code-fn); } .c { color: var(--code-com); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-left: 8px; }

/* scanline canvas */
.pixel { width: 100%; height: 100%; background: var(--bg-3); }

/* ───────────── Process ───────────── */
.process { max-width: 1380px; margin: 0 auto; }
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; flex-wrap: wrap; }
.tabs button { padding: 5px 9px; color: var(--muted); border: 1px solid transparent; }
.tabs button:hover { color: var(--fg); }
.tabs button.is-active { background: var(--fg); color: var(--bg); }
.process__stage { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 0; align-items: stretch; background-image: repeating-linear-gradient(to bottom, var(--scan) 0 1px, transparent 1px 5px); animation: roll 6s linear infinite; padding: 60px 0; }
.process__ghost { margin: 50px 40px; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: flex-end; justify-content: center; padding: 16px; color: var(--dim); min-height: 260px; transition: opacity .3s; }
.process__panel { background: var(--accent); padding: 12px; display: flex; flex-direction: column; min-height: 420px; }
.process__panel-bar { display: flex; justify-content: space-between; color: #0b0b0b; padding: 2px 4px 12px; }
.process__panel-bar span:last-child { background: #0b0b0b; color: var(--accent); padding: 1px 6px; }
.terminal { flex: 1; background: #0b0b0b; color: #e1e4e8; padding: 22px; text-transform: none; font-size: 14px; line-height: 2; }
.terminal .ln { opacity: 0; transform: translateY(4px); animation: lnIn .35s var(--ease) forwards; }
.terminal .ln--cmd { color: #00ff41; } .terminal .ln--out { color: #45ff00; }
.terminal .caret { display: inline-block; width: 8px; height: 15px; background: #e1e4e8; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes lnIn { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ───────────── About ───────────── */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); max-width: 1380px; margin: 0 auto; align-items: start; }
.about__media { position: relative; aspect-ratio: 9 / 11; border: 1px solid var(--line-2); padding: 10px; background: var(--bg-2); }
.about__tag { position: absolute; left: 20px; bottom: 20px; background: #0b0b0b; color: #fff; padding: 3px 8px; text-transform: none; }
.about__body .h2 { margin-bottom: 26px; }
.facts { list-style: none; padding: 0; margin: 36px 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 120px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--dim); }
.xp { margin-bottom: 30px; }
.xp__row { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); align-items: baseline; }
.xp__row span:first-child { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.xp__row span:last-child { color: var(--muted); }
.row-btns { display: flex; gap: 10px; }

/* ───────────── Quotes ───────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1380px; margin: 0 auto; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.quote { padding: 28px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; transition: background .25s; }
.quote:hover { background: var(--bg-2); }
.quote p { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: #0b0b0b; }
.quote__who b { display: block; font-weight: 500; }
.quote__who span { color: var(--dim); }
/* recognition: award cards in the quote grid */
.quotes--awards { grid-template-columns: repeat(4, 1fr); }
.award p { margin-top: 10px; font-size: 26px; letter-spacing: -0.03em; }
.award__year { color: var(--accent); }
.award footer { align-items: flex-start; }
.award .quote__who b { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--fg); margin-bottom: 6px; }
.award__text { display: block; font-size: 15px; line-height: 1.45; color: var(--muted) !important; }

/* ───────────── Posts ───────────── */
.posts { max-width: 1380px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.post { display: grid; grid-template-columns: 140px 120px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-2); transition: padding .3s var(--ease), color .2s; }
.post:hover { padding-left: 14px; color: var(--accent); }
.post__title { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; }
.post .mono { color: var(--dim); }

/* ───────────── CTA + Footer ───────────── */
.cta { padding: clamp(110px, 13vw, 200px) var(--gutter) clamp(80px, 9vw, 140px); }
.display--cta { margin-bottom: 60px; }
.cta__btns { display: flex; gap: 16px; flex-wrap: wrap; }

.footer { padding: 0 var(--gutter); }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding-top: 40px; }
.footer__lead { font-size: 24px; letter-spacing: -0.02em; line-height: 1.3; }
.footer__lead a:hover { color: var(--accent); }
.footer__lead p { margin: 6px 0 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-transform: none; font-size: 12.5px; }
.footer__cols h4 { margin: 0 0 14px; font-weight: 400; color: var(--dim); text-transform: uppercase; font-size: 11px; }
.footer__cols a { display: block; padding: 4px 0; color: var(--fg); }
.footer__cols a:hover { color: var(--accent); }
.footer__word { display: flex; justify-content: center; padding: clamp(80px, 12vw, 200px) 0; }
.footer__logo-wrap { position: relative; width: min(100%, 1120px); }
.footer__logo { display: block; width: 100%; height: auto; }
.footer__moon { position: absolute; left: 0; top: 0; pointer-events: none; }
.footer__bar { display: flex; align-items: center; gap: 24px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__social { display: flex; gap: 14px; align-items: center; margin-right: auto; }
.footer__social a:hover { color: var(--accent); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: 0; padding: 5px 12px 5px 8px; }

/* ───────────── Case study overlay ───────────── */
.case { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; transform: translateY(100%); transition: transform .7s var(--ease); visibility: hidden; }
.case.is-open { transform: none; visibility: visible; }
.case__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.case__crumb { color: var(--dim); } .case__crumb b { color: var(--fg); font-weight: 400; }
.case__body { padding: 0 var(--gutter) 80px; }
.case__hero { padding: clamp(60px, 8vw, 120px) 0 50px; max-width: 1380px; margin: 0 auto; }
.case__hero .display { font-size: clamp(46px, 6.4vw, 104px); max-width: 15ch; }
.case__meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); margin-top: 60px; }
.case__meta div { padding: 14px 16px 14px 0; border-right: 1px solid var(--line); }
.case__meta div + div { padding-left: 16px; }
.case__meta div:last-child { border-right: 0; }
.case__meta dt { color: var(--dim); margin-bottom: 6px; }
.case__meta dd { margin: 0; }
.case__cover { max-width: 1380px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; }
.case__cover svg { width: 100%; height: 100%; }
.case__metrics { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-2); }
.case__metrics div { padding: 36px 20px 30px 0; }
.case__metrics b { display: block; font-weight: 400; font-size: clamp(48px, 5vw, 84px); letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.case__metrics span { color: var(--muted); }
.case__text { max-width: 1140px; margin: 0 auto; padding: 90px 0 30px; display: grid; gap: 60px; }
.case__block { display: grid; grid-template-columns: 200px 1fr; gap: 30px; }
.case__block p { margin: 0; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.32; letter-spacing: -0.02em; }
.case__block .mono { color: var(--dim); padding-top: 8px; }
.case__gallery { max-width: 1380px; margin: 60px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case__gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.case__gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.case__gallery svg { width: 100%; height: 100%; }
.case__quote { max-width: 1140px; margin: 100px auto; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.035em; line-height: 1.12; }
.case__quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--dim); }
.case__next { display: block; max-width: 1380px; margin: 0 auto; border-top: 1px solid var(--line-2); padding: 40px 0; }
.case__next .mono { color: var(--dim); }
.case__next .display { font-size: clamp(44px, 6vw, 96px); transition: color .25s; }
.case__next:hover .display { color: var(--accent); }

/* ───────────── Inquiry dialog ───────────── */
.inquiry { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); border-radius: 6px; }
.inquiry::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.inquiry__form, .inquiry__done { padding: clamp(20px, 3vw, 36px); }
.inquiry__head { display: flex; justify-content: space-between; align-items: center; }
.inquiry__head .eyebrow { margin: 0; }
.inquiry .h3 { margin: 18px 0 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { color: var(--dim); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line-2); border-radius: 0; padding: 7px 14px; font-size: 15px; transition: .15s; }
.chips button:hover { border-color: var(--fg); }
.chips button.is-on { background: var(--accent); border-color: var(--accent); color: #0b0b0b; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 24px; }
.fields .full { grid-column: 1 / -1; }
.fields label span { display: block; color: var(--dim); margin-bottom: 6px; }
.fields input, .fields textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); padding: 11px 12px; font: inherit; font-size: 16px; border-radius: 3px; resize: vertical; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--accent); }
.inquiry__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.inquiry__done .h3 { margin: 10px 0 28px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 0; z-index: 100; animation: lnIn .3s var(--ease); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ───────────── HUD accents (aircraft head-up display) ───────────── */
/* mode annunciator: boxed, phosphor green */
.annun { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--accent); color: var(--accent); padding: 2px 8px 2px 4px; }

/* numeric readout box with a pointer notch, like airspeed / altitude boxes */
.readout { position: relative; display: inline-block; border: 1px solid var(--accent); padding: 2px 10px 3px 8px; background: var(--bg); line-height: 1; }
.readout::after { content: ""; position: absolute; right: -6px; top: 50%; width: 9px; height: 9px; background: var(--bg); border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.readout--left::after { right: auto; left: -6px; transform: translateY(-50%) rotate(-135deg); }
.svc__read { font-size: 12px; color: var(--accent); padding: 4px 8px; transform: translateY(-50%); }

/* section labels styled as pitch-ladder rungs */
.hud-sec { display: flex; align-items: center; gap: 12px; max-width: 1140px; margin: 0 auto 26px; color: var(--muted); }
.hud-sec__n { color: var(--accent); }
.hud-sec__rung { width: 64px; height: 7px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.hud-sec::after { content: ""; flex: 1; height: 7px; border-top: 1px dashed var(--line-2); border-right: 1px solid var(--line-2); }
.section--services .hud-sec, #about .hud-sec { max-width: 1380px; }

/* heading tape in the nav: scroll position as compass heading */
.hdg { display: flex; align-items: center; margin-left: auto; min-width: 0; flex: 0 1 240px; color: var(--accent); }
.hdg__win { position: relative; width: 100%; height: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.hdg__win::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--fg); transform: translateX(-50%); }
.hdg__tape { position: absolute; left: 50%; top: 0; will-change: transform; }
.hdg__tape svg { display: block; max-width: none; font-family: var(--mono); }

/* project cards: target-lock corner brackets on hover */
.card__lock { position: absolute; inset: 12px; z-index: 2; pointer-events: none; opacity: 0; transform: scale(1.06);
  transition: opacity .25s, transform .45s var(--ease);
  --c: var(--accent); --l: 22px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 0 / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 0 / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 100% / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 100% / var(--w) var(--l);
  background-repeat: no-repeat; }
.card:hover .card__lock { opacity: 1; transform: scale(1); }

/* ───────────── Scanline / glitch motifs ───────────── */
@keyframes roll { to { background-position: 0 24px; } }
@keyframes beam { from { background-position: 0 0, 0 100%; } to { background-position: 0 24px, 0 0; } }


/* project cards: rolling scanlines + jitter on hover */
.card__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,.42) 0 1px, transparent 1px 4px); opacity: 0; transition: opacity .3s; }
.card:hover .card__media::before { opacity: 1; animation: roll 1.4s linear infinite; }
.card:hover .card__media svg { animation: jitter .32s steps(1) 1; }
@keyframes jitter { 0% { transform: scale(1.035) translateX(-7px); } 25% { transform: scale(1.035) translateX(5px) skewX(-2deg); } 50% { transform: scale(1.035) translateX(-3px); } 75% { transform: scale(1.035) translateX(2px); } 100% { transform: scale(1.035); } }

/* ───────────── Responsive ───────────── */
@media (max-width: 1100px) {
  .nav__links, .nav__plain, .nav__actions .pill--outline-accent, .hdg { display: none; }
  .nav__burger { display: block; }
  .svc { grid-template-columns: 1fr; }
  .svc__nav, .svc__visual { display: none; }
  .svc__item { min-height: 0; padding-bottom: 60px; }
  .svc__item-visual { display: block; position: relative; height: 380px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; margin-top: 10px; }
  .svc__item-visual .viz { opacity: 1; transform: none; }
  .svc__item-visual:has(.mock--release) { height: 470px; }
  .svc__item-visual .mock--site { height: 40% !important; }
  .svc__item-visual .mock--site .mock__bar span:last-child { display: none; }
  .svc__item-visual .mock--release { width: 72% !important; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .process__stage { grid-template-columns: 1fr; padding: 24px; }
  .process__ghost { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero .eyebrow { flex-wrap: wrap; }
  .hero .eyebrow .muted { display: none; }
  .hero br { display: none; }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats > .pill { justify-self: start; }
  .grid-work { grid-template-columns: 1fr; }
  .card { border-right: 0; }
  .window__count { display: none; }
  .about { grid-template-columns: 1fr; }
  .h2 br { display: none; }
  /* project filters: one swipeable row */
  .window__dots { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; gap: 2px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 3px 5px; }
  /* testimonials: a swipeable row instead of a 6-card stack */
  .quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-left: 0; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 84%; scroll-snap-align: start; min-height: 260px; border-left: 1px solid var(--line-2); border-right: 0; }
  .quote:last-child { border-right: 1px solid var(--line-2); }
  .post { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .post .mono:nth-child(2) { display: none; }
  .post__title { grid-column: 1 / -1; grid-row: 2; }
  .case__meta { grid-template-columns: 1fr 1fr; }
  .case__meta div:nth-child(2) { border-right: 0; }
  .case__meta div:nth-child(3) { padding-left: 0; }
  .case__metrics { grid-template-columns: 1fr; }
  .case__block { grid-template-columns: 1fr; gap: 8px; }
  .case__gallery { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bar { gap: 14px; }
  .mono-cmd { font-size: 15px; }
  .pill--xl { flex-basis: 100%; }
  .xp__row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
