@font-face { font-family: "Satisfy"; src: url(assets/fonts/Satisfy-Regular.ttf) format("truetype"); font-display: swap; }

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
  --paper-top: #f8f7f1; --paper-mid: #f4f1e8; --paper-bottom: #ebe5d8;
  --ink: #1c1915; --soft-ink: #6b645a; --quiet-ink: #958c7f;
  --porcelain: #224fa4; --porcelain-soft: #c9d6ee;
  --gold: #e8b553; --gold-shine: #ffecb3; --bronze: #3a2c0f;
  --card: #fffdf7; --card-edge: #e3dac6;
  --red: #a3283c;
  --leaf: #4f6b3c; --leaf-2: #6f8a4f; --brick: #b98c6c;
  --shadow: 0 30px 60px -30px rgba(58, 44, 15, .35);
  --scale: 1;
  color-scheme: light;
}
:root[data-theme="dark"] {
    --paper-top: #2a251d; --paper-mid: #242019; --paper-bottom: #1b1813;
    --ink: #f4efe6; --soft-ink: #c2b8a8; --quiet-ink: #8d8476;
    --porcelain: #9db8ef; --porcelain-soft: #33405a;
    --card: #302a21; --card-edge: #453c31;
    --red: #e8798a;
    --brick: #6e5140;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font: 400 calc(17px * var(--scale))/1.55 var(--sans);
  background: linear-gradient(180deg, var(--paper-top), var(--paper-mid) 40%, var(--paper-bottom));
  background-attachment: fixed;
  overflow-x: clip;
  transition: font-size .6s cubic-bezier(.3, 1.4, .5, 1);
}
body::before { /* faint paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--porcelain); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }

main, .foot, .nav { position: relative; z-index: 2; }
#dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* --- window light: soft leaf shadows drifting across the page --- */
.window-light { position: fixed; inset: -10%; pointer-events: none; z-index: 1; mix-blend-mode: multiply; opacity: .55; }
.window-light i {
  position: absolute; width: 38vmax; height: 16vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 96, 60, .10), transparent);
  filter: blur(18px); animation: sway 18s ease-in-out infinite alternate;
}
.window-light i:nth-child(1) { left: 2%; top: 4%; transform: rotate(-25deg); }
.window-light i:nth-child(2) { left: 55%; top: 12%; transform: rotate(30deg); animation-duration: 23s; }
.window-light i:nth-child(3) { left: 20%; top: 52%; transform: rotate(12deg); animation-duration: 20s; }
.window-light i:nth-child(4) { left: 68%; top: 62%; transform: rotate(-40deg); animation-duration: 26s; }
.window-light i:nth-child(5) { left: 40%; top: 85%; transform: rotate(5deg); }
@keyframes sway { to { translate: 3vw 2vh; rotate: 8deg; } }
[data-theme="dark"] .window-light { mix-blend-mode: screen; opacity: .25; } [data-theme="dark"] .window-light i { background: radial-gradient(closest-side, rgba(255, 220, 160, .12), transparent); }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, 4vw); padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--paper-top) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--card-edge) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand span { font: 400 30px/1 "Satisfy", cursive; padding-top: 4px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--soft-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--porcelain); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.sound-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-edge); background: var(--card); color: var(--soft-ink); cursor: pointer; display: grid; place-items: center; }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle .waves { display: none; }
.sound-toggle[aria-pressed="true"] { color: var(--porcelain); }
.sound-toggle[aria-pressed="true"] .waves { display: block; }
.sound-toggle[aria-pressed="true"] .mute { display: none; }
@media (max-width: 860px) { .nav nav { display: none; } .nav-actions { margin-left: auto; } }

