@font-face{font-family:'Cormorant Garamond';font-weight:600;font-display:swap;src:url(../v3/fonts/cormorant-garamond-600.woff2) format('woff2')}
@font-face{font-family:'Spectral';font-weight:400;font-display:swap;src:url(../v3/fonts/spectral-400.woff2) format('woff2')}
:root{
  color-scheme:dark;
  --void:#070b11;--sky:#0f1923;--paper:#f3e8d2;--name:#fdf4e1;--brass:#e8c06a;--brass-dim:#c9a965;--fact:#f0cd7c;
  --display:'Cormorant Garamond','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --text:'Spectral','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --halo:0 0 1px #04070b,0 1px 2px #04070b,0 0 10px rgba(4,7,11,.92);
  --hx0:24vw;--hx1:80vw;--hy0:6vh;
  --seg:170lvh;
  /* a star's main rays reach 12.5 percent of the short side: the words keep clear of them */
  --ray:12.5vmin;
}
*{box-sizing:border-box}
html{background:var(--void);scroll-behavior:smooth}
body{margin:0;background:var(--void);color:var(--paper);font:400 18px/1.5 var(--text);overflow-x:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;left:16px;top:-80px;z-index:9;background:var(--void);color:var(--paper);padding:10px 16px;border:1px solid var(--brass)}
.skip:focus{top:16px}
a{color:var(--name)}
a:focus-visible,button:focus-visible{outline:2px solid var(--paper);outline-offset:4px}

/* ---------------------------------------------------------------- the stage (behind the words) */
#stage{position:fixed;left:0;top:0;width:100vw;height:100lvh;overflow:hidden;pointer-events:none;z-index:0}
#stage canvas,#stage .l{position:absolute;left:0;top:0;display:block}
#stage canvas.hero-e3{visibility:hidden}
#stage .l{will-change:transform,opacity}
#hero-art .sky-tint{width:100%;height:100%;background:var(--sky)}

/* ---------------------------------------------------------------- the route: one section per station */
main{position:relative;z-index:2}
.station{position:relative;height:var(--seg)}
#top{height:calc(var(--seg) * 1.45)}
.station:last-child{height:100lvh}
.mark{display:none}
.copy{position:fixed;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;pointer-events:none}
/* the block of words is only as wide as its words (round 13): the empty part of a wide column must not stop a drag of the scene */
.copy-in{opacity:0;will-change:transform,opacity;text-shadow:var(--halo);width:fit-content;max-width:100%}
.station[data-zone=bottom] .copy-in,.station[data-zone=top] .copy-in{margin-inline:auto}
.copy.on{pointer-events:auto}
/* text zones follow the star stations (fractions of the width) and the star size (vmin) */
.station[data-zone=left] .copy{left:round(max(16px,6vw),1px);width:round(min(calc(63vw - var(--ray) * 1.12),1320px),1px)}
.station[data-zone=right] .copy{left:round(calc(27vw + var(--ray) * 1.12),1px);width:round(min(calc(67vw - var(--ray) * 1.12),1320px),1px)}
.station[data-zone=bottom] .copy{left:max(16px,calc(50vw - min(46vw,700px)));width:min(92vw,1400px);top:calc(17lvh + var(--ray) * 1.15);bottom:6lvh}
.station[data-zone=top] .copy{left:max(16px,calc(50vw - min(46vw,700px)));width:min(92vw,1400px);top:6lvh;bottom:calc(16lvh + var(--ray) * 1.2)}
.station[data-zone=finale] .copy{left:round(calc(28.5vw + min(29vh,20vw) + 48px),1px);width:round(min(calc(66vw - min(29vh,20vw) - 48px),780px),1px)}
.station[data-zone=bottom] .copy-in,.station[data-zone=top] .copy-in{text-align:center}

/* hero */
/* the hero words take all the room there is up to the instrument, which does not move (round 15) */
.copy.hero{left:max(16px,6vw);width:calc(69vw - min(20vw,36vh) - max(16px,6vw) - 28px)}
.hero .copy-in{opacity:1}
.hero h1{font-family:var(--display);font-weight:600;color:var(--name);margin:0;text-wrap:balance;
  font-size:clamp(28px,min(2.4vw,4.4vh),52px);line-height:1.08;letter-spacing:.003em} /* sentence test: smaller so the longest of the three lines fits on two lines; before: clamp(38px,min(4.6vw,8.2vh),96px) */
