/* Layout concept: a dark cinematic stage. Glowing particles re-form behind short chapter titles;
   a two-tone accent (Meta Blue · Royal Violet · Sunset · Aurora) lights type, buttons, glows and the 3D. */
/* fonts: self-hosted (fast, private, identical everywhere). Unbounded (OFL) · Manrope (OFL) · JetBrains Mono (OFL) */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #040507;
  --bg-2: #0a0c11;
  --surface: #0e1118;
  --surface-2: #151925;
  --ink: #eef1f7;
  --soft: #97a0b3;
  --faint: #7a8396;
  --line: rgba(160, 180, 220, 0.1);
  --line-2: rgba(160, 180, 220, 0.2);
  --accent: #1f6fff;
  --accent-2: #7cc4ff;
  --accent-ink: #ffffff;
  --btn: linear-gradient(120deg, #1554e8, #2f74ff);
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  --glow: rgba(31, 111, 255, 0.3);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --edge: max(clamp(1.1rem, 5vw, 4.5rem), env(safe-area-inset-left, 0px));
  --edge-r: max(clamp(1.1rem, 5vw, 4.5rem), env(safe-area-inset-right, 0px));
  --r: 22px;
}
:root[data-accent="violet"] { --accent: #7b5cff; --accent-2: #d36bff; --btn: linear-gradient(120deg, #5b3df5, #9d4edd); --glow: rgba(123, 92, 255, 0.32); }
:root[data-accent="sunset"] { --accent: #ff5a4d; --accent-2: #ffb347; --accent-ink: #1a0703; --btn: linear-gradient(120deg, #ff4d4d, #ffb347); --glow: rgba(255, 110, 70, 0.28); }
:root[data-accent="aurora"] { --accent: #00c2a8; --accent-2: #6ef0ff; --accent-ink: #00140f; --btn: linear-gradient(120deg, #00c2a8, #6ef0ff); --glow: rgba(0, 194, 168, 0.26); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 92px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; }
img, video, svg, canvas { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.035em; word-spacing: 0.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.7vw, 3.4rem); line-height: 1.06; }
h3 { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: 0.04em; }
.soft { color: var(--soft); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge-r); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 90; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: var(--edge); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--grad); }

/* ---------- preloader ---------- */
.loader { display: none; }
.js .loader { display: grid; position: fixed; inset: 0; z-index: 100; place-items: center; background: var(--bg); padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); clip-path: inset(0 0 0 0); }
.js .loader::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 60%); opacity: 0.5; filter: blur(20px); }
.ld-in { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; width: min(100%, 520px); }
.ld-name { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em; color: var(--soft); }
.ld-count { font-family: var(--display); font-weight: 500; font-size: clamp(3.6rem, 13vw, 7.2rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ld-count small { font-size: 0.3em; color: var(--accent); margin-left: 6px; vertical-align: 1.6em; letter-spacing: 0; }
.ld-bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 16px var(--glow); }
[hidden] { display: none !important; }
.ld-enter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ld-tip { font-size: 0.8rem; color: var(--faint); display: inline-flex; gap: 8px; align-items: center; }
.ld-tip svg { width: 16px; height: 16px; }
.entered .loader { pointer-events: none; }

/* ---------- nav ---------- */
/* floating glass capsule */
.top { position: fixed; z-index: 50; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; translate: -50% 0; width: min(1240px, calc(100% - 2 * clamp(12px, 3vw, 40px))); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 7px 7px 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(12, 15, 22, 0.42); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px -24px rgba(0, 0, 0, 0.9); transition: background 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s; }
.top::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--accent-2) 45%, transparent) 50%, transparent 80%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; pointer-events: none; }
.top.solid { background: rgba(8, 10, 15, 0.78); border-color: rgba(255, 255, 255, 0.1); }
.brand { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 0.92rem; letter-spacing: -0.02em; word-spacing: 0.05em; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; justify-self: start; }
.mark { width: 30px; height: 30px; flex: none; overflow: visible; filter: drop-shadow(0 4px 12px var(--glow)); }
@media (prefers-reduced-motion: no-preference) {
  .mark .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
  @keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
  .brand:hover .mark { animation: bob 0.8s var(--ease); }
  @keyframes bob { 40% { transform: translateY(-3px) rotate(-6deg); } }
}
.links { display: flex; align-items: center; gap: 2px; justify-self: center; }
.links a { color: var(--soft); text-decoration: none; font-size: 0.9rem; padding: 8px 14px; border-radius: 999px; transition: color 0.3s, background 0.3s; }
.links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.tools { display: flex; align-items: center; gap: 8px; justify-self: end; }
.tools a.cta { color: var(--accent-ink); background: var(--btn); border-radius: 999px; padding: 10px 20px; font-size: 0.9rem; font-weight: 500; text-decoration: none; box-shadow: 0 6px 22px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.tools a.cta:hover { filter: brightness(1.08); }
.swatches { display: flex; gap: 7px; padding: 9px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.swatches button { width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--c), var(--c2, var(--c))); box-shadow: 0 0 0 0 transparent; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--c2); transform: scale(1.1); }
.swatches button:hover { transform: scale(1.25); }
.swatches button { position: relative; }
.swatches button::after { content: ""; position: absolute; inset: -6px -3px; }
.snd { display: grid; place-items: center; height: 34px; width: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.04); cursor: pointer; color: var(--soft); transition: color 0.3s, background 0.3s; }
.snd:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.snd svg { width: 18px; height: 18px; }
.snd .w1, .snd .w2 { opacity: 0; transition: opacity 0.3s; }
.sound-on .snd { color: var(--accent-2); }
.sound-on .snd .w1, .sound-on .snd .w2 { opacity: 1; }
.sound-on .snd .x { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sound-on .snd .w2 { animation: wave 1.4s ease-in-out infinite; }
  @keyframes wave { 50% { opacity: 0.25; } }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 0.98rem/1 var(--body); text-decoration: none; padding: 16px 24px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s; will-change: transform; }
.btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.35); color: var(--ink); }
.btn.solid { background: var(--btn); color: var(--accent-ink); border-color: transparent; box-shadow: 0 14px 40px -12px var(--glow); }
.btn.solid:hover { filter: brightness(1.08) saturate(1.05); color: var(--accent-ink); }
.btn svg { width: 15px; height: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- cursor: metallic arrow (native, so it never lags) ---------- */
@media (pointer: fine) {
  html, body { cursor: image-set(url("../img/cursor.png") 1x, url("../img/cursor@2x.png") 2x) 3 2, auto; cursor: -webkit-image-set(url("../img/cursor.png") 1x, url("../img/cursor@2x.png") 2x) 3 2, auto; }
  a, button, summary, label, [role="button"], .tile, .ad { cursor: image-set(url("../img/cursor-link.png") 1x, url("../img/cursor-link@2x.png") 2x) 3 2, pointer; cursor: -webkit-image-set(url("../img/cursor-link.png") 1x, url("../img/cursor-link@2x.png") 2x) 3 2, pointer; }
  input, textarea { cursor: text; }
}

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.stage-on #stage { opacity: 1; }
.no-webgl #stage { display: none; }
.no-webgl body { background: radial-gradient(60% 50% at 75% 30%, var(--glow), transparent 70%), var(--bg); }
main { position: relative; z-index: 5; }
.hud { position: fixed; z-index: 20; left: var(--edge); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); display: flex; gap: 12px; align-items: center; pointer-events: none; }
.hud b { color: var(--accent); font-weight: 500; }
.hud { transition: opacity 0.4s var(--ease); }
.hud.off { opacity: 0; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding-block: calc(env(safe-area-inset-top, 0px) + 110px) clamp(56px, 9vh, 100px); }
.hero .wrap { display: grid; gap: 26px; }
.hero h1 { max-width: 11ch; }
.hero .sub { color: var(--soft); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 31rem; }
.scroll { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.scroll i { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .scroll i::after { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: #fff; animation: drip 1.8s var(--ease) infinite; } @keyframes drip { to { top: 34px; } } }

/* ---------- chapters over the 3D ---------- */
.chapter { min-height: 110svh; display: flex; align-items: center; padding-block: 110px 80px; }
.chapter .text { width: min(100%, 28rem); display: grid; gap: 18px; }
.chapter .num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--accent-2); display: flex; align-items: center; gap: 12px; }
.chapter .num::after { content: ""; width: 56px; height: 1px; background: var(--grad); }
.chapter p { color: var(--soft); font-size: 1.12rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 0.82rem; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 13px; background: rgba(4, 5, 7, 0.5); backdrop-filter: blur(6px); }
.chapter .more { font-size: 0.94rem; color: var(--accent-2); text-decoration: none; justify-self: start; }
.chapter .more:hover { color: var(--ink); }

/* ---------- opaque bands ---------- */
.band { position: relative; z-index: 5; background: var(--bg); padding-block: clamp(56px, 6vw, 96px); }
.band + .band { padding-top: 0; }
.band.fade { box-shadow: 0 -140px 140px -10px var(--bg); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 40px; margin-bottom: clamp(28px, 3vw, 44px); }
.head > div { display: grid; gap: 14px; max-width: 46rem; }

/* cards: media on top, caption underneath (nothing written over the video) */
.head .link-more, .link-more { font-size: 0.94rem; color: var(--soft); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; }
.link-more svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.link-more:hover { color: var(--ink); border-color: var(--accent-2); }
.link-more:hover svg { transform: translateX(4px); }
.tile, .ad { position: relative; display: grid; gap: 14px; align-content: start; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.media { position: relative; display: block; aspect-ratio: var(--ar); border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.5s var(--ease), box-shadow 0.6s var(--ease); isolation: isolate; }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter 0.8s var(--ease); filter: saturate(0.92) brightness(0.92); }
.media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); pointer-events: none; }
.media .play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(4, 5, 7, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.media .play svg { width: 11px; height: 11px; margin-left: 2px; }
.tile:hover .media, .ad:hover .media { border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); box-shadow: 0 24px 60px -30px var(--glow); }
.tile:hover video, .ad:hover video { transform: scale(1.035); filter: none; }
.tile:hover .play, .ad:hover .play { background: var(--accent); border-color: transparent; transform: scale(1.08); }
.cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.cap .t { font-family: var(--display); font-weight: 500; font-size: 0.98rem; letter-spacing: -0.02em; word-spacing: 0.02em; }
.cap .g { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.ad .cap { display: grid; gap: 4px; }
.ad .cap .t { font-size: 0.86rem; }

/* work rows: widths follow each video's shape, so every card in a row is the same height */
.grid { display: grid; gap: clamp(28px, 3vw, 40px); }
.grid .row { display: flex; gap: 16px; align-items: flex-start; }
.grid .tile { flex: calc(var(--ar)) 1 0; }

/* CGI ads: five vertical ads in one row on desktop, swipe on phones */
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ads-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 16px; }
.ads-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
.ad-item { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ad-item p { color: var(--soft); font-size: 0.9rem; line-height: 1.5; padding: 0 4px; }

/* service pages */
.svc { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc li { display: grid; gap: 10px; align-content: start; padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.svc li h3 { display: flex; align-items: center; gap: 12px; }
.svc li h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.svc li p { color: var(--soft); font-size: 0.98rem; }
.cases { display: grid; border-top: 1px solid var(--line); }
.cases a { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr auto; align-items: center; gap: 20px; padding: 26px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding 0.5s var(--ease), color 0.3s; }
.cases a b { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.8rem); letter-spacing: -0.03em; }
.cases a .g { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.cases a .go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.4s, border-color 0.4s; }
.cases a .go svg { width: 15px; height: 15px; }
.cases a:hover { padding-left: 14px; }
.cases a:hover .go { background: var(--btn); border-color: transparent; color: var(--accent-ink); }
.svc-page .case-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.svc-page .case-hero h1 { max-width: 14ch; }
.svc-page .case-hero .wrap { position: relative; }
.hero-vis { position: absolute; right: var(--edge-r); top: 50%; transform: translateY(-46%); width: min(44%, 540px); height: 100%; max-height: 440px; pointer-events: none; }
.hero-vis img { position: absolute; border-radius: 18px; border: 1px solid var(--line-2); object-fit: cover; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03); }
.hero-vis.tall img { width: 34%; aspect-ratio: 9 / 16; top: 50%; }
.hero-vis.tall img:nth-child(1) { left: 6%; transform: translateY(-46%) rotate(-7deg); opacity: 0.8; }
.hero-vis.tall img:nth-child(2) { left: 33%; transform: translateY(-54%); z-index: 2; box-shadow: 0 40px 90px -30px var(--glow), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.hero-vis.tall img:nth-child(3) { left: 60%; transform: translateY(-46%) rotate(7deg); opacity: 0.8; }
.hero-vis.wide img:nth-child(1) { width: 82%; aspect-ratio: 16 / 9; left: 0; top: 4%; z-index: 2; box-shadow: 0 40px 90px -30px var(--glow); }
.hero-vis.wide img:nth-child(2) { width: 62%; aspect-ratio: 16 / 9; right: 0; bottom: 2%; opacity: 0.85; }
.hero-vis.wide img:nth-child(3) { width: 26%; aspect-ratio: 4 / 5; left: 6%; bottom: 0; z-index: 3; }
@media (prefers-reduced-motion: no-preference) { .hero-vis { animation: visIn 1.4s var(--ease) 0.2s both; } @keyframes visIn { from { opacity: 0; translate: 0 30px; } } }
@media (max-width: 1000px) { .hero-vis { display: none; } }

/* lightbox */
dialog.lb { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: min(1100px, calc(100vw - 32px)); width: 100%; max-height: calc(100svh - 32px); overflow: visible; }
dialog.lb::backdrop { background: rgba(2, 3, 5, 0.88); backdrop-filter: blur(12px); }
.lb-in { display: grid; gap: 18px; position: relative; }
.lb-media { border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 30px 120px -20px var(--glow); }
.lb-media video { width: 100%; max-height: 72svh; object-fit: contain; background: #000; }
.lb-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.lb-info div { display: grid; gap: 6px; max-width: 40rem; }
.lb-info p { color: var(--soft); }
.lb-close { position: absolute; top: -54px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.2rem; }

/* tools strip */
.strip { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.strip ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip ul { display: flex; gap: 56px; width: max-content; margin: 0; padding: 26px 0; list-style: none; animation: slide 45s linear infinite; }
.strip li { font-family: var(--display); font-size: clamp(1.05rem, 1.9vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; color: var(--faint); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.strip li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }
@keyframes slide { to { transform: translateX(-50%); } }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px 32px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%), var(--surface); display: grid; gap: 14px; align-content: start; min-width: 0; overflow: hidden; }
.steps .n { font-family: var(--display); font-size: 2.6rem; line-height: 1; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; opacity: 0.9; }
.steps p { color: var(--soft); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote { margin: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; background: var(--surface); display: grid; gap: 22px; align-content: space-between; min-width: 0; }
.quote blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--display); font-size: 3rem; line-height: 0.6; color: var(--accent-2); margin-bottom: 6px; }
.quote footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--soft); font-size: 0.9rem; }
.quote .ex { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); border: 1px dashed var(--line-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 16 / 10; background: #000; }
.about figure img { width: 100%; height: 100%; object-fit: cover; }
.about figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 50%, var(--glow)); mix-blend-mode: screen; opacity: 0.6; }
.about .txt { display: grid; gap: 20px; }
.about .txt p { color: var(--soft); font-size: 1.08rem; }
.about .txt p strong { color: var(--ink); font-weight: 500; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.creds li { font-size: 0.8rem; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 12px; }

/* faq */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--soft); max-width: 44rem; }

