/* Delightful marketing site. Values copied from the app (studio/delightful/app/css/tokens.css, base.css) so site and app read as one product. */
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --ground: #111111; --surface-1: #191919; --surface-2: #212121; --surface-3: #2a2a2a;
  --line: #262626; --line-2: #333333;
  --text-1: #ededed; --text-2: #a1a1a1; --text-3: #919191;
  --primary-bg: #ffffff; --primary-text: #111111;
  --r-tile: 12px; --r-card: 16px; --r-control: 10px; --r-pill: 999px;
  --font: "Onest", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: 16px; --nav-h: 64px; --wide: 1280px; --measure: 640px;
  --shadow-frame: 0 24px 64px rgba(0,0,0,.45);
}
@media (min-width: 700px) { :root { --gutter: 24px; } }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { min-height: 100vh; background: var(--ground); color: var(--text-1); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-synthesis: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--text-1); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--text-1) 24%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--text-1); color: var(--ground); padding: 10px 16px; border-radius: var(--r-control); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* buttons: same as the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--text-1); color: var(--ground); border-color: var(--text-1); }
.btn.primary:hover { background: color-mix(in srgb, var(--text-1) 86%, var(--ground)); }
.btn.lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn-s { height: 32px; padding: 0 14px; font-size: 13px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 8px; }
.logo { display: inline-flex; align-items: center; color: var(--text-1); text-decoration: none; margin-right: 12px; }
.logo svg { height: 24px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--r-control); font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text-1); background: var(--surface-2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-end .signin { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-end .signin { display: inline-flex; } }

/* hero */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 { font-size: clamp(40px, 7.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: 17ch; margin-inline: auto; text-wrap: balance; }
.hero .sub { margin: 24px auto 0; max-width: 560px; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* app frame: hairline border, app radius, faint shadow */
.frame { margin: 64px auto 0; max-width: 1200px; border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; background: var(--surface-1); box-shadow: var(--shadow-frame); }
.frame img { width: 100%; height: auto; }
.frame.shot-wide { }
@media (max-width: 699px) { .frame { margin-top: 40px; max-width: 360px; } }
.mono { font-family: var(--mono); font-size: .92em; }

/* ---------- sections ---------- */
.section { padding: 96px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.fine-link { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.fine-link:hover { color: var(--text-1); }


/* wall of references */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; }
@media (min-width: 700px) { .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.wall a { display: block; position: relative; border-radius: var(--r-tile); overflow: hidden; background: var(--surface-2); aspect-ratio: 8 / 5; box-shadow: 0 0 0 1px var(--line) inset; }
.wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.wall a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px var(--hover-ring, rgba(255,255,255,.24)) inset; opacity: 0; transition: opacity .15s; }
.wall a:hover::after, .wall a:focus-visible::after { opacity: 1; }
.wall-more { text-align: center; margin-top: 32px; }
@media (max-width: 699px) { .wall a:nth-child(n+10) { display: none; } }

/* feature sections */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 96px; }
.feature .copy h2 { font-size: clamp(26px, 3.4vw, 38px); }
.feature .copy p { margin-top: 16px; color: var(--text-2); font-size: 17px; max-width: 46ch; text-wrap: pretty; }
.feature .copy ul { margin-top: 20px; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.feature .copy li { position: relative; padding-left: 20px; }
.feature .copy li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--text-3); }
.feature .copy .btn { margin-top: 28px; }
.feature .frame { margin: 0; width: 100%; max-width: none; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
  .feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .feature.flip .copy { order: 2; }
}
.agents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.agent { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 500; }
.agent svg { width: 16px; height: 16px; }
.quote-note { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-1); padding: 16px 18px; font-size: 14px; color: var(--text-2); }
.quote-note .mono { display: block; margin-top: 10px; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.quote-note .src { display: block; margin-top: 12px; font-size: 12px; color: var(--text-3); }

/* MCP section */
.mcp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 96px; padding: 32px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-1); }
.mcp h2 { font-size: clamp(26px, 3.4vw, 38px); }
.mcp p { color: var(--text-2); margin-top: 16px; font-size: 17px; max-width: 48ch; }
.facts { display: grid; gap: 10px; margin-top: 24px; }
.facts li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--text-1); }

