/* thechest.ai — one page: the living chest (hero), then a horizontal presentation, slide after slide.
   The look follows the game: dark room, warm gold serif titles (Cormorant Garamond), the game's red/dark buttons and divider,
   villager speech in the game's dark ornamented panel. Pictures are path-traced frames of the same scene (Blender Cycles). */
:root {
  --bg: #07060a; --panel: #120d0a; --gold: #f0d9a3; --gold-deep: #c9a86a; --text: #ede3cc; --muted: #a8a29a; --line: #3a2d22;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font: 400 18px/1.5 Gelasio, Georgia, serif; }
a { color: inherit; }

/* ---------------------------------------------------------------- hero (clone of concept 2, pixel coordinates in a 1672×941 stage) */
.hero { position: relative; height: 100svh; min-height: 480px; overflow: hidden; }
.stage { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; color: #efe6d6; }
.stage .bg { position: absolute; inset: 0; background: url(hero/assets/scene.webp) 0 0 / 1672px 941px no-repeat; }
.stage .live { position: absolute; inset: 0; width: 1672px; height: 941px; opacity: 0; transition: opacity .6s ease; }
html.live-ready .stage .live { opacity: 1; }
.stage .logo { position: absolute; left: 55px; top: 27px; font: 700 15.2px/1 Gelasio, Georgia, serif; color: #f1ead9; text-decoration: none; }
.stage .nav a { position: absolute; top: 32px; font: 400 17px/1 Gelasio, Georgia, serif; color: #f1ead9; text-decoration: none; }
.stage .nav .n1 { left: 1432px; } .stage .nav .n2 { left: 1567px; }
.stage h1 { position: absolute; left: 58px; top: 162px; margin: 0; font: 500 101px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -0.5px;
  color: var(--gold); text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 26px rgba(255, 170, 70, .18); }
.rule { display: block; background: url(assets/ui/divider.webp) left center / contain no-repeat; filter: sepia(.5) saturate(1.4) brightness(1.1); }
.stage .rule { position: absolute; left: 60px; top: 262px; width: 400px; height: 18px; }
.stage .pitch { position: absolute; left: 60px; top: 283px; width: 520px; white-space: nowrap; margin: 0; font: 500 22px/23.5px "Cormorant Garamond", Georgia, serif;
  color: var(--text); text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .7); }
.btn { display: flex; align-items: center; justify-content: center; font: 400 22px/1 Gelasio, Georgia, serif; color: #f4ead4; text-decoration: none;
  padding-top: 5px; background: url(assets/ui/btn-red.webp) center / 100% 100% no-repeat; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); border: 0; cursor: pointer; }
.btn.dark { background-image: url(assets/ui/btn-dark.webp); }
.btn:hover { filter: brightness(1.12); }
.stage .btn { position: absolute; left: 47px; width: 335px; height: 67px; }
.stage .b1 { top: 413px; } .stage .b2 { top: 490px; }   /* four lines of pitch since 28.09 (author's text): 12 px lower than concept 2 */
.partners { font: 400 16.5px/1 Gelasio, Georgia, serif; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.partners:hover { color: var(--text); }
.stage .partners { position: absolute; left: 60px; top: 581px; }
/* the menu keeps to the right edge of the window (the stage is cropped on the right when the window is narrower than 16:9);
   size and height follow the stage scale, as in the concept (x 1432/1567 of 1672, y 32) */
.hnav { position: absolute; z-index: 3; top: calc(var(--y, 0px) + 32px * var(--s, 1)); right: calc(55px * var(--s, 1)); display: flex; gap: calc(34px * var(--s, 1)); }
.hnav a { font: 400 calc(17px * var(--s, 1))/1 Gelasio, Georgia, serif; color: #f1ead9; text-decoration: none; }
.hnav a:hover { color: var(--gold); }
.m, .m-top { display: none; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 400 13px/1 Gelasio, Georgia, serif; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase; opacity: .7; animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { transform: translate(-50%, 6px); opacity: .35; } }

/* ---------------------------------------------------------------- the presentation: vertical scroll drives a horizontal track */
.deck { position: relative; }
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.track { display: flex; height: 100%; will-change: transform; }
.slide { position: relative; flex: 0 0 100vw; height: 100svh; overflow: hidden; }
.slide .pic { position: absolute; inset: 0; background: center / cover no-repeat; }
.slide .shade { position: absolute; inset: 0; pointer-events: none; }
.copy { position: absolute; z-index: 3; max-width: 520px; }
.copy .kicker { font: 500 12px/1 system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 18px; }
.copy h2 { margin: 0; font: 500 clamp(46px, 5.2vw, 84px)/1 "Cormorant Garamond", Georgia, serif; color: var(--gold); letter-spacing: -.3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 24px rgba(255, 170, 70, .15); }
.copy .rule { width: 72%; height: 16px; margin: 14px 0 20px; }
.copy p { margin: 0 0 14px; font: 500 clamp(19px, 1.45vw, 23px)/1.42 "Cormorant Garamond", Georgia, serif; color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.copy .small { font: 400 14px/1.5 Gelasio, Georgia, serif; color: var(--muted); }
/* text appears as its slide comes in */
.slide .copy > *, .slide .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.slide.in .copy > *, .slide.in .reveal { opacity: 1; transform: none; }
.slide.in .copy > *:nth-child(2) { transition-delay: .08s; } .slide.in .copy > *:nth-child(3) { transition-delay: .16s; }
.slide.in .copy > *:nth-child(4) { transition-delay: .24s; } .slide.in .copy > *:nth-child(5) { transition-delay: .32s; }
.dots { position: absolute; z-index: 9; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 10px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold-deep); background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: var(--gold); }

/* the game's dark ornamented panel (villager speech, memory pages) */
.panel { position: relative; padding: 34px 40px 30px; border: 36px solid transparent; border-image: url(assets/ui/panel.webp) 120 fill / 36px stretch;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.panel .who { font: 700 22px/1.2 Gelasio, Georgia, serif; color: var(--gold); margin: 0 0 8px; }
.panel .said { font: 500 24px/1.38 "Cormorant Garamond", Georgia, serif; color: var(--text); margin: 0; }
.panel .you { font: 400 italic 17px/1.4 Gelasio, Georgia, serif; color: var(--muted); margin: 0 0 16px; }
.voice { display: inline-flex; gap: 3px; align-items: center; height: 16px; margin-left: 10px; vertical-align: -2px; }
.voice i { display: block; width: 3px; height: 100%; background: var(--gold-deep); border-radius: 2px; animation: talk 1s ease-in-out infinite; }
.voice i:nth-child(2) { animation-delay: .15s; } .voice i:nth-child(3) { animation-delay: .3s; } .voice i:nth-child(4) { animation-delay: .45s; }
@keyframes talk { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* slide: the village (day and night from above) */
.s-village .pic.night { opacity: 0; animation: nightfall 16s ease-in-out infinite; }
@keyframes nightfall { 0%, 30% { opacity: 0; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
.s-village .clouds { position: absolute; inset: 0; pointer-events: none; }
.s-village .clouds { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 55% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 60% 70% at 55% 50%, #000 55%, transparent 100%); }
.s-village .clouds div { position: absolute; inset: -4%; background-size: 88vw 88vw; }
.s-village .cloud-shadow { filter: blur(5px); }
.s-village .cloud-wisp { opacity: .32; filter: blur(3px); }
.s-village .shade { background: linear-gradient(90deg, rgba(7, 6, 10, .88) 0%, rgba(7, 6, 10, .55) 34%, rgba(7, 6, 10, 0) 58%); }
.s-village .copy { left: 7vw; top: 50%; transform: translateY(-50%); }
.clock { font: 400 13px/1 system-ui, sans-serif; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* slide: talk */
.s-talk .shade { background: linear-gradient(90deg, rgba(7, 6, 10, 0) 38%, rgba(7, 6, 10, .86) 62%, rgba(7, 6, 10, .95) 100%); }
.s-talk .copy { right: 6vw; top: 12vh; }
.s-talk .panel { position: absolute; z-index: 3; left: 5vw; top: 9vh; width: min(600px, 44vw); }   /* the dark upper left of the frame; the old man stays clear */

/* slide: memory */
.s-memory .pic { filter: blur(6px) brightness(.45); transform: scale(1.05); }
.s-memory .copy { left: 7vw; top: 14vh; }
.s-memory .panel { position: absolute; z-index: 3; right: 6vw; top: 13vh; width: min(620px, 46vw); }   /* no transform: .reveal animates it */
.s-memory .panel h3 { margin: 0 0 12px; font: 500 30px/1 "Cormorant Garamond", Georgia, serif; color: var(--gold); }
.s-memory .panel ol { list-style: none; margin: 0; padding: 0; }
.s-memory .panel li { font: 500 20px/1.35 "Cormorant Garamond", Georgia, serif; color: var(--text); padding: 7px 0; border-top: 1px solid rgba(201, 168, 106, .18); }
.s-memory .panel li b { display: block; font: 400 12px/1.3 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 3px; }
.s-memory .panel li.kept { color: var(--gold); }

/* slide: gifts (3D on the desk) */
.s-gifts { background: radial-gradient(ellipse 70% 60% at 64% 60%, #2a1a10 0%, #120b07 60%, var(--bg) 100%); }
.s-gifts canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-gifts .copy { left: 7vw; top: 50%; transform: translateY(-50%); }
.s-gifts .chron { list-style: none; padding: 0; margin: 18px 0 0; }
.s-gifts .chron li { font: 500 18px/1.35 "Cormorant Garamond", Georgia, serif; color: var(--text); padding: 6px 0 6px 14px; border-left: 2px solid var(--gold-deep); margin-bottom: 8px; }
.s-gifts .chron li b { color: var(--gold); font-weight: 600; }
.gift-name { position: absolute; z-index: 4; font: 400 13px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
  transform: translate(-50%, 0); pointer-events: none; white-space: nowrap; }

/* slide: how it is made */
.s-how { background: var(--bg); }
.s-how .pic { left: 30%; filter: brightness(.6); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
.s-how .shade { background: linear-gradient(0deg, rgba(7, 6, 10, .95) 0%, rgba(7, 6, 10, .6) 38%, rgba(7, 6, 10, 0) 60%); }
.s-how .copy { left: 7vw; top: 12vh; max-width: 600px; }
.s-how .copy p:last-child { max-width: 34vw; }
/* how a reply is born: four steps in a panel on the right */
.flow { position: absolute; z-index: 3; right: 6vw; top: 11vh; width: min(640px, 44vw); padding: 26px 30px 22px;
  background: rgba(10, 8, 8, .78); border: 1px solid rgba(201, 168, 106, .4); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.flow h3 { margin: 0 0 14px; font: 500 12px/1 system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.flow ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.flow li { counter-increment: step; position: relative; padding-left: 46px; font: 500 17.5px/1.38 "Cormorant Garamond", Georgia, serif; color: var(--text); }
.flow li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold-deep); color: var(--gold); font: 500 17px/28px "Cormorant Garamond", Georgia, serif; text-align: center; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: -12px; width: 1px; background: rgba(201, 168, 106, .3); }
.flow li b { display: block; font: 600 20px/1.2 "Cormorant Garamond", Georgia, serif; color: var(--gold); margin-bottom: 2px; }
.facts-line { position: absolute; z-index: 3; left: 7vw; right: 7vw; bottom: 5vh; margin: 0; font: 500 12px/1.4 system-ui, sans-serif;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.cols { position: absolute; z-index: 3; left: 7vw; right: 7vw; bottom: 12vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; }
.cols .col { border-top: 1px solid rgba(201, 168, 106, .35); padding-top: 16px; }
.cols h3 { margin: 0 0 8px; font: 500 30px/1.05 "Cormorant Garamond", Georgia, serif; color: var(--gold); }
.cols p { margin: 0; font: 500 19px/1.4 "Cormorant Garamond", Georgia, serif; color: var(--text); }

/* slides: partners and notify */
.s-partners .pic, .s-beta .pic { filter: brightness(.3) saturate(.85) blur(2px); transform: scale(1.02); }
.s-partners .copy, .s-beta .copy { left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 640px; text-align: center; }
.s-partners .copy > p, .s-beta .copy > p { text-wrap: balance; }
.s-partners .copy .rule, .s-beta .copy .rule { margin-left: auto; margin-right: auto; background-position: center; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; text-align: left; margin: 10px auto 24px; max-width: 520px;
  font: 400 16px/1.45 Gelasio, Georgia, serif; }
.facts dt { color: var(--gold-deep); } .facts dd { margin: 0; color: var(--text); }
form.notify { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
form.notify input[type=email], form.notify select { width: min(420px, 86vw); padding: 13px 16px; font: 400 18px/1 Gelasio, Georgia, serif; color: var(--text);
  background: rgba(10, 7, 5, .85); border: 1px solid #6d5a44; border-radius: 2px; }
form.notify .btn { width: 300px; height: 60px; }
form.notify .msg { min-height: 1.4em; font: 400 15px/1.4 Gelasio, Georgia, serif; color: var(--gold); }
.hp { position: absolute; left: -9999px; }
footer { position: absolute; z-index: 3; left: 0; right: 0; bottom: 48px; text-align: center; font: 400 13px/1.5 Gelasio, Georgia, serif; color: var(--muted); }

/* ---------------------------------------------------------------- phone / portrait: hero as before, slides one under another */
@media (max-aspect-ratio: 4/3) {
  .stage .logo, .stage .nav, .stage h1, .stage .pitch, .stage .btn, .stage .partners, .stage .rule, .hnav { display: none; }
  .m-top { display: flex; position: absolute; left: 0; right: 0; top: 0; justify-content: space-between; padding: 18px 20px; z-index: 3;
    background: linear-gradient(180deg, rgba(7, 6, 10, .75), rgba(7, 6, 10, 0)); font: 400 15px/1 Gelasio, Georgia, serif; }
  .m-top a { color: #f1ead9; text-decoration: none; margin-left: 18px; } .m-top b { font-weight: 700; color: #f1ead9; }
  .m { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center;
    background: linear-gradient(180deg, rgba(7, 6, 10, 0) 0%, rgba(7, 6, 10, .78) 22%, rgba(7, 6, 10, .92) 100%); z-index: 3; }
  .m h1 { margin: 0 0 4px; font: 500 60px/1 "Cormorant Garamond", Georgia, serif; color: var(--gold); }
  .m .rule { margin: 0 auto 12px; width: 70%; height: 14px; background-position: center; }
  .m p { margin: 0 auto 16px; font: 500 18.5px/1.3 "Cormorant Garamond", Georgia, serif; color: var(--text); text-shadow: 0 1px 2px #000; }
  .m .btn { width: min(300px, 86vw); height: calc(min(300px, 86vw) / 5); margin: 0 auto 10px; font-size: 19px; }
  .scroll-hint { display: none; }
  .deck { height: auto !important; }
  .pin { position: static; height: auto; overflow: visible; }
  .track { display: block; transform: none !important; }
  .slide { height: auto; min-height: 100svh; padding: 60vw 20px 48px; }
  .slide .pic { height: 70vw; bottom: auto; }
  .slide .shade { background: linear-gradient(180deg, rgba(7, 6, 10, 0) 0%, rgba(7, 6, 10, 0) 50vw, var(--bg) 70vw) !important; }
  .copy, .s-village .copy, .s-talk .copy, .s-memory .copy, .s-gifts .copy, .s-how .copy, .s-partners .copy, .s-beta .copy { position: relative; left: auto; right: auto; top: auto;
    transform: none; max-width: none; text-align: left; }
  .s-partners .copy, .s-beta .copy { text-align: center; }
  .s-talk .panel, .s-memory .panel { position: relative; left: auto; right: auto; bottom: auto; top: auto; transform: none; width: auto; margin-top: 24px; }
  .s-gifts { padding-top: 90vw; } .s-gifts canvas { height: 90vw; bottom: auto; }
  .cols { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; margin-top: 24px; }
  .flow { position: relative; right: auto; top: auto; width: auto; margin-top: 24px; padding: 20px 18px; }
  .facts-line { position: relative; left: auto; right: auto; bottom: auto; margin-top: 24px; }
  .s-how .copy p:last-child { max-width: none; }
  .s-how, .s-partners, .s-beta { padding-top: 64px; }
  .s-how .pic, .s-partners .pic, .s-beta .pic { height: 100%; }
  .dots { display: none; }
  .gift-name { display: none; }
  footer { position: relative; bottom: auto; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-village .pic.night { animation: none; } .voice i, .scroll-hint { animation: none; }
  .slide .copy > *, .slide .reveal { transition: none; opacity: 1; transform: none; }
}

.said .w { opacity: .12; transition: opacity .35s ease; }
.said.speaking .w { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .said .w { opacity: 1; } }

/* keyboard focus: a thin gold ring, only when navigating by keys */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:focus-visible { outline-offset: -6px; }

/* the one-step jump between far slides */
.curtain { position: fixed; inset: 0; z-index: 50; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.curtain.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .curtain { transition: none; } }

/* the live first-screen scene behind a slide: the one WebGL canvas moves into the slide on screen (hero/live.js). Darkened by an
   overlay, not by a filter: a CSS filter over a canvas redraws the whole screen every frame */
.pic.live-host { filter: none !important; transform: none !important; }
.pic.live-host > canvas.live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.pic.live-host::after { content: ""; position: absolute; inset: 0; background: rgba(7, 6, 10, .72); }
.s-how .pic.live-host::after { background: rgba(7, 6, 10, .45); }
/* close-ups (Voice, Memory): the fire out of frame breathes on them — an overlay whose opacity alone moves (cheap) */
.s-talk .pic::after, .s-memory .pic::after, .pic.fire::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 30% 100%, rgba(255, 150, 60, .5), transparent 72%); mix-blend-mode: screen;
  animation: firelight 2.9s ease-in-out infinite; }
@keyframes firelight { 0%, 100% { opacity: .4; } 12% { opacity: .85; } 21% { opacity: .5; } 37% { opacity: 1; } 49% { opacity: .55; } 66% { opacity: .9; } 81% { opacity: .45; } 90% { opacity: .75; } }
.s-talk .pic, .s-memory .pic { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { scale: 1.02; } to { scale: 1.07; } }
/* animations of slides out of view stand still (deck.js marks the visible ones) */
.slide:not(.vis) *, .slide:not(.vis) *::after, .slide:not(.vis)::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .s-talk .pic, .s-memory .pic, .s-talk .pic::after, .s-memory .pic::after { animation: none; } }
canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* slides: advanced mode and mods */
.s-adv .pic, .s-mods .pic { filter: none; }   /* the same tone as The village and Voice (author 28.09) */
.s-adv .shade, .s-mods .shade { background: linear-gradient(90deg, rgba(7, 6, 10, .88) 0%, rgba(7, 6, 10, .55) 34%, rgba(7, 6, 10, 0) 58%); }
.s-adv .copy, .s-mods .copy { left: 7vw; top: 50%; transform: translateY(-50%); max-width: min(520px, 36vw); }
.adv-panel, .term { position: absolute; z-index: 3; right: 5vw; top: 50%; translate: 0 -50%; width: min(760px, 50vw);
  background: rgba(14, 11, 10, .92); border: 1px solid rgba(201, 168, 106, .45); box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.adv-panel { padding: 22px 28px 20px; }
.adv-panel h3 { margin: 0 0 14px; text-align: center; font: 500 30px/1 "Cormorant Garamond", Georgia, serif; color: var(--gold); }
.adv-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.adv-panel h4 { margin: 0 0 10px; font: 500 21px/1 "Cormorant Garamond", Georgia, serif; color: var(--gold); }
.adv-panel label { display: block; margin: 0 0 12px; font: 400 15px/1.3 Gelasio, Georgia, serif; color: var(--text); }
.adv-panel output { float: right; color: var(--muted); font-size: 14px; }
.adv-panel input[type=range] { display: block; width: 100%; margin: 6px 0 0; -webkit-appearance: none; appearance: none; height: 16px; background: transparent; cursor: pointer; }
.adv-panel input[type=range]::-webkit-slider-runnable-track { height: 12px; border: 1px solid #8d8373; border-radius: 3px;
  background: linear-gradient(90deg, #8a2a1c var(--p, 30%), #120d0b var(--p, 30%)); }
.adv-panel input[type=range]::-moz-range-track { height: 12px; border: 1px solid #8d8373; border-radius: 3px; background: #120d0b; }
.adv-panel input[type=range]::-moz-range-progress { height: 12px; background: #8a2a1c; }
.adv-panel input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -3px; rotate: 45deg;
  background: linear-gradient(135deg, #e8cf8e, #8a6a32); border: 1px solid #3a2a14; }
.adv-panel input[type=range]::-moz-range-thumb { width: 14px; height: 14px; rotate: 45deg; background: linear-gradient(135deg, #e8cf8e, #8a6a32); border: 1px solid #3a2a14; border-radius: 0; }
.adv-panel dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0; font: 400 15px/1.3 Gelasio, Georgia, serif; }
.adv-panel dt { color: var(--text); } .adv-panel dd { margin: 0; color: var(--gold); }
.adv-panel .note, .term .note { margin: 16px 0 0; font: 400 13px/1.4 Gelasio, Georgia, serif; color: var(--muted); }
.term { padding: 22px 26px; font: 400 14.5px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #d9d2c0; }
.term .say { margin: 0 0 14px; font: italic 500 20px/1.35 "Cormorant Garamond", Georgia, serif; color: var(--gold); }
.term .cmd { margin: 6px 0; color: #e8dcc0; }
.term .cmd::first-letter { color: var(--gold-deep); }
.term .file { margin: 8px 0 10px; padding: 12px 14px; background: rgba(255, 255, 255, .035); border-left: 2px solid var(--gold-deep);
  color: #bfb6a2; white-space: pre; overflow: hidden; font: inherit; font-size: 13.5px; }
.term .fn { color: var(--muted); }
@media (max-aspect-ratio: 4/3) {
  .s-adv, .s-mods { padding-top: 64px; }
  .s-adv .pic, .s-mods .pic { height: 100%; }
  .s-adv .copy, .s-mods .copy { position: relative; left: auto; right: auto; top: auto; max-width: none; transform: none; }
  .adv-panel, .term { position: relative; right: auto; top: auto; translate: none; width: auto; margin-top: 24px; }
  .adv-cols { grid-template-columns: 1fr; }
  .term .file { font-size: 12px; overflow-x: auto; }
}
form.contact textarea { width: min(420px, 86vw); box-sizing: border-box; min-height: 72px; resize: vertical; padding: 12px 16px; background: rgba(10, 8, 8, .75);
  border: 1px solid rgba(201, 168, 106, .45); color: var(--text); font: 400 17px/1.4 Gelasio, Georgia, serif; }
.s-partners .facts { margin-bottom: 16px; }
.s-beta .small { color: var(--muted); }

/* a far jump as one scroll step (deck.js, View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .75s; animation-timing-function: cubic-bezier(.65, 0, .25, 1); animation-fill-mode: both; mix-blend-mode: normal; }
html[data-vt=down]::view-transition-old(root) { animation-name: vt-away-up; }
html[data-vt=down]::view-transition-new(root) { animation-name: vt-from-below; }
html[data-vt=up]::view-transition-old(root) { animation-name: vt-away-down; }
html[data-vt=up]::view-transition-new(root) { animation-name: vt-from-above; }
@keyframes vt-away-up { to { transform: translateY(-100%); } }
@keyframes vt-from-below { from { transform: translateY(100%); } }
@keyframes vt-away-down { to { transform: translateY(100%); } }
@keyframes vt-from-above { from { transform: translateY(-100%); } }

.m-top { justify-content: flex-end !important; }   /* the small name in the corner is gone (author 28.09): the big title is enough */
canvas.pic-live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