/* --- App Store badge --- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 12px;
  padding: 9px 20px 9px 16px; min-height: 56px;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
}
.badge:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6), 0 0 0 4px color-mix(in srgb, var(--gold) 45%, transparent); }
.badge .apple { width: 24px; height: 28px; }
.badge span { display: flex; flex-direction: column; font: 600 24px/1 var(--sans); letter-spacing: -.02em; }
.badge small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }
.badge-sm { min-height: 40px; padding: 5px 12px 5px 10px; border-radius: 9px; gap: 6px; }
.badge-sm .apple { width: 16px; height: 19px; }
.badge-sm span { font-size: 16px; }
.badge-sm small { font-size: 8.5px; }
.badge-lg { min-height: 64px; padding: 11px 26px 11px 20px; }
.badge-lg span { font-size: 28px; }
[data-theme="dark"] .badge { border-color: #5a5a5a; }

/* --- shared type --- */
section { padding: clamp(80px, 12vw, 150px) max(16px, 5vw); position: relative; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .22em; font-size: calc(12.5px * var(--scale)); font-weight: 600; color: var(--porcelain); }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.015em; margin: 0; }
h1 { font-size: calc(clamp(42px, 6.4vw, 86px) * var(--scale)); line-height: 1.02; }
h2 { font-size: calc(clamp(38px, 5.4vw, 72px) * var(--scale)); line-height: 1.04; text-align: center; }
h1 em, h2 em { font-style: italic; color: var(--porcelain); }
.section-sub { text-align: center; max-width: 620px; margin: 18px auto 0; color: var(--soft-ink); font-size: calc(19px * var(--scale)); }
section > .eyebrow { text-align: center; }
.script { font: 400 calc(clamp(34px, 4vw, 52px) * var(--scale))/1.2 "Satisfy", cursive; color: var(--porcelain); }
.hand { font-family: "Satisfy", cursive; color: var(--porcelain); font-size: 1.35em; margin-right: 8px; }

.deco { position: absolute; pointer-events: none; z-index: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 120ms); }
.reveal.in { opacity: 1; transform: none; }

