:root{
  /* Layout idea: one fixed night sky; seven chapters scroll over it; paper objects (the book, the order page) are the only light surfaces. */
  --night-0:#151926; --night-1:#1C2131; --night-2:#2B3246;
  --brass:#C9A15C; --candle:#F1DFB2; --mist:#C9C4B6; --haze:#A9B0C4;
  --paper:#FFFDF8; --ink:#1C2131; --amber:#A8782A; --amber-ink:#6B4A12; --ember:#D98E6C;
  --line:rgba(214,180,110,.42); --line-soft:rgba(214,180,110,.2);
  --serif:"Crimson Pro","Iowan Old Style",Georgia,serif;
  --sans:"Mulish","Segoe UI",Helvetica,Arial,sans-serif;
  --foil:35%;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--night-0);color:var(--mist);font:17px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--brass)} a:hover{color:var(--candle)}
:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
h1,h2,h3,p,ol,ul,dl,dd,figure,blockquote{margin:0}
ol,ul{padding:0;list-style:none}
button,input,textarea{font:inherit}
#sky{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.page{position:relative;z-index:1;overflow-x:clip}
.foil{background:linear-gradient(100deg,#9c7636 0%,#f6e7bd 38%,#c9a15c 52%,#f1dfb2 66%,#8f6a2b 100%);background-size:220% 100%;background-position:var(--foil) 0;-webkit-background-clip:text;background-clip:text;color:transparent}

/* nav */
.nav{position:fixed;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px clamp(16px,3vw,32px);background:rgba(21,25,38,.88);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-soft)}
.brand{font:500 22px/1 var(--serif);color:var(--candle);text-decoration:none;white-space:nowrap}
.nav-right{display:flex;align-items:center;gap:12px}
.lang{display:flex;border:1px solid var(--line);border-radius:2px}
.lang button{min-width:44px;min-height:40px;background:transparent;border:0;color:var(--mist);font-weight:700;font-size:14px;cursor:pointer}
.lang button[aria-pressed="true"]{background:var(--brass);color:var(--night-0)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;background:var(--brass);color:var(--night-0);font-weight:700;font-size:16px;text-decoration:none;border:0;border-radius:2px;cursor:pointer}
.btn:hover{background:var(--candle);color:var(--night-0)}
.btn.ghost{background:transparent;color:var(--candle);border:1px solid var(--brass);min-height:40px;padding:0 16px;font-size:14px}
.bar{position:fixed;top:0;left:0;height:2px;width:100%;transform-origin:0 50%;transform:scaleX(var(--page,0));background:var(--brass);z-index:30}

/* chapter rail */
.rail{position:fixed;left:26px;top:50%;transform:translateY(-50%);z-index:15;display:none}
.rail ol{display:flex;flex-direction:column;gap:6px;position:relative}
.rail ol::before{content:"";position:absolute;left:15px;top:16px;bottom:16px;width:1px;background:var(--line-soft)}
.rail a{display:flex;align-items:center;gap:12px;min-height:34px;text-decoration:none;color:var(--haze);font-size:13px}
.rail b{position:relative;width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line-soft);border-radius:50%;background:var(--night-0);font:500 14px/1 var(--serif);color:var(--haze)}
.rail span{opacity:0;transition:opacity .25s}
.rail a:hover span,.rail a[aria-current="true"] span{opacity:1}
.rail a[aria-current="true"] b{border-color:var(--brass);color:var(--night-0);background:var(--brass)}
.rail a.past b{border-color:var(--brass);color:var(--brass)}
@media (min-width:1280px){.rail{display:block}}

