/* =========================================================================
   ZT — design system
   Dark navy / blue, minimal, premium. Plain CSS, no framework, no build step.
   ZT's own identity is blue — color is applied narrowly (labels, borders,
   hover states, buttons, badges, ambient light), never as a wash across the
   whole page. Individual projects (see .project-takeover) are allowed to
   temporarily bring their own accent color into their own section only.
   ========================================================================= */

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

/* ---- tokens -------------------------------------------------------------*/
:root {
  /* ZT brand — dark navy / blue. Kept restrained: most surfaces stay near-
     black, blue shows up through labels, borders, hover states, badges and
     buttons rather than as a colored background. */
  --bg: #05070c;
  --bg-raised: #090d15;
  --bg-elevated: #0c1626;
  --fg: #f7faff;
  --fg-dim: #98a3b8;
  --fg-faint: rgba(152, 163, 184, 0.62);
  --line: rgba(120, 183, 255, 0.16);
  --line-soft: rgba(120, 183, 255, 0.1);
  --line-strong: rgba(120, 183, 255, 0.36);
  --white: #ffffff;
  --black: #000000;

  --blue: #2563eb;
  --blue-rgb: 37, 99, 235;
  --blue-light: #78b7ff;
  --blue-light-rgb: 120, 183, 255;
  --blue-pale: #cfe7ff;
  --verify: #4f8fff;
  --verify-rgb: 79, 143, 255;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 800ms;

  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--white); }

/* ---- focus / a11y ------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

/* ---- layout -------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 12vw, 160px); }
.section-tight { padding-block: clamp(56px, 8vw, 96px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.section-index {
  font-size: 13px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* ---- typography -----------------------------------------------------------*/
h1, h2, h3, h4 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.h1 { font-size: clamp(2.6rem, 6vw + 1rem, 5.6rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(2rem, 3.6vw + 1rem, 3.4rem); }
.h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); }

.lede {
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem);
  color: var(--fg-dim);
  font-weight: 400;
  line-height: 1.5;
  max-width: 46ch;
}

.body-text { color: var(--fg-dim); max-width: 62ch; }
.body-text p + p { margin-top: 1.1em; }

.mono-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}

/* ---- buttons ----------------------------------------------------------------
   The ZT button language: a medium, slightly-asymmetric corner (one corner
   left sharp, like a cut flag-edge — never a full pill, never a plain box),
   a thin outer border paired with a faint inset ring for a layered edge, a
   small blue accent tick at the sharp corner, and a restrained highlight
   that sweeps across on hover plus a very soft cursor-follow glow (set via
   --mx/--my from main.js, same mechanism as the team-card pointer light).
   Three deliberate weights only: primary (strongest — the site's top
   conversion actions), secondary (in-context / navigational actions) and
   utility (compact, quiet — copy-id and other minor controls, further down
   this file). No fourth variant, no huge pills, no heavy shadows. --------- */
.btn {
  --mx: 50%;
  --my: 40%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 25px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px 12px 12px 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97) translateY(0); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* accent tick at the sharp (bottom-left) corner — the one recurring "ZT"
   detail every full-weight button carries, quiet enough not to read as a
   decoration on its own. */
.btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0; bottom: 0;
  width: 3px;
  height: 58%;
  background: var(--blue-light);
  opacity: 0.85;
  border-radius: 0 2px 2px 0;
  transition: height var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.btn:hover::after { height: 72%; opacity: 1; }

/* hover sheen — a soft diagonal highlight that sweeps through once, plus a
   very restrained cursor-follow glow (opacity only ever fades in on
   hover/focus; it never moves the pointer's own cursor). */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(140px 100px at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 72%),
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, -140% 0;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out), background-position 550ms var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { opacity: 1; background-position: 0 0, 140% 0; }

.btn-primary {
  background: var(--white);
  color: #0a0f1a;
  box-shadow: inset 0 0 0 1px rgba(10, 15, 26, 0.06);
}
.btn-primary::after { background: var(--blue); opacity: 0.55; }
.btn-primary:hover { background: var(--blue-pale); transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 0.75; }

.btn-secondary {
  background: rgba(var(--blue-light-rgb), 0.05);
  border-color: rgba(var(--blue-light-rgb), 0.38);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(var(--blue-light-rgb), 0.08);
}
.btn-secondary:hover {
  border-color: var(--blue-light);
  background: rgba(var(--blue-light-rgb), 0.11);
  color: var(--blue-pale);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 15px 10px 17px; font-size: 13px; border-radius: 9px 9px 9px 2px; gap: 8px; }
