/* ============================================================
   The PM Code Studio, studio.thepmcode.com
   Built from the Claude Design handoff "Studio v9". Every pinned scene is a
   pure function of scroll progress: studio.js writes numbers as CSS custom
   properties on the scene root, and this file does all the interpolation
   with calc(). Nothing inside a pinned scene runs on a timer.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --blue: #2563EB;
  --blue-dk: #1D4ED8;
  --blue-lt: #6C9CF5;
  --ink: #0A0A0A;
  --ink-2: #33343A;
  --mute: #6B6B73;
  --faint: #9DA0A8;
  --paper: #FAFAFA;
  --white: #FFFFFF;
  --warm: #F4F4F6;
  --line: #E6E6E9;
  --line-2: #F0F0F2;
  --card: #111113;
  --red: #DC2626;
  --green: #4ADE80;
  --d-ink: #F6F7F9;
  --d-mute: rgba(255, 255, 255, .62);
  --d-faint: rgba(255, 255, 255, .38);
  --d-line: rgba(255, 255, 255, .14);
  --d-line-2: rgba(255, 255, 255, .08);

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 2px;

  --max: 1320px;
  --g: clamp(20px, 4vw, 64px);
  --sec: clamp(72px, 8vw, 120px);
  --nav: 64px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r);
  background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

h2 {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.dark { background: var(--ink); color: var(--d-ink); }
.dark .mono { color: var(--d-mute); }
.dark a { color: var(--d-ink); }
.dark a:hover { color: var(--blue-lt); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px;
  border-radius: var(--r);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .3s, border-color .2s, transform .3s var(--ease);
}
.btn--lg { height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--blue:hover {
  background: var(--blue-dk); color: #fff; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px -8px rgba(37, 99, 235, .7);
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
.btn--outline { border: 1px solid var(--d-line); color: var(--d-ink); }
.btn--outline:hover { border-color: var(--d-ink); background: rgba(255, 255, 255, .06); color: var(--d-ink); }

/* ---- Section header (eyebrow index, heading, intro) ---- */
.sec-idx { display: inline-flex; align-items: center; gap: 14px; }
.sec-idx em { font-style: normal; color: var(--ink); }
.dark .sec-idx em, .contact .sec-idx em { color: var(--d-ink); }

.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 24px 48px; margin-bottom: clamp(36px, 4vw, 56px);
}
.sec-head > div { display: flex; flex-direction: column; gap: 20px; flex: 1 1 360px; min-width: 0; }
.sec-head h2 { max-width: 14ch; }
.sec-head > p { flex: 0 1 34ch; max-width: 36ch; font-size: 19px; color: var(--ink-2); text-wrap: pretty; }
.dark .sec-head > p { color: var(--d-mute); }
.sec-head h2.sec-head__two { max-width: none; }
.sec-head__two span { color: var(--d-faint); }

/* ---- Top nav ---- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(10, 10, 10, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--d-line-2);
}
.topnav__in {
  display: flex; align-items: center; gap: 36px;
  max-width: var(--max); height: var(--nav); margin: 0 auto; padding: 0 var(--g);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  margin-left: -10px; padding: 8px 10px; border-radius: 6px;
  color: var(--d-ink); transition: background .2s;
}
.brand:hover, .brand[aria-expanded="true"] { background: rgba(255, 255, 255, .07); color: var(--d-ink); }
.brand img { height: 24px; width: auto; }
.brand span {
  padding-left: 14px; border-left: 1px solid var(--d-line);
  font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 24px; color: var(--d-ink);
}
.brand__caret {
  width: 16px; height: 16px; margin-left: -4px;
  fill: none; stroke: var(--blue-lt); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.brand[aria-expanded="true"] .brand__caret { transform: rotate(180deg); }

/* Brand menu: Studio (here) or the main PM Code site. */
.brand-menu { position: relative; }
.brand-pop {
  position: absolute; top: calc(100% + 10px); left: -10px; z-index: 50;
  width: min(350px, calc(100vw - 2 * var(--g)));
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  border: 1px solid var(--d-line); border-radius: 8px;
  background: var(--card);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  animation: pop .25s var(--ease) both;
}
.brand-pop a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 6px; color: var(--d-ink); }
.brand-pop a:hover, .brand-pop a:focus-visible { background: rgba(255, 255, 255, .07); color: var(--d-ink); }
.brand-pop b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.brand-pop small { font-size: 13px; color: var(--d-mute); }
.brand-pop a.is-current { position: relative; background: rgba(108, 156, 245, .1); }
.brand-pop a.is-current::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--blue-lt); }
.brand-pop a.is-current:hover { background: rgba(108, 156, 245, .16); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.topnav__links { display: flex; gap: 32px; margin-left: auto; }
.topnav__links a { font-size: 13.5px; font-weight: 500; color: var(--d-mute); }
.topnav__links a:hover { color: var(--d-ink); }
.topnav .btn { height: 36px; padding: 0 16px; font-size: 13.5px; }

/* ---- Pinned scenes ---- */
.pin { position: relative; height: var(--len, 300vh); }
.pin__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* A stage is authored at data-w x data-h and scaled to fit by studio.js. */
.fit { position: relative; }
.fit > .fit__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; perspective: 3000px; }

