/* ————— Leaf & Spine — cinematic scroll ————— */
:root {
  --walnut: #3b2a1e;
  --walnut-deep: #241a12;
  --charcoal: #141210;
  --charcoal-2: #1b1815;
  --cream: #f2e9d8;
  --cream-dim: #cfc4ad;
  --leather: #2c1d14;
  --brass: #b08d57;
  --gold: #d4af37;
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: rgba(176,141,87,.45) transparent; }
html, body { background: var(--charcoal); color: var(--cream); }
body { font-family: var(--sans); overflow-x: hidden; }
::selection { background: rgba(176,141,87,.35); }

/* ————— Loader ————— */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(120% 100% at 50% 8%, #1e1a15 0%, var(--charcoal) 62%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; transition: opacity 1.1s ease .15s, visibility 1.1s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-leaf { width: 56px; height: 56px; }
.loader-leaf path { stroke: var(--brass); stroke-width: 1.4; fill: none;
  stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 2.6s ease forwards; }
.loader-leaf .leaf-vein { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1.6s ease 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-word { font-family: var(--serif); letter-spacing: .42em; font-size: 15px; color: var(--cream); text-indent: .42em; }
.loader-word span { color: var(--brass); }
.loader-bar { width: min(260px, 60vw); height: 1px; background: rgba(242,233,216,.14); overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brass), var(--gold)); transition: width .35s ease; }
.loader-hint { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,233,216,.42); }

/* ————— Film layer ————— */
#film { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
#vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 58%, rgba(10,8,6,.55) 100%),
    linear-gradient(180deg, rgba(10,8,6,.35) 0%, transparent 14%, transparent 86%, rgba(10,8,6,.4) 100%);
}

/* ————— Navigation ————— */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(22px, 4.5vw, 64px);
  transition: padding .5s ease, background .5s ease, backdrop-filter .5s ease;
}
#nav.scrolled { padding-top: 14px; padding-bottom: 14px;
  background: linear-gradient(180deg, rgba(15,13,11,.55), rgba(15,13,11,0));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-leaf { width: 22px; height: 22px; color: var(--brass); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-leaf { transform: rotate(-8deg) scale(1.08); }
.brand-word { font-family: var(--serif); font-size: 15px; letter-spacing: .34em; }
.brand-word em { font-style: normal; color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.nav-links a {
  color: var(--cream); text-decoration: none; font-size: 13.5px; letter-spacing: .22em;
  text-transform: uppercase; position: relative; padding: 6px 0; transition: color .35s ease;
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta { color: var(--brass); }

/* ————— Chapter dots ————— */
#chapters {
  position: fixed; right: clamp(14px, 2.2vw, 30px); top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 18px;
}
#chapters button {
  width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(176,141,87,.6);
  background: transparent; cursor: pointer; position: relative; transition: background .4s, transform .4s;
}
#chapters button.active { background: var(--brass); transform: scale(1.35); }
#chapters button::before {
  content: attr(data-name); position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  font-size: 11px; letter-spacing: .16em; color: var(--cream-dim); white-space: nowrap;
  opacity: 0; transition: opacity .3s; pointer-events: none; font-family: var(--sans);
}
#chapters button:hover::before { opacity: 1; }

/* ————— Scenes ————— */
#stage { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 7vw, 110px);
  opacity: 0; visibility: hidden;
}
/* soft scrim so text holds against bright paper/gold frames */
.scene::before {
  content: ""; position: absolute; inset: -12% -22%; pointer-events: none; z-index: -1;
}
.scene.left::before  { background: radial-gradient(56% 64% at 24% 52%, rgba(10,8,6,.66), transparent 72%); }
.scene.right::before { background: radial-gradient(56% 64% at 76% 52%, rgba(10,8,6,.66), transparent 72%); }
.scene.center::before, #hero::before { background: radial-gradient(54% 60% at 50% 52%, rgba(10,8,6,.62), transparent 74%); }
.scene.on { visibility: visible; }
.scene.on .btn, .scene.on a, .scene.on button, .scene.on .book { pointer-events: auto; }
.scene.left  { align-items: flex-start; text-align: left; }
.scene.right { align-items: flex-end;   text-align: right; }
.scene.center{ align-items: center;     text-align: center; }
#hero { align-items: center; text-align: center; }