.btn-sm::after { width: 2px; }

.btn .icon { transition: transform 200ms var(--ease-out); }
.btn:hover .icon { transform: translate(4px, -4px); }
.btn:hover .icon.icon-down { transform: translateY(4px); }

/* ---- navbar ---------------------------------------------------------------*/
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 12, 0);
  backdrop-filter: blur(0px);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.navbar.is-scrolled {
  background: rgba(5, 7, 12, 0.82);
  border-color: var(--line-soft);
  backdrop-filter: blur(14px);
}
.navbar-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease);
}
.logo:hover { color: var(--blue-light); }
.nav-links {
  display: none;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--blue-light);
  box-shadow: 0 0 8px rgba(var(--blue-light-rgb), 0.6);
  transition: right var(--dur) var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-links a.is-active { color: var(--fg); }
.nav-links a.is-active::after { right: 0; }
.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
@media (min-width: 860px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin-inline: auto;
  background: var(--fg);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; }
@media (min-width: 860px) { .mobile-menu { display: none; } }

/* ---- hero -----------------------------------------------------------------*/
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(122px, 15vw, 176px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line-soft);
}
/* Soft ZT-blue ambient light behind the hero — restrained, no huge blob,
   just enough atmosphere to signal the brand before any project color
   shows up further down the page. */
.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  width: min(1100px, 140vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 30%, rgba(var(--blue-rgb), 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--blue-light-rgb), 0.1), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--fg-faint);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-kicker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(var(--blue-light-rgb), 0.2);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--blue-light-rgb), 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(var(--blue-light-rgb), 0.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kicker .dot { animation: none; }
}
.hero h1 {
  max-width: 16ch;
  background: linear-gradient(180deg, var(--fg) 45%, var(--blue-pale) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-statement {
  margin-top: 26px;
  font-size: clamp(1.3rem, 1.6vw + 0.9rem, 1.9rem);
  font-weight: 600;
  color: var(--fg);
  max-width: 22ch;
  line-height: 1.25;
}
.hero-support {
  margin-top: 14px;
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  color: var(--fg-dim);
  max-width: 46ch;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ---- reveal animations -----------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 90ms; }
.reveal-delay-2.is-visible { transition-delay: 180ms; }
.reveal-delay-3.is-visible { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- work section -----------------------------------------------------------*/
.work-list { display: flex; flex-direction: column; gap: clamp(88px, 12vw, 160px); }

.work-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 780px) {
  .work-item { gap: 40px; }
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.work-media img,
.work-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 900ms var(--ease);
  background: var(--bg-elevated);
}
.work-item:hover .work-media img,
.work-item:hover .work-media video,
.work-item:focus-within .work-media img,
.work-item:focus-within .work-media video { transform: scale(1.045); }

.work-media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.work-item:hover .work-media-overlay,
.work-item:focus-within .work-media-overlay { opacity: 1; }
.work-media-overlay .btn { pointer-events: none; }

.work-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--fg-faint);
  font-size: 13px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.work-meta .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.work-meta .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.work-name {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.work-name a { transition: opacity var(--dur-fast) var(--ease); }
.work-name a:hover { opacity: 0.7; }
.work-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.work-desc { color: var(--fg-dim); max-width: 54ch; margin-bottom: 22px; }
.work-links { display: flex; flex-wrap: wrap; gap: 12px; }

.spotlight-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-bottom: 20px;
}
.spotlight-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--verify);
  flex-shrink: 0;
}
.work-type { color: var(--fg-dim); font-size: 15px; margin: -2px 0 18px; }

/* ---- project takeover ---------------------------------------------------
   A featured project (data/projects.mjs -> featured:true + video.loop) gets
   this instead of a plain image card: a near-full-bleed cinematic media
   block plus an ambient glow behind it, tinted with that project's own
   --accent color (set inline per-project, see renderProjectTakeover in
   scripts/generate.mjs). The rest of the ZT site stays black & white —
   the color is scoped entirely to this one <article> via CSS custom
   properties, and clipped to it with overflow:hidden so it never bleeds
   into Services/Team/Contact below.
   ------------------------------------------------------------------------ */
.work-section { position: relative; }

