/* Rehm Web & AI
   Layout: left-aligned 12-column grid over a quiet contour map; real websites in device frames carry the page; one brass accent. */
:root {
  color-scheme: dark;

  /* colour: dark (default) */
  --bg:        #0B1210;
  --surface:   #111A17;
  --ink:       #E3EAE6;
  --ink-2:     #92A19A;
  --rule:      #24312C;
  --accent:    #CDA766;
  --on-accent: #0B1210;
  --shadow:    0 30px 70px -30px rgb(0 0 0 / 0.65);
  --frame:     #26332E;

  /* phones: a call bar once the hero buttons have scrolled away */
.callbar { display: none; }
@media (max-width: 639px) {
  .callbar {
    position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--rule);
  }
  .callbar .btn { min-height: 46px; padding: 0 10px; }
  .callbar[hidden] { display: none !important; }
}

/* disclosure label: ink on paper in both themes */
  --paper:        #EEF2EF;
  --paper-ink:    #0B1210;
  --paper-ink-2:  #4A5852;
  --paper-accent: #785618;

  /* the Hollow Oak sample site, rebuilt in the build scene */
  --m-bg: #EDF0E7; --m-ink: #1D3527; --m-ink-2: #44584A; --m-on-ink: #F4F6EF; --m-line: #C3CCBB;
  --m-head: Georgia, serif; --m-body: system-ui, sans-serif;

  /* field (read by js/field.js) */
  --field-contour: 0.13;
  --field-index:   0.22;
  --field-knock:   0.25;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step-hero:    clamp(2.375rem, 1rem + 4.6vw, 5.25rem);
  --step-display: clamp(2rem, 1.1rem + 2.9vw, 3.75rem);
  --step-rule:    clamp(1.75rem, 1.05rem + 2.1vw, 3rem);
  --step-quote:   clamp(1.375rem, 0.95rem + 1.5vw, 2rem);
  --step-h3:      clamp(1.375rem, 1.05rem + 1.1vw, 2rem);
  --step-contact: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
  --step-lede:    clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
  --step-body:    clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-small:   0.875rem;
  --step-label:   0.75rem;

  --lh-hero: 1.0; --lh-display: 1.04; --lh-h3: 1.15; --lh-quote: 1.25; --lh-body: 1.6; --lh-mono: 1.45;
  --track-hero: -0.025em; --track-display: -0.02em; --track-label: 0.12em;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem; --space-10: 8rem; --space-11: 12rem;
  --section-y: clamp(6rem, 12vw, 11rem);

  --maxw: 82.5rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
  --nav-h: 4rem;
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms; --dur-2: 320ms;
}

/* light: follows the system unless dark was chosen */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg:        #E6EBE8;
    --surface:   #F3F6F4;
    --ink:       #0D1814;
    --ink-2:     #4A5852;
    --rule:      #C3CCC7;
    --accent:    #785618;
    --on-accent: #F3F6F4;
    --paper:     #FFFFFF;
    --shadow:    0 24px 60px -28px rgb(13 24 20 / 0.35);
    --frame:     #18221E;
    --field-contour: 0.12;
    --field-index:   0.19;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #E6EBE8;
  --surface:   #F3F6F4;
  --ink:       #0D1814;
  --ink-2:     #4A5852;
  --rule:      #C3CCC7;
  --accent:    #785618;
  --on-accent: #F3F6F4;
  --paper:     #FFFFFF;
  --shadow:    0 24px 60px -28px rgb(13 24 20 / 0.35);
  --frame:     #18221E;
  --field-contour: 0.12;
  --field-index:   0.19;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0B1210;
  --surface:   #111A17;
  --ink:       #E3EAE6;
  --ink-2:     #92A19A;
  --rule:      #24312C;
  --accent:    #CDA766;
  --on-accent: #0B1210;
  --paper:     #EEF2EF;
  --shadow:    0 30px 70px -30px rgb(0 0 0 / 0.65);
  --frame:     #26332E;
  --field-contour: 0.13;
  --field-index:   0.22;
}

