/* Blue Book Nights: site stylesheet.
   World of the channel: night gouache, deep blue, one warm light, yellow file paper with blue ink.
   Fonts are the same OFL set the films use (Barlow Condensed, Source Serif 4, Courier Prime). */

@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('fonts/SourceSerif4-Variable.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('fonts/CourierPrime-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('fonts/CourierPrime-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --night: #050f24;        /* page */
  --night-2: #0a1a3a;      /* raised surface */
  --sky: #011648;          /* avatar sky */
  --moon: #f4f7fb;         /* headings */
  --text: #dfe6f1;         /* body on night */
  --dim: #9fb8d8;          /* secondary text, rules */
  --rule: rgba(159, 184, 216, .22);
  --lamp: #ff9a2e;         /* the one warm light */
  --lamp-deep: #f7620b;
  --ember: #e3322b;        /* red accent, used once per view at most */
  --paper: #edd28b;        /* file paper */
  --paper-lit: #ffd98a;    /* typed titles on night */
  --ink: #17396b;          /* typed text on paper */
  --pen: #1f4fbf;          /* pen marks, links on paper */
  --f-head: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-type: 'Courier Prime', 'Courier New', Courier, monospace;
  --wrap: 1180px;
  --pad: clamp(20px, 4.5vw, 56px);

  /* home first screen: scene geometry (k1_meta.json): picture 3840 x 2161, horizon 0.5275, oak top 0.1745 */
  --skytop: #011c4c;
  --sw: 100vw;                                   /* JS sets the real page width (no scrollbar) */
  --shh: calc(var(--sw) * 0.5628);               /* scene height, 16:9 over the full width */
  --H: max(100svh, 640px);                        /* section height */
  --fs: calc(var(--sw) * 0.124);                  /* title size: one line = 86.6 % of the width */
  --cap: calc(var(--fs) * 0.71);                  /* cap height of Barlow Condensed 800 */
  --minTop: 98px;                                 /* caps never reach the site header */
  --top: max(calc(var(--H) - var(--shh)), calc(var(--minTop) + 0.88 * var(--cap) - 0.1745 * var(--shh)));
  --oak: calc(var(--top) + 0.1745 * var(--shh));
  --capTop: calc(var(--oak) + 0.12 * var(--cap) - var(--cap)); /* oak crown covers 12 % of the caps */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--f-body); font-size: 19px; line-height: 1.62; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--paper-lit); }
a:focus-visible, .window:focus-visible { outline: 3px solid var(--paper-lit); outline-offset: 3px; }
p { margin: 0 0 1.05em; max-width: 64ch; }
h1, h2, h3 { margin: 0; color: var(--moon); font-family: var(--f-head); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: .012em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: .03em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--paper); color: var(--ink); padding: 10px 14px; }

/* ---------- header ---------- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--moon); line-height: 1; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 10px 0; color: var(--text); border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moon); border-bottom-color: var(--lamp); }
.home { overflow-x: clip; }
.home .top { position: absolute; left: 0; right: 0; top: 0; z-index: 8; }
.home .top .wrap { max-width: none; }
.home .brand { min-height: 44px; }
.home .nav a { line-height: 1.2; }

/* ---------- the lit window: the one bright control ---------- */
.window {
  display: inline-block; text-decoration: none; background: var(--lamp); color: #08142b;
  font-family: var(--f-head); font-weight: 800; font-size: 22px; letter-spacing: .07em; text-transform: uppercase; line-height: 1;
  padding: 17px 26px 16px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 217, 138, .55) inset, 0 0 46px rgba(247, 98, 11, .42);
  transition: background .2s, box-shadow .2s;
}
.window:hover { background: var(--paper-lit); color: #08142b; box-shadow: 0 0 0 1px #fff3 inset, 0 0 64px rgba(247, 98, 11, .6); }
.quiet { display: inline-block; font-family: var(--f-head); font-weight: 600; font-size: 21px; letter-spacing: .07em; text-transform: uppercase; line-height: 1; padding: 17px 2px 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: 28px; }

/* ---------- typed place and date, as in the films ---------- */
.typed { font-family: var(--f-type); font-weight: 700; color: var(--paper-lit); line-height: 1.25; font-size: clamp(16px, 1.5vw, 19px); margin: 0; max-width: none; }
.typed b { display: block; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--moon); }

/* ---------- stars: fixed canvas under the page ---------- */
.stars { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; z-index: 1; pointer-events: none; display: block; }

/* ---------- home first screen ---------- */
.hero { position: relative; height: var(--H); overflow: hidden; background: var(--skytop); }
.hero .sky, .hero .land { position: absolute; left: 0; top: var(--top); width: var(--sw); height: var(--shh); }
.hero .sky { z-index: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%); }
.hero .sky img, .hero .land img, .hero .land canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .land { z-index: 3; transform-origin: 47% 78%; will-change: transform; }
.hero .land canvas { display: block; }
.gl-on .hero .land img.still { visibility: hidden; }