/* ---- progress rail --------------------------------------------------------
   A quiet, scalable "how many projects" indicator. One tick per project;
   with a single real project today it stays deliberately minimal. */
.progress-rail {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rail-count {
  font-size: 13px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.rail-sep { margin: 0 2px; color: var(--fg-faint); opacity: 0.6; }
.rail-ticks { display: flex; align-items: center; gap: 5px; }
.rail-tick {
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.rail-tick.is-active { background: var(--blue-light); box-shadow: 0 0 8px rgba(var(--blue-light-rgb), 0.6); }

.project-takeover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(48px, 7vw, 88px);
  padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 120px);
}
.project-takeover::before,
.project-takeover::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.5), transparent);
  z-index: 2;
}
.project-takeover::before { top: 0; }
.project-takeover::after { bottom: 0; }

/* Ambient glow + a heavily blurred copy of the project's own preview image,
   both scoped entirely to this <article> and faded to var(--bg) at the top
   and bottom edges — so ZT's blue reads as gradually giving way to the
   project's own color as you scroll in, and just as gradually returning
   once you scroll past. No hard cut anywhere. */
.takeover-glow {
  position: absolute;
  inset: -30% -5%;
  background:
    radial-gradient(46% 40% at 18% 20%, rgba(var(--accent-rgb), 0.2), transparent 62%),
    radial-gradient(40% 36% at 85% 78%, rgba(var(--accent-2-rgb, var(--accent-rgb)), 0.13), transparent 60%),
    radial-gradient(60% 50% at 50% 50%, var(--ambient, transparent) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.takeover-ambient {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: blur(70px) saturate(1.25);
  opacity: 0.14;
  transform: scale(1.25);
  pointer-events: none;
  z-index: 0;
}
.takeover-ambient::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 34%, transparent 66%, var(--bg) 100%);
}

.takeover-inner { position: relative; z-index: 1; }

.takeover-head { max-width: 62ch; margin-bottom: clamp(32px, 4.5vw, 52px); }
.takeover-head .spotlight-label { margin-bottom: 16px; }
.takeover-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 10px;
}
.takeover-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.takeover-head .work-categories { margin-bottom: 22px; }
.takeover-desc { font-size: 16px; max-width: 56ch; margin-bottom: 30px; }
.takeover-head .work-links { gap: 14px; }

/* Large, contained video — stays inside the container/grid like every other
   piece of content on the page (never a full-viewport bleed, which is what
   made earlier versions feel like "a capture pasted into the page"), sized
   to read as dominant without ever escaping its box. */
