:root {
  --plum: #100c14;
  --charcoal: #1a171d;
  --graphite: #37313b;
  --lavender: #7b7284;
  --amber: #e0a55a;
  --parchment: #e8d8bc;
  --muted-coral: #a55c58;
  --ink: #171219;
  --paper: #d8c4a6;
  --line: rgba(232, 216, 188, .22);
  --soft-line: rgba(232, 216, 188, .12);
  --shadow: rgba(0, 0, 0, .42);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
  font-family: "General Sans", "Inter", system-ui, sans-serif;
  background: var(--plum);
  color: var(--parchment);
}

@font-face {
  font-family: "Cutlight Serif";
  src: local("Iowan Old Style"), local("Baskerville");
  font-weight: 400;
  font-style: normal;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--plum); }
body { margin: 0; min-width: 320px; background: var(--plum); color: var(--parchment); overflow-x: hidden; }
body.is-editing { touch-action: pan-y; }
body.is-dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--amber); color: var(--ink); transition: top .2s ease; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 70px;
  padding: 0 4vw;
  border-bottom: 1px solid transparent;
  transition: background 260ms var(--ease), border-color 260ms var(--ease), backdrop-filter 260ms var(--ease);
}
.site-header.is-scrolled { background: rgba(16, 12, 20, .78); border-color: var(--soft-line); backdrop-filter: blur(8px); }
.brand { font-size: .79rem; letter-spacing: .31em; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.4rem); font-size: .66rem; letter-spacing: .2em; }
.site-nav a, .footer-nav a, .utility-button { opacity: .8; transition: color 180ms ease, opacity 180ms ease; }
.site-nav a:hover, .footer-nav a:hover, .utility-button:hover { color: var(--amber); opacity: 1; }
.saved-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; margin-left: .25rem; border: 1px solid currentColor; border-radius: 50%; font-size: .52rem; letter-spacing: 0; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.utility-button { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .1rem; border: 0; background: transparent; cursor: pointer; font-size: .64rem; letter-spacing: .16em; }
.utility-help { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; justify-content: center; font-size: .82rem; letter-spacing: 0; }
.sound-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(224,165,90,.12); }
.utility-button[aria-pressed="true"] .sound-dot { background: var(--muted-coral); box-shadow: 0 0 0 3px rgba(165,92,88,.2); }