.scene {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  height: 100%; padding-top: var(--nav);
}
.pin .scene {
  opacity: var(--so, 1);
  transform: translateY(calc((1 - var(--so, 1)) * 90px)) scale(calc(.96 + var(--so, 1) * .04));
}
.stage { height: min(calc(100svh - var(--nav) - 80px), 880px); }

/* Chapter card: the full-screen title each service opens with. */
.chapter {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: var(--nav) var(--g) 0;
  text-align: center; pointer-events: none;
  opacity: calc(1 - var(--ci, 0));
  transform: translateY(calc(var(--ci, 0) * -56px)) scale(calc(1 - var(--ci, 0) * .08));
  filter: blur(calc(var(--ci, 0) * 12px));
}
.chapter h2 { max-width: 11ch; font-size: clamp(60px, 9.4vw, 160px); letter-spacing: -.06em; line-height: .9; }

/* Caption stepper: four captions share one grid cell, one is active. */
.captions { display: flex; flex-direction: column; gap: 28px; }
.captions__title {
  max-width: 16ch; margin-top: -12px;
  font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  text-wrap: balance;
}
.captions__note { color: var(--faint); }
.dark .captions__note { color: var(--d-faint); }

.phase-bars { display: flex; gap: 6px; }
.phase-bars span { position: relative; flex: 1; max-width: 56px; height: 3px; overflow: hidden; background: var(--line); }
.phase-bars span::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); transform: scaleX(var(--q, 0)); transform-origin: left;
}
.dark .phase-bars span { background: var(--d-line); }
.dark .phase-bars span::after { background: var(--d-ink); }

.caption-stack { display: grid; }
.caption-stack > div {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.caption-stack > div.is-active { opacity: 1; transform: none; pointer-events: auto; }
.caption-stack h3 { font-size: clamp(44px, 4.8vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.caption-stack p { max-width: 32ch; margin-top: 18px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.dark .caption-stack p { color: var(--d-mute); }

/* ---- Service index pill (fixed, shown during the three services) ---- */
.svc-index {
  position: fixed; left: 50%; bottom: 20px; z-index: 35;
  display: flex; gap: 4px; padding: 5px;
  border: 1px solid var(--d-line); border-radius: 999px;
  background: rgba(10, 10, 10, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity .4s, transform .6s var(--ease), visibility 0s .6s;
}
.svc-index.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity .4s, transform .6s var(--ease), visibility 0s;
}
.svc-index a {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; overflow: hidden;
  border-radius: 999px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--d-mute);
  transition: background .3s, color .3s;
}
.svc-index a:hover { color: var(--d-ink); }
.svc-index a em { font-family: var(--mono); font-size: 10.5px; font-style: normal; color: var(--d-faint); }
.svc-index a.is-active { background: var(--d-ink); color: var(--ink); }
.svc-index a.is-active em { color: var(--mute); }
.svc-index a i {
  position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--blue); opacity: 0;
  transform: scaleX(var(--q, 0)); transform-origin: left;
}
.svc-index a.is-active i { opacity: 1; }

/* ============================================================
   1. Hero
   ============================================================ */
.hero { background: var(--ink); color: var(--d-ink); }
.hero .pin__sticky { display: flex; flex-direction: column; align-items: center; }
.hero__text {
  position: relative; z-index: 2;
  padding: calc(var(--nav) + clamp(28px, 5vh, 64px)) var(--g) 0;
  text-align: center;
  opacity: calc(1 - var(--p, 0) * 4);
  transform: translateY(calc(var(--p, 0) * -70px));
}
.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--d-line); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--d-mute);
  animation: fade 1s var(--ease) both;
}
.hero__status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero__status i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: ping 2s var(--ease) infinite;
}
.hero h1 { margin-top: 28px; font-size: clamp(56px, 9.6vw, 150px); font-weight: 800; letter-spacing: -.058em; line-height: .9; }
.hero__word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.hero__word > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero__word:nth-child(2) > span { animation-delay: .1s; }
.hero__word:nth-child(3) > span { animation-delay: .2s; color: var(--blue-lt); }
.hero__sub {
  max-width: 40ch; margin: 26px auto 0;
  font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; line-height: 1.4; color: var(--d-mute);
  text-wrap: balance; animation: fade 1s .45s var(--ease) both;
}
.hero__sub b { font-weight: 600; color: var(--d-ink); }
.hero__ctas {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px;
  animation: fade 1s .55s var(--ease) both;
}
/* --y0 (set by studio.js) parks the mock just below the CTAs; scrolling
   lifts it up, untilts it and scales it to full size. --mx and --my are the
   pointer position (-1..1), a few degrees of tilt that fade out as it lifts. */
.hero__mock {
  position: absolute; left: 50%; top: calc(var(--nav) + 16px);
  width: min(92vw, 1200px, calc((100svh - var(--nav) - 64px) * 1.6));
  aspect-ratio: 1200 / 750;
  transform-origin: 50% 0;
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--p, 0)) * var(--y0, 60vh)))
    perspective(2400px)
    rotateX(calc((1 - var(--p, 0)) * 34deg))
    rotateX(calc(var(--my, 0) * -3deg * (1 - var(--p, 0))))
    rotateY(calc(var(--mx, 0) * 4deg * (1 - var(--p, 0))))
    scale(calc(.8 + var(--p, 0) * .2));
  animation: fade 1.4s .7s var(--ease) both;
}
.hero__caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; opacity: var(--pc, 0); }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* ============================================================
   2. Statement
   ============================================================ */