@media (max-width: 639px) { :root { --nav-h: 3.5rem; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 680; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
[hidden] { display: none !important; }

.sr-only {
  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 {
  position: fixed; z-index: 100; left: var(--space-4); top: calc(env(safe-area-inset-top, 0px) + var(--space-3));
  padding: var(--space-3) var(--space-4); background: var(--surface); color: var(--ink);
  font: 600 var(--step-small)/1 var(--font-body); text-decoration: none; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* type roles */
.eyebrow {
  font: 500 var(--step-label)/var(--lh-mono) var(--font-mono);
  text-transform: uppercase; letter-spacing: var(--track-label); color: var(--ink-2);
}
.lede { font-size: var(--step-lede); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.h-hero {
  font-size: var(--step-hero); line-height: var(--lh-hero); letter-spacing: var(--track-hero);
  font-stretch: 112%; font-weight: 680;
}
.h-display {
  font-size: var(--step-display); line-height: var(--lh-display); letter-spacing: var(--track-display);
  font-weight: 680;
}
.h-lead { font-size: var(--step-h3); line-height: var(--lh-h3); font-weight: 600; letter-spacing: -0.01em; }

/* underline-on-hover links */
.ulink {
  text-decoration: none; color: inherit;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1);
  padding-bottom: 0.08em;
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); letter-spacing: 0.01em; text-decoration: none;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-secondary { border-color: var(--ink-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }

/* ---------- field ---------- */
#field, .field-fallback {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none;
}
#field { display: block; opacity: 0; transition: opacity 600ms ease; }
.has-gl #field { opacity: 1; }
.field-fallback {
  display: none;
  background: var(--ink);
  -webkit-mask: url("../assets/terrain.svg") center / cover no-repeat;
  mask: url("../assets/terrain.svg") center / cover no-repeat;
  opacity: 0.08;
}
html:not(.js) .field-fallback, .no-gl .field-fallback { display: block; }
html:not(.js) #field, .no-gl #field { display: none; }
@media (prefers-reduced-motion: reduce) {
  .field-fallback { display: block; }
  #field { display: none; }
}
main, .foot { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 10; left: 0; right: 0; top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms, border-color 200ms;
}
.nav.is-scrolled, html:not(.js) .nav { background: var(--bg); border-bottom-color: var(--rule); }
@supports (background: color-mix(in srgb, red 50%, blue)) and ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wm-name {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 760; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 20px; line-height: 1;
}
.wm-sep { display: inline-block; width: 1px; height: 14px; background: var(--ink-2); margin: 0 12px; }
.wm-desc {
  font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative; font: 500 14px/1 var(--font-body); color: var(--ink-2); text-decoration: none;
  padding-block: 8px; transition: color var(--dur-1);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { transform: scaleX(1); }
.theme-toggle {
  appearance: none; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--ink-2);
  font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
}
.theme-toggle:hover { color: var(--ink); }
.nav-wide { display: none; }
@media (min-width: 1024px) { .nav-wide { display: inline-block; } }
@media (max-width: 639px) {
  .wm-name { font-size: 18px; }
  .nav-links { gap: 18px; }
  .nav .theme-toggle { display: none; }
}
@media (max-width: 359px) { .wm-sep, .wm-desc { display: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.scene { position: relative; padding-block: var(--section-y); }
.frame { position: relative; }


/* pinned scenes: one viewport each on tall desktops */
@media (min-width: 1024px) and (min-height: 700px) {
  .scene { min-height: 100vh; padding-block: 0; display: flex; flex-direction: column; }
  .scene > .frame { flex: 1 0 auto; min-height: 100vh; padding-top: calc(var(--nav-h) + var(--space-6)); padding-bottom: var(--space-6); }
}

/* ---------- device frames (hero, build scene, samples) ---------- */
.devices { position: relative; margin: 0; }
.browser {
  position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px;
  border-bottom: 1px solid var(--rule); background: var(--surface);
}
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.url {
  flex: 1 1 auto; min-width: 0; max-width: 62%; margin-inline: auto; height: 19px; border-radius: 6px;
  background: var(--bg); color: var(--ink-2); font: 400 11px/19px var(--font-mono); text-align: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.browser-view img { display: block; width: 100%; height: auto; }
.phone {
  position: absolute; width: 24%; aspect-ratio: 390 / 844; padding: 3%; background: var(--frame);
  border-radius: 13% / 6%; box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10% / 4.6%; }
.devices figcaption { margin-top: var(--space-4); font-size: 13px; color: var(--ink-2); }
.hero-devices figcaption { padding-left: 29%; }
.sample-chip {
  flex: none; font: 600 10px/1 var(--font-body); letter-spacing: 0.02em; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 99px; padding: 3px 7px;
}
.only-phone { display: none; }
@media (max-width: 639px) {
  .only-phone { display: inline-flex; }
  .not-phone { display: none; }
}

/* ---------- S1 hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; gap: var(--space-8); padding-top: calc(var(--nav-h) + var(--space-7)); padding-bottom: var(--space-8); }
.hero-copy { display: grid; gap: var(--space-5); align-content: center; }
.hero-h { font-size: var(--step-hero); line-height: 1.0; letter-spacing: var(--track-hero); font-weight: 700; max-width: 13ch; }
.hero-lede { max-width: 44ch; color: var(--ink); opacity: 0.86; }
.hero .btn-row { margin-top: var(--space-2); }
.hero-note { font-size: 15px; color: var(--ink-2); max-width: 44ch; }
.hero-devices { padding-bottom: 9%; }
.hero-devices .browser { margin-left: 12%; }
.hero-devices .phone { left: 0; bottom: 0; width: 25%; }
.shot-long { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .shot-long { animation: browse 26s ease-in-out 3s 2 alternate; }
}
/* the long screenshot is 1440x2700; the 16:10 view shows the top third, so travel two thirds */
@keyframes browse { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(-66.6%); } }
@media (max-width: 639px) {
  .hero .btn-row { flex-direction: column; }
  .hero .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-bottom: var(--space-7); }
  .hero-copy { grid-column: 1 / span 6; }
  .hero-devices { grid-column: 7 / span 6; }
  .hero-h { font-size: min(clamp(2.75rem, 0.9rem + 3.1vw, 4.4rem), 9vh); max-width: 16ch; }
}

/* ---------- step lists (build + AI scenes) ---------- */
.build-steps, .ai-steps { display: grid; gap: var(--space-4); }
.bstep, .astep { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--space-3); align-items: start; transition: color 300ms; }
.bn {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--ink-2); color: var(--ink-2); font: 600 13px/1 var(--font-display); font-variant-numeric: tabular-nums;
  transition: background-color 300ms, border-color 300ms, color 300ms;
}
.bstep h3, .astep p { font: 600 var(--step-lede)/1.3 var(--font-display); letter-spacing: -0.005em; padding-top: 0.05em; }
.bstep div p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
/* with JS: one step is current; earlier steps are done */
.steps-live .bstep, .steps-live .astep { color: var(--ink-2); }
.steps-live .is-done { color: var(--ink); }
.steps-live .is-done .bn { border-color: var(--ink); color: var(--ink); }
.steps-live .is-active { color: var(--ink); }
.steps-live .is-active .bn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- S2 build scene ---------- */
.build-grid { display: grid; gap: var(--space-6); }
.build-head .h-display { max-width: 12ch; }
.stage-wrap { position: relative; }
.stage { position: relative; aspect-ratio: 5 / 4; container-type: inline-size; }
.stage-browser { position: absolute; left: 10%; top: 2%; width: 90%; }
.mini-view { container-type: inline-size; }
.stage.mini-fonts { --m-head: "Alegreya", Georgia, serif; --m-body: "Alegreya Sans", system-ui, sans-serif; }
.stage-note { margin-top: var(--space-3); font-size: 13px; color: var(--ink-2); }

/* the mini site: raw HTML until step 3 applies the design.
   Sizes are in cqw of the 16:10 view, so 1cqw = 14.4px of the real 1440px-wide Hollow Oak page. */
.mini {
  position: absolute; inset: 0; overflow: hidden; background: #fff; color: #111;
  font: 400 1.5cqw/1.35 "Times New Roman", Times, serif; transition: background-color 500ms, color 500ms;
}
.mini > * { transition: opacity 400ms; }
.stage:not(.is-s2) .mini > :not(.m-wire) { opacity: 0; }
.m-head { padding: 2cqw 4cqw 0; }
.m-logo { display: block; font-weight: 700; font-size: 2cqw; }
.m-mark { display: none; }
.m-right { display: block; }
.m-hrs { display: block; }
.m-call, .m-btns span { color: #00e; text-decoration: underline; }
.m-hero { padding: 1.4cqw 4cqw 0; }
.m-h { font-size: 2.6cqw; line-height: 1.15; font-weight: 700; }
.m-sub { margin-top: 0.8cqw; max-width: 60ch; }
.m-btns { margin-top: 0.6cqw; display: flex; gap: 2cqw; }
.m-svc { padding: 0.8cqw 4cqw 0 7cqw; list-style: disc; }
.m-svc b { font-weight: 400; }
.m-svc small { display: none; }
.m-new { opacity: 0; transition: opacity 500ms 400ms; }
.stage.is-s5 .m-new { opacity: 1; }
.m-wire { position: absolute; inset: 4cqw 6.9cqw; display: grid; align-content: start; gap: 2cqw; transition: opacity 400ms; }
.m-wire i { display: block; height: 2.2cqw; border-radius: 0.4cqw; background: #e8ece9; }
.m-wire i:nth-child(1) { width: 34%; } .m-wire i:nth-child(2) { width: 52%; height: 14cqw; margin-top: 6cqw; }
.m-wire i:nth-child(3) { width: 40%; } .m-wire i:nth-child(4) { width: 30%; height: 3.6cqw; } .m-wire i:nth-child(5) { width: 100%; height: 7cqw; margin-top: 6cqw; }
.stage.is-s2 .m-wire { opacity: 0; }

/* step 3: Hollow Oak's own design (tokens copied from site/work/hollow-oak-landscapes) */
.stage.is-s3 .mini { background: var(--m-bg); color: var(--m-ink); font: 400 1.53cqw/1.45 var(--m-body); }
.stage.is-s3 .m-head { position: absolute; left: 6.94cqw; right: 6.94cqw; top: 0; height: 6.25cqw; padding: 0; display: flex; align-items: center; justify-content: space-between; }
.stage.is-s3 .m-logo { display: inline-flex; align-items: center; gap: 0.7cqw; font: 600 1.8cqw/1 var(--m-head); }
.stage.is-s3 .m-mark { display: inline-block; width: 1.8cqw; height: 2.3cqw; background: var(--m-ink); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; }
.stage.is-s3 .m-right { display: flex; align-items: center; gap: 1.4cqw; }
.stage.is-s3 .m-hrs { font-size: 1.11cqw; line-height: 1.3; color: var(--m-ink-2); text-align: right; }
.stage.is-s3 .m-call { text-decoration: none; display: inline-flex; align-items: center; height: 3.2cqw; padding: 0 1.6cqw; border-radius: 99cqw; background: var(--m-ink); color: var(--m-on-ink); font-weight: 700; font-size: 1.18cqw; }
.stage.is-s3 .m-hero { position: absolute; left: 6.94cqw; right: 6.94cqw; top: 15.1cqw; padding: 0; display: grid; grid-template-columns: 49.65cqw 32.3cqw; column-gap: 3.33cqw; align-items: end; }
.stage.is-s3 .m-h { font: 500 6cqw/1 var(--m-head); letter-spacing: -0.015em; }
.stage.is-s3 .m-sub { margin-top: 0; font-size: 1.53cqw; line-height: 1.45; color: var(--m-ink-2); }
.stage.is-s3 .m-btns { margin-top: 1.8cqw; gap: 0.83cqw; }
.stage.is-s3 .m-btns span { text-decoration: none; display: inline-flex; align-items: center; height: 3.9cqw; padding: 0 1.5cqw; border-radius: 99cqw; border: 0.14cqw solid var(--m-ink); font-weight: 700; font-size: 1.32cqw; }
.stage.is-s3 .m-b1 { background: var(--m-ink); color: var(--m-on-ink); }
.stage.is-s3 .m-b2 { color: var(--m-ink); }
.stage.is-s3 .m-svc { position: absolute; left: 6.94cqw; right: 6.94cqw; top: 50.5cqw; height: 7.6cqw; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 0.14cqw solid var(--m-ink); }
.stage.is-s3 .m-svc li { padding: 1.1cqw 1.39cqw; border-left: 1px solid var(--m-line); }
.stage.is-s3 .m-svc li:first-child { padding-left: 0; border-left: 0; }
.stage.is-s3 .m-svc b { display: block; font-weight: 700; font-size: 1.32cqw; line-height: 1.2; }
.stage.is-s3 .m-svc small { display: block; margin-top: 0.3cqw; font-size: 1.04cqw; color: var(--m-ink-2); }
.stage.is-s3 .m-svc li::after {
  content: ""; display: block; width: 11.4cqw; height: 0.5cqw; margin-top: 0.8cqw;
  background: repeating-linear-gradient(90deg, var(--m-ink) 0 0.55cqw, transparent 0.55cqw 0.95cqw); opacity: 0.8;
}

/* step 4: Ryan's checks */
.chk {
  display: inline-block; vertical-align: middle; margin-left: 0.8cqw; width: 1.8cqw; height: 1.8cqw; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(0.3); transition: opacity 300ms, transform 400ms var(--ease-out);
  position: relative;
}
.chk::after, .fchk::after {
  content: ""; position: absolute; left: 34%; top: 20%; width: 26%; height: 46%;
  border: solid var(--on-accent); border-width: 0 0.28cqw 0.28cqw 0; transform: rotate(45deg);
}
.stage.is-s4 .chk { opacity: 1; transform: none; }
.c2 { transition-delay: 150ms; } .c3 { transition-delay: 300ms; }

/* the facts card */
.facts {
  position: absolute; left: 0; top: 44%; width: 44%; padding: 2.4cqw 2.6cqw;
  background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-ink); box-shadow: var(--shadow);
  font-size: 1.9cqw; line-height: 1.35; transition: opacity 500ms, transform 500ms var(--ease-out);
}
.f-title { font: 700 2.3cqw/1.1 var(--font-display); padding-bottom: 1cqw; border-bottom: 0.5cqw solid var(--paper-ink); }
.facts dl div { display: grid; grid-template-columns: 9cqw minmax(0, 1fr); gap: 1cqw; padding: 0.7cqw 0; border-bottom: 1px solid var(--paper-ink); }
.facts dt { font-weight: 600; }
.facts dd { position: relative; padding-right: 3cqw; }
.fchk {
  position: absolute; right: 0; top: 0.2em; width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: var(--paper-accent);
  opacity: 0; transform: scale(0.3); transition: opacity 300ms, transform 400ms var(--ease-out);
}
.fchk::after { border-color: var(--paper); }
.f-by { margin-top: 1cqw; font-size: 1.7cqw; color: var(--paper-accent); font-weight: 600; opacity: 0; transition: opacity 300ms 400ms; }
.stage.is-s4 .fchk, .stage.is-s4 .f-by { opacity: 1; transform: none; }
.stage:not(.is-s1) .facts { opacity: 0; transform: translateY(4%); }
.stage.is-s5 .facts { opacity: 0; transform: translateY(6%); pointer-events: none; }

/* browser chrome states */
.ai-chip {
  flex: none; font: 500 10px/1 var(--font-mono); color: var(--accent); border: 1px solid var(--accent); border-radius: 99px;
  padding: 3px 7px; opacity: 0; transition: opacity 300ms;
}
.stage.is-s2:not(.is-s3) .ai-chip { opacity: 1; }
.url-live { display: none; align-items: center; gap: 5px; color: var(--ink); }
.url-live svg { fill: none; stroke: currentColor; stroke-width: 1.2; }
.stage.is-s6 .url-draft { display: none; }
.stage.is-s6 .url-live { display: inline-flex; }

/* step 5: the change request; step 6: the phone */
.bubble {
  position: absolute; right: 5%; top: 21%; max-width: 40%; padding: 1.6cqw 2.2cqw; border-radius: 2cqw 2cqw 0.4cqw 2cqw;
  background: var(--m-ink); color: var(--m-on-ink); font: 600 1.9cqw/1.3 var(--font-body); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(1.5cqw) scale(0.96); transform-origin: bottom right; transition: opacity 400ms, transform 400ms var(--ease-out);
}
.bubble-who { display: block; font-weight: 500; font-size: 1.5cqw; opacity: 0.7; margin-bottom: 0.3cqw; }
.stage.is-s5:not(.is-s6) .bubble { opacity: 1; transform: none; }
.stage-phone { right: 0; top: 36%; width: 20%; opacity: 0; transform: translateY(6%); transition: opacity 500ms, transform 600ms var(--ease-out); }
.stage.is-s6 .stage-phone { opacity: 1; transform: none; }

@media (max-width: 699px) {
  .stage { aspect-ratio: 1 / 1; }
  .stage-browser { left: 4%; width: 96%; }
  .facts { top: 30%; width: 66%; padding: 10px 12px; font-size: max(11px, 1.9cqw); }
  .f-title { font-size: max(13px, 2.3cqw); }
  .facts dl div { grid-template-columns: 34% minmax(0, 1fr); padding: 3px 0; }
  .fchk { width: 12px; height: 12px; }
  .fchk::after { border-width: 0 2px 2px 0; }
  .f-by { font-size: max(11px, 1.7cqw); }
  .bubble { font-size: max(12px, 1.9cqw); max-width: 62%; top: 26%; padding: 8px 11px; }
  .bubble-who { font-size: max(10px, 1.5cqw); }
  .stage-phone { top: 30%; width: 26%; }
  .url-more { display: none; }
  /* the smallest mini-site text would be under 6px here; keep the headline, buttons and strip lines */
  .stage .m-sub, .stage .m-hrs, .stage.is-s3 .m-svc b, .stage.is-s3 .m-svc small { visibility: hidden; }
}

/* unpinned with motion: the stage sticks while the steps scroll past it */
.build.is-flow .stage-wrap { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 2; background: var(--bg); padding-bottom: var(--space-3); }
.build.is-flow .bstep { min-height: 30vh; align-content: start; }
.build.is-flow .build-steps { padding-bottom: 16vh; }
@media (min-width: 1024px) {
  .build.is-flow .stage-wrap { top: calc(var(--nav-h) + var(--space-5)); align-self: start; background: none; }
  .build.is-flow .bstep { min-height: 34vh; }
}
@media (min-width: 1024px) {
  .build-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gap); row-gap: var(--space-6); align-items: start; }
  .build-head { grid-column: 1 / span 4; grid-row: 1; }
  .build-steps { grid-column: 1 / span 4; grid-row: 2; gap: var(--space-3); }
  .stage-wrap { grid-column: 5 / span 8; grid-row: 1 / span 2; align-self: center; }
  .steps-pin .bstep div p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 400ms var(--ease-out), opacity 300ms; }
  .steps-pin .bstep.is-active div p { max-height: 6em; opacity: 1; }
}
@media (min-width: 1024px) and (min-height: 700px) {
  .stage { max-height: calc(100vh - var(--nav-h) - 7rem); aspect-ratio: 5 / 4; width: min(100%, calc((100vh - var(--nav-h) - 7rem) * 1.25)); margin-left: auto; }
}

/* ---------- S3 sample sites ---------- */
.work { position: relative; padding-top: var(--section-y); }
.work-head { display: grid; gap: var(--space-4); }
.work-head .h-display { max-width: 18ch; }
.work-viewport { margin-top: var(--space-7); padding-bottom: var(--section-y); }
.work-track { display: grid; gap: var(--space-9); max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.work.is-pinned .work-track { display: flex; gap: var(--space-7); width: max-content; max-width: none; margin-inline: 0; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.work-item { position: relative; display: grid; gap: var(--space-5); align-content: start; }
.work-link::after { content: ""; position: absolute; inset: 0; }
.work-item:hover .work-link { background-size: 100% 1px; }
.work-item .devices { padding-bottom: 7%; }
.work-item .browser { width: 86%; }
.work-item .phone { right: 0; bottom: 0; width: 21%; }
.work-text { display: grid; gap: var(--space-2); max-width: 44ch; }
.work-text h3 { font-size: var(--step-h3); line-height: 1.15; }
.work-kind { color: var(--accent); font-weight: 600; font-size: 15px; }
.work-text p:not(.work-kind) { color: var(--ink-2); }
.work-link { justify-self: start; margin-top: var(--space-2); font-weight: 600; }
@media (min-width: 1024px) {
  .work-item { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: var(--space-7); align-items: center; }
  .work.is-pinned .work-item { width: min(80vw, 1160px); }
  /* pinned: the page scrolls the track sideways instead */
  .work.is-pinned { min-height: 100vh; padding-top: calc(var(--nav-h) + var(--space-6)); display: flex; flex-direction: column; }
  .work.is-pinned .work-viewport { overflow: hidden; overflow: clip; padding-block: var(--space-5); margin-top: auto; margin-bottom: auto; }
}

/* ---------- S4 AI help ---------- */
.ai-grid { display: grid; gap: var(--space-6); }
.ai-copy { display: grid; gap: var(--space-4); }
.ai-copy .h-display { max-width: 14ch; }
.inbox {
  container-type: inline-size; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow); font-size: 14px;
}
.ib-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.ib-title { font-weight: 700; }
.ib-tag { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); padding: 2px 9px; border-radius: 99px; }
.ib-body { display: grid; min-height: 19rem; }
.ib-list { display: none; }
.ib-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 11px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ib-from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-time { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ib-subj { grid-column: 1 / -1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-new { position: relative; transition: opacity 400ms, transform 400ms var(--ease-out); }
.ib-new::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.ib-read { padding: 16px; display: grid; gap: 12px; align-content: start; }
.ib-q, .ib-draft, .ib-actions { transition: opacity 400ms, transform 400ms var(--ease-out); }
.ib-qfrom { display: block; font-weight: 600; margin-bottom: 4px; }
.ib-draft { border: 1px dashed var(--accent); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; }
.ib-draft-tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.ib-actions { display: flex; gap: 8px; align-items: center; }
.ib-btn { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--ink-2); font-weight: 600; font-size: 13px; transition: background-color 300ms, color 300ms, border-color 300ms; }
.ib-send { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ib-sent { color: var(--accent); font-weight: 700; font-size: 13px; opacity: 0; transition: opacity 300ms 200ms; }
.inbox:not(.is-a1) .ib-new { opacity: 0; transform: translateY(-8px); }
.inbox:not(.is-a1) .ib-q { opacity: 0; }
.inbox:not(.is-a2) .ib-draft, .inbox:not(.is-a2) .ib-actions { opacity: 0; transform: translateY(8px); }
.inbox.is-a3 .ib-send { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.inbox.is-a3 .ib-sent { opacity: 1; }
.tag-sent { display: none; }
.inbox.is-a3 .tag-wait { display: none; }
.inbox.is-a3 .tag-sent { display: inline; }
.ai-steps { margin-top: var(--space-2); }
.ai-more { margin-top: var(--space-8); padding-bottom: var(--section-y); }
.ai-next { font-size: var(--step-lede); line-height: 1.3; color: var(--ink-2); font-weight: 600; margin-bottom: var(--space-5); }
.ai-list { display: grid; gap: var(--space-6); }
.ai-list h4 { margin: 0; font: 600 var(--step-lede)/1.3 var(--font-display); }
.ai-list p { margin-top: var(--space-2); color: var(--ink-2); max-width: 36ch; }
.ai-foot { margin-top: var(--space-7); font-size: 15px; color: var(--ink-2); max-width: 70ch; }
@container (min-width: 520px) {
  .ib-body { grid-template-columns: 36% minmax(0, 1fr); }
  .ib-list { display: block; border-right: 1px solid var(--rule); }
}
.ai.is-flow .inbox-wrap { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 2; background: var(--bg); padding-bottom: var(--space-3); }
.ai.is-flow .astep { min-height: 28vh; align-content: start; }
@media (min-width: 1024px) {
  .ai.is-flow .inbox-wrap { top: calc(var(--nav-h) + var(--space-5)); align-self: start; background: none; }
  .ai.is-flow .astep { min-height: 30vh; }
}
@media (min-width: 900px) { .ai-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); } }
@media (min-width: 1024px) {
  .ai.scene { padding-bottom: 0; }
  .ai-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gap); row-gap: var(--space-6); align-items: start; }
  .ai-copy { grid-column: 1 / span 5; grid-row: 1; }
  .ai-steps { grid-column: 1 / span 5; grid-row: 2; }
  .inbox-wrap { grid-column: 7 / span 6; grid-row: 1 / span 2; align-self: center; }
}