.eyebrow {
  font-size: 13px; letter-spacing: .5em; text-transform: uppercase; text-indent: .5em;
  color: var(--gold); margin-bottom: 22px;
  text-shadow: 0 1px 14px rgba(0,0,0,.8);
}
h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 8.2vw, 118px);
  line-height: 1.02; letter-spacing: .01em; text-wrap: balance;
  text-shadow: 0 1px 6px rgba(0,0,0,.75), 0 2px 40px rgba(0,0,0,.55);
}
.sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 2.3vw, 30px); color: var(--cream-dim); margin-top: 18px;
}
h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.06; text-shadow: 0 1px 7px rgba(0,0,0,.8), 0 2px 34px rgba(0,0,0,.6); text-wrap: balance;
}
.copy {
  max-width: 44ch; margin-top: 18px; font-weight: 400; font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.75; color: var(--cream); text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 2px 24px rgba(0,0,0,.6);
}
.copy.small { font-size: 15px; max-width: 40ch; }
.scene.right .copy { margin-left: auto; }

/* Buttons */
.cta-row { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; user-select: none;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase;
  padding: 17px 34px; border-radius: 2px; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, color .35s, background .35s;
  will-change: transform;
}
.btn-solid {
  background: linear-gradient(160deg, #c29a63, var(--brass) 55%, #8f6f42);
  color: #171310; border: none; box-shadow: 0 6px 30px rgba(176,141,87,.25);
}
.btn-solid::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,248,230,.45), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.btn-solid:hover::after { left: 130%; }
.btn-solid:hover { box-shadow: 0 10px 44px rgba(212,175,55,.35); }
.btn-ghost {
  background: rgba(20,17,14,.25); color: var(--cream);
  border: 1px solid rgba(242,233,216,.35); backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--gold); }
.btn-lg { padding: 21px 46px; font-size: 13.5px; margin-top: 36px; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(242,233,216,.75);
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.scroll-hint span { width: 1px; height: 46px; background: rgba(176,141,87,.5); position: relative; overflow: hidden; }
.scroll-hint span::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--gold); animation: drip 2.2s cubic-bezier(.6,0,.3,1) infinite;
}
@keyframes drip { 0% { top: -50%; } 100% { top: 110%; } }

/* Chips (formats) */
.chips { list-style: none; display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.chips li {
  font-size: 13px; letter-spacing: .22em; padding: 11px 19px;
  border: 1px solid rgba(176,141,87,.55); color: var(--cream);
  background: rgba(20,16,12,.62); backdrop-filter: blur(5px); border-radius: 2px;
  transform: translateY(14px); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s, border-color .3s;
}
.scene.on .chips li { transform: translateY(0); opacity: 1; }
.chips li:hover { border-color: var(--gold); }
.chips li:nth-child(1){ transition-delay: .05s } .chips li:nth-child(2){ transition-delay: .12s }
.chips li:nth-child(3){ transition-delay: .19s } .chips li:nth-child(4){ transition-delay: .26s }
.chips li:nth-child(5){ transition-delay: .33s }

/* Study tools */
.tools { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.tools li {
  font-family: var(--serif); font-size: clamp(21px, 2.2vw, 29px); color: var(--cream);
  display: flex; align-items: center; gap: 16px; justify-content: flex-end;
  opacity: 0; transform: translateX(26px); transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s;
  text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 2px 26px rgba(0,0,0,.6);
}
.tools li i { text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.scene.on .tools li { opacity: 1; transform: translateX(0); }
.tools li i { font-style: normal; color: var(--brass); font-size: .8em; width: 24px; text-align: center; }
.tools li:nth-child(1){ transition-delay: .04s } .tools li:nth-child(2){ transition-delay: .1s }
.tools li:nth-child(3){ transition-delay: .16s } .tools li:nth-child(4){ transition-delay: .22s }
.tools li:nth-child(5){ transition-delay: .28s } .tools li:nth-child(6){ transition-delay: .34s }

/* Habit stats */
.stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 30px; }
.stat b {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.5vw, 64px);
  color: var(--gold); display: block; line-height: 1; text-shadow: 0 2px 26px rgba(0,0,0,.6);
}
.stat b { text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 2px 30px rgba(0,0,0,.65); }
.stat span { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.chart { width: min(300px, 60vw); margin-top: 26px; overflow: visible; }
.chart rect { fill: rgba(176,141,87,.75); transition: transform 1s cubic-bezier(.2,.8,.2,1); transform: translateY(0); transform-box: fill-box; }
.chart rect { transform: scaleY(0); transform-origin: bottom; }
.scene.on .chart rect { transform: scaleY(1) translateY(-100%); }
.chart rect:nth-child(1){ transition-delay:.05s } .chart rect:nth-child(2){ transition-delay:.13s }
.chart rect:nth-child(3){ transition-delay:.21s } .chart rect:nth-child(4){ transition-delay:.29s }
.chart rect:nth-child(5){ transition-delay:.37s } .chart rect:nth-child(6){ transition-delay:.45s }
.chart rect:nth-child(7){ transition-delay:.53s }

/* Mini bookshelf */
.mini-shelf {
  display: flex; align-items: flex-end; gap: 7px; margin-top: 34px; position: relative;
  padding: 0 14px 12px; perspective: 700px; justify-content: flex-end;
}
.shelf-plank {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(180deg, #4a3524, #2c1f14);
  border-radius: 2px; box-shadow: 0 10px 24px rgba(0,0,0,.55);
}
.book {
  --c1: #7a4a2b; --c2: #5c3620;
  width: 34px; height: var(--h, 120px); position: relative; border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--c2), var(--c1) 30%, var(--c1) 70%, var(--c2));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 2px 0 6px rgba(0,0,0,.35);
  transform: translateY(30px); opacity: 0;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .8s, background .6s, box-shadow .55s;
  transform-style: preserve-3d; cursor: pointer;
}
.scene.on .book { transform: translateY(0); opacity: 1; }
.book:nth-child(1){ transition-delay:.05s } .book:nth-child(2){ transition-delay:.14s }
.book:nth-child(3){ transition-delay:.23s } .book:nth-child(4){ transition-delay:.32s }
.book:nth-child(5){ transition-delay:.41s }
.scene.on .book:hover {
  transform: translateZ(56px) translateY(-12px) scale(1.09);
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 18px 34px rgba(0,0,0,.6);
}
.book::before, .book::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 88px; border-radius: 1px;
  background: linear-gradient(120deg, var(--c1) 60%, var(--c2));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), inset 0 0 0 5px rgba(212,175,55,.12);
  backface-visibility: hidden;
}
.book.selected { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 2px 0 6px rgba(0,0,0,.35), 0 0 0 2px rgba(212,175,55,.55); }
.book::before { left: 100%; transform: rotateY(90deg); transform-origin: left; }
.book::after  { right: 100%; transform: rotateY(-90deg); transform-origin: right; }
.book.patterned { background-image:
  linear-gradient(90deg, var(--c2), var(--c1) 30%, var(--c1) 70%, var(--c2)),
  repeating-linear-gradient(0deg, transparent 0 14px, rgba(212,175,55,.25) 14px 15px); background-blend-mode: overlay; }
