html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { overflow-x: clip; }
.site-header { height: 88px; max-width: 1600px; margin: auto; padding: 0 6%; display: flex; align-items: center; justify-content: space-between; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 12px; }
.site-header nav > a:not(.btn) { color: var(--muted); transition: color .2s; }
.site-header nav > a:not(.btn):hover { color: var(--ink); }
.site-header .btn { min-height: 38px; padding: 0 18px; font-size: 12px; }
.hero { max-width: 1600px; min-height: 660px; height: calc(100svh - 88px); max-height: 930px; margin: auto; position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; padding: 40px 8% 80px; gap: 4%; isolation: isolate; overflow: clip; }
.hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 75%; height: 90%; top: -7%; right: -10%; background: radial-gradient(ellipse at center, #dce8e25c, #e5e9ec38 47%, transparent 72%); }
.hero-copy { position: relative; z-index: 2; padding-bottom: 25px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 32px; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.brand-signal { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px #274c4624; }
.hero h1 { font-size: clamp(56px, 5.5vw, 86px); font-weight: 500; line-height: 1.2; letter-spacing: -.065em; white-space: nowrap; }
.hero h1 span { color: var(--accent); }
.hero-description { font-size: 15px; line-height: 2; color: var(--muted); margin: 30px 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-actions .btn { min-height: 48px; padding: 0 25px; font-size: 13px; }
.watch-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; transition: color .2s; }
.watch-link:hover { color: var(--ink); }
.watch-circle { width: 24px; height: 24px; display: grid; place-items: center; }
.watch-circle svg { transform: rotate(90deg); width: 15px; transition: transform .2s; }
.watch-link:hover .watch-circle svg { transform: rotate(90deg) translateX(3px); }
.hero-note { display: flex; gap: 0; font-size: 10px; color: var(--secondary); margin-top: 40px; letter-spacing: .06em; }
.hero-note span + span::before { content: "/"; margin: 0 14px; color: #a5aeb3; }
.hero-art { height: 100%; max-height: 660px; position: relative; display: flex; align-items: center; justify-content: center; perspective: 1200px; isolation: isolate; }
.hero-light { position: absolute; width: 140%; height: 110%; pointer-events: none; background: radial-gradient(ellipse at 55% 50%, #dce5df5c, #e4e9e950 35%, transparent 69%); z-index: -1; }
.hero-poster { width: 84%; max-width: 420px; transform: rotate(-3deg); border: 0; box-shadow: 0 35px 75px -18px #263b3333; transition: transform .9s cubic-bezier(.22, 1, .36, 1), box-shadow .9s; }
.hero-art:hover .hero-poster, .hero-art:focus-visible .hero-poster { transform: rotate(-1deg) translateY(-6px); box-shadow: 0 40px 80px -18px #263b333d; }
.art-caption { position: absolute; bottom: -26px; right: 0; display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); }
.caption-line { height: 1px; width: 35px; background: #274c4630; }
.hero-index { position: absolute; top: 6%; right: -5%; font-size: 9px; letter-spacing: .17em; color: var(--secondary); writing-mode: vertical-rl; }

/* The story is a single open stage. Only working controls receive a surface. */
.story { position: relative; height: 400vh; background: #eff2f3; border-top: 1px solid var(--line); }
.story-sticky { position: sticky; top: 0; height: 100svh; min-height: 670px; max-height: 1100px; display: flex; flex-direction: column; padding: 34px 7% 22px; max-width: 1700px; margin: auto; }
.story-top { display: flex; justify-content: space-between; align-items: center; }
.story-top .eyebrow { font-size: 10px; letter-spacing: .12em; }
.step-count { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--secondary); letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.step-count b { font-weight: 500; color: var(--accent); }
.story-content { display: grid; grid-template-columns: 1.25fr .85fr; gap: 7%; flex: 1; min-height: 0; align-items: center; padding: 20px 0; }
.demo-stage { position: relative; height: 100%; min-height: 420px; max-height: 650px; display: grid; place-items: center; perspective: 1200px; isolation: isolate; }
.demo-stage::before { content: ""; position: absolute; inset: 6% 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, #dce8e260, transparent 67%); }
.scene-frame { position: relative; width: min(67%, 335px); aspect-ratio: 4/5; transform: translateX(-8px); transition: transform .85s cubic-bezier(.2, .7, .2, 1); container-type: inline-size; }
.scene-layer { position: absolute; inset: 0; transition: transform .85s cubic-bezier(.2, .7, .2, 1), opacity .6s, background .8s; transform-style: preserve-3d; }
.scene-background { background: linear-gradient(125deg, #ebd0ac, #eedec6 45%, #cbb795); box-shadow: 0 16px 40px #263b3324; }
.scene-graphics { overflow: hidden; }
.scene-graphics::before { content: ""; position: absolute; border: 1px solid #fff9df80; border-radius: 50%; left: -40%; top: 30%; width: 120%; aspect-ratio: 1; box-shadow: 0 0 0 48px #fff9df14, 0 0 0 95px #fff9df12; }
.scene-copy { padding: 7% 8.5%; color: #383b2c; }
.scene-kicker { font-size: 2.5cqw; letter-spacing: .18em; }
.scene-copy h3 { font: 400 9.7cqw/1.28 "Songti SC", "STSong", Georgia, serif; letter-spacing: -.04em; margin-top: 8%; }
.scene-product { pointer-events: none; }
.scene-product img { position: absolute; width: 59%; height: 66%; object-fit: contain; left: 22%; top: 29%; transform: rotate(-7deg); transition: transform .8s, left .8s; filter: drop-shadow(14px 15px 10px #7463402b); }
.scene-footer { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 8.5% 5%; font-size: 2.3cqw; letter-spacing: .05em; color: #383b2c; }
.scene-footer b { font: 400 4cqw/1 Georgia; letter-spacing: .18em; }
.scene-dimension { position: absolute; top: calc(100% + 16px); left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); letter-spacing: .05em; transition: opacity .4s; }
.story-copy { padding-bottom: 15px; }
.step-label { font-size: 11px; letter-spacing: .1em; color: var(--accent); margin-bottom: 26px; }
.story-copy h2 { font-size: clamp(32px, 3.2vw, 51px); font-weight: 500; line-height: 1.33; letter-spacing: -.055em; }
.story-copy > p:not(.step-detail) { font-size: 14px; line-height: 2; color: var(--muted); margin: 24px 0; max-width: 340px; }
.step-detail { font-size: 11px; letter-spacing: .03em; color: var(--secondary); }
.step-controls { display: flex; gap: 10px; margin-top: 35px; }
.step-controls button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .2s, border-color .2s; }
.step-controls button:hover:not(:disabled) { background: var(--raised); border-color: #274c4640; }
.step-controls .lb-icon { width: 16px; height: 16px; }
.story-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); gap: 25px; }
.story-tabs button { position: relative; display: flex; gap: 12px; align-items: center; padding: 20px 0 7px; border: 0; background: none; color: var(--muted); font-size: 12px; text-align: left; transition: color .2s; }
.story-tabs button span { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--secondary); }
.story-tabs button::before { content: ""; position: absolute; left: 0; right: 100%; top: -1px; height: 1px; background: var(--accent); transition: right .5s; }
.story-tabs button.is-active, .story-tabs button:hover { color: var(--ink); }
.story-tabs button.is-active span { color: var(--accent); }
.story-tabs button.is-active::before { right: 0; }
.idea-bubble { position: absolute; z-index: 5; left: 9%; top: 22%; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; max-width: 320px; transition: transform .7s, opacity .5s; }
.idea-bubble > span { font-size: 10px; color: var(--muted); }
.idea-bubble p { font-size: 21px; line-height: 1.55; margin: 17px 0 22px; letter-spacing: -.035em; }
.idea-bubble > div { display: flex; align-items: center; gap: 9px; font-size: 11px; border-top: 1px solid var(--line); padding-top: 16px; }
.idea-bubble > div i:last-child { margin-left: auto; }
.idea-bubble .lb-icon { width: 15px; height: 15px; }
.layer-labels { position: absolute; right: 4%; top: 25%; height: 52%; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); opacity: 0; transition: opacity .6s; }
.layer-labels span { display: flex; align-items: center; gap: 9px; }
.layer-labels span::before { content: ""; width: 28px; height: 1px; background: #274c4630; }
.selection { position: absolute; left: 20%; top: 28%; width: 60%; height: 67%; border: 1px solid var(--accent); opacity: 0; transition: opacity .4s; }
.selection small { position: absolute; top: calc(100% + 9px); left: 0; background: var(--accent); color: var(--accent-ink); padding: 3px 7px; white-space: nowrap; font-size: 9px; }
.edit-bubble { position: absolute; z-index: 6; bottom: 15%; left: 10%; right: 6%; padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 12px; font-size: 12px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s; }
.edit-bubble .lb-icon { width: 17px; height: 17px; }
.export-bubble { position: absolute; z-index: 6; bottom: 17%; left: 12%; right: 3%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 15px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s; box-shadow: 0 15px 35px #263b3314; }
.export-icon { width: 34px; height: 34px; background: #274c4610; border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.export-bubble strong { display: block; font-size: 13px; font-weight: 500; }
.export-bubble div > span { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.demo-stage:not([data-phase="0"]) .idea-bubble { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.demo-stage[data-phase="0"] .scene-copy, .demo-stage[data-phase="0"] .scene-footer, .demo-stage[data-phase="0"] .scene-graphics, .demo-stage[data-phase="0"] .scene-dimension { opacity: 0; }
.demo-stage[data-phase="0"] .scene-frame { transform: translateX(35px) scale(.76) rotate(8deg); }
.demo-stage[data-phase="0"] .scene-product img { width: 70%; height: 80%; top: 10%; left: 15%; transform: rotate(0deg); }
.demo-stage[data-phase="2"] .scene-frame { transform: translateX(-45px) scale(.85) rotateX(15deg) rotateY(-17deg) rotateZ(-7deg); }
.demo-stage[data-phase="2"] .scene-copy { transform: translate(-44px, -58px); background: #fffef92e; outline: 1px solid #274c4640; }
.demo-stage[data-phase="2"] .scene-product { transform: translate(12px, -6px); background: #fffef919; outline: 1px solid #274c4640; }
.demo-stage[data-phase="2"] .scene-footer { transform: translate(49px, 45px); outline: 1px solid #274c4640; background: #fffef92b; }
.demo-stage[data-phase="2"] .scene-background, .demo-stage[data-phase="2"] .scene-graphics { transform: translate(88px, 90px); }
.demo-stage[data-phase="2"] .scene-dimension { opacity: 0; }
.demo-stage[data-phase="2"] .layer-labels { opacity: 1; }
.demo-stage[data-phase="3"] .scene-product img { transform: rotate(3deg) scale(.9) translate(15px, -7px); }
.demo-stage[data-phase="3"] .selection, .demo-stage[data-phase="4"] .selection { opacity: 1; }
.demo-stage[data-phase="4"] .scene-product img { transform: rotate(0deg) scale(.95) translate(20px, -10px); }
.demo-stage[data-phase="4"] .edit-bubble, .demo-stage[data-phase="5"] .export-bubble { opacity: 1; transform: none; }

.closing { position: relative; isolation: isolate; padding: 135px 8% 140px; text-align: center; background: var(--paper); }
.closing::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0; background: radial-gradient(ellipse at 50% 100%, #dce8e260, transparent 63%); }
.closing-mark { display: flex; justify-content: center; margin-bottom: 28px; }
.closing-mark .lb-mark { width: 52px; height: 52px; color: var(--accent); }
.closing h2 { font-size: clamp(38px, 4vw, 62px); line-height: 1.3; letter-spacing: -.055em; font-weight: 500; margin: 26px 0 34px; }
.closing .btn { min-height: 47px; padding: 0 25px; font-size: 13px; }
.closing > p:last-child { font-size: 11px; color: var(--secondary); margin-top: 25px; }
.site-footer { display: flex; align-items: center; gap: 30px; padding: 35px 6%; font-size: 11px; color: var(--secondary); border-top: 1px solid var(--line); }
.site-footer .wordmark { color: var(--ink); font-size: 18px; }
.site-footer > span:last-child { margin-left: auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: landing-arrive .9s cubic-bezier(.22, 1, .36, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .hero-copy > :nth-child(5) { animation-delay: 280ms; }
  .hero-art { animation: landing-art-arrive 1.3s cubic-bezier(.22, 1, .36, 1) 100ms both; }
}
@keyframes landing-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes landing-art-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1100px) {
  .hero { padding-left: 6%; padding-right: 6%; gap: 3%; min-height: 620px; }
  .hero h1 { font-size: clamp(50px, 6vw, 65px); }
  .hero-copy > .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 16px; }
  .hero-actions .btn { padding: 0 19px; }
  .hero-note { font-size: 10px; }
  .story-sticky { padding-left: 5%; padding-right: 5%; }
  .story-content { gap: 3%; grid-template-columns: 1.15fr .85fr; }
  .scene-frame { width: 73%; }
  .story-copy h2 { font-size: 34px; }
  .story-copy > p:not(.step-detail) { font-size: 14px; }
  .story-tabs { gap: 15px; }
  .story-tabs button { gap: 7px; font-size: 11px; }
  .story-tabs button span { display: none; }
}
@media (max-width: 650px) {
  .site-header { padding: 0 6%; height: 75px; }
  .site-header nav > a:not(.btn) { display: none; }
  .site-header nav .btn { font-size: 11px; min-height: 35px; padding: 0 14px; }
  .site-header .wordmark { font-size: 18px; gap: 7px; }
  .hero { height: auto; max-height: none; min-height: 0; padding: 48px 8% 68px; display: flex; flex-direction: column; align-items: stretch; gap: 38px; }
  .hero::before { width: 130%; height: 70%; top: 25%; right: -25%; }
  .hero-copy { padding: 0; }
  .hero-copy > .eyebrow { margin-bottom: 25px; font-size: 8px; }
  .hero h1 { font-size: clamp(44px, 11.7vw, 68px); }
  .hero-description { margin: 24px 0; font-size: 13px; }
  .hero-actions { gap: 20px; }
  .hero-actions .btn { min-height: 45px; }
  .hero-note { margin-top: 28px; font-size: 9px; }
  .hero-art { height: 400px; align-self: center; width: 95%; }
  .hero-poster { width: 79%; max-width: 290px; }
  .hero-index { right: -2%; font-size: 8px; }
  .art-caption { right: 0; bottom: -18px; font-size: 9px; }
  .story { height: 430vh; }
  .story-sticky { padding: 24px 7% 16px; min-height: 710px; }
  .story-top .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .story-content { display: flex; flex-direction: column; padding: 10px 0; gap: 0; justify-content: flex-start; }
  .demo-stage { min-height: 315px; height: 44svh; max-height: 420px; width: 100%; flex: none; }
  .scene-frame { width: 190px; }
  .scene-dimension { font-size: 9px; top: calc(100% + 10px); }
  .layer-labels { right: 0; font-size: 9px; }
  .layer-labels span::before { width: 15px; }
  .story-copy { width: 100%; padding: 20px 0 7px; }
  .step-label { margin-bottom: 10px; font-size: 10px; }
  .story-copy h2 { font-size: 30px; }
  .story-copy h2 br { display: none; }
  .story-copy > p:not(.step-detail) { font-size: 12px; line-height: 1.85; margin: 12px 0 8px; max-width: 100%; min-height: 44px; }
  .step-detail { font-size: 9px; }
  .step-controls { position: absolute; top: 17px; right: 24%; margin: 0; gap: 8px; }
  .step-controls button { width: 29px; height: 29px; }
  .story-tabs { gap: 2px; margin-top: auto; }
  .story-tabs button { font-size: 10px; padding-top: 16px; justify-content: center; }
  .edit-bubble { font-size: 10px; padding: 13px; bottom: 8%; left: 0; right: 0; }
  .export-bubble { bottom: 10%; left: 5%; right: 0; padding: 14px; }
  .export-bubble strong { font-size: 12px; }
  .closing { padding: 90px 8%; }
  .closing h2 { font-size: clamp(32px, 8.8vw, 45px); }
  .site-footer { padding: 28px 8%; gap: 14px; flex-wrap: wrap; }
  .site-footer > span:last-child { margin-left: 0; width: 100%; font-size: 9px; }
}