/* ---------- S5 what you get ---------- */
.offer-head { display: grid; gap: var(--space-4); }
.offer-cols { margin-top: var(--space-8); display: grid; gap: var(--space-7); }
.offer-col h3 { font-size: var(--step-h3); line-height: 1.15; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4em 0.6em; }
.opt { font: 500 13px/1 var(--font-body); color: var(--ink-2); border: 1px solid var(--ink-2); border-radius: 99px; padding: 4px 9px; }
.offer-col ul { margin-top: var(--space-5); display: grid; gap: 10px; }
.offer-col li { position: relative; padding-left: 20px; color: var(--ink-2); }
.offer-col li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--accent); }
.offer-foot {
  margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
}
.offer-foot p { font-size: var(--step-lede); line-height: 1.45; max-width: 52ch; }
@media (min-width: 900px) { .offer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); } }

/* ---------- S6 team ---------- */
.team-head { display: grid; gap: var(--space-4); }
.br { display: block; }
.team-cols { display: grid; gap: var(--space-8); margin-top: var(--space-8); }
.member-tag { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: var(--space-2); }
.member-name { font-size: var(--step-rule); line-height: 1.05; font-stretch: 112%; font-weight: 700; letter-spacing: -0.015em; }
.member-role { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.member-list { margin-top: var(--space-5); display: grid; gap: 10px; font-size: 17px; line-height: 1.45; max-width: 36ch; }
.closer { margin-top: var(--space-8); font: 680 var(--step-display)/var(--lh-display) var(--font-display); letter-spacing: var(--track-display); text-wrap: balance; }
@media (min-width: 1024px) {
  .team-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .member-a { grid-column: 1 / span 4; }
  .member-b { grid-column: 8 / span 4; }
}

/* ---------- S7 ground rules + label ---------- */
.honest-grid { display: grid; gap: var(--space-8); }
.rules { margin-top: var(--space-7); display: grid; gap: var(--space-5); }
.rule dt { font: 650 var(--step-h3)/1.15 var(--font-display); letter-spacing: -0.01em; }
.rule dd { margin-top: 6px; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 1024px) {
  .honest-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .honest-copy { grid-column: 1 / span 6; }
  .honest .label { grid-column: 8 / span 5; position: sticky; top: calc(var(--nav-h) + var(--space-6)); }
}

/* disclosure label: ink on paper in both themes */
.label {
  --bg: var(--paper); --ink: var(--paper-ink); --ink-2: var(--paper-ink-2); --accent: var(--paper-accent);
  position: relative;
  background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-ink);
  padding: 18px 20px 16px; width: 100%; max-width: 32rem;
  font: 400 14px/1.35 var(--font-body); font-variant-numeric: tabular-nums;
}
.label-title { font: 800 clamp(2rem, 1.5rem + 1.6vw, 2.75rem)/0.95 var(--font-display); font-stretch: 125%; letter-spacing: -0.01em; }
.label-sub { margin-top: 4px; font-size: 13px; }
.label hr { border: 0; margin: 0; background: var(--paper-ink); transform-origin: left; }
.label .bar-10 { height: 10px; margin-top: 8px; }
.label .bar-6 { height: 6px; }
.label .hair { height: 1px; margin-top: 6px; }
.lrow { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 4px; border-top: 1px solid var(--paper-ink); }
.label-rows .lrow:first-child { border-top: 0; }
.lrow dt { font-weight: 600; }
.lrow dd { text-align: right; }
.lrow-sub dt { font-weight: 400; padding-left: 1.25em; }
.label-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.label-table th, .label-table td { text-align: left; padding: 4px 0; border-top: 1px solid var(--paper-ink); vertical-align: top; }
.label-table thead th { border-top: 0; font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 6px; }
.label-table th[scope="row"] { font-weight: 600; padding-right: var(--space-2); }
.label-table col, .label-table thead th:nth-child(1) { width: 44%; }
.label-table thead th:nth-child(2), .label-table thead th:nth-child(3) { width: 28%; }
.label-h { font-weight: 700; padding-block: 5px 4px; }
.contains { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-5); }
.label-foot { margin-top: 6px; font-size: 12px; line-height: 1.45; }
@media (min-width: 640px) {
  .contains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .label { font-size: 13px; padding: 16px 14px 14px; }
  .label-table thead th:nth-child(1) { width: 38%; }
  .label-table thead th:nth-child(2) { width: 25%; }
  .label-table thead th:nth-child(3) { width: 37%; }
  .label-table thead th { white-space: nowrap; letter-spacing: 0.04em; }
  .lrow dt { white-space: nowrap; }
}