.hero { min-height: 820px; height: min(100svh, 1000px); background: var(--plum); }
.hero-stage, .final-stage-inner { position: relative; height: 100%; isolation: isolate; overflow: hidden; background: var(--plum); }
.hero-stage::after, .final-stage-inner::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(16,12,20,.4), transparent 23%, transparent 72%, rgba(16,12,20,.78)); }
.stage-backdrop { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.04); }
.hero-cutouts { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; filter: contrast(1.06) drop-shadow(0 12px 18px rgba(0,0,0,.18)); animation: cutouts-rise 1100ms 650ms both var(--ease); }
.scene-canvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: absolute; z-index: 4; left: 50%; top: 53%; width: min(90%, 560px); transform: translate(-50%, -50%); text-align: center; animation: copy-rise 950ms 1000ms both var(--ease); }
.hero-eyebrow, .section-kicker { margin: 0 0 1.2rem; color: var(--amber); font-size: .62rem; letter-spacing: .25em; }
.hero-copy h1 { margin: 0; color: #251d25; font-family: "Cutlight Serif", Georgia, serif; font-size: clamp(2.65rem, 6.3vw, 5.2rem); font-weight: 400; line-height: .91; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255,255,255,.2); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .85rem 1.25rem; border: 1px solid transparent; cursor: pointer; font-size: .65rem; letter-spacing: .15em; transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--amber); color: var(--ink); }
.button-primary:hover { background: #efba70; }
.button-quiet { border-color: rgba(232,216,188,.35); background: rgba(16,12,20,.28); color: var(--parchment); }
.button-quiet:hover { border-color: var(--amber); color: var(--amber); }
.button-small { min-height: 34px; padding: .55rem .8rem; font-size: .58rem; }
.hero-note { position: absolute; z-index: 4; bottom: 22%; margin: 0; color: rgba(232,216,188,.72); font-family: "Cutlight Serif", Georgia, serif; font-size: .93rem; font-style: italic; line-height: 1.14; }
.hero-note-left { left: 8%; transform: rotate(-7deg); }
.hero-note-right { right: 7%; transform: rotate(6deg); text-align: right; }
.hero-star { position: absolute; z-index: 3; color: var(--amber); font-size: 1.05rem; opacity: .9; animation: star-drift 5s infinite ease-in-out; }
.hero-star-one { top: 35%; left: 13%; animation-delay: -1s; }
.hero-star-two { top: 46%; right: 18%; font-size: .7rem; animation-delay: -3s; }
.hero-star-three { top: 18%; right: 7%; font-size: .8rem; animation-delay: -2s; }
.hero-moon { position: absolute; z-index: 3; top: 15%; right: 22%; width: clamp(3.4rem, 5vw, 5rem); aspect-ratio: 1; border-radius: 50%; background: rgba(232,216,188,.72); box-shadow: 0 0 24px rgba(224,165,90,.16); }
.scroll-cue { position: absolute; z-index: 4; bottom: 2.2rem; left: 50%; display: flex; gap: .8rem; align-items: center; transform: translateX(-50%); color: rgba(232,216,188,.68); font-size: .57rem; letter-spacing: .2em; }
.scroll-cue span { color: var(--amber); font-size: 1.1rem; }

.section { position: relative; padding: clamp(6rem, 11vw, 11rem) max(4vw, 1.25rem); border-top: 1px solid var(--soft-line); }
.section-heading { max-width: 620px; }
.section-heading-centered { margin: 0 auto clamp(3.2rem, 6vw, 6rem); text-align: center; }
.section-heading h2, .saved-heading h2, .final-copy h2 { margin: 0; color: var(--parchment); font-family: "Cutlight Serif", Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.65rem); font-weight: 400; line-height: .94; letter-spacing: .012em; }
.section-intro { max-width: 40rem; margin: 1.6rem 0 0; color: rgba(232,216,188,.64); font-size: .88rem; line-height: 1.65; }
.section-heading-centered .section-intro { margin-right: auto; margin-left: auto; }
.workbench { background: linear-gradient(180deg, #1a171d 0%, #100c14 100%); }
.maker-layout { display: grid; grid-template-columns: minmax(260px, 305px) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 3.2rem); max-width: 1320px; margin: 0 auto; }
.shape-shelf { align-self: start; padding: 1rem; border: 1px solid var(--line); background: rgba(55,49,59,.45); box-shadow: 0 18px 50px var(--shadow); }
.shelf-topline, .control-card-head, .timeline-meta, .saved-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.shelf-topline { padding-bottom: .9rem; border-bottom: 1px solid var(--soft-line); color: rgba(232,216,188,.55); font-size: .58rem; letter-spacing: .18em; }
.shape-filter { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem 0; border-bottom: 1px solid var(--soft-line); }
.shape-filter button { border: 0; padding: .25rem .15rem; background: transparent; color: var(--lavender); cursor: pointer; font-size: .53rem; letter-spacing: .12em; }
.shape-filter button[aria-selected="true"] { color: var(--amber); }
.shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; padding: 1rem 0; }
.shape-button { min-height: 88px; padding: .45rem .2rem; border: 1px solid transparent; background: rgba(16,12,20,.24); cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms var(--ease); }
.shape-button:hover, .shape-button.is-selected { border-color: var(--amber); background: rgba(224,165,90,.09); transform: translateY(-2px); }
.shape-button > span:last-child { display: block; margin-top: .45rem; color: rgba(232,216,188,.66); font-size: .5rem; letter-spacing: .12em; }
.shape-preview { position: relative; display: block; width: 42px; height: 42px; margin: 0 auto; color: var(--paper); }
.shape-preview::before, .shape-preview::after { content: ""; position: absolute; display: block; background: currentColor; }
.shape-preview-fox::before { left: 7px; top: 14px; width: 29px; height: 15px; border-radius: 65% 45% 45% 55%; transform: rotate(-7deg); }
.shape-preview-fox::after { left: 28px; top: 8px; width: 12px; height: 13px; clip-path: polygon(0 100%, 20% 0, 52% 33%, 84% 0, 100% 100%); }
.shape-preview-bird::before { left: 5px; top: 15px; width: 31px; height: 16px; border-radius: 70% 40% 45% 40%; }
.shape-preview-bird::after { left: 14px; top: 2px; width: 14px; height: 22px; border-radius: 100% 0 100% 0; transform: rotate(31deg); background: var(--amber); opacity: .7; }
.shape-preview-person::before { left: 15px; top: 5px; width: 12px; height: 12px; border-radius: 50%; }
.shape-preview-person::after { left: 18px; top: 17px; width: 7px; height: 26px; border-radius: 8px; box-shadow: -9px 12px 0 -2px currentColor, 9px 12px 0 -2px currentColor; }
.shape-preview-tree::before { left: 19px; top: 10px; width: 6px; height: 31px; }
.shape-preview-tree::after { left: 4px; top: 1px; width: 34px; height: 29px; border-radius: 48% 52% 38% 40%; box-shadow: 11px 2px 0 -4px currentColor, -9px 5px 0 -5px currentColor; }
.shape-preview-branch::before { left: 2px; top: 23px; width: 40px; height: 4px; transform: rotate(-20deg); }
.shape-preview-branch::after { left: 19px; top: 9px; width: 4px; height: 29px; transform: rotate(25deg); box-shadow: 11px -6px 0 -1px currentColor, -10px -7px 0 -1px currentColor; }
.shape-preview-moon::before { left: 7px; top: 5px; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); }
.shape-preview-moon::after { left: 16px; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--charcoal); }
.shape-preview-cloud::before { left: 5px; top: 19px; width: 35px; height: 13px; border-radius: 20px; }
.shape-preview-cloud::after { left: 13px; top: 10px; width: 19px; height: 18px; border-radius: 50%; box-shadow: 11px 6px 0 2px currentColor; }
.shape-preview-castle::before { left: 8px; bottom: 5px; width: 26px; height: 27px; clip-path: polygon(0 34%, 23% 34%, 23% 0, 38% 0, 38% 18%, 62% 18%, 62% 0, 78% 0, 78% 34%, 100% 34%, 100% 100%, 0 100%); }
.shape-preview-castle::after { left: 19px; bottom: 5px; width: 5px; height: 10px; background: var(--amber); }
.shape-preview-hill::before { left: 2px; bottom: 5px; width: 40px; height: 27px; border-radius: 50% 50% 0 0; }
.shape-preview-hill::after { left: 22px; bottom: 5px; width: 20px; height: 20px; border-radius: 50% 50% 0 0; background: var(--graphite); }
.shape-preview-reeds::before { left: 10px; bottom: 4px; width: 3px; height: 33px; transform: rotate(-8deg); box-shadow: 9px 3px 0 currentColor, 18px -2px 0 currentColor, 25px 5px 0 currentColor; }
.shape-preview-reeds::after { left: 4px; top: 3px; width: 12px; height: 8px; border-radius: 100% 0; transform: rotate(-30deg); box-shadow: 13px 9px 0 -1px currentColor, 24px 0 0 -1px currentColor; }
.shape-preview-lantern::before { left: 12px; top: 12px; width: 20px; height: 24px; border: 3px solid currentColor; background: rgba(224,165,90,.38); }
.shape-preview-lantern::after { left: 18px; top: 3px; width: 8px; height: 12px; border: 2px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; }
.shape-preview-house::before { left: 8px; bottom: 6px; width: 28px; height: 22px; }
.shape-preview-house::after { left: 5px; bottom: 25px; width: 33px; height: 20px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--amber); }
.text-button { border: 0; padding: .4rem 0; background: transparent; color: rgba(232,216,188,.68); cursor: pointer; font-size: .57rem; letter-spacing: .14em; }
.text-button:hover { color: var(--amber); }
.text-button:disabled { cursor: not-allowed; opacity: .35; }
.shelf-clear { border-top: 1px solid var(--soft-line); width: 100%; padding-top: 1rem; text-align: left; }
.shelf-clear span { float: right; color: var(--amber); font-size: .9rem; }
.maker-main { min-width: 0; }
.maker-stage-frame { position: relative; min-height: 500px; height: clamp(500px, 46vw, 700px); border: 1px solid var(--line); overflow: hidden; background: #211a20 url("assets/stage-backdrop.webp") center / cover no-repeat; box-shadow: 0 22px 70px rgba(0,0,0,.36); }
.stage-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.stage-canvas.is-dragging { cursor: grabbing; touch-action: none; }
.maker-hint { position: absolute; z-index: 5; left: 50%; bottom: 1.1rem; transform: translateX(-50%); padding: .5rem .75rem; background: rgba(16,12,20,.72); color: rgba(232,216,188,.73); font-size: .58rem; letter-spacing: .06em; pointer-events: none; transition: opacity 260ms ease; }
.maker-hint.is-hidden { opacity: 0; }
.depth-guide { position: absolute; z-index: 4; inset: 8% 6% 12%; display: none; pointer-events: none; color: rgba(232,216,188,.5); font-size: .55rem; letter-spacing: .18em; }
.depth-guide.is-visible { display: flex; justify-content: space-between; align-items: flex-end; }
.depth-guide-lines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; }
.depth-guide-lines i { border-right: 1px dashed rgba(224,165,90,.35); }
.depth-guide-lines i:last-child { border-right: 0; }
.countdown { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; color: var(--amber); font-family: "Cutlight Serif", Georgia, serif; font-size: clamp(5rem, 12vw, 10rem); pointer-events: none; text-shadow: 0 4px 40px rgba(224,165,90,.34); }
.maker-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-top: 0; background: #151117; }
.selection-status { display: flex; align-items: center; gap: .6rem; color: rgba(232,216,188,.64); font-size: .6rem; letter-spacing: .08em; }
.status-led { width: 7px; height: 7px; border-radius: 50%; background: var(--lavender); }
.status-led.is-live { background: var(--amber); box-shadow: 0 0 0 4px rgba(224,165,90,.14); }
.toolbar-actions { display: flex; align-items: center; gap: .45rem; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.15rem; line-height: 1; }
.icon-button:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); }
.icon-button:disabled { opacity: .3; cursor: not-allowed; }
.keyboard-hint { margin: .8rem 0 0; color: rgba(232,216,188,.36); font-size: .53rem; letter-spacing: .1em; text-align: right; }
.keyboard-hint span { color: var(--amber); }
.mobile-mode-bar { display: none; }

