/* =============================================================
   17 LAB — styles.css
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components (btn, nav, cursor, marquee, badge, splash)
   6. Sections
   7. Effects
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens — inspired by SEVENTEEN's own identity: blue + white,
   with a controlled red as the "sells" accent (CTAs + key emphasis).
   ============================================================= */
:root {
  /* light surface (default canvas) */
  --bg:          #ffffff;
  --bg-2:        #eef2fc;
  --surface:     #f5f7fc;
  --surface-2:   #e9eefa;

  /* ink on light */
  --ink:         #0b1230;
  --ink-mute:    rgba(11,18,48,0.64);
  --ink-dim:     rgba(11,18,48,0.4);
  --line:        rgba(11,18,48,0.13);
  --line-strong: rgba(11,18,48,0.24);

  /* brand blue — the dominant identity color */
  --blue:        #1d3fd6;
  --blue-deep:   #0e2494;
  --blue-dim:    rgba(29,63,214,0.14);

  /* the one "sells" accent — red, reserved for CTAs + key emphasis */
  --accent:      #e5342a;
  --accent-dim:  rgba(229,52,42,0.16);
  --accent-soft: rgba(229,52,42,0.1);

  /* type */
  --display: "Archivo", "Arial Narrow", sans-serif;
  --sans:    "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono:    "Space Mono", "IBM Plex Mono", monospace;

  /* easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  --mx: 50%;
  --my: 40%;
}

/* --- .on-navy — dark brand sections (hero, services, CTA, footer) ---
   Same cascade trick used by every component below: they all read
   var(--bg)/var(--ink)/var(--ink-mute)/var(--line), so wrapping a
   section in .on-navy re-themes it and everything inside it. */
.on-navy {
  --bg:          #0b1440;
  --bg-2:        #101c5c;
  --surface:     #142064;
  --surface-2:   #182670;
  --ink:         #f4f6fc;
  --ink-mute:    rgba(244,246,252,0.68);
  --ink-dim:     rgba(244,246,252,0.4);
  --line:        rgba(244,246,252,0.14);
  --line-strong: rgba(244,246,252,0.26);
  --blue-dim:    rgba(120,150,255,0.18);
  background: var(--bg);
  color: var(--ink);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.01em; font-family: var(--display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--accent); color: #fff;
  font-weight: 700; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.on-navy .eyebrow::before { background: #6f8dff; }

.num {
  font-family: var(--mono);
  color: var(--blue);
}
.on-navy .num { color: #7f9bff; }

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head.wide { max-width: 62rem; }

.section-title {
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-title em { color: var(--accent); font-style: normal; }

.lede {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-mute);
  font-weight: 300;
  max-width: 46ch;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

/* split-text word spans */
.split-word { display: inline-block; overflow: hidden; }
.split-word > span { display: inline-block; will-change: transform; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.7rem;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform .45s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.on-navy .btn-ghost:hover { color: #8fa8ff; border-color: #8fa8ff; }
.btn-ghost .arrow, .btn-primary .arrow { transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- custom cursor --- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out), width .3s var(--ease-bounce), height .3s var(--ease-bounce), background-color .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent; border: 1px solid var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --- nav — permanent navy chrome bar, independent of section theme --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11,20,64,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f4f6fc;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid rgba(244,246,252,0.1);
}
.nav.is-solid { background: rgba(11,20,64,0.92); border-bottom-color: rgba(244,246,252,0.16); }
@supports not (backdrop-filter: blur(1px)) { .nav { background: rgba(11,20,64,0.96); } }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-mark {
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.01em; display: flex; align-items: baseline; gap: .35rem;
  color: #f4f6fc;
}
.nav-mark .num { font-family: var(--display); font-weight: 800; color: #7f9bff; }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.2rem); }
.nav-link {
  position: relative;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(244,246,252,0.66);
  padding-block: .3rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .4s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { right: 0; }
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 34px; height: 34px;
}
@media (min-width: 720px) { .nav-burger { display: none; } }
.nav-burger span { display: block; width: 100%; height: 1px; background: #f4f6fc; transition: transform .4s var(--ease-out), opacity .3s var(--ease-out); }
.nav-links.desktop { display: none; }
@media (min-width: 720px) { .nav-links.desktop { display: flex; } }

/* --- fullscreen menu (mobile / tablet) — permanent navy --- */
.menu-full {
  position: fixed; inset: 0; z-index: 480;
  background: #0b1440;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 42px);
  transition: clip-path .7s var(--ease-out);
  pointer-events: none;
}
.menu-full.is-open { clip-path: circle(150% at calc(100% - 40px) 42px); pointer-events: auto; }
.menu-full ul { display: flex; flex-direction: column; gap: .4rem; }
.menu-full a {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.05;
  color: #f4f6fc; display: inline-block;
  transition: color .3s var(--ease-out), transform .3s var(--ease-out);
}
.menu-full a:hover { color: var(--accent); transform: translateX(6px); }
.menu-full-foot { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }
.menu-full-foot a { font-family: var(--mono); font-size: .8rem; color: rgba(244,246,252,0.66); letter-spacing: .05em; }
@media (min-width: 720px) { .menu-full { display: none; } }

/* --- marquee --- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1rem;
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span {
  font-family: var(--mono); font-size: clamp(.95rem, 2.4vw, 1.4rem);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  padding-inline: 1.4rem; display: flex; align-items: center; gap: 1.4rem;
  color: var(--ink-mute);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- splash — permanent navy brand intro --- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #0b1440;
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 3.6s forwards;
}
.splash.is-out { animation: none; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-out); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-mark {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 7rem);
  display: flex; gap: .3ch; color: #f4f6fc;
}
.splash-mark .num { color: #7f9bff; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- hero (on-navy) --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: clip;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle 620px at var(--mx) var(--my), rgba(120,150,255,0.28) 0%, transparent 55%),
    radial-gradient(circle 900px at calc(100% - var(--mx)) calc(var(--my) + 20%), rgba(229,52,42,0.14) 0%, transparent 60%),
    var(--bg);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}
.hero-inner { padding-block: 3rem; }
.hero-kicker { margin-bottom: 1.6rem; }
.hero-title {
  font-size: clamp(2.6rem, 8.2vw, 6.6rem);
  max-width: 20ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  letter-spacing: .03em;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: .8rem;
}
.hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute; bottom: 2.4rem; left: var(--gutter);
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--ink-dim);
  text-transform: uppercase;
}
.hero-scroll::after { content: ""; width: 1px; height: 30px; background: linear-gradient(var(--accent), transparent); animation: scrollLine 2.2s var(--ease-soft) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- manifesto / about --- */
.manifesto { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .manifesto { grid-template-columns: .8fr 1.6fr; align-items: start; } }
.manifesto-num {
  font-family: var(--display); font-weight: 800; color: var(--blue);
  font-size: clamp(4rem, 9vw, 8rem); line-height: .8;
}
.manifesto-body p {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 300; line-height: 1.4;
  color: var(--ink);
  max-width: 32ch;
}
.manifesto-body p + p { margin-top: 1.4rem; }
.manifesto-body strong { color: var(--blue); font-weight: 600; }
.manifesto-foot {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 2rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.manifesto-stat { font-family: var(--mono); }
.manifesto-stat b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--blue); }
.manifesto-stat span { font-size: .74rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }

/* --- seventeen teaser --- */
.st-teaser {
  position: relative;
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .st-teaser { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.st-teaser-ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.2rem;
  display: flex; align-items: center;
}
.st-teaser-ticker .marquee-track { animation-duration: 16s; }
.st-teaser-copy .section-title { margin-bottom: 1.1rem; }
.st-teaser-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.st-teaser-list li { font-family: var(--mono); font-size: .82rem; color: var(--ink-mute); display: flex; gap: .7rem; }
.st-teaser-list li::before { content: "→"; color: var(--blue); }

/* --- video wall --- */
.video-wall {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .video-wall { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.video-tile {
  position: relative;
  aspect-ratio: 9/13;
  border-radius: 6px;
  overflow: clip;
  background: linear-gradient(155deg, #142064, #0b1440);
  border: 1px solid var(--line);
  cursor: pointer;
}
.video-tile:nth-child(3n+2) { aspect-ratio: 9/11; }
@media (min-width: 720px) { .video-tile:nth-child(1) { grid-row: span 2; aspect-ratio: 9/16; } }
.video-tile-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease-out), filter .4s var(--ease-out);
  filter: saturate(1.05);
}
.video-tile:hover .video-tile-poster { transform: scale(1.06); }
.video-tile-noise {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,35,0.15) 0%, rgba(6,10,35,0.05) 40%, rgba(6,10,35,0.35) 100%);
}
.video-tile-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
  border-radius: 50%; border: 1px solid rgba(244,246,252,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.video-tile-play svg { width: 14px; height: 14px; fill: #f4f6fc; margin-left: 2px; transition: fill .3s; }
.video-tile:hover .video-tile-play { transform: scale(1.15); background: var(--accent); border-color: var(--accent); }
.video-tile:hover .video-tile-play svg { fill: #fff; }
.video-tile-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  display: flex; flex-direction: column; gap: .2rem;
  background: linear-gradient(to top, rgba(6,10,35,0.7), transparent);
}
.video-tile-meta .cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #8fa8ff; }

.video-modal {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(6,10,35,0.9);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.video-modal.is-open { opacity: 1; pointer-events: auto; }
.video-modal-panel {
  position: relative; width: min(420px, 100%); aspect-ratio: 9/16;
  background: #0b1440; border-radius: 10px; border: 1px solid var(--line-strong);
  overflow: clip;
  display: flex; align-items: flex-end; justify-content: center; flex-direction: column;
  transform: translateY(30px) scale(.97); transition: transform .4s var(--ease-out);
  color: #f4f6fc;
}
.video-modal.is-open .video-modal-panel { transform: none; }
.video-modal-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b1440; }
.video-modal-panel .cat, .video-modal-panel .ttl, .video-modal-fallback p {
  position: relative; z-index: 1; padding-inline: 1.6rem;
}
.video-modal-panel .cat { font-family: var(--mono); color: #ff8f80; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 1.2rem; }
.video-modal-panel .ttl { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 1.2rem; }
.video-modal-fallback {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem;
  padding: 2rem 1.6rem;
}
.video-modal-fallback p { font-family: var(--mono); font-size: .8rem; color: rgba(244,246,252,0.6); max-width: 26ch; padding-inline: 0; }
.video-modal-close {
  position: absolute; top: -3.2rem; right: 0;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(244,246,252,0.7); display: flex; align-items: center; gap: .5rem;
}
.video-modal-close:hover { color: var(--accent); }

/* --- reel viewer (Instagram-style vertical scroll) --- */
.reel-viewer {
  max-width: 420px; margin-inline: auto;
  height: min(76vh, 720px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-radius: 14px;
  border: 1px solid var(--line);
  scrollbar-width: none;
  background: #0b1440;
}
.reel-viewer::-webkit-scrollbar { display: none; }
.reel-slide {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  overflow: clip;
}
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-sound {
  position: absolute; right: 1rem; bottom: 1.2rem; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(6,10,35,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.reel-meta {
  position: absolute; left: 1rem; bottom: 1.2rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(6,10,35,0.5); padding: .35rem .8rem; border-radius: 999px;
}

/* --- services (on-navy) --- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
}
.service-head {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  cursor: pointer;
}
.service-head .num { font-size: clamp(1rem, 2vw, 1.3rem); flex-shrink: 0; width: 2.4ch; }
.service-head h3 {
  flex: 1;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  transition: color .3s var(--ease-out);
}
.service-row:hover .service-head h3 { color: var(--accent); }
.service-toggle {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.service-toggle::before, .service-toggle::after { content: ""; position: absolute; background: var(--ink); transition: transform .4s var(--ease-out); }
.service-toggle::before { width: 12px; height: 1px; }
.service-toggle::after { width: 1px; height: 12px; }
.service-row.is-open .service-toggle::after { transform: rotate(90deg) scaleY(0); }
.service-row.is-open .service-toggle { border-color: var(--accent); }
.service-body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out);
}
.service-row.is-open .service-body { grid-template-rows: 1fr; }
.service-body-inner { overflow: hidden; }
.service-cols {
  padding-top: 1.6rem; padding-left: calc(2.4ch + clamp(1rem, 3vw, 2.4rem));
  display: grid; gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.service-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8fa8ff; margin-bottom: .7rem; }
.service-col ul { display: flex; flex-direction: column; gap: .4rem; }
.service-col li { font-size: .92rem; color: var(--ink-mute); }
.service-desc { font-size: 1rem; color: var(--ink-mute); max-width: 60ch; margin-top: 1.6rem; padding-left: calc(2.4ch + clamp(1rem, 3vw, 2.4rem)); }

/* --- method --- */
.method-list { display: flex; flex-direction: column; }
.method-step {
  display: grid; gap: 1.2rem 2rem;
  grid-template-columns: auto 1fr;
  padding-block: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.method-step:last-child { border-bottom: 1px solid var(--line); }
.method-step .num { font-size: clamp(1.4rem, 3vw, 2rem); }
.method-step h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  grid-column: 2;
}
.method-step p { grid-column: 2; color: var(--ink-mute); max-width: 52ch; margin-top: .6rem; }
@media (min-width: 720px) {
  .method-step { grid-template-columns: 8rem 1fr 1.4fr; }
  .method-step h3 { grid-column: 2; }
  .method-step p { grid-column: 3; margin-top: 0; }
}

/* --- sectors --- */
.sectors-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line);
}
@media (min-width: 720px) { .sectors-grid { grid-template-columns: repeat(4, 1fr); } }
.sector-cell {
  position: relative;
  aspect-ratio: 1.3/1;
  display: flex; align-items: flex-end; padding: 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: clip;
  transition: background-color .4s var(--ease-out);
}
.sector-cell:hover { background: var(--blue); }
.sector-cell span {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  transition: color .4s var(--ease-out);
}
.sector-cell:hover span { color: #fff; }
.sector-cell.is-you { background: var(--bg-2); }
.sector-cell.is-you span { color: var(--accent); }
.sector-cell.is-you:hover { background: var(--accent); }
.sector-cell.is-you:hover span { color: #fff; }

/* --- portfolio --- */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding-block: clamp(1.6rem, 3.4vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  transition: padding-inline .4s var(--ease-out);
  position: relative;
}
.work-row.is-live { cursor: pointer; }
.work-row.is-live:hover { padding-inline: 1rem; background: var(--surface); }
.work-row-main { display: flex; flex-direction: column; gap: .3rem; }
.work-row-top { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.work-row h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 4.2vw, 3rem); }
.work-row .cat { font-family: var(--mono); font-size: .78rem; color: var(--ink-mute); letter-spacing: .05em; text-transform: uppercase; }
.work-row .services { font-family: var(--mono); font-size: .78rem; color: var(--ink-dim); }
.work-row .arrow-link { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-mute); }
.work-row.is-live .arrow-link { color: var(--accent); }
.work-row .arrow-link svg { transition: transform .4s var(--ease-out); }
.work-row:hover .arrow-link svg { transform: translate(3px,-3px); }
.work-row.is-soon { opacity: .5; }
.work-row.is-soon h3 { color: var(--ink-dim); }
.work-row.is-next { cursor: pointer; }
.work-row.is-next:hover { padding-inline: 1rem; background: var(--surface); }
.work-row.is-next .arrow-link { color: var(--blue); }
.work-row.is-next .services { color: var(--blue); }

.work-cta {
  margin-top: 2rem; padding: 2.2rem clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
  background: var(--surface);
}
.work-cta p { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, 2.6vw, 1.5rem); max-width: 30ch; }

/* --- stats --- */
.stats-row {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem;
  border-top: 1px solid var(--line); padding-top: 2.6rem; margin-top: 2.6rem;
}
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(3,1fr); } }
.stat-item b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 3rem); color: var(--blue);
}
.stat-item span { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }

/* --- final cta (on-navy) --- */
.final-cta { text-align: center; position: relative; }
.final-cta .h-display { font-size: clamp(2.4rem, 8vw, 6rem); margin-bottom: 1.6rem; }
.final-cta .btn { margin-top: 1rem; }
.final-cta-halo {
  position: absolute; inset: -20% 10% auto 10%; height: 60%;
  background: radial-gradient(45% 60% at 50% 50%, var(--blue-dim), transparent 75%);
  filter: blur(60px); pointer-events: none;
}

/* --- footer (on-navy) --- */
.site-footer { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; margin-bottom: 3rem; }
.footer-mark { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); text-transform: uppercase; }
.footer-mark .num { color: #7f9bff; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 3rem 4rem; }
.footer-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8fa8ff; margin-bottom: .9rem; }
.footer-col a, .footer-col span { display: block; color: var(--ink-mute); font-size: .92rem; margin-bottom: .5rem; transition: color .3s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .74rem; color: var(--ink-dim); letter-spacing: .04em; }

/* --- generic case-study / contact page bits (shared) --- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-family: var(--mono); font-size: .78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.page-hero .breadcrumb a:hover { color: var(--blue); }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); max-width: 22ch; }
.page-hero .tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.tag-chip { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-mute); }

.case-block { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .case-block { grid-template-columns: .7fr 1.3fr; } }
.case-block-label { display: flex; align-items: baseline; gap: .8rem; font-family: var(--mono); }
.case-block-label .num { font-size: 1.1rem; }
.case-block-label h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); }
.case-block-copy p { color: var(--ink-mute); font-size: 1.05rem; max-width: 60ch; }
.case-block-copy p + p { margin-top: 1rem; }
.case-block + .case-block { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }

.result-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px) { .result-grid { grid-template-columns: repeat(3,1fr); } }
.result-card { border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.4rem; text-align: center; }
.result-card b { display: block; font-family: var(--display); font-weight: 800; color: var(--accent); font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.result-card span { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-top: .5rem; }
.result-note { margin-top: 1.6rem; font-family: var(--mono); font-size: .78rem; color: var(--ink-dim); text-align: center; }

.press-grid { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.press-chip {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .02em;
  padding: .65rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); transition: all .3s var(--ease-out);
}
.press-chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* --- contact page --- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr .7fr; } }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: .9rem 1rem; color: var(--ink); font-size: .96rem;
  transition: border-color .3s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row.two { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: repeat(3,1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; padding: .6rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute);
  transition: all .3s var(--ease-out);
}
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-status { margin-top: 1rem; font-family: var(--mono); font-size: .82rem; color: var(--blue); min-height: 1.4em; }
.contact-side h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; margin-bottom: 1rem; }
.contact-side .item { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.contact-side .item:last-child { border-bottom: 1px solid var(--line); }
.contact-side .item span { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin-bottom: .3rem; }
.contact-side .item a, .contact-side .item p { font-size: 1.05rem; color: var(--ink); }

/* =============================================================
   7. Effects
   ============================================================= */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.grain {
  position: fixed; inset: 0; z-index: 1; opacity: .03; mix-blend-mode: multiply; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* =============================================================
   8. Responsive breakpoints reference
   Mobile-first defaults above; steps at 540 / 720 / 960 / 1280 / 1600
   ============================================================= */
@media (min-width: 1280px) {
  .nav-links.desktop { gap: 2.6rem; }
}

/* --- native cross-page transitions (Chromium; degrades silently elsewhere) --- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease-in) both vtOut; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .hero-scroll::after { animation: none; }
  .splash { animation: none; }
}
