/* TL Web Design 2027 — cinematic build.
   Hand-written. Tokens first; X-ray mode swaps the tokens to a blueprint. */

:root {
  --bg: #0A090D;
  --bg-2: #111016;
  --card: #16151C;
  --ink: #F2EEE6;
  --ink-2: #C7C2B8;
  --mute: #8F8A97;
  --line: rgba(242, 238, 230, .12);
  --signal: #FF4A1C;
  --signal-ink: #0A090D;   /* dark text on orange: 5.9:1 (white was 3.4:1) */
  --signal-text: #FF6B40;
  --violet: #7B5CFF;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --maxw: 1360px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

html.xray {
  --bg: #0A1A2C;
  --bg-2: #0D2034;
  --card: #0F243A;
  --ink: #D9EEFF;
  --ink-2: #A9CBE8;
  --mute: #7FA6C8;
  --line: rgba(92, 200, 255, .3);
  --signal: #5CC8FF;
  --signal-ink: #06121F;
  --signal-text: #7FD6FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-variation-settings: "opsz" 14;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
html.fine:not(.calm) body, html.fine:not(.calm) a, html.fine:not(.calm) button, html.fine:not(.calm) summary, html.fine:not(.calm) select, html.fine:not(.calm) label { cursor: none; }
html.fine:not(.calm) input:not([type="checkbox"]):not([type="radio"]), html.fine:not(.calm) textarea { cursor: text; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, blockquote, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--signal-text); letter-spacing: -.01em; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { color: var(--mute); display: flex; flex-wrap: wrap; gap: .4em .7em; align-items: center; margin-bottom: clamp(18px, 2.4vw, 32px); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--signal); }
.eyebrow span { opacity: .5; }

.mega { font-size: clamp(56px, 12vw, 200px); line-height: .88; letter-spacing: -.05em; font-weight: 620; font-variation-settings: "opsz" 96; }
.display { font-size: clamp(42px, 6.8vw, 112px); line-height: .92; letter-spacing: -.045em; font-weight: 600; font-variation-settings: "opsz" 96; max-width: 14ch; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-weight: 560; font-size: 16px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; background: transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--signal { background: var(--signal); color: var(--signal-ink); }
.btn--signal::before { background: var(--ink); }
.btn--signal:hover { color: var(--bg); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 40%, transparent); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }

.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; transition: border-color .3s, background-color .3s, color .3s; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: #08070B; color: #F2EEE6;
  display: grid; place-items: center; transition: clip-path 1.1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.no-intro .loader { display: none; }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__mark { width: clamp(72px, 9vw, 120px); fill: none; stroke: #F2EEE6; stroke-width: 1.4; }
.loader__mark rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-io) .1s forwards; }
.loader__mark path { stroke: var(--signal); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease-io) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__label { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) + 8px); color: #8F8A97; }
.loader__count { position: absolute; right: var(--gutter); bottom: var(--gutter); font-size: clamp(64px, 13vw, 200px); line-height: .8; font-weight: 300; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.loader__bar span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Cursor: X-ray viewfinder ---------- */
:root { --cur: #FF3B3B; }
html.xray { --cur: var(--signal-text); }
.cursor { display: none; }
html.fine:not(.calm) .cursor { display: block; position: fixed; inset: 0; z-index: 250; pointer-events: none; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .55)); transition: opacity .2s; }
.cursor__cross { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  background:
    radial-gradient(circle at center, var(--cur) 0 1.6px, transparent 2.2px) center / 100% 100% no-repeat,
    linear-gradient(90deg, var(--cur) 0 34%, transparent 34% 66%, var(--cur) 66% 100%) center / 100% 1.5px no-repeat,
    linear-gradient(180deg, var(--cur) 0 34%, transparent 34% 66%, var(--cur) 66% 100%) center / 1.5px 100% no-repeat;
  transition: opacity .2s; }