.takeover-media {
  position: relative;
  width: min(1180px, 92%);
  margin-inline: auto;
}
.takeover-media-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: var(--bg-elevated);
  box-shadow: 0 40px 100px -40px rgba(var(--accent-rgb), 0.35), 0 0 0 1px rgba(0,0,0,0.2);
}
@media (max-width: 700px) {
  .takeover-media { width: 100%; }
  .takeover-media-link { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
}
.takeover-media-link img,
.takeover-media-link video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.takeover-live-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(6, 2, 2, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  padding: 7px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.takeover-live-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb));
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
  flex-shrink: 0;
}
.takeover-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 2, 2, 0) 62%, rgba(4, 1, 1, 0.5) 100%);
  pointer-events: none;
}
.takeover-view-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(6, 2, 2, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.takeover-media-link:hover .takeover-view-hint,
.takeover-media-link:focus-visible .takeover-view-hint {
  opacity: 1;
  transform: none;
}
@media (max-width: 700px) {
  .takeover-view-hint { display: none; }
}

/* Graceful fallback for a video that couldn't autoplay (policy, reduced
   motion, a stalled connection): a real, clickable play control so the
   preview never just sits there as a dead screenshot. Hidden by default —
   [data-video-wrap].autoplay-blocked is toggled on by main.js only when
   autoplay genuinely didn't start. */
.video-play-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(6, 2, 2, 0.38);
  border: none;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.video-play-fallback:hover { background: rgba(6, 2, 2, 0.52); }
.video-play-fallback svg {
  width: clamp(52px, 7vw, 72px);
  height: clamp(52px, 7vw, 72px);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
  transition: transform var(--dur-fast) var(--ease);
}
.video-play-fallback:hover svg { transform: scale(1.06); }
[data-video-wrap].autoplay-blocked .video-play-fallback {
  opacity: 1;
  pointer-events: auto;
}

.tag-accent {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: rgba(255, 255, 255, 0.85);
}

.btn-accent {
  background: rgb(var(--accent-rgb));
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.btn-accent::after { background: rgba(255, 255, 255, 0.75); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost-accent {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}
.btn-ghost-accent::after { background: rgb(var(--accent-rgb)); }
.btn-ghost-accent:hover {
  border-color: rgb(var(--accent-rgb));
  background: rgba(var(--accent-rgb), 0.14);
  transform: translateY(-2px);
}

.takeover-review {
  width: min(560px, 92%);
  margin: clamp(28px, 4vw, 40px) auto 0;
}
.takeover-review .review-card { margin-top: 0; max-width: none; }

/* ---- services -----------------------------------------------------------*/
.services-list {
  border-top: 1px solid var(--line-soft);
}
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  row-gap: 6px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-row::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue-light);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}
.service-row:hover { background: rgba(var(--blue-light-rgb), 0.04); }
.service-row:hover::before { transform: scaleY(1); }
.service-row-num {
  grid-row: 1 / 3;
  font-size: 14px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding-top: 3px;
  transition: color var(--dur) var(--ease);
}
.service-row:hover .service-row-num { color: var(--blue-light); }
.service-row-title {
  font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.5rem);
  font-weight: 650;
}
.service-row-desc {
  color: var(--fg-dim);
  max-width: 62ch;
  font-size: 15px;
}
.service-row-desc strong { color: var(--fg); font-weight: 600; }
@media (min-width: 780px) {
  .service-row { grid-template-columns: 90px 260px 1fr; align-items: baseline; row-gap: 0; padding-block: 30px; }
  .service-row-title { grid-row: 1; }
  .service-row-desc { grid-row: 1; }
}
.services-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.services-cta p { color: var(--fg-dim); max-width: 48ch; }

/* ---- process --------------------------------------------------------------*/
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 700px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  padding: 32px 28px 32px 0;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 700px) {
  .process-step { border-top: none; border-left: 1px solid var(--line-soft); padding: 4px 28px; }
  .process-step:first-child { padding-left: 0; }
}
.process-num {
  font-size: 13px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.process-step p { color: var(--fg-dim); font-size: 14px; }

/* ---- team -----------------------------------------------------------------
   roc (primary) is presented as the obvious first contact; az.gg
   (secondary) is a visual-design collaborator available on selected
   projects, never an equal/automatic co-contact. The layout below is a
   deliberate hierarchy, not a two-up grid: a large primary card, then a
   visibly quieter, narrower secondary block underneath — see
   renderTeam()/renderTeamCard() in scripts/generate.mjs. */
.team-section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.team-primary-wrap { margin-bottom: clamp(36px, 5vw, 56px); }
.team-secondary-wrap { max-width: 460px; }

.team-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-raised);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.team-card:hover { border-color: var(--line-strong); }

/* Primary (roc) — full visual weight: larger padding/avatar/name, a
   subtle blue wash and a filled CTA so it unmistakably reads as "the
   first person to contact." */
.team-card-primary {
  padding: clamp(28px, 3.4vw, 44px);
  border-color: var(--line-strong);
  background:
    linear-gradient(155deg, rgba(var(--blue-light-rgb), 0.07), transparent 58%),
    var(--bg-raised);
  box-shadow: 0 30px 70px -44px rgba(var(--blue-rgb), 0.45);
}
.team-card-primary .avatar-wrap { width: 84px; height: 84px; }
.team-card-primary .team-display-name { font-size: clamp(1.3rem, 1.2vw + 1rem, 1.6rem); }
.team-card-primary .team-top { margin-bottom: 26px; }
.team-card-primary .team-blurb { font-size: 15px; }

/* Secondary (az.gg) — deliberately smaller and quieter: tighter padding,
   a smaller avatar/name, softer border, ghost CTA, no blue wash. Still
   fully functional — live PFP, username, verification badge, Discord ID
   and contact link all work exactly the same as the primary card. */
.team-card-secondary {
  padding: 20px 22px;
  background: var(--bg-raised);
}
.team-card-secondary .avatar-wrap { width: 48px; height: 48px; }
.team-card-secondary .team-top { gap: 14px; margin-bottom: 16px; }
.team-card-secondary .team-display-name { font-size: 0.98rem; }
.team-card-secondary .team-blurb { font-size: 13px; margin: 12px 0 16px; }
.team-card-secondary .team-actions { margin-top: 14px; gap: 12px; }

