/* Lullogram v2. Sheets that stack and change tone, poster-scale Lexend, motion that earns its place.
   Tones: ink (night), ember (the lamp), paper (daylight, for reading). Motion switches off with
   html[data-calm] and prefers-reduced-motion. */

@font-face { font-family: "Lexend"; font-weight: 300; font-display: swap; src: url(/fonts/lexend-300.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url(/fonts/lexend-400.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url(/fonts/lexend-500.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url(/fonts/lexend-600.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-display: swap; src: url(/fonts/lexend-700.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 800; font-display: swap; src: url(/fonts/lexend-800.woff2) format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 900; font-display: swap; src: url(/fonts/lexend-900.woff2) format("woff2"); }

:root {
  --ink: #0b0907;
  --ember: #e97101;
  --ember-hi: #ff9a3d;
  --on-ember: #1c0d00;
  --paper: #f1e8dc;
  --cream: #f4ece3;

  --t-poster: clamp(4.4rem, 17vw, 19rem);
  --t-hero: clamp(2.9rem, min(8.6vw, 13.5vh), 11rem);
  --t-xl: clamp(2.5rem, 6.2vw, 7.4rem);
  --t-l: clamp(2rem, 4.2vw, 5rem);
  --t-m: clamp(1.45rem, 2.4vw, 2.7rem);
  --t-lead: clamp(1.15rem, 1.6vw, 1.7rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.15rem);

  --gutter: clamp(20px, 3.4vw, 56px);
  --gap: clamp(16px, 1.8vw, 28px);
  --sheet: clamp(28px, 4.6vw, 76px);
  --radius: clamp(24px, 3vw, 48px);
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --press: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

/* ---- tones: set on a sheet, read by everything inside it ---- */
.t-ink   { --bg: var(--ink);   --fg: var(--cream);    --muted: #b1a79c; --accent: var(--ember);   --line: rgba(244, 236, 227, 0.16); --ghost: rgba(233, 113, 1, 0.13); --sbg: var(--ember); --sfg: var(--on-ember); --btn-bg: var(--ember); --btn-fg: var(--on-ember); }
.t-ember { --bg: var(--ember); --fg: var(--on-ember); --muted: rgba(28, 13, 0, 0.88); --accent: var(--on-ember); --line: rgba(28, 13, 0, 0.26); --ghost: rgba(28, 13, 0, 0.1);  --sbg: var(--ink);   --sfg: var(--ember);    --btn-bg: var(--ink);   --btn-fg: var(--cream); }
.t-paper { --bg: var(--paper); --fg: #14100c;         --muted: #5a5046; --accent: #a34800;         --line: rgba(20, 16, 12, 0.18); --ghost: rgba(176, 79, 0, 0.08);  --sbg: var(--ink);   --sfg: var(--ember);    --btn-bg: #14100c;      --btn-fg: var(--cream); }

html { --nav-fg: var(--cream); --nav-mark: var(--ember); --pill-bg: var(--ember); --pill-fg: var(--on-ember); --root-bg: var(--ink); }
html[data-tone="ember"] { --nav-fg: var(--on-ember); --nav-mark: var(--on-ember); --pill-bg: var(--ink); --pill-fg: var(--cream); --root-bg: var(--ember); }
html[data-tone="paper"] { --nav-fg: #14100c; --nav-mark: #a34800; --pill-bg: #14100c; --pill-fg: var(--cream); --root-bg: var(--paper); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--root-bg); transition: background-color 0.5s; overscroll-behavior-y: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; min-height: 100svh; background: var(--ink); color: var(--cream); font: 300 var(--t-body) / 1.6 "Lexend", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ember); color: var(--on-ember); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent, var(--ember)); outline-offset: 4px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--ember); color: var(--on-ember); padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: top 0.2s var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--gutter) * 2, 1760px); margin-inline: auto; }

/* ---- type ---- */
h1, h2, h3, h4 { font-weight: 800; text-transform: lowercase; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; word-spacing: 0.06em; }
.poster { font-size: var(--t-poster); font-weight: 900; line-height: 0.86; letter-spacing: -0.05em; }
.hero-t { font-size: var(--t-hero); font-weight: 900; line-height: 0.94; }
.xl { font-size: var(--t-xl); font-weight: 900; line-height: 0.96; }
.l { font-size: var(--t-l); line-height: 1; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 36em; text-wrap: pretty; }
.muted { color: var(--muted); }
.acc { color: var(--accent); }
p { text-wrap: pretty; }

/* ---- sheets ---- */
.sheet { position: relative; background: var(--bg); color: var(--fg); border-radius: var(--radius) var(--radius) 0 0; margin-top: calc(var(--radius) * -1); padding: calc(var(--sheet) + var(--radius)) 0 calc(var(--sheet) + var(--radius)); isolation: isolate; }
.sheet.first { margin-top: 0; border-radius: 0; padding-top: 0; }
.sheet.flat { padding-bottom: calc(var(--sheet) + var(--radius)); }
.ghost { position: absolute; z-index: -1; left: 0; right: 0; font-size: var(--t-poster); font-weight: 900; line-height: 0.8; letter-spacing: -0.05em; color: var(--ghost); white-space: nowrap; user-select: none; pointer-events: none; overflow: hidden; text-transform: lowercase; translate: var(--gx, 0) 0; }
.ghost.top { top: calc(var(--radius) + 1vw); }
.ghost.bottom { bottom: -0.06em; }

/* ---- nav ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); padding-inline: var(--gutter); display: flex; align-items: center; gap: 1rem; color: var(--nav-fg); transition: transform 0.55s var(--ease-out), color 0.35s; }
.nav.is-hidden { transform: translateY(-125%); }
.mark { margin-right: auto; font-weight: 900; font-size: clamp(1.6rem, 2vw, 2.1rem); letter-spacing: -0.05em; line-height: 1; color: var(--nav-mark); transition: color 0.35s; text-transform: lowercase; min-height: 44px; display: inline-flex; align-items: center; }
.links { display: flex; gap: clamp(8px, 1.6vw, 26px); }
.links a { font-weight: 600; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; text-transform: lowercase; background: linear-gradient(currentColor, currentColor) left 78% / 0 2px no-repeat; transition: background-size 0.4s var(--ease-out); }
.links a:hover, .links a[aria-current="page"] { background-size: 100% 2px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-fg); font-weight: 700; text-transform: lowercase; letter-spacing: 0; transition: transform 0.18s var(--press), background-color 0.3s, color 0.3s; touch-action: manipulation; }
.pill:active { transform: scale(0.96); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--pill-bg); color: var(--pill-fg); align-items: center; justify-content: center; position: relative; z-index: 130; }
.menu-btn i { position: absolute; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease-out); }
.menu-btn i:first-child { transform: translateY(-4px); }
.menu-btn i:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--cream); }
.menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 120; background: var(--ember); color: var(--on-ember); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem; clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path 0.7s var(--ease-io); visibility: hidden; }
.menu[data-open] { clip-path: circle(150vmax at calc(100% - 44px) 38px); visibility: visible; }
.menu nav { display: grid; }
.menu nav a { font-weight: 900; font-size: clamp(2.8rem, 14vw, 6rem); line-height: 1.02; letter-spacing: -0.05em; padding: 0.06em 0; border-bottom: 1px solid rgba(28, 13, 0, 0.22); text-transform: lowercase; }
.menu .stores { margin-top: 28px; }
@media (max-width: 820px) { .links { display: none; } .nav .pill { display: none; } .menu-btn { display: inline-flex; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 28px 0 22px; border-radius: 999px; background: var(--btn-bg, var(--ember)); color: var(--btn-fg, var(--on-ember)); font-weight: 700; font-size: 1.05rem; text-transform: lowercase; transition: transform 0.18s var(--press), box-shadow 0.3s, background-color 0.25s; touch-action: manipulation; }
.btn small { display: block; font-size: 0.75rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.02em; line-height: 1; margin-bottom: 3px; }
.btn b { display: block; font-weight: 800; line-height: 1; font-size: 1.12rem; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55); }
  .btn:hover:active { transform: scale(0.97); }
  .pill:hover { transform: translateY(-2px); }
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores .is-first { order: -1; }
.arrow { width: 1.05em; height: 1.05em; flex: none; transition: transform 0.3s var(--ease-out); }
a:hover > .arrow, .btn:hover .arrow { transform: translateX(4px); }

/* ---- hero ---- */
.hero { min-height: 100svh; padding: calc(var(--nav-h) + clamp(16px, 3vh, 36px)) 0 clamp(24px, 4vh, 48px); display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: clip; isolation: isolate; }
.terrain { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.status { display: inline-flex; align-items: center; gap: 10px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 9px 18px 9px 14px; font-weight: 700; font-size: 0.92rem; text-transform: lowercase; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #61c554; animation: pulse 2.6s var(--ease-out) 3; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(97, 197, 84, 0.65); } 70%, 100% { box-shadow: 0 0 0 10px rgba(97, 197, 84, 0); } }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-top p { font-size: var(--t-lead); color: var(--muted); }
.hero-top p b { color: var(--ember); font-weight: 800; }
.hero h1 { align-self: center; margin-block: clamp(20px, 4vh, 56px); }
.hero h1 .l1 { display: block; color: var(--cream); }
.hero h1 .l2 { display: block; color: var(--ember); }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.hero-bottom .lead { max-width: 30em; color: var(--cream); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 28px; }
.scrollcue { position: absolute; left: 50%; bottom: 0; width: 1px; height: 34px; background: linear-gradient(var(--ember), transparent); transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---- reveal ---- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.is-in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }
.mask { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.is-in .mask > span, .mask.is-in > span { transform: none; }
html:not(.js) .mask > span { transform: none; }

/* ---- statement (pinned, scrubbed) ---- */
.statement { position: relative; height: 340vh; background: var(--bg); color: var(--fg); border-radius: var(--radius) var(--radius) 0 0; margin-top: calc(var(--radius) * -1); }
.statement-stage { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; gap: clamp(1rem, 3vh, 2rem); padding-top: var(--nav-h); }
.statement p.big { font-size: clamp(2.1rem, 5.2vw, 6.2rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.045em; text-transform: lowercase; max-width: 17em; }
.statement .w { opacity: 0.2; transition: opacity 0.25s linear; }
.statement .w.on { opacity: 1; }
.statement .w.hl.on { color: var(--accent); }
.statement .small { color: var(--muted); font-size: var(--t-lead); }
html[data-calm] .statement { height: auto; padding: var(--sheet) 0; }
html[data-calm] .statement-stage { position: static; height: auto; padding-top: 0; }
html[data-calm] .statement .w { opacity: 1; }

/* ---- feature sheets ---- */
.feat { min-height: 100svh; display: grid; align-content: center; }
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.feat-copy { grid-column: 1 / span 6; display: grid; gap: clamp(18px, 3vh, 34px); }
.feat-copy h2 { font-size: var(--t-l); font-weight: 900; }
.feat-copy p { font-size: var(--t-lead); max-width: 26em; color: var(--fg); }
.feat-copy p b { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 0.9rem; text-transform: lowercase; }
.feat-art { grid-column: 8 / span 5; }
.free { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-transform: lowercase; }
.free::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@media (min-width: 900px) and (min-height: 700px) { .pin { position: sticky; top: 0; } }
@media (max-width: 899px) { .feat { min-height: 0; } .feat-copy, .feat-art { grid-column: 1 / -1; } }

/* ---- scenes (built in code; slot files can replace them) ---- */
.scene { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--sbg); color: var(--sfg); overflow: hidden; display: grid; place-items: center; touch-action: manipulation; user-select: none; }
.scene .cap { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; font-weight: 600; text-transform: lowercase; opacity: 0.82; pointer-events: none; }
.slot img, .slot video { width: 100%; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.slot.is-filled .scene { display: none; }

.orb { width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--sfg); transform: scale(var(--s, 0.5)); will-change: transform; box-shadow: 0 0 0 calc(var(--s, 0.5) * 22px) color-mix(in srgb, var(--sfg) 18%, transparent), 0 0 0 calc(var(--s, 0.5) * 52px) color-mix(in srgb, var(--sfg) 8%, transparent); }
.cue { position: absolute; display: grid; place-content: center; text-align: center; font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -0.04em; text-transform: lowercase; color: var(--sbg); pointer-events: none; }
.cue small { display: block; font-size: 0.4em; font-weight: 600; letter-spacing: 0; opacity: 0.85; }

.sos { position: relative; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--sfg); color: var(--sbg); font-weight: 900; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -0.05em; text-transform: lowercase; transition: transform 0.25s var(--press); }
.sos svg { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); transform: rotate(-90deg); pointer-events: none; }
.sos circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.sos .track { stroke: color-mix(in srgb, var(--sfg) 22%, transparent); }
.sos .fill { stroke: var(--sfg); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.sos:active { transform: scale(0.97); }
.scene .msg { position: absolute; left: 20px; right: 20px; top: 18px; text-align: center; font-weight: 700; font-size: 1rem; text-transform: lowercase; }

.curve { width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.curve path.line { fill: none; stroke: var(--sfg); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.curve path.area { fill: color-mix(in srgb, var(--sfg) 14%, transparent); }
.curve .grid line { stroke: color-mix(in srgb, var(--sfg) 22%, transparent); stroke-width: 1; }
.curve .night { fill: color-mix(in srgb, var(--sfg) 12%, transparent); }
.curve text { fill: var(--sfg); font: 600 11px Lexend, sans-serif; text-transform: lowercase; opacity: 0.8; }
.curve .dot { fill: var(--sfg); }
.curve .halo { fill: color-mix(in srgb, var(--sfg) 28%, transparent); }
.readout { position: absolute; left: 22px; top: 18px; right: 22px; display: grid; gap: 2px; pointer-events: none; }
.readout b { font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; text-transform: lowercase; }
.readout span { font-size: 0.88rem; font-weight: 500; opacity: 0.85; }

.bars { position: absolute; inset: 22% 8% 16%; display: flex; align-items: flex-end; gap: 3%; }
.bars button { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; color: inherit; }
.bars i { display: block; width: 100%; border-radius: 12px 12px 6px 6px; background: var(--sfg); height: calc(var(--h) * 1%); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease-out), opacity 0.2s; transition-delay: calc(var(--i) * 70ms); opacity: 0.55; }
.scene.in .bars i { transform: scaleY(1); }
.bars button:hover i, .bars button.on i, .bars button:focus-visible i { opacity: 1; }
.bars span { font-size: 0.78rem; font-weight: 700; text-transform: lowercase; }

.stack { position: relative; width: 74%; aspect-ratio: 4 / 5; }
.tcard { position: absolute; inset: 0; border-radius: 28px; background: var(--sfg); color: var(--sbg); padding: 7% 8%; display: grid; align-content: space-between; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); transition: transform 0.7s var(--ease-out), opacity 0.5s; touch-action: pan-y; cursor: grab; }
.tcard p { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.04; text-transform: lowercase; }
.tcard small { font-weight: 600; font-size: 0.82rem; text-transform: lowercase; opacity: 0.85; }

/* ---- sound ---- */
.sound { min-height: 100svh; display: grid; align-content: center; overflow: clip; }
.waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.sound .wrap { display: grid; gap: clamp(22px, 4vh, 44px); justify-items: start; padding-block: var(--nav-h); }
.sound h2 { max-width: 12em; }
.sound .lead { color: var(--cream); }
.listen { position: relative; display: inline-grid; place-items: center; }
.listen .play { position: relative; z-index: 1; min-height: 68px; padding: 0 34px 0 24px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 12px; text-transform: lowercase; transition: transform 0.18s var(--press); touch-action: manipulation; }
.listen .play:active { transform: scale(0.96); }
.listen .play svg { width: 22px; height: 22px; }
.listen .ico-pause { display: none; }
.listen .play[aria-pressed="true"] .ico-play { display: none; }
.listen .play[aria-pressed="true"] .ico-pause { display: block; }
.sound .fine { color: var(--muted); font-size: 0.9rem; }
.names { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.names li { font-weight: 700; padding: 6px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-transform: lowercase; font-size: 0.95rem; }

/* ---- more list ---- */
.more-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.more-grid h2 { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 24px); }
.rows { grid-column: 6 / span 7; }
.row { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--gap); padding: clamp(22px, 3.4vh, 38px) 0; border-top: 1.5px solid var(--line); align-items: baseline; transition: padding-left 0.5s var(--ease-out); }
.row:last-child { border-bottom: 1.5px solid var(--line); }
.row h3 { font-size: var(--t-m); font-weight: 800; }
.row p { color: var(--muted); }
.row.free-row h3, .row.free-row p { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .row:hover { padding-left: 14px; } }
@media (max-width: 899px) { .more-grid h2, .rows { grid-column: 1 / -1; position: static; } .row { grid-template-columns: 1fr; gap: 8px; } }

/* ---- marquee ---- */
.marquee { overflow: hidden; display: flex; width: 100%; user-select: none; }
.marquee ul { display: flex; flex: none; min-width: 200%; animation: marquee 34s linear infinite; }
.marquee li { display: flex; align-items: center; gap: clamp(2rem, 4vw, 5rem); padding-right: clamp(2rem, 4vw, 5rem); font-weight: 900; font-size: var(--t-xl); letter-spacing: -0.05em; line-height: 1.04; text-transform: lowercase; white-space: nowrap; }
.marquee li::after { content: ""; width: 0.28em; height: 0.28em; border-radius: 50%; background: currentColor; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[data-calm] .marquee ul { animation: none; }

/* ---- founder ---- */
.founder { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.portrait { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 1rem); aspect-ratio: 456 / 720; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: grayscale(1) contrast(1.05); transform: scale(calc(1.14 - var(--pp, 0) * 0.14)); transition: transform 0.2s linear; }
.portrait::after { content: ""; position: absolute; inset: 0; background: var(--ember); mix-blend-mode: multiply; opacity: 0.45; }
.founder-copy { grid-column: 6 / span 7; display: grid; gap: clamp(22px, 4vh, 40px); }
.founder blockquote { font-weight: 900; font-size: var(--t-l); line-height: 1.02; letter-spacing: -0.045em; text-transform: lowercase; text-wrap: balance; }
.founder .lead { color: var(--muted); }
@media (max-width: 899px) { .portrait, .founder-copy { grid-column: 1 / -1; } .portrait { position: relative; top: 0; max-width: 340px; } }

/* ---- faq ---- */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.faq-grid > div:first-child { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; }
.faq { grid-column: 6 / span 7; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 2px; font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem); letter-spacing: -0.02em; text-transform: lowercase; min-height: 68px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 24px; height: 24px; background: linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat; transition: transform 0.4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 2px 28px; max-width: 38em; color: var(--muted); font-size: 1.08rem; }
.faq .ans a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 899px) { .faq-grid > div:first-child, .faq { grid-column: 1 / -1; position: static; } }

/* ---- final ---- */
.final { overflow: clip; }
.final .wrap { display: grid; gap: clamp(26px, 4vh, 48px); justify-items: start; padding-bottom: clamp(48px, 8vh, 96px); }
.final h2 { max-width: 7em; }
.final .lead { max-width: 26em; }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--cream); border-radius: var(--radius) var(--radius) 0 0; margin-top: calc(var(--radius) * -1); padding: calc(var(--sheet) + var(--radius)) 0 140px; position: relative; overflow: clip; }
.footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; position: relative; z-index: 1; }
.footer ul { display: grid; gap: 2px; }
.footer a { display: inline-flex; min-height: 40px; align-items: center; text-transform: lowercase; font-weight: 500; }
.footer a:hover { color: var(--ember); }
.footer .fine { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.footer .word { font-size: var(--t-poster); font-weight: 900; line-height: 0.8; letter-spacing: -0.06em; color: var(--ember); margin-top: clamp(28px, 6vh, 72px); margin-left: -0.04em; text-transform: lowercase; white-space: nowrap; }
.calm { display: inline-flex; align-items: center; gap: 10px; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 0 18px 0 14px; min-height: 46px; margin-top: 18px; color: var(--cream); font-weight: 500; transition: box-shadow 0.2s; }
.calm:hover { box-shadow: inset 0 0 0 1.5px var(--ember); }
.calm i { width: 34px; height: 20px; border-radius: 12px; background: rgba(244, 236, 227, 0.18); position: relative; transition: background 0.25s; }
.calm i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); transition: transform 0.25s var(--ease-out); }
.calm[aria-pressed="true"] i { background: var(--ember); }
.calm[aria-pressed="true"] i::after { transform: translateX(14px); }

/* ---- install bar ---- */
.getbar { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 999px; background: var(--ember); color: var(--on-ember); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); transform: translateY(150%); transition: transform 0.55s var(--ease-out); }
.getbar.is-on { transform: none; }
.getbar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.getbar .t { flex: 1; min-width: 0; line-height: 1.15; }
.getbar .t b { display: block; font-weight: 800; text-transform: lowercase; }
.getbar .t span { font-size: 0.78rem; font-weight: 500; opacity: 0.8; }
.getbar .go { min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 800; display: inline-flex; align-items: center; text-transform: lowercase; }
.getbar .x { width: 36px; height: 44px; display: grid; place-items: center; color: var(--on-ember); }
.getbar .x svg { width: 14px; height: 14px; }
@media (max-width: 820px) { .getbar { display: flex; } }

/* ---- cursor ---- */
.cursor { position: fixed; z-index: 400; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ember); pointer-events: none; opacity: 0; transition: width 0.25s var(--press), height 0.25s var(--press), margin 0.25s var(--press), opacity 0.3s, background-color 0.2s; will-change: transform; }
html.has-cursor .cursor { opacity: 1; }
/* dark ground: ember dot. ember or light ground: ink dot. A thin contrasting ring keeps it visible on mid tones and video. */
.cursor { --cur: var(--ember); --ring: rgba(244, 236, 227, 0.55); }
.cursor[data-bg="ember"], .cursor[data-bg="light"] { --cur: var(--ink); --ring: rgba(244, 236, 227, 0.7); }
.cursor { background: var(--cur); box-shadow: 0 0 0 1.5px var(--ring); }
.cursor[data-state="link"] { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: color-mix(in srgb, var(--cur) 40%, transparent); }
.cursor[data-state="down"] { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
html.has-cursor input, html.has-cursor select, html.has-cursor textarea { cursor: text; }

/* ---- inner pages ---- */
.phero { padding: calc(var(--nav-h) + clamp(40px, 9vh, 110px)) 0 calc(var(--sheet) * 1.2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.95rem; font-weight: 500; text-transform: lowercase; margin-bottom: clamp(18px, 3vh, 30px); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 12px; opacity: 0.6; }
.crumbs a:hover { color: var(--ember); }
.crumbs [aria-current] { color: var(--fg); }
.prose { max-width: 40rem; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -0.045em; margin-top: 2em; }
.prose p, .prose li { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: revert; }
.prose li { margin-top: 0.5em; text-wrap: pretty; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent); }
.prose .intro { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.35; font-weight: 400; letter-spacing: -0.02em; }
.prose .note { box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 22px; padding: 18px 22px; font-size: 1rem; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.split .side { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 1rem); }
.split .main { grid-column: 6 / span 7; }
.split.centered .main { grid-column: 3 / span 8; }
@media (max-width: 899px) { .split .side, .split .main, .split.centered .main { grid-column: 1 / -1; position: static; } }
.meta { display: grid; gap: 0; }
.meta > div { padding: 14px 0; border-top: 1.5px solid var(--line); display: grid; gap: 2px; }
.meta dt { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: lowercase; }
.meta dd { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-transform: lowercase; }
.case { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; min-height: 56svh; }
.case h2 { grid-column: 1 / span 7; font-size: var(--t-xl); font-weight: 900; text-wrap: balance; }
.case .side { grid-column: 9 / span 4; display: grid; gap: 22px; }
.case .side p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 899px) { .case { min-height: 0; } .case h2, .case .side { grid-column: 1 / -1; } }
.art-cta { padding-bottom: calc(var(--sheet) * 1.4); }
.art-cta .wrap { display: grid; gap: 28px; justify-items: start; }

.form { display: grid; gap: 18px; max-width: 40rem; }
.form label { display: grid; gap: 8px; font-weight: 600; text-transform: lowercase; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: inherit; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; border-radius: 16px; padding: 14px 18px; min-height: 56px; width: 100%; transition: box-shadow 0.2s; }
.form select { appearance: none; }
.form textarea { min-height: 170px; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2.5px var(--accent); }
.form .status-msg { min-height: 1.6em; font-weight: 600; color: var(--accent); }

/* ---- calm / reduced motion ---- */
html[data-calm] *, html[data-calm] *::before, html[data-calm] *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
html[data-calm] .rv { opacity: 1; transform: none; }
html[data-calm] .mask > span { transform: none; }
html[data-calm] .scrollcue { display: none; }
html[data-calm] .cursor { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; } .mask > span { transform: none; } .scrollcue, .cursor { display: none; }
  .statement { height: auto; padding: var(--sheet) 0; } .statement-stage { position: static; height: auto; padding-top: 0; } .statement .w { opacity: 1; }
}
@media print { .nav, .getbar, .terrain, .waves, .cursor, .menu { display: none !important; } body { background: #fff; color: #000; } }

/* ---- small fixes ---- */
h1.rv { opacity: 1; transform: none; }
.statement mark { background: none; color: inherit; }
.hero .wrap:has(h1) { align-self: center; padding-block: clamp(16px, 3vh, 40px); }
a.row { color: inherit; }
a.row:hover h3 { color: var(--accent); }
.side .portrait { grid-column: auto; position: static; }
.hero h1 .l1 { color: var(--cream); }
.sheet.first.hero { padding: calc(var(--nav-h) + clamp(16px, 3vh, 36px)) 0 calc(var(--radius) + clamp(20px, 3vh, 40px)); }
.cue { color: var(--sfg); }
.final h2 { padding-bottom: 0.14em; }
.more-grid { padding-bottom: clamp(60px, 10vw, 180px); }
.orb { width: 50%; margin-top: -10%; }
@media (max-width: 899px) { .feat .ghost { display: none; } }

/* ---- hero: copy left, device right ---- */
.sheet.first.hero { grid-template-rows: 1fr; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.7fr); gap: clamp(20px, 3vw, 56px); align-items: stretch; min-height: calc(100svh - var(--nav-h) - var(--radius) - clamp(36px, 6vh, 76px)); }
.hero-left { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.hero-left h1 { align-self: center; margin-block: clamp(18px, 3.4vh, 48px); font-size: clamp(2.6rem, min(6.5vw, 11.6vh), 9rem); }
.hero .wrap:has(h1) { align-self: auto; padding-block: 0; }
.hero-bottom { align-items: flex-end; justify-content: flex-start; gap: 22px 36px; }
.hero-right { display: grid; place-items: center; position: relative; }
.hero-right::before { content: ""; position: absolute; inset: 10% -20%; background: radial-gradient(closest-side, rgba(233, 113, 1, 0.34), transparent 72%); filter: blur(26px); z-index: -1; }
.dev { --dh: min(74svh, 780px); position: relative; height: var(--dh); aspect-ratio: 540 / 1102; transform: translate3d(calc(var(--hx, 0) * 12px), calc(var(--hy, 0) * 8px), 0) rotate(calc(var(--hx, 0) * 1.2deg)); transition: transform 0.6s var(--ease-out); }
.dev-body { position: absolute; inset: 0; border-radius: 15.5% / 7.6%; background: linear-gradient(145deg, #ffb27a 0%, #f07a12 30%, #c95f00 62%, #7a3a00 100%); box-shadow: 0 50px 90px -34px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 210, 170, 0.35) inset, 0 0 0 1px rgba(0, 0, 0, 0.35); }
.dev-body::before, .dev-body::after { content: ""; position: absolute; width: 1.1%; border-radius: 3px; background: linear-gradient(#ffb27a, #c95f00); }
.dev-body::before { left: -0.9%; top: 20%; height: 7%; box-shadow: 0 150% 0 0 #d96a05; }
.dev-body::after { right: -0.9%; top: 28%; height: 11%; }
.dev-bezel { position: absolute; inset: 1.15% 2.3%; border-radius: 14.4% / 7%; background: #050403; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); overflow: hidden; }
.dev-screen { position: absolute; inset: 1.6% 3.3%; border-radius: 12% / 5.9%; overflow: hidden; background: #000; }
.dev-screen video { width: 100%; height: 100%; object-fit: cover; }
.dev-island { position: absolute; left: 50%; top: 2.6%; width: 26%; height: 2.7%; margin-left: -13%; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04); }
.dev-toggle { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); transition: transform 0.18s var(--press); touch-action: manipulation; }
.dev-toggle:active { transform: scale(0.94); }
.dev-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.dev-toggle .i-play { display: none; }
.dev-toggle[aria-pressed="true"] .i-pause { display: none; }
.dev-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-right .slot img, .hero-right .slot video { height: min(74svh, 780px); width: auto; aspect-ratio: auto; border-radius: 0; }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { grid-template-rows: auto auto auto; }
  .hero-left h1 { font-size: var(--t-hero); }
  .hero-right { margin-top: 8px; padding-bottom: 24px; }
  .dev { --dh: min(62svh, 520px); }
  .sheet.first.hero { padding-bottom: calc(var(--radius) + 28px); }
}

/* ---- smart qr ---- */
.qr { display: none; align-items: center; gap: 14px; color: var(--muted); font-size: 0.82rem; line-height: 1.35; text-transform: lowercase; transition: transform 0.2s var(--press); }
.qr img { width: 96px; height: 96px; border-radius: 7px; }
.qr:hover { color: var(--fg); transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) { .qr { display: flex; } }
.final-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.final .qr { color: var(--muted); }

/* ---- soundscape player ---- */
.sp { min-height: 100svh; display: grid; align-content: center; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 88px); align-items: center; }
.sp-copy { display: grid; gap: clamp(18px, 3vh, 32px); }
.sp-copy h2 { max-width: 9em; }
.sp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-list button { text-align: left; padding: 12px 16px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 2px; min-height: 64px; transition: box-shadow 0.2s var(--ease-out), background-color 0.2s, transform 0.16s var(--press); touch-action: manipulation; }
.sp-list button b { font-weight: 800; letter-spacing: -0.02em; text-transform: lowercase; font-size: 1.05rem; }
.sp-list button span { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.sp-list button:active { transform: scale(0.98); }
.sp-list button[aria-checked="true"] { background: var(--ember); box-shadow: none; color: var(--on-ember); }
.sp-list button[aria-checked="true"] span { color: rgba(28, 13, 0, 0.82); }
@media (hover: hover) and (pointer: fine) { .sp-list button:hover { box-shadow: inset 0 0 0 1.5px var(--ember); } .sp-list button[aria-checked="true"]:hover { box-shadow: none; } }
.sp-stage { position: relative; aspect-ratio: 4 / 5; max-height: 82svh; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgba(0, 0, 0, 0.9); isolation: isolate; }
.sp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; transition: opacity 1.5s ease-in-out; }
.sp-stage.is-playing canvas { opacity: calc(0.9 + var(--lvl, 0) * 0.1); }
.sp-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 9, 7, 0.55), transparent 28%, transparent 56%, rgba(11, 9, 7, 0.78)); pointer-events: none; }
.sp-ui { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(18px, 3vw, 30px); color: var(--cream); transition: opacity 1s ease-in-out; }
.sp-stage.is-dim .sp-ui { opacity: 0.2; }
.sp-head { display: grid; gap: 2px; }
.sp-title { font-weight: 900; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -0.04em; color: var(--ember); text-transform: lowercase; line-height: 1; }
.sp-sub { color: var(--cream); font-size: 0.95rem; opacity: 0.85; text-transform: lowercase; }
.sp-ctl { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sp-play { width: clamp(72px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; transition: transform 0.18s var(--press); touch-action: manipulation; box-shadow: 0 0 0 calc(10px + var(--lvl, 0) * 22px) rgba(244, 236, 227, 0.14); }
.sp-play:active { transform: scale(0.94); }
.sp-play svg { width: 34%; grid-area: 1 / 1; }
.sp-play .i-pause { display: none; }
.sp-play[aria-pressed="true"] .i-play { display: none; }
.sp-play[aria-pressed="true"] .i-pause { display: block; }
.sp-time { position: absolute; right: clamp(18px, 3vw, 30px); top: clamp(18px, 3vw, 30px); font-variant-numeric: tabular-nums; font-size: 0.85rem; opacity: 0.8; }
.sp-foot { display: grid; gap: 10px; }
.sp-status { font-size: 0.85rem; opacity: 0.85; text-transform: lowercase; margin: 0; }
.sp-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sp-lbl { font-size: 0.8rem; font-weight: 600; text-transform: lowercase; opacity: 0.9; }
.sp-timer > div { display: flex; gap: 6px; }
.sp-chip { min-height: 36px; min-width: 44px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(244, 236, 227, 0.4); font-size: 0.8rem; font-weight: 700; text-transform: lowercase; touch-action: manipulation; transition: background-color 0.2s, color 0.2s; }
.sp-chip[aria-pressed="true"] { background: var(--ember); color: var(--on-ember); box-shadow: none; }
.sp-timer-left { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.sp-haptics { font-size: 0.82rem; display: inline-flex; align-items: center; gap: 8px; text-transform: lowercase; }
.sp-haptics small { opacity: 0.7; }
.sp-haptics input { accent-color: var(--ember); width: 18px; height: 18px; }
@media (max-width: 899px) { .sp { min-height: 0; } .sp-grid { grid-template-columns: 1fr; } .sp-stage { aspect-ratio: 3 / 4; max-height: none; } .sp-list { grid-template-columns: 1fr 1fr; } }