/* contact */
.contact { position: relative; z-index: 5; min-height: 100svh; display: grid; align-items: end; text-align: center; padding-block: 40svh 70px; }
.contact .in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
.contact h2 { font-size: clamp(2.1rem, 5.6vw, 4.8rem); max-width: 13ch; }
.contact .mail { font-family: var(--mono); font-size: 0.86rem; color: var(--soft); user-select: all; }
.contact .actions { justify-content: center; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--soft); background: rgba(4, 5, 7, 0.5); backdrop-filter: blur(6px); transition: color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 24px var(--glow); }
.socials svg { width: 18px; height: 18px; }

footer.site { position: relative; z-index: 5; background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(44px, 5vw, 64px) calc(env(safe-area-inset-bottom, 0px) + 28px); }
footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; color: var(--faint); font-size: 0.88rem; align-items: start; }
footer.site .f-brand { display: grid; gap: 12px; max-width: 22rem; }
footer.site .f-brand p { color: var(--soft); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: flex-end; padding-top: 2px; }
footer.site a { color: var(--soft); text-decoration: none; transition: color 0.3s; }
footer.site nav a { color: var(--ink); font-size: 0.95rem; }
footer.site a:hover { color: var(--accent-2); }
footer.site .f-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 22px; }
footer.site .brand { color: var(--ink); }

