/* ==========================================================================
   Redbox Technologies — Design System
   Dark · Minimal · Cinematic. Brand red comes from the logo (#FF0000).
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
/* Metric-matched fallbacks keep layout shift low while web fonts load. */
@font-face { font-family: "Grotesk Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 26%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 103%; descent-override: 29%; }

/* ---------- Tokens ---------- */
:root {
  --bg: #08090b;
  --bg-2: #111216;
  --surface: #191b20;
  --surface-2: #202329;
  --text: #f7f7f8;
  --text-2: #a3a5ae;
  --text-3: #82858f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);
  --red: #ff0000;
  --red-hi: #ff3b3b;
  --red-soft: rgba(255, 0, 0, 0.12);
  --glow: rgba(255, 16, 16, 0.42);

  --font-display: "Space Grotesk", "Grotesk Fallback", system-ui, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", system-ui, sans-serif;

  --fs-hero: clamp(3.4rem, 1.1rem + 9.4vw, 11.75rem);
  --fs-xxl: clamp(2.9rem, 1rem + 6.4vw, 8.5rem);
  --fs-xl: clamp(2.35rem, 1rem + 4.1vw, 5.6rem);
  --fs-lg: clamp(1.75rem, 1rem + 2.2vw, 3.1rem);
  --fs-md: clamp(1.3rem, 1rem + 0.9vw, 1.75rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.75rem;

  --max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 9vw, 150px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--red); color: #fff; border-radius: 999px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

/* Film grain keeps large dark areas from banding. */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Type ---------- */
.display-hero { font-size: var(--fs-hero); line-height: 0.86; letter-spacing: -0.06em; text-transform: uppercase; font-weight: 500; }
.display-xxl { font-size: var(--fs-xxl); line-height: 0.9; letter-spacing: -0.055em; text-transform: uppercase; }
.display-xl { font-size: var(--fs-xl); line-height: 0.95; letter-spacing: -0.05em; }
.h-lg { font-size: var(--fs-lg); line-height: 1.04; letter-spacing: -0.04em; }
.h-md { font-size: var(--fs-md); line-height: 1.2; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.red { color: var(--red); }
.prose p + p { margin-top: 1.1em; }
.prose { color: var(--text-2); max-width: 60ch; }
.prose strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 2px; background: var(--red); box-shadow: 0 0 12px 2px var(--glow); flex: none; }
.eyebrow__num { color: var(--text-3); }

.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head__title { grid-column: 1 / span 8; }
.section-head__title .eyebrow { margin-bottom: 28px; }
.section-head__aside { grid-column: 9 / -1; display: grid; gap: 24px; justify-items: start; }
.section-head__aside p { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--text); transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--bg); border-color: var(--text); }
.btn__icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:hover .icon[class*="btn__icon"][data-dir="ur"] { transform: translate(2px, -2px); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 40px -12px var(--glow); }
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: 0 16px 60px -10px var(--glow); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.88rem; }
.btn--lg { --h: 60px; padding: 0 32px; font-size: 1rem; }
.btn--xl { --h: clamp(64px, 6vw, 84px); padding: 0 clamp(28px, 3vw, 44px); font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.2s var(--ease) infinite; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; color: var(--text); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.link-arrow:hover span { background-size: 100% 1px; }

/* Text roll on hover: duplicated line slides up. */
.link-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; color: var(--text-2); transition: color 0.3s; }
.link-roll:hover { color: var(--text); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80; padding: 16px var(--gutter);
  transition: transform 0.6s var(--ease); view-transition-name: site-nav;
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__inner {
  max-width: var(--max); margin-inline: auto; padding: 8px 8px 8px 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), max-width 0.6s var(--ease), backdrop-filter 0.5s;
}
.nav.is-scrolled .nav__inner {
  max-width: 1180px; background: rgba(12, 13, 16, 0.72); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}
.nav__logo { justify-self: start; display: block; color: var(--text); }
.logo { width: 132px; height: auto; overflow: visible; }
.logo--lg { width: 188px; }
.nav__pill {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(17, 18, 22, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled .nav__pill { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--text-2); transition: color 0.3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--red); box-shadow: 0 0 10px var(--glow); }
.nav__indicator {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); opacity: 0;
  transform: translateX(var(--x, 0)); width: var(--w, 0);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.nav__pill.has-hover .nav__indicator { opacity: 1; }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(17, 18, 22, 0.6); position: relative; backdrop-filter: blur(10px); }
.nav__burger-line { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__burger-line:nth-of-type(2) { top: 19px; }
.nav__burger-line:nth-of-type(3) { top: 26px; }
.menu-open .nav__burger-line:nth-of-type(2) { top: 22.5px; transform: rotate(45deg); }
.menu-open .nav__burger-line:nth-of-type(3) { top: 22.5px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.menu {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: rgba(8, 9, 11, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-io); overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__glow { position: absolute; width: 90vw; height: 90vw; right: -40vw; bottom: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 0, 0.35), transparent 65%); filter: blur(30px); pointer-events: none; }
.menu__list { display: grid; gap: 4px; }
.menu__link { display: flex; align-items: baseline; gap: 16px; padding: 6px 0; font-family: var(--font-display); font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.05; letter-spacing: -0.05em; color: var(--text); }
.menu__link.is-active .menu__label { color: var(--red); }
.menu__num { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--text-3); width: 2ch; }
.menu__link > span { display: inline-block; transform: translateY(30px); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); }
.menu.is-open .menu__link > span { transform: none; opacity: 1; }
.menu.is-open li:nth-child(2) .menu__link > span { transition-delay: 0.05s; }
.menu.is-open li:nth-child(3) .menu__link > span { transition-delay: 0.1s; }
.menu.is-open li:nth-child(4) .menu__link > span { transition-delay: 0.15s; }
.menu.is-open li:nth-child(5) .menu__link > span { transition-delay: 0.2s; }
.menu__foot { position: relative; display: grid; gap: 22px; justify-items: start; padding-top: 40px; }
.menu__mail { color: var(--text-2); }
.menu-open { overflow: hidden; }

