/* =====================================================================
   TOKENS
   Light = prototype 9 palette · Dark = base palette
   ===================================================================== */
:root{
  --bg:#f8f9fa; --surface:#ffffff; --surface-soft:#f1f3f5;
  --text:#111111; --text-2:#333333; --muted:#63636a;
  --accent:#8e3b20; --accent-soft:#c26a4f; --accent-ink:#ffffff;
  --accent-tint:color-mix(in oklab, var(--accent) 10%, transparent);
  --border:#e4e4e7; --line:#d4d4d8;
  --shadow:0 2px 4px rgba(0,0,0,.03), 0 20px 45px -30px rgba(0,0,0,.18);
  --shadow-lg:0 4px 10px rgba(0,0,0,.05), 0 40px 90px -40px rgba(0,0,0,.35);
  --glass:color-mix(in oklab, var(--surface) 76%, transparent);
  --veil:248,249,250;

  --font-display:"Barlow Condensed","Futura Condensed",Oswald,Impact,sans-serif;
  --font-read:"Literata",Georgia,serif;
  --font-ui:"Inter",system-ui,-apple-system,sans-serif;
  --font-plate:"Cinzel","Copperplate",Georgia,serif;

  /* type scale — a notch smaller than the base file, with readable floors */
  --fs-xs:.8125rem;                                   /* 13px: letter-spaced labels only */
  --fs-sm:.9375rem;                                   /* 15px */
  --fs-base:clamp(1rem,.96rem + .2vw,1.0625rem);      /* 16–17px */
  --fs-md:clamp(1.0625rem,1rem + .3vw,1.2rem);
  --fs-lg:clamp(1.2rem,1.05rem + .6vw,1.5rem);
  --fs-xl:clamp(1.45rem,1.2rem + 1.1vw,2.1rem);
  --fs-2xl:clamp(1.9rem,1.3rem + 2.4vw,3.3rem);
  --fs-hero:clamp(2.6rem,1.4rem + 4.4vw,5.6rem);

  --r-sm:10px; --r:14px; --r-lg:20px; --r-xl:28px;
  --gutter:clamp(1.25rem,4vw,3.5rem);
  --maxw:1320px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --spring:cubic-bezier(.34,1.56,.64,1);

  /* device chrome — overridden per breakpoint */
  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
  --top-h:76px; --rail-w:0px; --bot-h:0px; --dots-w:44px;
}
[data-theme="dark"]{
  --bg:#0e0f10; --surface:#161718; --surface-soft:#1e2022;
  --text:#f1ece4; --text-2:#d9d3ca; --muted:#a49e95;
  --accent:#cf7652; --accent-soft:#7d442f; --accent-ink:#120b07;
  --accent-tint:color-mix(in oklab, var(--accent) 16%, transparent);
  --border:#2b2d30; --line:#3a3d41;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 30px 60px -34px rgba(0,0,0,.9);
  --shadow-lg:0 4px 10px rgba(0,0,0,.4), 0 50px 100px -40px rgba(0,0,0,1);
  --veil:14,15,16;
}
/* phone */
@media (max-width:767px){
  :root{ --top-h:calc(60px + var(--safe-t)); --bot-h:calc(94px + var(--safe-b)); --gutter:20px; --dots-w:26px }
}
/* tablet / iPad: floating side rail, no top bar */
@media (min-width:768px) and (max-width:1199px){
  :root{ --top-h:var(--safe-t); --rail-w:112px; --gutter:clamp(28px,4vw,52px); --dots-w:40px }
}

/* =====================================================================
   BASE
   ===================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; hanging-punctuation:first}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-ui); font-size:var(--fs-base); line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color:transparent;
  /* never split words */
  hyphens:manual; overflow-wrap:normal; word-break:normal;
  transition:background-color .5s var(--ease), color .5s var(--ease);
}
body.lock{overflow:hidden}
img,video,canvas{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; background:none; border:0; cursor:pointer; padding:0}
input,select,textarea{font:inherit}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:6px}
h1,h2,h3{font-family:var(--font-display); font-weight:600; letter-spacing:-.005em; line-height:.95; margin:0; text-transform:uppercase; text-wrap:balance}
p{margin:0 0 1em; text-wrap:pretty}
[hidden]{display:none!important}
main:focus{outline:none}
.sr{position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.skip{position:fixed; left:-9999px; top:0; z-index:300; background:var(--surface); padding:.9rem 1.2rem; border-radius:var(--r)}
.skip:focus{left:1rem; top:1rem}
.muted{color:var(--muted)}
.eyebrow{font-family:var(--font-plate); font-size:var(--fs-xs); letter-spacing:.2em; text-transform:uppercase; color:var(--muted); font-weight:600; line-height:1.4}
.wrap{max-width:var(--maxw); margin-inline:auto; width:100%}
.narrow{max-width:70ch}
.i{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none}
.word{display:inline-block; white-space:nowrap}

/* =====================================================================
   BUTTONS — rounded squares, thumb-sized, generous spacing
   ===================================================================== */
.btn{
  --b:var(--accent);
  position:relative; overflow:hidden; isolation:isolate;
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  min-height:54px; padding:0 1.5rem; border-radius:var(--r);
  font-family:var(--font-ui); font-size:var(--fs-sm); font-weight:600; letter-spacing:.06em; text-transform:uppercase; line-height:1.1;
  background:var(--b); color:var(--accent-ink); border:1px solid var(--b);
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -14px var(--accent);
  transition:transform .35s var(--spring), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
  white-space:nowrap; user-select:none; -webkit-user-select:none;
}
.btn::after{content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%); transform:translateX(-120%); transition:transform .8s var(--ease)}
.btn:hover::after{transform:translateX(120%)}
.btn:hover{box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 16px 30px -14px var(--accent)}
.btn:active{transform:scale(.96)}
.btn--ghost{background:color-mix(in oklab, var(--surface) 70%, transparent); color:var(--text); border-color:var(--line); box-shadow:none; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px)}
.btn--ghost::after{background:linear-gradient(105deg,transparent 30%,var(--accent-tint) 50%,transparent 70%)}
.btn--ghost:hover{border-color:var(--accent); color:var(--accent); box-shadow:none}
.btn--sm{min-height:44px; padding:0 1.1rem; font-size:.875rem; border-radius:12px}
.btn--block{width:100%; white-space:normal; text-align:center; padding-block:.7rem}
.btn .i{width:20px; height:20px}
.btn-row{display:flex; flex-wrap:wrap; gap:14px}
.icon-btn{
  width:44px; height:44px; display:grid; place-items:center; border-radius:12px; position:relative;
  color:var(--text); background:color-mix(in oklab, var(--surface) 55%, transparent); border:1px solid var(--border);
  transition:transform .3s var(--spring), background-color .3s, border-color .3s, color .3s;
}
.icon-btn:hover{border-color:var(--line); background:var(--surface)}
.icon-btn:active{transform:scale(.92)}
.badge{position:absolute; top:-5px; right:-5px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:.75rem; font-weight:700; display:grid; place-items:center; line-height:1; box-shadow:0 0 0 2px var(--bg)}
.badge.bump{animation:bump .5s var(--spring)}
@keyframes bump{40%{transform:scale(1.35)}}
.seg{display:inline-flex; padding:4px; gap:2px; border-radius:14px; background:var(--surface-soft); border:1px solid var(--border)}
.seg button{min-width:44px; min-height:40px; padding:0 .8rem; border-radius:10px; font-size:.875rem; font-weight:600; letter-spacing:.06em; color:var(--muted); transition:background-color .3s, color .3s, box-shadow .3s}
.seg button[aria-pressed="true"]{background:var(--surface); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.08), 0 0 0 1px var(--border)}
.seg--wide{display:flex; width:100%}
.l-short{display:none}
.seg--wide button{flex:1; min-height:46px; padding:0 .4rem; font-size:.8125rem; letter-spacing:.02em}

/* theme icon swap */
.theme-ico{position:relative; width:22px; height:22px}
.theme-ico .i{position:absolute; inset:0; transition:transform .6s var(--spring), opacity .4s}
[data-theme="light"] .theme-ico .moon, [data-theme="dark"] .theme-ico .sun{opacity:0; transform:rotate(-90deg) scale(.4)}

/* =====================================================================
   DESKTOP / PHONE TOP BAR
   ===================================================================== */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:60; height:var(--top-h); padding-top:var(--safe-t);
  display:flex; align-items:center; gap:1.25rem; padding-inline:var(--gutter);
  background:transparent; border-bottom:1px solid transparent;
  transition:background-color .4s var(--ease), border-color .4s, transform .5s var(--ease), color .4s;
}
.topbar[data-solid="true"]{background:var(--glass); backdrop-filter:blur(22px) saturate(170%); -webkit-backdrop-filter:blur(22px) saturate(170%); border-bottom-color:var(--border)}
.brand{display:flex; align-items:center; gap:.7rem; margin-right:auto; min-width:0}
.brand__mark{width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--text); color:var(--bg); flex:none; transition:transform .5s var(--spring)}
.brand:hover .brand__mark{transform:rotate(-8deg) scale(1.05)}
.brand__mark .i{width:26px; height:26px}
.brand__txt{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:1.2rem; letter-spacing:.02em; line-height:1; white-space:nowrap}
.topnav{display:flex; gap:.25rem; align-items:center}
.topnav a{position:relative; white-space:nowrap; padding:.7rem .85rem; border-radius:12px; font-size:.9375rem; font-weight:500; color:var(--muted); transition:color .3s, background-color .3s}
.topnav a:hover{color:var(--text); background:var(--accent-tint)}
.topnav a[aria-current="page"]{color:var(--text)}
.topnav a[aria-current="page"]::after{content:""; position:absolute; left:.85rem; right:.85rem; bottom:.35rem; height:2px; border-radius:2px; background:var(--accent); animation:grow .5s var(--ease-out)}
@keyframes grow{from{transform:scaleX(0)}}
.tools{display:flex; align-items:center; gap:10px}
.m-only{display:none!important}
@media (max-width:1199px){ .topnav, .tools .d-only{display:none!important} }
@media (min-width:1200px) and (max-width:1439px){ .topbar .brand__txt{display:none} }
@media (max-width:767px){
  .m-only{display:grid!important}
  .topbar{gap:8px}
  .brand{gap:.6rem}
  .brand__mark{width:38px; height:38px; border-radius:11px}
  .brand__txt{font-size:.9375rem; white-space:normal; line-height:1.05; letter-spacing:.03em}
  .brand__txt span{display:block}
}
@media (max-width:359px){ .brand__txt{font-size:.8125rem; letter-spacing:.01em} }
@media (min-width:768px) and (max-width:1199px){ .topbar{display:none} }
/* chrome over a dark viewport */
body[data-ondark="true"] .topbar{--text:#f4f4f5; --muted:#b4b4bb; --border:rgba(255,255,255,.14); --surface:#1a1a1c; --surface-soft:#1a1a1c; --glass:rgba(12,12,13,.6); --accent-tint:rgba(255,255,255,.08); --bg:#0a0a0b; color:#f4f4f5}

/* =====================================================================
   PHONE — floating tab bar
   ===================================================================== */
.tabbar{display:none}
@media (max-width:767px){
  .tabbar{
    position:fixed; z-index:70; left:12px; right:12px; bottom:calc(10px + var(--safe-b)); height:74px;
    display:grid; grid-template-columns:repeat(5,1fr); gap:4px; padding:8px;
    border-radius:26px; background:var(--glass); border:1px solid var(--border);
    backdrop-filter:blur(24px) saturate(180%); -webkit-backdrop-filter:blur(24px) saturate(180%);
    box-shadow:0 10px 40px -12px rgba(0,0,0,.28);
    transition:transform .5s var(--ease-out), opacity .4s;
    animation:barIn .9s var(--ease-out) .3s both;
  }
}
@keyframes barIn{from{transform:translateY(140%)}}
.tab{
  position:relative; z-index:1; border-radius:18px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  font-size:.75rem; font-weight:600; letter-spacing:.01em; color:var(--muted); min-height:56px;
  transition:color .3s, transform .35s var(--spring);
}
.tab:active{transform:scale(.9)}
.tab .i{width:24px; height:24px; transition:transform .45s var(--spring)}
.tab[aria-current="page"]{color:var(--text)}
.tab[aria-current="page"] .i{transform:translateY(-1px) scale(1.08)}
.tab--buy{background:var(--accent); color:var(--accent-ink)!important; box-shadow:0 8px 20px -10px var(--accent)}
.tab.tab--buy[aria-current="page"], .rail .tab.tab--buy[aria-current="page"], .tabbar .tab.tab--buy[aria-current="page"]{color:var(--accent-ink); background:var(--accent); box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--accent), 0 8px 20px -10px var(--accent)}
.tabbar__ind{position:absolute; z-index:0; top:8px; height:58px; border-radius:18px; background:var(--accent-tint); border:1px solid color-mix(in oklab, var(--accent) 22%, transparent); transition:transform .55s var(--spring), width .4s var(--ease), opacity .3s; opacity:0; left:0}
.tab .badge{top:4px; right:calc(50% - 22px)}

/* =====================================================================
   TABLET / iPAD — floating side rail
   ===================================================================== */
.rail{display:none}
@media (min-width:768px) and (max-width:1199px){
  .rail{
    position:fixed; z-index:70; left:14px; top:calc(14px + var(--safe-t)); bottom:calc(14px + var(--safe-b)); width:84px;
    display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 8px;
    border-radius:28px; background:var(--glass); border:1px solid var(--border);
    backdrop-filter:blur(24px) saturate(180%); -webkit-backdrop-filter:blur(24px) saturate(180%);
    box-shadow:0 20px 50px -20px rgba(0,0,0,.25); overflow-y:auto; scrollbar-width:none;
    animation:railIn .9s var(--ease-out) .2s both;
  }
  .rail::-webkit-scrollbar{display:none}
}
@keyframes railIn{from{transform:translateX(-140%)}}
.rail .brand__mark{margin-bottom:10px}
.rail__nav{display:flex; flex-direction:column; gap:4px; width:100%; position:relative}
.rail .tab{min-height:62px; width:100%; font-size:.75rem}
.rail .tab[aria-current="page"]{background:var(--accent-tint); box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent)}
.rail .tab--buy{margin-top:8px}
.rail__tools{margin-top:auto; display:flex; flex-direction:column; gap:8px; align-items:center; padding-top:12px; border-top:1px solid var(--border); width:100%}
.rail__tools .icon-btn{width:52px; height:52px; border-radius:16px}
.lang-code{font-size:.875rem; font-weight:700; letter-spacing:.06em}

