/* ==========================================================================
   MSF Scales — styles
   Mobile-first. Tokens → base → primitives → header → sections → motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-raised: #111318;
  --surface: #15171c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --text: #f5f5f5;
  --text-muted: #a5a7ad;
  --text-dim: #85878d;

  /* Cobalt accent. Rule of thumb: --accent for fills, lines and marks;
     --accent-light for any small blue text (4.4:1 vs 6.2:1 on --bg). */
  --accent: #2f6bff;
  --accent-light: #5b8cff;
  --accent-dark: #1747c7;
  --accent-soft: rgba(47, 107, 255, 0.08);
  --accent-border: rgba(47, 107, 255, 0.25);

  /* Light panel (CTA) */
  --ink: #0a0a0b;
  --ink-muted: #4a4c52;

  --danger: #f08a7a;
  --success: #9fd3a8;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --container: 1200px;
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --radius: 6px;
  --radius-lg: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 68px;
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: #fff; }

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

.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;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.nowrap { white-space: nowrap; }
.accent-stop { color: var(--accent); }
/* at body-text sizes the stop uses the lighter tone to clear 4.5:1 */
.mobile-menu__note .accent-stop { color: var(--accent-light); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }

/* ---------- Type primitives ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-label::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.muted-line { color: var(--text-dim); }
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: var(--btn-h);
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.btn__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn--primary::before {
  /* deeper cobalt wipes up on hover — keeps white text at 7:1
     (white on --accent-light would drop to 3.2:1) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-dark);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out);
}
.btn--primary:hover::before { transform: scaleY(1); }
.btn--primary:hover { box-shadow: 0 10px 28px -16px rgba(47, 107, 255, 0.6), inset 0 0 0 1px rgba(91, 140, 255, 0.5); }
.btn--primary:active::before { transform: scaleY(1); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn--quiet {
  padding-inline: 0.25rem;
  color: var(--text);
}
.btn--quiet::after {
  content: "";
  position: absolute;
  left: 0.25rem; right: 0.25rem; bottom: 0.85rem;
  height: 1px;
  background: var(--line-strong);
  transition: background-color 0.3s;
}
.btn--quiet:hover::after { background: var(--accent); }

.btn--ink { background: var(--ink); color: var(--text); }
.btn--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-dark);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out);
}
.btn--ink:hover::before { transform: scaleY(1); }

.btn--sm { --btn-h: 40px; padding: 0 1rem; font-size: 0.875rem; }
.btn--lg { --btn-h: 56px; padding: 0 1.625rem; font-size: 1rem; }
.btn--xl { --btn-h: 62px; padding: 0 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}
.brand__logo { display: block; height: 26px; width: auto; }
.brand { transition: opacity 0.3s var(--ease-out); }
.brand:hover { opacity: 0.82; }
.brand--full .brand__logo { height: clamp(56px, 5vw, 64px); }
@media (min-width: 1024px) { .brand__logo { height: 32px; } }
@media (max-width: 359px) { .site-header .brand__logo { height: 22px; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-open { background: var(--bg); border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
.site-header__actions { display: flex; align-items: center; gap: 0.625rem; }
.site-nav { display: none; }
.site-header__cta-long { display: none; }
@media (max-width: 349px) { .site-header__cta { display: none; } }

.site-nav__list { display: flex; gap: clamp(1.5rem, 2.5vw, 2.25rem); }
.site-nav__list a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.2rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-nav__list a:hover { color: var(--text); }
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-nav__list a.is-active { color: var(--text); }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}
.menu-toggle__bars { position: relative; display: block; width: 18px; height: 10px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-nav { display: block; }
  .site-header__actions { justify-self: end; }
  .site-header__cta-long { display: inline; }
  .site-header__cta-short { display: none; }
  .menu-toggle { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease-out), visibility 0s; }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 100%;
  padding-top: 1rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}
.mobile-menu__list li {
  border-bottom: 1px solid var(--line);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list li { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu__list a {
  display: block;
  padding: 1.05rem 0;
  font-size: clamp(1.875rem, 9vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.mobile-menu__note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
}
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(2.25rem, 7vh, 4.5rem));
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: calc(50% + 0.5px) 0;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 72% 45%, #000 15%, transparent 75%);
}
.hero__glow {
  position: absolute;
  top: -10%;
  right: -20%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.11), rgba(47, 107, 255, 0.03) 50%, transparent 72%);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  flex: 1;
  align-content: center;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__eyebrow i { width: 4px; height: 4px; background: var(--accent); }
@media (max-width: 420px) {
  .hero__eyebrow { font-size: 0.625rem; letter-spacing: 0.1em; gap: 0.5rem; }
}
.hero__title {
  max-width: 10.5ch;
  font-size: clamp(2.875rem, 1.2rem + 6.6vw, 6.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.058em;
}
.hero__lede {
  max-width: 38ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
@media (max-width: 539px) {
  .hero__actions { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .hero__actions .btn--primary { width: 100%; }
  .hero__actions .btn--quiet { align-self: center; color: var(--text-muted); }
}

/* Hero visual — measured growth line */
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 480;
  margin-inline: auto;
}
@media (max-width: 1023px) {
  .hero__visual { width: calc(100% - 1.25rem); margin: 0; }
}
.stair { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stair__base { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stair__ticks { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.stair__risers line { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.stair__trend {
  stroke: var(--accent-light);
  stroke-opacity: 0.4;
  stroke-width: 1;
  stroke-dasharray: 1 7;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.stair__line { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stair__signal {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 0.035 0.965;
  stroke-dashoffset: 0.035;
  stroke-linecap: square;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(91, 140, 255, 0.55));
}
.stair__fill, .stair__end { opacity: 0; }
.stair__nodes rect { fill: var(--bg); stroke: var(--accent); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0; }
.stair__end { fill: var(--accent-light); }
.stair__labels li {
  position: absolute;
  left: calc(var(--x) / 640 * 100%);
  top: calc(var(--y) / 480 * 100%);
  display: flex;
  gap: 0.5rem;
  transform: translateY(calc(-100% - 0.6rem));
  font-size: clamp(0.625rem, 0.56rem + 0.25vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  opacity: 0;
}
.stair__labels b { font-weight: 500; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.stair__labels li:last-child { color: var(--accent-light); }
.stair__labels li:last-child b { color: var(--accent-light); }
@media (max-width: 539px) {
  .stair__labels b { display: none; }
}

.is-loaded .stair__line { animation: draw 2.1s var(--ease-in-out) 0.35s forwards; }
.is-loaded .stair__fill { animation: fade 1.4s var(--ease-out) 1.5s forwards; }
.is-loaded .stair__trend { animation: fade 1.2s var(--ease-out) 2.1s forwards; }
.is-loaded .stair__nodes rect { animation: fade 0.4s var(--ease-out) forwards; }
.is-loaded .stair__nodes rect:nth-child(1) { animation-delay: 0.75s; }
.is-loaded .stair__nodes rect:nth-child(2) { animation-delay: 1.1s; }
.is-loaded .stair__nodes rect:nth-child(3) { animation-delay: 1.5s; }
.is-loaded .stair__nodes rect:nth-child(4) { animation-delay: 1.9s; }
.is-loaded .stair__end { animation: fade 0.5s var(--ease-out) 2.35s forwards; }
.is-loaded .stair__labels li { animation: fade 0.7s var(--ease-out) forwards; animation-delay: calc(0.5s + var(--x) / 128 * 0.38s); }
.is-loaded .stair__signal { animation: fade 0.3s linear 2.6s forwards, signal 5s linear 2.6s infinite; }
.hero.is-offscreen .stair__signal { animation-play-state: paused; visibility: hidden; }

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: end;
    gap: clamp(2rem, 4vw, 4rem);
  }
  .hero__visual { align-self: end; margin: 0 0 0.5rem; }
}

/* ==========================================================================
   POSITIONING
   ========================================================================== */
.positioning { padding-block: clamp(5.5rem, 12vw, 10rem); border-top: 1px solid var(--line); }
.positioning__inner { max-width: 61.5rem; margin-inline: auto; }
.positioning__title {
  font-size: clamp(2.375rem, 1.1rem + 5.3vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.positioning__title .muted-line { display: block; }

/* ==========================================================================
   SERVICES — numbered editorial rows
   ========================================================================== */
.services { background: linear-gradient(180deg, var(--bg), var(--bg-raised)); }
.services-list { position: relative; z-index: 0; border-top: 1px solid var(--line-strong); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  grid-template-areas: "num head" ". body";
  column-gap: 0.75rem;
  row-gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.06), transparent 75%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.service::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.service__num {
  grid-area: num;
  padding-top: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent-light);
}
.service__head { grid-area: head; }
.service__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.042em;
  transition: transform 0.6s var(--ease-out);
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.service__tags span::before { content: "+ "; color: var(--accent-light); }
.service__body { grid-area: body; display: grid; gap: 1rem; }
.service__body dt {
  margin-bottom: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.service__problem dd {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}
.service__solution dd { max-width: 46ch; color: var(--text-muted); line-height: 1.55; }
.service__outcome { padding-top: 0.875rem; border-top: 1px solid var(--line); }
.service__outcome dt { color: var(--accent-light); }
.service__outcome dd { font-weight: 500; color: var(--text); }
@media (min-width: 1200px) {
  .service__body { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .service__problem { grid-column: 1 / -1; }
}

@media (hover: hover) {
  .service:hover::before { opacity: 1; }
  .service:hover::after { transform: scaleX(1); }
  .service:hover .service__title { transform: translateX(0.5rem); }
}
@media (min-width: 900px) {
  .service {
    grid-template-columns: 2.5rem minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "num head body";
    column-gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: start;
  }
  .service__num { padding-top: 0.9rem; }
}

/* ==========================================================================
   BUILT TO SCALE — the engine
   ========================================================================== */
.scale { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scale__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 90% 100%, rgba(47, 107, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(255, 255, 255, 0.025), transparent 70%);
}
.scale .container { position: relative; }
.scale__title {
  font-size: clamp(3.5rem, 1rem + 11vw, 11rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.062em;
}
.scale__copy {
  display: grid;
  gap: 0.5rem;
  max-width: 34ch;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4375rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}
.scale__copy-strong { color: var(--text); }
@media (min-width: 1024px) {
  .scale__copy { margin-left: auto; max-width: 32ch; }
}

.engine {
  --rail-x: 0.3125rem;
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.engine__steps {
  position: relative;
  border-top: 1px solid var(--line-strong);
}
.engine__steps::before,
.engine__steps::after {
  /* rail + accent progress */
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line-strong);
}
.engine__steps::after {
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
}
.engine__step {
  --size: calc(1.5rem + var(--i) * 0.3rem);
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  grid-template-areas: ". num" ". name" ". text" ". out";
  column-gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.engine__node {
  position: absolute;
  left: calc(var(--rail-x) - 4.5px);
  top: 1.85rem;
  z-index: 1;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.engine__num {
  grid-area: num;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  transition: color 0.5s var(--ease-out);
}
.engine__name {
  grid-area: name;
  margin-top: 0.25rem;
  font-size: var(--size);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.24);
  transition: color 0.8s var(--ease-out);
}
.engine__text {
  grid-area: text;
  max-width: 34ch;
  margin-top: 0.625rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.engine__out {
  grid-area: out;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.engine__out::before { content: "→"; letter-spacing: 0; }
.engine__text, .engine__out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s var(--ease-out) 0.1s, transform 0.7s var(--ease-out) 0.1s;
}
.engine__step.is-in .engine__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.16); }
.engine__step.is-in .engine__num { color: var(--accent-light); }
.engine__step.is-in .engine__name { color: var(--text); }
.engine__step.is-in .engine__text,
.engine__step.is-in .engine__out { opacity: 1; transform: none; }
.engine__step--final.is-in .engine__name { color: var(--accent-light); }
.engine__step--final .accent-stop { color: inherit; }

.engine__return { display: none; }
.engine__header { display: none; }
/* chevron on the rail between stages: each one feeds the next */
.engine__step + .engine__step::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - 3px);
  top: -4px;
  z-index: 1;
  width: 7px; height: 7px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  background: var(--bg);
  transform: rotate(45deg);
}

.engine__loop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.875rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.engine__loop strong { display: block; margin-bottom: 0.15rem; color: var(--accent-light); }
.engine__loop-icon {
  width: 22px; height: 22px;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.5;
}
.engine.is-looping .engine__loop-icon { animation: spin 1.2s var(--ease-in-out) 1; }

@media (min-width: 600px) {
  .engine__step { --size: calc(2.25rem + var(--i) * 0.6rem); }
}
@media (min-width: 900px) {
  .engine { --rail-x: 2.75rem; }
  .engine__step {
    --size: calc(2.75rem + var(--i) * 1.1rem);
    grid-template-columns: 5.5rem 3rem minmax(0, 1fr) minmax(0, 17rem) 10rem;
    grid-template-areas: ". num name text out";
    align-items: end;
    padding: 1.75rem 0;
  }
  .engine__node { top: auto; bottom: calc(1.75rem + 0.45rem); }
  .engine__num { padding-bottom: 0.35rem; }
  .engine__name { margin-top: 0; }
  .engine__text { margin: 0; padding-bottom: 0.25rem; }
  .engine__out { margin: 0; padding-bottom: 0.35rem; justify-self: end; }

  /* the return path: Scale feeds back into Strategy */
  .engine__return {
    display: block;
    position: absolute;
    left: 0.75rem;
    top: calc(2.6rem + 2.2rem);
    bottom: 2.6rem;
    width: calc(var(--rail-x) - 0.75rem);
    border: 1px dashed rgba(47, 107, 255, 0.5);
    border-right: 0;
    pointer-events: none;
  }
  .engine__return em {
    position: absolute;
    left: -0.6rem;
    top: 50%;
    padding: 0.4rem 0;
    background: var(--bg);
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-light);
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
  }
  .engine__header {
    display: grid;
    grid-template-columns: 5.5rem 3rem minmax(0, 1fr) minmax(0, 17rem) 10rem;
    column-gap: 0.75rem;
    padding-bottom: 0.875rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .engine__header span:first-child { grid-column: 2 / 4; }
  .engine__header span:last-child { text-align: right; color: var(--accent-light); }
  .engine__return i {
    position: absolute;
    right: -1px;
    top: -4.5px;
    width: 0; height: 0;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
    border-left: 7px solid var(--accent);
  }
  .engine__loop {
    margin-left: 0.75rem;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    padding: 1rem 1.5rem 1rem 1.25rem;
  }
  .engine__loop strong { display: inline; margin: 0 0.5rem 0 0; }
}

/* ==========================================================================
   WHY — guessing vs performance
   ========================================================================== */
.why .section-title .muted-line { display: block; }
.contrast__cols { display: none; }
.contrast__list { border-top: 1px solid var(--line-strong); }
.contrast__row {
  display: grid;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.contrast__from {
  position: relative;
  max-width: 30ch;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-decoration-thickness: 1px;
}
.contrast__from::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.contrast__to h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.contrast__to p { max-width: 46ch; margin-top: 0.625rem; color: var(--text-muted); }

@media (min-width: 900px) {
  .contrast__cols {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding-bottom: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .contrast__cols span:last-child { color: var(--accent-light); }
  .contrast__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: baseline;
  }
  .contrast__to { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: baseline; }
  .contrast__to p { margin-top: 0; }
}

/* ==========================================================================
   WORK — case study
   ========================================================================== */
.work { background: var(--bg-raised); border-top: 1px solid var(--line); }
.case-list { display: grid; gap: clamp(4rem, 8vw, 6rem); }
.case__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.case__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.case__meta li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case__meta li:first-child { border-color: var(--accent-border); color: var(--accent-light); }
.case__title {
  font-size: clamp(2.75rem, 1.5rem + 5.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.case__location { margin-top: 0.75rem; color: var(--text-muted); }
.case__open { justify-self: start; }
@media (min-width: 900px) {
  .case__head { grid-template-columns: 1fr auto; align-items: end; }
}

.case__stage {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4.5rem) clamp(1rem, 5vw, 4.5rem) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(47, 107, 255, 0.13), transparent 70%),
    linear-gradient(180deg, #18181b, #0f0f11);
  overflow: hidden;
}
.case__stage::before {
  /* faint construction grid behind the mockups */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.case__desktop {
  position: relative;
  z-index: 1;
  width: 86%;
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.browser {
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #0d0d0e;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #141416;
}
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.browser__bar span { margin-left: 10px; font-size: 0.625rem; letter-spacing: 0.04em; color: var(--text-dim); }
.browser img { width: 100%; aspect-ratio: 1440 / 838; object-fit: cover; object-position: top; }

.case__mobile {
  position: absolute;
  z-index: 2;
  right: clamp(0.75rem, 4vw, 4rem);
  bottom: clamp(-2.5rem, -3vw, -1rem);
  width: 25%;
  max-width: 230px;
  min-width: 96px;
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.phone {
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0b0b0c;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; aspect-ratio: 9 / 17.5; object-fit: cover; object-position: top; border-radius: 17px; }

.case__details {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.case__story { display: grid; gap: 1.5rem; }
.case__story div { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.case__story dt {
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.case__story dd { color: var(--text-muted); line-height: 1.55; }
.case__deliverables { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.case__deliverables h4 {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.case__deliverables ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case__deliverables li {
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: var(--text);
}
@media (min-width: 720px) {
  .case__story { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
}
@media (min-width: 1024px) {
  .case__details { grid-template-columns: 3fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
  .case__deliverables ul { flex-direction: column; align-items: flex-start; }
}

/* Case dialog */
.case-dialog {
  width: min(1100px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  color: var(--text);
  overscroll-behavior: contain;
}
.case-dialog::backdrop { background: rgba(5, 5, 6, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.case-dialog[open] { animation: dialogIn 0.45s var(--ease-out); }
.case-dialog__inner { padding: clamp(1.25rem, 4vw, 2.5rem); }
.case-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.case-dialog__eyebrow { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.case-dialog__head h3 { margin-top: 0.5rem; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.case-dialog__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.case-dialog__close:hover { border-color: var(--accent); background: var(--accent-soft); }
.case-dialog__close svg { width: 16px; height: 16px; }
.case-dialog__text { max-width: 60ch; margin: 1.25rem 0 2rem; color: var(--text-muted); }
.case-dialog__shots { display: grid; gap: 1rem; align-items: start; }
.case-dialog__shots img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.case-dialog__shots img:last-child { max-width: 280px; margin-inline: auto; }
@media (min-width: 720px) {
  .case-dialog__shots { grid-template-columns: 3fr 1fr; }
  .case-dialog__shots img:last-child { max-width: none; }
}

/* ==========================================================================
   ABOUT — one statement, set large
   ========================================================================== */
.about { border-top: 1px solid var(--line); }
.about__title {
  max-width: 22ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.about__statement figcaption {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-dim);
}
.about__statement blockquote p {
  max-width: 19ch;
  font-size: clamp(2.375rem, 1.1rem + 5.2vw, 6.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.about__personal {
  max-width: 40ch;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid var(--accent);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

/* ==========================================================================
   CTA — inverted light panel
   ========================================================================== */
.cta {
  position: relative;
  padding-block: clamp(5rem, 12vw, 10rem);
  background: var(--text);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.cta ::selection { background: var(--accent); color: #fff; }
.cta__art {
  position: absolute;
  right: -1%;
  bottom: -8%;
  z-index: -1;
  width: min(52vw, 720px);
  height: auto;
  color: rgba(47, 107, 255, 0.14);
}
@media (max-width: 899px) { .cta__art { display: none; } }
.cta .section-label { color: var(--ink-muted); }
.cta .section-label::before { background: var(--accent); }
.cta .accent-stop { color: var(--accent); }
/* at body-text sizes the stop uses the lighter tone to clear 4.5:1 */
.mobile-menu__note .accent-stop { color: var(--accent-light); }
.cta__title {
  font-size: clamp(3.25rem, 1rem + 10vw, 10.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.062em;
}
.cta__row {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.cta__text {
  max-width: 36ch;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
}
.cta__action { display: grid; gap: 1rem; justify-items: start; }
.cta__note { max-width: 34ch; font-size: 0.875rem; color: var(--ink-muted); }
.cta :focus-visible { outline-color: var(--ink); }
@media (max-width: 539px) {
  .cta__action { justify-items: stretch; }
  .cta .btn--xl { width: 100%; padding-inline: 1.25rem; font-size: 1rem; }
}
@media (min-width: 900px) {
  .cta__row { grid-template-columns: 1fr auto; align-items: end; }
  .cta__action { justify-items: end; text-align: right; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--bg); }
.contact__inner { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.contact__lede { max-width: 36ch; margin-top: 1.25rem; color: var(--text-muted); font-size: 1.0625rem; }
.contact__steps { display: grid; margin-top: 2rem; border-top: 1px solid var(--line); }
@media (max-width: 639px) { .contact__steps { display: none; } }
.contact__steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.contact__steps span { font-size: 0.75rem; font-weight: 500; color: var(--accent-light); padding-top: 0.2rem; font-variant-numeric: tabular-nums; }

.form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.field { display: grid; gap: 0.5rem; min-width: 0; }
.field label,
.field legend {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.field legend { padding: 0; margin-bottom: 0.75rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 1rem; /* 16px stops iOS zoom */
  line-height: 1.4;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: 0.8125rem; color: var(--text-dim); }
.field__error { font-size: 0.8125rem; color: var(--danger); }
.field__error:empty { display: none; }

/* service picker — chips instead of a dropdown */
.choice__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}
.choice label:hover span { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.choice[aria-invalid="true"] label span { border-color: rgba(240, 138, 122, 0.5); }

.form__foot { display: grid; gap: 0.875rem; margin-top: 0.25rem; }
.form__submit { width: 100%; }
.form__fine { font-size: 0.8125rem; color: var(--text-dim); }
.form__status { font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__status.is-info { color: var(--accent-light); }
.form.is-sending .form__submit { opacity: 0.7; pointer-events: none; }
.form.is-sent > :not(.form__done) { display: none; }
.form__done {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 2rem) 0;
  outline: none;
  animation: dialogIn 0.5s var(--ease-out);
}
.form__done[hidden] { display: none; }
.form__done-mark { width: auto; height: 32px; margin-bottom: 0.5rem; }
.form__done h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.form__done p { max-width: 40ch; color: var(--text-muted); }
@media (min-width: 640px) {
  .form__foot { grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; }
  .form__submit { width: auto; }
}
@media (min-width: 1024px) {
  .contact__inner { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .contact__info { position: sticky; top: calc(var(--header-h) + 3rem); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding-top: clamp(3.5rem, 8vw, 5.5rem); border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
.site-footer__brand { grid-column: 1 / -1; display: grid; justify-items: start; align-content: start; gap: 0.875rem; }
.site-footer__heading {
  margin-bottom: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.site-footer__col ul { display: grid; gap: 0.125rem; }
.site-footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 40px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.3s;
}
.site-footer__col a:hover { color: var(--text); }
.site-footer__col--social { grid-column: 1 / -1; }
.site-footer__social { display: flex !important; flex-wrap: wrap; gap: 0 1.5rem !important; }
.site-footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__social svg .fill { fill: currentColor; stroke: none; }
.site-footer__wordmark {
  margin: clamp(3rem, 8vw, 5rem) -0.04em 0;
  font-size: clamp(3rem, 14vw, 12.4rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.01) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.site-footer__bottom ul { display: flex; gap: 1.5rem; }
.site-footer__bottom a:hover { color: var(--text); }
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(10rem, 1fr)); }
  .site-footer__brand, .site-footer__col--social { grid-column: auto; }
  .site-footer__social { display: grid !important; gap: 0 !important; }
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 6rem; }
.legal .container { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.5rem, 2rem + 3vw, 4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 1rem; }
.legal a:not([class]) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; margin-top: 3rem; }
.site-footer--legal { padding-top: 0; }
.site-footer--legal .site-footer__bottom { margin-top: 0; border-top: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.25rem; }
.link-arrow:hover { border-color: var(--accent); }

/* ==========================================================================
   MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .engine__name { color: var(--text); }
.no-js .engine__text, .no-js .engine__out { opacity: 1; transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes signal { from { stroke-dashoffset: 0.035; } to { stroke-dashoffset: -0.965; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .stair__line { stroke-dashoffset: 0; }
  .stair__fill, .stair__end, .stair__trend, .stair__nodes rect, .stair__labels li { opacity: 1 !important; }
  .stair__signal { display: none; }
  .engine__text, .engine__out { opacity: 1 !important; transform: none !important; }
  .case__desktop, .case__mobile { transform: none !important; }
}