.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease); }
.socials a:hover { color: #fff; border-color: var(--red); background: var(--red); transform: translateY(-3px); }
.socials .icon { width: 18px; height: 18px; }

/* ---------- Media treatment ---------- */
/* Stock photography is graded to one cinematic look; colour returns on interaction. */
.media { display: block; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--graded img { filter: grayscale(1) contrast(1.12) brightness(0.78); transition: filter 1.2s var(--ease), transform 1.2s var(--ease); }
.media--graded::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255, 20, 20, 0.38), transparent 55%), linear-gradient(180deg, transparent 50%, rgba(8, 9, 11, 0.65));
  mix-blend-mode: screen;
}
.media--graded::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 11, 0.55)); }
.media--graded:hover img, .is-active > .media--graded img { filter: grayscale(0.15) contrast(1.05) brightness(0.9); }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-1 { aspect-ratio: 1; }

/* Viewfinder corner brackets — the "box" motif. */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; z-index: 3; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--red); border-style: solid; border-width: 0;
}
.brackets::before { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.brackets::after { bottom: -10px; right: -10px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: safe flex-end; padding: calc(var(--nav-h) + 72px) 0 32px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 120px; background-position: center top;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; left: calc(var(--gx, 70) * 1%); top: calc(var(--gy, 45) * 1%);
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.26) 0%, rgba(255, 0, 0, 0.08) 35%, transparent 65%);
  transition: left 1.6s var(--ease), top 1.6s var(--ease);
}
.hero__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero__visual { position: absolute; z-index: -1; top: 52%; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); width: min(50vw, 720px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
/* WebGL hero: full-bleed scene with a readability scrim behind the copy */
.hero.is-3d .hero__visual { inset: 0; top: 0; right: 0; width: auto; aspect-ratio: auto; transform: none; opacity: 1; }
.hero.is-3d [data-hero-canvas], .hero.is-3d .hero__visual-fallback, .hero.is-3d .hero__grid { display: none; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; animation: glIn 1.6s var(--ease) 0.1s forwards; }
@keyframes glIn { to { opacity: 1; } }
.hero.is-3d .hero__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8, 9, 11, 0.96) 0%, rgba(8, 9, 11, 0.82) 30%, rgba(8, 9, 11, 0.25) 50%, rgba(8, 9, 11, 0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 11, 0.4) 18%, rgba(8, 9, 11, 0) 34%), linear-gradient(180deg, rgba(8, 9, 11, 0.7) 0%, rgba(8, 9, 11, 0) 18%); }
@media (max-width: 1023.98px) {
  .hero.is-3d .hero__visual::after { background: linear-gradient(90deg, rgba(8, 9, 11, 0.7) 0%, rgba(8, 9, 11, 0.25) 55%, rgba(8, 9, 11, 0) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 11, 0) 25%), linear-gradient(180deg, rgba(8, 9, 11, 0.6) 0%, rgba(8, 9, 11, 0) 16%); }
}
@media (max-width: 767.98px) {
  .hero.is-3d .hero__visual::after { background: radial-gradient(120% 60% at 50% 50%, rgba(8, 9, 11, 0.55), rgba(8, 9, 11, 0.78)), linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 11, 0) 22%); }
  .hero.is-3d .hero__title, .hero.is-3d .hero__sub, .hero.is-3d .hero__desc { text-shadow: 0 2px 24px rgba(8, 9, 11, 0.85); }
  .hero.is-3d .hero__title .accent { background: none; color: #ff2b2b; text-shadow: 0 0 2px rgba(8, 9, 11, 0.9), 0 2px 18px rgba(8, 9, 11, 0.95); }
}
.hud { position: absolute; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.hud b { font-weight: 500; color: var(--red-hi); font-variant-numeric: tabular-nums; }
.hud--tl { top: 8%; left: 6%; } .hud--tr { top: 8%; right: 6%; } .hud--bl { bottom: 8%; left: 6%; } .hud--br { bottom: 8%; right: 6%; }
.hud::before { content: ""; display: inline-block; width: 14px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--red); }
.js:not(.is-static):not(.no-motion) .hud { opacity: 0; transition: opacity 1.2s var(--ease) 1.6s; }
.has-canvas .hud { opacity: 1 !important; }
.hero.is-3d .hero__caret { display: none; }
.hero__visual canvas { width: 100%; height: 100%; }
.hero__visual-fallback { position: absolute; inset: 18%; border: 2px solid rgba(255, 0, 0, 0.5); border-radius: 18%; transform: rotate(12deg); box-shadow: 0 0 120px rgba(255, 0, 0, 0.25), inset 0 0 80px rgba(255, 0, 0, 0.15); }
.has-canvas .hero__visual-fallback { display: none; }
.hero__top { margin-bottom: clamp(28px, 4vw, 48px); }
.hero__pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(17, 18, 22, 0.5); backdrop-filter: blur(10px); font-size: 0.82rem; color: var(--text-2); }
.hero__pill b { font-weight: 600; color: var(--text); }
.hero__pill .eyebrow__dot { animation: pulse 2.4s infinite; }
.hero__title { position: relative; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.2s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero__title .accent { display: inline-block; min-width: 2.6em; color: transparent; background: linear-gradient(100deg, #ff3a3a 0%, var(--red) 45%, #b00000 100%); -webkit-background-clip: text; background-clip: text; }
.hero__caret { display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.06em; border-radius: 0.06em; background: var(--red); box-shadow: 0 0 40px var(--glow); vertical-align: 0.04em; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0.15; } }
.hero__meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: end; margin-top: clamp(36px, 5vw, 64px); }
.hero__copy { grid-column: 1 / span 6; }
.hero__sub { font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero__sub span { color: var(--text-3); }
.hero__desc { color: var(--text-2); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-family: var(--font-display); }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll-line { position: relative; width: 48px; height: 1px; background: var(--line-2); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-100%); animation: scan 2.4s var(--ease-io) infinite; }
@keyframes scan { 60%, 100% { transform: translateX(100%); } }
.hero__tags { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.hero__tags li { display: inline-flex; align-items: center; gap: 22px; }
.hero__tags li + li::before { content: ""; width: 4px; height: 4px; border-radius: 1px; background: var(--text-3); }

/* ---------- Clients marquee ---------- */
.clients { border-block: 1px solid var(--line); padding-block: clamp(36px, 4vw, 56px); }
.clients__inner { display: grid; grid-template-columns: minmax(220px, 3fr) 9fr; gap: var(--gap); align-items: center; }
.clients__label { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.4; color: var(--text-2); }
.clients__label strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 38s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(40px, 6vw, 96px); padding-right: clamp(40px, 6vw, 96px); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo { height: clamp(34px, 3.4vw, 46px); width: auto; opacity: 0.5; filter: grayscale(1) brightness(1.6); transition: opacity 0.4s, filter 0.4s; }
.client-logo:hover { opacity: 1; filter: none; }

/* ---------- About (home) ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(48px, 6vw, 96px); }
.about__statement { grid-column: 1 / span 8; font-size: clamp(2rem, 0.9rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; }
.about__statement .eyebrow { display: flex; margin-bottom: 36px; }
.about__statement h2 { font-size: inherit; line-height: inherit; letter-spacing: inherit; font-weight: inherit; }
.scrub-word { opacity: 0.16; transition: opacity 0.2s linear; }
.is-static .scrub-word, .no-motion .scrub-word { opacity: 1; }
.about__media { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: start; margin-top: 110px; }
.about__media .media { aspect-ratio: 3 / 4; }
.about__media figcaption { margin-top: 16px; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-family: var(--font-display); display: flex; justify-content: space-between; }
.about__body { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.about__body .prose { grid-column: 1 / span 7; max-width: 62ch; }
.about__body .prose p:first-child { color: var(--text); font-size: 1.15rem; }
.disciplines { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: disc; }
.disciplines li { position: relative; padding-top: 22px; border-top: 1px solid var(--line-2); display: grid; gap: 6px; counter-increment: disc; }
.disciplines li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--red); }
.disciplines b { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.disciplines span { font-size: var(--fs-sm); color: var(--text-3); }
.about__cta { grid-column: 1 / -1; }

/* ---------- Services showcase ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.svc__list { border-top: 1px solid var(--line); counter-reset: svc; }
.svc__row { position: relative; border-bottom: 1px solid var(--line); }
.svc__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.svc__row.is-active::after { transform: scaleX(1); }
.svc__head { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: clamp(18px, 2.2vw, 30px) 0; }
.svc__num { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-3); transition: color 0.4s; }
.svc__title { font-size: clamp(1.45rem, 0.9rem + 1.9vw, 2.65rem); letter-spacing: -0.04em; line-height: 1.05; }
.svc__title a { display: inline-block; color: var(--text-3); transition: color 0.5s var(--ease), transform 0.7s var(--ease); }
.svc__row.is-active .svc__title a, .svc__title a:hover { color: var(--text); }
.svc__row.is-active .svc__title a { transform: translateX(14px); }
.svc__row.is-active .svc__num { color: var(--red); }
.svc__toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: transform 0.6s var(--ease), background-color 0.4s, color 0.4s, border-color 0.4s; }
.svc__row.is-active .svc__toggle { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }
.svc__toggle .icon { width: 18px; height: 18px; }
.svc__body { display: grid; grid-template-rows: 1fr; }
.svc__body-inner { overflow: hidden; }
.svc__body-content { padding: 0 0 28px 3.5rem; display: grid; gap: 18px; }
.svc__body-content p { color: var(--text-2); max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; color: var(--text-2); background: rgba(255, 255, 255, 0.02); }
.svc__preview { position: sticky; top: 110px; display: none; }
.svc__card { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; }
.svc__media { position: relative; aspect-ratio: 4 / 3; border-radius: 0; }
.svc__media img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 0.9s var(--ease), transform 1.6s var(--ease), filter 1.2s var(--ease); }
.svc__media img.is-active { opacity: 1; transform: scale(1); }
.svc__media-icon { position: absolute; z-index: 4; left: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(8, 9, 11, 0.55); border: 1px solid var(--line-2); backdrop-filter: blur(10px); color: #fff; }
.svc__media-icon .icon { width: 26px; height: 26px; }
.svc__media-num { position: absolute; z-index: 4; right: 24px; top: 20px; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.9); }
.svc__info { padding: 28px 28px 30px; display: grid; gap: 16px; }
.svc__info h3 { font-size: 1.6rem; }
.svc__info p { color: var(--text-2); min-height: 5.2em; }
.svc__info > * { transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.svc__card.is-swapping .svc__info > * { opacity: 0; transform: translateY(10px); }

/* JS-enhanced service rows: desktop shows preview card, mobile uses accordion. */
@media (min-width: 1024px) {
  .js .svc__preview { display: block; }
  .js .svc__body { display: none; }
  .js .svc__toggle { pointer-events: none; }
}
@media (max-width: 1023.98px) {
  .js .svc__body { grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
  .js .svc__row.is-open .svc__body { grid-template-rows: 1fr; }
  .js .svc__row:not(.is-open).is-active .svc__toggle { transform: none; background: transparent; color: var(--text-2); border-color: var(--line-2); }
  .js .svc__row:not(.is-open)::after { transform: scaleX(0); }
  .js .svc__row:not(.is-open) .svc__title a { transform: none; }
}

/* ---------- Work grid ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-family: var(--font-display); font-size: 0.86rem; color: var(--text-2);
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.filter:hover { color: var(--text); border-color: var(--line-3); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter sup { font-size: 0.7em; color: inherit; opacity: 0.6; top: -0.3em; position: relative; }
.work-grid { --cols: 4; --shift: clamp(40px, 6vw, 96px); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding-bottom: var(--shift); max-width: 1440px; margin-inline: auto; }
.work-tile { position: relative; display: block; border-radius: var(--r-md); transition: transform 0.9s var(--ease), opacity 0.6s var(--ease); }
.work-tile[hidden] { display: none; }
html:not(.js) .work-grid > :nth-child(4n + 2), html:not(.js) .work-grid > :nth-child(4n + 4), .work-tile.is-shift { transform: translateY(var(--shift)); }
.work-tile__media { position: relative; aspect-ratio: 342 / 340; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.work-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.8s var(--ease); }
.work-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 11, 0.85)); opacity: 0; transition: opacity 0.6s var(--ease); }
.work-tile__cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.work-tile__cat { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-hi); font-family: var(--font-display); }
.work-tile__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.work-tile:hover .work-tile__media img, .work-tile:focus-visible .work-tile__media img { transform: scale(1.07); }
.work-tile:hover .work-tile__media::after, .work-tile:focus-visible .work-tile__media::after,
.work-tile:hover .work-tile__cap, .work-tile:focus-visible .work-tile__cap { opacity: 1; transform: none; }
.work-tile.is-leaving { opacity: 0; transform: translateY(20px) scale(0.97); }
.work-tile.is-shift.is-leaving { transform: translateY(calc(var(--shift) + 20px)) scale(0.97); }
@media (hover: none) {
  .work-tile__cap { opacity: 1; transform: none; left: 12px; right: 12px; bottom: 10px; }
  .work-tile__cat { display: none; }
  .work-tile__title { font-size: 0.85rem; }
  .work-tile__media::after { opacity: 0.75; background: linear-gradient(180deg, transparent 60%, rgba(8, 9, 11, 0.85)); }
}
.work__bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.work__more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 72px); }

/* Lightbox */
.lightbox { margin: auto; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 5, 7, 0.92); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn 0.4s var(--ease); }
.lightbox__top, .lightbox__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
.lightbox__count { font-family: var(--font-display); color: var(--text-3); font-size: 0.9rem; }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__img { max-width: min(1280px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-lg); box-shadow: 0 40px 120px -40px rgba(255, 0, 0, 0.35); transition: opacity 0.3s, transform 0.5s var(--ease); }
.lightbox__img.is-swapping { opacity: 0; transform: scale(0.97); }
.lightbox__cap { display: grid; }
.lightbox__cap b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.lightbox__cap span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-hi); }
.lightbox__nav { display: flex; gap: 10px; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.icon-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.process__sticky { position: sticky; top: 104px; display: grid; gap: 22px; }
.process__num { position: relative; height: clamp(7rem, 15vw, 13.5rem); overflow: hidden; font-family: var(--font-display); font-size: clamp(7rem, 15vw, 13.5rem); line-height: 1; letter-spacing: -0.07em; font-weight: 500; }
.process__num-track { display: grid; transition: transform 0.9s var(--ease); }
.process__num-track span { display: block; height: clamp(7rem, 15vw, 13.5rem); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5); }
.process__num-track span:nth-child(odd) { -webkit-text-stroke-color: rgba(255, 70, 70, 0.9); }
.process__media { aspect-ratio: 16 / 10; }
.process__media img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease), filter 1s; }
.process__media img.is-active { opacity: 1; transform: scale(1); }
.process__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.process__bar span { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.process__bar span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.process__bar span.is-done::after { transform: scaleX(1); }
.steps { counter-reset: step; }
.step { position: relative; padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 12px; min-height: 38vh; align-content: start; transition: opacity 0.6s var(--ease); }
.js .step { opacity: 0.32; }
.js .step.is-active, .is-static .step { opacity: 1; }
.step__num { font-family: var(--font-display); color: var(--red); font-size: 0.9rem; padding-top: 0.55em; }
.step h3 { font-size: clamp(2rem, 1rem + 3vw, 3.8rem); letter-spacing: -0.05em; margin-bottom: 14px; }
.step p { color: var(--text-2); max-width: 44ch; font-size: 1.08rem; }

/* Horizontal process (about + service pages) */
.flow { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--gap); counter-reset: flow; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--red), var(--line-2) 40%); }
.flow__item { position: relative; display: grid; gap: 14px; align-content: start; padding-right: 8px; }
.flow__dot { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--font-display); font-size: 0.85rem; color: var(--text); position: relative; transition: border-color 0.4s, background-color 0.4s; }
.flow__item:hover .flow__dot { border-color: var(--red); background: var(--red); }
.flow__item h3 { font-size: 1.35rem; letter-spacing: -0.03em; margin-top: 8px; }
.flow__item p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- Bento (why Redbox) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); border: 1px solid var(--line);
  padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 14px; align-content: start;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(480px circle at var(--mx) var(--my), rgba(255, 0, 0, 0.16), transparent 45%); opacity: 0; transition: opacity 0.5s; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); transition: color 0.4s, border-color 0.4s, transform 0.6s var(--ease); }