/* =====================================================================
   SIDE DOTS (landing)
   ===================================================================== */
.dots{position:fixed; z-index:58; right:max(6px, calc(var(--gutter) * .45)); top:50%; transform:translateY(-50%); display:flex; flex-direction:column; align-items:center; gap:4px; transition:opacity .4s}
.dots button{position:relative; width:32px; height:30px; display:grid; place-items:center}
.dots i{display:block; width:9px; height:9px; border-radius:99px; border:1.6px solid var(--muted); transition:height .5s var(--spring), background-color .3s, border-color .3s}
.dots button[aria-current="true"] i{height:28px; background:var(--accent); border-color:var(--accent)}
.dots button::before{
  content:attr(data-label); position:absolute; right:40px; top:50%; transform:translate(6px,-50%);
  padding:.45rem .7rem; border-radius:10px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow);
  font-size:.8125rem; font-weight:600; letter-spacing:.04em; white-space:nowrap; color:var(--text);
  opacity:0; pointer-events:none; transition:opacity .25s, transform .3s var(--ease-out)}
@media (hover:hover){ .dots button:hover::before{opacity:1; transform:translate(0,-50%)} }
.dots__count{text-shadow:0 1px 6px rgba(0,0,0,.55); font-size:.75rem; font-weight:700; letter-spacing:.08em; color:var(--muted); margin-top:6px; font-variant-numeric:tabular-nums}
@media (max-width:767px){ .dots{right:2px; gap:0} .dots button{width:24px; height:26px} .dots i{width:7px; height:7px} .dots button[aria-current="true"] i{height:22px} .dots__count{display:none} }
body[data-ondark="true"] .dots{--muted:#8d8d95; --text:#f4f4f5; --surface:#1a1a1c; --border:#2a2a2e}

/* =====================================================================
   PAGES + TRANSITIONS
   ===================================================================== */
.page{display:none}
/* animate the content, never the .page itself: a transform there would re-anchor fixed children (deck, fab) */
.page[data-active="true"]{display:block}
.page[data-active="true"] > .page-main{animation:pageIn .7s var(--ease-out)}
.page[data-active="true"] > .deck{animation:fadeIn .6s var(--ease-out)}
@keyframes pageIn{from{opacity:0; transform:translateY(14px)}}
@keyframes fadeIn{from{opacity:0}}
.page-main{padding:calc(var(--top-h) + clamp(28px,5vw,64px)) var(--gutter) calc(var(--bot-h) + clamp(40px,6vw,88px)) calc(var(--rail-w) + var(--gutter))}
.page-title{font-size:var(--fs-2xl); margin:.6rem 0 1.25rem}
.page-lede{font-family:var(--font-read); font-size:var(--fs-lg); line-height:1.5; max-width:40ch; color:var(--text-2)}
.section-head{display:flex; align-items:baseline; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; border-top:1px solid var(--border); padding-top:14px; margin:clamp(3rem,7vw,5rem) 0 1.75rem}
.section-head h2{font-size:var(--fs-xl)}

/* reveal system: children with .rv animate when their parent gets .in */
.rv{opacity:0; transform:translateY(26px); filter:blur(6px); transition:opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay:calc(var(--i,0) * 90ms + 120ms)}
.in .rv, .rv.in{opacity:1; transform:none; filter:none}
.rv--l{transform:translateX(-30px)} .rv--r{transform:translateX(30px)} .rv--s{transform:scale(.94)}
.char{display:inline-block; opacity:0; transform:translateY(.8em) rotate(6deg); transition:opacity .7s var(--ease-out), transform .9s var(--spring); transition-delay:calc(var(--c) * 26ms + 150ms)}
.in .char{opacity:1; transform:none}
.split-w .w{display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.06em; margin-bottom:-.06em}
.split-w .w > span{display:inline-block; transform:translateY(105%); transition:transform 1s var(--ease-out); transition-delay:calc(var(--c) * 70ms + 100ms)}
.in .split-w .w > span{transform:none}

/* =====================================================================
   LANDING DECK — six clean viewports, one at a time
   ===================================================================== */
.deck{position:fixed; inset:0; overflow-y:auto; overflow-x:hidden; scroll-snap-type:y mandatory; overscroll-behavior:none; scrollbar-width:none; scroll-behavior:smooth}
.deck::-webkit-scrollbar{display:none}
.vp{
  position:relative; height:100%; overflow:hidden; scroll-snap-align:start; scroll-snap-stop:always;
  display:flex; flex-direction:column; justify-content:center;
  padding:calc(var(--top-h) + clamp(14px,3.5vh,44px)) calc(var(--gutter) + var(--dots-w)) calc(var(--bot-h) + clamp(14px,3.5vh,44px)) calc(var(--rail-w) + var(--gutter));
}
.vp > .wrap{position:relative; z-index:2; min-height:0}
.vp-head{display:flex; align-items:flex-end; justify-content:space-between; gap:1rem 2rem; border-top:1px solid var(--border); padding-top:14px; margin-bottom:clamp(14px,3.6vh,44px)}
.vp-title{font-size:var(--fs-2xl)}
.vp-num{font-family:var(--font-plate); font-size:var(--fs-xs); letter-spacing:.2em; text-transform:uppercase; color:var(--muted); font-weight:600; white-space:nowrap; padding-bottom:.3em}
.vp-num b{color:var(--accent)}
.vp--soft{background:var(--surface-soft)}
.vp--dark{
  --bg:#0a0a0b; --surface:#141416; --surface-soft:#1a1a1c; --text:#f4f4f5; --text-2:#d4d4d8; --muted:#a1a1aa;
  --accent:#d65d35; --accent-ink:#ffffff; --accent-tint:rgba(214,93,53,.16); --border:#26262a; --line:#3f3f46;
  --glass:rgba(20,20,22,.7);
  background:var(--bg); color:var(--text);
}
[data-theme="dark"] .vp--dark{--bg:#070708}
@media (max-width:767px){ .opt{display:none!important} }
@media (max-height:760px){ .opt-h{display:none!important} }
@media (max-height:640px){ .opt-hh{display:none!important} }
@media (max-width:767px) and (max-height:760px){ .opt-ms{display:none!important} }
@media (max-width:767px) and (max-height:899px){ .opt-ph{display:none!important} }
@media (max-width:767px){ .opt-p{display:none!important} }
.only-short{display:none}
@media (max-width:767px){ .buy-card .btn{padding-inline:.9rem} }
.act__d .short{display:none}
.acts.use-short .act__d .long{display:none}
.acts.use-short .act__d .short{display:inline}
@media (max-width:767px) and (max-height:720px){ .only-short{display:block} .no-short{display:none!important} }

/* ---------- 01 HERO ---------- */
.vp--hero{padding-bottom:calc(var(--bot-h) + clamp(18px,4vh,48px))}
.hero-media{position:absolute; inset:0; z-index:0; overflow:hidden; background:#1a1714}
.hero-media img,.hero-media video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; animation:kb 26s ease-in-out infinite alternate}
.hero-media video{opacity:0; transition:opacity 1.2s}
.hero-media video.ready{opacity:1}
@keyframes kb{from{transform:scale(1.04) translate3d(0,0,0)} to{transform:scale(1.14) translate3d(-1.5%,-1%,0)}}
.hero-media::after{content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(var(--veil),.97) 0%, rgba(var(--veil),.9) 34%, rgba(var(--veil),.45) 62%, rgba(var(--veil),.12) 100%),
             linear-gradient(0deg, rgba(var(--veil),.9) 0%, transparent 30%)}
.grain{position:absolute; inset:-50%; z-index:1; pointer-events:none; opacity:.07; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation:grain 1.2s steps(6) infinite}
[data-theme="dark"] .grain{mix-blend-mode:screen; opacity:.05}
@keyframes grain{0%{transform:translate(0,0)}20%{transform:translate(-4%,3%)}40%{transform:translate(3%,-4%)}60%{transform:translate(-2%,5%)}80%{transform:translate(4%,1%)}100%{transform:translate(0,0)}}
.hero-grid{flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); grid-template-rows:1fr auto; grid-template-areas:"copy book" "cta book"; column-gap:clamp(2rem,6vw,6rem); align-items:end}
.hero-copy{grid-area:copy; align-self:end}
.hero-book{grid-area:book; align-self:center; display:grid; place-items:center; min-height:0; height:100%}
.hero-cta{grid-area:cta}
.hero-eyebrow{display:flex; align-items:center; gap:.7rem; margin-bottom:clamp(12px,2.4vh,26px)}
.pulse{width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 var(--accent); animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--accent) 60%,transparent)}70%{box-shadow:0 0 0 12px transparent}100%{box-shadow:0 0 0 0 transparent}}
.hero-title{font-size:var(--fs-hero); letter-spacing:-.02em; line-height:.9}
.hero-lede{font-family:var(--font-read); font-size:var(--fs-md); line-height:1.55; max-width:38ch; margin:clamp(14px,2.6vh,28px) 0 0; color:var(--text-2)}
.hero-cta .btn-row{margin-top:clamp(18px,3.4vh,36px)}
.hero-cta .btn{min-width:210px}
.hero-meta{display:flex; flex-wrap:wrap; gap:1rem 2.4rem; margin-top:clamp(18px,3.6vh,40px); padding-top:clamp(12px,2vh,20px); border-top:1px solid var(--border)}
.hero-meta b{display:block; font-family:var(--font-display); font-size:var(--fs-xl); line-height:1; font-weight:600; font-variant-numeric:tabular-nums}
.hero-meta span{font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600}

/* the book — real cover images (transparent WebP), per language.
   .book3d--3d = angled cover for the floating hero, plain .book3d = frontal cover */
.book3d{--rx:0deg; --ry:-8deg; position:relative; height:min(66vh,620px); aspect-ratio:809/1100; perspective:1800px; animation:float 7s ease-in-out infinite}
.book3d--3d{aspect-ratio:632/1100}
.book3d__in{position:absolute; inset:0; transform:rotateX(var(--rx)) rotateY(var(--ry)); transition:transform .9s var(--ease-out)}
.book3d__in img{width:100%; height:100%; object-fit:contain; transition:opacity .45s var(--ease);
  filter:drop-shadow(16px 24px 26px rgba(0,0,0,.36)) drop-shadow(3px 5px 6px rgba(0,0,0,.22))}
.book3d__in img.swap{opacity:0}
.book3d--3d .book3d__in img{filter:brightness(1.14) contrast(.96) drop-shadow(16px 24px 26px rgba(0,0,0,.32)) drop-shadow(3px 5px 6px rgba(0,0,0,.2))}
.book3d__shadow{position:absolute; left:8%; right:0; bottom:-5%; height:10%; background:radial-gradient(closest-side, rgba(0,0,0,.4), transparent); filter:blur(10px); animation:shadow 7s ease-in-out infinite}
.book3d__sheen{position:absolute; inset:0; pointer-events:none; overflow:hidden; -webkit-mask:var(--cov) center/100% 100% no-repeat; mask:var(--cov) center/100% 100% no-repeat}
.book3d__sheen::before{content:""; position:absolute; inset:-10% -60%; background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.4) 50%,transparent 58%); transform:translateX(-70%); }
.in .book3d__sheen::before{animation:sheen 2.4s var(--ease) 1.1s}
.book3d:hover .book3d__sheen::before{animation:sheen 1.6s var(--ease)}
@keyframes sheen{to{transform:translateX(70%)}}
@keyframes float{50%{transform:translateY(-10px)}}
@keyframes shadow{50%{transform:scale(.92); opacity:.8}}
.hero-book .book3d{opacity:0; transform:translateX(80px) rotate(4deg); transition:opacity 1.2s var(--ease-out) .35s, transform 1.4s var(--ease-out) .35s}
.in .hero-book .book3d{opacity:1; transform:none}

.book3d.book3d--3d{--ry:0deg}

/* hero on phones: title / book / buttons stacked, all inside one screen */
@media (max-width:767px){
  .hero-media::after{background:linear-gradient(180deg, rgba(var(--veil),.95) 0%, rgba(var(--veil),.7) 38%, rgba(var(--veil),.55) 58%, rgba(var(--veil),.96) 84%)}
  .hero-grid{grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr) auto; grid-template-areas:"copy" "book" "cta"; row-gap:clamp(10px,2vh,20px); align-items:stretch}
  .hero-title{font-size:clamp(2.3rem,10.5vw,3.3rem)}
  .hero-lede{font-size:var(--fs-base); margin-top:10px}
  .hero-book .book3d{height:100%; max-height:46vh; --ry:-12deg}
  .hero-cta .btn-row{margin-top:0; display:grid; grid-template-columns:1fr; gap:12px}
  .hero-cta .btn{min-width:0; padding:0 1rem}
  .hero-meta{display:none}
}
@media (min-width:768px) and (max-width:1199px){
  .hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
  .book3d{height:min(52vh,520px)}
}
@media (min-width:768px) and (max-width:1199px) and (orientation:portrait){
  .hero-media::after{background:linear-gradient(180deg, rgba(var(--veil),.95) 0%, rgba(var(--veil),.7) 40%, rgba(var(--veil),.6) 60%, rgba(var(--veil),.96) 88%)}
  .hero-grid{grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr) auto; grid-template-areas:"copy" "book" "cta"; row-gap:clamp(16px,2.6vh,32px); align-items:stretch}
  .hero-book .book3d{height:100%; max-height:42vh}
}