.hero .who{margin:0 0 1.1em;font:600 clamp(13px,1vw,16px)/1.3 var(--text);letter-spacing:.18em;text-transform:uppercase;color:var(--brass)}
.hero .invite{font-size:clamp(18px,min(1.4vw,2.6vh),25px);line-height:1.55;margin:.9em 0 0;max-width:44em;text-wrap:pretty}
/* the hero words arrive as the chapter words do: they fade in and slide a short way */
@keyframes arrive{from{opacity:0;transform:translate3d(-36px,0,0)}to{opacity:1;transform:none}}
html.js:not(.still) .hero .copy-in>*{animation:arrive .9s cubic-bezier(.2,.6,.2,1) both}
html.js:not(.still) .hero .copy-in>*:nth-child(2){animation-delay:.12s}
html.js:not(.still) .hero .copy-in>*:nth-child(3){animation-delay:.24s}
.hero .go{margin:.8em 0 0}
/* the one call to action: in the hero, then kept at hand in the top right corner for the whole journey */
/* both buttons are set like a chapter label (the kicker): same face, weight, size, spacing and colour; no plate */
.cta-btn{position:relative;display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:0 10px 0 20px;border:1px solid var(--brass);border-radius:26px;background:none;color:var(--brass);
  font:600 clamp(13px,1vw,16px)/1.3 var(--text);letter-spacing:.18em;text-transform:uppercase;text-decoration:none;white-space:nowrap;cursor:pointer;text-shadow:var(--halo);transition:border-color .2s linear}
.cta-btn svg{flex:none;color:var(--brass);transition:opacity .2s linear}
.cta-btn.near svg{opacity:0;transition:opacity .2s linear}
/* the words light up from left to right while the points gather (--rev goes from 0 to 100) */
.cta-btn span{background:linear-gradient(90deg,var(--name) calc(var(--rev,0) * 1%),var(--brass) calc(var(--rev,0) * 1% + 8%));-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;display:inline-block;transform-origin:50% 55%;transition:transform .18s cubic-bezier(.2,.7,.2,1)}
/* under the pointer (or the finger) the words grow a very little; no reflow, the box does not move */
.cta-btn.near span,.cta-btn.plain:hover span,.cta-btn:focus-visible span{transform:scale(1.06)}
.cta-fx{position:absolute;pointer-events:none;opacity:0}
/* under the pointer the drawn border fades out while the same border, as grains, takes its place (cta-fx.mjs); it fades back in when the pointer leaves */
.cta-btn.near{border-color:transparent;transition:border-color .2s linear}
.cta-btn.fx .cta-fx{opacity:1}
/* keyboard focus: an outline and a brighter border. Reduced motion: only the border and the words change. */
.cta-btn:focus-visible{outline:2px solid var(--paper);outline-offset:4px;border-color:var(--name)}
.cta-btn.plain:hover,.cta-btn.plain:active{border-color:var(--name);--rev:100}
/* after the hero the call to action sits bottom right: a fine border, its words and the small graduated circle with its
   sighted point. No plate. Under the pointer the border and the circle turn into a cloud of points (cta-fx.mjs). */
/* 3. its lower edge is on the same line as the lower edge of the small instrument, bottom left */
#cta{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom) + var(--ring-bottom,0px));z-index:4;opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s,border-color .25s}
.hud-on #cta{opacity:1;visibility:visible;transition:opacity .5s,border-color .25s}
.at-end #cta{opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s}
html.still #cta,html.no-js #cta{display:none}
.hero .slogan{font-family:var(--display);font-weight:600;color:var(--brass);margin:.18em 0 0;line-height:1.05;
  font-size:clamp(30px,min(calc((var(--hx1) - var(--hx0)) / 13),6.2vh),60px);text-wrap:balance}