.card:hover .card__icon { color: var(--red); border-color: rgba(255, 0, 0, 0.5); transform: rotate(-8deg) scale(1.05); }
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { font-size: 1.45rem; letter-spacing: -0.03em; margin-top: 18px; }
.card p { color: var(--text-2); font-size: 0.98rem; }
.card__idx { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-size: 0.8rem; color: var(--text-3); }
.bento .card { grid-column: span 4; }
.bento .card--feature { grid-column: 1 / span 6; grid-row: span 2; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; }
.card--feature .media { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.card--feature .media::before { background: linear-gradient(180deg, rgba(8, 9, 11, 0.1) 20%, rgba(8, 9, 11, 0.95)); }
.card__feature-body { padding: clamp(24px, 3vw, 44px); display: grid; gap: 16px; }
.card__feature-body h3 { font-size: clamp(1.8rem, 1rem + 2vw, 2.8rem); margin: 0; }
.bento .card--wide { grid-column: 7 / -1; }
.bento .card--half { grid-column: span 3; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.quotes__side { grid-column: 1 / span 3; display: grid; gap: 28px; position: sticky; top: 120px; }
.quotes__count { font-family: var(--font-display); font-size: 1rem; color: var(--text-3); }
.quotes__count b { color: var(--text); font-weight: 500; font-size: 2.6rem; letter-spacing: -0.04em; margin-right: 6px; }
.quotes__ctrl { display: flex; gap: 10px; }
.quotes__main { grid-column: 5 / -1; position: relative; }
.quotes__mark { position: absolute; left: -0.08em; top: -0.42em; font-family: var(--font-display); font-size: clamp(8rem, 14vw, 13rem); line-height: 1; color: var(--red); opacity: 0.9; pointer-events: none; }
.quotes__stage { position: relative; display: grid; }
.quote { grid-area: 1 / 1; display: grid; gap: 40px; align-content: start; padding-top: clamp(48px, 6vw, 80px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0.7s; }
.quote[aria-hidden="true"] { opacity: 0; transform: translateY(24px); visibility: hidden; }
.quote blockquote p { font-family: var(--font-display); font-size: clamp(1.55rem, 0.95rem + 2.1vw, 3rem); line-height: 1.16; letter-spacing: -0.035em; font-weight: 400; text-wrap: balance; }
.quote figcaption { display: flex; align-items: center; gap: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; background: radial-gradient(circle at 30% 20%, #3a1416, var(--surface)); border: 1px solid rgba(255, 0, 0, 0.45); color: #fff; }
.quote figcaption b { display: block; font-family: var(--font-display); font-weight: 500; }
.quote figcaption b { color: var(--text); font-size: 1.05rem; }
.quote figcaption span span { display: block; color: var(--text-3); font-size: 0.9rem; }
.quotes__progress { height: 2px; background: var(--line); margin-top: 48px; overflow: hidden; border-radius: 2px; }
.quotes__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.quotes__progress span.is-running { animation: progress var(--dur, 7s) linear forwards; }
.quotes:hover .quotes__progress span.is-running, .quotes:focus-within .quotes__progress span.is-running { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.faq__side { grid-column: 1 / span 4; position: sticky; top: 120px; display: grid; gap: 24px; justify-items: start; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 24px 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(1.08rem, 1rem + 0.45vw, 1.35rem); letter-spacing: -0.02em; transition: color 0.3s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: #fff; }
.acc__n { font-size: 0.8rem; color: var(--text-3); }
.acc__icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s; }
.acc__icon .icon { width: 16px; height: 16px; }
.acc[open] .acc__icon { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 3.5rem 26px 2.6rem; color: var(--text-2); max-width: 64ch; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(120px, 16vw, 230px); border-top: 1px solid var(--line); }
.cta-final__orb { position: absolute; z-index: -1; left: 50%; top: 100%; width: 120vmax; height: 120vmax; transform: translate(-50%, -38%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 0, 0.55) 0%, rgba(255, 0, 0, 0.18) 22%, transparent 52%); filter: blur(10px); }
.cta-final__ring { position: absolute; z-index: -1; left: 50%; top: 100%; width: 90vmax; height: 90vmax; transform: translate(-50%, -38%); border-radius: 50%; border: 1px solid rgba(255, 60, 60, 0.35); box-shadow: 0 0 120px rgba(255, 0, 0, 0.25), inset 0 0 120px rgba(255, 0, 0, 0.18); }
.cta-final__ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.08); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-final__light { position: absolute; z-index: -1; width: 46vmax; height: 46vmax; left: calc(var(--mx, 50) * 1%); top: calc(var(--my, 50) * 1%); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 40, 40, 0.18), transparent 60%); transition: left 1.2s var(--ease), top 1.2s var(--ease); pointer-events: none; }
.cta-final .eyebrow { margin-bottom: 32px; }
.cta-final__title { font-size: clamp(3rem, 0.8rem + 8.6vw, 10.5rem); line-height: 0.88; letter-spacing: -0.06em; text-transform: uppercase; margin-inline: auto; max-width: 14ch; }
.cta-final__lead { margin: 32px auto 48px; color: var(--text-2); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 40ch; }
.cta-final__alt { display: block; margin-top: 26px; color: var(--text-3); font-size: 0.95rem; }
.cta-final__alt a { color: var(--text); border-bottom: 1px solid var(--line-3); transition: border-color 0.3s; }
.cta-final__alt a:hover { border-color: var(--red); }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(80px, 9vw, 140px); background: linear-gradient(180deg, var(--bg), #050506); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.footer__brand { grid-column: 1 / span 4; display: grid; gap: 24px; align-content: start; justify-items: start; }
.footer__logo { color: var(--text); }
.footer__tagline { color: var(--text-2); max-width: 36ch; }
.footer__col--nav { grid-column: 6 / span 2; }
.footer__col--svc { grid-column: 8 / span 2; }
.footer__contact { grid-column: 10 / -1; }
.footer__title { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 22px; }
.footer ul:not(.socials) { display: grid; gap: 10px; list-style: none; padding: 0; }
.footer__mail { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line-3); padding-bottom: 2px; transition: border-color 0.3s; word-break: break-all; }
.footer__mail:hover { border-color: var(--red); }
.footer__muted { color: var(--text-3); font-size: 0.9rem; }
.footer__office { margin-top: 18px; color: var(--text-2); font-size: 0.95rem; display: grid; }
.footer__city { font-family: var(--font-display); color: var(--text); font-weight: 500; }
.footer__mark { margin-top: clamp(64px, 9vw, 140px); padding-bottom: clamp(20px, 3vw, 40px); }
.wordmark { width: 100%; height: auto; overflow: hidden; padding-block: 2px; }
.wordmark path { stroke-linecap: butt; transform-box: fill-box; }
.wm-base .wm-letter--red { stroke: rgba(255, 0, 0, 0.85); }
.wm-base .wm-letter--white { stroke: rgba(255, 255, 255, 0.2); }
.wm-lit .wm-letter--red { stroke: #ff4d4d; filter: drop-shadow(0 0 1.2px rgba(255, 0, 0, 0.9)); }
.wm-lit .wm-letter--white { stroke: #fff; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)); }
/* Letters rise into place one after another when the footer enters view. */
.js:not(.is-static):not(.no-motion) .wm-letter { transform: translateY(115%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.js .footer__mark.is-in .wm-letter { transform: none; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-block: 28px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-3); }
.footer__legal { display: flex; gap: 24px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-family: var(--font-display); transition: color 0.3s; }
.to-top .icon { width: 38px; height: 38px; padding: 10px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s; }
.to-top:hover { color: var(--text); }
.to-top:hover .icon { transform: translateY(-4px); background: var(--red); border-color: var(--red); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(80px, 10vw, 150px)) 0 clamp(64px, 8vw, 120px); overflow: hidden; isolation: isolate; }
.page-hero__glow { position: absolute; z-index: -1; width: 80vmax; height: 80vmax; right: -30vmax; top: -45vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 0, 0.22), transparent 60%); pointer-events: none; }
.page-hero__ghost { position: absolute; z-index: -1; right: -2vw; bottom: -0.18em; font-family: var(--font-display); font-weight: 600; font-size: clamp(8rem, 26vw, 26rem); line-height: 0.8; letter-spacing: -0.07em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06); pointer-events: none; user-select: none; white-space: nowrap; }
.page-hero .eyebrow { margin-bottom: 32px; }
.page-hero__title { max-width: 16ch; }
.page-hero__title .dim { color: var(--text-3); }
.page-hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; margin-top: clamp(32px, 4vw, 56px); align-items: end; }
.page-hero__row .lead { grid-column: 1 / span 6; }
.page-hero__row .page-hero__actions { grid-column: 8 / -1; justify-self: end; display: flex; gap: 12px; flex-wrap: wrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--text-3); margin-bottom: 26px; font-family: var(--font-display); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--text-3); }

