/* RISE R-01 — product page. System SF stack, white product on soft grey, black for the inside story,
   the status-light orange as the only accent. Scroll-scrubbed sections pin a sticky stage; under reduced
   motion they collapse to static figures. */

:root {
  --bg: #f5f5f7;
  --white: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #d9661f;
  --accent-ink: #b4520f;
  --dark: #000;
  --dark-ink: #f5f5f7;
  --dark-muted: #a1a1a6;
  --wrap: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --nav: rgba(245, 245, 247, .72);
  --tint: #e8e8ed;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
figure { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; height: 48px; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s, background .5s var(--ease); }
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav.on-dark { background: rgba(22, 22, 23, .72); }
.nav.on-dark .brand, .nav.on-dark nav a { color: var(--dark-ink); }
.nav-inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { font-weight: 600; color: var(--ink); font-size: 17px; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 400; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--ink); font-size: 12px; opacity: .8; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff; font-size: 12px; padding: 4px 11px; border-radius: 980px; }
.nav-cta:hover { background: var(--accent-ink); text-decoration: none; }

/* Type */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent-ink); margin-bottom: 8px; letter-spacing: -.01em; }
.dark .eyebrow { color: var(--accent); }
h2 { font-size: clamp(40px, 6.4vw, 80px); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-sub { margin-top: 18px; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.33; color: var(--muted); letter-spacing: -.015em; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.45; letter-spacing: -.01em; }

/* Hero: pinned while the product settles back */
.hero { height: 190vh; position: relative; transition: background-color .5s var(--ease), color .5s var(--ease); }
/* Charcoal Black: the hero's backdrop darkens in step with the render's cross-fade. */
.hero[data-filament="charcoal-black"] { background-color: var(--dark); color: var(--dark-ink); }
.hero .hero-sub, .hero .pill, .swatches button { transition: color .5s var(--ease), border-color .5s var(--ease); }
.hero[data-filament="charcoal-black"] :is(.hero-sub, .pill, .swatches button) { color: var(--dark-muted); }
.hero[data-filament="charcoal-black"] .pill { border-color: #424245; }
.hero[data-filament="charcoal-black"] .swatches button[aria-pressed="true"] { color: var(--dark-ink); border-color: #424245; }
.hero[data-filament="charcoal-black"] .eyebrow { color: var(--accent); }
.hero-sticky { position: sticky; top: 48px; height: calc(100vh - 48px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; padding-top: clamp(28px, 6vh, 72px); text-align: center; }
.hero-copy { position: relative; z-index: 2; padding-inline: 16px; opacity: calc(1 - var(--p, 0) * 2.2); transform: translateY(calc(var(--p, 0) * -60px)); }
.hero .eyebrow { font-size: clamp(19px, 2vw, 24px); }
.hero h1 { font-size: clamp(52px, 9.4vw, 120px); letter-spacing: -.045em; }
.hero-sub { margin: 18px auto 0; max-width: 620px; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; color: var(--muted); }
.pill { display: inline-block; margin-top: 22px; font-size: 13px; padding: 5px 12px; border-radius: 980px; border: 1px solid var(--line); color: var(--muted); }
.hero-figure { flex: 1 1 auto; min-height: 0; width: min(1100px, 92vw); margin-top: 1vh; transform: translateY(calc(var(--p, 0) * -18vh)) scale(calc(1 + var(--p, 0) * .22)); transform-origin: 50% 40%; will-change: transform; }
.hero-figure { display: grid; }
.hero-figure picture { grid-area: 1 / 1; min-height: 0; }
.hero-figure picture, .hero-figure img { width: 100%; height: 100%; object-fit: contain; }
.hero-figure img { transition: opacity .5s var(--ease), visibility 0s; }
.hero[data-filament="muted-white"] .is-charcoal-black, .hero[data-filament="charcoal-black"] .is-muted-white { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.swatches { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.swatches button { display: flex; align-items: center; gap: 7px; font: 13px var(--font); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 980px; padding: 4px 11px 4px 5px; cursor: pointer; }
.swatches button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); }
.chip { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .45); }
[data-filament="muted-white"] > .chip { background: #dcd9d0; }
[data-filament="charcoal-black"] > .chip { background: #2e2e2e; }
/* Statement */
.statement { padding: clamp(80px, 14vh, 160px) 0; background: var(--white); }
.statement h2 { font-size: clamp(36px, 5.6vw, 72px); max-width: 920px; }
.statement h2 span { color: var(--accent); }
.statement-body { margin-top: 28px; max-width: 680px; font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--muted); }

/* Scroll-scrubbed stages */
.scrub { height: 420vh; position: relative; }
.scrub-sticky { position: sticky; top: 48px; height: calc(100vh - 48px); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: clamp(24px, 5vh, 56px) 16px clamp(20px, 4vh, 40px); overflow: hidden; }
.scrub-head { text-align: center; }
.stage { position: relative; width: min(640px, 80vw, 52vh); aspect-ratio: 1; align-self: center; }
.stage-wide { width: min(1100px, 92vw, 92vh); aspect-ratio: 16 / 10; }
.stage picture, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.stage-canvas { opacity: 0; }
.stage.is-live .stage-canvas { opacity: 1; }
.stage.is-live picture { opacity: 0; }
.callouts { list-style: none; margin: 0; padding: 0; position: relative; width: min(560px, 100%); min-height: 4.2em; text-align: center; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.35; color: var(--muted); }
.callouts li { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.callouts li.on { opacity: 1; transform: none; }
.callouts strong { color: var(--ink); font-weight: 600; }
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .callouts { color: var(--dark-muted); }
.dark .callouts strong { color: var(--dark-ink); }

/* Kitchen */
.kitchen { position: relative; background: var(--white); overflow: hidden; }
.kitchen-figure { overflow: hidden; }
.kitchen-figure img { width: 100%; transform: scale(calc(1.12 - var(--p, 0) * .12)); transform-origin: 50% 60%; will-change: transform; }
.kitchen-copy { padding: clamp(48px, 9vh, 96px) 0; text-align: center; }
.kitchen-copy p { margin: 18px auto 0; max-width: 600px; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); }

/* How */
.how { padding: clamp(96px, 16vh, 180px) 0; }
.curve { background: var(--white); border-radius: 28px; padding: clamp(20px, 4vw, 48px); max-width: 860px; margin: 0 auto; }
.curve svg { width: 100%; }
.curve .axis { stroke: var(--line); stroke-width: 1.5; }
.curve .target { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 6; }
.curve .line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.curve .alert { fill: var(--accent); opacity: clamp(0, calc((var(--p, 1) - .45) * 8), 1); }
.curve .labels { fill: var(--muted); font: 15px var(--font); }
.curve .callout { fill: var(--accent-ink); font-weight: 600; opacity: clamp(0, calc((var(--p, 1) - .45) * 8), 1); }
.curve figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--white); border-radius: 22px; padding: 32px 28px; }
.steps span { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.steps h3 { font-size: 28px; margin: 8px 0 10px; }
.steps p { color: var(--muted); }

/* Air */
.air { padding: clamp(96px, 16vh, 180px) 0; background: var(--white); }
.air-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.air-copy h2 { margin-bottom: 26px; }
.air-copy p { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-bottom: 16px; }
.air-copy .fine { font-size: 13px; }
.air-figure svg { width: 100%; max-width: 380px; margin-inline: auto; }
.air-figure figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.air .shell { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.air .part { fill: var(--tint); }
.air .eye { fill: var(--ink); }
.air .pocket { fill: var(--white); stroke: #2f7de1; stroke-width: 2; stroke-dasharray: 5 4; }
.air .part-label { font: 13px var(--font); fill: var(--muted); }
.air .vents rect { fill: var(--ink); }
.air .flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; animation: flow 1.6s linear infinite; }
.air .cool { stroke: #2f7de1; }
.air .warm { stroke: var(--accent); }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* Print */
.print { padding: clamp(96px, 16vh, 180px) 0; }
/* Wide renders run edge to edge, out of the .wrap column. */
.print-figure, .pair-figure, .parts-figure { width: 100vw; margin-inline: calc(50% - 50vw); }
.print-figure img, .pair-figure img, .parts-figure img { width: 100%; }
.parts-figure figcaption, .pair-figure figcaption { padding-inline: 16px; }
.stats { list-style: none; padding: 0; margin: 56px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-size: clamp(48px, 6vw, 80px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.pair-figure { margin-top: 56px; }
.parts-figure figcaption, .pair-figure figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* Specs */
.specs { padding: clamp(96px, 16vh, 180px) 0; background: var(--white); }
.legend { list-style: none; padding: 0; margin: 0 auto 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; padding: 2px 8px; border-radius: 980px; vertical-align: 2px; white-space: nowrap; }
.tag-target { background: #fdeee4; color: var(--accent-ink); }
.tag-proposed { background: #eef3fc; color: #1d5fbf; }
.tag-modeled { background: #eef0ee; color: #3d5a3f; }
.spec-list { max-width: 860px; margin: 0 auto; }
.spec-list div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--ink); }
.spec-list .tag { margin-left: 6px; }

/* Open questions */
.open { padding: clamp(96px, 16vh, 180px) 0; }
.questions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.questions li { background: var(--white); border-radius: 22px; padding: 28px; }
.questions h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 10px; }
.questions p { color: var(--muted); font-size: 16px; }
.signal { margin: 40px auto 0; max-width: 720px; text-align: center; font-size: 17px; color: var(--muted); }

/* Waitlist */
.waitlist { padding: clamp(80px, 14vh, 160px) 0; }
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 520px; margin: 0 auto; }
.signup input { flex: 1 1 240px; font: 17px var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 980px; padding: 12px 18px; }
.signup button { font: 600 17px var(--font); color: #fff; background: var(--accent); border: 0; border-radius: 980px; padding: 12px 22px; cursor: pointer; }
.signup button:hover { background: var(--accent-ink); }
.signup button:disabled { opacity: .6; cursor: default; }
.signup-status { flex-basis: 100%; min-height: 1.5em; text-align: center; font-size: 15px; color: var(--muted); }

/* Downloads */
.downloads { padding: clamp(80px, 14vh, 160px) 0; background: var(--white); }
.dl { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 860px; }
.dl a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); }
.dl a:hover { text-decoration: none; color: var(--accent-ink); }
.dl span { font-weight: 600; }
.dl small { color: var(--muted); font-size: 14px; text-align: right; }
.downloads .fine { max-width: 860px; margin-inline: auto; }

/* Footer */
.footer { padding: 28px 0 40px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 18px; }
.lost h1 { font-size: clamp(48px, 8vw, 96px); }

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

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .steps, .questions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .air-grid { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 6px; }
  .dl a { flex-direction: column; gap: 4px; }
  .dl small { text-align: left; }
  .scrub { height: 340vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .scrub { height: auto; }
  .hero-sticky, .scrub-sticky { position: static; height: auto; }
  .hero-copy, .hero-figure, .kitchen-figure img { transform: none; opacity: 1; }
  .callouts { min-height: 0; }
  .callouts li { position: static; opacity: 1; transform: none; margin-top: 12px; }
  .stage-canvas { display: none; }
  .air .flow { animation: none; stroke-dasharray: none; }
  .curve .line { stroke-dashoffset: 0; }
  .curve .alert, .curve .callout { opacity: 1; }
}
