/* ==========================================================================
   Olaf Motion · project landing
   Tokens follow the landing page design system: Tailwind type scale,
   fixed spacing steps, Tailwind radii, flat dark backgrounds.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Backgrounds (flat, light) */
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #efeff2;
  --surface-3: #e8e8ed;
  --surface-4: #dcdce1;

  /* Text */
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);

  /* Accent */
  --accent: #0071e3;
  --accent-hover: #0062c4;
  --accent-text: #0066cc;
  --danger: #d70015;
  --success: #1a7f37;

  /* Spacing steps */
  --s-25: 2px;  --s-50: 4px;  --s-75: 8px;  --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px;
  --s-800: 80px; --s-900: 96px;

  /* Radii (Tailwind) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 700ms;

  --container: 1120px;
  --gutter: var(--s-200);

  color-scheme: light;
}

@media (min-width: 640px) { :root { --gutter: var(--s-300); } }
@media (min-width: 1024px) { :root { --gutter: var(--s-400); } }

/* ── Base ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-900);
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: currentColor; }

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

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: var(--r-md);
}

.skip-link {
  position: fixed;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 400ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ── Type ─────────────────────────────────────────────────────── */

.eyebrow {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.gradient-text,
.hero__title,
.final__title {
  background: linear-gradient(90deg, #000000 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__title {
  font-size: 2.25rem;          /* text-4xl */
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .section__title { font-size: 3rem; line-height: 1; } /* text-5xl */
}
@media (min-width: 1024px) {
  .section__title { font-size: 3.75rem; line-height: 1; } /* text-6xl */
}

/* ── Buttons & links ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 0;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), opacity 300ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.125rem; height: 1.125rem; transition: transform 500ms var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: scale(0.98); transition-duration: 100ms; }

.btn--sm { font-size: 0.875rem; line-height: 1.25rem; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--surface-3); }
.btn--ghost:hover { background: var(--surface-4); }

.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  color: var(--accent-text);
  font-weight: 500;
  transition: color 300ms var(--ease);
}
.link .icon { width: 1rem; height: 1rem; transition: transform 500ms var(--ease); }
.link:hover { color: var(--accent-hover); }
.link:hover .icon { transform: translateX(2px); }

/* ── Fluid island nav ─────────────────────────────────────────── */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: var(--s-300) var(--gutter) 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: var(--s-50) var(--s-50) var(--s-50) var(--s-75);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.is-scrolled .nav { background: rgba(255, 255, 255, 0.85); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); }

.nav__brand {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: var(--s-75);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.nav__brand img { width: 28px; height: 28px; border-radius: var(--r-full); object-fit: cover; }

.nav__links { display: none; gap: var(--s-50); }
.nav__links a {
  display: block;
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="true"] { color: var(--text); background: rgba(0, 0, 0, 0.05); }

.nav { gap: var(--s-200); }
.nav__cta { display: inline-flex; padding: var(--s-50) var(--s-100); }

.nav__toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.nav__toggle:active { transform: scale(0.98); }
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--text);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.menu-open .nav__toggle span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

@media (min-width: 768px) {
  .nav { gap: var(--s-400); }
  .nav__links { display: flex; }
  .nav__cta { padding: var(--s-75) var(--s-100); }
  .nav__toggle { display: none; }
}

/* Full screen glass menu (mobile) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: var(--s-900) var(--gutter);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(64px);
  backdrop-filter: blur(64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease); }
.menu__links { display: grid; gap: var(--s-200); width: 100%; }
.menu__links li {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.menu-open .menu__links li { opacity: 1; transform: translateY(0); }
.menu-open .menu__links li:nth-child(1) { transition-delay: 100ms; }
.menu-open .menu__links li:nth-child(2) { transition-delay: 150ms; }
.menu-open .menu__links li:nth-child(3) { transition-delay: 200ms; }
.menu-open .menu__links li:nth-child(4) { transition-delay: 250ms; }
.menu-open .menu__links li:nth-child(5) { transition-delay: 300ms; }
.menu__links a:not(.btn) {
  display: block;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.menu__cta { margin-top: var(--s-300); }
@media (min-width: 768px) { .menu { display: none; } }

/* ── Scroll reveal ────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(64px);
  transition:
    opacity 1000ms var(--ease),
    filter 1000ms var(--ease),
    transform 1000ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; filter: blur(0); transform: translateY(0); }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: calc(var(--s-900) + var(--s-800));
  padding-bottom: var(--s-700);
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }

/* Live status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--success);
  animation: pulse 2000ms var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(26, 127, 55, 0); }
}

.hero__title {
  max-width: 960px;
  margin-top: var(--s-300);
  font-size: 3rem;             /* text-5xl */
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
@media (min-width: 768px) {
  .hero__title { font-size: 4.5rem; line-height: 1; letter-spacing: -0.04em; }  /* text-7xl */
}
@media (min-width: 1024px) {
  .hero__title { font-size: 6rem; line-height: 1; letter-spacing: -0.045em; }   /* text-8xl */
}

/* Line mask reveal: each line rises out of its own clipping box */
.hero__title[data-split] { background: none; color: var(--text); }
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero__title .line > span {
  display: inline-block;
  background: linear-gradient(90deg, #000000 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(110%);
  transition: transform 1400ms var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms + 80ms);
}
.hero__title.is-in .line > span { transform: translateY(0); }

.hero__sub {
  max-width: 680px;
  margin-top: var(--s-300);
  color: var(--text-2);
  font-size: 1.125rem;         /* text-lg */
  line-height: 1.75rem;
}
@media (min-width: 768px) {
  .hero__sub { font-size: 1.25rem; line-height: 1.75rem; } /* text-xl */
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-300);
  margin-top: var(--s-500);
}
.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-100) var(--s-300);
  margin-top: var(--s-600);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.proof li { display: flex; align-items: center; gap: var(--s-75); }