.hero .lead{font-size:clamp(18px,min(1.6vw,2.9vh),26px);line-height:1.4;margin:.7em 0 0;max-width:30em;text-wrap:pretty}
.hero .cta{margin:.8em 0 0;font-size:clamp(17px,min(1.4vw,2.6vh),22px)}
.cta a{text-decoration:underline;text-decoration-color:var(--brass);text-underline-offset:6px;display:inline-flex;align-items:center;min-height:44px}
/* the way up: a plain engraved word over a rising point, bottom centre */
.cue{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));z-index:2;margin:0;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:8px;transition:opacity .5s;pointer-events:none}
.cue-word{font:600 13px/1 var(--text);letter-spacing:.24em;text-transform:uppercase;color:var(--brass);text-shadow:var(--halo);white-space:nowrap}
.cue-line{position:relative;width:1px;height:44px;background:rgba(232,192,106,.55);order:-1}
.cue-line::after{content:"";position:absolute;left:-2px;bottom:0;width:5px;height:5px;border-radius:50%;background:var(--brass);animation:cue 2.4s ease-in-out infinite}
@keyframes cue{0%{transform:translateY(0);opacity:0}25%{opacity:1}100%{transform:translateY(-40px);opacity:0}}
.cue a{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:44px;text-decoration:none;pointer-events:auto}
.risen .cue{opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s}
.cue .coarse{display:none}
@media (pointer:coarse){.cue .fine{display:none}.cue .coarse{display:inline}}
/* Scroll cue, 10 Nov 2026 (operator): smaller and finer than the first version (13px word, 44px line).
   On a phone it sits on the right edge, vertical, so it takes no room from the text. */
.cue-word{font-size:10px;font-weight:500;letter-spacing:.2em;opacity:.75}
.cue-line{height:26px;background:rgba(232,192,106,.4)}
.cue-line::after{left:-1px;width:3px;height:3px;animation-name:cuesmall}
@keyframes cuesmall{0%{transform:translateY(0);opacity:0}25%{opacity:1}100%{transform:translateY(-24px);opacity:0}}
@media (max-width:700px),(pointer:coarse){
  .cue{left:auto;right:10px;bottom:calc(20px + env(safe-area-inset-bottom));transform:none}
  .cue a{min-width:0;gap:6px}
  .cue-word{writing-mode:vertical-rl}
}
/* the scene can be dragged with a mouse or a pen (touch keeps native scrolling) */
@media (pointer:fine){
  html.js:not(.still) body{cursor:grab}
  html.over-star body{cursor:pointer}
  html.dragging,html.dragging *{cursor:grabbing!important;user-select:none}
}
.copy.on .copy-in{cursor:auto}

/* chapter type: claim, then the plain paragraph, then the facts (proof and skills) */
.kicker{margin:0 0 .8em;font:600 clamp(13px,1vw,16px)/1.3 var(--text);letter-spacing:.18em;text-transform:uppercase;color:var(--brass)}
h2{font-family:var(--display);font-weight:600;color:var(--name);margin:0;text-wrap:balance;
  font-size:clamp(28px,min(2.4vw,4.4vh),52px);line-height:1.08;letter-spacing:.003em} /* sentence test: smaller so the longest of the three lines fits on two lines; before: clamp(38px,min(4.6vw,8.2vh),96px) */
h2:focus,h1:focus{outline:none}
.sub{font-size:clamp(18px,min(1.4vw,2.6vh),25px);line-height:1.55;margin:.9em 0 0;max-width:44em;text-wrap:pretty}
.station[data-zone=bottom] .sub,.station[data-zone=top] .sub{margin-left:auto;margin-right:auto}
/* the strong facts stand out: gold, with a fine engraved rule under them */
.facts b,.sub b{font-weight:400;color:var(--fact);text-decoration:underline;text-decoration-color:rgba(232,192,106,.38);text-decoration-thickness:1px;text-underline-offset:.28em}
.num{font-family:var(--display);font-weight:600!important;font-size:1.32em;line-height:1;color:var(--name)!important;text-decoration-color:rgba(232,192,106,.6)!important}
.facts{margin:1.2em 0 0;max-width:48em;font-size:clamp(16px,min(1.18vw,2.2vh),21px);line-height:1.5}
.facts>div{display:grid;grid-template-columns:7.2em 1fr;gap:0 1em;padding:.42em 0;border-top:1px solid rgba(232,192,106,.16)}
.facts>div[hidden]{display:none}
.facts dt{font:600 .7em/2.1 var(--text);letter-spacing:.18em;text-transform:uppercase;color:var(--brass-dim)}
.facts dd{margin:0;text-wrap:pretty}
.station[data-zone=bottom] .facts,.station[data-zone=top] .facts{margin-left:auto;margin-right:auto;text-align:left}
.figures{list-style:none;margin:1em 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 34px;font-size:clamp(15px,1.1vw,18px)}
.figures li{color:var(--paper)}
.figures .num{display:block;font-size:clamp(40px,min(3.6vw,6.6vh),68px);color:var(--fact)!important;text-decoration:none}
.ask{margin:1em 0 .3em;font:600 clamp(28px,min(2.8vw,5vh),48px)/1.1 var(--display);color:var(--brass)}
.contact{list-style:none;margin:.2em 0 0;padding:0;display:flex;flex-wrap:wrap;gap:0 28px}
.contact a{display:inline-flex;align-items:baseline;gap:.6em;min-height:44px;padding:.35em 0;font-size:clamp(17px,1.35vw,22px);
  text-decoration:underline;text-decoration-color:rgba(232,192,106,.55);text-underline-offset:6px}
