/* felabuyi.com, painted edition.
   Type is townhouse.dev's: Overused Grotesk for every word (display sizes at 500 with tight tracking,
   weight and colour for contrast, no italics), Departure Mono for small uppercase labels. No outlines: subtitles sit on
   a soft dark band at the foot of the painting. */
@font-face { font-family: "Overused Grotesk"; src: url(fonts/OverusedGrotesk-VF.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Departure Mono"; src: url(fonts/DepartureMono-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Overused Grotesk Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 98%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }

:root {
  --ink: #0f0a08;
  --paper: #fbf5ea;
  --cream: #f1e2c2;
  --muted: rgba(251, 245, 234, 0.74);
  --faint: rgba(251, 245, 234, 0.48);
  --line: rgba(243, 230, 200, 0.14);
  --pink: #ff2fa3;
  --sans: "Overused Grotesk", "Overused Grotesk Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --eyebrow: "Departure Mono", ui-monospace, monospace;
  --t-body: -0.006em;
  --t-display: -0.02em;
  --t-eyebrow: 0.06em;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --edge: 24px;
  --shadow-text: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 24px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: var(--t-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
img { display: block; max-width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 50;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 999px;
  font: 500 13px var(--sans); text-decoration: none;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.eyebrow, .plate-no, .counter, .bar-link, .specks, .mv, .toast b, .paint-btn, .motion-btn, .index-group, .index-list li::before, .cap-eye, .hint, .ix-tag, .chips > *, .foot-links a, .plate-links a, .strip a span, .spot span, .down, .foot-note, .sp-off, .t-mood {
  font-family: var(--eyebrow); font-weight: 400; text-transform: uppercase; letter-spacing: var(--t-eyebrow);
}

/* ---------------------------------------------------------------- canvas */
#paint {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh;
  display: block; z-index: 0;
  background: var(--ink);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}
.grain::before, .grain::after { content: ''; position: fixed; left: 0; right: 0; pointer-events: none; transition: opacity 0.4s; }
/* the band the subtitles sit on */
.grain::after {
  bottom: 0; height: 54vh;
  background: linear-gradient(to top, rgba(8, 5, 3, 0.8), rgba(8, 5, 3, 0.44) 45%, rgba(8, 5, 3, 0));
}
/* a little shade under the top bar */
.grain::before {
  top: 0; height: 120px;
  background: linear-gradient(to bottom, rgba(8, 5, 3, 0.45), rgba(8, 5, 3, 0));
}
html.past-film .grain::after, html.past-film .grain::before { opacity: 0; }

/* ---------------------------------------------------------------- top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) var(--edge) 0;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
/* past the film the bar gets its own shade, so the name never runs into the text below it */
.bar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15, 10, 8, 0.97) 62%, rgba(15, 10, 8, 0));
  opacity: 0; transition: opacity 0.4s;
}
html.past-film .bar::before { opacity: 1; }
.brand {
  white-space: nowrap; flex: none;
  font: 500 19px/1 var(--sans); letter-spacing: -0.01em;
  color: var(--paper); text-decoration: none;
  text-shadow: var(--shadow-text);
}
.bar-right { display: flex; align-items: center; gap: 8px; }
.counter, .bar-link {
  display: inline-flex; align-items: center; gap: 8px; height: 36px;
  padding: 0 14px; border-radius: 999px;
  background: rgba(15, 10, 8, 0.5); border: 1px solid rgba(243, 230, 200, 0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--paper); text-decoration: none; cursor: pointer;
  font-size: 11px; line-height: 1;
  transition: background 0.2s, border-color 0.2s, opacity 0.3s;
}
.counter:hover, .bar-link:hover { background: rgba(15, 10, 8, 0.78); border-color: rgba(243, 230, 200, 0.42); }
.counter { font-size: 11px; }
.counter-of { opacity: 0.5; }
.counter-name { margin-left: 4px; color: var(--muted); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; opacity: 0.55; }
.playing > .eq i, .track.on.playing .eq i { opacity: 1; animation: eqb 1.1s ease-in-out infinite; }
.playing > .eq i:nth-child(2), .track.on.playing .eq i:nth-child(2) { animation-delay: -0.35s; }
.playing > .eq i:nth-child(3), .track.on.playing .eq i:nth-child(3) { animation-delay: -0.7s; }
.playing > .eq i:nth-child(4), .track.on.playing .eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eqb { 0%, 100% { height: 3px; } 50% { height: 11px; } }
/* at rest the bars hold an equalizer's shape, never four dots that read as a menu */
.eq i:nth-child(1) { height: 5px; } .eq i:nth-child(2) { height: 9px; } .eq i:nth-child(3) { height: 6px; } .eq i:nth-child(4) { height: 11px; }

/* ------------------------------------------------------------ chapter strip */
.strip {
  position: fixed; right: 16px; top: 50%; z-index: 20;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  transition: opacity 0.4s;
}
.strip a {
  position: relative; display: block; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(251, 245, 234, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  opacity: 0.7; transition: transform 0.35s cubic-bezier(.2, 1.3, .4, 1), opacity 0.2s, border-color 0.2s;
}
.strip a img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.strip a:hover, .strip a.on { opacity: 1; border-color: var(--paper); }
.strip a.on { transform: scale(1.4); }
.strip a.is-new::after {
  content: ''; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 8px var(--pink);
}
.strip a span {
  position: absolute; right: 34px; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; pointer-events: none; opacity: 0;
  font-size: 10px; line-height: 1; color: #2b2a27;
  padding: 6px 9px; border-radius: 6px; background: #faf7f0; border: 1.5px solid #e6a4a4;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s, transform 0.25s;
}
.strip a:hover span, .strip a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
html.past-film .strip, html.past-film .counter { opacity: 0; pointer-events: none; }
html.past-film .counter { display: none; }

/* ---------------------------------------------------------------- scenes */
#film { position: relative; z-index: 2; }
.scene { position: relative; height: calc(var(--len, 1.8) * 100vh); }
.stage {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100svh;
  pointer-events: none; visibility: hidden;
}
.scene.is-active .stage { visibility: visible; }
/* screen readers get every chapter's heading, painting and lines, even while its stage is hidden */
.stage > .visually-hidden, .stage .sub .visually-hidden { visibility: visible; }
html.no-gl .still-alt { display: none; }
.still { display: none; }

/* subtitles: always just above the credit plate, whatever its height */
.cap {
  position: absolute; left: 50%;
  bottom: max(13vh, calc(var(--ph, 0px) + 60px + var(--safe-b)));
  width: min(1040px, 84vw);
  transform: translateX(-50%);
  text-align: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.cap.on { opacity: var(--fade, 1); }
.cap-eye {
  margin: 0 0 16px; font-size: 11px; line-height: 1; color: rgba(251, 245, 234, 0.74);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 0, 0, 0.6);
}
.cap-title .cap-eye { margin-bottom: 22px; }
/* everything on the page shivers when the painting springs back */
.stage .cap { transform: translate(calc(-50% + var(--jx, 0px)), var(--jy, 0px)); }
.plate.on { transform: translate(calc(var(--jx, 0px) * 0.7), calc(var(--jy, 0px) * 0.7)); }
.bar { transform: translate(calc(var(--jx, 0px) * 0.35), calc(var(--jy, 0px) * 0.35)); }
.hint { margin-left: var(--jx, 0px); }
#film { -webkit-user-select: none; user-select: none; cursor: grab; }
.scene { touch-action: pan-y; }
html { overscroll-behavior-x: none; }
html.pulling, html.pulling * { cursor: grabbing !important; }
.sub { margin: 0; text-wrap: balance; text-shadow: var(--shadow-text); }
.sub + .sub { margin-top: 0.6em; }
.sub.n {
  font: 400 clamp(30px, min(3.8vw, 6.8vh), 62px)/1.04 var(--sans);
  letter-spacing: -0.05em; color: var(--paper);
}
.sub.d {
  font: 400 clamp(28px, min(3.5vw, 6.3vh), 56px)/1.06 var(--sans);
  letter-spacing: -0.05em; color: var(--cream);
}
.sub.n + .sub.d {
  font: 400 clamp(12px, min(0.95vw, 1.8vh), 14px)/1.65 var(--eyebrow);
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream); max-width: 56ch;
}
.sub.title {
  font-size: clamp(52px, min(7.6vw, 15vh), 148px);
  font-weight: 400; line-height: 0.9; letter-spacing: -0.05em;
}
.cap-title { bottom: max(14vh, calc(60px + var(--safe-b))); }
.w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.2em);
  filter: blur(6px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.6s ease;
}
.cap.on .w { opacity: 1; transform: none; filter: blur(0); transition-delay: calc(var(--i) * 40ms); }
html.untitled .cap-title { opacity: 0 !important; }
/* the hero's hint is there from the first paint; the stage itself waits for the film's script */
html:not(.gl):not(.no-gl) .hero .hint { visibility: visible; }

.hint {
  position: absolute; left: 50%; bottom: max(26px, calc(14px + var(--safe-b))); transform: translateX(-50%);
  margin: 0; width: max-content; max-width: 90vw; text-align: center;
  font-size: 11px; line-height: 1.6; color: var(--muted);
  text-shadow: var(--shadow-text);
  opacity: var(--fade, 1); transition: opacity 0.4s;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px;
}
.hint-text { text-wrap: balance; }
/* the invitation to pull: a small tag that stretches like rubber */
.pull-cue {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px;
  border: 1px solid rgba(251, 245, 234, 0.5); border-radius: 5px; color: var(--paper);
  background: rgba(15, 10, 8, 0.35); text-shadow: none;
  animation: stretch 2.8s cubic-bezier(.3, 0, .2, 1) infinite;
  transform-origin: center;
}
.pull-cue i { font-style: normal; display: inline-block; animation: arrows 2.8s cubic-bezier(.3, 0, .2, 1) infinite; }
.pull-cue i:first-child { --dir: -1; }
.pull-cue i:last-child { --dir: 1; }
@keyframes stretch {
  0%, 30% { transform: scaleX(1); }
  44% { transform: scaleX(1.16); }
  52% { transform: scaleX(0.9); }
  60% { transform: scaleX(1.07); }
  68% { transform: scaleX(0.97); }
  76%, 100% { transform: scaleX(1); }
}
@keyframes arrows { 0%, 30% { transform: none; } 44% { transform: translateX(calc(var(--dir) * 5px)); } 52%, 100% { transform: none; } }
html.pulled .pull-cue { animation-iteration-count: 1; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-hover { display: none; } }
html.painting .hint { opacity: 0; }

/* hotspots on the studio painting */
.spots {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
  opacity: var(--fade, 1); transition: opacity 0.5s;
}
html.painting .spots { opacity: 0; }
.spot {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  pointer-events: auto; text-decoration: none;
  transition: opacity 0.3s;
}
.spot.off { opacity: 0; pointer-events: none; }
.spot i {
  position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid rgba(251, 245, 234, 0.92);
  background: rgba(15, 10, 8, 0.18);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 220, 160, 0.45);
  animation: ring 2.6s ease-in-out infinite;
}
.spot i::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--paper);
}
.spot:nth-child(3n) i { animation-delay: -0.9s; }
.spot:nth-child(3n+1) i { animation-delay: -1.7s; }
@keyframes ring { 0%, 100% { transform: scale(0.86); opacity: 0.85; } 50% { transform: scale(1.06); opacity: 1; } }
.spot i { width: 14px; height: 14px; left: -7px; top: -7px; }
.spot i::after { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
/* the label is a signpost, the same as the ones on townhouse.dev's town */
.spot span {
  position: absolute; left: 0; bottom: 13px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  white-space: nowrap; padding: 5px 9px 5px;
  border-radius: 6px; background: #faf7f0; border: 1.5px solid #e6a4a4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 10px; line-height: 1.2; color: #2b2a27; letter-spacing: 0.08em;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(.2, 1.4, .4, 1), border-color 0.2s;
}
.spot span::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 1.5px; height: 6px; margin-left: -0.75px; background: #e6a4a4;
}
.spot span b { font: inherit; color: inherit; letter-spacing: inherit; }
.spot span small { font: inherit; font-size: 9px; color: #7a7770; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.25s, opacity 0.2s, margin 0.25s; }
/* no labels on the painting: a name appears only while a dot is hovered or focused */
.spot span { opacity: 0; transform: translateX(-50%) translateY(4px); transition: opacity 0.18s, transform 0.25s cubic-bezier(.2, 1.4, .4, 1); }
.spot:hover span, .spot:focus-visible span { opacity: 1; transform: translateX(-50%) translateY(-3px); border-color: #d27a7a; }
@media (hover: none) { .spot span { opacity: 0 !important; clip-path: inset(50%) !important; } }
.spot:hover span small, .spot:focus-visible span small { max-height: 20px; opacity: 1; margin-top: 3px; }
.spot:hover i { border-color: var(--cream); }
.spot-speck span { border-color: var(--pink); }
.spot-speck span::after { background: var(--pink); }
@keyframes speck { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 47, 163, 0.25), 0 0 18px var(--pink); } 50% { box-shadow: 0 0 0 9px rgba(255, 47, 163, 0.12), 0 0 30px var(--pink); } }