.team-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  margin-top: 3px;
}
.team-card-secondary .team-title {
  color: var(--fg-faint);
  font-weight: 500;
}
/* Very subtle light that follows the pointer — set via --mx/--my in
   main.js on pointermove, only ever visible near the cursor. */
.team-card-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--blue-light-rgb), 0.1), transparent 65%);
}
.team-card:hover .team-card-light { opacity: 1; }
.team-card > *:not(.team-card-light) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .team-card-light { display: none; }
}
.team-top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.avatar-wrap {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap.is-loading { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.team-name-row { display: flex; align-items: center; gap: 6px; }
.team-display-name { font-size: 1.15rem; font-weight: 650; }
.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--verify);
  flex-shrink: 0;
  position: relative;
}
.verify-badge svg { width: 10px; height: 10px; }
.verify-badge .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.verify-badge:hover .tooltip,
.verify-badge:focus-visible .tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.team-role { font-size: 13px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.username-inline { text-transform: none; letter-spacing: normal; color: var(--fg-faint); font-weight: 500; }
.username-inline::before { content: "@"; }
.team-blurb { color: var(--fg-dim); font-size: 14px; margin: 18px 0 22px; }

/* Discord ID — deliberately quiet. Collapsed by default behind a small
   <details> affordance so it never competes with the person/review it
   belongs to; opens in place to reveal the id + a copy button. */
.id-details { margin-bottom: 4px; }
.id-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease);
}
.id-details summary::-webkit-details-marker { display: none; }
.id-details summary::marker { content: ""; }
.id-details summary:hover, .id-details summary:focus-visible { color: var(--blue-light); }
.id-details summary .icon { width: 11px; height: 11px; transition: transform var(--dur-fast) var(--ease); }
.id-details[open] summary .icon { transform: rotate(180deg); }
.id-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  background: var(--bg-raised);
}
.id-reveal .id-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--fg-dim);
  word-break: break-all;
}
/* utility button — the third, quietest weight in the ZT button language:
   same family DNA (a small cut corner, a hairline border) but no accent
   tick, no sheen, no lift. It should never compete with a real CTA. */
.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--blue-light-rgb), 0.03);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  border-radius: 7px 7px 7px 2px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
.copy-btn:hover { border-color: var(--blue-light); color: var(--blue-pale); background: rgba(var(--blue-light-rgb), 0.08); }
.copy-btn[data-copied="true"] { border-color: var(--verify); color: var(--verify); }
.copy-btn svg { width: 13px; height: 13px; }

.team-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }

/* quiet secondary-contact handle (e.g. "@roczt" next to the Telegram
   button) — visible but deliberately faint, never competing with the
   Discord/Telegram buttons themselves. Wraps onto its own line on narrow
   cards rather than forcing the row to overflow. */
.team-telegram-handle {
  font-size: 12.5px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  margin-left: -6px;
}

.team-cta {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.team-cta-label { font-size: clamp(1.3rem, 1.6vw + 0.8rem, 1.7rem); font-weight: 650; letter-spacing: -0.01em; }
.team-cta-sub { color: var(--fg-dim); flex: 1 1 auto; }
.team-cta .btn { margin-left: auto; }

/* ---- client / review card ------------------------------------------------ */
/* Reuses the team card's atomic pieces (avatar-wrap, team-name-row,
   verify-badge, team-username, discord-id-row, copy-btn) so a project's
   client review looks like part of the same design system, without
   touching the team section's own markup or styles above. Each card
   carries the project's own --accent/--accent-rgb (see renderReviewCard in
   scripts/generate.mjs) so it picks up a soft tint of that project's
   identity instead of reading like a generic bolted-on testimonial box. */
.review-card {
  position: relative;
  border: 1px solid rgba(var(--accent-rgb, 255, 255, 255), 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.8vw, 32px);
  background:
    linear-gradient(165deg, rgba(var(--accent-rgb, 255, 255, 255), 0.09), rgba(var(--accent-rgb, 255, 255, 255), 0) 55%),
    var(--bg-elevated);
  box-shadow: 0 24px 60px -32px rgba(var(--accent-rgb, 0, 0, 0), 0.5);
  margin-top: 28px;
  max-width: 480px;
  overflow: hidden;
}
.case-review .review-card { max-width: 560px; margin-top: 0; }
.review-quote-mark {
  position: absolute;
  top: -6px;
  right: 20px;
  font-size: 96px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(var(--accent-rgb, 255, 255, 255), 0.14);
  pointer-events: none;
  user-select: none;
}
.review-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--accent-rgb, 255, 255, 255), 0.14);
}
.review-top .avatar-wrap { width: 48px; height: 48px; border-color: rgba(var(--accent-rgb, 255, 255, 255), 0.3); }
.star-rating { position: relative; display: inline-flex; gap: 3px; margin-bottom: 16px; }
.star-rating .star { color: var(--line-strong); font-size: 16px; line-height: 1; }
.star-rating .star.is-filled { color: rgb(var(--accent-rgb, 244, 244, 242)); }
.review-text {
  position: relative;
  color: var(--fg);
  font-size: clamp(15px, 1vw + 12px, 17px);
  line-height: 1.6;
  font-weight: 450;
}
.review-card .id-details { position: relative; margin-top: 16px; }