.statement { padding: var(--sec) 0; background: var(--white); }
.statement p { max-width: 22ch; font-size: clamp(30px, 3.8vw, 54px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; text-wrap: pretty; }
.statement__word { color: var(--line); transition: color .4s; }
.statement__word.is-on { color: var(--ink); }
.statement__word.is-on.is-hl { color: var(--blue); }

/* ============================================================
   3. Service 01, Zero to One (one phone)
   ============================================================ */
.svc--z1 { background: var(--warm); }
.z1 { position: absolute; inset: 0; }

.phone {
  position: absolute; left: 40px; top: 14px; width: 300px; height: 630px;
  perspective: 1600px; transform: scale(1.22); transform-origin: 0 0;
}
.phone__frame {
  position: absolute; inset: 0; padding: 9px; border-radius: 46px; background: var(--ink);
  box-shadow: 0 60px 100px -50px rgba(10, 10, 10, .55);
  transform:
    rotateY(calc((1 - var(--d, 0)) * -18deg))
    rotateX(calc((1 - var(--d, 0)) * 7deg))
    translateY(calc(var(--l, 0) * -6px));
}
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: #fff; }
.phone__screen::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 14px 14px;
  opacity: calc(1 - var(--d, 0));
}
.phone__status {
  position: absolute; top: 16px; left: 28px; right: 28px; z-index: 2;
  display: flex; justify-content: space-between; font-size: 12px; font-weight: 700;
  opacity: calc(var(--d, 0) * (1 - var(--l, 0)));
}
.phone__notif {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3;
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  border-radius: 18px; background: rgba(20, 20, 22, .94); color: #fff; font-size: 12.5px;
  transform: translateY(calc((1 - var(--l, 0)) * -140%));
}
.phone__notif b { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--d-mute); }

.app { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 52px 20px 22px; }
.app--onboard { transform: translateX(calc(var(--sl, 0) * -100%)); }
.app--dash { transform: translateX(calc((1 - var(--sl, 0)) * 100%)); }
.app h5 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.app--dash h5 { margin-top: -8px; }
.app-lede { margin-top: -6px; font-size: 14px; color: var(--mute); }

/* Each element appears as a sketch box, then its designed version replaces
   it. --n staggers them: element n starts once s (or d) passes n / 10. */
.el {
  position: relative;
  --se: clamp(0, calc(var(--s, 0) * 10 - var(--n, 0)), 1);
  --de: clamp(0, calc(var(--d, 0) * 10 - var(--n, 0)), 1);
}
.el__sketch {
  position: absolute; inset: -2px;
  border: 1.5px dashed var(--ink-2); border-radius: 8px;
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(10, 10, 10, .06) 6px 7px);
  opacity: calc(var(--se) * (1 - var(--de)));
  transform: scale(calc(.9 + var(--se) * .1));
}
.el__design { opacity: var(--de); }

.app-step { display: flex; flex-direction: column; gap: 8px; }
.app-step small { font-size: 11.5px; font-weight: 600; color: var(--mute); }
.app-step i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); }
.app-step b { display: block; width: 50%; height: 100%; border-radius: 2px; background: var(--ink); }

.app-option .el__design {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px;
}
.app-option .el__design > i { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--warm); }
.app-option b { display: block; font-size: 14.5px; font-weight: 700; }
.app-option small { font-size: 12px; color: var(--mute); }
.app-option--picked .el__design {
  border-color: color-mix(in oklab, var(--line), var(--ink) calc(var(--sel, 0) * 100%));
  box-shadow: inset 0 0 0 calc(var(--sel, 0) * 1px) var(--ink);
}
.app-option--picked .el__design > i { background: color-mix(in oklab, var(--warm), var(--blue) calc(var(--sel, 0) * 100%)); }

.app-continue { margin-top: auto; }
.app-continue .el__design {
  position: relative; display: grid; place-items: center; height: 52px;
  border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
  transform: scale(calc(1 - var(--t2, 0) * .04));
}

.tap {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border: 2px solid var(--blue); border-radius: 50%; background: rgba(37, 99, 235, .22);
  pointer-events: none;
}
.tap--option { opacity: var(--t1, 0); transform: scale(calc(.6 + var(--t1, 0) * .5)); }
.tap--continue { opacity: var(--t2, 0); transform: scale(calc(.6 + var(--t2, 0) * .5)); }