/* the credit plate: a film's lower third */
.plate {
  position: absolute; left: var(--edge); bottom: calc(20px + var(--safe-b));
  width: min(780px, calc(100vw - 2 * var(--edge) - 44px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  column-gap: 20px; row-gap: 7px;
  padding: 14px 14px 14px 20px;
  background: rgba(15, 10, 8, 0.66);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--line); border-radius: 18px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.2, 1, .3, 1);
}
.plate.on { opacity: var(--fade, 1); pointer-events: auto; }
.plate-no { grid-column: 1 / -1; font-size: 11px; line-height: 1; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.new {
  display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 5px;
  border: 1px solid var(--pink); color: #ff8fd0; background: rgba(255, 47, 163, 0.12);
  font: 400 10px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase;
}
.plate-name { font: 400 28px/1.02 var(--sans); letter-spacing: -0.05em; color: var(--paper); white-space: nowrap; }
.plate-name em { font-style: normal; font-weight: 400; color: var(--faint); }
.plate-desc { font: 400 14.5px/1.45 var(--sans); color: var(--muted); text-wrap: pretty; }
.plate-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.plate-links a {
  display: inline-flex; align-items: center; gap: 6px; height: 36px;
  font-size: 11px; line-height: 1; text-decoration: none; white-space: nowrap;
  padding: 0 13px; border-radius: 8px;
  background: var(--paper); color: var(--ink);
  transition: background 0.2s, transform 0.2s;
}
.plate-links a[target="_blank"]::after { content: '↗'; font-size: 13px; opacity: 0.55; }
.plate-links a[href^="mailto"] { text-transform: none; letter-spacing: 0; }
.plate-links a:hover { background: #fff; transform: translateY(-1px); }
.speck-dot {
  display: inline-block; width: 0.26em; height: 0.26em; border-radius: 50%; margin-left: 0.06em;
  background: var(--pink); box-shadow: 0 0 10px var(--pink); vertical-align: 0.04em;
}
.is-speck .plate { border-color: rgba(255, 47, 163, 0.38); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips > * {
  font-size: 10px; line-height: 1;
  padding: 6px 8px; border-radius: 5px; border: 1px solid rgba(243, 230, 200, 0.3); color: var(--paper);
}
/* name over description, links on the right: a long name never squeezes the description into a sliver */
@media (min-width: 761px) and (min-height: 521px) {
  .plate:not(.plate-wall):not(.plate-end) { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; width: auto; max-width: min(780px, calc(100vw - 2 * var(--edge) - 44px)); }
  .plate:not(.plate-wall):not(.plate-end) .plate-name { grid-column: 1; grid-row: 2; }
  .plate:not(.plate-wall):not(.plate-end) .plate-desc { grid-column: 1; grid-row: 3; max-width: 54ch; text-wrap: pretty; }
  .plate:not(.plate-wall):not(.plate-end) .plate-links { grid-column: 2; grid-row: 2 / 4; align-self: center; flex-wrap: nowrap; }
  .plate-end { width: auto; max-width: min(780px, calc(100vw - 2 * var(--edge) - 44px)); }
}
.plate-end { grid-template-columns: 1fr; }
.plate-end .plate-links { justify-content: flex-start; }
.down {
  position: absolute; right: calc(var(--edge) + 28px); bottom: calc(26px + var(--safe-b));
  pointer-events: auto; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  font-size: 11px; line-height: 1; color: var(--paper);
  border-radius: 8px; border: 1px solid rgba(243, 230, 200, 0.3); background: rgba(15, 10, 8, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: var(--fade, 1);
}
.down span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

/* fallback without WebGL: the stills crossfade */
html.no-gl .still {
  display: block; position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease; z-index: -1;
}
html.no-gl .scene.show .still { opacity: 1; }
html.no-gl .scene.show .stage { visibility: visible; }
html.no-gl #end .stage::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: url(film/p/studio-m.webp) 32% 20% / cover;
}

/* ------------------------------------------------------------ after the film */
.after {
  position: relative; z-index: 4;
  background:
    linear-gradient(rgba(15, 10, 8, 0.62), rgba(15, 10, 8, 0.9)),
    url(film/texture.webp) center top / 1400px auto repeat,
    var(--ink);
}
.after::before {
  content: ''; position: absolute; left: 0; right: 0; top: -22vh; height: 22vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15, 10, 8, 0), rgba(15, 10, 8, 0.85) 70%, rgb(30, 20, 16));
}
.eyebrow { display: inline-block; font-size: 11px; line-height: 1; color: var(--faint); margin-bottom: 22px; }
.index, .about { max-width: 1200px; margin: 0 auto; padding: 16vh var(--edge) 4vh; }
.index-head h2, .about h2 {
  margin: 0 0 20px; text-wrap: balance;
  font: 400 clamp(44px, 6.6vw, 104px)/0.96 var(--sans);
  color: var(--paper); letter-spacing: -0.05em;
}
.index-head h2 em, .about h2 em { font-style: normal; font-weight: 400; color: var(--cream); }
.index-head p { margin: 0; max-width: 52ch; font: 400 18px/1.55 var(--sans); color: var(--muted); }
.index-group {
  margin: 72px 0 0; padding-bottom: 14px;
  font-size: 11px; line-height: 1; color: var(--faint);
  border-bottom: 1px solid rgba(243, 230, 200, 0.2);
}
.index-list { list-style: none; margin: 0; padding: 0; counter-reset: ix var(--start, 0); }
.index-list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline;
  border-bottom: 1px solid rgba(243, 230, 200, 0.1);
  counter-increment: ix;
}
.index-list li::before { content: counter(ix, decimal-leading-zero); font-size: 11px; color: var(--faint); }
.index-list a, .ix-row {
  display: grid; grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 22px 0; text-decoration: none;
}
.ix-thumb { display: none; }
.ix-name {
  font: 400 clamp(26px, 2.5vw, 36px)/1.05 var(--sans); letter-spacing: -0.05em;
  color: var(--paper); transition: transform 0.35s cubic-bezier(.2, 1.3, .4, 1), color 0.2s;
}
.ix-desc { font: 400 16px/1.5 var(--sans); color: var(--muted); text-wrap: pretty; }
.ix-tag { font-size: 10px; line-height: 1; color: var(--muted); white-space: nowrap; justify-self: end; }
.ix-tag:not(:empty) { padding: 5px 7px; border: 1px solid rgba(243, 230, 200, 0.26); border-radius: 5px; }
.index-list a:hover .ix-name { transform: translateX(8px); color: var(--cream); }
.index-list .is-new .ix-tag { color: #ff8fd0; border-color: var(--pink); background: rgba(255, 47, 163, 0.12); }
.index-list .is-offline { opacity: 0.5; }
.ix-float {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 3;
  pointer-events: none; opacity: 0; transition: opacity 0.25s;
  border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}
.ix-float.on { opacity: 1; }
.ix-float img { width: 100%; height: 100%; object-fit: cover; }
/* tablets: the description gets the room and the tag sits under it, so no line is squeezed to a sliver */
@media (min-width: 761px) and (max-width: 1000px) {
  .index-list a, .ix-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); row-gap: 10px; }
  .ix-tag { grid-column: 2; justify-self: start; }
}

.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.about-portrait { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); position: sticky; top: 96px; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.about-text p { font: 400 18px/1.6 var(--sans); letter-spacing: var(--t-body); color: var(--muted); margin: 0 0 1.1em; max-width: 62ch; text-wrap: pretty; hyphens: manual; }
.about-text strong { color: var(--paper); font-weight: 400; }
/* names read as names, not as underlined links: brighter ink, a quiet shift on hover */
.about-text a { color: var(--paper); font-weight: 400; text-decoration: none; transition: color 0.2s; }
.about-text a:hover, .about-text a:focus-visible { color: var(--cream); }
.nb { white-space: nowrap; }
.about-chips { margin-top: 28px; }

.foot { text-align: center; padding: 14vh var(--edge) max(8vh, calc(40px + var(--safe-b))); }
.foot-mail {
  display: inline-block; text-decoration: none;
  font: 400 clamp(34px, 5.8vw, 86px)/1 var(--sans); letter-spacing: -0.05em;
  color: var(--paper);
  transition: color 0.2s;
}
.foot-mail:hover { color: var(--cream); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px 0 32px; }
.foot-links a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 13px;
  font-size: 11px; line-height: 1; text-decoration: none;
  border-radius: 8px; border: 1px solid rgba(243, 230, 200, 0.26); color: var(--paper);
  transition: background 0.2s, color 0.2s;
}
.foot-links a:hover { background: var(--paper); color: var(--ink); }
.foot-note { font-size: 10px; line-height: 1.7; color: var(--faint); margin: 0; text-wrap: balance; }

/* wide screens: the hero is set like townhouse.dev's, left-aligned, over the quiet desk */
@media (min-width: 761px) and (min-aspect-ratio: 11/10) {
  .hero .cap { left: 47vw; width: min(46vw, 760px); text-align: left; transform: translate(var(--jx, 0px), var(--jy, 0px)); }
  .hero .sub.title { margin-left: -0.05em; }
  .hero .sub.n + .sub.d { max-width: 56ch; }
}