.hero h1 {
  position: absolute; z-index: 2; left: 0; right: 0; margin: 0;
  top: calc(var(--capTop) - 0.19 * var(--fs));
  font-size: var(--fs); line-height: 1; letter-spacing: .01em; text-align: center; white-space: nowrap;
  color: var(--moon); text-wrap: nowrap; will-change: transform, opacity;
}
.hero h1 span { display: inline; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span { background: linear-gradient(to bottom, #f4f7fb 18%, #b7cbee 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* the quiet fall to night at the bottom */
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 15, 36, 0.000) 0%, rgba(5, 15, 36, 0.027) 5%, rgba(5, 15, 36, 0.076) 10%, rgba(5, 15, 36, 0.137) 15%, rgba(5, 15, 36, 0.205) 20%, rgba(5, 15, 36, 0.278) 25%, rgba(5, 15, 36, 0.354) 30%, rgba(5, 15, 36, 0.430) 35%, rgba(5, 15, 36, 0.505) 40%, rgba(5, 15, 36, 0.577) 45%, rgba(5, 15, 36, 0.646) 50%, rgba(5, 15, 36, 0.711) 55%, rgba(5, 15, 36, 0.770) 60%, rgba(5, 15, 36, 0.823) 65%, rgba(5, 15, 36, 0.870) 70%, rgba(5, 15, 36, 0.910) 75%, rgba(5, 15, 36, 0.943) 80%, rgba(5, 15, 36, 0.968) 85%, rgba(5, 15, 36, 0.986) 90%, rgba(5, 15, 36, 0.996) 95%, var(--night) 100%); }