/* ---------- 02 STORY ---------- */
.story-grid{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(1.5rem,5vw,5rem); align-items:center}
.story-lede{font-family:var(--font-read); font-size:var(--fs-lg); line-height:1.5; color:var(--text)}
.story-body{color:var(--text-2); max-width:58ch}
.facts{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:clamp(14px,3vh,32px)}
.fact{padding:14px 16px; border-radius:var(--r); background:var(--surface); border:1px solid var(--border); transition:transform .4s var(--spring), border-color .3s}
.fact:hover{transform:translateY(-4px); border-color:var(--accent)}
.fact dt{font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600}
.fact dd{margin:.25rem 0 0; font-weight:600; font-size:var(--fs-sm)}
.photo{position:relative; margin:0; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-lg); background:var(--surface-soft)}
.photo img{width:100%; height:100%; object-fit:cover; transform:scale(1.12); transition:transform 2.2s var(--ease-out)}
.in .photo img{transform:scale(1)}
.photo:hover img{transform:scale(1.04)}
.photo figcaption{position:absolute; left:12px; right:12px; bottom:12px; display:flex; justify-content:space-between; gap:1rem; padding:.6rem .9rem; border-radius:12px; background:rgba(10,10,10,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); color:#fff; font-size:.8125rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase}
.story-grid .photo{aspect-ratio:4/5; max-height:64vh}
@media (max-width:1199px){ .facts{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:767px){
  .story-grid{grid-template-columns:1fr}
  .story-grid .photo{aspect-ratio:16/9; max-height:20vh; width:100%; order:-1}
  .story-lede{font-size:var(--fs-md)}
  .fact{padding:10px 12px}
}
@media (max-width:767px) and (max-height:720px){ .story-grid .photo{max-height:13vh} .story-grid{gap:14px} .facts{margin-top:12px; gap:8px} .fact:nth-child(n+3){display:none} }
@media (min-width:768px) and (max-width:1199px) and (orientation:portrait){
  .story-grid{grid-template-columns:1fr}
  .story-grid .photo{aspect-ratio:16/8; max-height:28vh; order:-1}
}

/* ---------- iPad landscape: wider text columns so every section fits one screen ---------- */
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape){
  :root{--gutter:30px; --dots-w:34px}
  .vp-head{margin-bottom:clamp(12px,2.6vh,28px)}
  .hero-lede{max-width:48ch}
  .story-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,.65fr); gap:32px}
  .story-body{max-width:none}
  .story-grid .photo{max-height:60vh}
  .facts{grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px}
  .fact{padding:10px 12px}
}
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape) and (max-height:700px){
  .story-grid .photo{max-height:52vh}
  .story-lede{font-size:var(--fs-md)}
}

/* ---------- 03 FIVE ACTS ---------- */
.acts{display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:14px; margin-inline:calc(-1 * var(--gutter)); padding:8px var(--gutter) 12px; scroll-padding-inline:var(--gutter); scrollbar-width:none; overscroll-behavior-x:contain}
.acts::-webkit-scrollbar{display:none}
.act{
  --act-max:calc(100dvh - var(--top-h) - var(--bot-h) - 250px);
  position:relative; flex:0 0 calc((100% - 28px) / 3); scroll-snap-align:start; display:flex; flex-direction:column; min-height:min(340px, var(--act-max)); max-height:var(--act-max); padding:clamp(18px,2vw,26px);
  border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); overflow:hidden; isolation:isolate;
  transition:transform .5s var(--spring), border-color .4s, box-shadow .5s var(--ease);
}
.act::before{content:attr(data-n); position:absolute; right:.25em; bottom:.15em; z-index:-1; font-family:var(--font-display); font-weight:700; font-size:clamp(4rem,7vw,6.5rem); line-height:.8; color:var(--surface-soft); transition:color .5s, transform .8s var(--ease-out)}
.act::after{content:""; position:absolute; left:0; top:0; height:3px; width:100%; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .7s var(--ease-out)}
.act:hover{transform:translateY(-4px); border-color:color-mix(in oklab,var(--accent) 40%,var(--border)); box-shadow:var(--shadow)}
.act:hover::after{transform:scaleX(1)}
.act:hover::before{color:var(--accent-tint); transform:translateY(-6px)}
.act h3{font-size:var(--fs-xl); margin:0 0 .8rem}
.act__d{flex:1 1 auto; min-height:0; overflow:hidden; margin:0; font-family:var(--font-read); font-size:var(--fs-sm); line-height:1.6; color:var(--text-2); text-wrap:pretty; scrollbar-width:thin}
.act__more{margin-top:auto; padding-top:1rem; min-height:44px; display:flex; align-items:flex-end; font-size:.8125rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent)}
.act__more:hover{text-decoration:underline; text-underline-offset:4px}
.acts-pager{display:flex; justify-content:center; align-items:center; gap:6px; margin-top:14px}
.acts-pager .dot{width:34px; height:30px; display:grid; place-items:center}
.acts-pager i{display:block; width:8px; height:8px; border-radius:99px; background:var(--line); transition:width .5s var(--spring), background-color .3s}
.acts-pager .dot[aria-current="true"] i{width:26px; background:var(--accent)}
.acts-arrow{width:44px; height:44px; border-radius:12px; display:grid; place-items:center; border:1px solid var(--border); background:var(--surface); color:var(--text); margin-inline:8px; transition:transform .3s var(--spring), opacity .3s, border-color .3s}
.acts-arrow:hover{border-color:var(--accent)} .acts-arrow:active{transform:scale(.92)}
.acts-arrow[disabled]{opacity:.35; pointer-events:none}
@media (hover:none){ .acts-arrow{display:none} }
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape){ .act{flex-basis:calc((100% - 14px) / 2)} }
@media (min-width:768px) and (max-width:1199px) and (orientation:portrait){ .act{flex-basis:72%} }
@media (max-width:767px){ .acts{gap:12px} .act{flex-basis:90%; padding:16px 18px; --act-max:calc(100dvh - var(--top-h) - var(--bot-h) - 160px)} .act__d{font-size:.9375rem; line-height:1.55} .act h3{margin-bottom:.5rem} .act__more{padding-top:.6rem} }

/* ---------- 04 THE QUESTION ---------- */
.vp--q .q-bg{position:absolute; inset:0; z-index:0}
.vp--q .q-bg img{width:100%; height:100%; object-fit:cover; opacity:.16; filter:grayscale(1)}
[data-theme="dark"] .vp--q .q-bg img{opacity:.22}
.q-grid{display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:clamp(1.5rem,5vw,5rem); align-items:end}
.q-big{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:clamp(2.2rem,1.2rem + 4vw,5rem); line-height:.95; letter-spacing:-.015em; margin:0; text-wrap:balance}
.q-big em{font-style:normal; color:var(--accent)}
.q-aside{font-family:var(--font-read); font-size:var(--fs-md); line-height:1.6; color:var(--text-2); max-width:44ch; margin-top:clamp(14px,3vh,28px)}
.quotes{display:grid; gap:12px}
.quote{padding:clamp(16px,2vw,22px); border-radius:var(--r-lg); background:var(--glass); border:1px solid var(--border); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px)}
.quote p{font-family:var(--font-read); font-size:var(--fs-md); line-height:1.45; margin:0 0 .6rem}
.quote span{font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600}
.stars{color:var(--accent); letter-spacing:.15em; font-size:.875rem; margin-bottom:.35rem}
@media (max-width:1199px){ .q-grid{grid-template-columns:1fr} .quotes{grid-template-columns:1fr 1fr} }
@media (max-width:767px){ .q-big{font-size:clamp(2rem,9vw,2.8rem)} .quotes{grid-template-columns:1fr} .q-aside{font-size:var(--fs-base)} }

@media (min-width:768px) and (max-width:1199px) and (orientation:landscape){
  .q-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr); gap:32px; align-items:center}
  .quotes{grid-template-columns:1fr}
  .q-big{font-size:clamp(2rem,1.2rem + 2.8vw,3.4rem)}
  .q-aside{max-width:none}
}
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape) and (max-height:700px){
  .quotes .quote:nth-child(2){display:none}
}