/* ---------------------------------------------------------- chapter sheet (phones) */
@media (max-width: 760px) {
  .strip { display: none; }
  html.sheet-open .strip {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(10px + var(--safe-b));
    transform: none; z-index: 40;
    padding: 12px; border-radius: 22px;
    background: rgba(15, 10, 8, 0.94); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    max-height: calc(100svh - 90px); overflow: auto;
    animation: sheet 0.35s cubic-bezier(.2, 1, .3, 1);
  }
  html.sheet-open .strip a {
    width: auto; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: none; opacity: 1;
    display: flex; align-items: center; gap: 10px; padding: 8px; transform: none; text-decoration: none;
  }
  html.sheet-open .strip a img { width: 36px; height: 36px; flex: none; }
  html.sheet-open .strip a span {
    position: static; opacity: 1; transform: none; padding: 0; background: none; border: 0; box-shadow: none;
    font: 400 16px/1.15 var(--sans); letter-spacing: -0.02em; text-transform: none; color: var(--paper); white-space: normal;
  }
  html.sheet-open .strip a.on { border-color: rgba(251, 245, 234, 0.6); background: rgba(251, 245, 234, 0.07); }
  html.sheet-open .strip a.is-new::after { right: 8px; top: 8px; }
  html.sheet-open::after { content: ''; position: fixed; inset: 0; z-index: 35; background: rgba(5, 3, 2, 0.55); }
}
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* tall tablets: the subtitle stays the loudest thing on screen, above the plate's name */
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .sub.n:not(.title) { font-size: clamp(34px, 5vw, 48px); }
  .sub.d { font-size: clamp(32px, 4.7vw, 44px); }
}
/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  :root { --edge: 14px; }
  .bar { padding-top: max(12px, env(safe-area-inset-top)); }
  .brand { font-size: 18px; }
  .counter, .bar-link { height: 34px; padding: 0 12px; }
  .counter-name, .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sound { width: 34px; padding: 0; justify-content: center; }

  .cap { width: calc(100vw - 32px); bottom: calc(var(--ph, 0px) + 26px + var(--safe-b)); }
  .cap-title { bottom: calc(var(--ph, 0px) + 26px); }
  .sub.n { font-size: clamp(27px, 7.6vw, 36px); line-height: 1.06; letter-spacing: -0.05em; }
  .sub.d { font-size: clamp(25px, 7vw, 32px); }
  .sub.n + .sub.d { font-size: 12px; line-height: 1.65; }
  .sub.title { font-size: clamp(46px, 13.5vw, 64px); }
  .hint { font-size: 10px; bottom: calc(16px + var(--safe-b)); left: 16px; right: 16px; width: auto; max-width: none; transform: none; gap: 8px; }

  .plate {
    left: 10px; right: 10px; width: auto; bottom: calc(10px + var(--safe-b));
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px;
    padding: 13px 12px 13px 15px; border-radius: 18px;
  }
  .plate-name { font-size: 25px; grid-column: 1; grid-row: 2; white-space: normal; }
  .plate-links { grid-column: 2; grid-row: 2; flex-wrap: nowrap; }
  .plate-desc { grid-column: 1 / -1; grid-row: 3; font-size: 13.5px; }
  .plate-links a { height: 34px; padding: 0 11px; }
  #trotta .plate-links, #essay .plate-links { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; flex-wrap: wrap; }
  .plate-end .plate-links { grid-column: 1; grid-row: 2; flex-wrap: wrap; }
  .down { display: none; }

  .spot span { font-size: 9.5px; padding: 4px 7px; }

  .index, .about { padding: 12vh 18px 3vh; }
  .index-head p { font-size: 16.5px; }
  .index-group { margin-top: 48px; }
  .index-list li { grid-template-columns: minmax(0, 1fr); }
  .index-list li::before { display: none; }
  .index-list a, .ix-row {
    grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: 'thumb name' 'thumb desc' 'thumb tag';
    column-gap: 14px; row-gap: 6px; align-items: start; padding: 16px 0;
  }
  .ix-thumb { display: block; grid-area: thumb; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
  .ix-name { grid-area: name; font-size: 25px; }
  .ix-desc { grid-area: desc; font-size: 14.5px; }
  .ix-tag { grid-area: tag; justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait { position: relative; top: 0; aspect-ratio: 16 / 11; }
  .about-text p { font-size: 16.5px; }
  .foot-links a { height: 34px; padding: 0 11px; }
}

/* small phones */
@media (max-width: 370px) {
  .sub.n { font-size: 25px; }
  .sub.title { font-size: clamp(42px, 12.5vw, 52px); }
  .sub.d { font-size: 23px; }
  .plate-desc { font-size: 13px; }
  .plate-name { font-size: 20px; }
}

/* phones on their side and other short screens */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --edge: 16px; }
  .bar { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .counter, .bar-link { height: 32px; }
  .counter-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .strip { display: none; }
  .cap { width: min(760px, 70vw); bottom: calc(var(--ph, 0px) + 18px + var(--safe-b)); }
  .cap-title { bottom: calc(var(--ph, 0px) + 18px); }
  .sub.n { font-size: clamp(22px, 6.8vh, 34px); }
  .sub.d { font-size: clamp(21px, 6.4vh, 31px); }
  .sub.n + .sub.d { font-size: 11.5px; }
  .sub.title { font-size: clamp(52px, 17vh, 84px); }
  .hint { bottom: 10px; font-size: 10px; }
  .plate {
    left: max(12px, env(safe-area-inset-left)); bottom: 10px; width: auto; max-width: calc(100vw - 24px);
    grid-template-columns: auto auto; padding: 9px 9px 9px 14px; column-gap: 14px;
  }
  .plate-no, .plate-desc { display: none; }
  .plate-name { font-size: 19px; }
  .plate-links a { height: 30px; padding: 0 10px; }
  .plate-end { grid-template-columns: auto; }
  #trotta .plate-links, #essay .plate-links { grid-column: auto; grid-row: auto; }
  .down { display: none; }
  .spot:hover span, .spot:focus-visible span { display: flex; font-size: 9px; padding: 3px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .w, .plate, .cap { transition: none !important; filter: none !important; }
  .spot i, .spot-speck i, .down span, .sound.on .wave { animation: none !important; }
}

/* ------------------------------------------------------------ sound picker */
.sound { min-width: 36px; }
.sound.playing { border-color: rgba(243, 230, 200, 0.5); }
.sound-panel, .help-panel {
  position: fixed; z-index: 45; top: calc(max(16px, env(safe-area-inset-top)) + 46px); right: var(--edge);
  width: 300px; padding: 14px; border-radius: 14px;
  background: rgba(15, 10, 8, 0.92); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform-origin: top right; animation: pop 0.28s cubic-bezier(.2, 1.2, .3, 1);
}
.sound-panel[hidden], .help-panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sp-head .eyebrow { margin: 0; }
.sp-note { color: rgba(251, 245, 234, 0.5) !important; }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.track {
  width: 100%; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px;
  padding: 11px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer;
  text-align: left; color: var(--paper); transition: background 0.15s, border-color 0.15s;
}
.track:hover { background: rgba(251, 245, 234, 0.06); }
.track.on { border-color: rgba(243, 230, 200, 0.28); background: rgba(251, 245, 234, 0.08); }
.track .eq { color: var(--cream); }
.t-name { font: 400 16px/1.1 var(--sans); letter-spacing: -0.02em; }
.t-mood { font-size: 10px; line-height: 1; color: var(--faint); }
.sp-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sp-foot .eyebrow { margin: 0; font-size: 10px; }
.sp-foot input[type=range] { width: 100%; accent-color: var(--cream); }
.sp-off { height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer; font-size: 10px; }
.sp-off:hover { border-color: rgba(243, 230, 200, 0.45); }
@media (max-width: 760px) {
  .sound-panel, .help-panel { left: 10px; right: 10px; width: auto; top: auto; bottom: calc(10px + var(--safe-b)); transform-origin: bottom center; }
  .track { padding: 13px 10px; }
  .t-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pull-cue, .pull-cue i, .playing > .eq i, .track.on.playing .eq i { animation: none !important; }
}

/* ------------------------------------------------------------ how to play */
.help-panel { width: 360px; max-height: calc(100svh - 90px); overflow: auto; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.moves li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; padding: 9px 8px; border-radius: 8px; }
.moves li.done { background: rgba(251, 245, 234, 0.05); }
.mv { font-size: 10.5px; line-height: 1.4; color: var(--cream); display: inline-flex; align-items: center; gap: 6px; }
.moves li.done .mv::after { content: '✓'; font-family: var(--sans); color: #8fd6a8; letter-spacing: 0; }
.md { font: 400 14px/1.45 var(--sans); color: var(--muted); text-wrap: pretty; }
.md b { font-weight: 500; color: #ff8fd0; }
.only-keys, .only-touch { display: none !important; }
.help-panel.keys .only-keys, .help-panel.touch .only-touch { display: grid !important; }
.motion-btn { margin-left: 6px; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(243, 230, 200, 0.4); background: transparent; color: var(--paper); font-size: 10px; cursor: pointer; }
.help-btn { width: 36px; padding: 0; justify-content: center; font-size: 13px; }
.help-btn.fresh { animation: nudge 2.4s ease-in-out 3; }
@keyframes nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(251, 245, 234, 0); } 80% { box-shadow: 0 0 0 6px rgba(251, 245, 234, 0.22); } 90% { box-shadow: 0 0 0 10px rgba(251, 245, 234, 0); } }

/* ------------------------------------------------------------ the Speck hunt */
.hunt { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; transition: opacity 0.3s; }
.hunt::before { content: ''; position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; }
.hunt i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #ffe0f1 0 16%, #ff4fb3 42%, #c0007a 100%);
  box-shadow: 0 0 5px rgba(255, 47, 163, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: glint 7s ease-in-out infinite;
}
.hunt:nth-of-type(2n) i { animation-delay: -2.3s; }
@keyframes glint { 0%, 90%, 100% { transform: scale(1); } 94% { transform: scale(1.7); box-shadow: 0 0 16px #ff2fa3, 0 0 0 4px rgba(255, 47, 163, 0.25); } }
.hunt.off { opacity: 0; pointer-events: none; }
.hunt.found { pointer-events: none; }
.hunt.found i { animation: none; opacity: 0; transform: scale(0.4); transition: opacity 0.6s 0.2s, transform 0.6s; }
.hunt.pop::after {
  content: ''; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--pink); animation: burst 0.8s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes burst { to { transform: scale(7); opacity: 0; } }
.specks {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: rgba(15, 10, 8, 0.5); border: 1px solid rgba(255, 47, 163, 0.5); color: #ffb3dd;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 11px;
}
.specks[hidden] { display: none; }
.specks i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.specks b { font-weight: 400; color: #fff; }
.specks.bump { animation: bump 0.5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 40% { transform: scale(1.18); } }
html.all-specks .specks { border-color: var(--pink); background: rgba(255, 47, 163, 0.2); }

/* ------------------------------------------------------------ toast */
.toast {
  position: fixed; z-index: 46; left: 50%; top: calc(max(16px, env(safe-area-inset-top)) + 50px);
  transform: translate(-50%, -10px); opacity: 0;
  max-width: min(520px, calc(100vw - 24px)); padding: 12px 16px; border-radius: 12px;
  background: rgba(15, 10, 8, 0.92); border: 1px solid rgba(255, 47, 163, 0.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 400 14.5px/1.45 var(--sans); color: var(--muted); text-align: center;
  transition: opacity 0.35s, transform 0.45s cubic-bezier(.2, 1.2, .3, 1);
  pointer-events: auto;
}
.toast[hidden] { display: none; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast b { display: block; margin-bottom: 4px; font-size: 10.5px; color: #ffb3dd; }
.toast a { color: var(--paper); }

/* ------------------------------------------------------------ the easel */
.plate-wall { grid-template-columns: auto minmax(120px, 1fr) auto; }
.plate-wall .plate-no { gap: 10px; }
.mural-count { font-weight: 400; color: var(--muted); }
.swatches { display: inline-flex; gap: 7px; align-items: center; }
.sw {
  width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--c);
  border: 2px solid rgba(15, 10, 8, 0.8); box-shadow: 0 0 0 1px rgba(243, 230, 200, 0.3);
  transition: transform 0.2s cubic-bezier(.2, 1.4, .4, 1), box-shadow 0.2s;
}
.sw.on { transform: scale(1.18); box-shadow: 0 0 0 2px var(--paper); }
.paint-btn {
  height: 36px; padding: 0 14px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); font-size: 11px;
}
.paint-btn:hover { background: #fff; }
.paint-msg { grid-column: 1 / -1; font-size: 13.5px; }
html.paint-mode #wall .cap { opacity: 0 !important; }
html.paint-mode #film, html.paint-mode #film * { cursor: crosshair !important; }
html.paint-mode .scene { touch-action: none; }
html.paint-mode .paint-btn { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243, 230, 200, 0.45); }
@media (max-width: 760px) {
  .plate-wall { grid-template-columns: 1fr auto; }
  .plate-wall .swatches { grid-column: 1 / -1; grid-row: 2; }
  .plate-wall .name-in { grid-column: 1; grid-row: 3; }
  .plate-wall .plate-links { grid-column: 2; grid-row: 3; }
  .plate-wall .paint-msg { grid-column: 1 / -1; grid-row: 4; font-size: 12.5px; }
  .plate-wall .signers { grid-row: 5; }
  .sw { width: 28px; height: 28px; }
  .specks { height: 34px; padding: 0 10px; }
  .help-btn { width: 34px; }
}

/* ------------------------------------------------------------ slow time, scratch */
html.slowmo .cap, html.slowmo .plate { transition-duration: 1.4s; }
html.scratching #film, html.scratching #film * { cursor: cell !important; }

/* ------------------------------------------------------------ chapter menu on wide screens too */
@media (min-width: 761px) {
  html.sheet-open .strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%);
    width: min(720px, calc(100vw - 48px)); z-index: 40;
    padding: 14px; border-radius: 20px;
    background: rgba(15, 10, 8, 0.94); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    animation: sheet 0.3s cubic-bezier(.2, 1, .3, 1);
  }
  html.sheet-open .strip a {
    width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: none; opacity: 1;
    display: flex; align-items: center; gap: 10px; padding: 8px; transform: none; text-decoration: none;
  }
  html.sheet-open .strip a img { width: 40px; height: 40px; flex: none; }
  html.sheet-open .strip a span {
    position: static; opacity: 1; transform: none; padding: 0; background: none; border: 0; box-shadow: none;
    font: 400 16px/1.15 var(--sans); letter-spacing: -0.02em; text-transform: none; color: var(--paper); white-space: normal;
  }
  html.sheet-open .strip a.on { border-color: rgba(251, 245, 234, 0.6); background: rgba(251, 245, 234, 0.07); }
  /* thirteen chapters on a grid of three: the first and the last, both portraits, take two cells, so no row is left with one */
  html.sheet-open .strip a[data-go="studio"], html.sheet-open .strip a[data-go="end"] { grid-column: span 2; }
  html.sheet-open::after { content: ''; position: fixed; inset: 0; z-index: 35; background: rgba(5, 3, 2, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .hunt i, .help-btn.fresh, .specks.bump { animation: none !important; }
}

/* the chapter menu's way to the index; the strip itself never shows it */
.strip-index { display: none !important; }
html.sheet-open .strip .strip-index {
  display: flex !important; align-items: center; gap: 10px; grid-column: 1 / -1; justify-content: center;
  border-style: dashed !important;
}
html.sheet-open .strip .strip-index i { font-style: normal; font-size: 16px; color: var(--cream); }
.bar-right { min-width: 0; }
/* small phones: the bar keeps to one line whatever is in it */
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .bar-right { gap: 6px; }
  .specks { padding: 0 9px; gap: 5px; }
  .specks-of { display: none; }
  .counter { padding: 0 10px; }
}
@media (max-width: 340px) {
  .brand { font-size: 16px; }
  .counter-of { display: none; }
}

/* ------------------------------------------------------------ signing the easel */
.name-in { display: block; min-width: 0; }
.name-in input {
  width: 100%; height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid rgba(243, 230, 200, 0.28); background: rgba(251, 245, 234, 0.06);
  color: var(--paper); font: 400 15px/1 var(--sans); letter-spacing: -0.01em; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.name-in input::placeholder { color: var(--faint); font: 400 10.5px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; }
.name-in input:focus { border-color: rgba(243, 230, 200, 0.6); background: rgba(251, 245, 234, 0.1); }
.name-in input.bad { border-color: #ff6b8a; }
.signers { grid-column: 1 / -1; font: 400 12.5px/1.4 var(--sans); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signers[hidden] { display: none; }
.stroke-tip {
  position: fixed; left: 0; top: 0; z-index: 44; pointer-events: none;
  display: flex; flex-direction: column; gap: 3px; padding: 7px 10px 8px; border-radius: 6px;
  background: #faf7f0; border: 1.5px solid #e6a4a4; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); color: #2b2a27;
}
.stroke-tip[hidden] { display: none; }
.stroke-tip b { font: 500 15px/1.1 var(--sans); letter-spacing: -0.01em; }
.stroke-tip span { font: 400 9.5px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; color: #7a7770; }
.stroke-tip span:empty { display: none; }
html.over-stroke #film, html.over-stroke #film * { cursor: help; }
@media (max-height: 520px) and (orientation: landscape) {
  .plate-wall .paint-msg { display: block; grid-column: 1 / -1; font-size: 12px; }
}

/* ------------------------------------------------------------ the playful senses */
.only-buzz { display: none !important; }
.help-panel.buzz .only-buzz { display: grid !important; }
.only-touch-i, .only-keys-i { display: none; }
.help-panel.touch .only-touch-i, .help-panel.keys .only-keys-i { display: inline; }
.help-panel.touch.keys .only-keys-i { display: none; }

.here, .mic-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border-radius: 999px;
  background: rgba(15, 10, 8, 0.5); border: 1px solid rgba(243, 230, 200, 0.22); color: var(--paper);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 400 11px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase;
}
.here[hidden], .mic-chip[hidden] { display: none; }
.here i { width: 7px; height: 7px; border-radius: 50%; background: #8fd6a8; box-shadow: 0 0 8px #8fd6a8; animation: live 2s ease-in-out infinite; }
.here b { font-weight: 400; }
@keyframes live { 50% { opacity: 0.4; } }
.mic-chip { cursor: pointer; border-color: rgba(255, 90, 90, 0.6); color: #ffb3b3; }
.mic-chip i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: live 1.2s ease-in-out infinite; }

.ghosts { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.ghost {
  position: absolute; left: 0; top: 0; margin: -4px 0 0 -2px; color: hsl(var(--h), 85%, 72%);
  filter: drop-shadow(0 0 6px hsla(var(--h), 90%, 60%, 0.75)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  opacity: 0; transition: opacity 0.4s;
}
.ghost.on { opacity: 0.95; }

/* every mark is now painted by the film itself; nothing is drawn over it */
.draw-layer { display: none; }

.scrub-dial {
  position: fixed; z-index: 21; left: 50%; top: calc(max(16px, env(safe-area-inset-top)) + 54px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(15, 10, 8, 0.8); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 400 10.5px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity 0.3s;
}
.scrub-dial[hidden] { display: none; }
.scrub-dial.on { opacity: 1; }
.scrub-dial svg { width: 26px; height: 26px; transform: rotate(-90deg); }
.scrub-dial circle { fill: none; stroke-width: 3.2; }
.scrub-dial .track { stroke: rgba(243, 230, 200, 0.18); }
.scrub-dial .arc { stroke: var(--cream); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }

.mirror {
  position: fixed; z-index: 22; left: 24px; top: 96px; margin: 0;
  width: 200px; padding: 10px 10px 0; border-radius: 6px; cursor: grab; touch-action: none;
  background: linear-gradient(135deg, #8a5a2b, #5b3416 40%, #a6713a 60%, #4a2a12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 220, 160, 0.25), inset 0 0 12px rgba(0, 0, 0, 0.5);
}
.mirror[hidden] { display: none; }
.mirror canvas { display: block; width: 180px; height: 230px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5); background: #1a120d; }
.mirror figcaption { display: flex; align-items: center; gap: 6px; padding: 8px 0 9px; font: 400 9.5px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; color: #f5e3c4; }
.mirror figcaption span { flex: 1; }
.mirror button { height: 22px; padding: 0 7px; border-radius: 4px; border: 1px solid rgba(245, 227, 196, 0.45); background: rgba(0, 0, 0, 0.2); color: #f5e3c4; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .mirror { left: auto; right: 10px; top: 60px; width: 132px; padding: 7px 7px 0; }
  .mirror canvas { width: 118px; height: 150px; }
  .mirror figcaption { font-size: 8.5px; gap: 4px; padding: 6px 0 7px; }
  .mirror figcaption span { display: none; }
  .here-label { display: none; }
  .here, .mic-chip { height: 34px; padding: 0 9px; }
}
@media (max-width: 480px) {
  .here { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .here i, .mic-chip i { animation: none !important; }
}
html.drawing .scene { touch-action: none; }

/* ------------------------------------------------------------ whispers: the film teaches itself */
.help-btn { position: relative; }
/* the ? keeps score: a thin ring fills as moves are found */
.help-btn.has-ring::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--cream) calc(var(--p, 0) * 1turn), rgba(243, 230, 200, 0.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  transition: background 0.6s;
}
.help-btn.took { animation: took 0.6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes took { 40% { transform: scale(1.14); } }
.moves li.lit { background: rgba(251, 245, 234, 0.1); box-shadow: inset 0 0 0 1px rgba(243, 230, 200, 0.34); }
.moves li:focus, .help-panel:focus, .sound-panel:focus { outline: none; }
/* a Speck reached with the keyboard wears a ring you can see, not a dot-sized outline */
.hunt:focus-visible { outline: none; }
.hunt:focus-visible::before { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px rgba(15, 10, 8, 0.55); }

/* how to play in three groups, and a close button on both panels that stays in reach while the list scrolls */
.sp-head { gap: 12px; }
.sp-head .sp-note { margin-left: auto; }
.sp-x {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -13px -11px -13px 4px; padding: 0;
  border: 0; border-radius: 12px; background: none; cursor: pointer;
  color: var(--faint); font: 400 20px/1 var(--sans); transition: color 0.2s, background 0.2s;
}
.sp-x:hover { color: var(--paper); background: rgba(251, 245, 234, 0.06); }
.help-panel .sp-head { position: sticky; top: -14px; z-index: 1; margin: -14px -14px 6px; padding: 14px 14px 8px; background: #120c0a; border-radius: 14px 14px 0 0; }
.mv-h { margin: 0; padding: 2px 8px 6px; font: 400 10.5px/1.3 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; color: var(--faint); }
.mv-set + .mv-set { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.moves-still { display: none; margin: 0 8px 10px; font: 400 13.5px/1.45 var(--sans); color: var(--muted); }
.help-panel.calm .moves-still { display: block; }
.help-panel.calm .mv-hands, .help-panel.calm .mv-r { display: none; }
.help-panel.calm .mv-hands + .mv-set { margin-top: 0; padding-top: 0; border-top: 0; }
.help-panel .moves li[hidden] { display: none !important; }
a.motion-btn { display: inline-flex; align-items: center; vertical-align: middle; text-decoration: none; }
.motion-btn:hover { border-color: rgba(243, 230, 200, 0.7); }
/* on a touch screen the buttons in both panels are finger-sized, and a row's button gets its own line */
@media (pointer: coarse) {
  .moves .motion-btn { display: flex; width: max-content; height: 40px; margin: 8px 0 0; padding: 0 14px; align-items: center; }
  .sp-off { height: 40px; padding: 0 14px; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .help-panel { width: min(700px, calc(100vw - 48px)); }
  .mv-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
  .mv-hands { grid-row: 1 / span 2; }
  .mv-cols > .mv-around { margin-top: 0; padding-top: 0; border-top: 0; }
  .help-panel.calm { width: 380px; }
  .help-panel.calm .mv-cols { display: block; }
}

/* the ghost fingertip: one move, shown once on the painting itself, then gone */
.w-ghost { position: fixed; left: 0; top: 0; z-index: 30; width: 0; height: 0; pointer-events: none; }
.w-ghost i { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; opacity: 0; pointer-events: none; }
.w-ghost .gh-dot { background: rgba(251, 245, 234, 0.5); box-shadow: inset 0 0 0 2px #fbf5ea, 0 0 0 1px rgba(15, 10, 8, 0.35), 0 6px 22px rgba(0, 0, 0, 0.5); }
.w-ghost .gh-trail { background: rgba(251, 245, 234, 0.7); box-shadow: 0 0 0 1px rgba(15, 10, 8, 0.25), 0 0 16px rgba(251, 245, 234, 0.35); }
@media (prefers-reduced-motion: reduce) { .w-ghost { display: none; } }

.whisper {
  position: fixed; z-index: 44; width: max-content; max-width: min(280px, calc(100vw - 16px));
  opacity: 0; transform-origin: calc(100% - 26px) -12px;
  transform: translateY(-6px) rotate(-2.5deg) scale(0.96);
  transition: opacity 0.3s ease, transform 0.55s cubic-bezier(.2, 1.4, .35, 1);
  pointer-events: none;
}
.whisper[hidden] { display: none; }
.whisper.in { opacity: 1; transform: none; pointer-events: auto; animation: sway 1.6s cubic-bezier(.3, 0, .3, 1) 0.15s 1; }
.whisper.out { opacity: 0; transform: translate(calc(var(--tx, 26px) * 0.25), -14px) scale(0.6); transition-duration: 0.38s; transition-timing-function: cubic-bezier(.5, 0, .9, .5); }
@keyframes sway { 0% { transform: rotate(0); } 30% { transform: rotate(1.6deg); } 60% { transform: rotate(-0.8deg); } 100% { transform: rotate(0); } }
.w-thread {
  position: absolute; top: -12px; right: calc(var(--tx, 26px) - 0.5px); width: 1px; height: 12px;
  background: linear-gradient(rgba(243, 230, 200, 0.7), rgba(243, 230, 200, 0.35));
}
.w-body {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center;
  width: 100%; min-height: 56px; margin: 0; padding: 10px 34px 10px 10px; text-align: left; cursor: pointer;
  background: rgba(15, 10, 8, 0.72); border: 1px solid rgba(243, 230, 200, 0.2); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); color: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
.w-body:hover { border-color: rgba(243, 230, 200, 0.42); background: rgba(15, 10, 8, 0.84); }
.w-text { display: grid; gap: 4px; min-width: 0; }
.w-eye { display: flex; align-items: center; gap: 6px; font-family: var(--eyebrow); text-transform: uppercase; letter-spacing: var(--t-eyebrow); font-size: 10px; line-height: 1; color: var(--faint); }
.w-move { font-weight: 400; color: var(--cream); }
.w-steps { display: inline-flex; gap: 4px; margin-left: 4px; }
.w-steps i { width: 5px; height: 5px; border-radius: 50%; background: rgba(243, 230, 200, 0.22); transition: background 0.3s; }
.w-steps i.now { background: rgba(243, 230, 200, 0.6); }
.w-steps i.on { background: #8fd6a8; }
.w-try:empty { display: none; }
.w-line { font: 400 14px/1.35 var(--sans); letter-spacing: var(--t-body); color: var(--muted); text-wrap: pretty; }
.w-line kbd {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 1px;
  border: 1px solid rgba(243, 230, 200, 0.4); border-radius: 50%; vertical-align: 1px;
  font: 400 10px/1 var(--eyebrow); color: var(--paper);
}
.w-x {
  position: absolute; top: -4px; right: -4px; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  color: var(--faint); font: 400 17px/1 var(--sans); cursor: pointer; border-radius: 12px;
}
.w-x:hover { color: var(--paper); }
.is-done .w-body { border-color: rgba(143, 214, 168, 0.5); }
.is-done .w-move::after { content: ' ✓'; font-family: var(--sans); color: #8fd6a8; letter-spacing: 0; }

/* the demos: one dot doing the move */
.w-glyph { width: 40px; height: 40px; border-radius: 10px; background: rgba(251, 245, 234, 0.05); overflow: visible; }
.w-glyph * { transform-box: fill-box; transform-origin: center; fill: none; stroke: none; }
.w-glyph .g-dot, .w-glyph .g-tap { fill: var(--paper); }
.w-glyph .g-frame, .w-glyph .g-lens, .w-glyph .g-key { stroke: rgba(243, 230, 200, 0.5); stroke-width: 1.2; }
.w-glyph .g-ring, .w-glyph .g-trail, .w-glyph .g-loop, .w-glyph .g-arc, .w-glyph .g-streak, .w-glyph .g-arr { stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.w-glyph .g-trail { stroke-width: 4.5; stroke: rgba(243, 230, 200, 0.55); }
.w-glyph .g-under { fill: rgba(143, 190, 214, 0.5); }
.w-glyph .g-faint { fill: rgba(243, 230, 200, 0.25); }
.w-glyph .g-pink { fill: var(--pink); }
.w-glyph .g-bar { fill: var(--cream); transform-origin: bottom; }
.w-glyph text { fill: var(--cream); font: 400 13px var(--eyebrow); }
.w-glyph .g-ok-ring, .w-glyph .g-ok { stroke: #8fd6a8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ink 0.5s cubic-bezier(.3, 0, .2, 1) forwards; }
.w-glyph .g-ok { animation-delay: 0.18s; }
@keyframes ink { to { stroke-dashoffset: 0; } }

.whisper.in .g-pull .g-frame { transform-origin: left center; animation: gStretch 2.4s cubic-bezier(.3, 0, .2, 1) infinite; }
.whisper.in .g-pull .g-dot { animation: gTug 2.4s cubic-bezier(.3, 0, .2, 1) infinite; }
@keyframes gStretch { 0%, 15% { transform: scaleX(1); } 45% { transform: scaleX(1.18); } 55% { transform: scaleX(0.93); } 65% { transform: scaleX(1.04); } 75%, 100% { transform: scaleX(1); } }
@keyframes gTug { 0%, 15% { transform: none; } 45% { transform: translateX(7px); } 46%, 100% { transform: none; opacity: 1; } 47% { opacity: 0; } 70% { opacity: 1; } }
.whisper.in .g-fling .g-dot { animation: gFling 1.8s cubic-bezier(.6, 0, .2, 1) infinite; }
.whisper.in .g-fling .g-streak { stroke-dasharray: 22; animation: gStreak 1.8s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes gFling { 0%, 25% { transform: none; opacity: 1; } 55% { transform: translateX(20px); opacity: 0; } 56%, 75% { transform: none; opacity: 0; } 100% { opacity: 1; } }
@keyframes gStreak { 0%, 25% { stroke-dashoffset: 22; opacity: 0; } 50% { stroke-dashoffset: 0; opacity: 1; } 75%, 100% { stroke-dashoffset: -22; opacity: 0; } }
.whisper.in .g-scratch .g-dot { animation: gRub 1.6s ease-in-out infinite; }
.whisper.in .g-scratch .g-under { animation: gReveal 1.6s ease-in-out infinite; }
@keyframes gRub { 0%, 100% { transform: none; } 12% { transform: translateX(16px); } 24% { transform: none; } 36% { transform: translateX(16px); } 48% { transform: none; } 60% { transform: translateX(16px); } 72% { transform: none; } }
@keyframes gReveal { 0%, 10% { opacity: 0; } 70% { opacity: 1; } 92%, 100% { opacity: 0; } }
.whisper.in .g-hold .g-ring { stroke-dasharray: 100; animation: gFill 2.4s linear infinite; }
.whisper.in .g-hold .g-dot { animation: gPress 2.4s ease-in-out infinite; }
@keyframes gFill { 0%, 10% { stroke-dashoffset: 100; opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gPress { 0%, 100% { transform: scale(1); } 10%, 80% { transform: scale(0.8); } }
.whisper.in .g-smear .g-trail { stroke-dasharray: 100; animation: gSmear 2.6s ease-in-out infinite; }
.whisper.in .g-smear .g-dot { offset-path: path('M11 24C17 24 21 16 30 16'); offset-rotate: 0deg; animation: gAlong 2.6s ease-in-out infinite; }
@keyframes gSmear { 0%, 30% { stroke-dashoffset: 100; opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gAlong { 0% { offset-distance: 0%; transform: scale(1); } 10%, 30% { offset-distance: 0%; transform: scale(0.8); } 75% { offset-distance: 100%; transform: scale(0.8); } 100% { offset-distance: 100%; transform: scale(1); opacity: 0; } }
.whisper.in .g-pinch .g-a { animation: gApartA 2.2s ease-in-out infinite; }
.whisper.in .g-pinch .g-b { animation: gApartB 2.2s ease-in-out infinite; }
.whisper.in .g-pinch .g-lens { animation: gLens 2.2s ease-in-out infinite; }
@keyframes gApartA { 0%, 15%, 100% { transform: none; } 60%, 80% { transform: translate(-5px, 5px); } }
@keyframes gApartB { 0%, 15%, 100% { transform: none; } 60%, 80% { transform: translate(5px, -5px); } }
@keyframes gLens { 0%, 15%, 100% { transform: scale(0.85); } 60%, 80% { transform: scale(1.35); } }
.whisper.in .g-twist .g-spin { transform-origin: 20px 20px; transform-box: view-box; animation: gSpin 2.4s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes gSpin { 0%, 10% { transform: rotate(0); } 45%, 55% { transform: rotate(80deg); } 90%, 100% { transform: rotate(0); } }
.whisper.in .g-hunt .g-pink { animation: gGlint 2.2s ease-in-out infinite; }
@keyframes gGlint { 0%, 60%, 100% { transform: scale(1); } 75% { transform: scale(1.6); } }
.whisper.in .g-draw .g-loop { stroke-dasharray: 100; animation: gLoop 2.8s ease-in-out infinite; }
.whisper.in .g-draw .g-tap { animation: gTwice 2.8s ease-in-out infinite; }
@keyframes gLoop { 0%, 25% { stroke-dashoffset: 100; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gTwice { 0%, 18%, 100% { transform: scale(1); } 5%, 13% { transform: scale(0.55); } }
.whisper.in .g-music .g-bar { animation: gEq 1.1s ease-in-out infinite; }
.whisper.in .g-music .g-bar:nth-child(2) { animation-delay: -0.35s; }
.whisper.in .g-music .g-bar:nth-child(3) { animation-delay: -0.7s; }
.whisper.in .g-music .g-bar:nth-child(4) { animation-delay: -0.2s; }
@keyframes gEq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.whisper.in .g-keys .g-r { animation: gKey 1.6s ease-in-out infinite; }
.whisper.in .g-keys .g-l { animation: gKey 1.6s ease-in-out -0.8s infinite; }
@keyframes gKey { 0%, 40%, 100% { fill: transparent; } 10%, 25% { fill: rgba(243, 230, 200, 0.28); } }

@media (max-width: 480px) {
  .w-line { font-size: 13.5px; }
  .w-body { gap: 10px; padding-right: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .whisper, .whisper.in, .whisper.out { animation: none !important; transform: none !important; transition: opacity 0.3s !important; }
  .whisper .w-glyph *, .help-btn.took { animation: none !important; }
  .w-glyph .g-ok-ring, .w-glyph .g-ok { stroke-dashoffset: 0; }
}
@media print { .whisper, .w-ghost { display: none !important; } }

/* ================================================================== MOBILE
   Phones, tablets and anything driven by a thumb: every control is at least
   44px, a press shows, and nothing flashes grey under the finger. */
html { -webkit-tap-highlight-color: transparent; }

@media (pointer: coarse) {
  /* the bar */
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .counter, .bar-link, .specks, .here, .mic-chip { height: 44px; }
  .help-btn { width: 44px; }
  /* plates, the easel, the footer */
  .plate-links a, .foot-links a, .paint-btn, .down { height: 44px; min-width: 44px; justify-content: center; }
  /* links inside the bio keep their line spacing but take a fingertip-tall tap */
  .about-text a { padding: 11px 7px; margin: 0 -7px; }
  .name-in input { height: 44px; }
  /* the swatches keep their 30px dot inside a 44px target */
  .swatches { gap: 0; }
  .sw { position: relative; width: 44px; height: 44px; border: 7px solid transparent; background-clip: padding-box; box-shadow: none; }
  .sw::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(15, 10, 8, 0.8); box-shadow: 0 0 0 1px rgba(243, 230, 200, 0.3); pointer-events: none; }
  .sw.on { box-shadow: none; }
  .sw.on::before { box-shadow: 0 0 0 2px var(--paper); }
  /* panels, the whisper, the mirror */
  .motion-btn { display: flex; align-items: center; width: max-content; min-height: 44px; padding: 0 14px; margin: 8px 0 2px; }
  .sp-off { height: 44px; padding: 0 14px; }
  .track { min-height: 44px; }
  .sp-foot input[type=range] { height: 44px; }
  .w-x { top: 0; right: 0; width: 44px; height: 44px; }
  .w-body { padding-right: 44px; }
  .mirror button { height: 44px; min-width: 44px; }
  /* the hidden Specks and the studio's rings answer a whole fingertip */
  .hunt::before { left: -24px; top: -24px; width: 48px; height: 48px; }
  .spot::before { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
  /* a press shows */
  .counter:active, .bar-link:active, .mic-chip:active, .plate-links a:active, .foot-links a:active, .paint-btn:active,
  .sp-off:active, .motion-btn:active, .track:active, .w-body:active, .mirror button:active { transform: scale(0.96); transition-duration: 0.08s; }
  html.sheet-open .strip a:active, .index-list a:active, .spot:active i { opacity: 0.72; }
}
@media (pointer: coarse) and (max-width: 760px) {
  .sound { width: 44px; }
}
/* tablets keep the chapter dots, each in a 44px target */
@media (pointer: coarse) and (min-width: 761px) {
  .strip { gap: 0; right: 5px; }
  .strip a, .strip a.on, .strip a:hover { width: 44px; height: 44px; padding: 11px; border-color: transparent; box-shadow: none; }
  html:not(.sheet-open) .strip a img { border: 1.5px solid rgba(251, 245, 234, 0.45); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
  html:not(.sheet-open) .strip a.on img, html:not(.sheet-open) .strip a:hover img { border-color: var(--paper); }
  .strip a.is-new::after { right: 8px; top: 8px; }
  .strip a span { right: 46px; }
}
@media (pointer: coarse) and (max-width: 760px) {
  .sound > .eq { align-items: center; }
}

/* panels and the chapter menu keep their scroll to themselves: the film behind them stays put */
.help-panel, .sound-panel, html.sheet-open .strip { overscroll-behavior: contain; }
@media (max-width: 760px) {
  /* the help sheet spans the phone like the sound sheet (the 360px desktop width came later and won) */
  .help-panel { width: auto; }
  /* tall sheets stop below the bar, notch or not, so the ? that closes them stays in reach */
  .help-panel, html.sheet-open .strip { max-height: calc(100svh - 76px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  /* the mirror hangs below the bar, notch or not */
  .mirror { top: calc(max(12px, env(safe-area-inset-top)) + 54px); }
  /* past the film there is nothing to count, so no empty slot in the bar */
  html.past-film .counter { display: none; }
  /* the icon-only sound button reads as an equalizer at rest, not as four dots */
  .sound:not(.playing) .eq i:nth-child(1) { height: 5px; }
  .sound:not(.playing) .eq i:nth-child(2) { height: 9px; }
  .sound:not(.playing) .eq i:nth-child(3) { height: 6px; }
  .sound:not(.playing) .eq i:nth-child(4) { height: 11px; }
}

/* Departure Mono is drawn on an 11px grid: nothing a thumb has to read goes below it */
@media (pointer: coarse), (max-width: 760px) {
  .hint, .pull-cue, .t-mood, .sp-foot .eyebrow, .sp-off, .motion-btn, .mv, .w-eye, .w-line kbd, .toast b, .scrub-dial,
  .chips > *, .new, .ix-tag, .foot-note, .stroke-tip span, .mirror figcaption { font-size: 11px; }
  .name-in input::placeholder { font-size: 11px; }
}

/* landscape phones: the chapter menu, the panels and the plates fit between the notch and the home bar */
@media (max-height: 520px) and (orientation: landscape) {
  html.sheet-open .strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px;
    width: min(760px, calc(100vw - 2 * max(16px, env(safe-area-inset-left), env(safe-area-inset-right))));
    max-height: calc(100svh - 16px); overflow: auto;
  }
  html.sheet-open .strip a { min-height: 44px; padding: 4px 10px 4px 4px; gap: 8px; }
  html.sheet-open .strip a img { width: 32px; height: 32px; }
  html.sheet-open .strip a span { font-size: 14px; }
  html.sheet-open .strip a.is-new::after { right: 6px; top: 6px; }
  .sound-panel, .help-panel { right: max(16px, env(safe-area-inset-right)); max-height: calc(100svh - 72px - env(safe-area-inset-bottom, 0px)); overflow: auto; }
  .track { min-height: 44px; padding: 6px 10px; }
  .plate { bottom: max(10px, env(safe-area-inset-bottom)); max-width: calc(100vw - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right))); }
  .hint { bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* the easel: a 16px name field, so iOS keeps the page still when you start typing,
   and words that stay legible over the pale canvas */
@media (pointer: coarse), (max-width: 760px) {
  .name-in input { font-size: 16px; }
}
#wall .cap .cap-eye { text-shadow: 0 1px 2px rgba(8, 5, 3, 0.9), 0 0 12px rgba(8, 5, 3, 0.7); }

/* ------------------------------------------------------------ design round 2 */
@media (min-width: 761px) { .pull-cue { transform-origin: left center; } }
/* the sound picker: room for its header on one line */
.sound-panel { width: 340px; }
.sp-head .eyebrow { white-space: nowrap; }
@media (max-width: 760px) { .sound-panel { width: auto; } }
/* words never end on a stub */
.plate-desc { text-wrap: balance; }
.index-head p { text-wrap: pretty; }
@media (max-width: 480px) {
  .foot-links, .plate-end .plate-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-links a, .plate-end .plate-links a { justify-content: center; text-align: center; }
}
/* landscape phones: the hero's label would land on the bright shelf */
@media (max-height: 520px) and (orientation: landscape) { .hero .cap-eye { display: none; } }


/* the chapter rail with a mouse: a quiet tick per chapter; the painting and its name come up on hover */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  html:not(.sheet-open) .strip { gap: 0; padding: 8px 4px; border-radius: 999px; background: rgba(15, 10, 8, 0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  html:not(.sheet-open) .strip a, html:not(.sheet-open) .strip a.on { width: 30px; height: 24px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; transform: none; display: flex; align-items: center; justify-content: center; }
  html:not(.sheet-open) .strip a::before { content: ''; width: 12px; height: 2px; border-radius: 1px; background: rgba(251, 245, 234, 0.5); transition: width 0.25s cubic-bezier(.2, 1, .3, 1), background 0.2s; }
  html:not(.sheet-open) .strip a:hover::before, html:not(.sheet-open) .strip a:focus-visible::before { width: 18px; background: rgba(251, 245, 234, 0.85); }
  html:not(.sheet-open) .strip a.on::before { width: 24px; background: var(--paper); }
  html:not(.sheet-open) .strip a.is-new::after { right: auto; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; }
  html:not(.sheet-open) .strip a img { position: absolute; right: 38px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 1.5px solid var(--paper); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateX(6px) scale(0.9); transition: opacity 0.2s, transform 0.25s; pointer-events: none; }
  html:not(.sheet-open) .strip a span { right: 84px; }
  html:not(.sheet-open) .strip a:hover img, html:not(.sheet-open) .strip a:focus-visible img { opacity: 1; transform: none; }
}

/* 404: nothing painted here, in front of the empty easel */
body.nf { background: linear-gradient(rgba(15, 10, 8, 0.62), rgba(15, 10, 8, 0.9)), url(/film/p/wall.webp) center / cover no-repeat fixed; }
@media (max-width: 699px) { body.nf { background-image: linear-gradient(rgba(15, 10, 8, 0.62), rgba(15, 10, 8, 0.9)), url(/film/p/wall-m.webp); } }
.nf .after { background: transparent; }

/* ------------------------------------------------------------ usability round 2 */
/* every studio link answers a fingertip-sized target, with a mouse as well as a finger */
.spot::before { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
/* the ghost fingertip stands out on busy paint */
.w-ghost .gh-dot { box-shadow: inset 0 0 0 2px #fbf5ea, 0 0 0 4px rgba(15, 10, 8, 0.45), 0 0 0 5px rgba(251, 245, 234, 0.35), 0 6px 22px rgba(0, 0, 0, 0.5); }
/* with less motion the painting cannot be pulled, so it is not offered */
@media (prefers-reduced-motion: reduce) { .pull-cue { display: none !important; } }
/* Dry is how the paint behaves, said once under the title */
.moves-note { margin: 0 8px 10px; font: 400 13.5px/1.45 var(--sans); color: var(--muted); }
.help-panel.calm .moves-note { display: none; }
/* narrow screens: what anyone can do comes first, the hand moves after */
@media (max-width: 899px) {
  .mv-cols { display: flex; flex-direction: column; }
  .mv-cols > .mv-around { order: -1; margin-top: 0; padding-top: 0; border-top: 0; }
  .mv-cols > .mv-hands { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .help-panel.calm .mv-cols > .mv-turn { margin-top: 8px; }
}

/* ------------------------------------------------------------ developer round 2 */
/* without WebGL only the painting on screen and its neighbours are laid out, so the rest never load */
html.no-gl .scene:not(.show):not(.near) .still { display: none; }
/* chapters off screen keep their small loops still: nothing animates where nobody is looking */
.scene:not(.is-active) .stage *, html.past-film .stage * { animation-play-state: paused !important; }

/* ------------------------------------------------------------ mobile round 2 */
/* landscape phones: the mirror and the sound picker fit between the notch and the home bar */
@media (max-height: 520px) and (orientation: landscape) {
  .mirror { left: max(12px, env(safe-area-inset-left)); top: 58px; width: 116px; padding: 6px 6px 0; }
  .mirror canvas { width: 104px; height: 132px; }
  .mirror figcaption span, .sound-panel .sp-note { display: none; }
  .sound-panel { width: min(560px, calc(100vw - 2 * max(16px, env(safe-area-inset-right)))); }
  .sound-panel .tracks { grid-template-columns: 1fr 1fr; }
}
.mv-h { font-size: 11px; }
.strip-index { min-height: 44px; }
.foot-mail { padding: 5px 0; }
/* the help sheet stops lower on a phone, so its close button is in thumb's reach */
@media (max-width: 760px) { .help-panel { max-height: 72svh; } }

/* ------------------------------------------------------------ design round 3 */
/* the name and the chapter travel together on the left; the counter's left edge never moves */
.bar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* phones: the groups dissolve into one bar, the name on the left and every control together on the right */
@media (max-width: 480px) {
  .bar-left, .bar-right { display: contents; }
  .bar { justify-content: flex-start; gap: 6px; }
  .bar .brand { margin-right: auto; }
}
/* the smallest phones, once a Speck is found: the Index pill steps aside (it stays in the chapter menu), so every control keeps a full fingertip */
@media (max-width: 380px) { .specks:not([hidden]) ~ .bar-index { display: none; } }
/* one caption line on wide screens: above the tallest plate, the same in every chapter */
@media (min-width: 761px) and (min-height: 521px) {
  .cap:not(.cap-title) { bottom: max(13vh, calc(var(--ph-max, var(--ph, 0px)) + 60px + var(--safe-b))); }
}
/* pale paintings: the band the words sit on runs deeper, so they read like everywhere else */
html[data-scene="speck"] .grain::after, html[data-scene="salubata"] .grain::after, html[data-scene="wall"] .grain::after, html[data-scene="end"] .grain::after {
  background: linear-gradient(to top, rgba(8, 5, 3, 0.9), rgba(8, 5, 3, 0.62) 45%, rgba(8, 5, 3, 0));
}
/* the film ends without a seam: the list's shade is deep, textured like the list, and has no edge */
.after::before {
  top: -45vh; height: 45vh;
  background: linear-gradient(rgba(15, 10, 8, 0.62), rgba(15, 10, 8, 0.62)), url(film/texture.webp) center bottom / 1400px auto repeat, var(--ink);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 88%); mask-image: linear-gradient(to bottom, transparent, #000 88%);
}
.down.off { opacity: 0 !important; pointer-events: none; }
/* Departure Mono is drawn on an 11px grid: every label sits on it, at every size */
.eyebrow, .plate-no, .counter, .bar-link, .specks, .mv, .toast b, .paint-btn, .motion-btn, .index-group, .cap-eye, .hint, .ix-tag, .chips > *, .foot-links a, .plate-links a, .strip a span, .spot span, .down, .foot-note, .sp-off, .t-mood, .pull-cue, .w-eye, .new, .mv-h, .help-btn { font-size: 11px; }
/* phone grids come out even */
@media (max-width: 760px) { html.sheet-open .strip a[data-go="end"] { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-links a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* wide screens: the hint lines up under the name */
@media (min-width: 761px) and (min-aspect-ratio: 11/10) {
  .hero .hint { left: 47vw; width: auto; max-width: min(46vw, 760px); transform: none; justify-content: flex-start; text-align: left; }
}
/* the smallest phones: the hero's label would print over the painted hoodie */
@media (max-width: 379px) { .hero .cap-eye { display: none; } }
/* the hidden Specks hide: a small dot at rest, and only the glint gives one away */
.hunt i { left: -3.5px; top: -3.5px; width: 7px; height: 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }

/* ------------------------------------------------------------ usability round 3 */
/* every chapter ends in a link to the next, for the keyboard only: it shows when it has focus */
.next-chapter { position: absolute; left: var(--edge); top: calc(max(16px, env(safe-area-inset-top)) + 56px); z-index: 25;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.next-chapter:focus, .next-chapter:focus-visible { width: auto; height: 36px; clip-path: none; overflow: visible;
  display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 400 11px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; text-decoration: none; }
/* phones: a toast sits on the bar for a moment, never on the painting (and so never on a face) */
@media (max-width: 760px) {
  .toast { top: max(8px, env(safe-area-inset-top)); left: 10px; right: 10px; max-width: none; transform: translate(0, -8px);
    padding: 10px 14px; border-radius: 22px; min-height: 44px; display: flex; align-items: center; gap: 8px; text-align: left; z-index: 60; }
  .toast.in { transform: none; }
  .toast b { display: inline; margin: 0; }
}
/* wide screens: when a face is under the usual place, the toast moves to the lower right */
@media (min-width: 761px) { .toast.alt { top: auto; bottom: calc(28px + var(--safe-b)); left: auto; right: calc(var(--edge) + 44px); transform: translate(0, 10px); } .toast.alt.in { transform: none; } }

/* ------------------------------------------------------------ mobile round 3 */
/* the chapter on screen sits above the boxes of the chapters after it, so its links and Specks always take a tap */
.stage { z-index: 1; }
/* a swipe on a sheet or behind the chapter menu never scrolls the film underneath */
@media (max-width: 760px) { .sound-panel { touch-action: none; } }
html.sheet-open { touch-action: none; }
/* short phones: the hero's label would print over the painted hoodie */
@media (max-width: 760px) and (max-height: 700px) { .hero .cap-eye { display: none; } }
/* tablets: the chapter dot grows, not its tap target, so its neighbours keep a full 44px */
@media (pointer: coarse) and (min-width: 761px) {
  .strip a.on { transform: none; }
  html:not(.sheet-open) .strip a.on img { transform: scale(1.4); }
}

/* ------------------------------------------------------------ the thermometer */
/* the chapter rail is a thermometer: the chapters are its graduations, the mercury is the visitor's own temperature */
.strip .thermo { display: none; }
.thermo[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  html:not(.sheet-open) .strip {
    padding: 10px 4px 30px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(251, 245, 234, 0.14), rgba(251, 245, 234, 0.04) 45%, rgba(15, 10, 8, 0.4));
    border: 1px solid rgba(243, 230, 200, 0.24);
  }
  html:not(.sheet-open) .strip::before {
    content: ''; position: absolute; left: 50%; bottom: 14px; width: 6px; margin-left: -3px; z-index: 0; pointer-events: none;
    height: calc((100% - 28px) * var(--merc, 0.06)); border-radius: 3px;
    background: linear-gradient(to top, #c8321f, #ef6a50); box-shadow: 0 0 10px rgba(214, 64, 40, 0.5);
    transition: height 1.6s cubic-bezier(.2, .8, .2, 1);
  }
  html:not(.sheet-open) .strip a { position: relative; z-index: 1; }
  /* the bulb sits under the tube; the reading hangs at the top of the thermometer, where nothing else ever sits */
  html:not(.sheet-open) .strip .thermo:not([hidden]) { display: block; }
  .thermo-bulb { position: absolute; left: 50%; bottom: -15px; width: 28px; height: 28px; margin-left: -14px; z-index: 1; border-radius: 50%; background: radial-gradient(circle at 34% 32%, #ff9a82, #d6402a 58%, #9c2414);
    box-shadow: 0 0 0 2px rgba(15, 10, 8, 0.55), 0 0 16px rgba(214, 64, 40, 0.55); }
  .thermo-read {
    position: absolute; right: 40px; top: 2px; display: grid; gap: 4px; justify-items: end; white-space: nowrap;
    padding: 9px 12px 10px; border-radius: 14px; background: rgba(15, 10, 8, 0.55); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .thermo-t { font: 400 24px/1 var(--sans); letter-spacing: -0.03em; color: var(--paper); }
  .thermo-w, .thermo-r { font: 400 11px/1.1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; color: var(--muted); }
  .thermo-r:empty { display: none; }
  /* wide screens read the weather on the thermometer, so the hero line is not repeated */
  .hint-weather { display: none !important; }
}
.hint-weather { color: var(--paper); }
@media (prefers-reduced-motion: reduce) { html:not(.sheet-open) .strip::before { transition: none; } }

/* ------------------------------------------------------------ the painted thermometer (Higgsfield, film/thermo.webp + film/tag.webp) */
/* an antique brass thermometer painted in the film's own oil: the chapters are marks engraved in its brass,
   the live mercury rises in its glass to the visitor's temperature, and the reading is written on a paper tag tied to its top screw */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  html:not(.sheet-open) .strip {
    width: 105px; height: 446px; box-sizing: border-box; padding: 35px 0 100px; gap: 0; right: 4px;
    background: url(film/thermo.webp) center / 100% 100% no-repeat; border: 0; border-radius: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55));
  }
  html:not(.sheet-open) .strip a, html:not(.sheet-open) .strip a.on { width: 100%; height: 24px; justify-content: flex-start; }
  /* the chapter marks, engraved in the brass left of the glass */
  html:not(.sheet-open) .strip a::before {
    margin-left: 22%; width: 15%; height: 2px; border-radius: 1px;
    background: rgba(58, 28, 8, 0.75); box-shadow: 0 1px 0 rgba(255, 228, 165, 0.4);
  }
  html:not(.sheet-open) .strip a:hover::before, html:not(.sheet-open) .strip a:focus-visible::before { width: 21%; background: rgba(36, 16, 4, 0.92); }
  html:not(.sheet-open) .strip a.on::before { margin-left: 17%; width: 27%; height: 3px; background: #fff4de; box-shadow: 0 0 7px rgba(255, 240, 210, 0.85); }
  html:not(.sheet-open) .strip a.is-new::after { left: 10%; }
  html:not(.sheet-open) .strip a img { right: 74px; }
  html:not(.sheet-open) .strip a span { right: 120px; }
  /* the mercury, inside the painted glass, from the bulb up to the visitor's temperature */
  html:not(.sheet-open) .strip::before {
    left: calc(52.1% - 4px); margin-left: 0; width: 8px; bottom: 92px;
    height: calc(311px * var(--merc, 0.06) + 8px); border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, #6e0d06, #c92a17 38%, #ff7b5e 52%, #b31c0f 72%, #5e0a04);
    box-shadow: 0 0 6px rgba(201, 42, 23, 0.45);
  }
  .thermo-bulb { display: none; }
  /* the reading: a paper tag tied to the top screw */
  html:not(.sheet-open) .strip .thermo:not([hidden]) {
    display: block; position: absolute; right: 46%; top: -46px; width: 260px; height: 117px; z-index: 2; pointer-events: none;
    background: url(film/tag.webp) center / 100% 100% no-repeat;
    transform-origin: 97% 50%; transform: rotate(calc(-7deg + var(--sw, 0deg)));
    animation: tag-breeze 5.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
  }
  .thermo-read {
    position: absolute; left: 8%; right: 33%; top: 20%; bottom: auto; display: grid; gap: 5px; justify-items: start;
    padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: left;
  }
  /* while a chapter mark is being pointed at, the tag swings aside so its preview reads clearly */
  html:not(.sheet-open) .strip .thermo:not([hidden]) { transition: opacity 0.35s ease, translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  html:not(.sheet-open) .strip .thermo.arriving { opacity: 0; }
  html:not(.sheet-open) .strip:has(a:hover, a:focus-visible) .thermo:not([hidden]) { opacity: 0; translate: -4px -10px; }
  html:not(.sheet-open) .strip { transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
  html:not(.sheet-open) .strip.rail-shy:not(:hover):not(:focus-within) { transform: translateY(-50%) translateX(65px); }
  html:not(.sheet-open) .strip.tag-shy .thermo:not([hidden]) { opacity: 0; translate: -4px -10px; }
  /* typed straight onto the paper: the ink takes the grain of the painted tag */
  .thermo-read { mix-blend-mode: multiply; }
  .thermo-t { font: 400 31px/0.95 var(--sans); letter-spacing: -0.035em; color: #2a170a; }
  /* Speck is new: a small pink enamel stud set in the brass beside its mark */
  html:not(.sheet-open) .strip a.is-new::after { left: 9%; width: 7px; height: 7px; margin-top: -3.5px; box-shadow: 0 0 0 1.5px rgba(48, 20, 6, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.55); }
  .thermo-w, .thermo-r {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 400 11px/1.15 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase; color: #5b3818;
  }
}

/* ------------------------------------------------------------ the thermometer is alive */
/* the mercury rises from the bulb and overshoots, wanders around the true reading like a live instrument,
   sloshes when you scroll (--slosh, from film-ui.js) and climbs under your hand; a glint runs down the glass now and then */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  html:not(.sheet-open) .strip::before {
    transform-origin: 50% 100%; transform: scaleY(var(--slosh, 1));
    transition: height 2.6s cubic-bezier(0.34, 1.45, 0.64, 1);
    animation: merc-live 8s ease-in-out infinite;
  }
  html:not(.sheet-open) .strip:hover::before { height: calc(311px * min(1, var(--merc, 0.06) + 0.07) + 8px); }
  html:not(.sheet-open) .strip::after {
    content: ""; position: absolute; left: calc(52.1% - 5px); width: 10px; top: 28px; height: 330px; border-radius: 5px;
    pointer-events: none; z-index: 1; mix-blend-mode: screen;
    background: linear-gradient(to bottom, rgba(255, 248, 228, 0) 38%, rgba(255, 248, 228, 0.75) 50%, rgba(255, 248, 228, 0) 62%) 0 100% / 100% 300% no-repeat;
    animation: glass-glint 9s ease-in-out 3s infinite;
  }
}
@keyframes merc-live {
  0%, 100% { scale: 1 1; }
  14% { scale: 1 1.04; }
  29% { scale: 1 0.97; }
  45% { scale: 1 1.06; }
  61% { scale: 1 1.005; }
  77% { scale: 1 1.045; }
  90% { scale: 1 0.98; }
}
@keyframes glass-glint { 0% { background-position: 0 100%; } 22%, 100% { background-position: 0 0; } }
@keyframes tag-breeze { from { rotate: -1deg; } to { rotate: 1.4deg; } }
@media (prefers-reduced-motion: reduce) {
  html:not(.sheet-open) .strip .thermo:not([hidden]), html:not(.sheet-open) .strip::before { animation: none; }
  html:not(.sheet-open) .strip::after { display: none; }
}

/* ------------------------------------------------------------ the thermometer, at every size */
/* laptops and small windows: the rail and its tag scale with the window, and captions and cards keep clear of it */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  :root { --tk: 1; --rail-w: calc(109px * var(--tk)); }
  html:not(.sheet-open) .strip { transform: translateY(-50%) scale(var(--tk)); transform-origin: 100% 50%; }
  html:not(.sheet-open) .strip.rail-shy:not(:hover):not(:focus-within) { transform: translateY(-50%) translateX(calc(65px * var(--tk))) scale(var(--tk)); }
  /* chapter previews and the tag's ink keep their real size however small the rail gets */
  html:not(.sheet-open) .strip a span, html:not(.sheet-open) .strip a img { scale: calc(1 / var(--tk)); transform-origin: 100% 50%; }
  html:not(.sheet-open) .strip .thermo { scale: calc(max(0.85, var(--tk)) / var(--tk)); }
  .cap { width: min(1040px, 84vw, calc(100vw - 2 * (var(--rail-w) + 28px))); }
  .hero .cap { width: min(46vw, 760px, calc(53vw - var(--rail-w) - 28px)); }
  .plate { max-width: calc(100vw - var(--edge) - var(--rail-w) - 28px); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 761px) and (max-width: 1279px), (hover: hover) and (pointer: fine) and (min-width: 761px) and (max-height: 819px) { :root { --tk: 0.84; } }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) and (max-width: 1023px), (hover: hover) and (pointer: fine) and (min-width: 761px) and (max-height: 700px) { :root { --tk: 0.7; } }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) and (max-width: 880px), (hover: hover) and (pointer: fine) and (min-width: 761px) and (max-height: 600px) { :root { --tk: 0.6; } }

/* phones and tablets: the same painted thermometer with its tag, a small still life under the name */
.wx { display: none; }
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .wx:not([hidden]) { display: flex; align-items: flex-start; justify-content: center; width: max-content; margin: 2px auto 12px; }
  .hero .cap ~ .hint .wx:not([hidden]), .hint .wx:not([hidden]) { text-transform: none; letter-spacing: 0; }
  .wx-tag {
    position: relative; flex: none; width: 232px; height: 104px; margin-right: -12px; z-index: 1;
    background: url(film/tag.webp) center / 100% 100% no-repeat;
    transform-origin: 97% 50%; transform: rotate(-5deg);
    animation: tag-breeze 5.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  }
  .wx-tag > * { position: absolute; left: 8%; right: 33%; }
  .wx-t { top: 17%; font: 400 28px/0.95 var(--sans); letter-spacing: -0.05em; color: #2a170a; mix-blend-mode: multiply; text-shadow: none; }
  .wx-w, .wx-r { font: 400 10px/1.2 var(--eyebrow); letter-spacing: 0.04em; text-transform: uppercase; color: #5b3818; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; mix-blend-mode: multiply; text-shadow: none; }
  .wx-w { top: 52%; }
  .wx-r { top: 66%; }
  .wx-tube {
    position: relative; flex: none; width: 26px; height: 110px; margin-top: 47px;
    background: url(film/thermo.webp) center / 100% 100% no-repeat;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  }
  .wx-tube::before {
    content: ""; position: absolute; left: calc(52.1% - 1.2px); width: 2.4px; bottom: 20.6%;
    height: calc(69.7% * var(--merc, 0.06) + 1.8%); border-radius: 1.2px 1.2px 0 0;
    background: linear-gradient(90deg, #6e0d06, #d73a22 45%, #b31c0f);
    transform-origin: 50% 100%;
    transition: height 2.6s cubic-bezier(0.34, 1.45, 0.64, 1);
    animation: merc-live 8s ease-in-out infinite;
  }
  /* the line stays for screen readers; the still life is what you see */
  .wx:not([hidden]) + .hint-weather { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* tablets: the name and its line rise above the still life instead of sitting at a fixed height */
@media (hover: none) and (min-width: 761px), (pointer: coarse) and (min-width: 761px) {
  .hero .cap-title { bottom: max(14vh, calc(var(--ph, 0px) + 44px + var(--safe-b))); }
}
/* a phone on its side is too short for the still life: the line comes back */
@media (max-height: 500px) {
  .wx:not([hidden]) { display: none; }
  .wx:not([hidden]) + .hint-weather { position: static !important; width: auto; height: auto; overflow: visible; clip-path: none; }
}
@media (prefers-reduced-motion: reduce) { .wx-tag, .wx-tube::before { animation: none; } }

/* ------------------------------------------------------------ the visitor's sky, painted around the tag (Higgsfield, film/sky) */
/* rain falls on the tag and beads run down the brass, drizzle is finer, a storm flashes, snow drifts, fog rolls past,
   clouds drift, the sun turns slowly behind the tag, the moon and its stars come out at night (html[data-sky]) */
.sky { position: absolute; pointer-events: none; display: none; }
.s-sun, .s-moon, .s-cloud, .s-storm, .s-bolt, .s-flash, .s-fall, .s-mist, .s-bead { display: none; position: absolute; }
.s-sun { background: url(film/sky/sun.webp) center / contain no-repeat; animation: sun-turn 70s linear infinite; }
.s-sun::after { content: ""; position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, 0.42), rgba(255, 160, 60, 0) 64%); animation: sun-glow 4.5s ease-in-out infinite alternate; }
.s-moon { background: url(film/sky/moon.webp) center / contain no-repeat; }
.s-moon b { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 6px 1px rgba(255, 246, 220, 0.8); animation: twinkle 3.2s ease-in-out infinite; }
.s-moon b:nth-child(1) { left: 96%; top: 8%; animation-delay: -1.1s; }
.s-moon b:nth-child(2) { left: 112%; top: 46%; animation-delay: -2.3s; }
.s-moon b:nth-child(3) { left: -14%; top: 72%; animation-delay: -0.4s; }
.s-cloud { background: url(film/sky/cloud.webp) center / contain no-repeat; animation: cloud-drift 9s ease-in-out infinite alternate; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.s-storm { background: url(film/sky/storm.webp) center / contain no-repeat; animation: cloud-drift 7s ease-in-out infinite alternate; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
html[data-sky="drizzle"] .s-cloud { filter: grayscale(0.55) brightness(0.78) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
html[data-sky="snow"] .s-cloud { filter: grayscale(0.75) brightness(1.02) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
html[data-sky="fog"] .s-cloud { filter: grayscale(0.85) brightness(0.86); opacity: 0.7; }
.s-bolt { background: url(film/sky/bolt.webp) center / contain no-repeat; opacity: 0; animation: bolt 7.5s linear 2s infinite; }
.s-flash { inset: -10%; background: radial-gradient(ellipse at 55% 35%, rgba(235, 228, 255, 0.55), rgba(235, 228, 255, 0) 62%); opacity: 0; animation: bolt 7.5s linear 2s infinite; }
.s-fall { overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.s-fall .d { position: absolute; top: 0; left: var(--x); }
html[data-sky="drizzle"] .s-fall .d, html[data-sky="rain"] .s-fall .d, html[data-sky="storm"] .s-fall .d {
  width: 2.2px; height: 22px; border-radius: 2px; rotate: 6deg;
  background: linear-gradient(to bottom, rgba(222, 236, 255, 0), rgba(232, 242, 255, 1));
  box-shadow: 0 0 0 0.7px rgba(22, 34, 58, 0.5), 0 0 4px rgba(200, 222, 255, 0.45);
  animation: rain-fall calc(var(--du) * 0.72s) linear var(--dl) infinite;
}
html[data-sky="drizzle"] .s-fall .d { width: 1.5px; height: 12px; opacity: 0.85; animation-duration: calc(var(--du) * 1.25s); }
html[data-sky="storm"] .s-fall .d { width: 2.6px; height: 28px; rotate: 12deg; animation-name: rain-slant; animation-duration: calc(var(--du) * 0.48s); }
html[data-sky="snow"] .s-fall .d {
  width: calc(13px * var(--s)); height: calc(13px * var(--s));
  background: url(film/sky/flake.webp) center / contain no-repeat;
  animation: snow-fall calc(var(--du) * 6.5s) linear var(--dl) infinite;
}
.s-mist { background: url(film/sky/mist.webp) center / 100% 100% no-repeat; opacity: 0.85; animation: mist-drift 13s ease-in-out infinite alternate; }
.s-mist.b { opacity: 0.6; animation-duration: 17s; animation-direction: alternate-reverse; }
.s-bead { width: 7px; height: 10px; background: url(film/sky/drop.webp) center / contain no-repeat; animation: bead-slide 11s ease-in infinite; }
.s-bead:nth-of-type(2) { animation-duration: 14s; animation-delay: -5s; }
.s-bead:nth-of-type(3) { animation-duration: 9s; animation-delay: -8s; }
html[data-sky="sun"] .s-sun, html[data-sky="partly"] .s-sun,
html[data-sky="night"] .s-moon, html[data-sky="partly-night"] .s-moon,
html[data-sky="partly"] .s-cloud, html[data-sky="partly-night"] .s-cloud, html[data-sky="cloudy"] .s-cloud,
html[data-sky="drizzle"] .s-cloud, html[data-sky="snow"] .s-cloud, html[data-sky="fog"] .s-cloud,
html[data-sky="rain"] .s-storm, html[data-sky="storm"] .s-storm,
html[data-sky="storm"] .s-bolt, html[data-sky="storm"] .s-flash,
html[data-sky="drizzle"] .s-fall, html[data-sky="rain"] .s-fall, html[data-sky="storm"] .s-fall, html[data-sky="snow"] .s-fall,
html[data-sky="fog"] .s-mist { display: block; }
@keyframes sun-turn { to { rotate: 360deg; } }
@keyframes sun-glow { from { opacity: 0.5; scale: 0.9; } to { opacity: 1; scale: 1.08; } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; scale: 0.6; } 50% { opacity: 1; scale: 1.2; } }
@keyframes cloud-drift { from { translate: calc(var(--cdrift, 10px) * -1) 0; } to { translate: var(--cdrift, 10px) 0; } }
@keyframes rain-fall { from { translate: 0 -10px; } to { translate: var(--slant, -24px) var(--fall, 230px); } }
@keyframes rain-slant { from { translate: 0 -10px; } to { translate: calc(var(--slant, -24px) * 2) var(--fall, 230px); } }
@keyframes snow-fall { 0% { translate: 0 -8px; rotate: 0deg; } 25% { translate: var(--sway, 10px) calc(var(--fall, 230px) * 0.22); } 50% { translate: calc(var(--sway, 10px) * -0.8) calc(var(--fall, 230px) * 0.48); } 75% { translate: calc(var(--sway, 10px) * 0.9) calc(var(--fall, 230px) * 0.74); } 100% { translate: 0 var(--fall, 230px); rotate: 200deg; } }
@keyframes bolt { 0%, 85%, 100% { opacity: 0; } 86% { opacity: 1; } 87.5% { opacity: 0.12; } 89% { opacity: 1; } 92% { opacity: 0; } }
@keyframes mist-drift { from { translate: calc(var(--drift, 34px) * -1) 0; } to { translate: var(--drift, 34px) 0; } }
@keyframes bead-slide { 0% { translate: 0 0; opacity: 0; } 8% { opacity: 0.95; } 72% { translate: 0 130px; opacity: 0.95; } 100% { translate: 0 210px; opacity: 0; } }


@media (prefers-reduced-motion: reduce) {
  .sky, .sky * { animation: none !important; }
  .s-fall, .s-bolt, .s-flash, .s-bead { display: none !important; }
}

/* ------------------------------------------------------------ the studio lamp's chain: pull it and the lamp goes out */
.lamp-chain {
  position: absolute; left: 0; top: 0; width: 32px; height: 124px; margin-left: -16px; padding: 0; border: 0; background: none;
  pointer-events: auto; cursor: grab; touch-action: none; transition: opacity 0.4s;
  -webkit-tap-highlight-color: transparent;
}
.lamp-chain:active { cursor: grabbing; }
.lamp-chain i {
  display: block; width: 100%; height: 100%;
  background: url(film/sky/chain.webp) center top / auto 100% no-repeat;
  transform-origin: 50% 0; transition: transform 0.5s cubic-bezier(0.3, 1.7, 0.5, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  animation: chain-idle 7s ease-in-out 5s infinite;
}
.lamp-chain.swing i { animation: chain-swing 1.5s ease-out; }
.lamp-chain:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 8px; }
.lamp-chain.off { opacity: 0; pointer-events: none; }
@keyframes chain-swing { 0% { rotate: 0deg; } 14% { rotate: 10deg; } 32% { rotate: -8deg; } 52% { rotate: 5deg; } 72% { rotate: -2.5deg; } 100% { rotate: 0deg; } }
@keyframes chain-idle { 0%, 84%, 100% { rotate: 0deg; } 87% { rotate: 5deg; } 91% { rotate: -4deg; } 95% { rotate: 2deg; } }
@media (prefers-reduced-motion: reduce) { .lamp-chain i { animation: none !important; transition: none; } }

/* rain leaves wet spots on the paper tag, and the city sits on its own line under the weather */
html[data-sky="drizzle"] .strip .thermo, html[data-sky="rain"] .strip .thermo, html[data-sky="storm"] .strip .thermo,
html[data-sky="drizzle"] .wx-tag, html[data-sky="rain"] .wx-tag, html[data-sky="storm"] .wx-tag {
  background-image:
    radial-gradient(circle at 24% 30%, rgba(74, 46, 18, 0.24) 0 6px, rgba(74, 46, 18, 0) 7px),
    radial-gradient(circle at 51% 74%, rgba(74, 46, 18, 0.2) 0 5px, rgba(74, 46, 18, 0) 6px),
    radial-gradient(circle at 38% 52%, rgba(74, 46, 18, 0.16) 0 3px, rgba(74, 46, 18, 0) 4px),
    radial-gradient(circle at 63% 28%, rgba(74, 46, 18, 0.2) 0 4px, rgba(74, 46, 18, 0) 5px),
    url(film/tag.webp);
  background-size: auto, auto, auto, auto, 100% 100%;
  background-repeat: no-repeat;
}
.thermo-w, .wx-w { white-space: pre-line !important; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .thermo-read { top: 15%; gap: 4px; }
  .thermo-t { font-size: 29px; }
}
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .wx-t { top: 11%; }
  .wx-w { top: 42%; line-height: 1.18; }
  .wx-r { top: 73%; }
}

/* ------------------------------------------------------------ the weather lives in a stamp on the tag */
/* a small painted stamp, printed edge and all, on the paper tag: its sky takes the colour of the visitor's weather
   and the weather plays inside it (rain, drizzle, a storm that flashes, snow, fog, clouds, the sun, the moon) */
.stamp {
  position: absolute; display: block; overflow: hidden; pointer-events: none; z-index: 1;
  border-radius: 2px; rotate: 4deg;
  background: linear-gradient(#5f93db, #a8cdf2);
  box-shadow: 0 0 0 2.5px #f3e6c8, 0 0 0 3.5px rgba(96, 64, 30, 0.42), 0 3px 5px 1px rgba(40, 24, 8, 0.35);
  outline: 1.5px dotted rgba(96, 64, 30, 0.55); outline-offset: 2.5px;
  --fall: 34px; --slant: -5px; --sway: 3px; --drift: 7px; --cdrift: 2px;
}
html[data-sky="partly"] .stamp { background: linear-gradient(#6b95cf, #b4cde8); }
html[data-sky="night"] .stamp, html[data-sky="partly-night"] .stamp { background: linear-gradient(#121937, #2c3566); }
html[data-sky="cloudy"] .stamp { background: linear-gradient(#7d8aa0, #b5bfcd); }
html[data-sky="fog"] .stamp { background: linear-gradient(#9aa3ad, #ccd2d7); }
html[data-sky="drizzle"] .stamp { background: linear-gradient(#66758d, #9eabbd); }
html[data-sky="rain"] .stamp { background: linear-gradient(#45526b, #7c8aa3); }
html[data-sky="storm"] .stamp { background: linear-gradient(#20263a, #464b68); animation: stamp-flash 7.5s linear 2s infinite; }
html[data-sky="snow"] .stamp { background: linear-gradient(#9fb0c7, #dde6f0); }
.stamp .s-sun { left: 13%; top: 13%; width: 74%; height: 74%; }
html[data-sky="partly"] .stamp .s-sun { left: 0; top: 2%; width: 62%; height: 62%; }
.stamp .s-moon { left: 18%; top: 16%; width: 60%; height: 62%; }
html[data-sky="partly-night"] .stamp .s-moon { left: 4%; top: 4%; width: 54%; height: 56%; }
.stamp .s-cloud { left: 4%; top: 24%; width: 92%; height: 52%; filter: none; }
html[data-sky="partly"] .stamp .s-cloud, html[data-sky="partly-night"] .stamp .s-cloud { left: 24%; top: 44%; width: 82%; height: 44%; }
html[data-sky="drizzle"] .stamp .s-cloud, html[data-sky="snow"] .stamp .s-cloud { top: 4%; height: 46%; }
html[data-sky="fog"] .stamp .s-cloud { top: 10%; opacity: 0.55; }
.stamp .s-storm { left: 0; top: 2%; width: 100%; height: 50%; filter: none; }
.stamp .s-bolt { left: 38%; top: 34%; width: 26%; height: 64%; }
.stamp .s-fall { left: 8%; top: 42%; width: 84%; height: 58%; -webkit-mask-image: none; mask-image: none; }
html[data-sky] .stamp .s-fall .d { box-shadow: none; }
html[data-sky="drizzle"] .stamp .s-fall .d, html[data-sky="rain"] .stamp .s-fall .d { width: 1.3px; height: 8px; }
html[data-sky="storm"] .stamp .s-fall .d { width: 1.6px; height: 10px; }
html[data-sky="snow"] .stamp .s-fall .d { width: calc(7px * var(--s)); height: calc(7px * var(--s)); }
.stamp .s-mist.a { left: -30%; top: 28%; width: 160%; height: 34%; }
.stamp .s-mist.b { left: -20%; top: 58%; width: 150%; height: 30%; }
@keyframes stamp-flash { 0%, 85%, 100% { filter: none; } 86% { filter: brightness(2.1); } 87.5% { filter: brightness(1.15); } 89% { filter: brightness(1.9); } 92% { filter: none; } }
/* where the stamp sits: top right of the paper, clear of the writing and the eyelet */
.strip .thermo .stamp { left: 51%; top: 13%; width: 44px; height: 44px; }
.wx-tag .stamp { left: 50%; top: 12%; width: 38px; height: 38px; }
.wx-tag > :not(.stamp) { text-align: left; }
.wx:not([hidden]) { position: relative; }
@media (prefers-reduced-motion: reduce) { .stamp, .stamp * { animation: none !important; } .stamp .s-fall, .stamp .s-bolt { display: none !important; } }

/* ------------------------------------------------------------ the Lamp switch in the bar (while you are in the studio) */
.lamp-btn { gap: 7px; max-width: 120px; overflow: hidden; transition: background 0.2s, border-color 0.2s, opacity 0.3s, max-width 0.35s, padding 0.35s, margin 0.35s, border-width 0.35s; }
.lamp-btn.away { opacity: 0; max-width: 0; padding-left: 0; padding-right: 0; border-width: 0; margin-left: -8px; pointer-events: none; }
.bulb { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 8px 2px rgba(255, 190, 90, 0.75); transition: background 0.3s, box-shadow 0.3s; }
.lamp-btn[aria-pressed="false"] .bulb { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(251, 245, 234, 0.6); }
@media (max-width: 760px) {
  .lamp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lamp-btn { width: 34px; padding: 0; justify-content: center; }
  .lamp-btn.away { width: 0; }
}
@media (max-width: 400px) { .bar:has(.lamp-btn:not(.away)) .counter { display: none; } }

/* the chain says what it does when you point at it */
.lc-tip {
  position: absolute; left: 30px; bottom: 6px; white-space: nowrap; pointer-events: none;
  padding: 6px 9px; border-radius: 6px; background: rgba(15, 10, 8, 0.72); color: var(--paper);
  font: 400 10px/1 var(--eyebrow); letter-spacing: var(--t-eyebrow); text-transform: uppercase;
  opacity: 0; translate: -4px 0; transition: opacity 0.2s, translate 0.2s;
}
.lamp-chain:hover .lc-tip, .lamp-chain:focus-visible .lc-tip { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------ the tag hangs from the thermometer's bottom screw */
/* a tag hangs below what holds it: a twisted red cord loops round the screw's shank under its head (film/sky/screw.webp,
   cut from the same painting, sits on top of it), both strands run taut to the brass eyelet at the top of the tag, one in
   front of the paper and one behind it, and the whole thing swings from the screw (--sw) like the pendulum it is */
.strip .screw-o, .wx .screw-o { display: none; }
.hang:has(.thermo[hidden]) { display: none; }
.hang:has(.thermo.arriving) { opacity: 0; }
html[data-sky="drizzle"], html[data-sky="rain"], html[data-sky="storm"] {
  --wet: radial-gradient(circle at 24% 62%, rgba(74, 46, 18, 0.24) 0 6px, rgba(74, 46, 18, 0) 7px),
         radial-gradient(circle at 52% 84%, rgba(74, 46, 18, 0.2) 0 5px, rgba(74, 46, 18, 0) 6px),
         radial-gradient(circle at 40% 48%, rgba(74, 46, 18, 0.16) 0 3px, rgba(74, 46, 18, 0) 4px),
         radial-gradient(circle at 64% 70%, rgba(74, 46, 18, 0.2) 0 4px, rgba(74, 46, 18, 0) 5px);
}
.hang .cord { position: absolute; overflow: visible; pointer-events: none; filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.55)); }
.hang .cord.back { z-index: 1; }
.hang .cord.front { z-index: 3; }
@keyframes hang-in { 0% { rotate: 18deg; } 20% { rotate: -11deg; } 40% { rotate: 6deg; } 60% { rotate: -3.5deg; } 80% { rotate: 1.5deg; } 100% { rotate: 0deg; } }

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  :root { --rail-w: calc(76px + 50.5px * var(--tk) + 120px * max(0.85, var(--tk))); }
  /* the thermometer stands under the bar, a little in from the edge, so its tag has room to hang */
  html:not(.sheet-open) .strip { top: 84px; right: 76px; transform: scale(var(--tk)); transform-origin: 100% 0; }
  html:not(.sheet-open) .strip.rail-shy:not(:hover):not(:focus-within) { transform: translateX(calc(76px + 65px * var(--tk))) scale(var(--tk)); }
  html:not(.sheet-open) .strip .hang {
    position: absolute; left: 51.9%; top: 96.05%; width: 0; height: 0; z-index: 3;
    transform-origin: 0 0; transform: rotate(var(--sw, 0deg));
    scale: calc(max(0.85, var(--tk)) / var(--tk));
    animation: tag-breeze 5.5s ease-in-out infinite alternate;
    transition: opacity 0.35s ease;
  }
  html:not(.sheet-open) .strip .hang .thermo:not([hidden]) {
    display: block; position: absolute; left: -120px; top: 27px; right: auto; width: 240px; height: 124px; z-index: 2;
    transform: none; rotate: none; scale: none; translate: none; animation: none; transform-origin: 50% 0; opacity: 1;
    background-image: var(--wet, linear-gradient(transparent, transparent)), url(film/hangtag.webp);
    background-size: 100% 100%; background-repeat: no-repeat; background-position: center;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
  }
  html:not(.sheet-open) .strip:has(a:hover, a:focus-visible) .hang .thermo:not([hidden]),
  html:not(.sheet-open) .strip.tag-shy .hang .thermo:not([hidden]) { opacity: 1; translate: none; }
  html:not(.sheet-open) .strip.tag-shy .hang, html:not(.sheet-open) .strip.rail-shy .hang { opacity: 0; }
  html:not(.sheet-open) .strip .screw-o {
    display: block; position: absolute; left: 51.9%; top: 96.05%; width: 21.9px; height: 21.9px; margin: -10.95px 0 0 -10.95px;
    z-index: 4; pointer-events: none; background: url(film/sky/screw.webp) center / 100% 100% no-repeat;
  }
  html:not(.sheet-open) .strip .hang .thermo-read { left: 9%; right: 33%; top: 30%; gap: 3px; }
  html:not(.sheet-open) .strip .hang .thermo-t { font-size: 27px; }
  html:not(.sheet-open) .strip .hang .thermo .stamp { left: 70%; top: 34%; width: 42px; height: 42px; }
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .wx:not([hidden]) { display: block; position: relative; width: 220px; height: 252px; margin: 6px auto 10px; }
  .wx .wx-tube { position: absolute; left: calc(50% - 15px); top: 0; width: 30px; height: 127.4px; margin: 0; }
  .wx .hang {
    position: absolute; left: calc(50% + 0.57px); top: 122.4px; width: 0; height: 0; z-index: 1;
    transform-origin: 0 0; transform: rotate(var(--sw, 0deg));
    animation: hang-in 2.4s ease-out, tag-breeze 5.5s ease-in-out 2.4s infinite alternate;
  }
  .wx .hang .wx-tag {
    position: absolute; left: -100px; top: 20px; width: 200px; height: 103px; margin: 0; z-index: 2;
    transform: none; rotate: none; animation: none;
    background-image: var(--wet, linear-gradient(transparent, transparent)), url(film/hangtag.webp);
    background-size: 100% 100%; background-repeat: no-repeat; background-position: center;
  }
  .wx .screw-o {
    display: block; position: absolute; left: calc(50% + 0.57px); top: 122.4px; width: 6.26px; height: 6.26px; margin: -3.13px 0 0 -3.13px;
    z-index: 3; background: url(film/sky/screw.webp) center / 100% 100% no-repeat;
  }
  .wx .hang .wx-tag > :not(.stamp) { left: 9%; right: 33%; text-align: left; }
  .wx .hang .wx-t { top: 27%; font-size: 23px; }
  .wx .hang .wx-w { top: 54%; font-size: 9.5px; }
  .wx .hang .wx-r { top: 80%; font-size: 9.5px; }
  .wx .hang .wx-tag .stamp { left: 70%; top: 33%; width: 35px; height: 35px; }
}
@media (max-height: 500px) { .wx:not([hidden]) { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .hang { animation: none !important; } }

/* ------------------------------------------------------------ the weather happens on the paper (no frame, no picture) */
.wfx {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url(film/hangtag.webp) center / 100% 100% no-repeat; mask: url(film/hangtag.webp) center / 100% 100% no-repeat;
}
.wfx i { position: absolute; display: block; }
.thermo-read, .wx-tag > .wx-t, .wx-tag > .wx-w, .wx-tag > .wx-r { z-index: 1; }
.wx .hang .wx-tag > .wfx { left: 0; right: 0; top: 0; bottom: 0; }
html[data-sky="drizzle"], html[data-sky="rain"], html[data-sky="storm"] { --wet: linear-gradient(transparent, transparent); }
/* rain streaks across the tag */
.wfx .d {
  left: var(--x); top: -18%; width: 1.5px; height: 16%; border-radius: 1px; rotate: 8deg;
  background: linear-gradient(to bottom, rgba(58, 84, 122, 0), rgba(58, 84, 122, 0.62));
  animation: wfx-fall var(--du) linear var(--dl) infinite;
}
html[data-sky="drizzle"] .wfx .d { width: 1px; height: 10%; opacity: 0.75; }
html[data-sky="storm"] .wfx .d { width: 1.8px; height: 22%; rotate: 14deg; }
@keyframes wfx-fall { from { translate: 0 0; } to { translate: -14px 150px; } }
/* where a drop lands, a wet spot blooms and dries */
.wfx .s {
  left: var(--x); top: var(--y); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 58, 24, 0.32), rgba(92, 58, 24, 0.13) 55%, rgba(92, 58, 24, 0) 72%);
  scale: var(--z); opacity: 0; animation: wfx-spot var(--du) ease-out var(--dl) infinite;
}
@keyframes wfx-spot { 0% { opacity: 0; transform: scale(0.15); } 6% { opacity: 1; transform: scale(1); } 55% { opacity: 0.85; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.18); } }
/* a drop beads on the paper and runs down it, leaving a wet trail */
.wfx .b {
  left: var(--x); top: var(--y); width: 7px; height: 10px; margin-left: -3.5px; opacity: 0;
  background: url(film/sky/drop.webp) center / contain no-repeat;
  animation: wfx-bead var(--du) ease-in var(--dl) infinite;
}
.wfx .b::before {
  content: ""; position: absolute; left: 50%; bottom: 55%; width: 2.6px; margin-left: -1.3px; height: 0; border-radius: 2px;
  background: linear-gradient(to top, rgba(92, 58, 24, 0.3), rgba(92, 58, 24, 0));
  animation: wfx-trail var(--du) ease-in var(--dl) infinite;
}
@keyframes wfx-bead { 0% { opacity: 0; translate: 0 0; scale: 0.4; } 8% { opacity: 1; scale: 1; } 20% { translate: 0 2px; } 85% { opacity: 1; translate: 0 46px; } 100% { opacity: 0; translate: 0 52px; } }
@keyframes wfx-trail { 0%, 8% { height: 0; } 20% { height: 2px; } 85%, 100% { height: 46px; } }
/* a storm lights the whole tag */
.wfx .flash { left: 0; top: 0; right: 0; bottom: 0; background: rgba(255, 252, 240, 0.9); mix-blend-mode: screen; opacity: 0; animation: bolt 6.5s linear 1.5s infinite; }
/* snow drifts down the paper; some of it settles and melts */
.wfx .f {
  left: var(--x); top: -10%; width: calc(9px * var(--z)); height: calc(9px * var(--z));
  background: url(film/sky/flake.webp) center / contain no-repeat; filter: drop-shadow(0 0 1px rgba(56, 78, 112, 0.7));
  animation: wfx-snow var(--du) linear var(--dl) infinite;
}
@keyframes wfx-snow { 0% { translate: 0 0; rotate: 0deg; } 25% { translate: 6px 32px; } 50% { translate: -5px 66px; } 75% { translate: 5px 100px; } 100% { translate: 0 136px; rotate: 180deg; } }
.wfx .s.melt { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
/* fog rolls across */
.wfx .mist { left: -40%; width: 180%; height: 46%; background: url(film/sky/mist.webp) center / 100% 100% no-repeat; opacity: 0.85; animation: wfx-drift 11s ease-in-out infinite alternate; }
.wfx .mist.a { top: 12%; }
.wfx .mist.b { top: 50%; opacity: 0.7; animation-duration: 15s; animation-direction: alternate-reverse; }
@keyframes wfx-drift { from { translate: -18% 0; } to { translate: 18% 0; } }
/* a cloud's shadow passes over */
.wfx .shade {
  top: -30%; left: -95%; width: 90%; height: 160%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(36, 42, 66, 0.34), rgba(36, 42, 66, 0) 68%);
  animation: wfx-pass 14s linear infinite;
}
.wfx .shade.b { width: 70%; opacity: 0.8; animation-duration: 19s; animation-delay: -9s; }
@keyframes wfx-pass { from { left: -95%; } to { left: 105%; } }
/* sunlight drifts across the paper and leaf shadow moves on it */
.wfx .glow { left: -40%; top: -40%; right: -40%; bottom: -40%; background: radial-gradient(circle at 50% 50%, rgba(255, 212, 124, 0.62), rgba(255, 198, 104, 0) 46%); mix-blend-mode: soft-light; animation: wfx-sun 9s ease-in-out infinite alternate; }
@keyframes wfx-sun { from { translate: -24% -8%; } to { translate: 24% 8%; } }
.wfx .dapple {
  left: -30%; top: -30%; right: -30%; bottom: -30%; opacity: 0.24; filter: blur(3px); mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 20% 30%, rgba(60, 40, 10, 0.9) 0 6%, transparent 9%),
    radial-gradient(circle at 55% 62%, rgba(60, 40, 10, 0.9) 0 5%, transparent 8%),
    radial-gradient(circle at 78% 28%, rgba(60, 40, 10, 0.9) 0 7%, transparent 10%),
    radial-gradient(circle at 38% 80%, rgba(60, 40, 10, 0.9) 0 4%, transparent 7%),
    radial-gradient(circle at 88% 74%, rgba(60, 40, 10, 0.9) 0 5%, transparent 8%);
  animation: wfx-leaves 7s ease-in-out infinite alternate;
}
@keyframes wfx-leaves { 0% { translate: -4% 0; rotate: -2deg; } 50% { translate: 3% 2%; } 100% { translate: 5% -1%; rotate: 2deg; } }
/* night: moonlight cools the paper and the brass glints */
.wfx .moon { left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(118, 148, 222, 0.42), rgba(40, 60, 120, 0.14) 60%); mix-blend-mode: multiply; animation: wfx-moon 6s ease-in-out infinite alternate; }
@keyframes wfx-moon { from { opacity: 0.7; } to { opacity: 1; } }
.wfx .glint {
  left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; opacity: 0;
  background: radial-gradient(circle, #fffbe8 0 10%, rgba(255, 251, 232, 0) 38%),
    linear-gradient(90deg, transparent 46%, rgba(255, 251, 232, 0.95) 50%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 251, 232, 0.95) 50%, transparent 54%);
  animation: twinkle 3.4s ease-in-out var(--dl) infinite;
}
/* the text now has the whole tag */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { html:not(.sheet-open) .strip .hang .thermo-read { right: 12%; } }
@media (hover: none), (pointer: coarse), (max-width: 760px) { .wx .hang .wx-tag > :not(.stamp):not(.wfx) { right: 12%; } }
/* the wind sets the swing: --amp and --gust come from the visitor's wind speed */
@keyframes tag-breeze { from { rotate: calc(var(--amp, 1.2deg) * -0.8); } to { rotate: var(--amp, 1.2deg); } }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { html:not(.sheet-open) .strip .hang { animation: tag-breeze var(--gust, 5.5s) ease-in-out infinite alternate; } }
@media (hover: none), (pointer: coarse), (max-width: 760px) { .wx .hang { animation: hang-in 2.4s ease-out, tag-breeze var(--gust, 5.5s) ease-in-out 2.4s infinite alternate; } }
@media (prefers-reduced-motion: reduce) { .wfx, .wfx *, .wfx *::before { animation: none !important; } .wfx .d, .wfx .f, .wfx .b, .wfx .flash { display: none; } .hang { animation: none !important; } }

/* sunshine you can see: warm beams sweep across the paper and a glint flares at its corner; cloud shadow dims the whole tag as it passes */
.wfx .dapple { display: none; }
.wfx .glow { mix-blend-mode: screen; background: radial-gradient(circle at 50% 50%, rgba(255, 226, 150, 0.5), rgba(255, 210, 120, 0) 42%); }
.wfx .beams {
  left: -60%; top: -40%; width: 220%; height: 180%; mix-blend-mode: screen; opacity: 0.9;
  background: repeating-linear-gradient(115deg, rgba(255, 236, 180, 0) 0 18px, rgba(255, 236, 180, 0.42) 26px, rgba(255, 236, 180, 0) 36px, rgba(255, 236, 180, 0) 62px);
  animation: wfx-beams 8s linear infinite;
}
@keyframes wfx-beams { from { translate: -18% 0; } to { translate: 12% 0; } }
.wfx .flare {
  right: 6%; top: 10%; width: 34px; height: 34px; margin: -17px -17px 0 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 250, 225, 0.95) 0 8%, rgba(255, 220, 140, 0.55) 20%, rgba(255, 200, 110, 0) 60%);
  animation: wfx-flare 3.2s ease-in-out infinite alternate;
}
@keyframes wfx-flare { from { opacity: 0.55; scale: 0.8; } to { opacity: 1; scale: 1.15; } }
.wfx .shade {
  top: -80%; left: -170%; width: 170%; height: 260%;
  background: radial-gradient(ellipse at center, rgba(34, 40, 64, 0.42) 0%, rgba(34, 40, 64, 0.2) 40%, rgba(34, 40, 64, 0) 70%);
  animation: wfx-pass 12s linear infinite;
}
.wfx .shade.b { width: 130%; animation-duration: 17s; animation-delay: -8s; }
@keyframes wfx-pass { from { left: -170%; } to { left: 110%; } }
.wfx .moonbeam {
  left: -60%; top: -40%; width: 220%; height: 180%; mix-blend-mode: screen; opacity: 0.7;
  background: linear-gradient(115deg, rgba(200, 220, 255, 0) 40%, rgba(200, 220, 255, 0.4) 50%, rgba(200, 220, 255, 0) 60%);
  animation: wfx-beams 10s ease-in-out infinite alternate;
}

/* the name, in lowercase (the page's text stays "Fela Buyi" for search and screen readers) */
.brand, .sub.title { text-transform: lowercase; }

/* ------------------------------------------------------------ the lamp's switch: a painted brass toggle (Higgsfield, film/sky/switch-*) */
/* the lever stands in the plate's bushing: up is on, down is off, and it flips with a snap when you press it */
.lamp-btn { gap: 8px; padding-left: 6px; }
.lamp-sw {
  position: relative; flex: none; width: 28px; height: 28px; display: block;
  background: url(film/sky/switch-plate.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(1px 2px 1.5px rgba(0, 0, 0, 0.55));
}
.lamp-sw-lever {
  position: absolute; left: calc(51.3% - 2.35px); top: calc(48% - 16.7px); width: 4.7px; height: 18px; display: block;
  background: url(film/sky/switch-lever.webp) center / 100% 100% no-repeat;
  transform-origin: 50% 93%; transform: scaleY(1);
  transition: transform 0.16s cubic-bezier(0.5, 1.8, 0.5, 1);
}
.lamp-btn[aria-pressed="false"] .lamp-sw-lever { transform: scaleY(-1); }
.lamp-btn:hover .lamp-sw, .lamp-btn:focus-visible .lamp-sw { filter: drop-shadow(1px 2px 1.5px rgba(0, 0, 0, 0.55)) brightness(1.12); }
.bulb { display: none; }
@media (max-width: 760px) { .lamp-btn { padding: 0; } .lamp-btn .lamp-sw { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .lamp-sw-lever { transition: none; } }
/* sunshine with contrast: bright bands and soft shade between them move across the paper, and the sun sparkles on the brass eyelet */
.wfx .beams {
  mix-blend-mode: overlay; opacity: 1;
  background: repeating-linear-gradient(115deg,
    rgba(255, 250, 230, 0) 0, rgba(255, 250, 230, 0.85) 16px, rgba(255, 250, 230, 0) 30px,
    rgba(110, 70, 20, 0) 38px, rgba(110, 70, 20, 0.32) 50px, rgba(110, 70, 20, 0) 64px);
  animation: wfx-beams 6s linear infinite;
}
@keyframes wfx-beams { from { translate: -64px 0; } to { translate: 0 0; } }
.wfx .flare {
  left: 50%; top: 15.8%; right: auto; width: 26px; height: 26px; margin: -13px 0 0 -13px; mix-blend-mode: screen;
  background: radial-gradient(circle, #fffbe8 0 9%, rgba(255, 236, 170, 0.6) 22%, rgba(255, 210, 120, 0) 55%),
    linear-gradient(90deg, transparent 47%, rgba(255, 251, 232, 0.95) 50%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255, 251, 232, 0.95) 50%, transparent 53%);
  animation: wfx-flare 2.6s ease-in-out infinite alternate;
}
@keyframes wfx-flare { from { opacity: 0.35; scale: 0.7; rotate: 0deg; } to { opacity: 1; scale: 1.15; rotate: 20deg; } }

/* ------------------------------------------------------------ the lamp's pull chain: out of the socket, hanging by its weight */
.lamp-chain i { animation: none !important; background: none; filter: none; }
.lamp-chain .lc-rope {
  position: absolute; left: 50%; top: 0; width: 6px; height: var(--len, 92px); margin-left: -3px; display: block;
  transform-origin: 50% 0; transform: rotate(var(--th, 0deg)); transition: none;
  background: radial-gradient(circle at 42% 38%, #fff0c4 0 0.55px, #e9b65c 1.05px, #a8711f 1.85px, #5a3a0e 2.25px, rgba(0, 0, 0, 0) 2.55px) 50% 0 / 6px 5px repeat-y;
  filter: drop-shadow(1px 1.5px 1px rgba(0, 0, 0, 0.55));
}
.lamp-chain .lc-rope::before {
  content: ""; position: absolute; left: 50%; top: -3px; width: 9px; height: 6px; margin-left: -4.5px; border-radius: 2px 2px 4px 4px;
  background: radial-gradient(ellipse at 50% 35%, #8a5a1c, #3a2408 80%);
}
.lamp-chain .lc-bead { position: absolute; left: 50%; top: calc(100% - 2px); width: 15px; height: 19px; margin-left: -7.5px; background: url(film/sky/bead.webp) center / contain no-repeat; }
.lamp-chain .lc-tip { left: 26px; bottom: auto; top: 96px; }

/* ------------------------------------------------------------ weather you can actually see, every moment */
/* overcast: painted clouds, greyed so they read on the paper, drift across it continuously (at least two always on it) */
.wfx .cl {
  width: 62%; height: 46%; left: 0; opacity: 0.72;
  background: url(film/sky/cloud.webp) center / contain no-repeat;
  filter: grayscale(0.55) brightness(0.72) contrast(1.15) drop-shadow(0 3px 3px rgba(40, 30, 20, 0.35));
  animation: wfx-cloud 18s linear infinite;
}
.wfx .cl.a { top: 2%; animation-delay: -4s; }
.wfx .cl.b { top: 34%; width: 50%; opacity: 0.62; animation-duration: 24s; animation-delay: -15s; }
.wfx .cl.c { top: 56%; width: 56%; opacity: 0.66; animation-duration: 21s; animation-delay: -9s; animation-direction: reverse; }
@keyframes wfx-cloud { from { translate: -105% 0; } to { translate: 175% 0; } }
html[data-sky="partly"] .wfx .cl, html[data-sky="partly-night"] .wfx .cl { filter: brightness(0.92) drop-shadow(0 3px 3px rgba(40, 30, 20, 0.4)); opacity: 0.8; }
/* rain you can see on the paper */
.wfx .d { width: 1.9px; height: 18%; background: linear-gradient(to bottom, rgba(38, 62, 104, 0), rgba(38, 62, 104, 0.8)); }
html[data-sky="drizzle"] .wfx .d { width: 1.4px; height: 12%; opacity: 0.9; }
html[data-sky="storm"] .wfx .d { width: 2.2px; height: 24%; }
/* fog: grey mist rolls across and the whole paper fogs over and clears */
.wfx .mist { filter: grayscale(0.6) brightness(0.78); opacity: 0.95; }
.wfx .mist.c { top: 74%; width: 150%; height: 34%; opacity: 0.8; animation-duration: 9s; }
.wfx .veil { left: 0; top: 0; right: 0; bottom: 0; background: rgba(176, 182, 190, 0.5); animation: wfx-veil 7s ease-in-out infinite alternate; }
@keyframes wfx-veil { from { opacity: 0.15; } to { opacity: 0.75; } }
/* night: the moonbeam is stronger */
.wfx .moonbeam { opacity: 1; background: linear-gradient(115deg, rgba(200, 220, 255, 0) 38%, rgba(210, 228, 255, 0.6) 50%, rgba(200, 220, 255, 0) 62%); }
@media (prefers-reduced-motion: reduce) { .wfx .cl { animation: none !important; translate: 20% 0; } }

/* "buyi" leans. The face's italic and its slant axis do not slant these letters in Chrome or Safari, so the slant is
   drawn: one even skew of the upright letters, which for a grotesk is what its italic is */
.lean, .brand .buyi { display: inline-block; font-style: normal; transform: skewX(-11deg); transform-origin: 50% 80%; }

/* the weather moves to the studio window while it is on screen; the tag is the plain readout there */
.wfx { transition: opacity 0.6s ease; }
.wx-window #thermo .wfx, .wx-window #wx .wfx { opacity: 0; }
/* the leaning word gets a little air before it (its foot tilts back toward the word before) */
.lean { margin-left: 0.07em; }
.brand .buyi { margin-left: 0.1em; }