/* scrolling away from the first screen: the sky goes darker (opacity from hero.js) */
.hero .dusk { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, #020816 0%, rgba(3, 10, 26, .9) 45%, rgba(5, 15, 36, .8) 100%); }
.hero h1 { transform-origin: 50% 62%; }
.hero .copy { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(22px, 4.2vh, 46px); padding: 0 var(--pad);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.hero .lead { max-width: 560px; position: relative; }
/* a quiet shade in the colour of the night under the lead (not a plate): fence and yard stay visible */
.hero .lead::before { content: ''; position: absolute; z-index: -1; left: calc(-1 * var(--pad) - 40px); right: -90px; top: -110px; bottom: -50px; pointer-events: none;
  background: radial-gradient(ellipse closest-side at 36% 52%, rgba(5, 15, 36, .84) 0%, rgba(5, 15, 36, .62) 50%, rgba(5, 15, 36, .22) 80%, rgba(5, 15, 36, 0) 100%); }
.hero .kicker { font-family: var(--f-type); font-weight: 700; color: var(--paper-lit); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; margin: 0 0 10px; }
.hero .lede { font-size: 24px; line-height: 1.32; color: var(--moon); max-width: 30ch; margin: 0; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 34px; margin: 10px 0 0; max-width: none; }
.hero .acts a { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .07em; font-size: 21px; line-height: 1; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; }
.hero .acts .go { font-weight: 800; color: var(--moon); text-decoration-color: var(--lamp); }
.hero .acts .files { font-weight: 600; color: var(--text); text-decoration-color: rgba(223, 230, 241, .55); }
.hero .acts a:hover { color: var(--paper-lit); }
.hero .go i { width: 9px; height: 9px; border-radius: 50%; background: #ffb257; flex: none;
  box-shadow: 0 0 6px 2px rgba(255, 154, 46, .75), 0 0 18px 6px rgba(255, 154, 46, .28); animation: lamp 6.5s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }

.hero .skynote { font-family: var(--f-type); font-weight: 400; font-size: 14.5px; line-height: 1.6; color: var(--dim); text-align: right; margin: 0 0 4px; max-width: none; white-space: nowrap; }
.hero .skynote a { color: var(--paper-lit); text-decoration-color: var(--paper-lit); text-decoration-thickness: 1px; display: inline-block; padding: 12px 0; margin: -12px 0; }

/* soft appear (only with JS, 0.8 s, no movement of letters) */
.js .hero h1, .js .copy { animation: rise .8s ease-out both; }
.js .copy { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* ---------- sections ---------- */
.band { padding: clamp(46px, 7vw, 92px) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.home .band { position: relative; z-index: 6; }
.after::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none; background: linear-gradient(to bottom, var(--night), rgba(5, 15, 36, 0)); }
.home .foot { position: relative; z-index: 6; }
.band > .wrap > h2, .sec > h2 { font-size: clamp(38px, 4.6vw, 62px); }
.intro { position: relative; z-index: 1; display: grid; gap: 34px clamp(36px, 6vw, 88px); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.intro p { font-size: 1.08em; }
.note { color: var(--dim); font-size: .92em; }
.band > .wrap > h2 + .note { margin-top: 16px; }

/* ---------- case list ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); }
.cases.odd > .case:first-child { grid-column: 1 / -1; }
.case .plate { position: relative; display: block; overflow: hidden; background: var(--night-2); aspect-ratio: 16 / 9; }
.cases.odd > .case:first-child .plate { aspect-ratio: 21 / 9; }
.case .plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, filter .4s; }
.case .plate:hover img { transform: scale(1.025); filter: brightness(1.08); }
.case .typed { margin-top: 18px; }
.case h3 { font-weight: 800; font-size: clamp(32px, 3.3vw, 46px); margin-top: 8px; letter-spacing: .012em; }
.case h3 a { text-decoration: none; }
.case p { margin-top: 12px; margin-bottom: 0; }
.case .links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 28px; font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; }
.case .links a { padding: 8px 0; }

/* ---------- map ---------- */
.map { margin-top: clamp(24px, 3vw, 40px); }
.map svg { display: block; width: 100%; height: auto; }
.map .land { fill: #08183a; stroke: rgba(159, 184, 216, .34); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map .halo { fill: url(#lampglow); }
.map .dot { fill: var(--paper-lit); }
.map text { font-family: var(--f-type); font-weight: 700; font-size: 15px; fill: var(--paper-lit); }
.map a:hover text { fill: var(--moon); }
.places { list-style: none; margin: 22px 0 0; padding: 0; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; font-family: var(--f-type); font-weight: 700; font-size: 16px; }
.places a { display: block; padding: 9px 0; color: var(--paper-lit); }

/* ---------- three plain facts on the home page ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; margin-top: clamp(26px, 3vw, 40px); }
.facts h3 { font-size: 27px; margin-bottom: 10px; }
.facts p { margin: 0; }

/* ---------- case page ---------- */
.painting { position: relative; margin: 0; background: var(--night-2); }
.painting img { width: 100%; max-height: 84vh; object-fit: cover; }
.painting figcaption { position: absolute; left: var(--pad); bottom: clamp(16px, 3vw, 40px); text-shadow: 0 1px 14px rgba(1, 10, 30, .95), 0 0 3px rgba(1, 10, 30, .9); }
.painting figcaption .typed { font-size: clamp(17px, 2.2vw, 30px); }
.head { padding-top: clamp(30px, 4vw, 56px); }
.head h1 { font-size: clamp(50px, 7.4vw, 112px); line-height: .9; }
.head .film { margin: 18px 0 0; font-size: clamp(20px, 2vw, 25px); line-height: 1.35; color: var(--moon); max-width: 38ch; }
.head .film span { display: block; color: var(--dim); font-size: .78em; margin-bottom: 2px; }
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px clamp(36px, 6vw, 88px); align-items: start; padding-top: clamp(34px, 5vw, 60px); padding-bottom: clamp(46px, 7vw, 92px); }
.story .text p:first-child { font-size: 1.14em; line-height: 1.52; color: var(--moon); }

/* the file sheet: yellow paper, typed in blue */
.record {
  background-color: var(--paper); background-image: linear-gradient(170deg, rgba(255, 248, 220, .55), rgba(255, 248, 220, 0) 46%), linear-gradient(to bottom, rgba(120, 84, 20, 0) 70%, rgba(120, 84, 20, .10));
  color: var(--ink); font-family: var(--f-type); padding: 26px 30px 24px; margin: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 22px 50px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
}
.record .slug { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.record dl { margin: 0; }
.record .row { padding: 13px 0 11px; border-bottom: 1px solid rgba(23, 57, 107, .32); }
.record .row:last-child { border-bottom: 0; padding-bottom: 0; }
.record dt { font-size: 14px; letter-spacing: .09em; text-transform: uppercase; color: rgba(23, 57, 107, .82); font-weight: 700; }
.record dd { margin: 3px 0 0; font-weight: 700; font-size: 18px; line-height: 1.34; }
.record dd + dd { margin-top: 8px; }
.record .row.list dd { font-weight: 400; font-size: 16.5px; line-height: 1.42; }
.record.log { max-width: 640px; margin-top: 26px; padding-top: 20px; }
.record.log .row { display: grid; grid-template-columns: 12ch 1fr; gap: 16px; font-size: 16.5px; }
.record.log .row span:first-child { font-weight: 700; }
.record a { color: var(--pen); text-decoration-color: var(--pen); }
.record a:hover { color: var(--ink); }

.sec { padding: clamp(40px, 6vw, 76px) 0; border-top: 1px solid var(--rule); }
.sec > h2 { margin-bottom: clamp(20px, 3vw, 34px); }
.sec > p.note { margin-top: -8px; margin-bottom: 26px; }

.watch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 30px clamp(32px, 5vw, 72px); align-items: start; }
.watch .poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.watch .poster img { width: 100%; height: 100%; object-fit: cover; }
.watch .poster span { position: absolute; left: 0; bottom: 0; background: var(--lamp); color: #08142b; font-family: var(--f-head); font-weight: 800; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; line-height: 1; padding: 13px 18px 12px; }
.watch .poster:hover span { background: var(--paper-lit); }
.chapters { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; }
.chapters li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.chapters a { display: grid; grid-template-columns: 5.6ch 1fr; gap: 14px; padding: 11px 0 10px; text-decoration: none; align-items: baseline; }
.chapters time { font-family: var(--f-type); font-weight: 700; color: var(--paper-lit); font-size: 17px; }
.chapters a:hover span { color: var(--paper-lit); }

.sources { list-style: none; margin: 0; padding: 0; max-width: 78ch; }
.sources li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.sources li::before { content: ''; position: absolute; left: 2px; top: 1.42em; width: 10px; height: 2px; background: var(--lamp); }
.sources .where { color: var(--dim); font-size: .9em; display: block; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px clamp(36px, 6vw, 88px); align-items: start; }
.cols2 h3 { font-size: 27px; margin-bottom: 12px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night-2); }
.sec > .gallery + p.note { margin-top: 18px; margin-bottom: 0; }

.pager { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--f-head); font-weight: 600; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.pager a { padding: 10px 0; }
.pager span { display: block; font-family: var(--f-type); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }

.tip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 40px; }
.tip p { margin: 0; max-width: 52ch; }
.tip .quiet { padding: 10px 0; white-space: nowrap; }
.closing { display: grid; gap: 30px; }
.side-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- method page ---------- */
.page-head { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(30px, 4vw, 52px); }
.page-head h1 { font-size: clamp(54px, 8vw, 120px); line-height: .9; }
.page-head p { font-size: clamp(20px, 2vw, 25px); line-height: 1.42; color: var(--moon); max-width: 40ch; margin: 22px 0 0; }
.method { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 14px clamp(32px, 6vw, 88px); padding: clamp(30px, 4vw, 52px) 0; border-top: 1px solid var(--rule); }
.method h2 { font-size: clamp(32px, 3.4vw, 46px); }
.method .aside { margin-top: 20px; max-width: 420px; }
.method .aside img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; color: var(--dim); font-size: 16.5px; line-height: 1.55; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 64px; }
.foot p { margin: 0 0 8px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 26px; font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: .07em; text-transform: uppercase; color: var(--text); }
.foot .links a { padding: 8px 0; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .intro, .story, .watch, .cols2, .method, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .cases.odd > .case:first-child .plate { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .chapters { columns: 1; }
  .story .record { order: -1; }
  .story { padding-top: 26px; }
  .map text { display: none; }
  .places { display: grid; }
  .method .aside { max-width: none; }
}
@media (max-width: 560px) {
  .top .wrap { padding-top: 14px; padding-bottom: 12px; }
  .brand { font-size: 23px; }
  .brand img { width: 34px; height: 34px; }
  .nav { font-size: 18px; gap: 0 20px; width: 100%; }
  .window { font-size: 20px; padding: 16px 20px 15px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .record { padding: 22px 20px 20px; }
  .record dd { font-size: 17px; }
  .places { grid-template-columns: minmax(0, 1fr); }
  .painting img { max-height: none; aspect-ratio: 4 / 3; }
  .record.log .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nav .yt { display: none; }
  .tip .quiet { white-space: normal; }
}

/* ---------- wide but short windows: smaller copy ---------- */
@media (max-height: 760px) and (min-width: 701px) {
  .hero::after { height: 30%; }
  .hero .lede { font-size: 22px; }
  .hero .kicker { font-size: 15px; margin-bottom: 6px; }
  .hero .acts { margin-top: 4px; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  :root {
    --shh: calc(var(--sw) * 1.7769);              /* k1m: 2160 x 3838 */
    --fs: calc(var(--sw) * 0.212);                 /* "BLUE BOOK" = 86 % of the width */
    --tTop: 116px;
    --skytop: #011339;                             /* k1m_meta.json top_row_color */
    --top: calc(var(--tTop) + 1.8 * var(--fs) + 20px - 0.3306 * var(--shh)); /* oak top 0.3306 (k1m_meta.json) stays under the title */
  }
  .home .top .wrap { padding-top: 14px; padding-bottom: 8px; }
  .home .brand img { width: 34px; height: 34px; }
  .home .nav { font-size: 18px; gap: 0 20px; width: 100%; }
  .home .nav a { padding: 11px 0; }
  .home .nav .yt { display: none; }
  .hero { height: auto; background: linear-gradient(to bottom, var(--skytop) 0, var(--skytop) calc(var(--top) + 0.6 * var(--shh)), var(--night) calc(var(--top) + 0.6 * var(--shh) + 1px)); }
  .hero h1 { top: var(--tTop); line-height: .9; white-space: normal; }
  .hero h1 span { display: block; }
  .hero::after { top: calc(var(--top) + 0.6 * var(--shh)); height: auto; bottom: 0;
    background: linear-gradient(to bottom, rgba(5, 15, 36, 0) 0, rgba(5, 15, 36, .7) calc(0.1 * var(--shh)), var(--night) calc(0.2 * var(--shh)), var(--night) 100%); }
  .hero .copy { position: relative; bottom: auto; display: block; padding-top: calc(var(--top) + 0.78 * var(--shh)); padding-bottom: 44px; }
  .hero .kicker { font-size: clamp(13px, calc((100vw - 2 * var(--pad)) / 22.6), 15px); letter-spacing: .045em; white-space: nowrap; max-width: none; }
  .hero .lede { font-size: 23px; }
  .hero .acts { gap: 0 26px; margin-top: 8px; }
  .hero .acts a { font-size: 20px; }
  .hero .skynote { text-align: left; white-space: normal; margin-top: 22px; font-size: 14px; }
}

/* ---------- calm modes (home first screen) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero .go i, .js .hero h1, .js .copy { animation: none; }
}

/* ====================================================================
   Living blocks (16.11.2026): home page pile, case cards, map card, photograph against painting;
   case page: the story in paintings, the sheets of the file, the viewer. Script: site.js.
   ==================================================================== */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.77, 0, .175, 1); }
.locked { overflow: hidden; }
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease-out, transform .7s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.rv-on .rv.in { opacity: 1; transform: none; }
.linkbtn, .turn, .full { background: none; border: 0; color: var(--moon); font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; line-height: 1; padding: 12px 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.turn:hover, .full:hover { color: var(--paper-lit); }
.turn:focus-visible, .full:focus-visible, .rail button:focus-visible, .vb:focus-visible, .leaf:focus-visible { outline: 3px solid var(--paper-lit); outline-offset: 3px; }

/* ---------- home: what this is, with the pile ---------- */
.intro-text h2 { font-size: clamp(38px, 4.6vw, 62px); margin-bottom: clamp(18px, 2.4vw, 30px); }
.pile { position: relative; aspect-ratio: 5 / 4; }
.live .pile { cursor: pointer; }
.sheet { position: absolute; left: 50%; top: 48%; margin: 0; width: 82%; z-index: calc(20 - var(--k)); --r: 0deg; --dx: 0%; --dy: 0%;
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r));
  transition: transform .42s var(--ease-out), filter .35s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 2px 5px rgba(0, 0, 0, .4); filter: brightness(.55); }
.sheet img { width: 100%; height: auto; }
.sheet.print { border: 7px solid #efe7d2; background: #efe7d2; }
.sheet.paper { width: 60%; background: #f0e5c4; }
.sheet.paper.tall { width: 44%; }
.sheet:nth-child(1) { --r: -2.5deg; --dx: -2%; --dy: 1%; }
.sheet:nth-child(2) { --r: 3deg; --dx: 7%; --dy: -3%; }
.sheet:nth-child(3) { --r: 1.5deg; --dx: 2%; --dy: 3%; }
.sheet:nth-child(4) { --r: -4deg; --dx: -8%; --dy: -2%; }
.sheet:nth-child(5) { --r: 2.2deg; --dx: 4%; --dy: 0%; }
.sheet:nth-child(6) { --r: -1.4deg; --dx: -5%; --dy: 2%; }
.sheet:nth-child(7) { --r: 3.6deg; --dx: 1%; --dy: -1%; }
.sheet.is-top { filter: none; }
.sheet.is-next { filter: brightness(.78); }
.sheet.leaving { transform: translate(8%, -54%) rotate(9deg); transition: transform .32s var(--ease-io); }
.sheet figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.desk-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 24px; margin-top: 6px; }
.desk-cap { font-family: var(--f-type); font-weight: 700; font-size: 15.5px; line-height: 1.4; color: var(--paper-lit); margin: 0; max-width: none; }
.desk-cap a { color: var(--text); font-weight: 400; white-space: nowrap; margin-left: .5em; text-decoration-thickness: 1px; }
.desk:not(.live) .turn { display: none; }

/* ---------- home: case cards leaf through their paintings ---------- */
.case .plate .fr { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease, transform 1.2s ease; }
.case .plate .fr.on { opacity: 1; }
.case .plate:hover img { transform: none; }
.case .plate.playing img { transform: scale(1.06); transition: transform 14s linear, opacity .7s ease, filter .4s; }
.ticks { position: absolute; left: 14px; bottom: 13px; display: flex; gap: 5px; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.plate.playing .ticks { opacity: 1; }
.ticks i { width: 20px; height: 2px; background: rgba(244, 247, 251, .42); box-shadow: 0 0 6px rgba(1, 10, 30, .7); }
.ticks i.on { background: var(--lamp); }

/* ---------- home: the map and its card ---------- */
.mapwrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.mapwrap .map { margin-top: 0; }
.mapwrap .map text { display: none; font-size: 27px; }
.mapwrap .map a.on text { display: inline; }
.mapwrap .places { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 12px; font-size: 15px; }
.mapwrap .places a { text-decoration-color: rgba(255, 217, 138, .45); text-decoration-thickness: 1px; }
.live .places a.on { text-decoration-color: var(--lamp); text-decoration-thickness: 2px; }
.mc { display: none; }
.mc.on { display: block; animation: mcin .35s var(--ease-out) both; }
@keyframes mcin { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.mc-pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.mc-pic img { width: 100%; height: 100%; object-fit: cover; }
.mc .typed { margin-top: 14px; font-size: 15.5px; }
.mc h3 { font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); margin-top: 6px; letter-spacing: .012em; }
.mc h3 a { text-decoration: none; }
.mc-t { margin: 10px 0 0; font-size: .95em; }
.mc .links { margin: 10px 0 0; font-family: var(--f-head); font-weight: 600; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; }
.mc .links a { display: inline-block; padding: 8px 0; }
.map .halo, .map .ring { transform-box: fill-box; transform-origin: center; }
.map .halo { animation: breathe 7s ease-in-out infinite; transition: transform .35s var(--ease-out); }
.map a:nth-of-type(2) .halo { animation-delay: -2.3s; }
.map a:nth-of-type(3) .halo { animation-delay: -4.1s; }
.map a:nth-of-type(4) .halo { animation-delay: -5.6s; }
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: .92; } }
.map .ring { fill: none; stroke: var(--paper-lit); stroke-width: 1.5; opacity: 0; vector-effect: non-scaling-stroke; }
.live .map a { cursor: pointer; }
.live .map a.on .halo { animation: none; opacity: 1; transform: scale(1.4); }
.live .map a.on .ring { opacity: .9; animation: ringin .5s var(--ease-out) both; }
@keyframes ringin { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: .9; } }
.live .map a.on text { fill: var(--moon); }
.live .places a.on { color: var(--moon); }

/* ---------- home: how the films are made, photograph against painting ---------- */
.made { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 30px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(26px, 3vw, 40px); }
.made .facts { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 0; }
.compare { margin: 0; --p: 50%; }
.cmp { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp .ca { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--paper-lit); box-shadow: 0 0 12px rgba(255, 154, 46, .6); pointer-events: none; }
.cmp .bar::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--lamp);
  box-shadow: 0 0 0 1px rgba(255, 217, 138, .6) inset, 0 0 26px rgba(247, 98, 11, .6); }