/* shared chapter layout */
.wrap{max-width:1080px;margin:0 auto;padding:0 clamp(20px,4vw,40px)}
.chapter{position:relative;padding:clamp(72px,10vh,116px) 0}
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,6vw,88px);align-items:center}
@media (max-width:880px){.split{grid-template-columns:minmax(0,1fr)}}
.copy{display:flex;flex-direction:column;gap:20px}
.no{font:500 1.35rem/1 var(--serif);color:var(--brass)}
h2{font:500 clamp(2.1rem,4.4vw,3.5rem)/1.06 var(--serif);letter-spacing:-.01em;color:var(--candle);text-wrap:balance}
.lede{font-size:19px;max-width:30em}
.small{font-size:14px;color:var(--haze);max-width:36em}
.ghostno{position:absolute;right:max(20px,6vw);top:40px;font:500 clamp(9rem,22vw,19rem)/.8 var(--serif);color:rgba(201,161,92,.07);pointer-events:none;user-select:none;transform:translateY(calc(var(--par,0) * 1px))}
.panel{border:1px solid var(--line);background:rgba(28,33,49,.72);padding:clamp(22px,3.4vw,36px);display:flex;flex-direction:column;gap:22px}
label.lab,.lab{font-weight:700;font-size:14px;color:var(--candle)}
.subj{display:flex;flex-direction:column;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.xl{color:var(--candle);font:500 clamp(2.1rem,5vw,3.3rem)/1.12 var(--serif)}
.result{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}
.big{font:500 clamp(5rem,11vw,8rem)/.82 var(--serif)}
.result div{display:flex;flex-direction:column;gap:2px;padding-bottom:6px}
.result strong{font:500 1.5rem/1.15 var(--serif);color:var(--candle)}
.sum{font:400 1.25rem/1.4 var(--serif);color:var(--candle);font-variant-numeric:tabular-nums}
.sum i{font-style:normal;color:var(--brass)}
.sum span{white-space:nowrap}

/* hero */
.hero{position:relative;min-height:min(100vh,940px);display:flex;align-items:center;padding:clamp(84px,13vh,120px) 0 clamp(40px,8vh,72px);overflow:hidden}
.hero .wrap{position:relative;width:100%;display:flex;flex-direction:column;gap:clamp(18px,3.4vh,30px)}
h1{font:500 clamp(2.35rem,min(8.4vw,11.4vh),7.2rem)/.98 var(--serif);letter-spacing:-.02em;color:var(--candle)}
h1 span{display:block}
.hero .lede{max-width:33em}
.strip{display:flex;flex-wrap:wrap;gap:0;font-size:14px;color:var(--haze)}
.strip li{display:flex;align-items:center}
.strip li+li::before{content:"";width:28px;height:1px;background:var(--line);margin:0 12px}
.strip a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.strip a:hover{color:var(--candle)}
.strip b{font:500 15px/1 var(--serif);color:var(--brass);margin-right:8px}
@media (max-width:880px){.strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 20px;max-width:620px}.strip li+li::before{display:none}.strip li{border-top:1px solid var(--line-soft)}}
@media (max-width:640px){.strip{grid-template-columns:repeat(2,minmax(0,1fr));max-width:340px}}
.heroback{position:absolute;inset:0;overflow:hidden;pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,#000 58%,transparent 97%);mask-image:linear-gradient(to bottom,#000 58%,transparent 97%)}
.herowheel{position:absolute;left:max(58vw,820px);top:50%;width:min(104vh,1000px);aspect-ratio:1;transform:translateY(-48%);opacity:.6;pointer-events:none}
@media (max-width:880px){.herowheel{left:auto;right:-80vw;width:150vw;opacity:.3}}
@keyframes rise{from{opacity:0;transform:translateY(.35em)}to{opacity:1;transform:none}}
.hero h1 span{animation:rise .9s cubic-bezier(.2,.7,.2,1) both}
.hero h1 span:nth-child(2){animation-delay:.28s}.hero h1 span:nth-child(3){animation-delay:.56s}.hero h1 span:nth-child(4){animation-delay:.9s}

/* I + II: one pinned scene; the text and the card change places at different speeds */
.duo{position:relative;height:290vh;margin-bottom:-12vh}
.duo .anchor{position:absolute;top:55%;left:0;width:1px;height:1px}
.duopin{position:sticky;top:0;height:100vh;height:100svh;min-height:640px;display:flex;align-items:center;overflow:hidden}
.duopin>.wrap{width:100%}
.duosplit{align-items:start}
.duotext,.duocards{display:grid}
.dt,.dc{grid-area:1/1;will-change:transform,opacity}
.dc{align-self:start}
.dt{padding-top:clamp(22px,3.4vw,36px)}
.dt[data-i="0"]{opacity:calc(1 - var(--q,0) * 1.9);transform:translateY(calc(var(--q,0) * -80px))}
.dt[data-i="1"]{opacity:calc(var(--q,0) * 1.9 - .9);transform:translateY(calc((1 - var(--q,0)) * 80px))}
.dc[data-i="0"]{opacity:calc(1 - var(--q,0) * 1.75);transform:perspective(1400px) translateY(calc(var(--q,0) * -190px)) rotateX(calc(var(--q,0) * 16deg)) scale(calc(1 - var(--q,0) * .06))}
.dc[data-i="1"]{opacity:calc(var(--q,0) * 1.75 - .75);transform:perspective(1400px) translateY(calc((1 - var(--q,0)) * 210px)) rotateX(calc((1 - var(--q,0)) * -16deg))}
.duo .g0{opacity:calc(1 - var(--q,0))}.duo .g1{opacity:var(--q,0)}
.duo.flat{height:auto;padding:clamp(72px,10vh,116px) 0}
.duo.flat .duopin{position:static;height:auto;min-height:0;overflow:visible}
.gf{display:none}
.dt{position:relative}
.duo.flat .g0,.duo.flat .g1{display:none}
.duo.flat .gf{display:block;right:0;top:-24px}
.order .ghostno{top:8px}
.duo.flat .duotext,.duo.flat .duocards{display:contents}
.duo.flat .dt,.duo.flat .dc{opacity:1;transform:none}
.duo.flat .duosplit{row-gap:clamp(96px,14vh,150px)}
.duo.flat .dt[data-i="0"]{grid-area:1/1}.duo.flat .dc[data-i="0"]{grid-area:1/2}
.duo.flat .dt[data-i="1"]{grid-area:2/1}.duo.flat .dc[data-i="1"]{grid-area:2/2}
@media (max-width:880px){
  .duo{height:auto;margin-bottom:0}.duopin{position:static;height:auto;min-height:0;overflow:visible}.duo .anchor{top:50%}
  .duo.flat .duosplit{row-gap:26px}
  .duo.flat .dt[data-i],.duo.flat .dc[data-i]{grid-area:auto;padding-top:0}
  .duo.flat .dc[data-i]{padding-top:clamp(22px,3.4vw,36px)}
  .duo.flat .dt[data-i="0"]{order:1}.duo.flat .dc[data-i="0"]{order:2}.duo.flat .dt[data-i="1"]{order:3;margin-top:72px}.duo.flat .dc[data-i="1"]{order:4}
}
.rows dd{white-space:nowrap}
.lpgrid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 26px;align-items:center}
.sqfig{margin:0;display:flex;flex-direction:column;gap:8px}
@media (min-width:881px) and (max-width:1100px),(max-width:520px){
  .lpgrid .result{flex-direction:column;align-items:flex-start;gap:10px}
  .lpgrid .result div{padding-bottom:0}
}
@media (min-width:521px) and (max-width:880px){.duo.flat .dc{max-width:560px}}
@media (max-width:520px){
  .dc .rows{grid-template-columns:auto 1fr;justify-content:start;gap:6px 20px;align-items:baseline}
  .dc .rows div{display:contents}
  .dc .rows .tot dt{display:block}
  .lpgrid{gap:16px 18px}
  .dc .square{width:clamp(120px,36vw,150px)}
  .lpgrid .result strong{font-size:1.3rem}
  .dc .tiles{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));min-height:0}
  .dc .tile{width:auto;padding:12px 0 9px}
  .dc .tile b{font-size:clamp(26px,8vw,34px)}
}
@media (max-height:820px){.pin .lede{display:none}.pin{min-height:0}}