.book .spine-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 10.5px; letter-spacing: .14em;
  color: rgba(242,233,216,.85);
}
.swatches { display: flex; gap: 12px; margin-top: 22px; justify-content: flex-end; }
.sw {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(242,233,216,.35); background: var(--c, #7a4a2b);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s;
  color: var(--gold); font-size: 13px; line-height: 1;
}
.sw:hover { transform: scale(1.18); border-color: var(--gold); }
.sw.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.2); }
.sw.pattern { background: var(--leather); }

/* Premium grid */
#premium h2 { margin-bottom: 8px; }
.premium-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  width: min(1120px, 92vw); margin-top: 40px;
}
.tile {
  text-align: left; padding: 24px 22px 26px; border-radius: 3px;
  border: 1px solid rgba(176,141,87,.32);
  background: rgba(16,13,10,.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transform: translateY(26px); opacity: 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s, border-color .35s, box-shadow .35s;
}
.scene.on .tile { transform: translateY(0); opacity: 1; }
.tile:nth-child(1){ transition-delay:.04s } .tile:nth-child(2){ transition-delay:.1s }
.tile:nth-child(3){ transition-delay:.16s } .tile:nth-child(4){ transition-delay:.22s }
.tile:nth-child(5){ transition-delay:.28s } .tile:nth-child(6){ transition-delay:.34s }
.tile:nth-child(7){ transition-delay:.4s }  .tile:nth-child(8){ transition-delay:.46s }
.tile:hover { border-color: rgba(212,175,55,.75); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.tile svg {
  width: 26px; height: 26px; fill: none; stroke: var(--brass);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px;
}
.tile svg .accent { stroke: var(--gold); stroke-width: 2.4; }
.tile svg circle[r=".8"] { fill: var(--brass); stroke: none; }
.tile h3 { font-family: var(--serif); font-weight: 500; font-size: 19.5px; margin-bottom: 7px; color: var(--cream); }
.tile p { font-weight: 300; font-size: 12.8px; line-height: 1.65; color: var(--cream-dim); }

@media (max-width: 1000px) { .premium-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px)  { .premium-grid { grid-template-columns: 1fr; gap: 10px; } .tile { padding: 18px; } }
.price-line {
  margin-top: 26px; font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.85);
}
.price-note {
  display: block; margin-top: 6px; font-family: var(--sans); font-style: normal;
  font-size: 11.5px; letter-spacing: .08em; color: var(--cream-dim);
}

/* Reader quotes */
.quotes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.5vw, 52px);
  width: min(1060px, 90vw); margin-top: 26px;
}
.quotes blockquote { position: relative; padding-top: 34px; }
.quotes blockquote span {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 34px; color: var(--brass); line-height: 1;
}
.quotes blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.7; color: var(--cream);
  text-shadow: 0 1px 22px rgba(0,0,0,.55);
}
.quotes blockquote { opacity: 0; transform: translateY(22px); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.scene.on .quotes blockquote { opacity: 1; transform: translateY(0); }
.quotes blockquote:nth-child(1){ transition-delay:.05s } .quotes blockquote:nth-child(2){ transition-delay:.16s }
.quotes blockquote:nth-child(3){ transition-delay:.27s }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; gap: 26px; } }