/* ---- contact ----------------------------------------------------------------*/
.contact-head { text-align: left; max-width: 60ch; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-fact { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.contact-fact dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-faint); margin-bottom: 6px; }
.contact-fact dd { color: var(--fg-dim); }
.contact-fact a:hover { color: var(--fg); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg-dim); }
.field .hint { font-size: 12px; color: var(--fg-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--fg);
  font-size: 14px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--line-strong);
  background: var(--bg-elevated);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.radio-option:hover { border-color: var(--line); }
.radio-option input { margin-top: 3px; accent-color: var(--white); }
.radio-option:has(input:checked) { border-color: var(--line-strong); background: var(--bg-elevated); }
.radio-option .opt-title { font-size: 14px; font-weight: 600; display: block; }
.radio-option .opt-desc { font-size: 13px; color: var(--fg-faint); display: block; margin-top: 2px; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-note { font-size: 12px; color: var(--fg-faint); max-width: 42ch; }

.form-status { font-size: 14px; margin-top: 4px; min-height: 1.2em; }
.form-status[data-state="success"] { color: var(--verify); }
.form-status[data-state="error"] { color: #ff6b5e; }

/* ---- project configurator ("Build your brief") ---------------------------
   Fully client-rendered by public/scripts/configurator.js into
   [data-configurator] — see that file for the state machine. Styling here
   is deliberately its own small design system layered on ZT's existing
   tokens (chips, option cards, a custom slider, a stage progress bar)
   rather than reusing the old plain-form field styles above, so this reads
   as something ZT built specifically, not a generic form. */
.configurator-wrap { min-height: 420px; }
.configurator-noscript { color: var(--fg-dim); font-size: 14px; }

.configurator {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: clamp(22px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}
/* Shifts just the head block (kicker/title/step-progress) down a little
   within the card — internal gaps (kicker→title, title→progress,
   head→stage) are untouched via margin-bottom below, and nothing is
   resized; this only adds breathing room above the very top of the
   configurator. */
.configurator-head { margin-top: 24px; margin-bottom: 28px; }
.configurator-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}
.configurator-title { font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem); margin-bottom: 20px; }

/* ---- top progress: 01 Project / 02 Design / 03 Budget / 04 Timeline / 05 Contact */
.configurator-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-faint);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.progress-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-faint);
}
.progress-step.is-done .progress-step-num { border-color: var(--blue-light); color: var(--blue-light); background: rgba(var(--blue-light-rgb), 0.1); }
.progress-step.is-active { color: var(--fg); }
.progress-step.is-active .progress-step-num { border-color: var(--blue-light); background: var(--blue-light); color: #05070c; }
.progress-step-label { display: none; }
@media (min-width: 640px) { .progress-step-label { display: inline; } }
.progress-connector {
  width: clamp(14px, 3vw, 36px);
  height: 1px;
  background: var(--line);
  margin: 0 6px;
  flex-shrink: 1;
}

/* ---- brief sub-progress: "Visual brief 4 / 6" ---- */
.brief-subprogress { margin-bottom: 24px; }
.brief-subprogress-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 10px;
}
.brief-subprogress-track { height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.brief-subprogress-fill { height: 100%; background: var(--blue-light); box-shadow: 0 0 8px rgba(var(--blue-light-rgb), 0.5); }

/* ---- stage content ---- */
.configurator-stage { min-height: 160px; }
.configurator-step-title { font-size: clamp(1.15rem, 1.2vw + 0.9rem, 1.5rem); margin-bottom: 6px; outline: none; }
.configurator-step-sub { color: var(--fg-dim); font-size: 14px; margin-bottom: 24px; max-width: 56ch; }

.field-block { margin-bottom: 24px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-dim); margin-bottom: 10px; }
.field-optional { font-weight: 400; color: var(--fg-faint); }
.field-help { font-size: 13px; color: var(--fg-faint); margin: -4px 0 10px; }
.field-input, .field-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--fg);
  font-size: 14px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease);
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--fg-faint); }
.field-input:focus, .field-textarea:focus { border-color: var(--line-strong); outline: none; }
.field-textarea { resize: vertical; min-height: 90px; }
.color-input-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -8px; }
@media (max-width: 560px) { .color-input-row { grid-template-columns: 1fr; } }