/* I name */
.tiles{display:flex;flex-wrap:wrap;gap:8px;min-height:74px}
.tile{width:52px;display:grid;justify-items:center;gap:2px;padding:9px 0 7px;border:1px solid var(--line);background:rgba(43,50,70,.6);animation:rise .45s cubic-bezier(.2,.7,.2,1) both}
.tile b{font:500 28px/1 var(--serif);color:var(--candle)}
.tile i{font-style:normal;font-weight:700;font-size:14px;color:var(--brass)}

/* II date */
.rows{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;gap:14px 20px}
.rows div{display:flex;flex-direction:column;gap:2px}
.rows dt{font-size:14px;color:var(--haze)}
.rows .tot{grid-column:1/-1;padding-top:14px;border-top:1px solid var(--line-soft)}
.rows .tot dt{display:none}
.square{display:grid;grid-template-columns:repeat(3,1fr);width:168px;border-left:1px solid var(--line);border-top:1px solid var(--line)}
.square span{aspect-ratio:1;display:grid;place-items:center;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font:500 1.2rem/1 var(--serif);color:var(--candle);letter-spacing:.04em}
.square span.empty{color:rgba(201,196,182,.3)}

/* III hour */
.wheelbox{position:relative;width:100%;max-width:540px;margin:0 auto;aspect-ratio:1}
.wheelbox svg{width:100%;height:100%;display:block;overflow:visible}
.reads{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.reads div{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:2px}
.reads dt{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--haze)}
.reads dd{font:500 clamp(1.1rem,5vw,1.6rem)/1.1 var(--serif);color:var(--candle)}
.ruler{position:relative;height:74px;border:1px solid var(--line);background:rgba(28,33,49,.72);overflow:hidden}
.ruler .seg{position:absolute;top:0;bottom:0;border-left:1px solid var(--line)}
.ruler .seg b{position:absolute;left:8px;top:8px;font:500 1.15rem/1 var(--serif);color:var(--candle);white-space:nowrap}
.ruler .tick{position:absolute;bottom:0;width:1px;height:12px;background:var(--line-soft)}
.ruler .moon{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--candle);box-shadow:0 0 18px 3px rgba(241,223,178,.5)}
.ruler .moon::after{content:"";position:absolute;left:50%;bottom:8px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:var(--candle);box-shadow:inset -5px 0 0 var(--night-1)}
.slide{display:flex;flex-direction:column;gap:10px}
.slide .row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.slide output{font:500 2rem/1 var(--serif);color:var(--candle);font-variant-numeric:tabular-nums}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:44px;background:transparent;cursor:pointer;margin:0}
input[type=range]::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--brass) var(--fill,50%),rgba(214,180,110,.3) var(--fill,50%))}
input[type=range]::-moz-range-track{height:2px;background:rgba(214,180,110,.3)}
input[type=range]::-moz-range-progress{height:2px;background:var(--brass)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-12px;border-radius:50%;background:var(--candle);border:2px solid var(--night-0);box-shadow:0 0 0 1px var(--brass),0 0 22px rgba(241,223,178,.45)}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--candle);border:2px solid var(--night-0);box-shadow:0 0 0 1px var(--brass)}
.hourgrid{display:flex;flex-direction:column;gap:18px;margin-top:clamp(24px,4vw,40px)}
#hour .copy .slide{margin-top:10px}