.cursor__frame { position: fixed; left: 0; top: 0; width: 34px; height: 34px; will-change: transform, width, height; }
.cursor__frame i { position: absolute; width: 9px; height: 9px; border: 0 solid var(--cur); transition: width .25s, height .25s; }
.cursor__frame .c-tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.cursor__frame .c-tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.cursor__frame .c-bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.cursor__frame .c-br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.cursor.is-snap .cursor__frame i { width: 13px; height: 13px; }
.cursor__label { position: absolute; left: 0; top: -22px; padding: 3px 7px; background: var(--cur); color: #0A090D; font: 600 10px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor__read { position: fixed; left: 0; top: 0; color: var(--cur); font: 500 10px/1 var(--f-mono); letter-spacing: .06em; white-space: nowrap; opacity: .85; transition: opacity .2s; }
.cursor.is-snap .cursor__read, .cursor.is-label .cursor__read { opacity: 0; }
.cursor.is-snap .cursor__cross { opacity: .55; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h); display: flex; align-items: center; transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease); }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; letter-spacing: -.02em; font-size: 18px; }
.brand__mark { width: 34px; height: 34px; }
.brand__mark path { transition: stroke .3s; }
.brand:hover .brand__mark path { stroke: var(--signal); }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { text-decoration: none; padding: 10px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.nav__menu { display: none; }
.xtoggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 6px; min-height: 44px; }
.xtoggle__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.xtoggle__track { width: 38px; height: 22px; border-radius: 999px; border: 1.5px solid var(--ink); position: relative; transition: background-color .3s, border-color .3s; }
.xtoggle__knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
.xtoggle[aria-pressed="true"] .xtoggle__track { background: var(--signal); border-color: var(--signal); }
.xtoggle[aria-pressed="true"] .xtoggle__knob { transform: translateX(16px); background: var(--signal-ink); }
.drawer { position: fixed; inset: var(--nav-h) 0 0; z-index: 59; background: var(--bg); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden; }
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__inner { display: flex; flex-direction: column; padding-top: 24px; }
.drawer__inner a { font-size: clamp(40px, 11vw, 64px); font-weight: 600; letter-spacing: -.04em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.drawer__meta { margin-top: 28px; color: var(--mute); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: radial-gradient(80% 70% at 60% 40%, #2A1650 0%, #120B1E 45%, var(--bg) 80%); }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero__ui { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--nav-h) + 20px); padding-bottom: clamp(24px, 4vh, 44px); pointer-events: none; }
.hero__ui a, .hero__ui button { pointer-events: auto; }
.hero__top { display: flex; justify-content: space-between; gap: 16px; color: var(--mute); }
.hero__title { align-self: start; margin-top: clamp(12px, 4vh, 48px); font-weight: 400; }
.hero__kicker { display: block; font-family: var(--f-serif); font-style: italic; font-size: clamp(40px, 6.4vw, 104px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.hero__word { display: none; font-size: clamp(80px, 19vw, 300px); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--ink); }
.no-gl .hero__word, .calm .hero__word { display: block; }
.calm .hero__gl { opacity: .55; }
.hero__bottom { display: grid; grid-template-columns: 1.1fr auto 1fr; align-items: end; gap: 24px 48px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__index { justify-self: end; display: grid; gap: 6px; text-align: right; color: var(--mute); }
.hero__count b { color: var(--ink); font-weight: 500; }
.hero__wordname { color: var(--signal-text); font-size: 14px; }
.hero__scrollcue { position: absolute; left: 50%; bottom: 0; width: 1px; height: clamp(40px, 7vh, 72px); background: var(--line); overflow: hidden; z-index: 1; }
.hero__scrollcue span { position: absolute; inset: 0; background: var(--signal); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(110px, 20vh, 220px) 0 clamp(80px, 14vh, 160px); }
.statement__text { font-size: clamp(34px, 5.4vw, 88px); line-height: 1.02; letter-spacing: -.04em; font-weight: 560; max-width: 20ch; font-variation-settings: "opsz" 96; }
[data-scrub] .sw { opacity: .14; transition: opacity .25s linear; }
[data-scrub] .sw.on { opacity: 1; }
html.xray [data-scrub] .sw { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(20px, 4vh, 48px) 0; overflow: hidden; border-block: 1px solid var(--line); display: grid; gap: 4px; }
.marquee__row { display: flex; align-items: center; gap: .35em; width: max-content; font-size: clamp(56px, 10vw, 170px); line-height: 1; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; will-change: transform; font-variation-settings: "opsz" 96; }
.marquee__row .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee__row i { font-style: normal; color: var(--signal); font-size: .4em; }

/* ---------- The Build ---------- */
.build__track { height: 520vh; position: relative; }
.build__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.build__sticky::before { content: ""; position: absolute; width: 70vw; height: 70vw; right: -20vw; top: 10%; background: radial-gradient(closest-side, rgba(123, 92, 255, .22), transparent); pointer-events: none; }
.build__grid { position: relative; display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.build .display { font-size: clamp(36px, 4.4vw, 68px); margin-bottom: clamp(20px, 3vh, 36px); }
.phases { display: grid; gap: 4px; }
.phase { padding: 14px 0 14px 20px; border-left: 2px solid var(--line); transition: border-color .4s, opacity .4s; opacity: .38; }
.phase h3 { font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.phase p:not(.phase__ship) { display: none; color: var(--ink-2); margin-top: 8px; max-width: 42ch; font-size: 16px; }
.phase__ship { display: none; color: var(--mute); margin-top: 10px; font-size: 11px; }
.phase__num { color: var(--mute); display: block; margin-bottom: 4px; font-size: 11px; }
.phase.is-active { opacity: 1; border-color: var(--signal); }
.phase.is-active p { display: block; animation: rise .5s var(--ease) both; }
.phase.is-active .phase__num { color: var(--signal-text); }
.build__progress { height: 2px; background: var(--line); margin-top: 24px; max-width: 420px; }
.build__progress span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); }
.build__canvas { width: 100%; aspect-ratio: 1200 / 790; display: block; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .55)); }
.build__stage figcaption { color: var(--mute); margin-top: 14px; font-size: 11px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Work (horizontal reel) ---------- */
.work { background: var(--bg-2); transition: background-color .6s; }
.work__pin { position: relative; }
.work__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); overflow: hidden; padding-top: var(--nav-h); }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.work__count { color: var(--mute); font-size: 14px; }
.work__count b { color: var(--ink); font-weight: 500; font-size: 28px; letter-spacing: -.02em; }
.work__rail { display: flex; gap: clamp(16px, 2vw, 32px); padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2); width: max-content; will-change: transform; }
.card { flex: none; width: clamp(300px, 34vw, 520px); }
.card--feature { width: clamp(320px, 52vw, 820px); }
.card__link { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--card); position: relative; clip-path: inset(0 0 0 0 round 4px); transition: clip-path .7s var(--ease); }
.card--feature .card__media { aspect-ratio: 16 / 9; }
.card__media img { width: 118%; max-width: none; height: 100%; object-fit: cover; object-position: left top; transform: translateX(calc(var(--par, 0) * -15%)); transition: scale .9s var(--ease); }
.card__link:hover .card__media { clip-path: inset(10px 10px 10px 10px round 4px); }
.card__link:hover .card__media img { scale: 1.08; }
.card__meta { color: var(--mute); font-size: 11px; display: flex; gap: 12px; }
.card__meta span { color: var(--signal-text); }
.card h3 { font-size: clamp(26px, 2.6vw, 42px); font-weight: 620; letter-spacing: -.035em; line-height: 1; margin: 6px 0 8px; }
.card__body p:not(.card__meta) { color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.card--end { width: clamp(260px, 28vw, 420px); display: grid; align-items: center; }
.endlink { display: grid; gap: 10px; text-decoration: none; font-size: clamp(56px, 7vw, 120px); font-weight: 650; letter-spacing: -.05em; line-height: .9; }
.endlink .mono { color: var(--mute); }
.endlink__arrow { color: var(--signal); transition: transform .5s var(--ease); }
.endlink:hover .endlink__arrow { transform: translateX(18px); }
.work__progress { height: 1px; background: var(--line); }
.work__progress span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- X-ray promo ---------- */
.xpromo { padding: clamp(110px, 18vh, 200px) 0; }
.xpromo__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.xpromo .display { max-width: 12ch; }
.xpromo__side { display: grid; gap: 32px; }
.xbig { display: flex; align-items: center; gap: 18px; background: none; border: 0; padding: 0; text-align: left; }
.xbig__track { width: 104px; height: 56px; border-radius: 999px; border: 2px solid var(--ink); position: relative; flex: none; transition: background-color .4s, border-color .4s; }
.xbig__knob { position: absolute; top: 5px; left: 5px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; transition: transform .5s var(--ease), background-color .4s, color .4s; }
.xbig[aria-pressed="true"] .xbig__track { background: var(--signal); border-color: var(--signal); }
.xbig[aria-pressed="true"] .xbig__knob { transform: translateX(48px); background: var(--signal-ink); color: var(--signal); }
.xbig__text { display: grid; gap: 4px; }
.xbig__text b { font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.xbig__text .mono { color: var(--mute); font-size: 11px; }
.xbig:hover .xbig__track { border-color: var(--signal); }

/* ---------- Services ---------- */
.services { padding: clamp(90px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.services .display { margin-bottom: clamp(36px, 6vh, 64px); }
.svc { border-top: 1px solid var(--ink); }
.svc li { border-bottom: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: 64px 1fr auto 40px; align-items: center; gap: 16px; padding: clamp(18px, 2.4vw, 28px) 12px; text-decoration: none; position: relative; isolation: isolate; overflow: hidden; }
.svc a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.svc__n { color: var(--mute); transition: color .3s; }
.svc__name { font-size: clamp(28px, 4vw, 60px); font-weight: 580; letter-spacing: -.04em; line-height: 1.02; transition: color .3s, transform .5s var(--ease); }
.svc__for { color: var(--mute); font-size: 15px; text-align: right; opacity: 0; transform: translateX(-12px); transition: opacity .35s, transform .5s var(--ease), color .3s; }
.svc__arrow { font-size: 28px; transition: transform .5s var(--ease), color .3s; justify-self: end; }
.svc a:hover::before, .svc a:focus-visible::before { clip-path: inset(0 0 0 0); }
.svc a:hover .svc__name, .svc a:focus-visible .svc__name { color: var(--signal-ink); transform: translateX(14px); }
.svc a:hover .svc__for, .svc a:focus-visible .svc__for { opacity: 1; transform: none; color: var(--signal-ink); }
.svc a:hover .svc__n, .svc a:focus-visible .svc__n { color: var(--signal-ink); }
.svc a:hover .svc__arrow, .svc a:focus-visible .svc__arrow { color: var(--signal-ink); transform: rotate(-45deg); }

/* ---------- Plans ---------- */
.plans { padding: clamp(90px, 14vh, 160px) 0; background: var(--bg-2); transition: background-color .6s; }
.plans .display { margin-bottom: clamp(36px, 6vh, 64px); }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); perspective: 1200px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: background-color .6s, border-color .4s, opacity 1s var(--ease), transform .6s var(--ease); }
.plan::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--signal) 18%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.plan:hover::after { opacity: 1; }
.plan:hover { border-color: color-mix(in srgb, var(--signal) 50%, transparent); }
.plan h3 { font-size: clamp(36px, 3.8vw, 56px); font-weight: 620; letter-spacing: -.045em; line-height: 1; }
.plan > p:not(.plan__for) { color: var(--ink-2); }
.plan__for { color: var(--mute); font-size: 11px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan ul { display: grid; gap: 8px; margin: 8px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan li { padding-left: 22px; position: relative; font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1.5px; background: var(--signal); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan--hot { border-color: color-mix(in srgb, var(--signal) 60%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--signal) 16%, var(--card)), var(--card) 55%); }
html.xray .plan--hot { background: var(--card); }
.tag { background: var(--signal); color: var(--signal-ink); padding: 3px 8px; border-radius: 999px; font-size: 10px; }

/* ---------- Founder ---------- */
.founder { padding: clamp(110px, 18vh, 200px) 0; }
.founder blockquote p { font-family: var(--f-serif); font-size: clamp(34px, 5vw, 80px); line-height: 1.04; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.founder footer { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-top: 32px; }
.founder footer b { font-size: 20px; font-weight: 620; }
.founder footer .mono { color: var(--mute); }

/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 16vh, 180px) 0 clamp(64px, 10vh, 120px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 90vw; height: 90vw; left: -30vw; bottom: -60vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 20%, transparent), transparent); pointer-events: none; }
.contact__hero { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(48px, 8vh, 96px); }
.contact em { color: var(--signal-text); }
.badge { position: relative; flex: none; width: clamp(130px, 14vw, 200px); aspect-ratio: 1; border-radius: 50%; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; text-decoration: none; }
.badge svg { position: absolute; inset: 6px; width: calc(100% - 12px); animation: spin 14s linear infinite; }
.badge text { font: 500 13.5px var(--f-mono); letter-spacing: .2em; fill: var(--signal-ink); }
.badge__arrow { font-size: clamp(36px, 4vw, 56px); transition: transform .5s var(--ease); }
.badge:hover .badge__arrow { transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); border-top: 1px solid var(--line); padding-top: 28px; position: relative; }
.contact__big, .contact__clock { display: grid; gap: 8px; text-decoration: none; font-size: clamp(20px, 2.2vw, 30px); font-weight: 560; letter-spacing: -.02em; }
.contact__big .mono, .contact__clock .mono { color: var(--mute); font-weight: 400; letter-spacing: .08em; }
.contact__big { transition: color .3s; overflow-wrap: anywhere; }
.contact__big:hover { color: var(--signal-text); }
.contact__clock b { font-weight: 560; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.foot { background: var(--bg); padding-top: 28px; overflow: hidden; border-top: 1px solid var(--line); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 24px; color: var(--mute); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { text-decoration: none; min-height: 24px; }
.foot__links a:hover { color: var(--signal-text); }
.wordmark { font-size: 16.6vw; line-height: .78; letter-spacing: -.06em; font-weight: 600; white-space: nowrap; text-align: center; padding-bottom: 1.4vw; margin-inline: -1vw; user-select: none; font-variation-settings: "opsz" 96; }
.wordmark span { display: inline-block; transition: font-variation-settings .25s linear, color .3s; }
.wordmark span.hot { color: var(--signal); }

/* ---------- Reveal, split ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js [data-split].in .wi { transform: none; }
[data-magnet] { translate: var(--mx, 0) var(--my, 0); transition: translate .5s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }

/* ---------- Calm mode ---------- */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.calm [data-magnet] { translate: none; }
html.calm [data-scrub] .sw { opacity: 1; }

/* ======================= X-RAY ======================= */
.xgrid, .xhud { display: none; }
html.xray .xgrid { display: block; position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.xgrid .container { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.xgrid span { background: rgba(92, 200, 255, .05); border-inline: 1px solid rgba(92, 200, 255, .22); }
html.xray body { background-image: linear-gradient(rgba(92, 200, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 200, 255, .07) 1px, transparent 1px); background-size: 20px 20px; }
html.xray .hero { background: none; }
html.xray img { filter: grayscale(1) contrast(1.15) brightness(.75); mix-blend-mode: screen; opacity: .55; }
html.xray .card__media { outline: 1px dashed var(--line); }
html.xray .card__media::after { content: "<img loading=lazy>"; position: absolute; left: 10px; bottom: 10px; font: 500 10px var(--f-mono); color: var(--signal); }
html.xray .build__canvas { filter: none; }
html.xray .marquee__row .o { -webkit-text-stroke-color: var(--signal); }
html.xray [data-xl] { outline: 1px dashed rgba(92, 200, 255, .75); outline-offset: 4px; position: relative; }
html.xray [data-xl]::before {
  content: attr(data-xl); position: absolute; left: -4px; top: -4px; transform: translateY(-100%); z-index: 41;
  font: 500 10px/1 var(--f-mono); letter-spacing: .04em; text-transform: none; font-style: normal;
  color: #06121F; background: #5CC8FF; padding: 4px 6px; white-space: nowrap; pointer-events: none; -webkit-text-fill-color: #06121F;
}
html.xray .w { overflow: visible; }
.xhud { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: 248px; background: rgba(6, 18, 31, .92); color: #CFE9FF; border: 1px solid rgba(92, 200, 255, .5); border-radius: 6px; padding: 14px 16px; font-family: var(--f-mono); font-size: 11px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html.xray .xhud { display: block; animation: rise .5s var(--ease) both; }
.xhud__title { display: flex; gap: 8px; align-items: center; color: #5CC8FF; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.xhud .dot { width: 7px; height: 7px; border-radius: 50%; background: #5CC8FF; box-shadow: 0 0 10px #5CC8FF; animation: blink 1.6s infinite; }
.xhud dl { display: grid; gap: 5px; }
.xhud dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(92, 200, 255, .18); padding-bottom: 5px; }
.xhud dt { color: #7FA6C8; }
.xhud dd { font-variant-numeric: tabular-nums; }
.xhud__hint { margin-top: 10px; color: #7FA6C8; }
.xhud kbd { border: 1px solid rgba(92, 200, 255, .5); border-radius: 3px; padding: 1px 5px; font-family: inherit; }
@keyframes blink { 50% { opacity: .3; } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: xsweep .8s var(--ease-io); }
@keyframes xsweep { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-grid; }
  .nav__tools { margin-left: auto; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__index { display: none; }
  .build__grid { grid-template-columns: 1fr; gap: 18px; align-content: start; }
  .build__sticky { align-items: flex-start; padding-top: calc(var(--nav-h) + 12px); }
  .build__copy { order: 2; }
  .build .display { font-size: clamp(28px, 6.4vw, 44px); margin-bottom: 12px; }
  .build .eyebrow { display: none; }
  .phase { display: none; padding: 4px 0 0 14px; }
  .phase.is-active { display: block; }
  .phase p:not(.phase__ship) { font-size: 15px; }
  .build__stage figcaption { display: none; }
  .xpromo__grid, .plans__grid, .contact__grid { grid-template-columns: 1fr; }
  .svc a { grid-template-columns: 40px 1fr 28px; }
  .svc__for { display: none; }
}
@media (max-width: 760px) {
  /* The reel becomes a native swipe on phones. */
  .work { padding: clamp(80px, 12vh, 120px) 0; }
  .work__pin { height: auto !important; }
  .work__sticky { position: static; height: auto; padding-top: 0; }
  .work__rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; padding-bottom: 8px; }
  .work__rail::-webkit-scrollbar { display: none; }
  .card, .card--feature { width: 84vw; scroll-snap-align: center; }
  .card--end { width: 60vw; }
  .work__progress, .work__count { display: none; }
  .contact__hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__cta, .brand__name, .xtoggle__label { display: none; }
  .hero__meta { display: none; }
  .hero__ctas, .hero__ctas .btn { width: 100%; }
  .xhud { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .xhud dl { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .xhud__hint { display: none; }
}

/* Client portal link: set apart from the page anchors */
.nav__links .nav__client { margin-left: 10px; border: 1px solid color-mix(in srgb, var(--signal) 55%, transparent); border-radius: 999px; color: var(--signal-text); }
.nav__links .nav__client::after { display: none; }
.nav__links .nav__client:hover { background: color-mix(in srgb, var(--signal) 14%, transparent); }

/* ---------- Services: grouped disciplines ---------- */
.svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: calc(-1 * clamp(12px, 3vh, 32px)) 0 clamp(28px, 5vh, 48px); }
.svc-tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.svc-tab span { font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin-left: 4px; }
.svc-tab:hover { border-color: var(--ink); }
.svc-tab.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-tab.is-on span { color: var(--bg); opacity: .6; }
.svc-group { display: grid; grid-template-columns: minmax(200px, 3fr) 9fr; gap: 16px clamp(24px, 4vw, 64px); padding-top: clamp(28px, 4vh, 44px); }
.svc-group[hidden] { display: none; }
.svc-group__head { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 8px; }
.svc-group__t { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.svc-group__head .mono { color: var(--mute); font-size: 11px; }
.svc-group .svc__name { font-size: clamp(26px, 3.4vw, 50px); }
.industries { margin-top: clamp(56px, 9vh, 96px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.industries .mono { color: var(--mute); }
.industries ul { display: flex; flex-wrap: wrap; gap: 8px; }
.industries li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); transition: border-color .3s, color .3s; }
.industries li:hover { border-color: var(--signal); color: var(--ink); }
@media (max-width: 860px) {
  .svc-group { grid-template-columns: 1fr; }
  .svc-group__head { position: static; }
}
.svc-group__link { color: var(--signal-text); text-decoration: none; font-size: 11px; padding: 6px 0; }
.svc-group__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Services: rows open in place */
.svc__row { width: 100%; display: grid; grid-template-columns: 64px 1fr auto 40px; align-items: center; gap: 16px; padding: clamp(18px, 2.4vw, 28px) 12px; background: none; border: 0; color: inherit; font: inherit; text-align: left; position: relative; isolation: isolate; overflow: hidden; cursor: pointer; }
.svc__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
.svc__row:hover::before, .svc__row:focus-visible::before { clip-path: inset(0 0 0 0); }
.svc__row:hover .svc__name, .svc__row:focus-visible .svc__name { color: var(--signal-ink); transform: translateX(14px); }
.svc__row:hover .svc__for, .svc__row:focus-visible .svc__for { opacity: 1; transform: none; color: var(--signal-ink); }
.svc__row:hover .svc__n, .svc__row:focus-visible .svc__n, .svc__row:hover .svc__arrow, .svc__row:focus-visible .svc__arrow { color: var(--signal-ink); }
.svc__row .svc__arrow { font-size: 32px; font-weight: 300; line-height: 1; transition: transform .5s var(--ease), color .3s; }
.svc__row[aria-expanded="true"] .svc__arrow { transform: rotate(45deg); color: var(--signal-text); }
.svc__row[aria-expanded="true"] .svc__name { color: var(--signal-text); }
.svc__row[aria-expanded="true"]:hover .svc__name, .svc__row[aria-expanded="true"]:hover .svc__arrow { color: var(--signal-ink); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.svc__panel[hidden] { display: grid; }
.svc__panel.is-open { grid-template-rows: 1fr; }
.svc__panel-in { overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px 40px; padding: 0 12px 0 92px; }
.svc__panel.is-open .svc__panel-in { padding-bottom: 30px; }
.svc__desc { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 52ch; }
.svc__feats { display: grid; gap: 8px; align-content: start; }
.svc__feats li { padding-left: 22px; position: relative; }
.svc__feats li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 1.5px; background: var(--signal); }
.svc__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.svc__more { white-space: nowrap; color: var(--signal-text); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 10px 4px; }
.svc__more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1020px) {
  .svc__row { grid-template-columns: 40px 1fr 28px; }
  .svc__panel-in { grid-template-columns: 1fr; padding-left: 12px; }
}

/* ---------- Testimonials ---------- */
.quotes { padding: clamp(100px, 16vh, 180px) 0; border-top: 1px solid var(--line); }
.quotes__head { display: flex; justify-content: space-between; align-items: center; }
.quotes__count { color: var(--mute); font-size: 13px; }
.quotes__count b { color: var(--ink); font-weight: 500; }
.quotes__stage { display: grid; min-height: clamp(260px, 34vw, 420px); align-items: center; }
.quote { grid-area: 1 / 1; margin: 0; display: grid; gap: 28px; }
.quote[hidden] { display: grid; visibility: hidden; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--f-serif); font-size: clamp(32px, 4.6vw, 72px); line-height: 1.06; letter-spacing: -.02em; max-width: 24ch; text-wrap: balance; }
.quote .w { overflow: hidden; }
.quote figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.quote figcaption b { font-size: 20px; font-weight: 620; }
.quote figcaption .mono { color: var(--mute); }
.quote .qw { display: inline-block; opacity: 0; transform: translateY(40%); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.quote.is-on .qw { opacity: 1; transform: none; }
.quote figcaption { opacity: 0; transition: opacity .6s .4s; }
.quote.is-on figcaption { opacity: 1; }
.quotes__nav { display: flex; gap: 10px; margin-top: 36px; }
.quotes__dot { width: 64px; height: 44px; padding: 0; background: none; border: 0; display: grid; align-items: center; }
.quotes__dot span { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.quotes__dot span::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; }
.quotes__dot.is-on span::after { animation: qfill 7s linear forwards; }
.quotes.is-paused .quotes__dot.is-on span::after, html.calm .quotes__dot.is-on span::after { animation: none; transform: scaleX(1); }
@keyframes qfill { to { transform: scaleX(1); } }

/* ---------- Performance promise ---------- */
.promise { margin-top: var(--gap); border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent); border-radius: 8px; padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 12px 40px; align-items: baseline; background: linear-gradient(100deg, color-mix(in srgb, var(--signal) 10%, transparent), transparent 60%); }
.promise__k { color: var(--signal-text); }
.promise__t { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); }
.promise__t b { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(100px, 16vh, 180px) 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 20px; }
.faq__head .display { margin: 0; }
.faq__head a { color: var(--signal-text); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; cursor: pointer; font-size: clamp(19px, 1.7vw, 24px); font-weight: 560; letter-spacing: -.02em; line-height: 1.25; transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { font-style: normal; font-size: 30px; font-weight: 300; color: var(--mute); transition: transform .45s var(--ease), color .3s; flex: none; }
.faq__item summary:hover { color: var(--signal-text); }
.faq__item[open] summary i { transform: rotate(45deg); color: var(--signal-text); }
.faq__a { padding: 0 4px 26px; color: var(--ink-2); font-size: 17px; max-width: 62ch; animation: rise .5s var(--ease) both; }
.faq__a a { color: var(--signal-text); }

/* ---------- Lead form ---------- */
.lead { position: relative; display: grid; grid-template-columns: 4fr 8fr; gap: 28px clamp(32px, 5vw, 80px); margin-bottom: clamp(56px, 9vh, 96px); padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(6px); }
.lead__k { color: var(--signal-text); margin-bottom: 12px; }
.lead__t { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -.02em; }
.lead__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.lead__form .f--wide, .lead__send { grid-column: 1 / -1; }
.lead__form .f__h { text-align: right; margin-top: 0; }
.lead__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lead__send .cu-error { margin: 0; }
.lead__done { grid-column: 2; align-self: center; display: grid; gap: 10px; outline: none; }
.lead__done .mono { color: #3DDC97; }
.lead__done b { color: var(--signal-text); font-weight: 500; }

@media (max-width: 1020px) {
  .faq__grid, .lead { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .lead__done { grid-column: 1; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .lead__form { grid-template-columns: 1fr; } }
.lead__pick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--signal) 50%, transparent); background: color-mix(in srgb, var(--signal) 10%, transparent); animation: rise .5s var(--ease) both; }
.lead__pick .mono { color: var(--signal-text); font-size: 11px; }
.lead__pick b { font-size: 18px; font-weight: 600; }
.lead__pick .ad-link { margin-left: auto; color: var(--ink-2); font-size: 14px; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px 0; }

/* ---------- The Handoff (scroll-played brand film) ---------- */
.handoff { position: relative; height: 480vh; background: #050407; }
.handoff__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.handoff__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.handoff__veil { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--bg), transparent 22%, transparent 78%, var(--bg)),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 4, 7, .75)); }
.handoff__beats { position: absolute; inset: 0; pointer-events: none; }
.hb { position: absolute; left: 0; bottom: 18vh; max-width: 13ch; opacity: 0; font-size: clamp(36px, 5.4vw, 88px); font-weight: 620; letter-spacing: -.045em; line-height: .95; text-shadow: 0 6px 40px rgba(0, 0, 0, .65); font-variation-settings: "opsz" 96; will-change: opacity, transform; }
.hb .mono { display: block; color: var(--signal-text); font-size: 12px; letter-spacing: .1em; margin-bottom: 14px; text-shadow: none; }
.hb--r { left: auto; right: 0; text-align: right; top: 20vh; bottom: auto; }
.hb--big { left: 50%; bottom: 12vh; transform: translateX(-50%); text-align: center; max-width: none; font-size: clamp(44px, 8vw, 140px); }
.hb--big .mono { text-align: center; }
.handoff__ui { position: absolute; left: 0; right: 0; bottom: 28px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.handoff__cap { color: rgba(242, 238, 230, .6); font-size: 11px; white-space: nowrap; }
.handoff__progress { flex: 1; height: 1px; background: rgba(242, 238, 230, .18); }
.handoff__progress span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); }
.handoff.is-end .handoff__cap { color: var(--signal-text); }
/* X-ray: the film becomes its own blueprint and a scan line sweeps it */
.handoff__scan { display: none; }
html.xray .handoff__cv { filter: grayscale(1) contrast(1.4) brightness(.9) sepia(1) hue-rotate(160deg) saturate(2.6); }
html.xray .handoff__scan { display: block; position: absolute; left: 0; right: 0; height: 2px; top: 0; background: #5CC8FF; box-shadow: 0 0 24px 6px rgba(92, 200, 255, .55); animation: scan 3.2s linear infinite; }
html.xray .handoff__pin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(92,200,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(92,200,255,.12) 1px, transparent 1px); background-size: 40px 40px; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
html.calm .handoff { height: 100svh; }
@media (max-width: 760px) {
  .handoff { height: 380vh; }
  .hb { bottom: 22vh; font-size: clamp(34px, 10vw, 52px); }
  .hb--r { top: 16vh; }
  .hb--big { width: 100%; font-size: clamp(48px, 15vw, 80px); }
}
.hb { max-width: 16ch; }
.hb--r { max-width: 15ch; }
.hb--big p { margin: 0; }
.hb__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.hb__tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(242, 238, 230, .28); background: rgba(10, 9, 13, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: none; }
.hb__sig { margin-top: 16px; font-size: 11px !important; color: rgba(242, 238, 230, .7) !important; }
@media (max-width: 760px) { .hb { max-width: 13ch; } .hb__tags { font-size: 12px; } }
/* last beat sits under the chrome word, not on it */
.hb--big { max-width: none; width: min(100%, 1100px); bottom: 6vh; font-size: clamp(34px, 4.4vw, 72px); }
@media (max-width: 760px) { .hb--big { bottom: 11vh; font-size: clamp(30px, 9vw, 44px); } }
/* keep the film's words readable over bright scenes */
.handoff__veil { background:
  linear-gradient(var(--bg), transparent 20%),
  linear-gradient(to top, rgba(5, 4, 7, .92) 0%, rgba(5, 4, 7, .55) 28%, transparent 52%),
  radial-gradient(60% 45% at 85% 22%, rgba(5, 4, 7, .7), transparent 70%),
  radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 4, 7, .75)); }
.hb { text-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 8px 40px rgba(0, 0, 0, .85); }
.hb em { color: var(--signal-text); }

/* ---------- Film as the opening hero ---------- */
.handoff__pin { background: #050407 url("../video/handoff/d/f000.jpg") center / cover no-repeat; }
@media (max-width: 760px) { .handoff__pin { background-image: url("../video/handoff/m/f000.jpg"); background-size: 160% auto; } }
.handoff__intro { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); will-change: opacity, translate; }
.handoff__intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 4, 7, .82) 0%, rgba(5, 4, 7, .45) 45%, transparent 75%); }
.handoff__intro .eyebrow { color: rgba(242, 238, 230, .75); }
.handoff__h1 { font-size: clamp(56px, 10vw, 168px); line-height: .88; letter-spacing: -.055em; font-weight: 640; font-variation-settings: "opsz" 96; max-width: 9ch; text-shadow: 0 8px 50px rgba(0, 0, 0, .6); margin-bottom: clamp(18px, 3vh, 32px); }
.handoff__h1 em { color: var(--signal-text); }
.handoff__intro .lede { color: rgba(242, 238, 230, .88); max-width: 38ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.handoff__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vh, 36px); }
.handoff__cue { position: absolute; left: 50%; bottom: 74px; translate: -50% 0; display: grid; justify-items: center; gap: 12px; color: rgba(242, 238, 230, .75); font-size: 11px; }
.handoff__cue i { width: 1px; height: 44px; background: rgba(242, 238, 230, .25); position: relative; overflow: hidden; }
.handoff__cue i::after { content: ""; position: absolute; inset: 0; background: var(--signal); animation: cue 2.2s var(--ease-io) infinite; }
@media (max-width: 760px) {
  .handoff__intro { justify-content: flex-end; padding-bottom: 150px; }
  .handoff__intro::before { background: linear-gradient(to top, rgba(5, 4, 7, .92) 0%, rgba(5, 4, 7, .6) 50%, transparent 80%); }
  .handoff__h1 { font-size: clamp(54px, 16vw, 80px); }
  .handoff__ctas .btn { flex: 1; }
  .handoff__cue { bottom: 64px; }
}
/* the particle section now sits below the film */
.hero { border-top: 1px solid var(--line); }