/* ---------- About page ---------- */
.band { position: relative; }
.band .media { aspect-ratio: 21 / 9; border-radius: var(--r-xl); }
.band__cap { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.story__label { grid-column: 1 / span 3; }
.story__quote { grid-column: 4 / -1; font-family: var(--font-display); font-size: clamp(1.8rem, 1rem + 2.8vw, 3.8rem); line-height: 1.06; letter-spacing: -0.045em; }
.story__quote em { font-style: normal; color: var(--red); }
.story__cols { grid-column: 4 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.vm__card { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-2) 70%); padding: clamp(28px, 4vw, 56px); display: grid; gap: 22px; align-content: start; }
.vm__card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 0, 0.22), transparent 65%); }
.vm__card h3 { font-size: var(--fs-lg); }
.vm__card p { color: var(--text-2); }
.values { border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); transition: background-color 0.5s; }
.value__n { grid-column: 1 / span 1; font-family: var(--font-display); color: var(--red); font-size: 0.9rem; }
.value h3 { grid-column: 2 / span 5; font-size: clamp(1.8rem, 1rem + 2.6vw, 3.4rem); letter-spacing: -0.05em; transition: transform 0.7s var(--ease); }
.value p { grid-column: 8 / -1; color: var(--text-2); }
.value:hover h3 { transform: translateX(12px); }
.team { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.team__media { grid-column: 1 / span 6; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); align-items: end; }
.team__media .media:first-child { aspect-ratio: 3 / 4; }
.team__media .media:last-child { aspect-ratio: 4 / 5; margin-bottom: 18%; }
.team__copy { grid-column: 8 / -1; display: grid; gap: 22px; justify-items: start; }
.ticker { border-block: 1px solid var(--line); padding-block: 22px; }
.ticker .marquee__group { gap: 0; padding-right: 0; }
.ticker__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); letter-spacing: -0.04em; color: var(--text-3); white-space: nowrap; }
.ticker__item::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--red); box-shadow: 0 0 20px var(--glow); }
.ticker__item:nth-child(even) { color: var(--text); }