/* ---- chips ---- */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--fg); }
.chip.is-selected {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: #05070c;
  font-weight: 600;
}
.chip:active { transform: scale(0.97); }
.chip-sm { padding: 6px 12px; font-size: 12px; }
.chip-other { margin-top: 12px; max-width: 360px; }

/* ---- option cards (project type / visual option / timeline) ---- */
.option-card-group { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .option-card-group { grid-template-columns: repeat(3, 1fr); } }
.option-card-group-compact { grid-template-columns: 1fr; }
@media (min-width: 640px) { .option-card-group-compact { grid-template-columns: repeat(3, 1fr); } }
.option-card {
  position: relative;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.option-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.option-card.is-selected { border-color: var(--blue-light); background: rgba(var(--blue-light-rgb), 0.08); }
.option-card-check {
  position: absolute;
  top: 14px; right: 14px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.option-card.is-selected .option-card-check { background: var(--blue-light); border-color: var(--blue-light); }
.option-card-title { font-weight: 650; font-size: 14.5px; padding-right: 24px; }
.option-card-desc { font-size: 12.5px; color: var(--fg-faint); line-height: 1.4; }

/* ---- repeatable lists (pages / references) ---- */
.repeatable-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.repeatable-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg);
}
.repeatable-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.repeatable-item-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-faint); }
.repeatable-remove-btn { background: none; border: none; color: var(--fg-faint); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.repeatable-remove-btn:hover { color: #ff6b5e; }
.repeatable-item .field-block:last-child { margin-bottom: 0; }
.repeatable-add-btn {
  background: none;
  border: 1px dashed var(--line-strong);
  color: var(--fg-dim);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.repeatable-add-btn:hover { border-color: var(--blue-light); color: var(--blue-pale); }

.upload-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--fg-faint);
  text-align: center;
}

/* ---- budget slider ---- */
.budget-block { padding-top: 4px; }
.budget-value { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.budget-context { color: var(--fg-dim); font-size: 14px; margin-top: 4px; min-height: 1.4em; }
.budget-slider { margin-top: 32px; padding: 0 2px; }
.budget-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  cursor: pointer;
}
.budget-track-fill {
  position: absolute;
  top: -1px; bottom: -1px; left: 0;
  border-radius: 999px;
  background: var(--blue-light);
  transition: width 120ms var(--ease-out);
}
.budget-block.is-not-sure .budget-track-fill { opacity: 0.35; }
.budget-handle {
  position: absolute;
  top: 50%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-light);
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: left 120ms var(--ease-out), box-shadow var(--dur-fast) var(--ease);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.budget-handle:hover { box-shadow: 0 0 0 6px rgba(var(--blue-light-rgb), 0.14), 0 2px 10px rgba(0,0,0,0.4); }
.budget-handle:focus-visible { box-shadow: 0 0 0 6px rgba(var(--blue-light-rgb), 0.22), 0 2px 10px rgba(0,0,0,0.4); outline: none; }
.budget-handle.is-dragging {
  cursor: grabbing;
  transition: box-shadow var(--dur-fast) var(--ease);
  box-shadow: 0 0 0 9px rgba(var(--blue-light-rgb), 0.22), 0 2px 14px rgba(0,0,0,0.5);
}
.budget-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.budget-tick {
  font-size: 10.5px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  flex: 1 1 0;
  text-align: center;
}
.budget-tick:first-child { text-align: left; }
.budget-tick:last-child { text-align: right; }
.budget-not-sure { margin-top: 22px; }
.budget-disclaimer { font-size: 12px; color: var(--fg-faint); margin-top: 16px; max-width: 46ch; }

/* ---- nav / validation ---- */
.configurator-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.configurator-nav-summary { justify-content: flex-end; }
.configurator-validation { font-size: 13px; color: #ff9a6b; margin-right: auto; }
.configurator-nav .btn-primary { margin-left: auto; }
.configurator-error { font-size: 13px; color: #ff6b5e; margin-top: 16px; }

/* ---- summary / review screen ---- */
.summary-grid { display: flex; flex-direction: column; gap: 18px; }
.summary-block { border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 16px 18px; background: var(--bg-elevated); }
.summary-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.summary-block-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.summary-edit {
  background: rgba(var(--blue-light-rgb), 0.03);
  border: 1px solid var(--line);
  border-radius: 7px 7px 7px 2px;
  color: var(--fg-faint);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
.summary-edit:hover { border-color: var(--blue-light); color: var(--blue-pale); background: rgba(var(--blue-light-rgb), 0.08); }
.summary-line { font-size: 15px; font-weight: 600; }
.summary-desc { font-size: 13.5px; color: var(--fg-dim); margin-top: 4px; }
.summary-brief-details { margin-top: 12px; }
.summary-brief-toggle { background: none; border: none; color: var(--blue-light); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.summary-brief-toggle-icon { font-size: 14px; }
.summary-brief-table { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.summary-brief-row { display: flex; gap: 10px; font-size: 12.5px; }
.summary-brief-row dt { color: var(--fg-faint); flex: 0 0 130px; }
.summary-brief-row dd { color: var(--fg-dim); }

.summary-success { text-align: center; padding: 32px 0; }
.summary-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--verify);
  color: var(--white);
  font-size: 20px;
  margin-bottom: 18px;
}

/* ---- footer -----------------------------------------------------------------*/
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-faint); font-size: 13px; transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--fg); }
.footer-meta { color: var(--fg-faint); font-size: 13px; }
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-dim);
}
.back-to-top:hover { color: var(--fg); }

