@font-face {
  font-family: "Inter";
  src: url("/experiments/unscene/fonts/inter-5.3.0-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #252522;
  --muted: #716f68;
  --faint: #939087;
  --paper: #f7f4ed;
  --card: #fffdf8;
  --soft: #e9ece5;
  --line: rgba(37, 37, 34, 0.14);
  --line-strong: rgba(37, 37, 34, 0.24);
  --accent: #4c7486;
  --accent-soft: #dce8eb;
  --overlay: rgba(28, 29, 27, 0.58);
  --max: 1120px;
  --wide: 1360px;
  --gutter: 40px;
  --header-h: 72px;
  --serif: "Iowan Old Style", Baskerville, Georgia, serif;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { text-wrap: pretty; }
.section-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.shell, .landing .section-shell { width: min(calc(100% - var(--gutter) * 2), var(--wide)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { width: min(calc(100% - 40px), var(--max)); height: var(--header-h); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-header--landing { position: relative; z-index: 5; width: min(calc(100% - var(--gutter) * 2), var(--wide)); border-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 680; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); font-size: 12px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
.nav-pro { display: inline-flex; align-items: center; gap: 7px; }
.nav-pro span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 7px; color: var(--accent); font-size: 8px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
nav .nav-download { border-radius: 999px; background: var(--ink); padding: 9px 16px; color: white; font-weight: 680; }
nav .nav-download:hover, nav .nav-download:focus-visible { background: #3b3a36; color: white; }
nav .nav-download[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; }

/* ---------- shared type + buttons ---------- */
.eyebrow { margin: 0 0 19px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { margin: 0; font-size: clamp(50px, 6.7vw, 96px); font-weight: 530; letter-spacing: -0.07em; line-height: 0.9; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 6px; padding: 0 17px; font-size: 12px; font-weight: 680; text-decoration: none; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button-primary, .button-dark { background: var(--ink); color: white; }
.button-primary:hover, .button-dark:hover { background: #3b3a36; }
.button-quiet { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-quiet:hover { background: rgba(255,255,255,0.48); }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; transform: none; }

.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 13px 7px 11px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }
.chip-dark { background: var(--overlay); color: white; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chip-dark::before { background: var(--accent-soft); }
.chip-light { border: 1px solid var(--line); background: rgba(255,253,248,0.92); color: var(--ink); }
.chip-button { border: 0; font: inherit; font-size: 11px; cursor: pointer; transition: background 150ms ease; }
.chip-button:hover { background: rgba(28,29,27,0.74); }
.chip-button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.chip-button[aria-pressed="true"] { background: var(--ink); }
.chip-button kbd { font: inherit; opacity: 0.7; }
@media (pointer: coarse) { .chip-button kbd { display: none; } }

.brush-ring { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 2px solid var(--accent); border-radius: 50%; background: rgba(220,232,235,0.28); box-shadow: 0 2px 8px rgba(0,0,0,0.12); pointer-events: none; opacity: 0; transition: opacity 180ms ease; }
.brush-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding-bottom: 48px; }
.hero-canvas { position: absolute; z-index: 2; left: 0; top: calc(var(--header-h) * -1); width: 100%; height: calc(100% + var(--header-h)); display: none; pointer-events: none; }
.hero.is-live .hero-canvas { display: block; }
.hero-top { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: end; gap: 40px; padding-block: clamp(20px, 4vh, 44px) 32px; }
/* Sized so the longer title line (~8.1em) fits the column beside the intro */
.hero-copy h1 { font-size: clamp(40px, calc(11.9vw - 55px), 96px); }
.hero-intro { max-width: 340px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.hero-actions { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.stage { position: relative; height: clamp(360px, calc(100vh - 372px), 620px); border-radius: 18px; box-shadow: 0 26px 70px rgba(65,58,45,0.13); touch-action: pan-y; }
.stage .comparison { position: absolute; inset: 0; border-radius: inherit; }
.hero.is-live .comparison { visibility: hidden; }
/* While the WebGL stage boots, show the untouched photograph instead of the slider */
.hero-pending .hero:not(.is-live) .comparison-before-wrap { clip-path: none; }
.hero-pending .hero:not(.is-live) :is(.comparison-handle, .comparison-label, .comparison-range) { visibility: hidden; }
.stage-ui { position: absolute; z-index: 4; inset: 0; display: none; pointer-events: none; }
.hero.is-live .stage-ui { display: block; }
.stage.is-brushing .brush-ring, .stage.is-demo .brush-ring { opacity: 1; }
.hero:is([data-stage-state="finishing"], [data-stage-state="gone"]) .brush-ring { opacity: 0; }
.stage-hint { position: absolute; left: var(--hint-x, 58%); top: var(--hint-y, 44%); transform: translate(46px, -50%); }
.stage-credit { position: absolute; left: 20px; bottom: 20px; }
.stage-controls { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .hero.is-live .stage { cursor: none; }
  .hero.is-live .stage-controls { cursor: auto; }
}

/* ---------- before/after slider (fallback stage) ---------- */
.comparison { --position: 52%; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #dedfd9; touch-action: pan-y; }
.comparison:focus-within { outline: 3px solid rgba(76,116,134,0.26); outline-offset: 3px; }
.comparison-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; user-select: none; }
.comparison-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.comparison-before { max-width: none; }
.comparison-handle { position: absolute; z-index: 3; left: var(--position); top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.94); transform: translateX(-50%); box-shadow: 0 0 12px rgba(0,0,0,0.2); pointer-events: none; }
.comparison-handle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 43px; height: 43px; border-radius: 50%; background: white; transform: translate(-50%, -50%); box-shadow: 0 5px 17px rgba(0,0,0,0.18); }
.comparison-handle span { position: relative; z-index: 1; top: calc(50% - 8px); color: var(--ink); font-size: 18px; line-height: 1; }
.comparison-handle span:first-child { left: -15px; }
.comparison-handle span:last-child { left: 2px; }
.comparison-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison-label { position: absolute; z-index: 2; top: 14px; border-radius: 4px; background: var(--overlay); padding: 6px 9px; color: white; font-size: 8px; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; backdrop-filter: blur(8px); }
.label-before { left: 14px; }
.label-after { right: 14px; }

/* ---------- open · brush · gone ---------- */
.story { position: relative; padding-block: 96px; }
.story-pin { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 80px); }
.stepper { margin: 0 0 40px; padding: 0; display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 11px; list-style: none; }
.stepper li { display: flex; align-items: center; gap: 14px; transition: color 300ms ease; }
.stepper li + li::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); transition: background 300ms ease; }
.story-step + .story-step { margin-top: 56px; }
.story-title { display: flex; align-items: baseline; gap: 14px; }
.story-numeral { color: var(--accent); font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); font-style: italic; line-height: 1; }
.story-step h3 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); font-weight: 530; letter-spacing: -0.058em; line-height: 1; }
.story-step p { max-width: 340px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.story-stage { position: relative; overflow: hidden; aspect-ratio: 1535 / 1024; border-radius: 18px; background: var(--soft); box-shadow: 0 26px 70px rgba(65,58,45,0.13); }
.story-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-mask, .story-after, .story-ring, .story-chip, .story-toast { opacity: 0; transition: opacity 500ms ease; }
.story-ring { left: 59%; top: 46%; }
.story-chip { position: absolute; left: calc(59% + 46px); top: 46%; transform: translateY(-50%); }
.story-toast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); }
.story-credit { position: absolute; left: 20px; top: 20px; }
/* Without the pinning script: all three steps stack beside the clean result */
.story:not(.is-pinned) .stepper { display: none; }
.story:not(.is-pinned) .story-after { opacity: 1; }
.story.is-pinned { height: 300vh; padding-block: 0; }
.story.is-pinned .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; align-content: center; }
.story.is-pinned .story-steps { display: grid; }
.story.is-pinned .story-step { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(14px); transition: opacity 450ms ease, transform 450ms ease; }
.story[data-active="1"] [data-story-step="1"],
.story[data-active="2"] [data-story-step="2"],
.story[data-active="3"] [data-story-step="3"] { opacity: 1; transform: none; }
.story[data-active="1"] .stepper [data-step="1"],
.story[data-active="2"] .stepper [data-step="2"],
.story[data-active="3"] .stepper [data-step="3"] { color: var(--ink); font-weight: 700; }
.story[data-active="2"] .stepper [data-step="2"]::before,
.story[data-active="3"] .stepper li::before { background: var(--accent); }
.story[data-active="2"] :is(.story-mask, .story-ring, .story-chip) { opacity: 1; }
.story[data-active="3"] :is(.story-after, .story-toast) { opacity: 1; }