/* ---------- case pages ---------- */
.case-hero { padding-block: calc(env(safe-area-inset-top, 0px) + 140px) 48px; background: radial-gradient(60% 70% at 85% 0%, var(--glow), transparent 60%); }
.case-hero .wrap { display: grid; gap: 22px; }
.case-hero h1 { font-size: clamp(2rem, 4.8vw, 4rem); max-width: 16ch; }
.case-hero .lede { color: var(--soft); font-size: 1.2rem; max-width: 40rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.tldr { border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: 14px; padding: 22px 24px; background: var(--surface); max-width: 50rem; display: grid; gap: 8px; }
.tldr strong { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); border-block: 1px solid var(--line); margin: 0; }
.facts-row div { padding: 14px 16px 14px 0; display: grid; gap: 2px; }
.facts-row dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.facts-row dd { margin: 0; }
.player { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 120px -30px var(--glow); }
.player.fit { aspect-ratio: auto; display: flex; justify-content: center; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player.fit video { width: auto; max-width: 100%; max-height: 80svh; object-fit: contain; }
.vctl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.vctl button { font: 500 0.76rem var(--mono); color: var(--ink); background: rgba(4, 5, 7, 0.7); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.case-body { padding-block: 24px 90px; }
.case-body .wrap { display: grid; gap: 64px; }
.case-sec { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(18px, 4vw, 56px); }
.case-sec > h2 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: -0.035em; }
.case-sec .content { display: grid; gap: 16px; max-width: 46rem; min-width: 0; }
.case-sec .content p { color: var(--soft); }
.case-sec .content p strong { color: var(--ink); font-weight: 500; }
.case-sec .content h3 { margin-top: 6px; }
.flow-list { margin: 0; padding: 0; list-style: none; counter-reset: f; border-left: 1px solid var(--line-2); }
.flow-list li { counter-increment: f; position: relative; padding: 0 0 18px 26px; }
.flow-list li::before { content: counter(f); position: absolute; left: -11px; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--accent); font: 500 0.64rem/19px var(--mono); text-align: center; color: var(--accent-2); }
.flow-list li span { display: block; color: var(--soft); font-size: 0.95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 30rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td .st { font-family: var(--mono); font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-2); white-space: nowrap; }
.disclaimer { border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; color: var(--soft); font-size: 0.94rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 0.82rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; color: var(--soft); }
.next-case { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.next-case a { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.next-case a:hover { color: var(--accent); }
.case-contact { padding-block: 100px 80px; text-align: center; }
.case-contact .in { display: grid; justify-items: center; gap: 22px; grid-template-columns: minmax(0, 1fr); }

/* ---------- legal pages ---------- */
.legal .case-hero { padding-bottom: 24px; }
.legal .case-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; background: var(--surface); max-width: 46rem; }
.toc ol { margin: 0; padding: 0 0 0 18px; columns: 2 14rem; column-gap: 32px; color: var(--soft); font-size: 0.94rem; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.legal .case-body .wrap { gap: 44px; }
.legal .case-sec .content ul { margin: 0; padding-left: 20px; color: var(--soft); display: grid; gap: 8px; }
.legal .case-sec .content a { color: var(--accent-2); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1.2s var(--ease) both; }
  .rise.d1 { animation-delay: 0.1s; } .rise.d2 { animation-delay: 0.2s; } .rise.d3 { animation-delay: 0.32s; }
  @keyframes rise { from { transform: translateY(26px); opacity: 0.001; } }
  .js .reveal { transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
  .js .reveal.below { transform: translateY(24px); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .strip ul { animation: none; flex-wrap: wrap; width: auto; gap: 10px 28px; padding-inline: var(--edge); }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); scroll-padding-inline: var(--edge); scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf .ad { flex: 0 0 min(58vw, 240px); scroll-snap-align: start; }
  .ads-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .quotes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
/* phone menu */
.menu-btn { display: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 16px; height: 16px; }
.menu { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .menu { position: fixed; z-index: 49; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 76px); padding: 10px 22px 18px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(10, 12, 18, 0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; gap: 2px; opacity: 0; transform: translateY(-10px) scale(0.98); transform-origin: top; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
  .menu.open { opacity: 1; transform: none; }
  .menu a { font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .menu a:nth-last-child(2) { border-bottom: 0; }
  .menu .menu-sw { display: none; justify-self: start; margin-top: 10px; gap: 14px; padding: 10px 14px; }
  .menu .menu-sw button { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .tools > .swatches { display: none; }
  .menu .menu-sw { display: flex; }
}
@media (max-width: 860px) {
  .links { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .hud { display: none; }
}
@media (max-width: 760px) {
  .hero { padding-top: 52svh; }
  .chapter { align-items: flex-end; padding-block: 52svh 48px; }
  .chapter .text { background: linear-gradient(to top, rgba(4, 5, 7, 0.94) 70%, transparent); padding-top: 40px; }
  .grid .row { flex-wrap: wrap; row-gap: 28px; }
  .grid .tile { flex: 1 1 100%; }
  .grid .tile[style*="4/5"] { flex: 1 1 calc(50% - 8px); }
  .ads-grid, .ads-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  footer.site nav { justify-content: flex-start; display: grid; grid-template-columns: 1fr 1fr; }
  .cases a { grid-template-columns: 1fr auto; }
  .svc { grid-template-columns: 1fr; }
  .cases a .g { grid-column: 1 / -1; }
  .case-sec { grid-template-columns: 1fr; }
  .tools .swatches { padding: 8px; gap: 6px; }
}
@media (max-width: 420px) {
  .brand span.long { display: none; }
  .tools a.cta { padding: 9px 15px; }
}