.contact a span{min-width:5.4em;font-size:.76em;letter-spacing:.16em;text-transform:uppercase;color:var(--brass);text-decoration:none;display:inline-block}

/* the portrait inside the astrolabe ring: centred on the face, the whole head inside with margin */
.portrait{position:fixed;left:0;top:0;margin:0;z-index:1;opacity:0;will-change:transform,opacity;pointer-events:none}
.portrait .ring{position:absolute;left:0;top:0}
.portrait .photo{position:absolute;border-radius:50%;overflow:hidden;background:#061626}
.portrait img{position:absolute;display:block;max-width:none;height:auto}
/* engraved portrait (1254 px square, flat night-blue ground): head from y 35 to 800, face centre x 0.509 */
.portrait.engraved .photo{background:#061626}
.portrait.engraved img{width:100%;left:-.9%;top:6.2%}
/* unaltered photograph (896 x 1168): hair top y 65, chin 720, face centre x 478 */
.portrait.photo-mode .photo{background:#d9d9d9}
.portrait.photo-mode img{width:107.2%;left:-7.2%;top:0}

/* ---------------------------------------------------------------- the instrument: indicator and menu */
#hud{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:4}
#astro{position:relative;display:block;padding:0;margin:0;border:0;background:none;cursor:pointer;border-radius:50%;
  width:var(--hud-w,120px);height:var(--hud-h,150px);touch-action:manipulation;will-change:transform}
#astro .l{position:absolute;left:0;top:0;will-change:transform,opacity;pointer-events:none}
#astro:focus-visible{outline:none}
#astro:focus-visible::after{content:"";position:absolute;left:var(--ring-x,0);top:var(--ring-y,0);width:var(--ring-d,100px);height:var(--ring-d,100px);
  border-radius:50%;outline:2px solid var(--paper);outline-offset:4px}
#hud-label{position:absolute;left:calc(var(--hud-w,120px) + 12px);bottom:calc(var(--ring-bottom,0px) + 4px);margin:0;white-space:nowrap;
  font:600 13px/1.3 var(--text);letter-spacing:.16em;text-transform:uppercase;color:var(--brass);opacity:0;text-shadow:var(--halo);pointer-events:none}
#chart{position:absolute;left:0;bottom:calc(var(--hud-h,150px) + 12px);min-width:262px;padding:14px 18px 12px 16px;
  background:rgba(7,11,17,.96);border:1px solid rgba(232,192,106,.4)}
#chart[hidden]{display:none}
.chart-title{margin:0 0 6px;font:600 12px/1.3 var(--text);letter-spacing:.18em;text-transform:uppercase;color:var(--brass-dim)}
#chart ol{list-style:none;margin:0;padding:0;position:relative}
#chart li{position:relative}
#chart a{display:flex;align-items:center;gap:14px;min-height:44px;color:var(--paper);text-decoration:none;font-size:16px}
#chart a:hover span{text-decoration:underline;text-decoration-color:var(--brass);text-underline-offset:4px}
#chart i{flex:none;width:11px;height:11px;border-radius:50%;border:1px solid #8c949c;background:var(--void);position:relative;z-index:1}
#chart li:nth-child(odd) i{margin-left:14px}
#chart li.seen i{border-color:var(--brass);background:#3a2f18}
#chart li.here i{border-color:#fff2d2;background:var(--brass)}
#chart li.here a{color:var(--name)}
.chart-line{position:absolute;left:16px;top:28px;width:40px;height:calc(100% - 40px);overflow:visible}