/* ---------- Touch targets: every tappable thing is at least ~44px tall ---------- */
.brand { min-height: 44px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.svc-group__link, .svc__more { display: inline-flex; align-items: center; min-height: 44px; }
.tag { font-size: 11px; }
@media (max-width: 640px) {
  .foot__links { gap: 0 18px; }
  .foot__top { gap: 8px; }
}
/* these use display:flex/grid, so the hidden attribute needs restating */
.lead__pick[hidden], .lead__done[hidden], .lead__form[hidden] { display: none; }

/* ---------- Palette preview (only with ?palette in the URL) ---------- */
html[data-palette="violet"] { --signal: #8B5CFF; --signal-text: #A88BFF; --signal-ink: #0A090D; }
html[data-palette="gold"]   { --signal: #E3B65B; --signal-text: #E9C47A; --signal-ink: #0A090D; }
html[data-palette="lime"]   { --signal: #C6FF3D; --signal-text: #D4FF6E; --signal-ink: #0A090D; }
.palette { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px; background: rgba(10, 9, 13, .9); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.palette .mono { color: var(--mute); font-size: 10px; margin-right: 4px; }
.palette button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; }
.palette button[aria-pressed="true"] { border-color: #F2EEE6; box-shadow: 0 0 0 2px rgba(10,9,13,.9) inset; }
html.fine:not(.calm) .palette button { cursor: none; }

/* ---------- Services mega menu ---------- */
.navmega { position: static; display: flex; align-items: center; }
.nav__mega-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; background: none; border: 0; color: var(--ink); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.nav__mega-btn span { font-size: 9px; transition: transform .3s var(--ease); }
.nav__mega-btn[aria-expanded="true"] span { transform: rotate(180deg); }
.nav__mega-btn[aria-expanded="true"] { color: var(--signal-text); }
.mega__panel { position: absolute; left: 0; right: 0; top: 100%; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); animation: megaIn .35s var(--ease) both; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } }
.mega__in { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 40px; padding: 32px 0 36px; }
.mega__h { color: var(--signal-text); font-size: 11px; margin-bottom: 14px; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.mega__col:nth-child(2) .mega__list { grid-template-columns: 1fr; }
.mega__list a { display: flex; align-items: center; min-height: 38px; text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: -.01em; padding: 0; text-transform: none; font-family: var(--f-display); }
.mega__list a::after { display: none; }
.mega__list a:hover { color: var(--signal-text); }
.mega__all { display: inline-flex; align-items: center; min-height: 40px; margin-top: 10px; color: var(--signal-text) !important; text-decoration: none; font-size: 11px !important; padding: 0 !important; }
.mega__all::after { display: none !important; }
.mega__aside { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 12px; align-content: start; justify-items: start; }
.mega__t { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.nav.has-mega { background: color-mix(in srgb, var(--bg) 96%, transparent); }

/* mobile drawer accordions */
.drawer { overflow-y: auto; }
.drawer__acc { border-bottom: 1px solid var(--line); }
.drawer__acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: clamp(36px, 10vw, 56px); font-weight: 600; letter-spacing: -.04em; padding: 6px 0; cursor: pointer; }
.drawer__acc summary::-webkit-details-marker { display: none; }
.drawer__acc summary::after { content: "+"; font-weight: 300; color: var(--signal-text); transition: transform .3s var(--ease); }
.drawer__acc[open] summary::after { transform: rotate(45deg); }
.drawer__acc ul { display: grid; padding: 0 0 14px; }
.drawer__acc ul a { font-size: 19px !important; font-weight: 500 !important; letter-spacing: -.01em !important; border: 0 !important; padding: 10px 0 !important; min-height: 44px; display: flex; align-items: center; color: var(--ink-2); }
.drawer__cta { margin-top: 22px; align-self: flex-start; font-size: 16px !important; letter-spacing: 0 !important; border: 0 !important; padding: 0 28px !important; }

/* the nav has more in it now: collapse to the menu button a little earlier */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-grid; }
  .nav__tools { margin-left: auto; }
}
@media (max-width: 1320px) { .xtoggle__label { display: none; } }

/* ---------- Homepage: AI & systems additions ---------- */
.handoff__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); color: #F2EEE6; margin: -6px 0 12px; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.sys { padding: clamp(90px, 14vh, 160px) 0; border-top: 1px solid var(--line); position: relative; }
.sys__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 6vh, 64px); }
.sys__head .display { margin: 0; }
.sys__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.sys__line { position: absolute; left: 4%; right: 4%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--signal), color-mix(in srgb, var(--signal) 20%, transparent)); z-index: 0; }
.sys__card { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; transition: border-color .3s, transform .5s var(--ease); }
.sys__card > .mono { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--signal-ink); font-size: 11px; letter-spacing: 0; }
.sys__card h3 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 640; letter-spacing: -.04em; }
.sys__card p { color: var(--ink-2); }
.sys__go { color: var(--signal-text); font-size: 11px; margin-top: 6px; }
.sys__card:hover { border-color: color-mix(in srgb, var(--signal) 60%, transparent); transform: translateY(-4px); }
.showcase { padding: clamp(90px, 14vh, 160px) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.showcase__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.showcase .display { font-size: clamp(36px, 4.6vw, 72px); margin-bottom: 18px; }
.showcase__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.showcase__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(40px, 7vh, 72px); }
.showcase__more { margin-top: 24px; }
.quotes__cta, .svc__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
a.svc__row { text-decoration: none; color: inherit; }
@media (max-width: 1020px) {
  .sys__head, .showcase__grid { grid-template-columns: 1fr; }
  .sys__grid { grid-template-columns: 1fr 1fr; }
  .sys__line { display: none; }
  .showcase__cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .sys__grid { grid-template-columns: 1fr; } }