.cmp .tag { position: absolute; bottom: 10px; font-family: var(--f-type); font-weight: 700; font-size: 13.5px; line-height: 1.2; color: var(--moon); pointer-events: none;
  text-shadow: 0 1px 8px rgba(1, 10, 30, .95), 0 0 2px rgba(1, 10, 30, .95), 0 0 14px rgba(1, 10, 30, .8); }
.cmp .ta { left: 12px; }
.cmp .tb { right: 12px; text-align: right; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp:has(input:focus-visible) { outline: 3px solid var(--paper-lit); outline-offset: 3px; }
.compare figcaption { color: var(--dim); font-size: .92em; margin-top: 12px; max-width: 60ch; }

/* ---------- case page: the story in paintings ---------- */
.painting { overflow: hidden; }
.js .painting img { animation: settle 2.6s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.045); } to { transform: none; } }
.tale { border-top: 1px solid var(--rule); padding-top: clamp(40px, 6vw, 76px); }
.tale-head h2 { font-size: clamp(38px, 4.6vw, 62px); }
.tale-head .note { margin: 14px 0 clamp(22px, 3vw, 34px); max-width: 62ch; }
.shots { list-style: none; margin: 0; padding: 0; }
.shot { margin: 0 auto clamp(26px, 4vw, 44px); max-width: var(--wrap); padding: 0 var(--pad); }
.shot .pic { overflow: hidden; background: var(--night-2); }
.shot img { width: 100%; height: auto; }
.shot .cap { margin: 12px 0 0; font-size: 1.1em; color: var(--moon); max-width: none; }
.tale-ui { display: none; }
.sec.first { border-top: 0; }