.proof .icon { width: 1rem; height: 1rem; color: var(--text-2); }

/* Hero stagger (title animates on its own timeline) */
.hero .hero__sub { --delay: 360ms; }
.hero .hero__actions { --delay: 460ms; }
.hero .proof { --delay: 560ms; }

/* As you scroll, the hero recedes while the stage grows in front of it */
@supports (animation-timeline: view()) {
  .hero__inner {
    animation: hero-out linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 40%;
  }
  @keyframes hero-out {
    to { opacity: 0; transform: translateY(-32px) scale(0.96); filter: blur(4px); }
  }
}

/* ── Video chip (caption) ─────────────────────────────────────── */

.chip {
  position: absolute;
  left: var(--s-200);
  bottom: var(--s-200);
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  max-width: calc(100% - var(--s-400));
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip span { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
@media (max-width: 639px) {
  .work .chip { left: var(--s-100); bottom: var(--s-100); max-width: calc(100% - var(--s-300)); }
  .work .chip span { display: none; }
}

/* ── Scroll stage ─────────────────────────────────────────────── */

/* The stage tucks under the hero so the first card peeks into the first
   screen, then pins while the cards grow into place. */
.stage {
  position: relative;
  height: 160vh;
  margin-top: -25vh;
  pointer-events: none;
}
.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.stage__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-100);
  width: 100%;
  /* Phone: one large card plus two below must fit the screen height */
  max-width: calc((100svh - 160px) / 1.5 + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stage__card {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--surface);
  pointer-events: auto;
}
.stage__card video { width: 100%; height: 100%; object-fit: cover; }
.stage__card--center { grid-column: 1 / -1; grid-row: 1; border-radius: var(--r-3xl); }
.stage__card--left { grid-column: 1; grid-row: 2; }
.stage__card--right { grid-column: 2; grid-row: 2; }
.stage__card--side .chip { left: var(--s-100); bottom: var(--s-100); max-width: calc(100% - var(--s-300)); }
.stage__card--side .chip span { display: none; }

@media (min-width: 768px) {
  .stage__row {
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: center;
    gap: var(--s-300);
    max-width: calc(var(--container) + var(--gutter) * 2);
  }
  .stage__card { border-radius: var(--r-3xl); }
  .stage__card--left { grid-column: 1; grid-row: 1; }
  .stage__card--center { grid-column: 2; grid-row: 1; }
  .stage__card--right { grid-column: 3; grid-row: 1; }
  .stage__card--side .chip { left: var(--s-200); bottom: var(--s-200); max-width: calc(100% - var(--s-400)); }
  .stage__card--side .chip span { display: inline; }
}

/* Scroll driven choreography where supported */
@supports (animation-timeline: view()) {
  .stage { view-timeline: --stage block; }
  .stage__card--center { z-index: 2; animation: stage-center linear both; animation-timeline: --stage; animation-range: entry 40% contain 15%; }
  .stage__card--side   { z-index: 1; animation-timeline: --stage; animation-range: entry 90% contain 50%; animation-fill-mode: both; animation-timing-function: linear; }
  .stage__card--left   { animation-name: stage-up; }
  .stage__card--right  { animation-name: stage-up-late; }
  .stage__card--center .chip { animation: stage-chip linear both; animation-timeline: --stage; animation-range: contain 5% contain 25%; }

  @keyframes stage-chip { from { opacity: 0; } to { opacity: 1; } }
  @keyframes stage-center {
    from { transform: translateY(12%) scale(0.6); }
    to   { transform: translateY(0) scale(1); }
  }
  /* Phone: the two smaller cards rise from below the hero card */
  @keyframes stage-up {
    from { transform: translateY(60%) scale(0.8); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
  }
  @keyframes stage-up-late {
    0%, 15% { transform: translateY(60%) scale(0.8); opacity: 0; }
    100%    { transform: translateY(0) scale(1); opacity: 1; }
  }

  @media (min-width: 768px) {
    .stage__card--left  { animation-name: stage-left; }
    .stage__card--right { animation-name: stage-right; }
    /* Side cards start hidden behind the centre card and slide out from under it */
    @keyframes stage-left {
      0%   { transform: translateX(70%) scale(0.86); opacity: 0; }
      25%  { opacity: 1; }
      100% { transform: translateX(0) scale(1); opacity: 1; }
    }
    @keyframes stage-right {
      0%   { transform: translateX(-70%) scale(0.86); opacity: 0; }
      25%  { opacity: 1; }
      100% { transform: translateX(0) scale(1); opacity: 1; }
    }
  }
}
@supports not (animation-timeline: view()) {
  .stage { height: auto; margin-top: 0; padding-block: var(--s-700); }
  .stage__sticky { position: static; height: auto; }
}

/* ── Tagline reveal ───────────────────────────────────────────── */

.tagline { padding-block: var(--s-900); }
.tagline__text {
  max-width: 880px;
  margin-inline: auto;
  font-size: 2.25rem;          /* text-4xl */
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .tagline__text { font-size: 3rem; line-height: 1; }        /* text-5xl */
}
@media (min-width: 1024px) {
  .tagline__text { font-size: 3.75rem; line-height: 1; }     /* text-6xl */
}
.word {
  color: rgba(29, 29, 31, 0.22);
  transition: color 800ms var(--ease);
}
.word.is-lit { color: var(--text); }

/* ── Sections ─────────────────────────────────────────────────── */

.section { padding-block: var(--s-800); }
@media (min-width: 768px) { .section { padding-block: var(--s-900); } }

.section__head { display: grid; gap: var(--s-200); margin-bottom: var(--s-600); }
@media (min-width: 768px) { .section__head { margin-bottom: var(--s-700); } }

/* ── Work grid ────────────────────────────────────────────────── */

.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-100);
}
.work__item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--surface);
}
.work__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.work__item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}
.work__item:hover video { transform: scale(1.03); }
.work__item--tall { grid-row: span 2; aspect-ratio: auto; }
.work__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }

.work__cta {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-75);
  min-height: 200px;
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
  transition: background-color 500ms var(--ease), border-color 500ms var(--ease), transform 300ms var(--ease);
}
.work__cta:hover { background: var(--surface-2); border-color: var(--line-strong); }
.work__cta:active { transform: scale(0.98); }
.work__cta-label { color: var(--text-3); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.work__cta-title { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }

@media (min-width: 768px) {
  .work { grid-template-columns: repeat(3, 1fr); gap: var(--s-200); }
  .work__cta { grid-column: span 1; aspect-ratio: 1; min-height: 0; }
  .work__item, .work__cta { border-radius: var(--r-3xl); }
  .work__item--wide { aspect-ratio: auto; }
  .work__cta { padding: var(--s-400); }
}

/* ── Services ─────────────────────────────────────────────────── */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-100);
}
.service {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--surface);
  transition: background-color 500ms var(--ease);
}
.service:hover { background: var(--surface-2); }
.service__icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--s-300);
  fill: var(--accent-text);
}
.service h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.service p { color: var(--text-2); }

@media (min-width: 768px) {
  .services { grid-template-columns: repeat(6, 1fr); gap: var(--s-200); }
  .service { grid-column: span 2; padding: var(--s-400); }
  .service--lg { grid-column: span 3; }
  .service--lg h3 { font-size: 1.5rem; line-height: 2rem; }
  .service--lg p { font-size: 1.125rem; line-height: 1.75rem; }
  .service--lg .service__icon { margin-bottom: var(--s-700); }
}

/* ── Proof stats ──────────────────────────────────────────────── */

.section__lead {
  max-width: 560px;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-100);
}
.stat {
  display: grid;
  align-content: space-between;
  gap: var(--s-300);
  min-height: 176px;
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--surface);
}
.stat strong {
  font-size: 2.25rem;          /* text-4xl */
  line-height: 2.5rem;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--text-2); font-size: 0.875rem; line-height: 1.25rem; }
.stats .stat:nth-child(2) { --delay: 80ms; }
.stats .stat:nth-child(3) { --delay: 160ms; }
.stats .stat:nth-child(4) { --delay: 240ms; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: var(--s-200); }
  .stat { min-height: 240px; padding: var(--s-400); }
  .stat strong { font-size: 3.75rem; line-height: 1; } /* text-6xl */
  .stat span { font-size: 1rem; line-height: 1.5rem; }
}

/* ── Reviews carousel ─────────────────────────────────────────── */