/* ---------- Services page ---------- */
.svc-index { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-index a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.88rem; color: var(--text-2); font-family: var(--font-display); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.svc-index a:hover { color: var(--text); border-color: var(--red); background: var(--red-soft); }
.svc-index b { font-weight: 500; color: var(--red); font-size: 0.75rem; }
.svc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; align-items: center; padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.svc-block__media { grid-column: 1 / span 6; }
.svc-block__media .media { aspect-ratio: 5 / 4; }
.svc-block__body { grid-column: 8 / -1; display: grid; gap: 22px; justify-items: start; }
.svc-block--flip .svc-block__media { grid-column: 7 / -1; grid-row: 1; }
.svc-block--flip .svc-block__body { grid-column: 1 / span 5; grid-row: 1; }
.svc-block__num { font-family: var(--font-display); color: var(--text-3); font-size: 0.9rem; display: flex; align-items: center; gap: 14px; }
.svc-block__num .card__icon { width: 46px; height: 46px; border-radius: 14px; }
.svc-block h2 { font-size: var(--fs-lg); }
.svc-block p { color: var(--text-2); }
.svc-block__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Service detail ---------- */
.svc-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: end; }
.svc-hero__copy { grid-column: 1 / span 7; }
.svc-hero__copy h1 { font-size: clamp(2.6rem, 1rem + 4.8vw, 6.2rem); line-height: 0.95; letter-spacing: -0.055em; }
.svc-hero__copy .prose { margin-top: 32px; }
.svc-hero__copy .prose p:first-child { color: var(--text); font-size: 1.15rem; }
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.svc-hero__media { grid-column: 9 / -1; }
.svc-hero__media .media { aspect-ratio: 4 / 5; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.offer { position: relative; padding: clamp(22px, 2.6vw, 34px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 120px; transition: background-color 0.5s var(--ease); }
.offer:hover { background: var(--red-soft); }
.offer b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); letter-spacing: -0.02em; }
.offer span { font-family: var(--font-display); font-size: 0.8rem; color: var(--text-3); align-self: flex-start; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.split__title { grid-column: 1 / span 6; }
.split__body { grid-column: 8 / -1; display: grid; gap: 32px; }
.aside-card { border-left: 2px solid var(--red); padding: 8px 0 8px 24px; }
.aside-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.aside-card p { color: var(--text-2); }
.other-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.other-svc a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.2rem; color: var(--text-2); transition: color 0.3s; }
.other-svc a:hover { color: var(--text); }
.other-svc .icon { transition: transform 0.4s var(--ease), color 0.3s; }
.other-svc a:hover .icon { transform: translate(3px, -3px); color: var(--red); }
.work-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }

/* ---------- Portfolio page ---------- */
.reel { display: grid; gap: clamp(10px, 1.4vw, 18px); }
.reel .marquee__group { gap: clamp(10px, 1.4vw, 18px); padding-right: clamp(10px, 1.4vw, 18px); }
.reel__item { width: clamp(150px, 16vw, 240px); aspect-ratio: 342 / 340; border-radius: var(--r-md); overflow: hidden; flex: none; background: var(--surface); }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }
.reel .marquee:nth-child(2) .marquee__track { animation-direction: reverse; }

/* ---------- Case studies ---------- */
.screen { position: relative; display: block; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02); }
.screen__bar { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; background: #1b1d22; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.screen__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3d45; }
.screen__bar i:first-child { background: #ff5f57; } .screen__bar i:nth-child(2) { background: #febc2e; } .screen__bar i:nth-child(3) { background: #28c840; }
.screen img { width: 100%; height: auto; display: block; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.case-card { position: relative; isolation: isolate; overflow: hidden; display: grid; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: border-color 0.5s var(--ease), transform 0.8s var(--ease); }
.case-card::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -35%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--case) 45%, transparent), transparent 65%); opacity: 0.55; transition: opacity 0.6s; }
.case-card:hover { border-color: var(--line-3); }
.case-card:hover::before { opacity: 0.9; }
.case-card__media { padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0; }
.case-card__media .screen { transform: translateY(8px); transition: transform 0.9s var(--ease); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.case-card:hover .case-card__media .screen { transform: translateY(-4px); }
.case-card__body { display: grid; gap: 10px; padding: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); background: var(--bg-2); position: relative; }
.case-card__type { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--case); filter: brightness(1.35); }
.case-card__title { font-size: clamp(1.8rem, 1rem + 2vw, 2.8rem); letter-spacing: -0.045em; }
.case-card__body p { color: var(--text-2); max-width: 46ch; }
.case-card__body .link-arrow { margin-top: 6px; }
.case-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-self: end; grid-column: 8 / -1; }
.case-meta dt { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.case-meta dd { margin: 0; color: var(--text); max-width: 22ch; }
.case-cover { margin-top: clamp(-40px, -3vw, -16px); }
.case-cover .screen { box-shadow: 0 60px 160px -50px color-mix(in srgb, var(--case) 50%, transparent), 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.case-note { margin-top: 14px; font-size: 0.82rem; color: var(--text-3); text-align: right; }
.case-facts { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.case-facts li { border-top: 1px solid var(--line-2); padding-top: 18px; position: relative; }
.case-facts li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--case); }
.case-facts b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1rem + 2.4vw, 3.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.case-facts span { color: var(--text-2); font-size: 0.92rem; }
.case-shots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.case-shot--wide { grid-column: 1 / -1; }
.case-shot figcaption { margin-top: 14px; color: var(--text-2); font-size: 0.92rem; }
.case-shot .screen img { transition: transform 1s var(--ease); }
.case-shot .screen:hover img { transform: scale(1.02); }
.case .value__n { color: var(--case); filter: brightness(1.35); }
.case-next { display: grid; gap: 14px; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--case) 30%, transparent), transparent 60%), var(--bg-2); transition: border-color 0.4s; }
.case-next:hover { border-color: var(--line-3); }
.case-next__title { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: clamp(2.4rem, 1rem + 5vw, 6rem); letter-spacing: -0.06em; line-height: 0.95; }
.case-next__title .icon { width: 0.6em; height: 0.6em; transition: transform 0.6s var(--ease); }
.case-next:hover .case-next__title .icon { transform: translate(8px, -8px); }
@media (max-width: 1023.98px) {
  .case-grid, .case-shots { grid-template-columns: 1fr; }
  .case-meta { grid-column: 1 / -1; justify-self: start; }
  .case-facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 767.98px) {
  .case-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .case-note { text-align: left; }
  .screen__bar { height: 18px; } .screen__bar i { width: 6px; height: 6px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.contact__info { grid-column: 1 / span 5; display: grid; gap: 40px; }
.contact__panel { grid-column: 7 / -1; position: relative; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: clamp(24px, 3.6vw, 52px); overflow: hidden; isolation: isolate; }
.contact__panel::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 0, 0.22), transparent 65%); }
.contact__panel h2 { font-size: var(--fs-md); margin-bottom: 28px; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-item__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--red); }
.contact-item__label { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.contact-item a, .contact-item strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text); word-break: break-word; }
.contact-item a:hover { color: var(--red-hi); }
.contact-item span { color: var(--text-2); font-size: 0.95rem; }
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__group { border: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.form__label { font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; color: var(--text-2); padding: 0; }
.form__opt { color: var(--text-3); font-weight: 400; }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); color: var(--text);
  font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s; appearance: none;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--red); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.14); }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.55; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; }