/* ---------------------------------------------------------------- phone */
@media (max-aspect-ratio:19/20){
  :root{--seg:150lvh;--ray:16vw}
  .station[data-zone] .copy{left:16px;right:16px;width:auto}
  /* phone (round 14): the instrument above, the words centred below it, the button at the bottom */
  .copy.hero{left:16px;right:16px;width:auto;justify-content:flex-end;top:0;bottom:calc(92px + env(safe-area-inset-bottom))}
  .hero .copy-in{width:100%;text-align:center}
  .hero .invite{margin-left:auto;margin-right:auto}
  .hero h1{font-size:clamp(29px,8.2vw,40px);line-height:1.06}
  .hero .invite{font-size:clamp(16px,4.3vw,18px);line-height:1.48;margin-top:.55em}
  /* on a phone it sits just above the line of the chapter name, so the two never meet */
  .cta-btn{min-height:48px;padding:0 8px 0 16px;gap:10px}
  /* round 21 (operator): the kept-at-hand button and the instrument are smaller, so they leave room for the words;
     the chapter name sits on the bottom line, beside the instrument, and wraps before it reaches the button */
  #cta{min-height:34px;padding:0 6px 0 11px;gap:7px;font-size:11px;letter-spacing:.1em;border-radius:17px}
  #cta svg{width:22px;height:22px}
  #hud-label{bottom:calc(var(--ring-bottom,0px) + 2px);max-width:calc(100vw - var(--hud-w,60px) - 190px);white-space:normal;line-height:1.25}
  .station[data-zone=left] .copy,.station[data-zone=right] .copy{top:15lvh;bottom:12lvh}
  .station[data-zone=bottom] .copy{top:24lvh;bottom:15lvh}
  .station[data-zone=top] .copy{top:5lvh;bottom:25lvh}
  .station[data-zone=finale] .copy{top:43lvh;bottom:2lvh;justify-content:flex-start}
  .station[data-zone=bottom] .copy-in,.station[data-zone=top] .copy-in{text-align:left}
  .kicker{margin-bottom:.5em}
  h2{font-size:clamp(29px,8.2vw,40px);line-height:1.06}
  .sub{font-size:clamp(16px,4.3vw,18px);line-height:1.48;margin-top:.55em}
  .facts{font-size:clamp(14.5px,3.9vw,16px);margin-top:.7em;line-height:1.42}
  .facts>div{grid-template-columns:1fr;padding:.3em 0}
  .facts dt{line-height:1.6}
  .figures{gap:2px 22px;margin-top:.5em}.figures .num{font-size:clamp(28px,8vw,36px)}
  .ask{font-size:clamp(24px,6.8vw,30px);margin-top:.5em}
  .contact a{font-size:15.5px;padding:.05em 0}
  .contact a span{min-width:5.8em}
  #hud-label{font-size:11px;letter-spacing:.1em}
  /* the open menu never sits on top of words: the words step back while it is open */
  html.menu-open .copy{opacity:.08;transition:opacity .25s}
  #chart{min-width:min(262px,calc(100vw - 32px))}
}

/* ---------------------------------------------------------------- still: reduced motion or no script */
html.still,html.no-js{scroll-behavior:auto}
html.still .station,html.no-js .station{height:auto;padding:12vh max(16px,8vw) 6vh}
html.still #top,html.no-js #top{height:100lvh;padding:0}
html.still .copy.hero,html.no-js .copy.hero{position:absolute}
html.still .copy:not(.hero),html.no-js .copy:not(.hero){position:static;display:block;pointer-events:auto;width:auto}
html.still .copy-in,html.no-js .copy-in{opacity:1!important;transform:none!important}
html.still .station[data-zone] .copy-in,html.no-js .station[data-zone] .copy-in{text-align:left;margin:0;max-width:820px}
html.still .station .sub,html.no-js .station .sub,html.still .station .facts,html.no-js .station .facts{margin-left:0}
html.still .station:not(#top),html.no-js .station:not(#top){border-left:1px solid rgba(232,192,106,.45);margin-left:max(26px,calc(8vw + 6px));padding-left:max(24px,4vw)}
html.still .mark,html.no-js .mark{display:block;position:absolute;left:-15px;top:calc(12vh + 4px);width:29px;height:29px;fill:#f6dc9a}
html.still #stage,html.no-js #stage{position:absolute;height:100lvh}
html.still #space,html.no-js #space{display:none}
html.still .portrait,html.no-js .portrait{position:relative;opacity:1;width:min(70vw,340px);height:min(70vw,340px);margin:0 0 28px}
html.no-js .portrait .photo{inset:9%}
html.no-js .portrait img{width:100%;left:-.9%;top:6.2%}
html.still .cue,html.no-js .cue{display:none}
html.no-js #hud,html.still #hud{display:none}