pre.code { margin: 0; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px 18px; overflow-x: auto; font: 400 13px/1.65 var(--mono); color: var(--text-2); tab-size: 2; }
.code .k { color: var(--text-1); }
@media (min-width: 960px) { .mcp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 56px; gap: 56px; align-items: center; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.faq .a a { color: var(--text-1); }

/* closing band */
.closer { text-align: center; padding: 120px 0 24px; }
.closer h2 { max-width: 16ch; margin-inline: auto; }
.closer .cta { margin-top: 28px; }

/* inner pages */
.page-head { padding: 72px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.page-head .sub { margin: 20px auto 0; max-width: 600px; font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.crumbs { font-size: 13px; color: var(--text-3); padding-top: 24px; }
.crumbs a { color: var(--text-3); text-decoration: none; } .crumbs a:hover { color: var(--text-1); }
.crumbs span[aria-hidden] { margin: 0 8px; }
.prose { max-width: 66ch; margin: 56px auto 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 2.2em; letter-spacing: -0.025em; }
.prose h3 { font-size: 20px; letter-spacing: -0.015em; margin-top: 1.8em; font-weight: 600; }
.prose p, .prose li { color: var(--text-2); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.prose strong { color: var(--text-1); font-weight: 600; }
.prose a { color: var(--text-1); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--text-1); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose ul { list-style: none; padding-left: 0; } .prose ul > li { position: relative; padding-left: 20px; } .prose ul > li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--text-3); } .prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--text-3); }
.prose code { font: 400 .88em var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text-1); }
.prose .note { border: 1px solid var(--line); background: var(--surface-1); border-radius: var(--r-tile); padding: 4px 18px; }
.prose .anchor { display: none; }
.prose figure.code { margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--ground); overflow: hidden; }
.prose figure.code figcaption { display: flex; gap: 12px; align-items: center; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--text-3); }
.prose figure.code .copy { margin-left: auto; background: transparent; height: 26px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font: 500 12px var(--font); }
.prose figure.code .copy:hover { background: var(--surface-2); color: var(--text-1); }
.prose pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13px/1.65 var(--mono); color: var(--text-2); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.t-k { color: var(--text-1); } .t-s { color: #c9c9c9; } .t-n { color: var(--text-1); } .t-c { color: var(--text-3); }
.wide-prose { max-width: 880px; }
.wide-prose > :not(.table-wrap):not(figure) { max-width: 66ch; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-tile); margin: 1.4em 0; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); line-height: 1.5; }
.table-wrap th { font-weight: 500; color: var(--text-1); background: var(--surface-1); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--text-1); font-weight: 500; }
.meta { color: var(--text-3); font-size: 14px; margin-top: 20px; }

/* cards (collections, compare, blog) */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-1); overflow: hidden; text-decoration: none; transition: border-color .15s, background .15s; }
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card .th { aspect-ratio: 8 / 5; background: var(--surface-3); overflow: hidden; }
.card .th img { width: 100%; height: 100%; object-fit: cover; }
.card .th.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.card .th.mosaic img:first-child { grid-row: 1 / 3; }
.card .bd { padding: 16px 18px 20px; }
.card .ct { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.card .n { display: block; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.card.text .bd { padding: 24px; }
.steps { counter-reset: s; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 48px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-1); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); font: 500 13px var(--mono); margin-bottom: 16px; }
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: 15px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 56px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.shot-wide { margin-top: 56px; }