.select option { background: var(--surface); color: var(--text); }
.field.is-invalid .input { border-color: #ff6b6b; }
.field__error { font-size: 0.82rem; color: #ff8a8a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.88rem; color: var(--text-2); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--line-3); transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.chip:hover span { color: var(--text); border-color: var(--line-3); }
.chip input:checked + span { color: var(--text); border-color: rgba(255, 0, 0, 0.7); background: var(--red-soft); }
.chip input:checked + span::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px var(--glow); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 0.82rem; color: var(--text-3); max-width: 38ch; }
.form__note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 0.92rem; min-height: 1.4em; }
.form__status.is-success { color: #7ee2a8; }
.form__status.is-error { color: #ff8a8a; }

/* File picker */
.file { position: relative; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-3); background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.file:hover, .file:focus-within { border-color: var(--red); background: var(--red-soft); }
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); transition: transform 0.4s var(--ease), background-color 0.3s; }
.file.has-file .file__icon { background: var(--red); border-color: var(--red); transform: rotate(45deg); }
.file__text { display: grid; min-width: 0; }
.file__text b { font-family: var(--font-display); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__text span { font-size: 0.82rem; color: var(--text-3); }
.field.is-invalid .file { border-color: #ff6b6b; }
.offer--stack { align-items: flex-start; }
.offer--stack p { margin-top: 8px; color: var(--text-2); font-size: 0.95rem; }
.contact__info > .eyebrow { margin-bottom: -16px; }

/* Paired fields share label / control / error rows, so inputs stay aligned even when a label wraps. */
@supports (grid-template-rows: subgrid) {
  .form__row { grid-template-rows: auto auto auto; row-gap: 0; }
  .form__row > .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-content: start; }
  .form__row > .field > .form__label { align-self: end; }
}

/* intl-tel-input (lazy loaded) — dark theme overrides */
.iti { display: block; width: 100%; --iti-hover-color: rgba(255, 255, 255, 0.06); }
.iti__selected-flag { padding: 0 10px 0 14px !important; border-radius: 14px 0 0 14px; }
.iti--separate-dial-code .iti__selected-flag, .iti--separate-dial-code.iti--show-flags .iti__selected-dial-code { background: transparent !important; color: var(--text-2); }
.iti__country-list { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: 12px; color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important; max-width: 320px; }
.iti__country.iti__highlight { background: rgba(255, 255, 255, 0.07) !important; }
.iti__dial-code { color: var(--text-3) !important; }
.iti__divider { border-color: var(--line) !important; }
.iti__arrow { border-top-color: var(--text-2) !important; }
.iti__search-input { background: var(--bg-2); color: var(--text); border: 0; border-bottom: 1px solid var(--line); padding: 10px; }

/* ---------- Modal ---------- */
.modal { margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(4, 4, 6, 0.72); backdrop-filter: blur(8px); }
.modal[open] .modal__panel { animation: modalIn 0.6s var(--ease); }
.modal[open]::backdrop { animation: fadeIn 0.4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.modal__panel { position: relative; overflow: auto; max-height: calc(100dvh - 24px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: clamp(24px, 4vw, 44px); isolation: isolate; }
.modal__glow { position: absolute; z-index: -1; width: 460px; height: 460px; right: -200px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 0, 0.3), transparent 65%); pointer-events: none; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background-color 0.3s, transform 0.5s var(--ease); }
.modal__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.modal__title { font-size: clamp(1.8rem, 1rem + 2.2vw, 2.6rem); margin: 18px 0 10px; letter-spacing: -0.045em; }
.modal__lead { color: var(--text-2); margin-bottom: 28px; }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.legal__toc { grid-column: 1 / span 3; position: sticky; top: 110px; display: grid; gap: 4px; }
.legal__toc a { display: block; padding: 6px 0; font-size: 0.9rem; color: var(--text-3); transition: color 0.3s; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--text); }
.legal__body { grid-column: 5 / -1; max-width: 72ch; }
.legal__body section { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.legal__body h2 { font-size: 1.5rem; margin-bottom: 16px; display: flex; gap: 14px; }
.legal__body h2 span { color: var(--red); font-size: 0.9rem; padding-top: 0.4em; }
.legal__body p, .legal__body li { color: var(--text-2); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { padding-left: 1.2em; margin-top: 10px; display: grid; gap: 6px; }
.legal__body li::marker { color: var(--red); }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) 80px; position: relative; overflow: hidden; isolation: isolate; }
.notfound__code { font-family: var(--font-display); font-size: clamp(8rem, 30vw, 22rem); line-height: 0.85; letter-spacing: -0.08em; color: transparent; -webkit-text-stroke: 2px var(--red); text-shadow: 0 0 80px rgba(255, 0, 0, 0.3); }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--red); pointer-events: none; opacity: 0; transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), opacity 0.3s, background-color 0.3s; display: grid; place-items: center; will-change: transform; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255, 0, 0, 0.18); border: 1px solid rgba(255, 0, 0, 0.6); }
.cursor.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--red); }
.cursor__label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; color: #fff; opacity: 0; transition: opacity 0.3s; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0 !important; }