.reviews { margin-top: var(--s-700); }
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-200);
  margin-bottom: var(--s-300);
}
.reviews__title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.reviews__sub { margin-top: var(--s-50); color: var(--text-2); }
.reviews__nav { display: flex; gap: var(--s-75); }
.reviews__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  transition: background-color 300ms var(--ease), opacity 300ms var(--ease), transform 200ms var(--ease);
}
.reviews__btn .icon { width: 18px; height: 18px; }
.reviews__btn--prev .icon { transform: rotate(180deg); }
.reviews__btn:hover { background: var(--surface-4); }
.reviews__btn:active { transform: scale(0.94); }
.reviews__btn:disabled { opacity: 0.35; cursor: default; }

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: var(--s-100);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-3xl);
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-400);
  min-height: 208px;
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--surface);
  scroll-snap-align: start;
}
.review__who {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.review__who > span:last-child { display: grid; }
.review__who strong { color: var(--text); font-weight: 600; }
.review__chat { display: grid; justify-items: start; gap: var(--s-75); margin: 0; }
.msg {
  margin: 0;
  padding: var(--s-75) var(--s-100) var(--s-75) var(--s-200);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  border-bottom-left-radius: var(--r-md);
  background: var(--bg);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.js .reviews__track .msg {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: left bottom;
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}
.js .reviews__track.is-in .msg { opacity: 1; transform: translateY(0) scale(1); transition-delay: 300ms; }
.js .reviews__track.is-in .msg + .msg { transition-delay: 700ms; }
.msg time {
  margin-left: var(--s-75);
  color: var(--text-3);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.review__mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .reviews { margin-top: var(--s-900); }
  .reviews__title { font-size: 2.25rem; line-height: 2.5rem; }
  .reviews__track { grid-auto-columns: calc((100% - var(--s-200) * 2) / 3); gap: var(--s-200); }
  .review { min-height: 240px; padding: var(--s-400); }
}

/* Proof next to the form */
.mini-quote {
  margin: 0;
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--bg);
  border: 1px solid var(--line);
}
.mini-quote blockquote { margin: 0; }
.mini-quote p { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; letter-spacing: -0.01em; }
.mini-quote figcaption { margin-top: var(--s-100); color: var(--text-3); font-size: 0.875rem; line-height: 1.25rem; }

/* ── Formats morph ────────────────────────────────────────────── */

.morph {
  position: relative;
  height: 300vh;
  /* one unit = 1/16 of the frame's longest side */
  --u: min(calc((100svh - 420px) / 16), calc((100vw - 32px) / 16), 40px);
}
.morph__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  row-gap: var(--s-300);
  padding-top: var(--s-900);
  padding-bottom: var(--s-400);
  overflow: hidden;
}
.morph__head { display: grid; justify-items: center; gap: var(--s-100); text-align: center; }
.morph__stage { display: grid; place-items: center; min-height: 0; }
.morph__frame {
  position: relative;
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
  overflow: hidden;
  border-radius: var(--r-3xl);
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  contain: layout paint;
}
.morph__v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.morph__v--b { opacity: 1; }