.light-engine { background: #100c14; }
.light-layout, .joint-layout, .depth-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: clamp(1.25rem, 5vw, 5rem); align-items: center; max-width: 1280px; margin: 0 auto; }
.cinema-frame { position: relative; min-height: 360px; height: min(54vw, 620px); overflow: hidden; border: 1px solid var(--line); background: #1a171d url("assets/stage-backdrop.webp") center / cover no-repeat; box-shadow: 0 20px 60px rgba(0,0,0,.34); }
.preview-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.preview-canvas.is-dragging { cursor: grabbing; touch-action: none; }
.frame-label { position: absolute; z-index: 4; bottom: .75rem; color: rgba(232,216,188,.58); font-size: .52rem; letter-spacing: .16em; pointer-events: none; }
.frame-label-left { left: .9rem; }
.frame-label-right { right: .9rem; }
.control-card { padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--line); background: rgba(55,49,59,.28); }
.control-card-head { padding-bottom: 1.1rem; border-bottom: 1px solid var(--soft-line); color: var(--amber); font-size: .58rem; letter-spacing: .18em; }
.control-card-head span:last-child { color: var(--lavender); }
.range-control { display: block; padding: 1.3rem 0 0; color: rgba(232,216,188,.75); font-size: .59rem; letter-spacing: .12em; }
.range-control > span { display: flex; justify-content: space-between; margin-bottom: .7rem; }
.range-control b { font-weight: 500; }
.range-control output { color: var(--amber); }
input[type="range"] { display: block; width: 100%; height: 1.2rem; margin: 0; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--amber) var(--range-progress, 50%), rgba(232,216,188,.2) var(--range-progress, 50%)); }
input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -5px; appearance: none; border: 2px solid var(--parchment); border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(224,165,90,.12); }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(232,216,188,.2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--amber); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--parchment); border-radius: 50%; background: var(--amber); }
.control-note { display: flex; gap: .65rem; margin: 2rem 0 0; color: rgba(232,216,188,.5); font-family: "Cutlight Serif", Georgia, serif; font-size: .9rem; line-height: 1.4; }
.note-mark { color: var(--amber); font-family: system-ui, sans-serif; }