/* --- hero --- */
.hero {
  min-height: calc(100svh - 64px); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw;
  padding-top: clamp(40px, 6vw, 80px); padding-bottom: 110px;
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.lede { font-size: calc(clamp(18px, 1.5vw, 21px) * var(--scale)); color: var(--soft-ink); max-width: 540px; margin: 26px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.fine { color: var(--quiet-ink); font-size: calc(14px * var(--scale)); }
.deco-hero-a { width: clamp(220px, 30vw, 440px); right: -4vw; top: -2vw; opacity: .9; }

.hero-stage { position: relative; margin: 0; aspect-ratio: 1 / 1; max-height: 74svh; width: 100%; justify-self: center; z-index: 1; }
.hero-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.hero-stage figcaption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: var(--quiet-ink); font-size: calc(14px * var(--scale)); }

.ar-btn {
  position: absolute; right: 8px; top: 8px; border: 1px solid var(--card-edge); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 10px 16px; font: 600 14px var(--sans); cursor: pointer; box-shadow: var(--shadow);
}

.fall { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--quiet-ink); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.fall svg { width: 22px; }
.fall .dot { animation: fall 1.8s ease-in-out infinite; }
@keyframes fall { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero-copy { margin: 0 auto; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-stage { max-width: 460px; max-height: none; }
}

/* --- story --- */
.story { text-align: center; overflow: hidden; }
.story-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.big-quiet { font: italic 400 calc(clamp(20px, 2vw, 26px) * var(--scale))/1.45 var(--sans); color: var(--soft-ink); max-width: 560px; margin: 22px auto 0; }

.age-card {
  margin: 56px auto; max-width: 560px; padding: 34px clamp(20px, 4vw, 40px) 30px;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 28px; box-shadow: var(--shadow);
}
.age-q { display: block; color: var(--soft-ink); font-size: calc(18px * var(--scale)); }
.age-q strong { display: block; color: var(--ink); font: 500 calc(26px * var(--scale)) var(--sans); margin-top: 6px; }
.age-num { display: block; margin: 18px 0 8px; font: 500 calc(20px * var(--scale)) var(--sans); color: var(--soft-ink); }
.age-num span { font: 500 calc(clamp(64px, 8vw, 96px) * var(--scale))/1 var(--sans); color: var(--porcelain); font-variant-numeric: lining-nums tabular-nums; display: inline-block; min-width: 2.2ch; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 40%), var(--card-edge) var(--p, 40%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--card-edge); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-shine), var(--gold) 55%, #9a7128); border: 2px solid var(--card); box-shadow: 0 6px 14px rgba(58, 44, 15, .35); }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); border: 2px solid var(--card); }
.age-scale { display: flex; justify-content: space-between; color: var(--quiet-ink); font-size: 12px; padding: 0 4px; }
.age-gen { margin: 16px 0 0; font: italic 500 calc(22px * var(--scale)) var(--sans); }
.story-line { font-size: calc(clamp(19px, 1.7vw, 22px) * var(--scale)); color: var(--soft-ink); max-width: 600px; margin: 0 auto 26px; }
.story-line.strong { font: 500 calc(clamp(24px, 2.6vw, 34px) * var(--scale))/1.3 var(--sans); color: var(--ink); margin-top: 48px; }

/* --- how it works: the memory box --- */
.how { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 1180px; margin: 64px auto 0; align-items: start; text-align: left; }
.box-stage { position: sticky; top: 88px; z-index: 3; border-radius: 34px; padding: 10px; height: min(76svh, 640px); display: flex; flex-direction: column; }
#box-canvas { flex: 1; width: 100%; min-height: 0; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity .8s; }
.box-stage.ready #box-canvas { opacity: 1; }
#box-canvas:active { cursor: grabbing; }
.box-controls { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 8px 6px; flex-wrap: wrap; }
.papers { display: flex; gap: 8px; flex-wrap: wrap; }
.paper { width: 36px; height: 36px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--img) center / 260%; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 3px 8px rgba(58, 44, 15, .25); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.paper:hover { transform: scale(1.1); }
.paper[aria-checked="true"] { outline: 2.5px solid var(--porcelain); outline-offset: 2px; }
.label-field input { width: 150px; height: 40px; border-radius: 999px; padding: 0 16px; text-align: center; font: 600 16px var(--serif); color: var(--ink); }
.label-field input:focus { outline: 2.5px solid var(--porcelain); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 14vh 0 22vh; display: flex; flex-direction: column; gap: 26vh; }
.step { border-radius: 30px; padding: 30px 28px 32px; cursor: pointer; opacity: .5; transform: scale(.98); transition: opacity .5s, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.step.active { opacity: 1; transform: none; }
.step-n { font: 600 15px var(--sans); color: var(--porcelain); }
.step h3 { font-size: calc(clamp(24px, 2.2vw, 30px) * var(--scale)); line-height: 1.15; margin: 6px 0 10px; }
.step p { margin: 0; color: var(--soft-ink); font-size: calc(17px * var(--scale)); }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .box-stage { top: 70px; height: 50svh; min-height: 330px; border-radius: 28px; }
  .steps { padding: 6vh 0 10vh; gap: 34vh; }
  .step { padding: 22px 20px 24px; }
  .label-field input { width: 120px; height: 36px; font-size: 15px; }
  .paper { width: 30px; height: 30px; }
}

/* --- tea party --- */
.tea { text-align: center; overflow: hidden; }
.deco-tea { width: clamp(180px, 22vw, 320px); right: 2vw; top: 40px; opacity: .7; }
.table-wrap { position: relative; max-width: 1180px; margin: 70px auto 0; }
.table { list-style: none; margin: 0; padding: 0 3%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2%; align-items: end; position: relative; z-index: 2; }
.seat { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.piece { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; cursor: pointer; width: 100%; position: relative; padding-bottom: 18px; }
.piece img { width: 100%; max-height: 230px; object-fit: contain; object-position: bottom; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), filter .4s; filter: drop-shadow(0 18px 10px rgba(30, 18, 6, .28)); }
.piece:hover img, .piece:focus-visible img { transform: translateY(-14px) rotate(-3deg) scale(1.05); filter: drop-shadow(0 34px 16px rgba(30, 18, 6, .2)); }
.piece:focus-visible { outline: none; }
.piece:focus-visible .tag { outline: 3px solid var(--gold); }
.tag {
  position: absolute; bottom: -34px; font: 500 calc(15px * var(--scale)) var(--sans); color: var(--ink); white-space: nowrap;
  background: var(--card); border: 1px solid var(--card-edge); padding: 5px 14px 5px 22px; border-radius: 4px 14px 14px 4px; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .4);
  rotate: -3deg; transition: rotate .4s;
}
.tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; border: 1.5px solid var(--gold); }
.seat:nth-child(even) .tag { rotate: 4deg; }
.tabletop {
  position: relative; height: clamp(46px, 6vw, 70px); margin-top: -26px; border-radius: 22px; z-index: 1;
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 80%, var(--paper-bottom)));
  border: 1px solid var(--card-edge);
  box-shadow: 0 40px 50px -34px rgba(58, 44, 15, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
[data-theme="dark"] .tabletop { box-shadow: 0 40px 50px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
@media (max-width: 760px) {
  .table { grid-template-columns: repeat(2, 1fr); row-gap: 70px; }
  .tabletop { display: none; }
  .seat { padding: 0 4px; }
  .tag { bottom: -46px; }
}

/* --- lift dialog --- */
.lift { border: none; padding: 0; width: min(1000px, 94vw); max-height: 92svh; border-radius: 30px; background: var(--card); color: var(--ink); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6); overflow: auto; }
.lift::backdrop { background: rgba(28, 25, 21, .55); backdrop-filter: blur(6px); }
.lift[open] { animation: lift-in .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes lift-in { from { transform: translateY(40px) scale(.94); opacity: 0; } }
.lift-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.lift-stage { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, var(--paper-top), var(--paper-bottom)); }
.lift-stage model-viewer { width: 100%; height: 100%; }
.lift-card { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.lift-card h3 { font-size: calc(clamp(30px, 3vw, 42px) * var(--scale)); line-height: 1.1; margin-bottom: 18px; }
.typed { font: 400 calc(19px * var(--scale))/1.6 var(--sans); min-height: 7.5em; }
.typed::after { content: "|"; color: var(--gold); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.typed.done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.lift-note { color: var(--quiet-ink); font-size: 13px; margin: 18px 0 0; }
.close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--card-edge); background: var(--card); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 760px) { .lift-grid { grid-template-columns: 1fr; } .lift-stage { aspect-ratio: 1 / .9; } .typed { min-height: 0; } }

/* --- wonders --- */

.wonders-grid { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(30px, 5vw, 80px); max-width: 1200px; margin: 70px auto 0; align-items: start; }
.phone { position: sticky; top: 100px; margin: 0; }
.phone-frame { border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #e9e9ec, #bfc0c5 40%, #f4f4f6 60%, #a9aab0); box-shadow: 0 50px 80px -40px rgba(30, 20, 10, .55); }
.phone-frame img { border-radius: 42px; width: 100%; }
[data-theme="dark"] .phone-frame { background: linear-gradient(145deg, #4a4a4f, #2a2a2e 40%, #5a5a60 60%, #222); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--card-edge); border-radius: 22px; padding: 24px 24px 22px; position: relative; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background: url("assets/img/flower-9.webp") center/contain no-repeat; opacity: 0; transition: opacity .5s, transform .6s; transform: rotate(-20deg) scale(.7); }
.feature:hover::after { opacity: .22; transform: none; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--porcelain); background: color-mix(in srgb, var(--porcelain-soft) 55%, transparent); margin-bottom: 14px; }
.ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: calc(22px * var(--scale)); line-height: 1.2; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--soft-ink); font-size: calc(16px * var(--scale)); }
@media (max-width: 900px) { .wonders-grid { grid-template-columns: 1fr; } .phone { position: relative; top: 0; max-width: 300px; margin: 0 auto; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
/* --- final CTA --- */
.final { text-align: center; overflow: hidden; }
.deco-final-a { width: clamp(220px, 28vw, 420px); left: -4vw; top: 20px; opacity: .8; }
.deco-final-b { width: clamp(200px, 24vw, 360px); right: -3vw; bottom: 30px; opacity: .7; transform: scaleX(-1); }
.final-card { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 60px); background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--card-edge); border-radius: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final-card .section-sub { margin: 0; }
.final-icon { border-radius: 25px; box-shadow: 0 18px 30px -12px rgba(58, 44, 15, .45); }

/* --- footer --- */
.foot { padding: 50px max(16px, 5vw) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--card-edge); display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.foot-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--quiet-ink); }
.foot-brand .script { font-size: 34px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--soft-ink); text-decoration: none; }
.foot nav a:hover { color: var(--porcelain); }
.copy { grid-column: 1 / -1; margin: 0; color: var(--quiet-ink); font-size: 12.5px; }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* app icon */
.brand-icon { border-radius: 9px; box-shadow: 0 2px 6px rgba(58, 44, 15, .25); }
@media (max-width: 860px) {
  .deco-hero-a { width: 180px; right: -40px; top: -20px; opacity: .45; }
  .cta-row { flex-direction: column; }
}