/* ---------- 05 MUSIC ---------- */
.music-grid{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(1.5rem,5vw,5rem); align-items:center}
.music-intro{font-family:var(--font-read); font-size:var(--fs-lg); line-height:1.5; color:var(--text-2); max-width:36ch}
.deckcard{position:relative; border-radius:var(--r-xl); padding:clamp(16px,2.4vw,28px); background:linear-gradient(160deg,#18181b,#0e0e10); border:1px solid #26262a; box-shadow:0 40px 80px -40px rgba(0,0,0,.9)}
.deckcard__top{display:flex; align-items:center; gap:clamp(14px,2vw,24px)}
.record{position:relative; flex:none; width:clamp(96px,14vw,168px); aspect-ratio:1; border-radius:50%; animation:spin 4.5s linear infinite; animation-play-state:paused; filter:drop-shadow(0 18px 28px rgba(0,0,0,.65))}
.record img{display:block; width:100%; height:100%}
.playing .record{animation-play-state:running}
@keyframes spin{to{transform:rotate(360deg)}}
.now{min-width:0; flex:1}
.now__k{font-size:var(--fs-xs); letter-spacing:.16em; text-transform:uppercase; color:var(--accent); font-weight:700; display:flex; align-items:center; gap:.5rem}
.now__t{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:var(--fs-xl); line-height:1; margin:.35rem 0 .25rem; color:#f4f4f5}
.now__s{font-size:var(--fs-sm); color:#a1a1aa}
.eq{display:inline-flex; gap:2px; align-items:flex-end; height:12px}
.eq i{width:3px; background:currentColor; height:30%; border-radius:1px}
.playing .eq i{animation:eq .8s ease-in-out infinite alternate}
.eq i:nth-child(2){animation-delay:-.3s!important} .eq i:nth-child(3){animation-delay:-.55s!important}
@keyframes eq{to{height:100%}}
.viz{width:100%; height:clamp(56px,10vh,110px); margin:clamp(12px,2.4vh,24px) 0 clamp(6px,1.4vh,14px)}
.seek{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; margin:0 0 clamp(10px,2vh,18px); font-size:.8125rem; color:#a1a1aa; font-variant-numeric:tabular-nums}
.seek input{--p:0%; -webkit-appearance:none; appearance:none; width:100%; height:28px; margin:0; background:transparent; cursor:pointer}
.seek input::-webkit-slider-runnable-track{height:4px; border-radius:4px; background:linear-gradient(90deg,var(--accent) var(--p),#3a3a3f var(--p))}
.seek input::-moz-range-track{height:4px; border-radius:4px; background:linear-gradient(90deg,var(--accent) var(--p),#3a3a3f var(--p))}
.seek input::-webkit-slider-thumb{-webkit-appearance:none; width:16px; height:16px; margin-top:-6px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.5); transition:transform .2s}
.seek input::-moz-range-thumb{width:16px; height:16px; border:0; border-radius:50%; background:#fff}
.seek input:active::-webkit-slider-thumb{transform:scale(1.25)}
.buffering .ctl--play .i{animation:blinkPlay 1s ease-in-out infinite}
@keyframes blinkPlay{50%{opacity:.35}}
.controls{display:flex; align-items:center; justify-content:center; gap:14px}
.ctl{width:52px; height:52px; border-radius:16px; display:grid; place-items:center; color:#f4f4f5; background:#1f1f22; border:1px solid #2c2c30; transition:transform .3s var(--spring), background-color .3s}
.ctl:hover{background:#2a2a2e} .ctl:active{transform:scale(.9)}
.ctl--play{width:72px; height:72px; border-radius:22px; background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 14px 30px -12px var(--accent); position:relative}
.ctl--play::after{content:""; position:absolute; inset:-6px; border-radius:26px; border:2px solid var(--accent); opacity:0}
.playing .ctl--play::after{animation:ring 1.8s var(--ease-out) infinite}
@keyframes ring{from{opacity:.7; transform:scale(.9)} to{opacity:0; transform:scale(1.25)}}
.ctl--play .i{width:28px; height:28px}
.ctl .i-pause{display:none} .playing .ctl--play .i-play{display:none} .playing .ctl--play .i-pause{display:block}
.tracks{list-style:none; margin:clamp(12px,2.4vh,22px) 0 0; padding:0; display:grid; gap:6px}
.track{width:100%; min-height:54px; display:flex; align-items:center; gap:14px; padding:8px 12px; border-radius:14px; text-align:left; color:#d4d4d8; transition:background-color .3s}
.track:hover{background:#1c1c1f}
.track[aria-current="true"]{background:rgba(214,93,53,.14); color:#fff}
.track__n{width:28px; height:28px; border-radius:9px; display:grid; place-items:center; background:#232326; font-size:.8125rem; font-weight:700; flex:none}
.track[aria-current="true"] .track__n{background:var(--accent); color:#fff}
.track__t{flex:1; min-width:0; font-weight:600; font-size:var(--fs-sm)}
.track__d{font-size:.8125rem; color:#8d8d95; font-variant-numeric:tabular-nums}
.glow{position:absolute; z-index:0; width:60vmax; height:60vmax; border-radius:50%; right:-20vmax; top:-10vmax; background:radial-gradient(closest-side, rgba(214,93,53,.28), transparent); filter:blur(20px); transform:scale(var(--lvl,1)); transition:transform .12s linear; pointer-events:none}
@media (max-width:767px), (max-width:1199px) and (orientation:portrait){ .music-grid{grid-template-columns:1fr} .music-intro{max-width:none} }
@media (max-width:767px){
  .music-intro{font-size:var(--fs-base)} .deckcard{padding:16px}
  .record{width:84px} .viz{height:52px; margin:12px 0} .ctl--play{width:64px; height:64px; border-radius:20px}
}
@media (max-width:767px) and (max-height:700px){ .music-intro{display:none} }
@media (max-width:767px){ .buy-card .stock{align-items:flex-start; font-size:.875rem} .buy-card .stock i{margin-top:.45em; flex:none} }

/* ---------- 06 BUY ---------- */
.buy-card{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(1.5rem,5vw,4.5rem); align-items:center;
  padding:clamp(18px,3vw,40px); border-radius:var(--r-xl); background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-lg)}
.buy-card{grid-template-areas:"book info" "book full"; row-gap:0}
.buy-card > .book3d{grid-area:book; height:auto; width:min(100%, calc(min(46vh,440px) * .735)); margin-inline:auto; --ry:-12deg}
.buy-card > .full{container-type:inline-size; min-width:0}
@container (max-width:600px){ #quickEd .l-long{display:none} #quickEd .l-short{display:inline} }
.buy-card > .info{grid-area:info; align-self:end}
.buy-card > .full{grid-area:full; align-self:start}
.buy-title{font-size:var(--fs-2xl)}
.price{font-family:var(--font-display); font-weight:600; font-size:clamp(2.2rem,1.6rem + 2vw,3.4rem); line-height:1; margin:clamp(10px,2vh,18px) 0 .25rem; display:flex; align-items:baseline; gap:.6rem}
.price small{font-family:var(--font-ui); font-size:var(--fs-sm); color:var(--muted); font-weight:500}
.stock{display:flex; align-items:center; gap:.5rem; font-size:var(--fs-sm); color:var(--muted)}
.stock i{width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-tint)}
.preorder{font-size:var(--fs-sm); line-height:1.55; color:var(--text-2); margin:clamp(12px,2vh,18px) 0 0; max-width:62ch; text-wrap:pretty}
.buy-quote{margin:clamp(12px,2.4vh,22px) 0 0; padding-left:14px; border-left:3px solid var(--accent)}
.buy-quote p{font-family:var(--font-read); font-style:italic; font-size:var(--fs-sm); line-height:1.5; margin:0 0 .35rem; color:var(--text-2)}
.buy-quote cite{font-style:normal; font-size:var(--fs-xs); letter-spacing:.12em; text-transform:uppercase; font-weight:600; color:var(--muted)}
.buy-card .seg{margin-top:clamp(14px,2.6vh,24px)}
.buy-card .btn-row{margin-top:clamp(14px,2.6vh,24px)}
.buy-card .btn-row .btn{flex:1 1 auto}
.trust{display:flex; flex-wrap:wrap; gap:.5rem 1.2rem; margin-top:clamp(12px,2.2vh,20px); font-size:.875rem; color:var(--muted)}
.trust span{display:inline-flex; align-items:center; gap:.4rem}
.trust span::before{content:"✓"; color:var(--accent); font-weight:700}
.mini-foot{display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem 1.5rem; margin-top:clamp(14px,3vh,32px); font-size:.875rem; color:var(--muted)}
.mini-foot nav{display:flex; flex-wrap:wrap; gap:.25rem 1rem}
.mini-foot a{padding:.35rem 0}
.mini-foot a:hover{color:var(--accent)}
@media (max-width:767px){
  .buy-card{grid-template-columns:88px minmax(0,1fr); grid-template-areas:"book info" "full full"; gap:14px 16px; padding:16px; border-radius:var(--r-lg); align-items:start}
  .buy-card > .book3d{height:auto; width:88px; --ry:-10deg; animation:none}
  .buy-card .buy-title{font-size:clamp(1.35rem,6vw,1.7rem)}
  .buy-card .price{font-size:2rem; margin-top:8px}
  .buy-card .full{grid-column:1 / -1}
  .buy-card .btn-row{display:grid; grid-template-columns:1fr; gap:12px}
  .mini-foot{justify-content:center; text-align:center; font-size:.8125rem}
}

@media (min-width:768px) and (max-width:1199px) and (orientation:portrait){
  .buy-card{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr); grid-template-areas:"book info" "full full"; row-gap:22px; align-items:center}
  .buy-card > .book3d{width:min(100%,210px)}
  .buy-card > .info{align-self:center}
}

/* longer texts: keep every viewport on one screen (phones + iPad portrait) */
@media (max-width:767px) and (max-height:899px){
  #v5 .music-intro{font-size:.9375rem; line-height:1.5}
  #v5 .viz{height:44px; margin:10px 0 6px}
}
@media (min-width:768px) and (max-width:1199px) and (orientation:portrait){
  #v5 .music-grid > div:first-child .muted{display:none}
}
@media (min-width:768px) and (max-width:1199px) and (orientation:portrait) and (max-height:1050px){
  #v2 .story-grid .photo{display:none}
  #v5 .tracks{display:none}
  #v6 .mini-foot{display:none}
}
/* short tablet-landscape / laptop screens */
@media (min-width:768px) and (max-height:780px){
  #v5 .music-intro{font-size:var(--fs-base); line-height:1.55}
  #v6 .vp-head{display:none}
  #v6 .preorder{font-size:.875rem}
  .act__d{font-size:.9375rem; line-height:1.55}
}
@media (min-width:768px) and (max-height:700px){
  #v5 .music-grid > div:first-child .muted{display:none}
}
@media (min-width:1200px) and (max-height:999px){ #v6 .mini-foot{display:none} }
.act__d{min-height:5.5em}
@media (max-height:520px){
  .deck{scroll-snap-type:y proximity}
  .vp{height:auto; min-height:100%; justify-content:flex-start}
  .act{max-height:none}
  .act__d{overflow:visible}
  .hero-grid{min-height:calc(100dvh - var(--top-h) - 40px)}
}
@media (min-width:1200px) and (max-height:920px){ #v6 .vp-head{margin-bottom:14px} #v6 .buy-card{padding:24px 34px} #v6 .buy-title{font-size:clamp(1.8rem,1.2rem + 1.6vw,2.6rem)} #v6 .price{margin-top:8px} }
@media (min-width:1200px) and (max-height:800px){
  .story-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr)}
  .story-lede{font-size:var(--fs-md)}
  .act{flex-basis:calc((100% - 28px) / 2.35)}
}

/* =====================================================================
   INNER PAGES
   ===================================================================== */
.book-hero{display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:clamp(2rem,6vw,6rem); align-items:start}
.book-hero .book3d{height:auto; width:100%; max-width:380px; margin-inline:auto; position:sticky; top:calc(var(--top-h) + 32px)}
.spec{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin:2rem 0}
.pull{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:var(--fs-xl); line-height:1.05; max-width:24ch; margin:2.25rem 0; padding-left:1.1rem; border-left:3px solid var(--accent)}
.toc-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px}
.toc-card{padding:18px 20px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border)}
.toc-card h3{font-size:var(--fs-lg); display:flex; justify-content:space-between; align-items:baseline; margin-bottom:.6rem}
.toc-card h3 small{font-family:var(--font-ui); font-size:.8125rem; color:var(--muted); font-weight:600}
.toc-card ul{list-style:none; margin:0; padding:0; display:grid; gap:.45rem; font-size:var(--fs-sm); color:var(--text-2)}
.toc-card li{display:flex; justify-content:space-between; align-items:baseline; gap:1rem; line-height:1.35}
.toc-card li small{flex:none; color:var(--muted); font-size:.8125rem; font-variant-numeric:tabular-nums}
.toc-card a.free{color:var(--accent); text-decoration:underline; text-underline-offset:3px}
.toc-card .free-tag{font-style:normal; font-size:.8125rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); white-space:nowrap}
.colophon{font-size:var(--fs-sm); color:var(--muted); max-width:72ch}
@media (max-width:899px){ .book-hero{grid-template-columns:1fr} .book-hero .book3d{position:relative; top:0; max-width:240px} }

/* gallery */
.gal{columns:3 280px; column-gap:clamp(10px,1.4vw,16px)}
.gal .photo{display:block; break-inside:avoid; margin:0 0 clamp(10px,1.4vw,16px); cursor:zoom-in; border-radius:var(--r-lg)}
.gal .photo img{height:auto; transform:none}
.gal .photo:hover img{transform:scale(1.04)}
@media (max-width:640px){ .gal{columns:1} }

.lightbox{position:fixed; inset:0; z-index:200; background:rgba(8,8,9,.94); display:grid; grid-template-rows:auto 1fr auto; opacity:0; visibility:hidden; transition:opacity .4s, visibility .4s; color:#fff; padding:calc(12px + var(--safe-t)) 12px calc(12px + var(--safe-b))}
.lightbox[data-open="true"]{opacity:1; visibility:visible}
.lb-top,.lb-bot{display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:4px}
.lb-stage{position:relative; min-height:0; display:grid; place-items:center; overflow:hidden}
.lb-stage img{max-width:100%; max-height:100%; object-fit:contain; border-radius:12px; transition:transform .5s var(--ease-out), opacity .35s}
.lb-cap{font-size:var(--fs-sm); font-weight:600; letter-spacing:.06em}
.lightbox .icon-btn{width:52px; height:52px; border-radius:16px; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.14); color:#fff}

/* reader */
.reader{display:grid; grid-template-columns:260px minmax(0,1fr); gap:clamp(2rem,5vw,5rem); align-items:start; max-width:1180px; margin-inline:auto}
.reader-side{position:sticky; top:calc(var(--top-h) + 28px)}
.rtoc{list-style:none; margin:1rem 0 1.5rem; padding:0; display:grid; gap:6px}
.rtoc button{width:100%; min-height:52px; text-align:left; padding:.6rem .9rem; border-radius:14px; display:flex; gap:.8rem; align-items:center; color:var(--muted); font-size:var(--fs-sm); font-weight:500; transition:background-color .3s, color .3s}
.rtoc button b{width:30px; height:30px; flex:none; border-radius:9px; display:grid; place-items:center; background:var(--surface-soft); font-size:.8125rem; color:var(--text)}
.rtoc button:hover{background:var(--surface-soft); color:var(--text)}
.rtoc button[aria-current="true"]{background:var(--accent-tint); color:var(--text)}
.rtoc button[aria-current="true"] b{background:var(--accent); color:var(--accent-ink)}
.reader-top{display:flex; flex-direction:column; gap:12px; margin-bottom:clamp(1.5rem,4vw,2.5rem)}
.rsegs{display:flex; gap:6px}
.rsegs i{flex:1; height:4px; border-radius:4px; background:var(--border); overflow:hidden; position:relative}
.rsegs i::after{content:""; position:absolute; inset:0; background:var(--accent); transform:scaleX(var(--p,0)); transform-origin:left; transition:transform .5s var(--ease-out)}
.prose{--rsize:1; max-width:min(var(--read,62ch),100%); font-family:var(--font-read); font-size:calc(var(--rsize) * clamp(1.0625rem,1rem + .35vw,1.1875rem)); line-height:1.78; color:var(--text)}
.prose[data-face="sans"]{font-family:var(--font-ui); line-height:1.72}
.prose[data-width="narrow"]{--read:50ch} .prose[data-width="wide"]{--read:76ch}
.prose h2{font-size:var(--fs-2xl); margin:0 0 .8rem; line-height:.95}
.prose .subtitle{font-family:var(--font-plate); font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); line-height:1.6; margin:0 0 2rem}
.r-note{font-family:var(--font-ui); font-size:var(--fs-sm); line-height:1.55; padding:.9rem 1.1rem; border-radius:var(--r); background:var(--accent-tint); border:1px solid color-mix(in oklab, var(--accent) 25%, transparent); margin:0 0 1.75rem}
.prose .kicker{font-family:var(--font-plate); font-size:var(--fs-xs); letter-spacing:.2em; text-transform:uppercase; color:var(--accent); font-weight:600; margin-bottom:.8rem}
.prose p{margin:0 0 1.2em}
.prose .drop::first-letter{font-family:var(--font-display); float:left; font-size:3.6em; line-height:.8; padding:.08em .12em 0 0; color:var(--accent); font-weight:600}
.prose .pull-line{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:1.6em; line-height:1.05; margin:1.6em 0; padding-left:1rem; border-left:3px solid var(--accent); text-wrap:balance}
.chapter{animation:turnIn .6s var(--ease-out)}
.chapter.back{animation-name:turnBack}
@keyframes turnIn{from{opacity:0; transform:translateX(40px)}}
@keyframes turnBack{from{opacity:0; transform:translateX(-40px)}}
.rnav{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:clamp(2rem,5vw,3rem); max-width:min(var(--read,62ch),100%)}
.rnav .btn{width:100%}
@media (max-width:359px){ .btn{padding:0 1rem; gap:.45rem; letter-spacing:.03em; text-align:center; white-space:normal} #quickBuy .i{display:none} #v6 .btn--ghost{font-size:.75rem; letter-spacing:0; padding:0 .8rem} }
@media (max-width:419px){ .rnav{gap:10px} .rnav .btn{padding-inline:10px; gap:.35rem; letter-spacing:.05em; font-size:.8125rem} }
.rnav .btn[disabled]{opacity:.4; pointer-events:none}
.end-card{margin-top:2rem; padding:clamp(18px,3vw,28px); border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); max-width:min(var(--read,62ch),100%)}
.end-card h3{font-size:var(--fs-xl); margin-bottom:.4rem}
.reader-row{display:flex; align-items:center; justify-content:space-between; gap:1rem}
.aa-inline{width:52px; height:52px; border-radius:16px; font-family:var(--font-read); font-weight:600; font-size:1.15rem}
@media (min-width:1100px){ .aa-inline{display:none} }
.fab{position:fixed; z-index:65; right:calc(var(--gutter)); bottom:calc(var(--bot-h) + 16px); width:60px; height:60px; border-radius:20px; display:grid; place-items:center; background:var(--text); color:var(--bg); font-family:var(--font-read); font-weight:600; font-size:1.25rem; box-shadow:0 14px 30px -12px rgba(0,0,0,.45); transition:transform .35s var(--spring)}
.fab:active{transform:scale(.9)}
body[data-focus="true"] .topbar, body[data-focus="true"] .tabbar, body[data-focus="true"] .rail, body[data-focus="true"] .reader-side, body[data-focus="true"] .footer, body[data-focus="true"] .mini-player{opacity:0; pointer-events:none; transform:translateY(0)}
body[data-focus="true"] .tabbar{transform:translateY(150%)}
body[data-focus="true"] .rail{transform:translateX(-150%)}
body[data-focus="true"] .page-main{padding-left:var(--gutter)}
body[data-focus="true"] .reader{grid-template-columns:minmax(0,1fr); max-width:760px}
.progress{position:fixed; left:0; top:0; height:3px; background:var(--accent); z-index:90; width:0; transition:width .3s var(--ease-out)}
@media (max-width:1099px){ .reader{grid-template-columns:minmax(0,1fr)} .reader-side{display:none} }
@media (min-width:1100px){ .fab{display:none} }

/* cards, reviews, faq, forms */
.grid-2{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:14px}
.card{padding:clamp(18px,2.4vw,28px); border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); transition:transform .4s var(--spring), border-color .3s}
.card:hover{transform:translateY(-3px); border-color:var(--line)}
.card h3{font-size:var(--fs-lg); margin-bottom:.4rem}
.review p{font-family:var(--font-read); font-size:var(--fs-lg); line-height:1.45}
.cta-card{display:flex; flex-wrap:wrap; gap:1rem 2rem; align-items:center; justify-content:space-between; margin-top:2.5rem}
.faq-group{margin-bottom:2.5rem}
.faq-group > h2{font-size:var(--fs-xl); margin-bottom:.75rem}
details.faq{border-radius:var(--r); background:var(--surface); border:1px solid var(--border); margin-bottom:8px; transition:border-color .3s}
details.faq[open]{border-color:var(--line)}
details.faq summary{list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:1rem; min-height:58px; padding:.7rem 1.1rem; font-weight:600; font-size:var(--fs-base)}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+"; flex:none; width:32px; height:32px; border-radius:10px; display:grid; place-items:center; background:var(--surface-soft); color:var(--accent); font-size:1.2rem; transition:transform .4s var(--spring)}
details.faq[open] summary::after{transform:rotate(45deg)}
details.faq p{padding:0 1.1rem 1.1rem; margin:0; color:var(--text-2); max-width:68ch}
label.f{display:block; font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:.45rem; font-weight:600}
.t{width:100%; background:var(--surface); border:1px solid var(--line); color:var(--text); padding:.85rem 1rem; min-height:54px; border-radius:var(--r); font-size:1rem; transition:border-color .3s, box-shadow .3s}
.t:focus{border-color:var(--accent); outline:none; box-shadow:0 0 0 4px var(--accent-tint)}
.field{margin-bottom:1.1rem}
.editions{display:grid; gap:10px}
.edition{display:flex; gap:.9rem; align-items:center; min-height:64px; padding:.9rem 1.1rem; border-radius:var(--r); border:1px solid var(--border); background:var(--surface); cursor:pointer; transition:border-color .3s, box-shadow .3s}
.edition:has(input:checked){border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint)}
.edition input{accent-color:var(--accent); width:20px; height:20px; flex:none}
.qty{display:inline-flex; align-items:center; border-radius:var(--r); border:1px solid var(--line); background:var(--surface); padding:4px}
.qty button{width:46px; height:46px; border-radius:11px; font-size:1.3rem; transition:background-color .3s}
.qty button:hover{background:var(--surface-soft)}
.qty output{width:44px; text-align:center; font-weight:700}
.switch{display:inline-flex; align-items:center; gap:.75rem; min-height:54px; padding:0 1rem; border-radius:var(--r); border:1px solid var(--line); background:var(--surface); cursor:pointer; font-weight:500}
.switch input{appearance:none; -webkit-appearance:none; width:44px; height:26px; border-radius:99px; background:var(--line); position:relative; transition:background-color .3s; margin:0; flex:none}
.switch input::after{content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:transform .35s var(--spring)}
.switch input:checked{background:var(--accent)}
.switch input:checked::after{transform:translateX(18px)}
.buy-page{display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(2rem,6vw,5rem); align-items:start}
.buy-page .book3d{height:auto; width:100%; max-width:400px; margin-inline:auto}
@media (max-width:899px){ .buy-page{grid-template-columns:1fr} .buy-page .book3d{max-width:220px} }

/* footer (inner pages only) */
.footer{border-top:1px solid var(--border); background:var(--surface-soft); padding:clamp(40px,6vw,72px) var(--gutter) calc(var(--bot-h) + 28px) calc(var(--rail-w) + var(--gutter))}
body[data-route="/"] .footer{display:none}
.footer__grid{display:grid; gap:2rem; grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.footer h4{font-size:var(--fs-xs); letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin:0 0 .8rem; font-weight:600}
.footer ul{list-style:none; margin:0; padding:0; display:grid; gap:.2rem}
.footer ul a{display:inline-block; padding:.4rem 0; font-size:var(--fs-sm)}
.footer a:hover{color:var(--accent)}
.footer__bottom{display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; margin-top:2.5rem; padding-top:1.25rem; border-top:1px solid var(--border); font-size:.875rem; color:var(--muted)}

/* =====================================================================
   SHEETS, POPOVERS, DRAWER, MINI PLAYER, TOAST
   ===================================================================== */
.scrim{position:fixed; inset:0; z-index:94; background:rgba(0,0,0,.42); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); opacity:0; visibility:hidden; transition:opacity .4s, visibility .4s}
.scrim[data-open="true"]{opacity:1; visibility:visible}
.sheet{
  position:fixed; z-index:95; left:0; right:0; bottom:0; max-height:88vh; overflow:auto;
  padding:10px 20px calc(24px + var(--safe-b)); border-radius:28px 28px 0 0; background:var(--surface); border-top:1px solid var(--border);
  transform:translateY(105%); visibility:hidden; transition:transform .55s var(--ease-out), visibility .55s; box-shadow:0 -20px 60px -20px rgba(0,0,0,.3)}
.sheet[data-open="true"]{transform:none; visibility:visible}
.sheet__grab{width:44px; height:5px; border-radius:5px; background:var(--line); margin:0 auto 14px}
.sheet__head{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px}
.sheet__head h2{font-size:var(--fs-xl)}
@media (min-width:768px){
  .sheet{left:50%; right:auto; bottom:auto; top:50%; width:min(560px,calc(100% - 48px)); border-radius:28px; border:1px solid var(--border); padding:24px 28px 28px;
    transform:translate(-50%,-46%) scale(.96); opacity:0; transition:transform .5s var(--ease-out), opacity .35s, visibility .5s}
  .sheet[data-open="true"]{transform:translate(-50%,-50%); opacity:1}
  .sheet__grab{display:none}
}
.tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.tile{min-height:92px; border-radius:18px; background:var(--surface-soft); border:1px solid var(--border); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; font-size:.875rem; font-weight:600; text-align:center; padding:10px 6px; transition:transform .35s var(--spring), border-color .3s}
.tile:active{transform:scale(.94)}
.tile:hover{border-color:var(--accent)}
.tile .i{width:26px; height:26px; color:var(--accent)}
.sheet-row{display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:14px 0; border-top:1px solid var(--border); margin-top:14px}
.sheet-row > span{font-weight:600; font-size:var(--fs-sm)}
.opt-row{display:grid; gap:10px; padding:14px 0; border-top:1px solid var(--border)}
.opt-row > span{font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600}
.stepper{display:flex; align-items:center; gap:10px}
.stepper output{flex:1; text-align:center; font-weight:700}
.stepper .icon-btn{width:54px; height:54px; border-radius:16px}

.langpop{position:fixed; z-index:96; min-width:220px; padding:6px; border-radius:18px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden; transform:translateY(-6px) scale(.97); transform-origin:top right; transition:opacity .25s, transform .35s var(--spring), visibility .3s}
.langpop[data-open="true"]{opacity:1; visibility:visible; transform:none}
.langpop button{width:100%; min-height:52px; display:flex; align-items:center; gap:.9rem; padding:0 .9rem; border-radius:12px; font-weight:500; text-align:left}
.langpop button:hover{background:var(--surface-soft)}
.langpop button b{width:36px; height:30px; border-radius:8px; display:grid; place-items:center; background:var(--surface-soft); font-size:.8125rem}
.langpop button[aria-pressed="true"]{background:var(--accent-tint)}
.langpop button[aria-pressed="true"] b{background:var(--accent); color:var(--accent-ink)}

.drawer{position:fixed; top:0; right:0; bottom:0; width:min(440px,100%); z-index:96; background:var(--surface); border-left:1px solid var(--border);
  transform:translateX(100%); transition:transform .55s var(--ease-out), visibility .55s; display:flex; flex-direction:column; padding:calc(20px + var(--safe-t)) 24px calc(20px + var(--safe-b)); visibility:hidden}
.drawer[data-open="true"]{transform:none; visibility:visible}
@media (max-width:767px){ .drawer{top:auto; left:0; width:100%; height:86vh; border-radius:28px 28px 0 0; border-left:0; border-top:1px solid var(--border); transform:translateY(100%)} }
.line-item{display:flex; gap:1rem; padding:1rem 0; border-bottom:1px solid var(--border); align-items:flex-start}
.line-item img{width:52px; filter:drop-shadow(0 4px 8px rgba(0,0,0,.25))}

.mini-player{position:fixed; z-index:64; left:calc(var(--rail-w) + 16px); bottom:calc(var(--bot-h) + 12px); display:flex; align-items:center; gap:10px; padding:8px 8px 8px 12px; border-radius:18px;
  background:rgba(14,14,16,.88); color:#f4f4f5; border:1px solid #2a2a2e; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:0 14px 40px -14px rgba(0,0,0,.6);
  transform:translateY(160%); opacity:0; transition:transform .6s var(--spring), opacity .4s; max-width:calc(100% - var(--rail-w) - 32px)}
.mini-player[data-show="true"]{transform:none; opacity:1}
.mini-player .eq{color:var(--accent)}
.mini-player span{font-size:.875rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:42vw}
.mini-player button{width:44px; height:44px; border-radius:13px; display:grid; place-items:center; background:#232326}
.mini-player .i-pause{display:none} .playing .mini-player .i-play{display:none} .playing .mini-player .i-pause{display:block}
.mini-player.playing .i-play{display:none} .mini-player.playing .i-pause{display:block}
@media (max-width:767px){ .mini-player{left:12px; bottom:calc(var(--bot-h) + 6px)} }

.toast{position:fixed; left:50%; bottom:calc(var(--bot-h) + 20px); transform:translate(-50%,24px); z-index:220; background:var(--text); color:var(--bg); padding:.9rem 1.25rem; border-radius:16px; font-size:var(--fs-sm); font-weight:500; opacity:0; transition:opacity .35s, transform .5s var(--spring); pointer-events:none; box-shadow:var(--shadow-lg); max-width:calc(100% - 32px)}
.toast[data-show="true"]{opacity:1; transform:translate(-50%,0)}

/* view-transition theme reveal */
::view-transition-old(root),::view-transition-new(root){animation:none; mix-blend-mode:normal}

@media (prefers-reduced-motion:reduce){
  html,.deck{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; transition-delay:0ms!important}
  .rv,.char,.split-w .w > span{opacity:1; transform:none; filter:none}
}

/* =====================================================================
   FORMS → PHP (preorder + contact): honeypot, invalid fields, busy button, reference
   ===================================================================== */
.hp{position:absolute!important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden}
.t[aria-invalid="true"]{border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-tint)}
#coItems[aria-invalid="true"]{outline:2px solid var(--accent); outline-offset:6px; border-radius:6px}
.btn.is-busy{opacity:.6; pointer-events:none}
.ty-ref{margin:0; padding:.7rem 1.1rem; border-radius:var(--r); background:var(--surface-soft); border:1px solid var(--border); font-size:var(--fs-sm); color:var(--muted)}
.ty-ref b{color:var(--text); font-family:var(--font-display); font-size:1.15rem; letter-spacing:.06em; margin-left:.35rem}

/* ---- act titles (from the manuscript) above the description ---- */
.act__k{margin:0 0 .35rem; font-family:var(--font-plate); font-size:var(--fs-xs); font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--accent)}
.act h3{text-wrap:balance}

/* ---- landing viewports never cut off: fitDeck() in app.js adds these only when content does not fit ---- */
.vp.is-tight .only-short{display:block}
.vp.is-tight .no-short, .vp.is-tight .opt-t{display:none!important}
.vp.is-grow{height:auto; min-height:100%; justify-content:flex-start}
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape) and (max-height:999px){ #v6 .mini-foot{display:none} }

/* =====================================================================
   2026-09-26 REFINEMENTS — calmer navigation, livelier pages, new pages
   (Over AOE, FAQ, Interactief), dark default. Additive: earlier rules stay.
   ===================================================================== */

/* ---------- navigation: six items, evenly distributed, never overflowing ---------- */
@media (min-width:1200px){
  .topbar .brand{flex:none; margin-right:0}
  .topnav{flex:1 1 auto; justify-content:center; gap:clamp(.1rem,.8vw,.9rem); min-width:0}
  .topnav a{padding:.7rem clamp(.6rem,.9vw,1rem)}
  .topnav a[aria-current="page"]::after{left:clamp(.6rem,.9vw,1rem); right:clamp(.6rem,.9vw,1rem)}
  .topbar .tools{flex:0 0 auto}
  .topnav{margin-inline:clamp(.75rem,1.6vw,2rem)}
}
@media (min-width:1200px) and (max-width:1365px), (min-width:1440px) and (max-width:1679px){
  .topnav{gap:0}
  .topnav a{padding-inline:.6rem}
  .topnav a[aria-current="page"]::after{left:.6rem; right:.6rem}
}
.tiles-k{margin:18px 0 8px; font-size:var(--fs-xs); letter-spacing:.16em; text-transform:uppercase; color:var(--muted); font-weight:700}
.tiles--feature{grid-template-columns:1fr}
.tiles--feature .tile{grid-column:auto}
@media (min-width:768px){ .tiles--feature{grid-template-columns:1fr 1fr} }

/* ---------- small shared pieces ---------- */
.dot-live{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--accent); margin-right:.6rem; vertical-align:.1em; animation:liveDot 2.6s var(--ease-out) infinite}
@keyframes liveDot{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--accent) 55%,transparent)}70%,100%{box-shadow:0 0 0 10px transparent}}
:where(.btn, .chip, .tile, .card, a):focus-visible{outline:2px solid var(--accent); outline-offset:3px}
.card, .toc-card, .fact, details.faq, .edition{transition:transform .5s var(--spring), border-color .3s, box-shadow .5s var(--ease), background-color .3s}
.card:hover, .toc-card:hover{transform:translateY(-3px); box-shadow:var(--shadow)}
.section-head{position:relative}
.section-head::before{content:""; position:absolute; left:0; top:-1px; width:64px; height:2px; background:var(--accent); transform-origin:left; transform:scaleX(0); transition:transform 1s var(--ease-out)}
.section-head.in::before, .section-head:not(.rv)::before{transform:scaleX(1)}

/* inner pages breathe: a slow accent glow behind the content (not on the reading page) */
.page:not([data-page="/read"]):not([data-page="/"]) > .page-main{position:relative; isolation:isolate; overflow:clip}
.page:not([data-page="/read"]):not([data-page="/"]) > .page-main::before{content:""; position:absolute; z-index:-1; right:-18vmax; top:-14vmax; width:56vmax; height:56vmax; border-radius:50%;
  background:radial-gradient(closest-side, color-mix(in oklab, var(--accent) 16%, transparent), transparent); filter:blur(24px); animation:drift 22s ease-in-out infinite alternate; pointer-events:none}
@keyframes drift{to{transform:translate(-8vmax,10vmax) scale(1.15)}}
[data-theme="dark"] .page:not([data-page="/read"]):not([data-page="/"]) > .page-main::before{background:radial-gradient(closest-side, rgba(207,118,82,.14), transparent)}
.page[data-active="true"] .page-title{animation:titleIn 1s var(--ease-out) both}
@keyframes titleIn{from{opacity:0; transform:translateY(18px); filter:blur(6px)}}

/* ---------- landing: order section + quotes get room ---------- */
.buy-card .stock{margin-top:clamp(12px,2.2vh,20px)}
.buy-quote{margin:clamp(18px,3vh,30px) 0 clamp(4px,1vh,10px); padding:.15rem 0 .15rem 16px}
.buy-quote p{margin:0}
.quote p{margin:0}
.quotes{gap:clamp(12px,1.8vh,18px)}

/* ---------- order page: publication dates on the edition cards ---------- */
.ed-date{display:inline-flex; align-items:center; gap:.35rem; margin-top:.45rem; padding:.18rem .6rem; border-radius:99px; background:var(--accent-tint); color:var(--accent); font-size:.75rem; font-weight:600; letter-spacing:.02em}
.ed-date::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor}
.edition:hover{border-color:var(--line)}
.buy-page .stock{margin-top:14px}
.buy-page .preorder{margin-top:1rem}

/* ---------- book page ---------- */
.pull{position:relative; padding:.4rem 0 .4rem 1.3rem; margin:clamp(2rem,5vw,3rem) 0}
.pull::before{content:""; position:absolute; left:-3px; top:0; bottom:0; width:3px; background:linear-gradient(var(--accent),color-mix(in oklab,var(--accent) 20%,transparent))}
.toc-card{position:relative; overflow:hidden}
.toc-card::after{content:""; position:absolute; inset:auto 0 0 0; height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .6s var(--ease-out)}
.toc-card:hover::after{transform:scaleX(1)}

/* ---------- gallery (De kamers): more life, still elegant ---------- */
.gal .photo{isolation:isolate; transition:transform .7s var(--spring), box-shadow .6s var(--ease)}
.gal .photo:hover{transform:translateY(-6px) rotate(-.4deg); box-shadow:0 30px 70px -30px rgba(0,0,0,.6)}
.gal .photo:nth-child(even):hover{transform:translateY(-6px) rotate(.4deg)}
.gal .photo::after{content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.45)); opacity:.6; transition:opacity .6s}
.gal .photo:hover::after{opacity:1}
.gal .photo figcaption{z-index:2; transform:translateY(6px); transition:transform .6s var(--ease-out), background-color .4s}
.gal .photo:hover figcaption{transform:none; background:rgba(10,10,10,.72)}
@supports (animation-timeline: view()){
  .gal .photo img{animation:galDrift linear both; animation-timeline:view(); animation-range:cover}
  @keyframes galDrift{from{transform:scale(1.12) translateY(-3%)} to{transform:scale(1.12) translateY(3%)}}
  .gal .photo:hover img{animation-play-state:paused}
}
.gal-ticker{position:relative; overflow:hidden; margin:0 calc(-1 * var(--gutter)) clamp(22px,4vw,40px); padding:14px 0; border-block:1px solid var(--border); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.gal-ticker__in{display:flex; width:max-content; gap:2.4rem; animation:ticker 48s linear infinite}
.gal-ticker span{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:clamp(1.1rem,.9rem + 1vw,1.6rem); letter-spacing:.04em; color:var(--muted); white-space:nowrap}
.gal-ticker span::after{content:"◆"; margin-left:2.4rem; color:var(--accent); font-size:.6em; vertical-align:.25em}
@keyframes ticker{to{transform:translateX(-50%)}}

/* ---------- music (landing 05): a stronger entrance, alive before you press play ---------- */
body:not(.playing) .record{animation-duration:26s; animation-play-state:running}
body:not(.playing) .ctl--play::after{animation:ring 2.6s var(--ease-out) infinite}
.glow{animation:glowBreathe 7s ease-in-out infinite alternate}
@keyframes glowBreathe{from{opacity:.65} to{opacity:1}}
.record::after{content:""; position:absolute; inset:-10px; border-radius:50%; border:1px solid rgba(255,255,255,.08); animation:groove 3.2s var(--ease-out) infinite}
@keyframes groove{from{transform:scale(.92); opacity:.8} to{transform:scale(1.18); opacity:0}}
#v5.in .deckcard{animation:deckIn 1.1s var(--spring) both .15s}
@keyframes deckIn{from{opacity:0; transform:translateY(24px) scale(.97)}}

/* ---------- OVER AOE ---------- */
.ab-hero{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:clamp(2rem,5vw,5rem); align-items:center; min-height:calc(100dvh - var(--top-h) - 180px)}
.ab-title{font-size:var(--fs-hero); line-height:.95; text-wrap:balance}
.ab-p{color:var(--text-2); max-width:58ch; margin:1rem 0 1.4rem}
.ab-tags{display:flex; flex-wrap:wrap; gap:8px}
.ab-tags span{padding:.4rem .85rem; border-radius:99px; border:1px solid var(--border); background:var(--surface); font-size:.8125rem; font-weight:600; color:var(--text-2); animation:tagIn .8s var(--spring) both}
.ab-tags span:nth-child(2){animation-delay:.08s} .ab-tags span:nth-child(3){animation-delay:.16s} .ab-tags span:nth-child(4){animation-delay:.24s}
@keyframes tagIn{from{opacity:0; transform:translateY(10px) scale(.94)}}
.ab-hero__art{position:relative; margin:0; aspect-ratio:4/5; max-height:72vh; justify-self:center; width:min(100%,460px)}
.ab-hero__img{position:absolute; inset:0 12% 8% 0; width:88%; height:92%; object-fit:cover; border-radius:var(--r-xl); box-shadow:var(--shadow-lg); animation:abFloat 14s ease-in-out infinite alternate}
@keyframes abFloat{to{transform:translate(-8px,10px) rotate(-.6deg)}}
.ab-hero__book.book3d{position:absolute; right:0; bottom:0; width:48%; height:auto; --ry:-16deg}
.ab-facts{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:clamp(2.5rem,6vw,5rem) 0}
.ab-fact{position:relative; overflow:hidden; padding:22px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border)}
.ab-fact b{display:block; font-family:var(--font-display); font-size:clamp(2.6rem,2rem + 2vw,3.8rem); line-height:1; font-weight:600; color:var(--accent)}
.ab-fact span{display:block; margin-top:.6rem; color:var(--text-2); font-size:var(--fs-sm); line-height:1.45}
.ab-fact::after{content:""; position:absolute; right:-30px; top:-30px; width:100px; height:100px; border-radius:50%; background:var(--accent-tint)}
.ab-intro{display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:clamp(1.5rem,5vw,5rem); padding:clamp(2rem,5vw,3.5rem); border-radius:var(--r-xl); background:linear-gradient(150deg, color-mix(in oklab, var(--accent) 9%, var(--surface)), var(--surface) 60%); border:1px solid var(--border)}
.ab-intro__head h2{font-size:var(--fs-2xl); margin:.5rem 0 0}
.ab-intro__body p{font-family:var(--font-read); font-size:var(--fs-md); line-height:1.7; color:var(--text-2); margin:0 0 1.1rem; max-width:62ch}
.ab-intro__body .ab-lead{font-size:var(--fs-lg); color:var(--text); line-height:1.5}
.ab-door{display:inline-flex !important; align-items:center; gap:.7rem; margin-top:.4rem !important; font-style:italic; color:var(--accent) !important}
.ab-door::before{content:""; width:28px; height:1px; background:currentColor}
.ab-credits{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:clamp(2rem,5vw,3.5rem) 0}
.ab-card{padding:clamp(20px,2.6vw,30px); border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border)}
.ab-card__ico{display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:var(--accent-tint); color:var(--accent); margin-bottom:1rem}
.ab-card__ico .i{width:22px; height:22px}
.ab-card h3{font-size:var(--fs-lg); margin:0 0 .5rem}
.ab-card p{margin:0; color:var(--text-2)}
.ab-quote{margin:clamp(3rem,8vw,6rem) auto; max-width:none; text-align:center}
.ab-quote p{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:clamp(1.7rem,1.2rem + 2.4vw,3rem); line-height:1.08; margin:0 auto; max-width:24ch; text-wrap:balance}
.ab-quote::before{content:"“"; display:block; font-family:var(--font-read); font-size:5rem; line-height:.6; color:var(--accent); margin-bottom:.4rem}
.ab-reviews{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px}
.ab-reviews .review{padding:clamp(22px,2.6vw,32px)}
.ab-reviews .review p{margin:0}
.ab-cta{margin-top:clamp(2.5rem,5vw,3.5rem)}

/* ---------- FAQ ---------- */
.fq-head{max-width:60ch; margin-bottom:clamp(2rem,5vw,3.5rem)}
.fq-layout{display:grid; grid-template-columns:220px minmax(0,1fr); gap:clamp(1.5rem,5vw,4.5rem); align-items:start}
.fq-index{position:sticky; top:calc(var(--top-h) + 24px); display:grid; gap:6px}
.fq-index a{display:flex; align-items:center; gap:.8rem; padding:.7rem .9rem; border-radius:14px; border:1px solid transparent; font-weight:600; font-size:var(--fs-sm); color:var(--text-2); transition:background-color .3s, border-color .3s, color .3s}
.fq-index a b{font-family:var(--font-display); font-size:1.1rem; color:var(--accent)}
.fq-index a:hover{background:var(--surface); border-color:var(--border); color:var(--text)}
.fq-groups .faq-group{margin-bottom:clamp(2.2rem,5vw,3.5rem); scroll-margin-top:calc(var(--top-h) + 24px)}
.fq-groups .faq-group > h2{display:flex; align-items:baseline; gap:.9rem; font-size:var(--fs-xl); margin:0 0 1rem}
.fq-groups .faq-group > h2 b{font-size:.55em; padding:.2rem .5rem; border-radius:8px; background:var(--accent-tint); color:var(--accent); letter-spacing:.06em}
.fq details.faq{margin-bottom:10px; border-radius:18px; background:var(--surface); overflow:hidden}
.fq details.faq summary{min-height:66px; padding:1rem 1.25rem 1rem 1.4rem; font-size:var(--fs-md); font-weight:600; line-height:1.35}
.fq details.faq summary:hover{color:var(--accent)}
.fq details.faq[open]{border-color:color-mix(in oklab, var(--accent) 40%, var(--border)); box-shadow:0 18px 40px -28px color-mix(in oklab, var(--accent) 60%, transparent)}
.fq details.faq[open] summary::after{background:var(--accent); color:var(--accent-ink)}
.fq details.faq p{padding:0 1.4rem 1.35rem; font-family:var(--font-read); font-size:var(--fs-base); line-height:1.7; animation:faqIn .5s var(--ease-out)}
@keyframes faqIn{from{opacity:0; transform:translateY(-6px)}}
.fq-more{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem 2rem; margin-top:1rem; padding:clamp(22px,3vw,32px); border-radius:var(--r-xl); background:linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, var(--surface)), var(--surface) 70%)}
.fq-more h3{font-size:var(--fs-lg); margin:0 0 .3rem}
.fq-more p{margin:0}

