/* Box page · storyboards SB-P03a + SB-P03b (v3, approved 25 Nov 2026). Ivory chapters, one night chapter (Forêt → Ebony).
   The 3D canvas sits between the page ground and the words: the giant name is painted under it (z -1), the words over it. */
html:has(body.page-box) { background: var(--ivory); }
body.page-box { background: var(--ivory); color: var(--ebony); transition: background-color .9s var(--ease); }
body.page-box.is-night { background: #0B0B0B; color: var(--ivory); }
.page-box .stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.page-box .stage.is-on { opacity: 1; }
.loader--light { background: var(--ivory); }
.loader--light .loader__net line { stroke: #7A5C2A; }
.loader--light .loader__pct { color: #5E574D; }

.bx { position: relative; height: calc(1550vh + 100vh); }
.bx__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.bx__hit { position: absolute; z-index: 3; left: 26%; right: 26%; top: 16%; bottom: 20%; cursor: grab; outline: none; border-radius: 12px; touch-action: pan-y; }
.bx__hit.is-armed { touch-action: none; }
.bx__hit.is-grabbing { cursor: grabbing; }
.bx__hit:focus-visible { box-shadow: inset 0 0 0 1px rgba(122, 92, 42, .55); }

/* the giant French name, under the box, drifting slower than it (A9: 18–22vw at 8 %) */
.bx__giant { position: absolute; z-index: -1; left: 50%; top: 50%; font: 300 clamp(120px, 20vw, 420px)/.8 var(--f-display); letter-spacing: -.02em;
  color: var(--ebony); opacity: .08; white-space: nowrap; transform: translate3d(-50%, calc(-50% + var(--drift, 0px)), 0); pointer-events: none; }
.is-night .bx__giant { color: var(--ivory); opacity: .05; }
.bx__guide { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(64vh, 46vw); aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(141, 132, 120, .45); transform: translate(-50%, -50%) rotate(var(--guide, 0deg)); transition: opacity .6s var(--ease); pointer-events: none; }
.bx__guide::after { content: ''; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--gold-text, #7A5C2A); }
.bx__pin:not([data-ch="1"]):not([data-ch="2"]) .bx__guide { opacity: 0; }
.bx__rail { position: absolute; z-index: 2; left: var(--m); top: 50%; color: var(--stone-shade, #5E574D); }
.bx__count { position: absolute; z-index: 2; right: var(--m); top: calc(var(--nav-top) + var(--nav-h) + 24px); color: var(--stone-shade, #5E574D); }
.is-night .bx__rail, .is-night .bx__count { color: var(--stone); }

/* chapter words: one block at a time; the old one leaves before the new one enters */
.bx__ch { position: absolute; z-index: 2; opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0);
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s linear .45s; }
.bx__ch.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease) .35s, transform .8s var(--ease) .35s, visibility 0s linear 0s; }
.bx__ch .eyebrow { color: var(--stone-shade, #5E574D); }
.bx__ch--name { left: var(--m); bottom: 12vh; max-width: 36ch; }
.bx__h1 { margin: 10px 0 14px; font: 300 clamp(44px, 6.2vw, 104px)/.95 var(--f-display); letter-spacing: -.01em; }
.bx__lora { font: italic 400 clamp(16px, 1.35vw, 21px)/1.5 var(--f-accent); color: #3a352f; max-width: 34ch; }
.bx__ch--side { right: var(--m); top: 50%; transform: translate3d(0, calc(-50% + 14px), 0); width: min(30vw, 420px); display: grid; gap: 10px; }
.bx__ch--side.is-on { transform: translate3d(0, -50%, 0); }
.bx__ch--side .eyebrow + .bx__p { margin-bottom: 18px; }
.bx__p { font: 400 clamp(15px, 1.1vw, 18px)/1.6 var(--f-ui); color: #3a352f; }
.bx__ch--front { left: var(--m); top: 50%; transform: translate3d(0, calc(-50% + 14px), 0); }
.bx__ch--front.is-on { transform: translate3d(0, -50%, 0); }
.bx__swatches { display: grid; gap: 14px; }
.bx__sw { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw);
  box-shadow: 0 0 0 1px rgba(11, 11, 11, .25), 0 6px 18px -8px rgba(11, 11, 11, .5); transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.bx__sw:hover, .bx__sw:focus-visible { transform: scale(1.08); }
.bx__sw.is-on, .bx__sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px #7A5C2A; }
.bx__ch--hold { left: 50%; bottom: 9vh; transform: translate3d(-50%, 14px, 0); display: grid; justify-items: center; gap: 12px; }
.bx__ch--hold.is-on { transform: translate3d(-50%, 0, 0); }
.bx__ch--hold .chip { color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .28); background: rgba(243, 237, 224, .7); }   /* B82: it read as a disabled grey pill on the light page */
.bx__ch--hold .chip:hover { box-shadow: inset 0 0 0 1px #7A5C2A; }
.bx__holdring { position: relative; width: 96px; height: 96px; border: 0; border-radius: 50%; background: rgba(243, 237, 224, .72); color: #7A5C2A; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; touch-action: none; user-select: none; }
.bx__holdring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bx__holdring span { position: relative; font: 500 11px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ebony); max-width: 64px; text-align: center; }
.bx__ch--finish { left: 50%; bottom: 8vh; transform: translate3d(-50%, 14px, 0); display: grid; justify-items: center; gap: 12px; width: min(92vw, 980px); }
.bx__ch--finish.is-on { transform: translate3d(-50%, 0, 0); }
.bx__chips { justify-content: center; flex-wrap: wrap; }
.bx__chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .22); background: rgba(243, 237, 224, .72); }
.bx__chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgba(11, 11, 11, .25); }
.bx__chip[aria-checked="true"] { background: var(--ebony); color: var(--ivory); box-shadow: none; }
.bx__small { font: 400 13px/1.4 var(--f-ui); color: #5E574D; }
.bx__ch--night { inset: 0; display: grid; align-content: center; justify-items: center; pointer-events: none; }
.bx__night { font: 300 clamp(64px, 13vw, 240px)/.86 var(--f-display); letter-spacing: .06em; color: var(--ivory); opacity: .9; mix-blend-mode: normal; }
.bx__night--b { color: var(--gold); opacity: .55; }
.bx__ch--calls { inset: 0; pointer-events: none; }
.bx__calls { position: absolute; left: var(--m); top: 50%; transform: translateY(-50%); display: grid; gap: 22px; width: min(30vw, 380px); pointer-events: auto; list-style: none; margin: 0; padding: 0; }
.bx__calls li { display: grid; gap: 4px; padding: 12px 16px; border-radius: 10px; background: rgba(243, 237, 224, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bx__calls b { font: 500 12px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #7A5C2A; }
.bx__calls span { font: 400 14px/1.45 var(--f-ui); color: #2b2723; }
.bx__leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bx__leaders path { fill: none; stroke: #7A5C2A; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .4s var(--ease); }
.bx__leaders circle { fill: #7A5C2A; opacity: 0; transition: opacity .3s var(--ease) .3s; }
.bx__pin[data-ch="8"] .bx__leaders path { stroke-dashoffset: 0; }
.bx__pin[data-ch="8"] .bx__leaders circle { opacity: 1; }

/* part labels (chapter 5), placed on their parts */
.bx__parts { position: absolute; inset: 0; z-index: 2; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.bx__parts li { position: absolute; left: 0; top: 0; transform: translate3d(var(--x, -999px), var(--y, -999px), 0); opacity: 0; transition: opacity .4s var(--ease);
  font: 500 12px/1.35 var(--f-ui); color: var(--ebony); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: rgba(243, 237, 224, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(11, 11, 11, .12); }
.bx__parts li small { display: block; font-weight: 400; color: #5E574D; }
.bx__parts li.is-on { opacity: 1; }

.bx__play { position: absolute; z-index: 3; right: var(--m); bottom: 5vh; display: grid; justify-items: end; gap: 10px; }
.bx__play .chip { color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .22); background: rgba(243, 237, 224, .6); }
.is-night .bx__play .chip { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(243, 237, 224, .3); background: rgba(11, 11, 11, .4); }
/* B74: "Play in 3D" was ivory on the ivory page (an empty-looking pill); dark on the light chapters, light at night */
.bx__play .pill--sec { color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .28); background: rgba(243, 237, 224, .7); }
.is-night .bx__play .pill--sec { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(243, 237, 224, .3); background: rgba(11, 11, 11, .4); }
.bx__skip { position: fixed; z-index: 40; left: var(--m); bottom: 20px; min-height: 40px; color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .25); background: rgba(243, 237, 224, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .4s var(--ease); }
.is-past-story .bx__skip { opacity: 0; pointer-events: none; }
.is-night .bx__skip { color: var(--ivory); background: rgba(11, 11, 11, .45); box-shadow: inset 0 0 0 1px rgba(243, 237, 224, .3); }

/* the sections after the story */
.bxs { position: relative; z-index: 1; padding: 14vh var(--m); background: var(--ivory); color: var(--ebony); }
.bxs__h2 { font: 300 clamp(36px, 4.4vw, 72px)/1 var(--f-display); margin: 0 0 6vh; max-width: 18ch; }
.bxs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4vw; }
.bxs__grid p:not(.eyebrow) { font: 400 15px/1.65 var(--f-ui); color: #3a352f; margin-top: 10px; }
.bxs .eyebrow { color: #5E574D; }
.bxs--specs { display: grid; grid-template-columns: 2fr 1fr; gap: 6vw; align-items: start; }
.bxs--specs .bxs__h2 { grid-column: 1 / -1; margin-bottom: 0; }
.bxs__specs { display: grid; margin: 0; border-top: 1px solid rgba(11, 11, 11, .14); }
.bxs__specs > div { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(11, 11, 11, .14); }
.bxs__specs dt { font: 500 12px/1.5 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #5E574D; }
.bxs__specs dd { margin: 0; font: 400 16px/1.55 var(--f-ui); }
.bxs__specs small { color: #5E574D; }
.bxs__size { display: grid; gap: 18px; justify-items: start; padding: 28px; border-radius: 14px; background: var(--ivory-raise, #ece4d4); }
.bxs__lead { font: 300 clamp(26px, 2.4vw, 40px)/1.1 var(--f-display); }
.bxs__size .pill--sec, .bxs--more .pill--sec, .nf .pill--sec { color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .3); }
  padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(11, 11, 11, .2); background: #fbf8f1; }
.bxs__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.bxs__card { position: relative; display: grid; gap: 8px; padding: 26px 24px 54px; border-radius: 14px; background: var(--ivory-raise, #ece4d4); color: var(--ebony); text-decoration: none;
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.bxs__card:hover, .bxs__card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 40px -24px rgba(11, 11, 11, .45); }
.bxs__card b { font: 400 clamp(26px, 2.2vw, 36px)/1 var(--f-display); }
.bxs__card span:not(.eyebrow) { font: 400 14px/1.45 var(--f-ui); color: #3a352f; }
.bxs__card i { position: absolute; right: 22px; bottom: 20px; font-style: normal; color: #7A5C2A; }
.page-box .foot { position: relative; z-index: 1; }

/* 404 */
.nf { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 22px; padding: 18vh var(--m) 10vh; }
.nf__h1 { font: 300 clamp(40px, 6vw, 96px)/1 var(--f-display); max-width: 16ch; }
.nf__p { font: 400 17px/1.6 var(--f-ui); color: var(--stone); max-width: 46ch; }
.nf__go { display: flex; gap: 14px; flex-wrap: wrap; }
.page-404 .nf .pill--sec { color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(243, 237, 224, .35); }

@media (max-width: 767px), (max-aspect-ratio: 23/20) {
  .bx__hit { left: 4%; right: 4%; top: 12%; bottom: 48%; }
  .bx__giant { top: 30%; }
  .bx__guide { top: 30%; width: 78vw; }
  .bx__ch--name { bottom: 14vh; right: var(--m); }
  .bx__h1 { font-size: 64px; }
  .bx__ch--side { left: var(--m); right: var(--m); top: auto; bottom: 12vh; width: auto; transform: translate3d(0, 14px, 0); }
  .bx__ch--side.is-on { transform: none; }
  .bx__ch--front { top: auto; bottom: 12vh; left: var(--m); right: var(--m); transform: translate3d(0, 14px, 0); }
  .bx__ch--front.is-on { transform: none; }
  .bx__swatches { grid-auto-flow: column; justify-content: start; }
  .bx__ch--hold { bottom: 14vh; }
  .bx__night { font-size: 48px; }
  .bx__calls { top: auto; bottom: 10vh; transform: none; width: auto; right: var(--m); gap: 8px; }
  .bx__calls li { padding: 8px 12px; }
  .bx__leaders { display: none; }
  .bx__play { left: var(--m); right: var(--m); bottom: 3vh; justify-items: center; }
  .bx__play .five__chips { justify-content: center; }
  /* B73, B76-B79: on a touch phone the four move chips come with "Play in 3D" (they sat on the words, the swatches,
     the hold ring, the finish list and the callouts); while you play, the chapter's words step aside */
  .bx__play:has(.five__play:not([hidden])) .five__chips { display: none; }
  .bx__pin.is-playing .bx__ch.is-on { opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s; }
  .bx__skip { bottom: auto; top: calc(var(--nav-top) + var(--nav-h) + 12px); min-height: 36px; }
  .bxs__grid, .bxs__cards { grid-template-columns: 1fr; }
  .bxs--specs { grid-template-columns: 1fr; }
  .bxs__specs > div { grid-template-columns: 1fr; gap: 6px; }
  .enq { grid-template-columns: 1fr; }
}
.page-box .eq__ask { color: #8a6d3b; font-size: .92em; }