/* long button labels wrap on small screens instead of widening the page */
@media (max-width: 640px) {
  .btn { white-space: normal; height: auto; min-height: var(--h); padding-top: 12px; padding-bottom: 12px; text-align: center; line-height: 1.25; }
}
.pkg { min-width: 0; }

/* ---------- Readable nav: solid backdrop, larger normal-case links, full contrast ---------- */
.nav { background: linear-gradient(rgba(8, 7, 11, .92), rgba(8, 7, 11, .78)); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled { background: rgba(8, 7, 11, .9); }
html.xray .nav { background: rgba(6, 18, 31, .92); }
.nav__links { gap: 4px; }
.nav__links > a, .nav__mega-btn { font-family: var(--f-display); font-size: 16px; font-weight: 560; letter-spacing: -.005em; text-transform: none; color: #F2EEE6; padding: 10px 14px; }
html.xray .nav__links > a, html.xray .nav__mega-btn { color: var(--ink); }
.nav__links > a:hover, .nav__mega-btn:hover { color: var(--signal-text); }
.nav__links > a::after { bottom: 4px; height: 2px; }
.nav__links .nav__client { font-size: 15px; padding: 8px 16px; color: var(--signal-text); }
.nav__mega-btn span { font-size: 11px; }
.brand { color: #F2EEE6; }
.xtoggle__label { font-size: 12px; color: #F2EEE6; }
.nav .iconbtn { color: #F2EEE6; border-color: rgba(242, 238, 230, .28); }
/* ---------- Homepage spotlight ---------- */
.spot { padding: clamp(90px, 14vh, 160px) 0; border-top: 1px solid var(--line); background: radial-gradient(70% 50% at 80% 0%, rgba(232, 90, 138, .12), transparent 70%); }
.spot__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 5vh, 48px); }
.spot__head .display { margin: 0; }
.spot__side { display: grid; gap: 18px; justify-items: start; }
.spot__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spot__chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
@media (max-width: 1020px) { .spot__head { grid-template-columns: 1fr; } }

/* phones: service buttons stack full width instead of squeezing into circles */
@media (max-width: 640px) { .svc__panel .svc__cta .btn { display: flex; align-items: center; flex: 1 1 100%; justify-content: center; text-align: center; } }

/* ---------- Existing clients: strip under the film, section before contact, CTA links ---------- */
.cstrip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--signal) 6%, var(--bg)); }
.cstrip__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.cstrip__t { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 17px; color: var(--ink-2); }
.cstrip__t b { color: var(--ink); font-weight: 650; }
.cstrip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 25%, transparent); animation: blink 1.8s infinite; }
.cstrip__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.clients { padding-block: clamp(70px, 10vw, 140px); border-top: 1px solid var(--line); }
.clients__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; margin-top: 18px; }
.clients__title { font-size: clamp(36px, 5vw, 72px); font-weight: 620; letter-spacing: -.045em; line-height: 1; margin: 0 0 18px; }
.clients__title em { font-family: var(--f-serif); font-weight: 400; color: var(--signal-text); }
.clients__lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 46ch; margin: 0 0 26px; }
.clients__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.clients__steps { display: grid; gap: 12px; counter-reset: none; }
.clients__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.clients__steps .mono { grid-row: span 2; color: var(--signal-text); font-size: 13px; padding-top: 3px; }
.clients__steps b { font-size: 19px; font-weight: 620; }
.clients__steps p { margin: 0; color: var(--mute); font-size: 15px; }
.cta-client-row { margin-top: 14px; }
.cta-client { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.cta-client b { color: var(--signal-text); font-weight: 600; }
.cta-client:hover b { text-decoration: underline; text-underline-offset: 3px; }
.contact__grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .contact__grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .clients__grid { grid-template-columns: 1fr; }
  .cstrip__in { padding-block: 14px; }
  .cstrip__btns { width: 100%; }
  .cstrip__btns .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 640px) { .contact__grid--4 { grid-template-columns: 1fr; } .cstrip__t span { display: none; } }