/* ---- case study page ----------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-faint);
  font-size: 13px;
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--fg); }

.case-hero-media {
  position: relative;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.case-hero-media img,
.case-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 700px) { .case-meta-grid { grid-template-columns: repeat(4, 1fr); } }
.case-meta-grid dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-faint); margin-bottom: 8px; }
.case-meta-grid dd { font-size: 15px; }
.case-body { margin-top: 56px; display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .case-body { grid-template-columns: 2fr 1fr; } }
.case-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.case-features li { display: flex; gap: 10px; color: var(--fg-dim); font-size: 14px; }
.case-features li::before { content: "\2014"; color: var(--fg-faint); flex-shrink: 0; }
.case-gallery { display: flex; flex-direction: column; gap: 20px; margin-top: 56px; }
.case-gallery img, .case-gallery .work-media { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }

/* ---- case study: full walkthrough video --------------------------------- */
.case-walkthrough { margin-top: 56px; }
.walkthrough-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-raised);
}
.walkthrough-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.walkthrough-play-btn {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.32);
  border: none;
  color: var(--white);
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.walkthrough-player:hover .walkthrough-play-btn { background: rgba(10, 10, 10, 0.46); }
.walkthrough-icon { display: block; width: 60px; height: 60px; }
.walkthrough-icon svg { width: 100%; height: 100%; }
.walkthrough-icon-pause { display: none; }
.walkthrough-player.is-playing .walkthrough-play-btn { opacity: 0; }
.walkthrough-player.is-playing .walkthrough-play-btn:hover { opacity: 1; }
.walkthrough-player.is-playing .walkthrough-icon-play { display: none; }
.walkthrough-player.is-playing .walkthrough-icon-pause { display: block; }

/* ---- case study: client feedback ----------------------------------------- */
.case-review { margin-top: 56px; }

.case-nav {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.case-nav a { color: var(--fg-dim); font-size: 14px; }
.case-nav a:hover { color: var(--fg); }

/* ---- misc utilities ----------------------------------------------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.stack { display: flex; flex-direction: column; }

.icon { width: 16px; height: 16px; flex-shrink: 0; }

.no-js .js-only { display: none; }

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