/* IV figure */
.figscene{position:relative;height:320vh;margin-bottom:-8vh}
.figpin{position:sticky;top:0;height:100vh;height:100svh;min-height:560px;display:flex;align-items:center;padding:76px 0 20px}
.figpin .wrap{width:100%}
.figpin .copy{gap:16px}
.figbox{width:100%;max-width:440px;margin:0 auto}
.figbox svg{display:block;width:100%;height:auto;max-height:calc(100vh - 110px);overflow:visible}
/* the caption beside the figure: nine small shapes for progress, then the centre being placed */
.figcap{display:flex;flex-direction:column;gap:14px;margin-top:6px;padding-top:20px;border-top:1px solid var(--line-soft)}
.glyphs{display:flex;gap:8px}
.glyphs svg{display:block;width:24px;height:24px;overflow:visible}
.glyphs polygon{fill:none;stroke:rgba(214,180,110,.3);stroke-width:1.3;stroke-linejoin:round;transition:fill .35s,stroke .35s}
.glyphs .on polygon{stroke:var(--brass)}
.glyphs .now polygon{stroke:var(--candle);fill:var(--candle)}
.ticknow{display:flex;flex-direction:column;gap:2px;min-height:4.3rem}
.ticknow strong{font:500 clamp(1.7rem,2.5vw,2.1rem)/1.12 var(--serif);color:var(--candle)}
.ticknow span{font:italic 400 1.2rem/1.3 var(--serif);color:var(--brass)}
.keys{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:14px}
.keys li{display:flex;align-items:center;gap:8px}
.keys i{width:11px;height:11px;border-radius:50%;background:var(--candle)}
.keys .k1{background:var(--ember)}
.figpin .keys,.figpin #fig-note{opacity:var(--lit,1)}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fig-c{transition:opacity .5s,fill .5s}
.fig-l{transition:opacity .6s}
.fig-b{transition:opacity .5s,transform .5s;transform-box:fill-box;transform-origin:center}
@media (max-width:880px){.figscene{height:auto;margin-bottom:0}.figpin{position:static;height:auto;min-height:0;padding:64px 0 40px}.figbox{max-width:340px;order:2}
  .figpin .split{display:flex;flex-direction:column;align-items:stretch;gap:18px}.figpin .copy{display:contents}.figpin .copy>*{order:1}.figpin .keys,.figpin .small{order:3}
  .figpin .keys,.figpin #fig-note{opacity:1}.figcap{margin-top:10px}}
/* phones in portrait, with the motion library running: the heading scrolls away, then the caption and the whole figure hold still
   while the centres appear. The sticky offset is negative by the height of the heading, so the hold starts at the caption. */
@media (max-width:880px) and (min-height:540px){
  html.g .figscene::after{content:"";display:block;height:150vh;height:150svh}
  html.g .figpin{position:sticky;top:calc(var(--pintop,69px) - var(--intro,0px))}
  html.g .figcap{padding-top:14px;gap:10px}
  html.g .ticknow{min-height:3.7rem}
  html.g .figbox svg{max-height:calc(100vh - 150px - 3.7rem);max-height:calc(100svh - 150px - 3.7rem)}
  /* the figure takes all the height the screen has (not a fixed width), and the two-colour key sits on its faded foot, so it is in view with it */
  html.g .figbox{max-width:480px}
  html.g .figpin .keys{margin-top:-30px}
}
@media (min-width:881px) and (max-height:640px){.figpin .copy>.small{display:none}.figpin .lede{font-size:16px}.figpin .copy{gap:12px}}

/* V book */
.bookscene{position:relative;height:250vh}
.pin{position:sticky;top:0;height:100vh;height:100svh;min-height:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(18px,3vh,34px);padding:84px 20px 28px;text-align:center}
.pin .lede{margin:0 auto}
.stage{--bw:min(300px,40vw,37vh);perspective:2200px;width:100%;display:flex;justify-content:center;padding:10px 0 24px}
.bk{position:relative;width:var(--bw);aspect-ratio:210/297;transform-style:preserve-3d;transform:translateX(calc(var(--open,0) * var(--bw) * var(--shift,.5))) rotateX(calc(12deg - var(--open,0) * 4deg)) rotateY(calc(-24deg + var(--open,0) * 24deg))}
.bk-block{position:absolute;inset:0;background:var(--paper);color:var(--ink);box-shadow:1px 1px 0 #e6dcc6,2px 2px 0 #f4ecd9,3px 3px 0 #e6dcc6,4px 4px 0 #f4ecd9,5px 5px 0 #e6dcc6,6px 6px 0 #f4ecd9,7px 7px 0 #d8ccb1,0 40px 70px rgba(5,7,14,.7);display:flex;flex-direction:column;justify-content:space-between;padding:11% 10% 9%;text-align:left;overflow:hidden}
.bk-block::before{content:"";position:absolute;inset:5%;border:1px solid rgba(168,120,42,.45);pointer-events:none}
.tp-k{font-size:clamp(9px,1.1vw,11px);color:var(--amber-ink);font-weight:700}
.tp-n{font:500 clamp(1.5rem,3.2vw,2.3rem)/1.05 var(--serif);color:var(--ink);overflow-wrap:anywhere}
.tp dl{display:flex;flex-direction:column}
.tp dl div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-top:1px solid #E4DAC4;padding:6px 0}
.tp dt{font-size:clamp(9px,1.1vw,12px);color:#5F5642}
.tp dd{font:500 clamp(.95rem,1.7vw,1.25rem)/1.1 var(--serif);color:var(--ink);text-align:right}
.tp-f{font:italic 400 clamp(.8rem,1.3vw,1rem)/1.25 var(--serif);color:var(--amber-ink)}
.tp{position:relative;display:flex;flex-direction:column;gap:10px}
.bk-cover{position:absolute;inset:0;transform-origin:0 50%;transform-style:preserve-3d;transform:rotateY(calc(var(--open,0) * -176deg))}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:13% 11%;text-align:center}
.front{background:radial-gradient(ellipse 62% 45% at 50% 52%,var(--night-2) 0%,var(--night-1) 62%,var(--night-0) 100%);box-shadow:inset 7px 0 12px rgba(0,0,0,.3)}
.front::before,.front::after,.inside::before{content:"";position:absolute;pointer-events:none}
.front::before{inset:6.5%;border:1px solid rgba(214,180,110,.6)}
.front::after{inset:8%;border:1px solid rgba(214,180,110,.3)}
.inside{transform:rotateY(180deg);background:#1a1f2e;color:var(--mist);justify-content:flex-end;align-items:flex-start;text-align:left;padding:10%;background-image:radial-gradient(circle at 50% 42%,rgba(201,161,92,.16) 0 1px,transparent 1.5px);background-size:22px 22px}
.inside::before{inset:5%;border:1px solid rgba(214,180,110,.3)}
.inside small{position:relative;font-size:clamp(9px,1.1vw,12px);color:var(--haze)}
.inside strong{position:relative;font:500 clamp(1.1rem,2.2vw,1.6rem)/1.1 var(--serif);color:var(--candle)}
.ck{position:relative;font-size:clamp(7px,.9vw,10px);letter-spacing:.36em;text-transform:uppercase;font-weight:700;color:var(--brass)}
.cn{position:relative;font:500 clamp(1.7rem,4vw,3rem)/1 var(--serif);overflow-wrap:anywhere}
.cf{position:relative;font:italic 400 clamp(.85rem,1.6vw,1.25rem)/1 var(--serif);color:#E9D6A8}
.front svg{position:relative;width:34%;height:auto}

@media (max-width:640px){.stage{--bw:min(300px,66vw,37vh)}.pin{justify-content:flex-start}.bk{--shift:0}.bk-cover .inside{opacity:clamp(0,calc((.97 - var(--open,0)) * 3.4),1)}.tp-f{display:none}.nav .btn{display:none}}

/* VI choose */
.shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));gap:28px;margin-top:clamp(32px,5vw,56px)}
.vol{position:relative;border:1px solid var(--line);background:rgba(28,33,49,.72);padding:clamp(24px,3.6vw,40px);display:flex;flex-direction:column;gap:16px;transform:perspective(1100px) rotateX(calc(var(--ty,0) * -5deg)) rotateY(calc(var(--tx,0) * 6deg));transition:transform .25s ease-out,border-color .2s}
.vol.on{border-color:var(--brass);background:rgba(43,50,70,.8)}
.vol h3{font:500 2rem/1.1 var(--serif);color:var(--candle)}
.vol .from{font:italic 400 1.35rem/1.25 var(--serif);color:var(--brass)}
.vol .meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line-soft);padding-top:16px;margin-top:auto}
.vol .price{font:500 2rem/1 var(--serif);color:var(--candle)}
.emblem{height:138px;display:flex;align-items:center;gap:22px}
.emb-sq{display:grid;grid-template-columns:repeat(3,34px);border-left:1px solid var(--line);border-top:1px solid var(--line)}
.emb-sq span{height:34px;display:grid;place-items:center;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font:500 .95rem/1 var(--serif);color:var(--candle)}
.emb-sq span.empty{color:rgba(201,196,182,.28)}
.emb-no{font:500 clamp(4.2rem,18vw,6.4rem)/.8 var(--serif)}
.emblem svg{height:138px;width:auto;display:block;overflow:visible}
.emb-b{display:grid;grid-template-columns:repeat(3,30px);gap:7px}
.emb-b i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:700 12px/1 var(--sans);font-style:normal;color:var(--night-0)}
.pick{align-self:flex-start;min-height:48px;padding:0 20px;border:1px solid var(--brass);border-radius:2px;background:transparent;color:var(--candle);font-weight:700;cursor:pointer}
.pick[aria-pressed="true"]{background:var(--brass);color:var(--night-0)}