/* client bar: X-ray scan line along the bottom edge (a bright beam sweeps across every few seconds) */
.cstrip { position: relative; overflow: hidden; }
.cstrip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); opacity: .75; box-shadow: 0 0 8px color-mix(in srgb, var(--signal) 60%, transparent); }
.cstrip::after { content: ""; position: absolute; bottom: 0; left: 0; width: 28%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--signal) 45%, #fff 50%, var(--signal) 55%, transparent);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--signal) 70%, transparent), 0 -6px 18px color-mix(in srgb, var(--signal) 35%, transparent);
  transform: translateX(-110%); animation: cscan 4.2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes cscan { 0% { transform: translateX(-110%); } 75%, 100% { transform: translateX(380%); } }
html.calm .cstrip::after { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { .cstrip::after { animation: none; display: none; } }

/* "Client updates" stands out everywhere: bold red (menu button, phone menu, footer) */
:root { --client-red: #FF3B3B; }
.nav__links .nav__client { color: var(--client-red) !important; font-weight: 800 !important; border-color: color-mix(in srgb, var(--client-red) 70%, transparent); }
.nav__links .nav__client:hover { background: color-mix(in srgb, var(--client-red) 16%, transparent); }
.drawer a[href$="client-updates.html"], .foot a[href$="client-updates.html"], .foot__links a[href$="client-updates.html"] { color: var(--client-red) !important; font-weight: 800; }
html.xray .nav__links .nav__client, html.xray .drawer a[href$="client-updates.html"], html.xray .foot a[href$="client-updates.html"] { color: var(--signal-text) !important; }

/* contact: small sign-in links (clients + studio) */
.contact__logins { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 0; font-size: 12px; color: var(--mute); }
.contact__logins a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ink-2); text-decoration: none; }
.contact__logins a:hover { color: var(--signal-text); text-decoration: underline; text-underline-offset: 3px; }
.contact__logins svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