.app-day { font-size: 12px; font-weight: 600; color: var(--mute); }
.app-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.app-stats small { font-size: 11px; color: var(--mute); }
.app-stats b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.app-chart { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.app-chart small { font-size: 11px; color: var(--mute); }
.app-chart > div { display: flex; align-items: flex-end; gap: 7px; height: 96px; }
.app-chart i { flex: 1; height: calc(var(--h) * var(--ch, 0)); border-radius: 3px 3px 0 0; background: var(--ink); }
.app-chart i:nth-child(6) { background: var(--blue); }
.app-rows { display: flex; flex-direction: column; }
.app-rows div { display: flex; justify-content: space-between; padding: 10px 2px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.app-rows em { font-style: normal; font-weight: 500; color: var(--mute); }

/* Right column: spec pills, then the build log, then the shipped metric. */
.z1-specs { position: absolute; left: 520px; top: 0; opacity: calc(var(--d, 0) * (1 - var(--wo, 0))); }
.z1-specs span {
  position: absolute; left: 0; padding: 10px 18px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 500 17px var(--mono); color: var(--ink-2);
}
.z1-specs span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 90px; height: 1px; background: var(--blue); }
.z1-specs span::after { content: ""; position: absolute; left: -96px; top: calc(50% - 3.5px); width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

.z1-log {
  position: absolute; left: 500px; top: 250px; width: 400px;
  display: flex; flex-direction: column; gap: 24px; padding: 34px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  opacity: calc(var(--wo, 0) * (1 - var(--l, 0)));
  transform: translateX(calc((1 - var(--wo, 0)) * -24px)) translateY(calc(var(--l, 0) * -16px));
}
.z1-log .mono { font-size: 14px; }
.z1-log ul { display: flex; flex-direction: column; gap: 18px; list-style: none; }
.z1-log li { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; color: var(--faint); transition: color .3s; }
.z1-log li i {
  position: relative; flex: none; width: 20px; height: 20px;
  border: 1.5px solid var(--line); border-radius: 50%;
  transition: background .3s, border-color .3s;
}
.z1-log li i::after {
  content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.z1-log li.is-done { color: var(--ink); }
.z1-log li.is-done i { background: var(--ink); border-color: var(--ink); }
.z1-log li.is-done i::after { transform: rotate(45deg) scale(1); }

.z1-metric {
  position: absolute; left: 500px; top: 270px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: var(--l, 0); transform: translateY(calc((1 - var(--l, 0)) * 16px));
}
.z1-metric .mono { font-size: 15px; }
.z1-metric b { display: flex; align-items: baseline; gap: 16px; font-size: 128px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.z1-metric s { font-size: 46px; font-weight: 700; color: var(--faint); }

/* ============================================================
   4. Service 02, Websites (exploded site)
   --x explode 0..1, --w red outline pulse, per layer --f fix 0..1.
   ============================================================ */
.site {
  position: absolute; inset: 0; color: var(--ink); transform-style: preserve-3d;
  transform:
    translateY(calc(var(--x, 0) * 120px))
    scale(calc(1 - var(--x, 0) * .3))
    rotateX(calc(var(--x, 0) * 54deg))
    rotateZ(calc(var(--x, 0) * -32deg));
}
.layer {
  position: absolute; left: 0; right: 0; top: 44px; bottom: 0;
  transform-style: preserve-3d; transform: translateZ(calc(var(--x, 0) * var(--z, 0px)));
}
.layer:not(.layer--base)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 6px;
  border: 2px solid rgb(108 156 245 / calc(var(--x, 0) * 80%));
  background: rgb(108 156 245 / calc(var(--x, 0) * 6%));
}
.layer--base { top: 0; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 60px 140px -50px rgba(37, 99, 235, .55); }

.site-chrome {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 18px; background: var(--warm); border-bottom: 1px solid var(--line);
}
.site-chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.site-chrome span {
  display: flex; align-items: center; width: 340px; height: 26px; margin-left: 16px; padding: 0 12px;
  border-radius: 6px; background: #fff; font: 500 12.5px var(--mono); color: var(--mute);
}
.site-bg { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; }
.site-bg--before { background: #F2F0EA; opacity: calc(1 - var(--f, 0)); }
.site-bg--after { background: #fff; opacity: var(--f, 0); }

.before { opacity: calc(1 - var(--f, 0)); }
.after { opacity: var(--f, 0); transform: translateY(calc((1 - var(--f, 0)) * 14px)); }
.flawed { outline: 3px dashed rgb(220 38 38 / calc(var(--w, 0) * 100%)); outline-offset: 6px; }

/* Layer 0: navigation */
.nav-before {
  position: absolute; left: 0; right: 0; top: 0; height: 60px;
  display: flex; align-items: center; gap: 16px; padding: 0 32px;
  background: #E7E3D8; border-bottom: 1px solid #D4D0C4; font: 13px Georgia, serif; color: #555;
}
.nav-before b { margin-right: auto; font-size: 19px; font-weight: 400; color: #333; }
.nav-after {
  position: absolute; left: 0; right: 0; top: 0; height: 76px;
  display: flex; align-items: center; gap: 40px; padding: 0 48px; border-bottom: 1px solid var(--line);
}
.nav-after > b { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.nav-after nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.demo-logo { display: block; width: 24px; height: 24px; border-radius: 7px; background: var(--blue); }
.nav-after__signin { margin-right: -16px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav-after__cta {
  display: grid; place-items: center; height: 40px; padding: 0 18px;
  border-radius: 2px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600;
}

/* Layer 1: message */
.message-before { position: absolute; left: 48px; top: 110px; width: 620px; font-family: Georgia, serif; }
.message-before h4 { font-size: 38px; font-weight: 400; line-height: 1.15; color: #444; }
.message-before p { max-width: 520px; margin-top: 16px; font-size: 14px; line-height: 1.6; color: #8A8A8A; }
.message-after { position: absolute; left: 48px; top: 122px; width: 560px; }
.message-after h4 { margin-top: 22px; font-size: 66px; font-weight: 800; letter-spacing: -.05em; line-height: .96; }
.message-after p { max-width: 26ch; margin-top: 26px; font-size: 21px; line-height: 1.4; color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}

/* Layer 2: action */
.action-before { position: absolute; left: 48px; top: 330px; display: flex; gap: 10px; }
.action-before span { padding: 9px 16px; border: 1px solid #999; background: #F4F4F4; font: 13px Georgia, serif; color: #333; }
.action-after { position: absolute; left: 48px; top: 420px; width: 560px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.action-after__primary {
  display: grid; place-items: center; height: 54px; padding: 0 28px;
  border-radius: 2px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600;
}
.action-after__secondary {
  display: grid; place-items: center; height: 54px; padding: 0 26px;
  border: 1px solid var(--line); border-radius: 2px; font-size: 16px; font-weight: 600;
}
.action-after small { width: 100%; margin-top: 2px; font-size: 13px; color: var(--mute); }

/* Layer 3: layout */
.cards-before { position: absolute; inset: 0; }
.cards-before > div {
  position: absolute; height: 110px; display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border: 1px solid #D4D0C4; background: #EAE6DC; font-family: Georgia, serif;
}
.cards-before b { font-size: 18px; font-weight: 400; color: #444; }
.cards-before span { font-size: 13px; color: #999; text-decoration: underline; }
.cards-after { position: absolute; left: 48px; right: 48px; top: 556px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-after > div { display: flex; flex-direction: column; gap: 10px; height: 118px; padding: 22px 24px; border-radius: 2px; background: var(--warm); }
.cards-after .mono { font-size: 12px; }
.cards-after b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }

.demo-dash {
  position: absolute; left: 648px; top: 100px; width: 504px; height: 410px; overflow: hidden;
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  box-shadow: 0 40px 80px -40px rgba(10, 10, 10, .3);
}
.demo-dash__side { display: flex; flex-direction: column; gap: 12px; padding: 18px 14px; background: var(--warm); border-right: 1px solid var(--line); }
.demo-dash__side i { display: block; height: 10px; border-radius: 3px; background: var(--line); }
.demo-dash__side i.is-current { background: var(--ink-2); }
.demo-dash__side i.demo-dash__logo { width: 24px; height: 24px; margin-bottom: 10px; border-radius: 7px; background: var(--blue); }
.demo-dash__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; }
.demo-dash__head { display: flex; justify-content: space-between; align-items: center; }
.demo-dash__head b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.demo-dash__head span { padding: 6px 10px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; }
.demo-dash__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-dash__tiles div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.demo-dash__tiles small { font-size: 10.5px; color: var(--mute); }
.demo-dash__tiles b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.demo-dash__chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.demo-dash__chart i { flex: 1; border-radius: 2px 2px 0 0; background: var(--line); }
.demo-dash__chart i.is-current { background: var(--blue); }
.demo-dash__rows { display: flex; flex-direction: column; }
.demo-dash__rows div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 12px; font-weight: 600; }
.demo-dash__rows em { font-style: normal; font-weight: 500; color: var(--mute); }

/* Layer labels: counter-rotated against the site so they read flat. */
.layer-tag {
  position: absolute; left: 24px; display: grid; justify-items: start;
  opacity: var(--x, 0); transform-origin: left bottom;
  transform: rotateZ(calc(var(--x, 0) * 32deg)) rotateX(calc(var(--x, 0) * -54deg));
}
.layer-tag span {
  grid-area: 1 / 1; padding: 12px 22px; white-space: nowrap;
  border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  font-size: 30px; font-weight: 600; color: #fff;
}
.layer-tag__before { background: var(--red); opacity: calc(1 - var(--f, 0)); }
.layer-tag__after { background: var(--blue); opacity: var(--f, 0); }

/* ============================================================
   5. Service 03, Funnel
   --g grow, --h highlight the biggest drop, --k apply the fix, --r result.
   ============================================================ */
.svc--funnel { background: var(--white); }
.funnel {
  position: absolute; inset: 0;
  opacity: calc(.2 + var(--g, 0) * .8);
  transform: perspective(2200px) rotateX(calc((1 - var(--g, 0)) * 22deg)); transform-origin: 50% 100%;
}
.funnel__head { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.funnel__head .mono { font-size: 15px; }
.funnel__cols {
  position: absolute; left: 0; right: 0; top: 70px; bottom: 0;
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px minmax(0, 1fr) 150px minmax(0, 1fr) 150px;
}
.f-col, .f-link { display: flex; flex-direction: column; min-height: 0; opacity: var(--o, 1); }
.f-col { transition: opacity .3s; }
.f-box { position: relative; flex: 1; margin-top: 96px; }
.f-link .f-box { margin-bottom: 64px; }

.f-col .f-box { background: var(--line-2); }
.f-col .f-box i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v, 0) * 1%); background: var(--ink); }
.f-col.is-hot .f-box i, .f-col.is-last .f-box i { background: color-mix(in oklab, var(--ink), var(--blue) calc(var(--k, 0) * 100%)); }
.f-col b {
  position: absolute; left: 0; bottom: calc(var(--v, 0) * 1% + 14px);
  font-size: 56px; font-weight: 800; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums;
  opacity: var(--g, 0);
}
.f-col > span { height: 64px; padding-top: 16px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }

/* Connector: a trapezoid from this column's height (--a) to the next (--b). */
.f-link .f-box i {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--line-2), var(--blue-lt) calc(var(--hh, 0) * 55%));
  clip-path: polygon(0 calc(100% - var(--a, 0) * 1%), 100% calc(100% - var(--b, 0) * 1%), 100% 100%, 0 100%);
}
.f-link em {
  position: absolute; left: 50%; bottom: calc(var(--m, 0) * 1% + 14px); transform: translateX(-50%);
  padding: 7px 12px; white-space: nowrap; border-radius: 999px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line);
  font: 600 17px var(--sans); font-style: normal; color: var(--ink-2);
  opacity: var(--g, 0);
}
.f-link.is-hot em {
  background: color-mix(in oklab, var(--white), var(--blue) calc(var(--hh, 0) * 100%));
  color: color-mix(in oklab, var(--ink-2), #fff calc(var(--hh, 0) * 100%));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--line), var(--blue) calc(var(--hh, 0) * 100%));
}
.f-tag {
  position: absolute; right: 0; bottom: calc(var(--v, 0) * 1% + 84px);
  padding: 9px 16px; white-space: nowrap; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; font-style: normal;
  opacity: var(--r, 0); transform: translateY(calc((1 - var(--r, 0)) * 10px));
}

/* ============================================================
   6. What you get
   ============================================================ */
.scope { padding: var(--sec) 0; background: var(--warm); }
.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scope-grid article {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: clamp(28px, 3vw, 44px); border-radius: var(--r); background: var(--white);
}
.scope-grid h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.scope-for { font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.scope-grid dl { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.scope-grid dd { font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.scope-grid dd + dt { margin-top: 14px; }
.scope-grid ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.scope-grid li { display: flex; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink); }
.scope-grid li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--ink); }
.scope-grid .btn { margin-top: 14px; }

/* ============================================================
   7. Track record
   ============================================================ */
.record { padding-top: var(--sec); }
.record__end { padding-bottom: var(--sec); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--d-line-2); border-radius: var(--r); background: var(--card);
  transition: border-color .3s, transform .5s var(--ease), opacity 1s var(--ease);
}
.tile:hover { border-color: var(--d-line); }
.tile__num { margin-top: auto; font-size: clamp(52px, 5.4vw, 84px); font-weight: 800; letter-spacing: -.06em; line-height: .88; font-variant-numeric: tabular-nums; }
.tile__num small { margin: 0 .2em; font-size: .32em; letter-spacing: 0; vertical-align: .9em; color: var(--d-faint); }
.tile p { max-width: 56ch; font-size: 16px; color: var(--d-mute); text-wrap: pretty; }
.tile p b { font-weight: 600; color: var(--d-ink); }

.tile--1 { grid-column: span 7; grid-row: span 2; }
.tile--1 .tile__num { margin-top: 0; font-size: clamp(96px, 12vw, 184px); }
.tile--2, .tile--3 { grid-column: span 5; }
.tile--4, .tile--5, .tile--6 { grid-column: span 4; }
.tile--7, .tile--8 { grid-column: span 6; }
.tile--8 { background: var(--d-ink); border-color: var(--d-ink); color: var(--ink); }
.tile--8 .mono { color: var(--mute); }
.tile--8 p { color: var(--ink-2); }
.tile--8 p b { color: var(--ink); }

.tile-compare {
  flex: 1; min-height: 200px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--d-line-2);
}
.tile-compare > div { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--d-mute); }
.tile-compare > div b { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--d-ink); }
.tile-compare__track { flex: 1; display: flex; align-items: flex-end; background: var(--d-line-2); }
.tile-compare__track i { width: 100%; background: var(--d-faint); transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s .2s var(--ease); }
.tile-compare > div:last-child .tile-compare__track i { background: var(--blue-lt); }
.is-in .tile-compare__track i { transform: scaleY(1); }

.tile-growth { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.tile-growth i { flex: 1; background: var(--d-line); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.tile-growth i:last-child { background: var(--d-ink); }
.is-in .tile-growth i { transform: scaleY(1); }

.creds {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  margin-top: clamp(40px, 4vw, 64px);
  border: 1px solid var(--d-line-2); border-radius: var(--r); background: var(--d-line-2);
}
.creds div { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--ink); }
.creds b { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.creds span { font-size: 14px; color: var(--d-mute); }

/* ============================================================
   8. How it works
   ============================================================ */
.process { padding-top: var(--sec); background: var(--white); }
.steps { list-style: none; }
.steps li {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 4fr); align-items: baseline;
  gap: clamp(16px, 3vw, 48px); padding: clamp(36px, 4.4vw, 64px) 0;
  border-top: 1px solid var(--line);
  opacity: .2; transition: opacity .8s var(--ease);
}
.steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease);
}
.steps li.is-on { opacity: 1; }
.steps li.is-on::before { transform: scaleX(1); }
.step__num { font-size: clamp(56px, 7vw, 112px); font-weight: 800; letter-spacing: -.06em; line-height: .8; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(32px, 4vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.steps li > div { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.steps p { max-width: 36ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.step__book {
  padding-bottom: 2px; border-bottom: 1px solid var(--ink);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  transition: color .2s, border-color .2s;
}
.step__book:hover { color: var(--blue); border-color: var(--blue); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); padding: clamp(48px, 5vw, 72px) 0 var(--sec); }
.principles li {
  display: flex; flex-direction: column; gap: 10px; padding-top: 24px; list-style: none;
  border-top: 1px solid var(--ink);
  font-size: clamp(20px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
}
.principles li span { font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ============================================================
   9. Contact
   ============================================================ */
.contact { padding: var(--sec) 0; background: var(--blue); color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: clamp(48px, 6vw, 96px); }
.contact__intro { position: sticky; top: calc(var(--nav) + 48px); display: flex; flex-direction: column; gap: 28px; }
.contact__intro .mono { color: rgba(255, 255, 255, .82); }
.contact__intro h2 { max-width: 9ch; font-size: clamp(52px, 7vw, 112px); letter-spacing: -.055em; line-height: .92; }
.contact__intro p { max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.contact__reach { display: flex; flex-direction: column; gap: 14px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px;
  border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--r);
  font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .3s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; transform: translateY(-1px); }
.chip svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.chip svg.chip__mail { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.contact__book {
  align-self: flex-start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 20px 14px 18px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--r); color: #fff;
  transition: background .2s, border-color .2s, transform .3s var(--ease);
}
.contact__book span { font-size: 14px; color: rgba(255, 255, 255, .82); }
.contact__book b { font-size: 17px; font-weight: 700; }
.contact__book:hover { background: rgba(255, 255, 255, .1); border-color: #fff; transform: translateY(-1px); }

.brief {
  display: flex; flex-direction: column; gap: 26px; padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--r); background: var(--white); color: var(--ink);
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label, .field > span:first-child { font-size: 15px; font-weight: 600; }
.brief input, .brief textarea {
  width: 100%; padding: 15px 16px; outline: 0;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.brief input::placeholder, .brief textarea::placeholder { color: var(--faint); }
.brief input:focus, .brief textarea:focus { border-color: var(--ink); background: #fff; }
.brief textarea { display: block; height: 180px; resize: none; line-height: 1.55; }
.brief .is-error { border-color: var(--red); }
.field__meta { display: flex; justify-content: space-between; gap: 12px; }
.field__count { font-size: 13.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.hint { font-size: 13.5px; color: var(--mute); }
.hint.is-error { color: var(--red); }
.brief .btn { width: 100%; height: 56px; }
.brief__note { margin-top: -12px; text-align: center; }

.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.segmented button {
  min-height: 50px; padding: 8px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s, background .2s, color .2s;
}
.segmented button:hover { border-color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- Footer ---- */
.site-foot .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  padding-top: 32px; padding-bottom: 32px; font-size: 13.5px; color: var(--d-mute);
}
.site-foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-foot a { color: var(--d-mute); }
.site-foot a:hover { color: var(--d-ink); }

/* ---- 404 ---- */
.not-found { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 40px) 0 40px; }
.not-found .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: 100%; }
.not-found h1 { max-width: 12ch; font-size: clamp(48px, 8vw, 120px); font-weight: 800; letter-spacing: -.055em; line-height: .92; }

/* ============================================================
   Booking: corner nudge and dialog
   ============================================================ */
.nudge {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: min(340px, calc(100vw - 40px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid var(--d-line); border-radius: 6px;
  background: rgba(17, 17, 19, .92); color: var(--d-ink);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.nudge.is-visible { opacity: 1; transform: none; }
.nudge.is-visible.is-tucked { opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .3s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.nudge .mono { color: var(--d-mute); }
.nudge__title { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.nudge__sub { font-size: 15px; color: var(--d-mute); }
.nudge__cta { margin-top: 10px; }
.nudge__close, .booking__close {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  transition: background .2s, color .2s;
}
.nudge__close { position: absolute; top: 10px; right: 10px; color: var(--d-mute); }
.nudge__close:hover { background: rgba(255, 255, 255, .08); color: var(--d-ink); }
.nudge__close svg, .booking__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.booking {
  width: min(960px, calc(100vw - 32px)); height: min(820px, calc(100svh - 48px));
  max-width: none; max-height: none; margin: auto; padding: 0;
  border: 0; border-radius: 8px; background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .4s var(--ease), transform .6s var(--ease), overlay .4s allow-discrete, display .4s allow-discrete;
}
.booking:not([open]) { display: none; }
.booking[open] { opacity: 1; transform: none; }
@starting-style { .booking[open] { opacity: 0; transform: translateY(24px) scale(.98); } }
.booking::backdrop {
  background: rgba(10, 10, 10, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s var(--ease), overlay .4s allow-discrete, display .4s allow-discrete;
}
.booking[open]::backdrop { opacity: 1; }
@starting-style { .booking[open]::backdrop { opacity: 0; } }
.booking__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px 24px 18px 28px; border-bottom: 1px solid var(--line);
}
.booking__head > div { display: flex; flex-direction: column; gap: 8px; }
.booking__head h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; line-height: 1; }
.booking__close { flex: none; color: var(--mute); }
.booking__close:hover { background: var(--warm); color: var(--ink); }
.booking__frame { position: relative; flex: 1; min-height: 0; background: var(--white); }
.booking__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.booking__loading { position: absolute; inset: 0; display: grid; place-items: center; }
.booking__foot { padding: 14px 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.booking__foot a { font-weight: 600; border-bottom: 1px solid currentColor; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .tile--1 { grid-column: span 12; grid-row: auto; }
  .tile--2, .tile--3, .tile--7, .tile--8 { grid-column: span 6; }
  .tile--4, .tile--5, .tile--6 { grid-column: span 4; }
  .creds { grid-template-columns: 1fr; }
  .creds div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: baseline; gap: 16px; padding: 18px 24px; }
  .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px; }
}

@media (max-width: 900px) {
  .topnav__links { display: none; }
  .topnav .btn { margin-left: auto; }
  .scene {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch;
    gap: 12px; padding-top: calc(var(--nav) + 24px); padding-bottom: 16px;
  }
  .stage { height: 100%; }
  .captions { gap: 16px; }
  .captions__title, .captions__note { display: none; }
  .caption-stack h3 { font-size: clamp(30px, 7vw, 44px); }
  .caption-stack p { margin-top: 10px; font-size: 15.5px; }
}

@media (max-width: 860px) {
  .scope-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .tile--2, .tile--3, .tile--4, .tile--5, .tile--6, .tile--7, .tile--8 { grid-column: span 12; }
  .steps li { grid-template-columns: 1fr; gap: 14px; }
  .principles { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
}

@media (max-width: 600px) {
  .hero__ctas .btn { flex: 1 1 220px; }
  /* The finished mock comes to rest mid-screen, not under the nav. */
  .hero__mock { top: calc(50svh - 28.75vw); }
  .segmented { grid-template-columns: 1fr; }
  .creds div { grid-template-columns: 1fr; gap: 4px; }
  .nudge { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .booking { width: 100vw; height: 100svh; border-radius: 0; }

  /* Portrait stages (data-w-sm x data-h-sm in the markup). At phone width
     the landscape stages scaled to about a third, which put the funnel's
     labels near 7px. The scene keeps clear of the service index pill. */
  .scene { padding-bottom: 76px; }

  /* Zero to One, 600 x 1060: phone centred on top, build log and metric
     below it. The spec pills point sideways at the phone and need the
     landscape stage's room, so they sit this one out. */
  .phone { left: 117px; top: 0; }
  .z1-specs { display: none; }
  .z1-log { left: 60px; top: 800px; width: 480px; gap: 18px; padding: 28px; }
  .z1-metric { left: 60px; top: 808px; }

  /* Funnel, 600 x 900: narrower columns, larger type. */
  .funnel__head .mono { font-size: 19px; }
  .funnel__cols { grid-template-columns: 110px minmax(0, 1fr) 110px minmax(0, 1fr) 110px minmax(0, 1fr) 110px; }
  .f-box { margin-top: 80px; }
  .f-link .f-box { margin-bottom: 84px; }
  .f-col b { font-size: 40px; }
  .f-col > span { height: 84px; font-size: 22px; }
  .f-link em { padding: 5px 8px; font-size: 15px; }
  .f-tag { bottom: calc(var(--v, 0) * 1% + 62px); padding: 7px 12px; font-size: 16px; }

  /* Websites keeps its landscape stage; its layer labels scale up instead. */
  .layer-tag span { padding: 16px 30px; font-size: 48px; }
}

@media (max-width: 480px) {
  /* The larger mark and the CTA share 350px here. */
  .brand { gap: 10px; padding: 8px; margin-left: -8px; }
  .brand img { height: 20px; }
  .brand span { padding-left: 10px; font-size: 16px; line-height: 20px; }
  .brand__caret { width: 14px; height: 14px; margin-left: -2px; }
  .topnav .btn { padding: 0 12px; font-size: 13px; }
  .svc-index a { padding: 0 12px; font-size: 12.5px; }
  .svc-index a em { display: none; }
}

/* iPhone SE, mini and small Android widths: the full mark and the full CTA
   label no longer share the row, so the label shortens. */
.btn__short { display: none; }
@media (max-width: 400px) { .topnav__in { gap: 12px; } }
/* "25 to 10,000+" is the widest number in the bento; at 320px the 52px floor overflows. */
@media (max-width: 360px) { .tile__num { font-size: 44px; } }
@media (max-width: 380px) {
  .btn__long { display: none; }
  .btn__short { display: inline; }
}

/* Reduced motion: no animation or transition anywhere, final states shown. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .steps li { opacity: 1; }
  .steps li::before { transform: scaleX(1); }
  .statement__word { color: var(--ink); }
  .statement__word.is-hl { color: var(--blue); }
}