/* VI delivery */
.steps{position:relative;display:flex;flex-direction:column;gap:34px;padding-left:52px}
.thread{position:absolute;left:15px;top:6px;bottom:6px;width:1px;background:var(--line-soft)}
.thread i{display:block;width:100%;height:100%;transform-origin:50% 0;transform:scaleY(var(--thread,0));background:var(--brass);box-shadow:0 0 12px rgba(201,161,92,.7)}
.steps li{position:relative;display:flex;flex-direction:column;gap:6px}
.steps li::before{content:attr(data-n);position:absolute;left:-52px;top:-2px;width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--brass);border-radius:50%;background:var(--night-0);font:500 15px/1 var(--serif);color:var(--brass)}
.steps h3{font:500 1.6rem/1.2 var(--serif);color:var(--candle)}
.note{margin-top:clamp(64px,10vw,120px);display:flex;flex-direction:column;gap:22px;max-width:820px}
.note blockquote{font:italic 400 clamp(1.9rem,4vw,3rem)/1.15 var(--serif);color:var(--candle)}
.note figcaption{color:var(--haze);font-size:15px;margin-top:10px}
.note h3{font:500 1.7rem/1.2 var(--serif);color:var(--candle)}
.note .words{font:400 clamp(1.35rem,2.6vw,1.9rem)/1.4 var(--serif);color:var(--candle)}
.note .words span{opacity:.5;transition:opacity .3s}
.note .words span.lit{opacity:1}