/* S8 contact */
.contact-grid { display: grid; gap: var(--space-7); }
.contact-main { display: grid; gap: var(--space-5); align-content: start; }
.contact-main .h-hero { margin-top: calc(var(--space-2) * -1); }
.benchmark { display: flex; align-items: center; gap: var(--space-4); }
.bm { width: 40px; height: 40px; flex: none; overflow: visible; }
.bm-ring { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.bm-ticks line { stroke: var(--ink); stroke-width: 1.25; }
.bm-dot { fill: var(--accent); }
.bm-text { display: grid; gap: 2px; white-space: nowrap; font: 400 var(--step-label)/var(--lh-mono) var(--font-mono); color: var(--ink-2); letter-spacing: 0.04em; }
.contact-list { margin-top: var(--space-5); display: grid; }
.c-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k act" "v v";
  align-items: center; row-gap: var(--space-2); padding-block: var(--space-4); border-top: 1px solid var(--rule);
}
.c-row:last-child { border-bottom: 1px solid var(--rule); }
.c-row dt { grid-area: k; font: 500 var(--step-label)/1 var(--font-mono); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--ink-2); }
.c-val { grid-area: v; min-width: 0; font: 600 var(--step-contact)/1.15 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.c-act { grid-area: act; }
.copy {
  appearance: none; min-height: 34px; min-width: 5.75rem; padding: 0 12px; background: transparent; color: var(--ink);
  border: 1px solid var(--ink-2); border-radius: var(--radius); cursor: pointer;
  font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em;
  transition: background-color var(--dur-1), border-color var(--dur-1);
}
.copy:hover { background: var(--surface); border-color: var(--ink); }
@media (min-width: 640px) {
  .c-row { grid-template-columns: 7rem minmax(0, 1fr) auto; grid-template-areas: "k v act"; align-items: baseline; column-gap: var(--space-4); }
  .bm { width: 56px; height: 56px; }
}
@media (min-width: 1024px) {
  .contact { min-height: 100vh; display: flex; align-items: center; }
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .contact-main { grid-column: 1 / span 8; grid-row: 1; }
  .benchmark { grid-column: 9 / span 4; justify-self: end; grid-row: 1; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
}

/* footer */
.foot { border-top: 1px solid var(--rule); background: var(--bg); }
.foot-grid { display: grid; gap: var(--space-6); padding-block: var(--space-7) var(--space-6); }
.foot-name {
  font: 760 clamp(2.5rem, 1.5rem + 3vw, 4rem)/1 var(--font-display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.foot-line { margin-top: var(--space-3); font: 400 12px/1.45 var(--font-mono); color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; }
.foot-legal { display: grid; gap: var(--space-2); font-size: 13px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.foot-act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); font-size: 14px; }
@media (min-width: 1024px) {
  .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .foot-mark { grid-column: 1 / span 4; }
  .foot-legal { grid-column: 5 / span 5; }
  .foot-act { grid-column: 10 / span 3; align-items: flex-end; }
}

/* SplitText line masks: room for descenders so g, y and p are never clipped */
.ln-mask { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* ---------- hero load: hidden only until the intro timeline runs ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-load] { opacity: 0; animation: load-failsafe 0s linear 4s forwards; }
}
@keyframes load-failsafe { to { opacity: 1; } }

/* ---------- print ---------- */
@media print {
  #field, .field-fallback, .nav, .elev, .copy, .theme-toggle, .skip { display: none !important; }
  :root { --bg: #fff; --ink: #000; --ink-2: #333; --rule: #999; }
  body { background: #fff; color: #000; }
  .scene { min-height: 0 !important; }
  .c-val a::after { content: " (" attr(href) ")"; font-size: 12px; font-weight: 400; }
}