/* ---------- revision 1 ---------- */
.eyebrow { margin-bottom: 14px; }
.dashes li { position: relative; padding-left: 20px; }
.dashes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--text-3); }
.dashes.facts { margin-top: 24px; display: grid; gap: 10px; }
.dashes.facts li { display: block; font-size: 15px; color: var(--text-1); }
.hero { padding-top: 56px; }
@media (min-width: 900px) { .hero { padding-top: 88px; } }
.hero .cta { margin-top: 28px; }
.hero-frame { display: flex; margin-top: 44px; max-width: 1200px; }
.hero-frame .hf-wall { flex: 1 1 0; min-width: 0; overflow: hidden; position: relative; }
.hero-frame .hf-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; max-width: none; }
.hero-frame .hf-panel { flex: 0 0 410px; border-left: 1px solid var(--line); min-height: 550px; }
.hero-frame .hf-panel img { width: 410px; height: 550px; max-width: none; }
@media (max-width: 699px) {
  .hero-frame { margin-top: 32px; max-width: 360px; }
  .hero-frame .hf-wall { display: none; }
  .hero-frame .hf-panel { flex: 1 1 auto; border-left: 0; min-height: 0; }
  .hero-frame .hf-panel img { width: 100%; height: auto; }
}
.frame.fit { width: fit-content; max-width: 100%; margin: 0; }
.frame.fit img, .frame.fit picture { width: auto; max-width: 100%; height: auto; }
.frame.fit picture { display: block; }
.media { min-width: 0; }
.media.end { justify-self: end; } .media.start { justify-self: start; }
.media pre.code { max-width: 100%; }
.feature.stack { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.feature.stack .copy p { max-width: 56ch; }
.feature.stack .media .frame { justify-self: start; }
.note-card { margin: 0; width: 100%; max-width: 560px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface-1); overflow: hidden; }
.note-card img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.note-card figcaption { padding: 14px 20px 0; font-size: 13px; color: var(--text-3); }
.note-card .mono { margin: 0; padding: 12px 20px 22px; font: 400 18px/1.55 var(--mono); color: var(--text-1); overflow-wrap: anywhere; }
.rows { display: block; }
.rows .feature { padding: 56px 0; border-top: 1px solid var(--line); }
.rows .feature:first-child { margin-top: 56px; }
.rows .feature:last-child { border-bottom: 1px solid var(--line); }
.rows .num { font: 500 13px/1 var(--mono); color: var(--text-3); margin-bottom: 14px; }
@media (min-width: 960px) { .rows .feature { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
/* menu below 900 */
.nav-menu { display: block; margin-left: 0; }
.nav-menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-control); color: var(--text-2); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--surface-2); color: var(--text-1); }
.nav-menu nav { position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: grid; }
.nav-menu nav a { padding: 12px 4px; font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-menu nav a:last-child { border-bottom: 0; }
@media (min-width: 900px) { .nav-menu { display: none; } }
.ph-row{display:flex;justify-content:center;margin:20px 0 0}
.ph-badge{display:inline-block;line-height:0}
.ph-badge img{width:250px;height:54px}
.foot-brand .ph-badge{margin-top:16px}

/* ================= revision 2: motion, demo stages, footer (spec: project/04-motion/landing-spec.md) ================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* hero entrance: CSS only, 5 steps x 60 ms, 420 ms each, done by 660 ms */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.in { animation: rise .42s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.in-1 { --i: 0; } .in-2 { --i: 1; } .in-3 { --i: 2; } .in-4 { --i: 3; } .in-5 { --i: 4; }
.hero-stage { position: relative; isolation: isolate; }
.hero { overflow: clip; }
.hero-par .hero-frame { margin-top: 44px; }
@media (max-width: 699px) { .hero-par .hero-frame { margin-top: 32px; } }

/* scroll reveals: JS adds .is-in once. Start states only exist with JS and motion allowed. */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { animation: rise .52s var(--ease) both; }
/* wall tiles: the tile stays as a grey plate, only its image arrives. Keyframe animations (not transitions) held 60 fps under 4x throttle. */
.js .wall img { opacity: 0; }
.js .wall a.is-in img { animation: rise .5s var(--ease) both; animation-delay: var(--d, 0ms); }

/* reference wall: lift and a quiet caption */
.wall a { transition: transform .22s var(--ease); }
.wall .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: 12px; font-weight: 500; letter-spacing: .005em; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
@media (hover: hover) {
  .wall a:hover { transform: translateY(-4px); }
  .wall a:hover img { transform: scale(1.04); }
}
.wall a:hover .cap, .wall a:focus-visible .cap { opacity: 1; transform: none; }
.wall a:focus-visible { transform: translateY(-4px); }

/* beats: copy row, then a full-width demo stage */
.beats { padding-top: 24px; }
.beat { padding-top: 112px; }
.beat-head { display: grid; gap: 16px; margin-bottom: 36px; align-items: end; }
.beat-head h2 { font-size: clamp(28px, 4vw, 44px); max-width: 16ch; }
.beat-copy p { color: var(--text-2); font-size: 17px; max-width: 44ch; text-wrap: pretty; }
.beat-copy .btn, .beat-copy .agents { margin-top: 20px; }
.beat-copy .agents { margin-bottom: 4px; }
.beat-copy .agents + .btn { margin-top: 16px; }
@media (min-width: 900px) { .beat-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } .beat-copy { padding-bottom: 6px; } }
.beat-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 1000px) { .beat-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.beat.compact .beat-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.beat.compact .beat-head h2 { font-size: clamp(26px, 3vw, 34px); max-width: 18ch; }
.beat.compact .beat-copy p { max-width: 40ch; }
.beats > .feature { padding-top: 112px; }

.stage { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #0c0c0c; border: 1px solid var(--line-2); box-shadow: var(--shadow-frame); contain: paint; }
.beat.compact .stage { border-radius: 16px; }
.clip { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.clip-btn { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(17,17,17,.72); color: #fff; cursor: pointer; opacity: .6; transition: opacity .15s, background .15s; }
.stage:hover .clip-btn, .clip-btn:focus-visible { opacity: 1; }
.clip-btn:hover { background: rgba(17,17,17,.92); }
.clip-btn .i-play { display: none; }
.clip-btn[data-paused] .i-play { display: block; } .clip-btn[data-paused] .i-pause { display: none; }
@media (hover: none) { .clip-btn { opacity: .85; } }
/* stage scale-in: scroll-linked where the browser supports it, otherwise the .is-in reveal above */
@keyframes stage-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
/* "clarity in": a dark veil lifts off the stage (opacity only; a live blur filter over a playing video cost 17% of frames) */
.stage::after { content: ""; position: absolute; inset: 0; background: #0c0c0c; opacity: 0; pointer-events: none; }
@keyframes veil { from { opacity: .85; } to { opacity: 0; } }
.js .stage.is-in::after { animation: veil 1.1s var(--ease) both; }
.js .stage { opacity: 0; transform: scale(.96); }
.js .stage.is-in { animation: stage-in .85s var(--ease) both; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-par { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
  }
}
@keyframes drift { to { transform: translateY(-24px); } }

/* MCP panel: copy, the gallery-in-chat clip, then the config */
.mcp { margin-top: 112px; align-items: center; }
.mcp-media { min-width: 0; }
.mcp-code { grid-column: 1 / -1; }
.mcp-code .meta { margin-top: 12px; }
@media (min-width: 960px) { .mcp { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 56px; } }
.closer { padding-top: 144px; }
.closer h2 { font-size: clamp(36px, 6vw, 64px); max-width: 12ch; }

/* ================= footer ================= */
.foot { margin-top: 112px; border-top: 1px solid var(--line); padding: 56px 0 0; overflow: clip; }
.foot-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .logo { margin: 0 0 14px; }
.foot-brand p { color: var(--text-3); font-size: 14px; max-width: 30ch; }
.foot h3 { font-size: 13px; font-weight: 500; color: var(--text-1); margin-bottom: 16px; }
.foot li + li { margin-top: 10px; }
.foot a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: color .15s; }
.foot a:hover { color: var(--text-1); }
.ph-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 13px !important; color: var(--text-2); transition: color .15s, border-color .15s, background .15s; }
.ph-link:hover { color: var(--text-1); border-color: var(--text-3); background: var(--surface-1); }
.ph-link span { color: var(--text-3); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); } .foot-brand { grid-column: auto; } }
.foot-status { margin-top: 56px; padding: 18px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); }
.foot-status p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.foot-mcp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-1); flex: none; }
.foot-mcp code { font: 400 12px var(--mono); color: var(--text-1); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.foot-mcp .muted { color: var(--text-3); }
.foot-works span { color: var(--text-1); } .foot-works span + span::before { content: "/"; margin: 0 8px; color: var(--text-3); }
.foot-works { color: var(--text-3); }
.foot-end { padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.foot-end a { font-size: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.foot-end a:hover { color: var(--text-1); }
.foot-legal { display: flex; gap: 16px; } .foot-legal a { text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .in { animation: none; }
  .js [data-reveal], .js .wall img, .js .stage, .js .foot-word { opacity: 1; transform: none; transition: none; animation: none !important; }
  .js .stage::after { animation: none !important; }
  .js .stage::after { animation: none !important; }
  .wall a, .wall img, .wall .cap { transition: none; }
}
.foot .logo { color: var(--text-1); }
.foot { margin-top: 72px; }
.feature .copy .eyebrow, .mcp .eyebrow { font: 500 12px/1 var(--mono); max-width: none; margin-top: 0; color: var(--text-3); }
@media (max-width: 699px) { .beat, .beats > .feature, .mcp { padding-top: 72px; margin-top: 0; } .mcp { padding: 24px 20px; margin-top: 72px; } .beat-head { margin-bottom: 24px; } .closer { padding-top: 96px; } }
@media (min-width: 1000px) { .beat.compact { display: flex; flex-direction: column; } .beat.compact .stage { margin-top: auto; } }

/* ================= round 2: hero wall, cursor tilt, footer closing ================= */
.hero.hw { position: relative; isolation: isolate; padding: 0; overflow: clip; display: flex; align-items: center; height: clamp(560px, calc(100svh - var(--nav-h)), 960px); }
.hw-poster { transition: opacity .9s var(--ease); }
.hw.live .hw-poster { opacity: 0; }
.hw-poster, .hw-poster img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center top; max-width: none; }
.hw-wall { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding: 0 12px; opacity: 0; transition: opacity .9s var(--ease); }
.hw.live .hw-wall { opacity: 1; }
.hw-col { position: relative; min-width: 0; margin-top: var(--off, 0px); }
.hw-track { display: grid; gap: 12px; animation: hw-drift var(--dur, 160s) linear infinite; }
.hw-track a { display: block; aspect-ratio: 8 / 5; border-radius: var(--r-tile); overflow: hidden; background: var(--surface-2); transition: transform .14s ease-out; }
.hw-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hw-drift { to { transform: translateY(calc(-50% - 6px)); } }
.hw-wall:hover .hw-track, .hw.off .hw-track { animation-play-state: paused; }
.hw-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(17,17,17,.7), rgba(17,17,17,0) 5%, rgba(17,17,17,0) 95%, rgba(17,17,17,.7)),
  linear-gradient(180deg, rgba(17,17,17,.8), rgba(17,17,17,0) 7%),
  linear-gradient(0deg, var(--ground) 0, rgba(17,17,17,.7) 6%, rgba(17,17,17,0) 22%); }