/* theme toggle */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-edge); background: var(--card); color: var(--soft-ink); cursor: pointer; display: grid; place-items: center; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
html.theme-anim, html.theme-anim * { transition: background-color .5s, color .5s, border-color .5s !important; }

/* --- Apple-style type --- */
body { letter-spacing: -.011em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.028em; }
h1 { line-height: 1.04; }
h1 em, h2 em { font-style: normal; color: var(--quiet-ink); }
h3 { letter-spacing: -.02em; }
.eyebrow { text-transform: none; letter-spacing: -.005em; font-size: calc(17px * var(--scale)); font-weight: 600; }
.big-quiet, .story-line.strong, .typed { font-family: var(--serif); }
.big-quiet { font-style: normal; }
.story-line.strong { font-weight: 500; letter-spacing: -.01em; }
.age-num span { font-family: var(--sans); font-weight: 600; letter-spacing: -.04em; }
.age-q strong, .age-gen { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -.02em; }

.tag { font-family: var(--sans); font-weight: 500; font-size: calc(14px * var(--scale)); }
.kicker { font: 600 calc(clamp(24px, 2.4vw, 30px) * var(--scale))/1.2 var(--sans); letter-spacing: -.02em; color: var(--porcelain); margin: 40px 0 0; }
.final .kicker { margin: 0; }
.fall { text-transform: none; letter-spacing: 0; font-size: 13px; }
.hero-stage figcaption { position: static; margin-top: 4px; }
.hero-stage { aspect-ratio: auto; height: min(68svh, 640px); max-height: none; display: flex; flex-direction: column; }
.hero-stage model-viewer { flex: 1; min-height: 0; }
@media (max-width: 860px) { .hero-stage { height: 440px; } }