.tale.live .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #030a1a; }
.tale.live .shot { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; opacity: 0; transition: opacity .7s ease; }
.tale.live .shot.on { opacity: 1; }
.tale.live .shot .pic { position: absolute; inset: 0; }
.tale.live .shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) 50%; will-change: transform; }
.tale.live .shot .cap { display: none; }
.tale.live .tale-ui { display: block; }
.tale.live .stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 10, 26, 0) 0%, rgba(3, 10, 26, .2) 30%, rgba(3, 10, 26, .62) 70%, rgba(3, 10, 26, .86) 100%); }
.cap-live { position: absolute; z-index: 2; left: var(--pad); right: calc(var(--pad) + 220px); bottom: clamp(26px, 6vh, 60px); margin: 0; max-width: 26ch;
  font-size: clamp(25px, 2.7vw, 42px); line-height: 1.16; color: var(--moon); text-shadow: 0 1px 18px rgba(1, 10, 30, .9), 0 0 3px rgba(1, 10, 30, .6); text-wrap: balance; }
.cap-live.sw { animation: capin .45s ease-out both; }
@keyframes capin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rail { position: absolute; z-index: 2; right: clamp(8px, 1.6vw, 22px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
.rail button { position: relative; width: 34px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.rail button::after { content: ''; position: absolute; right: 6px; top: 8px; width: 10px; height: 2px; background: rgba(244, 247, 251, .5); box-shadow: 0 0 5px rgba(1, 10, 30, .8); transition: width .2s var(--ease-out), background .2s ease; }
.rail button.past::after { background: rgba(255, 217, 138, .75); }
.rail button.on::after { width: 22px; background: var(--lamp); box-shadow: 0 0 10px rgba(247, 98, 11, .7); }
.full { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(20px, 5vh, 50px); font-size: 19px; text-shadow: 0 1px 12px rgba(1, 10, 30, .95); }
@media (hover: hover) and (pointer: fine) {
  .rail button:hover::after { width: 18px; background: var(--moon); }
  .leaf:hover .paper { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 26px 50px rgba(0, 0, 0, .55), 0 2px 5px rgba(0, 0, 0, .4); }
}

/* upright screens: the painting keeps its height and the camera pans along it */
.tale.tall .shot .pic { inset: 0 0 auto 0; height: 68%; }
.tale.tall .shot img { width: auto; max-width: none; height: 100%; aspect-ratio: 16 / 9; object-fit: fill; }
.tale.tall .stage::after { top: 56%; bottom: auto; height: 12%; background: linear-gradient(to bottom, rgba(3, 10, 26, 0), #030a1a); }
.tale.tall .cap-live { top: 71%; bottom: auto; right: var(--pad); font-size: clamp(22px, 5.6vw, 30px); }
.tale.tall .rail { top: auto; bottom: 14px; left: calc(var(--pad) - 2px); right: auto; transform: none; flex-direction: row; }
.tale.tall .rail button { width: 14px; height: 30px; }
.tale.tall .rail button::after { left: 2px; right: auto; top: 14px; width: 10px; transition: none; }
.tale.tall .rail button.on::after { width: 10px; height: 4px; top: 13px; }
.tale.tall .full { left: var(--pad); right: auto; bottom: 46px; }

/* ---------- case page: the sheets of the file ---------- */
.leaves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.6vw, 46px) clamp(18px, 2.6vw, 34px); }
.leaf { display: block; text-decoration: none; cursor: zoom-in; }
.leaf .paper { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f0e5c4; transform: rotate(var(--r, -1deg));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 2px 5px rgba(0, 0, 0, .4); transition: transform .22s var(--ease-out), box-shadow .22s ease; }
.leaves li:nth-child(4n+1) .paper { --r: -1.4deg; }
.leaves li:nth-child(4n+2) .paper { --r: 1deg; }
.leaves li:nth-child(4n+3) .paper { --r: -.6deg; }
.leaves li:nth-child(4n) .paper { --r: 1.6deg; }
.leaf img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.leaf .t { display: block; margin-top: 18px; color: var(--moon); font-family: var(--f-head); font-weight: 600; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.06; }
.leaf .c { display: block; margin-top: 6px; color: var(--dim); font-size: .88em; line-height: 1.4; }
.leaf:hover .t { color: var(--paper-lit); }
.sec > .leaves + p.credit { margin: 26px 0 0; }
.sources.grid { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 clamp(28px, 4vw, 56px); align-items: start; }
.fold summary { cursor: pointer; display: flex; align-items: center; gap: 14px; list-style: none; padding: 6px 0;
  font-family: var(--f-head); font-weight: 600; font-size: clamp(22px, 2.2vw, 27px); letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; color: var(--moon); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: ''; width: 14px; height: 14px; flex: none; transition: transform .2s var(--ease-out);
  background: linear-gradient(var(--lamp), var(--lamp)) center / 14px 2px no-repeat, linear-gradient(var(--lamp), var(--lamp)) center / 2px 14px no-repeat; }
.fold[open] summary::before { transform: rotate(45deg); }
.fold[open] summary { margin-bottom: 24px; }
.fold summary:hover { color: var(--paper-lit); }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(2, 7, 18, .97); animation: vin .2s ease-out both; }
.viewer[hidden] { display: none; }
@keyframes vin { from { opacity: 0; } to { opacity: 1; } }
.vstage { position: absolute; inset: 58px 0 66px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.viewer.doc .vstage { cursor: zoom-in; }
.viewer.doc.zoomed .vstage { cursor: grab; }
.vstage img { flex: none; max-width: none; user-select: none; -webkit-user-drag: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.vstage img.in { animation: vimg .28s var(--ease-out) both; }
@keyframes vimg { from { opacity: 0; translate: var(--from, 0px) 0; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.vb { position: absolute; z-index: 2; width: 54px; height: 54px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--moon); }
.vb:hover { color: var(--paper-lit); }
.vb::before, .vb::after { content: ''; position: absolute; left: 50%; top: 50%; }
.vx { right: 6px; top: 2px; }
.vx::before, .vx::after { width: 26px; height: 2px; margin: -1px -13px; background: currentColor; }
.vx::before { transform: rotate(45deg); }
.vx::after { transform: rotate(-45deg); }
.vp, .vn { top: 50%; margin-top: -27px; filter: drop-shadow(0 0 6px rgba(1, 10, 30, .9)); }
.vp { left: 4px; }
.vn { right: 4px; }
.vp::before, .vn::before { width: 16px; height: 16px; margin: -8px -5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.vn::before { margin: -8px -11px; transform: rotate(-135deg); }
.viewer.single .vp, .viewer.single .vn { display: none; }
.vcap { position: absolute; left: var(--pad); right: var(--pad); bottom: 12px; margin: 0; max-width: none; min-height: 42px; display: flex; flex-wrap: wrap; gap: 2px 18px; align-items: baseline; align-content: center; justify-content: center; text-align: center; font-size: 17px; line-height: 1.3; }
.vcap b { color: var(--moon); font-weight: 600; }
.vcap span { color: var(--dim); }
.vcap i { font-style: normal; color: var(--dim); font-family: var(--f-type); font-size: 14px; }

@media (max-width: 860px) {
  .mapwrap, .made { grid-template-columns: minmax(0, 1fr); }
  .leaves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaf .t { font-size: 20px; }
  .pile { aspect-ratio: 4 / 3; }
  .cap-live { right: calc(var(--pad) + 40px); }
  .full { font-size: 18px; }
}
@media (max-width: 560px) {
  .sheet.print { border-width: 5px; }
  .cmp .tag { font-size: 12px; bottom: 8px; }
  .vp, .vn { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .map .halo, .mc.on, .cap-live.sw, .viewer, .vstage img.in, .js .painting img, .live .map a.on .ring { animation: none; }
  .case .plate.playing img { transform: none; }
}

/* ---------- quiet motion (16.11.2026) ---------- */
/* map: the lights of the cases come on one by one, in the order of the years, like windows at night */
.mapwrap.dark .map svg a, .mapwrap.dark .places li { transition: opacity 1.5s ease-in-out; transition-delay: calc(var(--o, 0) * .85s + .15s); }
.mapwrap.dark .map svg a { opacity: .08; }
.mapwrap.dark .places li { opacity: .3; }
.mapwrap.dark.lit .map svg a, .mapwrap.dark.lit .places li { opacity: 1; }

/* story: a slow camera on each painting (2 to 3 %), and the next painting dissolves in over the last one */
.tale.live .shot { z-index: 0; }
.tale.live .shot.was { opacity: 1; transition: none; z-index: 1; }
.tale.live .shot.on { z-index: 2; }
.tale.live .shot img { transform-origin: var(--fx) 50%; }
.tale.live .shot.cam img { animation: var(--cam, camIn) 12s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes camIn { from { scale: 1.004; } to { scale: 1.03; } }
@keyframes camOut { from { scale: 1.03; } to { scale: 1.004; } }
@keyframes camL { from { scale: 1.03; translate: .9% 0; } to { scale: 1.03; translate: -.9% 0; } }
@keyframes camR { from { scale: 1.03; translate: -.9% 0; } to { scale: 1.03; translate: .9% 0; } }

/* sheets of the file: a desk lamp follows the mouse (mouse only, never on touch or in calm mode) */
.trail.lamp { position: relative; }
.trail .lampw, .trail .lampd { position: absolute; left: 0; right: 0; top: -40px; bottom: -40px; pointer-events: none; }
/* no z-index here: the two layers must blend with the page itself, not inside a box of their own */
.trail .lampw { mix-blend-mode: screen;
  background: radial-gradient(circle 38vmax at var(--lx, 50%) var(--ly, 40%), rgba(255, 176, 96, .12) 0, rgba(255, 168, 84, .05) 45%, rgba(255, 168, 84, 0) 100%); }
.trail .lampd { mix-blend-mode: multiply;
  background: radial-gradient(circle 80vmax at var(--lx, 50%) var(--ly, 40%), #fff 25%, #c9ced9 75%, #b4bccb 100%); }
@media (prefers-reduced-motion: reduce) { .trail .lampw, .trail .lampd { display: none; } .tale.live .shot.cam img { animation: none; } }