.morph__labels {
  display: flex;
  justify-content: center;
  gap: var(--s-400);
  margin-top: var(--s-300);
}
.morph__label { display: grid; justify-items: center; gap: var(--s-25); text-align: center; }
.morph__label strong { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.morph__label span { color: var(--text-3); font-size: 0.875rem; line-height: 1.25rem; }
.morph__note {
  margin-top: var(--s-100);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
}

@supports (animation-timeline: view()) {
  .morph { view-timeline: --morph block; }
  .morph__frame,
  .morph__v,
  .morph__label {
    animation-timeline: --morph;
    animation-range: contain 0% contain 100%;
    animation-fill-mode: both;
    animation-timing-function: linear;
  }
  .morph__frame { animation-name: morph-frame; }
  .morph__v--a { animation-name: morph-a; }
  .morph__v--b { animation-name: morph-b; }
  .morph__v--c { animation-name: morph-c; }

  /* Labels stack in one spot and hand over as the frame changes */
  .morph__labels { display: grid; }
  .morph__label { grid-area: 1 / 1; }
  .morph__label--a { animation-name: label-a; }
  .morph__label--b { animation-name: label-b; }
  .morph__label--c { animation-name: label-c; }

  @keyframes morph-frame {
    0%, 18%  { width: calc(var(--u) * 9);  height: calc(var(--u) * 16); animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
    42%, 58% { width: calc(var(--u) * 12); height: calc(var(--u) * 12); animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
    82%, 100% { width: calc(var(--u) * 16); height: calc(var(--u) * 9); }
  }
  @keyframes morph-a { 0%, 26% { opacity: 1; } 34%, 100% { opacity: 0; } }
  @keyframes morph-b { 0%, 26% { opacity: 0; } 34%, 66% { opacity: 1; } 74%, 100% { opacity: 0; } }
  @keyframes morph-c { 0%, 66% { opacity: 0; } 74%, 100% { opacity: 1; } }

  @keyframes label-a {
    0%, 24% { opacity: 1; transform: translateY(0); filter: blur(0); }
    32%, 100% { opacity: 0; transform: translateY(-12px); filter: blur(4px); }
  }
  @keyframes label-b {
    0%, 28% { opacity: 0; transform: translateY(12px); filter: blur(4px); }
    36%, 64% { opacity: 1; transform: translateY(0); filter: blur(0); }
    72%, 100% { opacity: 0; transform: translateY(-12px); filter: blur(4px); }
  }
  @keyframes label-c {
    0%, 68% { opacity: 0; transform: translateY(12px); filter: blur(4px); }
    76%, 100% { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
}
@supports not (animation-timeline: view()) {
  .morph { height: auto; padding-block: var(--s-900); }
  .morph__sticky { position: static; height: auto; padding: 0; }
  .morph__stage { margin-top: var(--s-600); }
}

/* ── Process: interactive five step flow ─────────────────────── */

.flow { display: grid; gap: var(--s-300); }
@media (min-width: 1024px) {
  .flow { grid-template-columns: 1fr 1fr; gap: var(--s-400); align-items: start; }
  .flow__window { position: sticky; top: var(--s-900); }
}

.flow__list { display: grid; gap: var(--s-75); }
.flow__step {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--surface);
  transition: background-color 600ms var(--ease), box-shadow 600ms var(--ease), transform 200ms var(--ease);
}
.flow__step:not(.is-active):hover { background: var(--surface-2); }
.flow__step:has(.flow__btn:active) { transform: scale(0.99); }
.flow__step.is-active { background: var(--accent); box-shadow: 0 16px 40px rgba(0, 113, 227, 0.24); }

.flow__btn {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  width: 100%;
  padding: var(--s-200) var(--s-300) var(--s-200) var(--s-200);
  border: 0;
  background: none;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 400ms var(--ease);
}
.flow__btn:focus-visible { outline-offset: -4px; border-radius: var(--r-2xl); }
.flow__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-lg);
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-text);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.flow__step.is-active .flow__btn { color: #fff; }
.flow__step.is-active .flow__btn:focus-visible { outline-color: #fff; }
.flow__step.is-active .flow__num { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* Description expands with a height transition */
.flow__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 700ms var(--ease); }
.flow__body > div { overflow: hidden; }
.flow__step.is-active .flow__body { grid-template-rows: 1fr; }
.flow__body p {
  padding: 0 var(--s-300) var(--s-300) calc(var(--s-200) + 32px + var(--s-100));
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}
.flow__step.is-active .flow__body p { opacity: 1; transform: translateY(0); transition-delay: 150ms; }

/* Autoplay progress inside the active card */
.flow__progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.flow__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.flow__step.is-running .flow__progress { opacity: 1; }
.flow__step.is-running .flow__progress::after { animation: flow-progress var(--flow-dur, 6000ms) linear forwards; }
@keyframes flow-progress { to { transform: scaleX(1); } }

/* ── Window ── */
.flow__window {
  order: -1;
  overflow: hidden;
  border-radius: var(--r-3xl);
  background: #181818;
  color: #f5f5f7;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}
@media (min-width: 1024px) { .flow__window { order: 0; } }
.flow__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-100) var(--s-200);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1F1F1F;
}
.flow__dots { display: flex; gap: var(--s-75); }
.flow__dots i { width: 12px; height: 12px; border-radius: var(--r-full); background: #ff5f57; }
.flow__dots i:nth-child(2) { background: #febc2e; }
.flow__dots i:nth-child(3) { background: #28c840; }
.flow__file {
  overflow: hidden;
  color: #a1a1a6;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.flow__counter {
  justify-self: end;
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.flow__screens { position: relative; height: 360px; }
@media (min-width: 640px) { .flow__screens { height: 420px; } }
.flow__screen {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: var(--s-300);
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 600ms var(--ease), filter 600ms var(--ease), transform 800ms var(--ease);
}
.flow__screen.is-active { opacity: 1; filter: blur(0); transform: scale(1); }
@media (min-width: 640px) { .flow__screen { padding: var(--s-400); } }

/* 01 Form */
.mock-form { display: grid; gap: var(--s-200); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-100); }
.mock-label { display: block; margin-bottom: var(--s-50); color: #a1a1a6; font-size: 0.75rem; line-height: 1rem; }
.mock-input {
  display: block;
  overflow: hidden;
  padding: var(--s-75) var(--s-100);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  background: #272727;
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-area { min-height: 64px; white-space: normal; }
.mock-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: var(--s-25);
  vertical-align: -2px;
  background: #2997ff;
  animation: caret 1000ms steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.mock-chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.mock-chips b {
  padding: var(--s-50) var(--s-100);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
  color: #a1a1a6;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}
.mock-chips b.on { border-color: #2997ff; background: rgba(0, 113, 227, 0.24); color: #fff; }
.mock-send {
  justify-self: start;
  padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

/* 02 Chat */
.mock-chat { display: grid; gap: var(--s-100); }
.bubble {
  max-width: 80%;
  margin: 0;
  padding: var(--s-75) var(--s-200);
  border-radius: var(--r-2xl);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.bubble--them { justify-self: start; border-bottom-left-radius: var(--r-md); background: #313131; }
.bubble--me { justify-self: end; border-bottom-right-radius: var(--r-md); background: var(--accent); color: #fff; }
.mock-scope {
  display: grid;
  gap: var(--s-75);
  margin-top: var(--s-100);
  padding: var(--s-200);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  background: #272727;
}
.mock-scope__title { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.mock-check { display: flex; align-items: center; gap: var(--s-75); color: #a1a1a6; font-size: 0.875rem; line-height: 1.25rem; }
.mock-check::before,
.mock-file i::after {
  content: "✓";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: var(--r-full);
  background: #28c840;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
}

/* 03 Storyboard */
.mock-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-100); }
.mock-board figure { position: relative; display: grid; gap: var(--s-75); margin: 0; }
.mock-board figure span {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: #272727;
  transition: opacity 600ms var(--ease), border-color 600ms var(--ease);
}
.mock-board figure span::before {
  content: "";
  position: absolute;
  top: 36%;
  left: 30%;
  right: 30%;
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.14), 0 16px 0 rgba(255, 255, 255, 0.08);
}
.mock-board figcaption { color: #a1a1a6; font-size: 0.75rem; line-height: 1rem; text-align: center; transition: color 600ms var(--ease); }
.mock-board em {
  position: absolute;
  top: var(--s-75);
  right: var(--s-75);
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: #ff5f57;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-style: normal;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 400ms var(--ease), transform 600ms var(--ease);
}
.flow__screen.is-active .is-cut em { opacity: 1; transform: scale(1); transition-delay: 1100ms; }
.flow__screen.is-active .is-cut span { opacity: 0.4; border-style: dashed; border-color: #ff5f57; transition-delay: 1100ms; }
.flow__screen.is-active .is-cut figcaption { color: #ff5f57; text-decoration: line-through; transition-delay: 1100ms; }

/* 04 Animation */
.mock-anim { display: grid; gap: var(--s-100); }
.mock-preview { aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--r-xl); background: #000; }
.mock-preview video { width: 100%; height: 100%; object-fit: cover; }
.mock-timeline {
  position: relative;
  display: grid;
  gap: var(--s-75);
  padding: var(--s-100);
  border-radius: var(--r-xl);
  background: #1F1F1F;
}
.mock-track { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: var(--s-75); }
.mock-track__name { color: #a1a1a6; font-size: 0.75rem; line-height: 1rem; }
.mock-track__lane { position: relative; height: 12px; border-radius: 4px; background: #272727; }
.mock-track__lane b { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.mock-track:nth-child(2) .mock-track__lane b { background: #af52de; }
.mock-track:nth-child(3) .mock-track__lane b { background: #ff9f0a; }
.mock-playhead {
  position: absolute;
  top: var(--s-75);
  bottom: var(--s-75);
  left: calc(var(--s-100) + 48px + var(--s-75));
  width: 2px;
  border-radius: var(--r-full);
  background: #ff5f57;
  animation: playhead 6000ms linear infinite;
}
@keyframes playhead {
  from { left: calc(var(--s-100) + 48px + var(--s-75)); }
  to { left: calc(100% - var(--s-100)); }
}

/* 05 Files */
.mock-files { display: grid; gap: var(--s-75); }
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  justify-self: start;
  margin-bottom: var(--s-75);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: rgba(40, 200, 64, 0.16);
  color: #30d158;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}
.mock-badge::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: #30d158; }
.mock-file {
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-100);
  border-radius: var(--r-xl);
  background: #272727;
}
.mock-file__icon { position: relative; width: 32px; height: 32px; border-radius: var(--r-lg); background: rgba(0, 113, 227, 0.3); }
.mock-file__icon::after {
  content: "MP4";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  transform: scale(0.8);
}
.mock-file b { display: block; overflow: hidden; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.mock-file small { color: #a1a1a6; font-size: 0.75rem; line-height: 1rem; }
.mock-file i { opacity: 0; transform: scale(0.4); transition: opacity 400ms var(--ease), transform 600ms var(--ease); }
.flow__screen.is-active .mock-file i { opacity: 1; transform: scale(1); }
.mock-files .mock-send { margin-top: var(--s-75); }

/* Staggered entrances per screen */
.flow__screen .mock-board figure,
.flow__screen .mock-file,
.flow__screen .bubble,
.flow__screen .mock-scope,
.flow__screen .mock-form > *,
.flow__screen .mock-anim > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}
.flow__screen.is-active .mock-board figure,
.flow__screen.is-active .mock-file,
.flow__screen.is-active .bubble,
.flow__screen.is-active .mock-scope,
.flow__screen.is-active .mock-form > *,
.flow__screen.is-active .mock-anim > * { opacity: 1; transform: translateY(0); }

.flow__screen.is-active .mock-form > :nth-child(2) { transition-delay: 100ms; }
.flow__screen.is-active .mock-form > :nth-child(3) { transition-delay: 200ms; }
.flow__screen.is-active .mock-form > :nth-child(4) { transition-delay: 300ms; }
.flow__screen.is-active .bubble--them { transition-delay: 150ms; }
.flow__screen.is-active .bubble--me { transition-delay: 650ms; }
.flow__screen.is-active .mock-scope { transition-delay: 1150ms; }
.flow__screen.is-active .mock-board figure:nth-child(2) { transition-delay: 80ms; }
.flow__screen.is-active .mock-board figure:nth-child(3) { transition-delay: 160ms; }
.flow__screen.is-active .mock-board figure:nth-child(4) { transition-delay: 240ms; }
.flow__screen.is-active .mock-board figure:nth-child(5) { transition-delay: 320ms; }
.flow__screen.is-active .mock-board figure:nth-child(6) { transition-delay: 400ms; }
.flow__screen.is-active .mock-anim > :nth-child(2) { transition-delay: 150ms; }
.flow__screen.is-active .mock-file:nth-of-type(1) { transition-delay: 150ms; }
.flow__screen.is-active .mock-file:nth-of-type(2) { transition-delay: 300ms; }
.flow__screen.is-active .mock-file:nth-of-type(3) { transition-delay: 450ms; }
.flow__screen.is-active .mock-file:nth-of-type(1) i { transition-delay: 600ms; }
.flow__screen.is-active .mock-file:nth-of-type(2) i { transition-delay: 750ms; }
.flow__screen.is-active .mock-file:nth-of-type(3) i { transition-delay: 900ms; }

/* ── Brief ────────────────────────────────────────────────────── */

.brief { background: var(--surface); }
.brief__grid { display: grid; gap: var(--s-600); }
.brief__intro { display: grid; gap: var(--s-300); align-content: start; }
.brief__lead { color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }
.ticks { display: grid; gap: var(--s-100); }
.ticks li { display: flex; align-items: center; gap: var(--s-100); }
.ticks .icon {
  width: 24px;
  height: 24px;
  padding: var(--s-50);
  border-radius: var(--r-full);
  background: rgba(0, 113, 227, 0.1);
  fill: var(--accent-text);
}
.signature {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  margin-top: var(--s-200);
  padding-top: var(--s-300);
  border-top: 1px solid var(--line);
}
.signature img { width: 48px; height: 48px; border-radius: var(--r-full); object-fit: cover; background: #fff; }
.signature div { display: grid; }
.signature strong { font-weight: 600; }
.signature span { color: var(--text-3); font-size: 0.875rem; line-height: 1.25rem; }

@media (min-width: 1024px) {
  .brief__grid { grid-template-columns: 5fr 7fr; gap: var(--s-800); }
  .brief__intro { position: sticky; top: var(--s-900); }
}

.brief__card {
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: var(--bg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.06);
}
@media (min-width: 640px) { .brief__card { padding: var(--s-400); } }

/* ── Form ─────────────────────────────────────────────────────── */

.form { display: grid; gap: var(--s-300); }
.form__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-75);
  padding-bottom: var(--s-200);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.form__head span:first-child { font-weight: 600; }
.form__head span:last-child { color: var(--text-3); }

.form__row { display: grid; gap: var(--s-300); }
@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; gap: var(--s-200); }
  .form__row--3 { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-200); }
}

.field { display: grid; gap: var(--s-75); align-content: start; }
.field label:not(.segmented label):not(.chips label),
.field legend {
  padding: 0;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.field legend { margin-bottom: var(--s-75); }
.field__opt { color: var(--text-3); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-100) var(--s-200);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.5rem;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field__error {
  display: none;
  color: var(--danger);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.field.has-error .field__error { display: block; }

/* Segmented control */
.segmented {
  position: relative;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: var(--s-50);
  padding: var(--s-50);
  border-radius: var(--r-xl);
  background: var(--surface-3);
  border: 1px solid var(--line);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 400ms var(--ease), color 400ms var(--ease), transform 200ms var(--ease);
}
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.segmented label:active span { transform: scale(0.98); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: var(--s-75) var(--s-200);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease), transform 200ms var(--ease);
}
.chips label:hover span { border-color: var(--line-strong); color: var(--text); }
.chips label:active span { transform: scale(0.98); }
.chips input:checked + span {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-text);
}
.chips input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.field.has-error .chips span { border-color: rgba(215, 0, 21, 0.4); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status:empty { display: none; }
.form__status {
  display: flex;
  gap: var(--s-75);
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-xl);
  background: rgba(215, 0, 21, 0.05);
  border: 1px solid rgba(215, 0, 21, 0.25);
  color: #a50011;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form__submit { position: relative; min-height: 48px; overflow: hidden; }
.form__submit[aria-busy="true"] { pointer-events: none; opacity: 0.72; }
.form__submit[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: shimmer 1400ms var(--ease) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.form__legal { color: var(--text-3); font-size: 0.75rem; line-height: 1rem; text-align: center; }
.form__legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* Success state */
.success {
  display: grid;
  justify-items: center;
  gap: var(--s-200);
  padding: var(--s-700) var(--s-200);
  text-align: center;
  outline: none;
  animation: materialize 900ms var(--ease) both;
}
.success[hidden] { display: none; }
.success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--s-75);
  border-radius: var(--r-full);
  background: rgba(26, 127, 55, 0.1);
  color: var(--success);
}
.success__icon .icon { width: 32px; height: 32px; }
.success h3 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.success p { max-width: 380px; color: var(--text-2); }
.success .btn { margin-top: var(--s-200); }
@keyframes materialize {
  from { opacity: 0; transform: scale(0.96); filter: blur(12px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ── FAQ ──────────────────────────────────────────────────────── */

.faq { max-width: calc(800px + var(--gutter) * 2); }
.faq__list { display: grid; gap: var(--s-75); }
.faq details {
  border-radius: var(--r-2xl);
  background: var(--surface);
  transition: background-color 400ms var(--ease);
}
.faq details:hover, .faq details[open] { background: var(--surface-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-2xl);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--text-2); transition: transform var(--dur) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--s-300) var(--s-300); color: var(--text-2); }
.faq__a a { color: var(--accent-text); }

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size var(--dur) var(--ease), opacity var(--dur) var(--ease), content-visibility var(--dur) allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* ── Final CTA ────────────────────────────────────────────────── */

.final { padding-block: var(--s-900); text-align: center; }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-300); }
.final__title {
  max-width: 680px;
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
@media (min-width: 768px) { .final__title { font-size: 4.5rem; line-height: 1; } }
.final__sub { max-width: 480px; color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }
.final .btn { margin-top: var(--s-200); }

/* ── Footer ───────────────────────────────────────────────────── */

.footer { padding-block: var(--s-500); border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  gap: var(--s-300);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.footer__brand { display: grid; gap: var(--s-50); }
.footer__brand strong { color: var(--text); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.footer__links a, .footer__social a { transition: color 300ms var(--ease); }
.footer__links a:hover, .footer__social a:hover { color: var(--text); }
.footer__social { display: flex; gap: var(--s-200); }
.footer__social .icon { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s-400); }
  .footer__copy { grid-column: 1 / -1; }
}


/* ── Scroll driven extras ─────────────────────────────────────── */

@supports (animation-timeline: view()) {
  /* Work tiles grow into place as they enter */
  .js .work .reveal {
    filter: none;
    transition: none;
    animation: tile-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  @keyframes tile-in {
    from { opacity: 0; transform: translateY(64px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Final CTA zooms forward */
  .final__inner {
    animation: final-in linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 45%;
  }
  @keyframes final-in {
    from { transform: scale(0.86); opacity: 0.2; }
    to   { transform: scale(1); opacity: 1; }
  }
}

/* ── Legal pages ──────────────────────────────────────────────── */

.legal { padding-top: calc(var(--s-900) + var(--s-800)); padding-bottom: var(--s-900); }
.legal__inner { max-width: 720px; margin-inline: auto; }
.legal__back { display: inline-flex; margin-bottom: var(--s-400); }
.legal__back .icon { transform: rotate(180deg); }
.legal__back:hover .icon { transform: rotate(180deg) translateX(2px); }
.legal h1 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #000000 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 768px) { .legal h1 { font-size: 3.75rem; line-height: 1; } }
.legal__meta { margin-top: var(--s-200); color: var(--text-3); font-size: 0.875rem; line-height: 1.25rem; }
.legal__intro { margin-top: var(--s-400); color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }
.legal h2 {
  margin-top: var(--s-600);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal p, .legal ul { margin-top: var(--s-200); color: var(--text-2); }
.legal ul { display: grid; gap: var(--s-75); padding-left: var(--s-300); list-style: disc; }
.legal a:not(.btn):not(.link) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal__box {
  margin-top: var(--s-600);
  padding: var(--s-300);
  border-radius: var(--r-3xl);
  background: var(--surface);
}
.legal__box p:first-child { margin-top: 0; }

/* ── 404 ──────────────────────────────────────────────────────── */

.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--s-900) var(--gutter);
  text-align: center;
}
.notfound__inner { display: grid; justify-items: center; gap: var(--s-300); }
.notfound video { width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-3xl); }
.notfound h1 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #000000 0%, #666666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound p { max-width: 420px; color: var(--text-2); font-size: 1.125rem; line-height: 1.75rem; }

/* ── Accessibility preferences ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { filter: none; transform: none; transition: opacity 300ms ease; }
  .hero__inner, .final__inner, .js .work .reveal { animation: none !important; }
  .flow__body, .flow__body p, .flow__screen, .flow__screen * { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .mock-caret, .mock-playhead { animation: none; }
  .js .reviews__track .msg { opacity: 1; transform: none; transition: none; }
  .hero__title .line > span { transform: none; transition: none; }
  .status__dot { animation: none; }
  .stage { height: auto; margin-top: 0; padding-block: var(--s-700); }
  .stage__sticky { position: static; height: auto; }
  .stage__card, .stage__card .chip { animation: none !important; }
  .morph { height: auto; padding-block: var(--s-900); }
  .morph__sticky { position: static; height: auto; padding: 0; }
  .morph__stage { margin-top: var(--s-600); }
  .morph__frame, .morph__v, .morph__label { animation: none !important; }
  .morph__labels { display: flex; }
  .word { transition: none; color: var(--text); }
  .menu__links li { transform: none; }
  .work__item:hover video { transform: none; }
  .success { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .chip { background: #1d1d1f; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --text-2: #3a3a3c; --text-3: #48484a; --line: rgba(0, 0, 0, 0.3); }
}