/* ---------- privacy bento ---------- */
.bento { padding-block: clamp(96px, 10vw, 128px); display: grid; gap: 16px; }
.bento h2, .closing h2 { margin: 0; font-weight: 530; letter-spacing: -0.058em; line-height: 1; }
.bento-card { border-radius: 24px; }
.bento-lead { display: grid; grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr); gap: 16px; }
.bento-statement { min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: var(--soft); padding: clamp(32px, 4vw, 48px); }
.bento-statement h2 { max-width: 560px; font-size: clamp(38px, 4.4vw, 56px); }
.bento-statement > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.bento-photo { position: relative; overflow: hidden; margin: 0; background: var(--soft); }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.bento-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-points article { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 30px; }
.bento-points span { color: var(--accent); font-family: var(--serif); font-size: 15px; font-style: italic; }
.bento-points h3 { margin: 28px 0 0; font-size: 18px; font-weight: 620; letter-spacing: -0.01em; }
.bento-points p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- download + feedback ask ---------- */
.closing { padding-bottom: clamp(96px, 10vw, 128px); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.closing-download { border-radius: 24px; background: var(--accent-soft); padding: clamp(32px, 5vw, 56px); }
.closing-download h2 { max-width: 560px; font-size: clamp(38px, 4.4vw, 56px); }
.closing-actions { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.closing-actions p { margin: 0; color: var(--muted); font-size: 11px; }
.checksum { display: block; max-width: 560px; margin: 16px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 9px; }
.closing-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); padding: 40px; }
.closing-ask h2 { font-family: var(--serif); font-size: 30px; font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.closing-ask p { max-width: 280px; margin: 0 0 auto; padding-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.closing-ask small { color: var(--faint); font-size: 10px; }

/* ---------- footer ---------- */
.site-footer { padding-top: 64px; color: var(--muted); }
.footer-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.footer-links p { margin: 0; font-size: 14px; line-height: 1.7; }
.site-footer nav { gap: 22px; }
.wordmark-stage { position: relative; container-type: inline-size; overflow: hidden; aspect-ratio: 1120 / 284; }
.wordmark { position: absolute; left: -0.9cqi; top: 0.84cqi; color: var(--ink); font-size: 26.8cqi; font-weight: 700; letter-spacing: -0.07em; line-height: 0.88; white-space: nowrap; user-select: none; }
.footer-bottom { padding: 10px 0 40px; }
.footer-bottom small { color: var(--faint); font-size: 11px; }

.legal-page { min-height: calc(100vh - 72px); padding-block: 76px 118px; }
.legal-page article { max-width: 760px; }
.legal-page h1 { font-size: clamp(44px, 6vw, 70px); }
.legal-page .legal-intro { margin: 27px 0 52px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.legal-page h2 { margin: 43px 0 12px; font-size: 21px; letter-spacing: -0.03em; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 13px; line-height: 1.78; }
.legal-page .draft-note { border-left: 2px solid var(--accent); padding-left: 17px; }

@media (max-width: 960px) {
  .hero-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-intro { max-width: 520px; }
  .story-pin { grid-template-columns: 1fr; gap: 28px; }
  .story.is-pinned .story-pin { align-content: center; }
  .stepper { margin-bottom: 22px; }
  .hero-copy h1 { font-size: clamp(40px, calc(11.9vw - 10px), 96px); }
  .closing { grid-template-columns: 1fr; }
  .closing-ask p { max-width: 520px; }
}

@media (max-width: 820px) {
  .site-header nav a:not(.nav-pro, .nav-download) { display: none; }
  .hero-copy br { display: none; }
  /* Headline, then the photo, then the pitch: together they fill the first
     screen, and the photo takes whatever height is left */
  .hero { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-bottom: 24px; }
  .hero-top { display: contents; }
  .hero-copy, .hero-side { position: relative; z-index: 3; width: min(calc(100% - var(--gutter) * 2), var(--wide)); margin-inline: auto; }
  .hero-copy { order: 1; padding-block: 16px 22px; }
  .stage { order: 2; flex: 1 0 auto; height: auto; min-height: 280px; }
  .hero-side { order: 3; padding-top: 26px; }
  .bento-lead, .bento-points { grid-template-columns: 1fr; }
  .bento-statement { min-height: 0; }
  .bento-photo { aspect-ratio: 4 / 3; }
  .site-footer { padding-top: 48px; }
  .footer-links { flex-direction: column; align-items: flex-start; margin-top: 12px; }
}

@media (max-width: 520px) {
  :root { --gutter: 14px; --header-h: 64px; }
  .section-shell, .site-header { width: min(calc(100% - 28px), var(--max)); }
  .site-header nav .nav-pro { display: none; }
  h1 { font-size: clamp(44px, 13vw, 58px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .stage { border-radius: 12px; }
  .stage-credit { display: none; }
  .stage-controls { left: 12px; right: 12px; bottom: 12px; justify-content: flex-end; }
  .story-step h3 { font-size: 32px; }
  .story-step p { margin-top: 12px; }
  .story-chip { display: none; }
  .story-credit { display: none; }
  .bento-card, .closing-download, .closing-ask { border-radius: 18px; }
  .bento-points article { padding: 24px; }
  .bento-points h3 { margin-top: 14px; }
  .closing-actions .button, .closing-ask .button { width: 100%; }
  .closing-ask { align-items: stretch; padding: 28px; }
  /* Phone rhythm: tighter sections and cards so the page doesn't feel stretched */
  .bento { gap: 10px; padding-block: 72px 56px; }
  .bento-lead, .bento-points, .closing { gap: 10px; }
  .bento-statement { gap: 28px; padding: 28px; }
  .bento-photo { aspect-ratio: 3 / 2; }
  .bento-statement h2, .closing-download h2 { font-size: clamp(32px, 9vw, 38px); text-wrap: balance; }
  .closing { padding-bottom: 72px; }
  .closing-download { padding: 28px; }
  .closing-ask p { padding-bottom: 16px; }
  .site-footer nav { flex-wrap: wrap; gap: 0 20px; font-size: 13px; }
  .site-footer nav a { padding-block: 8px; }
  .footer-bottom { padding-top: 4px; }
}

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