/* ---------- INTERACTIEF (hub) ---------- */
.ia-head{max-width:62ch; margin-bottom:clamp(2rem,5vw,3.5rem)}
.ia-title{font-size:var(--fs-hero); line-height:.95}
.ia-grid{display:grid; grid-template-columns:1fr 1fr; gap:clamp(14px,2vw,24px)}
.ia-card{position:relative; display:flex; flex-direction:column; border-radius:var(--r-xl); overflow:hidden; background:var(--surface); border:1px solid var(--border); transition:transform .6s var(--spring), box-shadow .6s var(--ease), border-color .3s}
.ia-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:color-mix(in oklab, var(--accent) 45%, var(--border))}
.ia-card__media{position:relative; display:block; aspect-ratio:16/10; overflow:hidden; background:#101012}
.ia-card__media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(2px) brightness(.72); transform:scale(1.08); transition:transform 1.4s var(--ease-out)}
.ia-card:hover .ia-card__media img{transform:scale(1.14)}
.ia-note{position:absolute; z-index:2; padding:.55rem .85rem; border-radius:14px; background:rgba(255,255,255,.92); color:#111; font-size:.8125rem; font-weight:500; box-shadow:0 12px 30px -12px rgba(0,0,0,.6); animation:noteBob 5s ease-in-out infinite}
.ia-note--a{left:7%; top:14%; rotate:-2deg} .ia-note--b{left:22%; top:48%; rotate:1.5deg; animation-delay:-2.5s}
@keyframes noteBob{50%{translate:0 -6px}}
.ia-pill{position:absolute; z-index:3; right:7%; bottom:12%; padding:.7rem 1.5rem; border-radius:99px; background:#f26a1b; color:#fff; font-family:var(--font-display); font-weight:700; font-size:1.3rem; letter-spacing:.14em; box-shadow:0 0 0 6px rgba(242,106,27,.28), 0 16px 34px -12px #f26a1b; transition:transform .5s var(--spring)}
.ia-card:hover .ia-pill{transform:scale(1.06)}
.ia-card__media--cvz{background:radial-gradient(120% 90% at 50% 45%, #1d1e22, #0f1012)}
.ia-orbit{position:absolute; inset:0; width:100%; height:100%}
.ia-orbit circle{fill:none; stroke:rgba(255,255,255,.12); stroke-dasharray:3 7}
.ia-orbit .l{fill:none; stroke-width:2.4; stroke-linecap:round; stroke-dasharray:220; stroke-dashoffset:220; animation:iaDraw 2.4s var(--ease-out) forwards}
.ia-orbit .l1{stroke:#ff6a45} .ia-orbit .l2{stroke:#ffc44d; animation-delay:.2s} .ia-orbit .l3{stroke:#63a4ff; animation-delay:.4s} .ia-orbit .l4{stroke:#3fdc8e; animation-delay:.6s} .ia-orbit .l5{stroke:#c58bff; animation-delay:.8s}
@keyframes iaDraw{to{stroke-dashoffset:0}}
.ia-orbit .n{fill:#1c1d20; stroke:#e9e4dc; stroke-width:2; stroke-dasharray:none; animation:iaPulse 3.2s ease-in-out infinite}
.ia-orbit .n--core{fill:rgba(207,118,82,.3); stroke:#cf7652}
.ia-orbit .you{fill:#f1ece4; stroke:none; stroke-dasharray:none}
@keyframes iaPulse{50%{opacity:.6}}
.ia-card:hover .ia-orbit{animation:iaSpin 18s linear infinite}
@keyframes iaSpin{to{transform:rotate(8deg) scale(1.04)}}
.ia-card__body{display:flex; flex-direction:column; gap:.5rem; padding:clamp(20px,2.6vw,30px); flex:1}
.ia-card__k{font-size:var(--fs-xs); letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--accent)}
.ia-card__t{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:var(--fs-xl); line-height:1}
.ia-card__p{font-family:var(--font-read); color:var(--text-2); line-height:1.6}
.ia-card__go{display:inline-flex; align-items:center; gap:.5rem; margin-top:auto; padding-top:.8rem; font-weight:700; font-size:.875rem; letter-spacing:.1em; text-transform:uppercase; color:var(--accent)}
.ia-card__go .i{width:18px; height:18px; transition:transform .4s var(--spring)}
.ia-card:hover .ia-card__go .i{transform:translateX(6px)}

/* ---------- responsive for the new pages ---------- */
@media (min-width:768px) and (max-width:1199px){
  .ab-hero{grid-template-columns:1fr; min-height:0}
  .ab-hero__art{width:min(100%,380px)}
  .ab-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ab-intro{grid-template-columns:1fr}
  .fq-layout{grid-template-columns:1fr}
  .fq-index{position:static; grid-template-columns:repeat(4,minmax(0,1fr))}
  .fq-index a{justify-content:center; flex-direction:column; gap:.2rem; text-align:center; border-color:var(--border); background:var(--surface)}
}
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape){
  .ab-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
  .ab-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:767px){
  .ab-hero{grid-template-columns:1fr; gap:1.5rem; min-height:0}
  .ab-hero__art{order:-1; width:min(100%,300px); aspect-ratio:1/1}
  .ab-title, .ia-title{font-size:clamp(2.4rem,11vw,3.2rem)}
  .ab-facts{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
  .ab-fact{padding:16px}
  .ab-intro{grid-template-columns:1fr; padding:22px}
  .ab-credits, .ab-reviews, .ia-grid{grid-template-columns:1fr}
  .fq-layout{grid-template-columns:1fr}
  .fq-index{position:static; display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; margin:0 calc(-1 * var(--gutter)); padding:0 var(--gutter)}
  .fq-index::-webkit-scrollbar{display:none}
  .fq-index a{flex:none; border-color:var(--border); background:var(--surface)}
  .fq details.faq summary{font-size:var(--fs-base); padding:.9rem 1rem .9rem 1.1rem}
  .fq details.faq p{padding:0 1.1rem 1.1rem}
}
@media (prefers-reduced-motion:reduce){
  .page:not([data-page="/read"]) > .page-main::before, .ab-hero__img, .gal-ticker__in, .ia-note, .glow, .record::after{animation:none !important}
}

/* ---------- "Uit het boek": rotating quotes (book page) + one quiet quote card per visit ---------- */
.bq{position:relative; margin:clamp(3rem,7vw,5rem) 0 0; padding:clamp(26px,4vw,48px); border-radius:var(--r-xl); overflow:hidden; background:linear-gradient(140deg, color-mix(in oklab, var(--accent) 12%, var(--surface)), var(--surface) 65%); border:1px solid var(--border); min-height:260px; display:flex; flex-direction:column}
.bq::after{content:"“"; position:absolute; right:clamp(16px,4vw,48px); top:-.15em; font-family:var(--font-read); font-size:clamp(8rem,16vw,14rem); line-height:1; color:color-mix(in oklab, var(--accent) 22%, transparent); pointer-events:none}
.bq__k{margin:0 0 1rem; font-size:var(--fs-xs); letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--accent)}
.bq__q{position:relative; z-index:1; margin:0; max-width:none; animation:bqIn .8s var(--ease-out) both}
@keyframes bqIn{from{opacity:0; transform:translateY(12px); filter:blur(4px)}}
.bq__q p{margin:0; max-width:34ch; font-family:var(--font-read); font-size:clamp(1.3rem,1rem + 1.4vw,2rem); line-height:1.4; text-wrap:balance}
.bq__q cite{display:block; margin-top:1rem; font-style:normal; font-size:.8125rem; color:var(--muted); font-weight:600}
.bq__nav{display:flex; align-items:center; gap:10px; margin-top:auto; padding-top:1.4rem}
.bq__nav .icon-btn{width:42px; height:42px}
.bq__dots{display:flex; gap:6px}
.bq__dots i{width:7px; height:7px; border-radius:99px; background:var(--line); transition:width .5s var(--spring), background-color .3s}
.bq__dots i.on{width:22px; background:var(--accent)}
.qpop{position:fixed; z-index:90; left:calc(var(--rail-w) + 20px); bottom:calc(var(--bot-h) + 20px); width:min(360px, calc(100vw - 40px)); padding:18px 20px 16px; border-radius:22px; background:color-mix(in oklab, var(--surface) 92%, transparent); border:1px solid var(--border); box-shadow:var(--shadow-lg); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); opacity:0; transform:translateY(18px) scale(.97); transition:opacity .5s var(--ease-out), transform .6s var(--spring); pointer-events:none}
.qpop.in{opacity:1; transform:none; pointer-events:auto}
.qpop__x{position:absolute; top:8px; right:8px; width:36px; height:36px; display:grid; place-items:center; border-radius:10px; color:var(--muted)}
.qpop__x:hover{color:var(--text); background:var(--surface-soft)}
.qpop__x .i{width:16px; height:16px}
.qpop__k{margin:0 30px .5rem 0; font-size:.6875rem; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--accent)}
.qpop__q{margin:0 0 .8rem; font-family:var(--font-read); font-size:1.02rem; line-height:1.5}
.qpop__a{display:inline-flex; align-items:center; gap:.4rem; font-size:.8125rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--accent)}
.qpop__a .i{width:16px; height:16px}
@media (max-width:767px){ .qpop{left:16px; right:16px; width:auto; bottom:calc(var(--bot-h) + 12px)} .bq{min-height:300px} }
@media (min-width:1200px){ .qpop{left:24px; bottom:24px} }

/* ---------- gallery collections: menu (tabs) + panels ---------- */
.galnav{position:relative; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:10px; margin:0 0 clamp(26px,4vw,40px)}
.galnav__tab{position:relative; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:.75rem; row-gap:.35rem; align-content:start; min-height:96px; padding:14px 16px; border-radius:var(--r-lg); background:var(--surface); border:1px solid var(--border); color:var(--text-2); text-align:left; cursor:pointer; transition:border-color .3s, background-color .3s, color .3s, transform .4s var(--spring)}
.galnav__tab b{grid-row:1 / 3; font-family:var(--font-read); font-weight:500; font-size:1.05rem; line-height:1.3; color:var(--muted); min-width:1.7em; transition:color .3s}
.galnav__tab span{font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:1.02rem; letter-spacing:.03em; line-height:1.12; text-wrap:balance}
.galnav__tab em{font-style:normal; font-size:.75rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.galnav__tab em i{font-style:normal}
@media (hover:hover){ .galnav__tab:hover{border-color:color-mix(in oklab, var(--accent) 45%, var(--border)); color:var(--text); transform:translateY(-2px)} }
.galnav__tab:active{transform:scale(.98)}
.galnav__tab[aria-selected="true"]{border-color:var(--accent); background:color-mix(in oklab, var(--accent) 10%, var(--surface)); color:var(--text)}
.galnav__tab[aria-selected="true"] b{color:var(--accent)}
.galnav__tab[aria-selected="true"]::after{content:""; position:absolute; left:16px; right:16px; bottom:-1px; height:2px; border-radius:2px; background:var(--accent)}
.galcol{animation:galIn .6s var(--ease-out) both}
.galcol[hidden]{display:none}
@keyframes galIn{from{opacity:0; transform:translateY(10px)}to{opacity:1; transform:none}}
.galcol__head{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.4rem 2rem; margin:0 0 clamp(16px,2.4vw,24px)}
.galcol__head h2{margin:0; font-size:var(--fs-xl)}
.galcol__head p{margin:0; max-width:52ch; font-family:var(--font-read); font-style:italic; color:var(--text-2)}
.gal-empty{display:grid; place-items:center; gap:1.1rem; min-height:300px; padding:40px 24px; border-radius:var(--r-xl); border:1px dashed var(--border); background:linear-gradient(160deg, color-mix(in oklab, var(--accent) 6%, var(--surface)), var(--surface) 65%); text-align:center}
.gal-empty svg{width:40px; height:70px; fill:none; stroke:var(--muted); stroke-width:1.5}
.gal-empty svg path{stroke:var(--accent); animation:galDoor 5s ease-in-out infinite; transform-origin:5px 50%}
@keyframes galDoor{0%,100%{transform:none}50%{transform:perspective(200px) rotateY(-28deg)}}
.gal-empty p{margin:0; max-width:32ch; font-family:var(--font-read); color:var(--text-2)}
/* tablet + phone: the menu becomes a horizontal, snapping row */
@media (max-width:1199px){
  .galnav{grid-auto-columns:minmax(210px,1fr); overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; margin-inline:calc(-1 * var(--gutter)); padding:2px var(--gutter) 6px; scroll-padding-inline:var(--gutter)}
  .galnav::-webkit-scrollbar{display:none}
  .galnav__tab{scroll-snap-align:start}
}
@media (max-width:767px){
  .galnav{grid-auto-columns:minmax(186px,62%); gap:8px}
  .galnav__tab{min-height:88px; padding:12px 14px}
  .gal-empty{min-height:240px}
}
@media (prefers-reduced-motion:reduce){ .galcol, .gal-empty svg path{animation:none} }

/* music viewport: one lead line, quiet body text, the "keeps playing" remark as a small aside */
.music-lead{font-family:var(--font-read); font-style:italic; font-size:clamp(1.1rem,.98rem + .5vw,1.35rem); line-height:1.5; color:var(--text); max-width:34ch; margin:0 0 1rem}
.music-intro{font-size:var(--fs-base); line-height:1.7; max-width:42ch; margin:0}
.music-note{display:inline-flex; align-items:center; gap:.6rem; margin:1.8rem 0 0; padding:.5rem .85rem; border:1px solid var(--border); border-radius:var(--r-sm); font-size:.8125rem; line-height:1.35; color:var(--muted)}
.music-note .eq{height:10px; color:var(--accent); flex:none}
@media (max-width:767px) and (max-height:899px){ #v5 .music-lead{font-size:1rem; margin-bottom:.6rem} }

/* ---------- navigation tiles: square controls with one corner radius (iPad rail + phone bar) ---------- */
@media (min-width:768px) and (max-width:1199px){
  .rail{width:82px; padding:10px 12px; gap:6px}
  .rail .brand__mark{margin-bottom:6px}
  .rail__nav{gap:6px; align-items:center}
  .rail .tab, .rail__tools .icon-btn{width:58px; height:58px; min-height:0; flex:none; border-radius:16px}
  .rail .tab{gap:3px; padding:0 1px; border:1px solid var(--border); background:color-mix(in oklab, var(--surface) 55%, transparent); font-size:.625rem; letter-spacing:0; transition:color .3s, background-color .3s, border-color .3s, transform .35s var(--spring)}
  .rail .tab span{max-width:100%; letter-spacing:-.015em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
  .rail .tab .i{width:20px; height:20px}
  .rail .tab[aria-current="page"]{border-color:color-mix(in oklab, var(--accent) 45%, var(--border))}
  .rail .tab--buy{margin-top:6px; border-color:var(--accent); background:var(--accent); color:var(--accent-ink)}
  .rail__tools{gap:6px}
}
@media (min-width:768px) and (max-width:1199px) and (max-height:800px){
  .rail .tab, .rail__tools .icon-btn{width:52px; height:52px}
  .rail .tab{font-size:.5625rem} .rail .tab .i{width:18px; height:18px}
}
@media (hover:hover) and (min-width:768px) and (max-width:1199px){ .rail .tab:not(.tab--buy):hover{color:var(--text); border-color:color-mix(in oklab, var(--accent) 35%, var(--border))} }
@media (max-width:767px){
  :root{ --bot-h:calc(98px + var(--safe-b)) }
  .tabbar{height:auto; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; padding:8px; justify-items:center; border-radius:24px}
  .tabbar .tab{width:100%; min-width:0; max-width:64px; aspect-ratio:1; min-height:0; gap:3px; padding:0 1px; border-radius:16px; border:1px solid var(--border); font-size:.625rem; letter-spacing:0}
  .tabbar .tab span{max-width:100%; letter-spacing:-.015em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
  .tabbar .tab .i{width:22px; height:22px}
  .tabbar .tab--buy{border-color:var(--accent); background:var(--accent)}
  .tabbar__ind{border-radius:16px}
}
@media (max-width:359px){ .tabbar{gap:5px; padding:7px} .tabbar .tab{font-size:.5625rem} .tabbar .tab .i{width:20px; height:20px} }

/* landing 06: on short phones the reservation note gives way to the two buttons */
@media (max-width:767px) and (max-height:700px){ #v6 .preorder{display:none} }
/* five acts: a little more air between number, title and text */
.act__k{margin-bottom:.7rem}
.act h3{margin-bottom:1.05rem}
@media (max-width:767px){ .act__k{margin-bottom:.5rem} .act h3{margin-bottom:.75rem} }

/* ---------- book page: two screen moments ---------- */
.bk-v1{position:relative; display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(2rem,6vw,6rem); align-items:center;
  min-height:calc(100svh - var(--top-h) - var(--bot-h) - clamp(28px,5vw,64px) - 24px); padding-bottom:64px}
.bk-v1 .book3d{height:auto; width:100%; max-width:min(360px, 38svh); margin-inline:auto}
.bk-title{margin:.7rem 0 1.1rem; max-width:30ch; font-family:var(--font-read); font-weight:400; font-size:clamp(1.45rem,1.1rem + 1.2vw,2.15rem); line-height:1.28; letter-spacing:-.005em; text-transform:none; text-wrap:balance; color:var(--text)}
.bk-body{max-width:58ch; margin:0; color:var(--text-2); font-size:var(--fs-base); line-height:1.7}
.bk-meta{display:flex; flex-wrap:wrap; align-items:center; gap:.35rem .6rem; margin:1.6rem 0 1.3rem; color:var(--muted); font-size:var(--fs-sm)}
.bk-meta b{font-family:var(--font-display); font-weight:600; font-size:1.6rem; line-height:1; color:var(--text)}
.bk-meta__dot{width:4px; height:4px; border-radius:50%; background:var(--accent)}
.bk-note{margin:.9rem 0 0; font-size:.8125rem; color:var(--muted)}
.bk-note::before{content:"✓"; margin-right:.45rem; color:var(--accent); font-weight:700}
.bk-more{position:absolute; left:50%; bottom:6px; transform:translateX(-50%); white-space:nowrap; display:inline-flex; align-items:center; gap:.5rem; min-height:44px; padding:0 .6rem; color:var(--muted); font-size:.75rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; transition:color .25s}
.bk-more .i{width:16px; height:16px; transform:rotate(90deg); animation:bkNudge 2.4s var(--ease-out) infinite}
.bk-more:hover{color:var(--text)}
@keyframes bkNudge{0%,60%,100%{transform:rotate(90deg) translateX(0)}30%{transform:rotate(90deg) translateX(4px)}}
.bk-v2{scroll-margin-top:calc(var(--top-h) + 24px); padding-top:clamp(2rem,5vw,3.5rem); border-top:1px solid var(--border)}
.bk-body--m{display:none}
.bk-pull{max-width:none; font-size:clamp(1.25rem,1rem + 1.1vw,1.85rem); line-height:1.15; text-wrap:balance; margin-top:0}
.bk-v2 .spec{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:899px){
  .bk-v1{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr); gap:28px}
  .bk-v1 .book3d{max-width:230px}
  .bk-v2 .spec{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .bk-v1{grid-template-columns:92px minmax(0,1fr); column-gap:16px; row-gap:0; align-content:center; padding-bottom:12px; min-height:calc(100svh - var(--top-h) - var(--bot-h) - 40px)}
  .bk-v1__txt{display:contents}
  .bk-v1 .book3d{grid-column:1; grid-row:1 / span 2; max-width:92px; align-self:center}
  .bk-v1 .eyebrow{grid-column:2; grid-row:1; align-self:end; margin:0}
  .bk-v1 .bk-meta{grid-column:2; grid-row:2; align-self:start; margin:.45rem 0 0; font-size:.8125rem}
  .bk-meta b{font-size:1.4rem}
  .bk-meta__dot{display:none}
  .bk-title{grid-column:1 / -1; grid-row:3; margin:1.3rem 0 1.1rem; font-size:clamp(1.25rem,1.05rem + 1.2vw,1.5rem); max-width:none}
  .bk-v1 .bk-body{display:none}
  .bk-v1 .btn-row{grid-column:1 / -1; grid-row:4; display:grid; grid-template-columns:1fr; gap:10px}
  .bk-v1 .btn-row .btn{width:100%}
  .bk-note{grid-column:1 / -1; grid-row:5}
  .bk-more{display:none}
  .bk-body--m{display:block; margin-bottom:1.6rem}
}
}
@media (prefers-reduced-motion:reduce){ .bk-more .i{animation:none} }

/* book quotes: quieter, fixed height (all quotes share one grid cell), cross-fade */
.bq{min-height:0; padding:clamp(24px,3.4vw,40px) clamp(22px,4vw,48px); background:linear-gradient(140deg, color-mix(in oklab, var(--accent) 7%, var(--surface)), var(--surface) 70%)}
.bq::after{font-size:clamp(5rem,9vw,8rem); color:color-mix(in oklab, var(--accent) 14%, transparent)}
.bq__k{margin-bottom:1.2rem}
.bq__stack{display:grid}
.bq__stack .bq__q{grid-area:1 / 1; opacity:0; transform:translateY(6px); transition:opacity .9s var(--ease-out), transform .9s var(--ease-out); animation:none; pointer-events:none}
.bq__stack .bq__q.on{opacity:1; transform:none; pointer-events:auto}
.bq__q p{max-width:46ch; font-size:clamp(1.08rem,.95rem + .6vw,1.4rem); line-height:1.55; color:var(--text-2); text-wrap:pretty}
.bq__nav{padding-top:1.2rem}
@media (max-width:767px){ .bq{min-height:0} }
@media (prefers-reduced-motion:reduce){ .bq__stack .bq__q{transition:none} }

/* ---------- Over AOE: the architecture behind the book, colophon ---------- */
.ab-arch{margin:clamp(3rem,7vw,5.5rem) 0 0; display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(1.5rem,5vw,5rem); align-items:start}
.ab-arch__head{position:sticky; top:calc(var(--top-h) + 28px)}
.ab-arch__head h2{font-size:var(--fs-2xl); margin:.5rem 0 1rem}
.ab-arch__p{margin:0; max-width:44ch; font-family:var(--font-read); font-size:var(--fs-md); line-height:1.7; color:var(--text-2)}
.ab-rooms{list-style:none; margin:0; padding:0; border-top:1px solid var(--border)}
.ab-rooms li{display:grid; grid-template-columns:3.2rem minmax(0,1fr); gap:1rem; padding:1.15rem 0; border-bottom:1px solid var(--border); transition:background-color .4s}
.ab-rooms li > b{font-family:var(--font-read); font-weight:500; font-size:1.05rem; color:var(--accent); line-height:1.45}
.ab-rooms li > span{display:grid; gap:.3rem}
.ab-rooms em{font-style:normal; font-family:var(--font-display); text-transform:uppercase; font-weight:600; font-size:var(--fs-md); letter-spacing:.02em; line-height:1.2; color:var(--text)}
.ab-rooms li > span > span{font-family:var(--font-read); color:var(--text-2); line-height:1.6}
.ab-cvz{grid-column:2; display:grid; grid-template-columns:84px minmax(0,1fr) auto; align-items:center; gap:18px; margin-top:22px; padding:18px 20px; border-radius:var(--r-lg); border:1px solid color-mix(in oklab, var(--accent) 35%, var(--border)); background:linear-gradient(140deg, color-mix(in oklab, var(--accent) 10%, var(--surface)), var(--surface) 70%); color:var(--text); transition:transform .5s var(--spring), border-color .3s, box-shadow .5s}
.ab-cvz:hover{transform:translateY(-3px); border-color:var(--accent); box-shadow:0 24px 50px -28px color-mix(in oklab, var(--accent) 60%, transparent)}
.ab-cvz__art{width:84px; height:84px; fill:var(--surface); stroke:var(--text-2); stroke-width:1.4; animation:cvzSpin 90s linear infinite}
.ab-cvz__art .ring{fill:none; stroke:var(--border); stroke-dasharray:2 4}
.ab-cvz__art path{fill:none; stroke:var(--accent)}
.ab-cvz__art .you{fill:var(--text); stroke:none}
.ab-cvz__txt{display:grid; gap:.25rem}
.ab-cvz__txt em{font-style:normal; font-size:var(--fs-xs); font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent)}
.ab-cvz__txt b{font-weight:600; font-size:var(--fs-md); line-height:1.3}
.ab-cvz__txt span{font-size:var(--fs-sm); color:var(--text-2); line-height:1.55}
.ab-cvz__go{display:grid; place-items:center; width:44px; height:44px; border-radius:14px; border:1px solid var(--border); color:var(--accent); transition:transform .4s var(--spring)}
.ab-cvz:hover .ab-cvz__go{transform:translateX(4px)}
@keyframes cvzSpin{to{transform:rotate(360deg)}}
.ab-colo{margin-top:clamp(3rem,7vw,5rem)}
.ab-colo__grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(1.5rem,4vw,3rem); align-items:start}
.ab-colo .colophon p{margin:0 0 .9rem}
.ab-colo .ab-credits{margin:0}
@media (max-width:1199px){ .ab-colo__grid{grid-template-columns:1fr} }
@media (max-width:899px){ .ab-arch{grid-template-columns:1fr} .ab-arch__head{position:static} .ab-cvz{grid-column:1} }
@media (max-width:767px){ .ab-cvz{grid-template-columns:56px minmax(0,1fr); padding:16px} .ab-cvz__art{width:56px; height:56px} .ab-cvz__go{display:none} .ab-rooms li{grid-template-columns:2.4rem minmax(0,1fr)} }
@media (prefers-reduced-motion:reduce){ .ab-cvz__art{animation:none} }

/* phones: long button labels (FR/DE/ES) wrap onto two lines instead of pushing the layout wider or being cut off */
@media (max-width:419px){ .btn{white-space:normal; text-align:center} }
/* very short phones: as before the intro split, the music viewport shows title + player only */
@media (max-width:767px) and (max-height:700px){ #v5 .music-lead{display:none} }
/* phones: a section that does not quite fit (longer languages) compacts a little before it would grow */
@media (max-width:767px){
  #v4.is-tight .q-big{font-size:clamp(1.75rem,8vw,2.3rem)}
  #v4.is-tight .q-aside{font-size:.9375rem; line-height:1.5; margin-top:10px}
  #v6.is-tight .buy-card{row-gap:12px}
  #v6.is-tight .btn-row{gap:8px}
  #v6.is-tight .btn{min-height:48px}
}
/* narrow phones (≤374px): a little less space between the tab tiles so labels like “Commande” fit; the quick-buy icon gives way */
@media (max-width:374px){ .tabbar{gap:5px; padding:7px} #quickBuy .i{display:none} }
@media (max-width:419px){ #v6 #quickBuy .i{display:none} }

/* overlays always fit the screen */
.langpop{max-height:calc(100dvh - 16px); overflow-y:auto; overscroll-behavior:contain}
.lb-stage{grid-template:minmax(0,1fr) / minmax(0,1fr)}
/* five editions: the segmented control shares its width evenly, even on 320px phones */
.seg--wide button{min-width:0}
/* 320px phones: the order card compacts before the viewport would grow */
@media (max-width:359px){
  #v6.is-tight .buy-card{grid-template-columns:72px minmax(0,1fr)}
  #v6.is-tight .buy-card > .book3d{width:72px}
  #v6.is-tight .buy-card .buy-title{font-size:1.25rem}
  #v6.is-tight .buy-card .eyebrow{letter-spacing:.1em}
}

/* ---------- quiet quote pop-ups: the quotation only (quotes.js) ---------- */
.qpop--bare{width:min(320px, calc(100vw - 40px)); padding:15px 38px 15px 18px; border-radius:16px; background:color-mix(in oklab, var(--surface) 97%, transparent); box-shadow:0 10px 30px -14px rgb(0 0 0 / .35); cursor:pointer; transition:opacity .9s var(--ease-out), transform 1s var(--ease-out)}
.qpop--bare .qpop__q{margin:0; font-size:.95rem; line-height:1.5; color:var(--text-2); text-wrap:pretty}
.qpop--bare .qpop__x{top:6px; right:6px; width:30px; height:30px; opacity:.7}
.qpop--bare .qpop__x .i{width:14px; height:14px}
@media (max-width:767px){ .qpop--bare{left:auto; right:12px; width:min(300px, calc(100vw - 24px)); bottom:calc(var(--bot-h) + 10px); padding:13px 36px 13px 16px} .qpop--bare .qpop__q{font-size:.9rem} }
@media (prefers-reduced-motion:reduce){ .qpop--bare{transition:opacity .4s} }
@media (min-width:768px){ .qpop--bare{left:auto; right:calc(var(--dots-w) + 24px); bottom:calc(var(--bot-h) + 24px)} }
/* gallery: numbered series (the act doors) read row by row, I II III IV V */
.gal--rows{columns:auto; display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap:clamp(10px,1.4vw,16px)}
.gal--rows .photo{margin:0}
@media (min-width:1000px){ .gal--rows{grid-template-columns:repeat(5, minmax(0,1fr))} }