/* ============ Glass (Apple-style material) ============ */
:root {
  --glass-fill: linear-gradient(140deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .26));
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-shine: rgba(255, 255, 255, .95);
  --glass-shadow: 0 24px 48px -24px rgba(58, 44, 15, .28), 0 2px 6px -2px rgba(58, 44, 15, .08);
}
[data-theme="dark"] {
  --glass-fill: linear-gradient(140deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-shine: rgba(255, 255, 255, .22);
  --glass-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .3);
}
.glass, .age-card, .feature, .final-card, .sound-toggle, .theme-toggle, .tag, .close, .ar-btn, .label-field input, .lift-card {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-shine), inset 0 -1px 1px rgba(255, 255, 255, .12), inset 0 0 0 .5px rgba(255, 255, 255, .25), var(--glass-shadow);
}
.glass, .age-card, .final-card { isolation: isolate; }
.glass::before, .age-card::before, .final-card::before { /* soft specular sheen, like light on glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .45), transparent 55%);
}
[data-theme="dark"] .glass::before, [data-theme="dark"] .age-card::before, [data-theme="dark"] .final-card::before { background: radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .08), transparent 55%); }
.glass, .age-card, .final-card { position: relative; }
.box-stage.glass { position: relative; top: auto; }
.lift { background: color-mix(in srgb, var(--paper-top) 80%, transparent); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.lift-card { border: none; border-radius: 0; box-shadow: none; }
.nav { background: color-mix(in srgb, var(--paper-top) 55%, transparent); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }

/* color behind the glass, so it has something to refract */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 30s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: 10vh; background: radial-gradient(circle, rgba(34, 79, 164, .22), transparent 65%); }
.aura i:nth-child(2) { width: 40vmax; height: 40vmax; right: -10vmax; top: 40vh; background: radial-gradient(circle, rgba(232, 181, 83, .26), transparent 65%); animation-duration: 36s; }
.aura i:nth-child(3) { width: 34vmax; height: 34vmax; left: 30vw; bottom: -14vmax; background: radial-gradient(circle, rgba(198, 120, 140, .14), transparent 65%); animation-duration: 42s; }
[data-theme="dark"] .aura i { opacity: .7; }
@keyframes drift { to { transform: translate(6vw, -5vh) scale(1.08); } }
.signature { margin: 4px 0 0; color: var(--soft-ink); font-size: 15px; }
.signature strong { color: var(--ink); font-weight: 600; }
html { overflow-x: clip; }
.hero, .final, .story, .tea { overflow-x: clip; overflow-y: visible; }
@media (max-width: 900px) {
  .box-stage { height: 44svh; min-height: 300px; }
}
.badge span, .badge small { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .brand span { font-size: 26px; }
  .brand img { width: 30px; height: 30px; }
  .nav-actions { gap: 8px; }
  .sound-toggle, .theme-toggle { width: 36px; height: 36px; }
  .badge-sm { padding: 5px 10px 5px 8px; }
  .badge-sm small { display: none; }
  .badge-sm span { font-size: 15px; }
  .hero h1 { font-size: 40px; }
}
/* collection: objects stand on their own, same footprint each */
.piece { height: clamp(150px, 20vw, 250px); justify-content: flex-end; }
.piece img { height: 100%; width: 100%; max-height: none; object-fit: contain; object-position: center bottom; }
@media (max-width: 760px) { .piece { height: 140px; } .table { row-gap: 64px; } }
.table { padding-bottom: 40px; }
.piece img { filter: drop-shadow(0 22px 14px rgba(58, 44, 15, .22)); }
[data-theme="dark"] .piece img { filter: drop-shadow(0 22px 14px rgba(0, 0, 0, .5)); }
/* box panel stays in place; steps sit beside it compactly */
.box-stage { position: relative; top: auto; }
.how { align-items: center; }
.steps { padding: 0; gap: 16px; }
.step { opacity: .62; }
@media (max-width: 900px) {
  .box-stage { height: 56svh; min-height: 340px; }
  .steps { margin-top: 18px; gap: 12px; }
}
/* AR button below the model, clear of the close button */
.lift .ar-btn, .hero-stage .ar-btn { top: auto; right: auto; bottom: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.hero-stage .ar-btn { bottom: 4px; }
/* language picker */
.lang { position: relative; display: inline-flex; }
.lang-select { appearance: none; -webkit-appearance: none; height: 40px; border-radius: 999px; padding: 0 14px; font: 600 13px var(--sans); color: var(--soft-ink); cursor: pointer;
  background: var(--glass-fill); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-shine), var(--glass-shadow); }
.lang-select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-foot .lang-select { height: 36px; font-size: 14px; }
.foot { grid-template-columns: 1fr auto auto; }
@media (max-width: 480px) { .nav .lang { display: none; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } .lang-foot { justify-self: start; } }