.hw-inner { pointer-events: none; }
.hw-inner > * { pointer-events: auto; }
.hero.hw h1 { max-width: none; font-size: clamp(38px, 6.1vw, 76px); line-height: 1.02; }
.hero.hw h1 span { display: block; }
.hero.hw .sub { color: #c4c4c4; max-width: 46ch; }
@media (max-width: 1099px) { .hw-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } .hw-col:nth-child(n+6) { display: none; } }
@media (max-width: 699px) {
  .hw-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 8px; } .hw-col:nth-child(n+4) { display: none; } .hw-track { gap: 8px; }
  .hero.hw h1 span { display: inline; } .hero.hw .sub { color: #d0d0d0; }
  .hw-scrim { background: linear-gradient(180deg, rgba(17,17,17,.8), rgba(17,17,17,0) 6%), linear-gradient(0deg, var(--ground) 0, rgba(17,17,17,.7) 5%, rgba(17,17,17,0) 18%); }
}
/* cursor-reactive tilt on tiles (fine pointers only; set from site.js, rAF-throttled) */
@media (hover: hover) and (pointer: fine) {
  .wall a:hover, .hw-track a:hover { transform: perspective(600px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .hw-track a:hover { transform: perspective(600px) scale(1.03) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .hw-track { animation: none; } .hw-wall { transition: none; } }

/* footer closing moment */
.foot-close { position: relative; margin-top: 56px; overflow: hidden; }
.foot-line { margin: 0; text-align: center; font: 600 clamp(24px, 3.6vw, 44px)/1.08 var(--font); letter-spacing: -0.035em; color: var(--text-1); text-wrap: balance; }
.foot-line span { color: var(--text-3); }
.foot-word { display: block; width: calc(100% - 24px); height: auto; margin: clamp(16px, 2.6vw, 36px) auto -6.2vw; color: rgba(255,255,255,.085); }
.js .foot-word { opacity: 0; }
@keyframes foot-rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
.js .foot-close.is-in .foot-word { animation: foot-rise 1s var(--ease) both; }
.foot { padding-bottom: 0; }

/* ================= round 4: wall + headline only; the app moment sits in the first section below ================= */
.hw-copy { position: relative; width: 100%; text-align: center; padding-bottom: 8px; }
/* soft radial scrim that travels with the text block; a denser one under the subhead */
.hw-copy::before { content: ""; position: absolute; z-index: -1; inset: -100px -16vw -90px; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(17,17,17,.88) 0, rgba(17,17,17,.88) 68%, rgba(17,17,17,0) 100%); }
.hw-copy .sub { position: relative; margin: 24px auto 0; }
.hw-copy .sub::before { content: ""; position: absolute; z-index: -1; inset: -30px -11vw; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(17,17,17,.97) 0, rgba(17,17,17,.97) 74%, rgba(17,17,17,0) 100%); }
.hw-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 32px; }
.hw-link { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.hw-link:hover { color: var(--text-1); }
.app-moment { padding: 8px 0 0; }
.app-moment .hero-frame { margin: 0 auto; }
@media (max-width: 699px) { .hw-copy::before { inset: -80px -26vw -70px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(17,17,17,.9) 0, rgba(17,17,17,.9) 80%, rgba(17,17,17,0) 100%); } .hw-copy .sub::before { inset: -24px -20vw; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(17,17,17,.97) 0, rgba(17,17,17,.97) 84%, rgba(17,17,17,0) 100%); } .app-moment .hero-frame { margin-top: 0; } }
.hw-cta { position: relative; }
.hw-cta::before { content: ""; position: absolute; z-index: -1; inset: -16px -10vw; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(17,17,17,.94) 0, rgba(17,17,17,.94) 70%, rgba(17,17,17,0) 100%); }
@media (max-width: 699px) { .hw-cta::before { inset: -18px -12vw; } }
.hero-frame .hf-panel img { aspect-ratio: 410 / 550; }