/* ---------- Reveal system ---------- */
/* Hidden start states only apply when JS is running and motion is allowed. */
.js:not(.is-static):not(.no-motion) [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js:not(.is-static):not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; }
.js:not(.is-static):not(.no-motion) [data-reveal="fade"] { transform: none; }
.js:not(.is-static):not(.no-motion) [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r-lg)); transition: clip-path 1.4s var(--ease-io); }
.js:not(.is-static):not(.no-motion) [data-reveal="clip"] img { transform: scale(1.25); transition: transform 1.8s var(--ease), filter 1.2s var(--ease); }
.js:not(.is-static):not(.no-motion) [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js:not(.is-static):not(.no-motion) [data-reveal="clip"].is-in img { transform: scale(1); }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; padding-right: 0.02em; }
.split-w > span { display: inline-block; }
.js:not(.is-static):not(.no-motion) [data-split] .split-w > span { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0) * 1ms); }
.js:not(.is-static):not(.no-motion) [data-split].is-in .split-w > span { transform: none; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.35s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn 0.6s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-16px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(24px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279.98px) {
  .bento .card--feature { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .bento .card--wide { grid-column: 1 / -1; }
  .bento .card--half { grid-column: span 6; }
  .bento .card { grid-column: span 6; }
  .bento .card--wide, .bento .card--feature { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--nav, .footer__col--svc { grid-column: span 4; }
  .footer__contact { grid-column: span 4; }
}

@media (max-width: 1023.98px) {
  :root { --nav-h: 70px; }
  .nav__menu { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; padding-left: 14px; }
  .nav__burger { display: block; }
  .nav.is-scrolled .nav__inner { max-width: none; }
  .section-head__title, .section-head__aside { grid-column: 1 / -1; }
  .hero__visual { width: min(78vw, 540px); right: -14vw; top: calc(var(--nav-h) + 4px); transform: none; opacity: 0.7; }
  .hud { display: none; }
  .hero__copy { grid-column: 1 / -1; }
  .hero__tags { display: none; }
  .clients__inner { grid-template-columns: 1fr; }
  .about__statement, .about__body { grid-column: 1 / -1; }
  .about__media { grid-column: 1 / -1; grid-row: auto; margin-top: 0; max-width: 520px; }
  .about__body .prose { grid-column: 1 / -1; }
  .about__cta { grid-column: 1 / -1; }
  .svc { grid-template-columns: 1fr; }
  .work-grid { --cols: 3; }
  html:not(.js) .work-grid > :nth-child(4n + 2), html:not(.js) .work-grid > :nth-child(4n + 4) { transform: none; }
  .process { grid-template-columns: 1fr; }
  .process__sticky { display: none; }
  .js .step { opacity: 1; }
  .step { min-height: 0; }
  .quotes__side { grid-column: 1 / -1; position: static; grid-template-columns: 1fr auto; align-items: end; }
  .quotes__side > .eyebrow, .quotes__side > h2 { grid-column: 1 / -1; }
  .quotes__main { grid-column: 1 / -1; }
  .faq__side, .faq__list { grid-column: 1 / -1; }
  .faq__side { position: static; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .flow::before { display: none; }
  .story__label, .story__quote, .story__cols { grid-column: 1 / -1; }
  .vm { grid-template-columns: 1fr; }
  .value h3 { grid-column: 2 / -1; }
  .value p { grid-column: 2 / -1; margin-top: 12px; }
  .team__media, .team__copy { grid-column: 1 / -1; }
  .svc-block__media, .svc-block--flip .svc-block__media, .svc-block__body, .svc-block--flip .svc-block__body { grid-column: 1 / -1; grid-row: auto; }
  .svc-hero__copy, .svc-hero__media { grid-column: 1 / -1; }
  .svc-hero__media { max-width: 560px; }
  .svc-hero__media .media { aspect-ratio: 4 / 3; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .split__title, .split__body { grid-column: 1 / -1; }
  .other-svc { grid-template-columns: 1fr 1fr; }
  .work-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__info, .contact__panel { grid-column: 1 / -1; }
  .next-steps { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
  .legal__body { grid-column: 1 / -1; }
  .page-hero__row .lead, .page-hero__row .page-hero__actions { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 767.98px) {
  .work-grid { --cols: 2; --shift: 36px; }
  .hero { padding-bottom: 20px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__foot { justify-content: flex-start; }
  .disciplines { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .bento .card, .bento .card--half { grid-column: 1 / -1; }
  .card--feature { min-height: 420px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__col--nav, .footer__col--svc { grid-column: span 6; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .team__media { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .other-svc { grid-template-columns: 1fr; }
  .story__cols { grid-template-columns: 1fr; }
  .band .media { aspect-ratio: 4 / 3; }
  .acc summary { grid-template-columns: minmax(0, 1fr) auto; }
  .acc__n { display: none; }
  .acc__body p { padding: 0 0 24px; }
  .svc__body-content { padding-left: 0; }
  .svc__head { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .lightbox__bottom { flex-wrap: wrap; }
  .quotes__mark { font-size: 7rem; }
  .value { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .value__n { grid-column: 1; }
  .value h3, .value p { grid-column: 2; }
}

@media (max-width: 479.98px) {
  .btn { padding: 0 20px; }
  .flow { grid-template-columns: 1fr; }
  .work-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--nav, .footer__col--svc { grid-column: 1 / -1; }
  .logo { width: 116px; }
  .nav__cta { display: none; }
  .hero__pill { font-size: 0.75rem; }
  .hero__pill-sub { display: none; }
  .contact-item a, .contact-item strong { font-size: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .hero__caret { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