/* VII order */
.order{position:relative;padding:clamp(72px,10vh,116px) 16px clamp(96px,14vh,160px)}
.sheet{position:relative;max-width:780px;margin:0 auto;background:var(--paper);color:var(--ink);color-scheme:light;padding:clamp(34px,7vw,80px);box-shadow:0 44px 90px rgba(5,7,14,.7);display:flex;flex-direction:column;gap:30px}
.sheet::before,.sheet::after{content:"";position:absolute;pointer-events:none}
.sheet::before{inset:12px;border:1px solid rgba(168,120,42,.6)}
.sheet::after{inset:17px;border:1px solid rgba(168,120,42,.3)}
.sheet h2{color:var(--ink)}
.sheet .no{color:var(--amber-ink)}
.sheet .lead{font:italic 400 1.4rem/1.3 var(--serif);color:var(--amber-ink)}
.sheet fieldset{border:0;margin:0;padding:0;min-width:0}
.sheet legend,.sheet label.f{padding:0;margin-bottom:10px;font-weight:700;font-size:15px;display:block;color:var(--ink)}
.opts{display:flex;gap:12px;flex-wrap:wrap}
.opt{position:relative}
.opt input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.opt span{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;border:1px solid #6B5A36;border-radius:2px;font-weight:600;color:var(--ink)}
.opt input:checked+span{background:var(--ink);color:var(--candle)}
.opt input:focus-visible+span{outline:2px solid var(--amber);outline-offset:3px}
.fld{display:flex;flex-direction:column}
.fld input,.fld textarea{width:100%;min-height:52px;padding:12px 14px;border:1px solid #8A7B5C;border-radius:2px;background:#fff;color:var(--ink);font-size:16px}
.fld .hint,.hint{font-size:14px;color:#5F5642;margin-top:8px}
.hdf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:22px;border-left:2px solid var(--amber);padding-left:20px}
.total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-top:1px solid #E4DAC4;border-bottom:1px solid #E4DAC4;padding:14px 0}
.total strong{font:500 1.9rem/1 var(--serif)}
.sheet .btn{align-self:flex-start;background:var(--ink);color:var(--candle);min-height:54px}
.sheet .btn:hover{background:#2B3246;color:var(--candle)}
.done{display:flex;gap:18px;align-items:center;padding:18px 20px;background:#F1E7CE;border:1px solid var(--amber)}
.done p{font-weight:600}
.done small{display:block;font-weight:400;color:#5F5642;margin-top:4px}
.pay{display:flex;flex-direction:column;gap:22px}
.payrows{display:grid;grid-template-columns:auto 1fr;gap:6px 24px;align-items:baseline}
.payrows dt{font-size:14px;color:#5F5642}
.payrows dd{font:500 1.35rem/1.2 var(--serif);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.paygrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px}
.payopt{border:1px solid #8A7B5C;padding:22px;display:flex;flex-direction:column;gap:12px;background:#fff}
.payopt h3{font:500 1.45rem/1.2 var(--serif)}
.payopt p{font-size:15px}
.payopt .btn{align-self:stretch;min-height:48px}
.payopt .btn[aria-disabled="true"]{background:#8A7B5C;cursor:not-allowed}
.btn.line{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.btn.line:hover{background:var(--ink);color:var(--candle)}
.seal{flex:none;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#d9b56f,#a8782a 60%,#7c5516);display:grid;place-items:center;box-shadow:0 3px 8px rgba(60,40,10,.4);animation:stamp .55s cubic-bezier(.2,1.4,.4,1) both}
.seal svg{width:38px;height:38px}
@keyframes stamp{from{transform:scale(1.9) rotate(-24deg);opacity:0}to{transform:none;opacity:1}}
.err{font-size:14px;font-weight:700;color:#8C2F1B;margin-top:8px}
.fld input[aria-invalid="true"]{border-color:#8C2F1B;border-width:2px}
.dock{position:fixed;left:16px;right:16px;bottom:14px;z-index:25;display:none;box-shadow:0 10px 30px rgba(5,7,14,.6);transform:translateY(140%);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.dock.up{transform:none}
@media (max-width:640px){.dock{display:flex}}
html.g{scroll-behavior:auto}
html.lenis,html.lenis body{height:auto}.lenis.lenis-stopped{overflow:clip}.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
h1 i{font-style:normal;display:inline-block}
html.g .hero h1 span{animation:none;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
html.g .tile{animation:none}
html.g .vol{transform:none;transition:border-color .2s,background-color .2s}
html.g .fig-c{transition:fill .45s,stroke .45s}
html.g .fig-l,html.g .fig-b{transition:none}
html.g .note .words span{transition:none}
.enter{opacity:calc(.2 + var(--e,1) * .8);transform:translateY(calc((1 - var(--e,1)) * 54px));will-change:transform,opacity}
@media (prefers-reduced-motion:reduce){.enter{opacity:1;transform:none}}
[hidden]{display:none !important}
footer{padding:48px 0 72px}
footer .wrap{display:flex;flex-wrap:wrap;gap:28px;justify-content:space-between}
footer p{font-size:15px;max-width:30em}
footer nav{display:flex;flex-wrap:wrap;gap:24px;font-size:15px}
footer nav a{display:inline-flex;align-items:center;min-height:44px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero h1 span,.tile,.seal{animation:none}
  .bookscene,.figscene,.duo{height:auto;margin-bottom:0}.pin,.figpin{position:static;height:auto;min-height:0;padding-top:120px}
  .vol{transform:none}
}

@media (max-width:640px){
  .chapter{padding:64px 0}
  .duo.flat{padding:64px 0}
  .duo.flat .dt[data-i="1"]{margin-top:52px}
  .opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .opt{display:flex}
  .opt span{display:flex;width:100%;flex:1;justify-content:center;text-align:center;padding:8px 12px;line-height:1.2}
  .sheet{gap:26px}
  .fld[style*="max-width"]{max-width:none!important}
}
/* phones: the hero wheel turns as one composited layer, and the header skips the live blur */
@keyframes spin{to{rotate:360deg}}
html.lite .herowheel{animation:spin 260s linear infinite;will-change:transform,rotate}
html.lite .herowheel.off{animation-play-state:paused}
html.lite .nav{-webkit-backdrop-filter:none;backdrop-filter:none;background:#151926}
@media (prefers-reduced-motion:reduce){html.lite .herowheel{animation:none}}
/* phones: the book shrinks while it opens so the whole spread fits, then the view moves in to the first page */
@media (max-width:640px){
  .bk{transform:scale(calc(1 - (var(--open,0) - var(--cam,0)) * .3)) translateX(calc((var(--open,0) - var(--cam,0)) * var(--bw) * .5)) rotateX(calc(12deg - var(--open,0) * 4deg)) rotateY(calc(-24deg + var(--open,0) * 24deg))}
  .bk-cover .inside{opacity:clamp(0,calc(1 - var(--cam,0) * 1.6),1)}
}
/* moving pieces get their own layers, so scrolling moves pixels instead of redrawing them */
.ghostno,.bar{will-change:transform}
html.lite .wheelbox{will-change:transform,opacity}

/* wide screens: a little more room and size, so the page does not float small in the middle */
@media (min-width:1600px){
  .wrap{max-width:1240px}
  h2{font-size:3.9rem}
  .lede{font-size:20px}
  .small{font-size:15px}
  .figbox{max-width:480px}
  .wheelbox{max-width:600px}
}