.joint-section { background: linear-gradient(135deg, #17131a, #100c14 55%, #221b21); }
.joint-layout { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); }
.joint-visual { height: min(52vw, 640px); }
.joint-callout { display: flex; gap: .85rem; align-items: flex-start; margin: 2.25rem 0 0; padding: 1rem 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.brass-pin { flex: 0 0 16px; width: 16px; height: 16px; margin-top: .15rem; border: 2px solid #f0bf79; border-radius: 50%; background: #996a35; box-shadow: inset 2px 2px 3px rgba(255,255,255,.32), 0 2px 8px rgba(0,0,0,.4); }
.joint-callout p { margin: 0; color: rgba(232,216,188,.64); font-size: .63rem; letter-spacing: .08em; line-height: 1.65; }
.joint-callout strong { color: var(--amber); font-size: .55rem; font-weight: 500; letter-spacing: .16em; }
.interaction-status { margin: 1rem 0 0; color: var(--lavender); font-size: .65rem; line-height: 1.6; }
.joint-orbit { position: absolute; right: 7%; top: 12%; display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid rgba(232,216,188,.45); border-radius: 50%; color: var(--amber); font-size: .48rem; letter-spacing: .14em; }
.joint-orbit i { position: absolute; width: 38px; height: 2px; background: var(--amber); transform: rotate(45deg); }
.joint-orbit b { position: absolute; bottom: 16px; font-size: .45rem; font-weight: 500; }

.depth-section { background: #17131a; }
.depth-layout { grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr); }
.depth-frame { height: min(47vw, 560px); }
.depth-controls { display: grid; gap: .55rem; }
.depth-controls button { display: grid; grid-template-columns: 40px 1fr; gap: .6rem; align-items: center; padding: 1rem; border: 1px solid var(--soft-line); background: transparent; text-align: left; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.depth-controls button:hover, .depth-controls button.is-selected { border-color: var(--amber); background: rgba(224,165,90,.08); }
.depth-number { color: var(--amber); font-size: .6rem; letter-spacing: .1em; }
.depth-controls strong { display: block; color: var(--parchment); font-size: .61rem; font-weight: 500; letter-spacing: .15em; }
.depth-controls small { display: block; margin-top: .35rem; color: var(--lavender); font-size: .56rem; line-height: 1.4; }
.depth-note { margin: .8rem 0 0; color: rgba(232,216,188,.45); font-size: .62rem; line-height: 1.6; }

.record-section { background: #100c14; }
.record-desk { max-width: 1280px; margin: 0 auto; border: 1px solid var(--line); background: #1a171d; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.sound-row { display: grid; grid-template-columns: 1.3fr repeat(3, .9fr) 1.1fr repeat(2, .9fr) 1.4fr; gap: .6rem; align-items: stretch; padding: 1.2rem; border-bottom: 1px solid var(--soft-line); }
.sound-label { align-self: center; margin: 0; color: rgba(232,216,188,.5); font-family: "Cutlight Serif", Georgia, serif; font-size: .96rem; font-style: italic; line-height: 1.2; }
.sound-label em { color: var(--amber); font-style: normal; }
.sound-button, .record-button { min-height: 74px; border: 1px solid var(--soft-line); background: rgba(16,12,20,.38); cursor: pointer; transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms var(--ease); }
.sound-button:hover, .sound-button[aria-pressed="true"] { border-color: var(--amber); background: rgba(224,165,90,.09); color: var(--amber); transform: translateY(-2px); }
.sound-button span:last-child, .record-button span:last-child { display: block; margin-top: .35rem; font-size: .52rem; letter-spacing: .13em; }
.sound-icon { display: block; min-height: 30px; font-size: 1.55rem; line-height: 1; color: var(--parchment); }
.record-button { border-color: rgba(165,92,88,.6); background: rgba(165,92,88,.12); }
.record-button:hover, .record-button.is-recording { border-color: var(--muted-coral); background: rgba(165,92,88,.28); color: #ffd8c6; }
.record-glyph { display: inline-block; width: 16px; height: 16px; border: 4px solid currentColor; border-radius: 50%; }
.record-button.is-recording .record-glyph { border-radius: 2px; }
.sound-wave { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 74px; opacity: .62; }
.sound-wave i { display: block; width: 2px; height: 13px; background: var(--amber); animation: wave 1.4s infinite ease-in-out; }
.sound-wave i:nth-child(2) { animation-delay: -.9s; height: 26px; }.sound-wave i:nth-child(3) { animation-delay: -.5s; height: 18px; }.sound-wave i:nth-child(4) { animation-delay: -.2s; height: 32px; }.sound-wave i:nth-child(5) { animation-delay: -.8s; height: 22px; }.sound-wave i:nth-child(6) { animation-delay: -.4s; height: 14px; }.sound-wave i:nth-child(7) { animation-delay: -.6s; height: 29px; }.sound-wave i:nth-child(8) { animation-delay: -.1s; height: 18px; }.sound-wave i:nth-child(9) { animation-delay: -.7s; height: 9px; }
.timeline-wrap { padding: 1rem 1.2rem 1.3rem; }
.timeline-meta { color: var(--lavender); font-size: .55rem; letter-spacing: .12em; }.timeline-meta b { color: var(--amber); font-weight: 500; }
.timeline { position: relative; height: 62px; margin: 1rem 0 0; border-top: 1px solid rgba(232,216,188,.35); border-bottom: 1px solid rgba(232,216,188,.16); cursor: pointer; }
.timeline-progress { position: absolute; z-index: 1; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(224,165,90,.15), rgba(224,165,90,.04)); pointer-events: none; }
.timeline::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(232,216,188,.18) 25% calc(25% + 1px)); }
.timeline-ticks { position: absolute; inset: auto 0 -1.2rem; display: flex; justify-content: space-between; color: rgba(232,216,188,.46); font-size: .48rem; }.timeline-ticks i { font-style: normal; }
.timeline-events { position: absolute; z-index: 2; inset: 0; }.timeline-event { position: absolute; top: 50%; width: 7px; height: 7px; border: 1px solid var(--parchment); border-radius: 50%; background: var(--amber); transform: translate(-50%, -50%); }
.timeline-actions { display: flex; gap: 1.2rem; align-items: center; margin-top: 2.2rem; }.timeline-actions .text-button:first-child { color: var(--amber); }.timeline-help { color: rgba(232,216,188,.38); font-size: .53rem; letter-spacing: .08em; }

.watch-section { background: #17131a; }
.film-strip { position: relative; display: flex; align-items: center; gap: 1rem; max-width: 1360px; margin: 0 auto; }
.film-reel { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: .7rem; width: 100%; padding: 1rem .5rem 1.25rem; border-top: 1px solid rgba(232,216,188,.3); border-bottom: 1px solid rgba(232,216,188,.3); background: repeating-linear-gradient(90deg, rgba(232,216,188,.15) 0 10px, transparent 10px 19px) top / 100% 7px no-repeat, repeating-linear-gradient(90deg, rgba(232,216,188,.15) 0 10px, transparent 10px 19px) bottom / 100% 7px no-repeat; }
.story-card { min-width: 0; padding: .4rem; border: 0; background: transparent; color: var(--parchment); cursor: pointer; text-align: center; }.story-card:hover .story-frame { border-color: var(--amber); transform: translateY(-3px); }.story-card:hover strong { color: var(--amber); }
.story-frame { position: relative; display: block; aspect-ratio: 1.5; overflow: hidden; border: 1px solid var(--soft-line); background: #241c25; transition: border-color 180ms ease, transform 180ms var(--ease); }.story-canvas { width: 100%; height: 100%; display: block; }.story-frame-mark { position: absolute; top: .35rem; left: .4rem; color: rgba(232,216,188,.6); font-size: .5rem; letter-spacing: .1em; }
.story-card strong { display: block; margin-top: .75rem; font-family: "Cutlight Serif", Georgia, serif; font-size: .9rem; font-weight: 400; }.story-card small { display: block; margin-top: .35rem; color: var(--lavender); font-size: .52rem; letter-spacing: .08em; }
.film-arrow { flex: 0 0 auto; width: 28px; height: 40px; border: 0; background: transparent; color: var(--parchment); cursor: pointer; font-size: 1.35rem; }.film-arrow:hover { color: var(--amber); }
.save-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1rem; margin: 2.8rem auto 0; }.save-status { min-height: 1.3rem; margin: 1.1rem 0 0; color: var(--amber); font-size: .62rem; text-align: center; }

.saved-section { background: #100c14; }
.saved-heading { max-width: 1280px; margin: 0 auto 3rem; align-items: flex-end; }.saved-note { margin: 0; color: rgba(232,216,188,.48); font-size: .63rem; letter-spacing: .08em; line-height: 1.7; text-align: right; }.saved-note strong { color: var(--amber); font-weight: 500; font-size: .53rem; letter-spacing: .12em; }
.saved-list { display: flex; gap: 1rem; max-width: 1280px; min-height: 135px; margin: 0 auto; padding: 1rem; overflow-x: auto; border: 1px solid var(--soft-line); background: rgba(55,49,59,.18); }.empty-saved { align-self: center; width: 100%; margin: 0; color: rgba(232,216,188,.42); font-family: "Cutlight Serif", Georgia, serif; font-size: 1.1rem; text-align: center; }.saved-scene { flex: 0 0 170px; border: 1px solid var(--soft-line); background: #1a171d; cursor: pointer; text-align: left; }.saved-scene:hover { border-color: var(--amber); }.saved-scene img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }.saved-scene strong, .saved-scene small { display: block; padding: .4rem .55rem 0; }.saved-scene small { padding-top: .2rem; padding-bottom: .55rem; color: var(--lavender); font-size: .5rem; }

.final-stage { min-height: 740px; height: min(80svh, 900px); background: var(--plum); }.final-stage-inner::after { background: linear-gradient(180deg, rgba(16,12,20,.4), transparent 35%, rgba(16,12,20,.84)); }.final-copy { position: absolute; z-index: 4; left: 50%; top: 57%; width: min(90%, 600px); transform: translate(-50%, -50%); text-align: center; }.final-copy h2 { color: #251d25; font-size: clamp(2rem, 4.5vw, 4rem); }.final-copy .button { margin-top: 1.8rem; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: end; min-height: 260px; padding: 3.5rem 4vw; border-top: 1px solid var(--soft-line); background: #100c14; }.footer-brand p { margin: .8rem 0 0; color: rgba(232,216,188,.43); font-size: .55rem; letter-spacing: .12em; }.footer-brand p + p { color: var(--amber); }.footer-nav { display: flex; gap: 1.7rem; align-items: center; font-size: .55rem; letter-spacing: .12em; }.footer-mark { display: flex; justify-content: flex-end; gap: .8rem; align-items: flex-start; color: rgba(232,216,188,.54); font-family: "Cutlight Serif", Georgia, serif; font-size: .85rem; font-style: italic; line-height: 1.1; }.footer-mark span { color: var(--amber); font-size: 2rem; font-style: normal; }.footer-mark p { margin: 0; }

.help-dialog { position: fixed; z-index: 40; top: 50%; left: 50%; width: min(92vw, 520px); padding: 2.3rem; border: 1px solid var(--line); background: #1a171d; color: var(--parchment); box-shadow: 0 30px 100px rgba(0,0,0,.62); transform: translate(-50%, -50%); }.help-dialog::backdrop { background: rgba(16,12,20,.8); backdrop-filter: blur(4px); }.help-dialog:not([open]) { display: none; }.help-dialog h2 { margin: 0 0 1.8rem; font-family: "Cutlight Serif", Georgia, serif; font-size: 2.6rem; font-weight: 400; line-height: .95; }.dialog-close { position: absolute; top: .9rem; right: 1rem; border: 0; background: transparent; cursor: pointer; font-size: 1.4rem; }.help-dialog dl { margin: 0 0 2rem; }.help-dialog dl div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--soft-line); }.help-dialog dt { color: var(--amber); font-size: .58rem; letter-spacing: .13em; }.help-dialog dd { margin: 0; color: rgba(232,216,188,.68); font-size: .7rem; }.toast { position: fixed; z-index: 50; right: 1.5rem; bottom: 1.5rem; max-width: min(90vw, 380px); padding: .85rem 1rem; border: 1px solid var(--amber); background: rgba(16,12,20,.94); color: var(--amber); font-size: .65rem; letter-spacing: .05em; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes copy-rise { from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes cutouts-rise { from { opacity: 0; transform: scale(1.025); } to { opacity: .96; transform: scale(1); } }
@keyframes star-drift { 0%,100% { transform: translateY(0) rotate(0deg); opacity: .55; } 50% { transform: translateY(-9px) rotate(12deg); opacity: 1; } }
@keyframes wave { 0%,100% { transform: scaleY(.6); opacity: .45; } 50% { transform: scaleY(1.1); opacity: 1; } }

@media (max-width: 1100px) {
  .sound-row { grid-template-columns: 1.1fr repeat(3, 1fr) 1.1fr repeat(2, 1fr); }.sound-wave { display: none; }
  .maker-layout { grid-template-columns: 250px minmax(0,1fr); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 1.25rem; }.site-nav { display: none; }
  .hero { min-height: 680px; height: 100svh; }.hero-copy { top: 49%; }.hero-note { display: none; }.hero-moon { right: 13%; top: 23%; }.hero-cutouts { object-position: 38% 58%; opacity: .82; }
  .maker-layout, .light-layout, .joint-layout, .depth-layout { grid-template-columns: 1fr; }.shape-shelf { order: 2; }.maker-main { order: 1; }.shape-grid { grid-template-columns: repeat(6, 1fr); }.shape-button { min-height: 74px; }
  .maker-stage-frame { height: min(70vw, 600px); min-height: 420px; }.keyboard-hint { display: none; }.mobile-mode-bar { display: grid; grid-template-columns: repeat(5,1fr); gap: .25rem; margin-top: .6rem; }.mode-button { border: 1px solid var(--soft-line); padding: .55rem .1rem; background: transparent; color: var(--lavender); cursor: pointer; font-size: .53rem; letter-spacing: .08em; }.mode-button.is-active { border-color: var(--amber); color: var(--amber); background: rgba(224,165,90,.08); }
  .light-layout .section-heading, .joint-copy { max-width: 620px; }.cinema-frame, .joint-visual, .depth-frame { height: min(68vw, 520px); min-height: 340px; }.light-layout .control-card { order: 2; }.joint-visual { order: 1; }.joint-copy { order: 2; }
  .sound-row { grid-template-columns: repeat(4, 1fr); }.sound-label { grid-column: 1 / -1; padding-bottom: .4rem; }.sound-button, .record-button { min-height: 66px; }.undo-sound { display: none; }
  .film-reel { grid-template-columns: repeat(5, minmax(160px, 1fr)); overflow-x: auto; }.film-arrow { display: none; }.save-actions { justify-content: flex-start; }
  .saved-heading { align-items: flex-start; flex-direction: column; gap: 1.5rem; }.saved-note { text-align: left; }.site-footer { grid-template-columns: 1fr 1fr; }.footer-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }.footer-mark { align-items: flex-end; }
}

@media (max-width: 560px) {
  .site-header { min-height: 60px; }.brand { font-size: .68rem; }.utility-button { font-size: .55rem; }.utility-help { width: 24px; height: 24px; }
  .hero { min-height: 620px; }.hero-stage .stage-backdrop, .final-stage-inner .stage-backdrop { object-position: 50% center; }.hero-copy { width: 92%; }.hero-eyebrow { font-size: .52rem; }.hero-copy h1 { font-size: clamp(2.3rem, 12vw, 3.7rem); }.hero-actions { margin-top: 1.5rem; }.button { min-height: 42px; padding: .75rem .9rem; font-size: .57rem; }
  .section { padding: 5rem 1rem; }.section-heading h2, .saved-heading h2 { font-size: clamp(2.05rem, 11vw, 3.15rem); }.section-intro { font-size: .78rem; }.section-kicker { font-size: .54rem; }
  .shape-shelf { padding: .7rem; }.shape-filter { gap: .35rem; overflow-x: auto; flex-wrap: nowrap; }.shape-filter button { white-space: nowrap; font-size: .48rem; }.shape-grid { gap: .25rem; }.shape-button { min-height: 66px; }.shape-preview { width: 31px; height: 31px; transform: scale(.78); transform-origin: center; }.shape-button > span:last-child { font-size: .42rem; }
  .maker-stage-frame { min-height: 350px; height: 106vw; }.maker-toolbar { align-items: flex-start; flex-direction: column; }.toolbar-actions { width: 100%; }.toolbar-actions .button-small { margin-left: auto; }.selection-status { font-size: .54rem; }
  .cinema-frame, .joint-visual, .depth-frame { height: 78vw; min-height: 260px; }.control-card { padding: 1rem; }.joint-orbit { width: 68px; height: 68px; font-size: .4rem; }.joint-orbit i { width: 28px; }.joint-callout { margin-top: 1.5rem; }
  .sound-row { gap: .3rem; padding: .7rem; }.sound-button, .record-button { min-height: 61px; }.sound-icon { font-size: 1.3rem; }.sound-button span:last-child, .record-button span:last-child { font-size: .44rem; }.timeline-wrap { padding: .8rem .7rem 1.2rem; }.timeline-help { display: none; }
  .save-actions { gap: .45rem .7rem; }.save-actions .button { width: 100%; }.save-actions .text-button { font-size: .5rem; }.final-stage { min-height: 600px; height: 78svh; }.site-footer { grid-template-columns: 1fr; min-height: 330px; padding: 3rem 1.2rem; }.footer-nav { grid-column: auto; grid-row: auto; }.footer-mark { justify-content: flex-start; }.help-dialog { padding: 1.5rem; }.help-dialog h2 { font-size: 2.2rem; }.help-dialog dl div { grid-template-columns: 72px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-copy { animation: none; opacity: 1; }.hero-cutouts { animation: none; opacity: .96; }.hero-stage::after, .final-stage-inner::after { transition: none; }
}