/* Store strip */
.store-strip {
  margin-top: 22px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.85);
}
.store-strip a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(212,175,55,.35); }
.store-strip a:hover { border-color: var(--gold); }
.store-strip .dot { color: var(--brass); }

/* Privacy */
.serif-line { font-size: clamp(34px, 4.8vw, 68px); }
.serif-line.dim { color: var(--cream-dim); font-style: italic; font-weight: 400; margin-top: 8px; }
.privacy-notes { margin-top: 34px; display: flex; gap: 16px; align-items: center;
  font-size: 13.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.privacy-notes .dot { color: var(--brass); }
.privacy-link {
  margin-top: 26px; display: inline-block; color: var(--gold); text-decoration: none;
  font-family: var(--serif); font-style: italic; font-size: 17px;
  border-bottom: 1px solid rgba(212,175,55,.35); padding-bottom: 2px;
  transition: border-color .3s, color .3s;
}
.privacy-link:hover { border-color: var(--gold); }

/* Final */
.final-line { font-size: clamp(38px, 5.6vw, 84px); }
#download footer {
  position: absolute; bottom: 30px; left: 0; right: 0;
  display: flex; gap: 14px; align-items: center; justify-content: center;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(242,233,216,.62);
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
#download footer .dot { color: var(--brass); }
#download footer a { color: rgba(242,233,216,.55); text-decoration: none; letter-spacing: .22em; transition: color .3s; }
#download footer a:hover { color: var(--gold); }

/* ————— Scroll track ————— */
#track { position: relative; z-index: -1; pointer-events: none; visibility: hidden; }

/* ————— Modals (restore centering lost to the * reset) ————— */
dialog { margin: auto; }

/* ————— Store chooser modal ————— */
dialog#storeModal {
  border: 1px solid rgba(176,141,87,.4); border-radius: 4px;
  background: #12100d; color: var(--cream);
  padding: 46px 52px 44px; text-align: center;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}
dialog#storeModal::backdrop { background: rgba(8,6,5,.82); backdrop-filter: blur(6px); }
.store-title { font-family: var(--serif); font-size: 34px; font-weight: 500; }
.store-title em { font-style: normal; color: var(--brass); }
.store-sub { font-family: var(--serif); font-style: italic; color: var(--cream-dim); margin: 8px 0 30px; font-size: 17px; }
.store-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center; gap: 13px; text-decoration: none;
  border: 1px solid rgba(176,141,87,.5); border-radius: 3px; padding: 13px 22px;
  color: var(--cream); background: rgba(20,16,12,.4);
  transition: border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.store-btn:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.store-btn svg { width: 26px; height: 26px; color: var(--brass); }
.store-btn span { display: flex; flex-direction: column; text-align: left; font-size: 16px; letter-spacing: .02em; font-weight: 400; }
.store-btn small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); }
#storeModal .modal-close { top: 12px; right: 14px; }

/* ————— Trailer modal ————— */
dialog#trailerModal {
  border: 1px solid rgba(176,141,87,.4); border-radius: 4px; padding: 0;
  background: #0d0b09; max-width: min(1100px, 92vw); width: 100%;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}
dialog#trailerModal::backdrop { background: rgba(8,6,5,.82); backdrop-filter: blur(6px); }
#trailerVideo { display: block; width: 100%; height: auto; }
.modal-close {
  position: absolute; top: -46px; right: 0; background: none; border: none; color: var(--cream);
  font-size: 20px; cursor: pointer; letter-spacing: 0;
}

/* ————— Responsive ————— */
@media (max-width: 760px) {
  #chapters { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .scene.left, .scene.right { align-items: center; text-align: center; }
  .tools li { justify-content: center; }
  .scene.right .copy, .copy { margin-left: auto; margin-right: auto; }
  .swatches, .mini-shelf { justify-content: center; }
  .stats { justify-content: center; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint span::after { animation: none; }
}
