/* Dhara: a paper theatre lit from behind. A fixed stage (sky and river on a canvas, cut-paper layers in front of it)
   and the page travelling over it. main.js moves the camera and the light; without it the stage rests at the first
   station at dawn, and with scripting off nojs.css turns the page into a plain article. */

@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url("../../fonts/mukta-latin-400-normal.5fd54c8638ba.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 500; font-display: swap; src: url("../../fonts/mukta-latin-500-normal.831849ad1f3c.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 700; font-display: swap; src: url("../../fonts/mukta-latin-700-normal.a4069cc51529.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url("../../fonts/mukta-devanagari-400-normal.0177c1af85b0.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 500; font-display: swap; src: url("../../fonts/mukta-devanagari-500-normal.68106c4797b1.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 700; font-display: swap; src: url("../../fonts/mukta-devanagari-700-normal.aa0e47f3623e.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Rozha One"; font-weight: 400; font-display: swap; src: url("../../fonts/rozha-one-latin-400-normal.bb35a7e4ed93.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-weight: 400; font-display: swap; src: url("../../fonts/tiro-devanagari-hindi-latin-400-normal.3954facdf603.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-weight: 400; font-style: italic; font-display: swap; src: url("../../fonts/tiro-devanagari-hindi-latin-400-italic.f45273c45f9d.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-weight: 400; font-display: swap; src: url("../../fonts/tiro-devanagari-hindi-devanagari-400-normal.83fc18555cd2.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-weight: 400; font-style: italic; font-display: swap; src: url("../../fonts/tiro-devanagari-hindi-devanagari-400-italic.263ff561cebe.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* ==================================================================================================================
   THEME TOKENS. Everything below this block uses these; lift the block as it is into the site's stylesheet.
   ================================================================================================================== */
:root {
  /* colour, named for the subject */
  --gerua: #E0611A;        /* the saffron of a sannyasi's robe: the one action colour */
  --gerua-deep: #A8400C;
  --agni: #F6B33C;         /* flame gold: numerals and light on dark */
  --ratri: #17102F;        /* pre-dawn indigo: ink, and the dark ground */
  --ratri-2: #2B1647;
  --ganga: #0B666B;        /* river green-blue: links and Hindi accents on paper (5.6:1 on the paper surface) */
  --ganga-mist: #CFE7E2;
  --bhasma: #F5F3F8;       /* ash-white: the page */
  --surface: #FFFFFF;
  --lekh: #5E1414;         /* the maroon of the event's lettering: headings on paper */
  --ink: var(--ratri);
  --ink-soft: #4C4666;     /* secondary text on paper, 7.5:1 */
  --rule: rgba(23, 16, 47, .16);
  --night: #07050F;        /* the theatre with its light out */
  --night-paper: #1D1540;  /* a sheet of the same paper at night */
  --night-paper-back: #130D2B;
  --night-ink: #F5F3F8;
  --night-soft: #CCC6DE;   /* secondary text on the dark, 11:1 */

  /* type */
  --display: "Tiro Devanagari Hindi", "Mukta", Georgia, serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-small: .9375rem;
  --t-body: 1.125rem;      /* 18px; 19px from 900px up */
  --t-lead: 1.3rem;
  --t-h4: 1.25rem;
  --t-h3: 1.6rem;
  --t-h2: clamp(2rem, 4.4vw, 3rem);
  --t-h1: clamp(1.7rem, 7vw, 2.1rem);
  --t-year: clamp(4.4rem, 8vw, 7rem);
  --lh-body: 1.65;
  --lh-hi: 1.8;

  /* space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2.25rem; --s-7: 3.5rem; --s-8: 5.5rem;
  --gutter: clamp(16px, 5vw, 72px);
  --top-h: 60px;

  /* shape */
  --r-paper: 2px;
  --r-ctl: 3px;

  /* shadows: a print lying on the sheet; a sheet held off the stage (as a filter, so it follows a cut edge, and as
     a box-shadow for straight edges); a control */
  --shadow-leaf: 0 1px 2px rgba(23, 16, 47, .18), 0 3px 8px rgba(23, 16, 47, .12);
  --shadow-paper: 0 1px 1px rgba(23, 16, 47, .12), 0 3px 6px rgba(23, 16, 47, .12), 0 14px 26px -8px rgba(23, 16, 47, .3), 0 34px 54px -28px rgba(23, 16, 47, .45);
  --shadow-cut: drop-shadow(0 1px 1.5px rgba(23, 16, 47, .26)) drop-shadow(0 12px 15px rgba(23, 16, 47, .24));
  --shadow-ctl: 0 1px 1px rgba(23, 16, 47, .25), 0 6px 12px -5px rgba(168, 64, 12, .55);

  /* THE PAPER SURFACE. One handmade sheet (art/paper.webp, tileable) with the paper colour multiplied through it,
     a wash that keeps it light under text, a highlight along the top edge and a hair of shade along the bottom.
     A dark sheet is the same paper: set --paper (and the three below it) and nothing else. */
  --paper: #FEFDFF;
  --paper-back: #E9E5EF;   /* the leaf underneath */
  --paper-wash: rgba(255, 255, 255, .34);
  --paper-top: rgba(255, 255, 255, .95);
  --paper-foot: rgba(23, 16, 47, .07);
  --paper-texture: url("art/paper-sm.fac0f18fc336.webp");
  --paper-texture-size: 384px;
  --grain: url("grain.00af982bab68.png");
  /* a hand-cut edge: a couple of pixels of wander on every side */
  --deckle: polygon(0% 1.8px, 7.7% 1.6px, 15.4% .7px, 23.1% .9px, 30.8% 1px, 38.5% 2.3px, 46.2% 2.2px, 53.8% 1px, 61.5% 1px, 69.2% 1.2px, 76.9% 1.3px, 84.6% 1.3px, 92.3% 2px,
    calc(100% - 2.4px) 0%, calc(100% - .2px) 7.7%, calc(100% - .8px) 15.4%, calc(100% - .6px) 23.1%, calc(100% - 1.4px) 30.8%, calc(100% - 2.3px) 38.5%, calc(100% - 1.1px) 46.2%, calc(100% - 1.8px) 53.8%, calc(100% - 2.4px) 61.5%, calc(100% - .8px) 69.2%, calc(100% - 1px) 76.9%, calc(100% - 1.7px) 84.6%, calc(100% - 2.3px) 92.3%,
    100% calc(100% - .7px), 92.3% calc(100% - .8px), 84.6% calc(100% - .2px), 76.9% calc(100% - 2.4px), 69.2% calc(100% - 1.8px), 61.5% calc(100% - 1.8px), 53.8% calc(100% - 2.3px), 46.2% calc(100% - .1px), 38.5% calc(100% - 2.1px), 30.8% calc(100% - 1.4px), 23.1% 100%, 15.4% calc(100% - .3px), 7.7% calc(100% - 1.8px),
    1.5px 100%, 2.4px 92.3%, 1px 84.6%, .2px 76.9%, 2.3px 69.2%, 1.6px 61.5%, 1.6px 53.8%, 1.3px 46.2%, .6px 38.5%, 1.6px 30.8%, .9px 23.1%, .5px 15.4%, .9px 7.7%);
}
@media (min-width: 900px) {
  :root { --t-body: 1.1875rem; --t-h1: clamp(2.1rem, 3.3vw, 3rem); --t-h3: 1.8rem; --top-h: 64px; }
}
/* Anything with this list of selectors is a sheet of that paper. */
.top, .menu__panel, .rail, .folio::before, .folio::after, .mount, .slip, .sheet, .leaf__sheet {
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper-top), transparent 2.5px), linear-gradient(to top, var(--paper-foot), transparent 3px), linear-gradient(var(--paper-wash), var(--paper-wash)), var(--grain), var(--paper-texture);
  background-size: auto, auto, auto, auto, var(--paper-texture-size);
  background-blend-mode: normal, normal, normal, normal, multiply;
}

/* The stage's own measures (the wide page only: a phone has no stage). The art contract fixes the files (stations
   3:2 standing on their bottom edge), so these are all there is to tune. */
:root {
  --stick: 12px;                                                    /* a folio stands this far off the bottom */
  --folio-left: 12px;
  --folio-w: 100%;
  --mat: 6px;
  --in-w: calc(100vw - 2 * var(--mat));                             /* the lit window of 23 December 1926: always 3:2, never stretched */
  --lamp-w: 88px;
}
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) {
  :root {
    --wl: 69vh;                                                     /* the waterline, from the top */
    --folio-left: 104px;
    --folio-w: clamp(20rem, 32vw, 34rem);
    --right: calc(100vw - var(--folio-left) - var(--folio-w) - 48px);                /* the room right of the reading column */
    --focus: calc(var(--folio-left) + var(--folio-w) + 24px + var(--right) / 2);     /* where the station in focus stands */
    --stn-gap: 165vw;                                               /* far enough apart that the bank between two stations can stand empty */
    --mat: 13px;
    --in-w: min(calc(100vw - 2 * var(--gutter)), calc((100vh - var(--top-h) - 2 * var(--mat) - 56px) * 1.5));
    --hills-h: 12vh; --hills-up: 9vh; --trees-h: 16vh; --front-h: 21vh;
    --lamp-w: 120px;
    --stick: calc(var(--top-h) + clamp(18px, 5.5vh, 60px));         /* a folio hangs this far below the top */
  }
}

@media (max-width: 899px) { :root { --folio-left: 20px; --folio-w: clamp(17rem, 40vw, 22rem); } }

/* ================================================================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 var(--t-body)/var(--lh-body) var(--body); color: var(--ink); background: var(--bhasma); }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg, picture { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:lang(hi) { line-height: var(--lh-hi); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid var(--ratri); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 16px; background: var(--ratri); color: var(--bhasma); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ the stage */
.stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; background: var(--bhasma); }
/* Sky and river for a browser without WebGL; main.js feeds the colours. */
.stage__sky { position: absolute; inset: 0;
  background: linear-gradient(var(--sky-top, #6E69B4) 0, var(--sky-mid, #E7A6B6) calc(var(--wl) * .6), var(--sky-low, #FFD8A6) var(--wl), var(--wat-a, #CDA6BE) var(--wl), var(--wat-b, #7F7BB4) 100%); }
.stage__sky::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--wl) + 2vh); bottom: 0; opacity: var(--lamps, 0);
  background: radial-gradient(circle, #FFE9B0 0 1.5px, rgba(246, 179, 60, .5) 2px, transparent 5px) 12px 8px / 97px 41px,
              radial-gradient(circle, #FFE9B0 0 2px, rgba(246, 179, 60, .5) 3px, transparent 7px) 50px 30px / 151px 67px,
              radial-gradient(circle, #FFE9B0 0 2.5px, rgba(246, 179, 60, .5) 4px, transparent 9px) 90px 60px / 233px 89px; }
.stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.has-gl .stage__gl { opacity: 1; }

/* The strips tile sideways; main.js slides each at its own rate and wraps it by one tile. */
.strip { position: absolute; left: 0; width: 400%; background-repeat: repeat-x; background-position: 0 100%; background-size: auto 100%; will-change: transform; }
.strip--hills { top: calc(var(--wl) - var(--hills-up) - var(--hills-h)); height: var(--hills-h); background-image: url("art/hills-sm.1a63869061d9.webp"); }
.strip--trees { top: calc(var(--wl) - var(--trees-h) + 2px); height: var(--trees-h); background-image: url("art/treeline-sm.fcdea4c864fb.webp"); filter: drop-shadow(0 -2px 5px rgba(23, 16, 47, .24)); }
.strip--front { bottom: calc(var(--front-h) * -.14); height: var(--front-h); background-image: url("art/front-sm.60beb4d2161c.webp"); filter: drop-shadow(0 -3px 9px rgba(23, 16, 47, .34)); }
@media (min-width: 900px) {
  .strip--hills { background-image: url("art/hills.a4d55858bf5d.webp"); }
  .strip--trees { background-image: url("art/treeline.a0129e67d84e.webp"); }
  .strip--front { background-image: url("art/front.1b787af7246e.webp"); }
}

/* The stations stand on the waterline, a fixed distance apart; the track's origin is the focus point. */
.track { position: absolute; left: var(--focus); top: var(--wl); width: 0; height: 0; will-change: transform; filter: drop-shadow(0 4px 9px rgba(23, 16, 47, .32)); }
.stn { --w: min(var(--right), calc((var(--wl) - var(--top-h) - 10px) / (1 - var(--crop, 0)) * 1.5)); position: absolute; bottom: 0; left: calc(var(--stn-gap) * var(--i, 0)); width: var(--w); margin-left: calc(var(--w) / -2); }
.stn:nth-child(2) { --i: 1; } .stn:nth-child(3) { --i: 2; } .stn:nth-child(4) { --i: 3; } .stn:nth-child(5) { --i: 4; }
/* the empty sky at the top of each sheet, as a share of its height: that much of it may go behind the header */
.stn--walk { --crop: .02; } .stn--talwan { --crop: .17; } .stn--kangri { --crop: .2; } .stn--statue { --crop: .03; }
.stn__art { width: 100%; height: auto; }
/* Art that runs off both sides of its sheet instead of standing on its own ground: let the ends go soft. */
.stn--bleed .stn__art { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* The reflection: the same sheet turned over on the water, cut into slivers that thin out as they go down. */
.stn__refl { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform-origin: 50% 100%; transform: scaleY(-.6); opacity: .5; filter: blur(1.2px);
  -webkit-mask-image: linear-gradient(to top, #000, rgba(0, 0, 0, .55) 28%, transparent 64%), repeating-linear-gradient(to top, #000 0 9px, transparent 9px 12px);
  mask-image: linear-gradient(to top, #000, rgba(0, 0, 0, .55) 28%, transparent 64%), repeating-linear-gradient(to top, #000 0 9px, transparent 9px 12px);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.stn--bleed .stn__refl {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(to top, #000, rgba(0, 0, 0, .55) 28%, transparent 64%), repeating-linear-gradient(to top, #000 0 9px, transparent 9px 12px);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(to top, #000, rgba(0, 0, 0, .55) 28%, transparent 64%), repeating-linear-gradient(to top, #000 0 9px, transparent 9px 12px); }

/* 23 December 1926, from inside: a shadow play on the lit paper of the window. One box, always 3:2, so that every
   measure below is a fraction of it: the man's height, where he stands, where the lamp hangs, where the muzzle is.
   main.js opens the box from the window outwards (a clip that grows) as the house falls away round it. */
.inside { position: absolute; left: calc(50% - var(--in-w) / 2); top: calc(50% + var(--top-h) / 2 - var(--in-w) / 3); width: var(--in-w); aspect-ratio: 3 / 2; visibility: hidden; --o: 1; }
.inside__box, .inside__mat { position: absolute; inset: 0; }
/* the mat: the frame of the window we came in at, and the lamplight it lets out */
.inside__mat { opacity: var(--o); box-shadow: 0 0 0 var(--mat) #221A3C, 0 0 0 calc(var(--mat) + 1.5px) rgba(255, 196, 120, .22), 0 0 90px 12px rgba(255, 158, 60, .24); }
.inside__box { --man-h: 62%; --man-x: 21.5%; --man-floor: 0%; --lamp-x: 75.2%; --lamp-y: 35%; --muzzle-y: 14.1%; overflow: hidden; background: #6E1F00; }
.inside__box::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 26px 5px rgba(34, 9, 0, .5), inset 0 3px 2px rgba(20, 6, 0, .45); }
.inside__play { position: absolute; inset: 0; will-change: transform; }
.inside__play > picture, .inside__screen, .inside__room { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The light comes from the hanging lamp: a glow where it hangs, and the whole screen wavering with it. */
.inside__lamp { position: absolute; left: var(--lamp-x); top: var(--lamp-y); width: 56%; aspect-ratio: 1; margin: -28% 0 0 -28%;
  background: radial-gradient(closest-side, rgba(255, 248, 204, .62), rgba(255, 226, 140, .22) 38%, rgba(255, 210, 110, 0) 72%); }
.inside__flicker { position: absolute; inset: 0; background: #2A0D00; opacity: 0; }
.is-in .inside__lamp { animation: lamp 5.3s linear infinite; }
.is-in .inside__flicker { animation: waver 5.3s linear infinite; }
@keyframes lamp { 0%, 40%, 100% { opacity: 1; transform: scale(1); } 7% { opacity: .82; transform: scale(.97); } 11% { opacity: .96; } 19% { opacity: .7; transform: scale(.94); } 24% { opacity: .93; } 52% { opacity: .8; transform: scale(.96); } 58% { opacity: .97; } 73% { opacity: .66; transform: scale(.93); } 79% { opacity: .9; } }
@keyframes waver { 0%, 40%, 100% { opacity: 0; } 7% { opacity: .06; } 11% { opacity: .01; } 19% { opacity: .11; } 24% { opacity: .02; } 52% { opacity: .07; } 58% { opacity: .01; } 73% { opacity: .13; } 79% { opacity: .03; } }
/* The man: one puppet, two poses, both standing on the same spot. (inherit, not visible: when the lamp is out the
   whole box is hidden, and he must be hidden with it.) */
.man { position: absolute; left: var(--man-x); bottom: var(--man-floor); height: var(--man-h); will-change: transform; }
.man picture { height: 100%; }
.man img { display: block; height: 100%; width: auto; max-width: none; }
.man__aim { position: absolute; left: 0; bottom: 0; height: 100%; visibility: hidden; }
.man.is-aim .man__stand { visibility: hidden; }
.man.is-aim .man__aim { visibility: inherit; }
.man__muzzle { position: absolute; left: 100%; top: var(--muzzle-y); }
/* The lamp is out. Latched by main.js at the shot and for everything after it: the house, the screen, the room and
   both poses of the man are not drawn at all. No fade: this is the one hard cut on the page. */
.mart.is-out .mart__house, .mart.is-out .inside, .mart.is-out .inside * { visibility: hidden !important; animation: none !important; transition: none !important; }
/* THE SHOT. About a seventh of a second of light, thrown from the muzzle towards the bed: main.js puts .is-shooting
   on the scene, and at its end cuts to black (.is-out above) and leaves only an afterimage of the burst (.is-after).
   Everything here is drawn on the paper screen, inside the box, and is gone with it. */
.inside__box { --mz-x: 47.3%; --mz-y: 46.7%; --c: max(8px, calc(var(--in-w) * .02)); --rim: max(1.5px, calc(var(--in-w) * .004)); }
.inside__kick, .inside__wedge, .inside__streak, .burst { position: absolute; opacity: 0; mix-blend-mode: screen; mix-blend-mode: plus-lighter; }
/* the whole screen kicks up once, from amber towards white-gold */
.inside__kick { inset: 0; background: radial-gradient(farthest-corner at var(--mz-x) var(--mz-y), rgba(255, 252, 232, .6), rgba(255, 238, 176, .34) 45%, rgba(255, 226, 150, .2)); }
/* the light it throws: a wedge on the paper, narrow at the gun and wide at the bed */
.inside__wedge { left: var(--mz-x); top: 0; right: 0; bottom: 0;
  background: conic-gradient(from 70deg at 0 var(--mz-y), rgba(255, 246, 214, 0) 0deg, rgba(255, 246, 214, .78) 13deg, rgba(255, 246, 214, .78) 27deg, rgba(255, 246, 214, 0) 40deg, rgba(255, 246, 214, 0) 360deg);
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .12)); mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .12)); }
/* rim light on the sides that face the gun: the bed and the man lying on it on their left, the other man on his right */
.inside__rim { position: absolute; inset: 0; visibility: hidden; clip-path: inset(0 0 0 var(--mz-x)); filter: drop-shadow(calc(var(--rim) * -1) 0 0 rgba(255, 236, 170, .95)); }
.inside__rim img { width: 100%; height: 100%; }
/* the bullet's path: a streak that leaves the muzzle along the barrel's line, its tail going out behind it */
.inside__streak { left: var(--mz-x); top: calc(var(--mz-y) - var(--rim) * .5); width: 26%; height: var(--rim); border-radius: var(--rim);
  background: linear-gradient(90deg, #FFE7A8, #FFFFFF); box-shadow: 0 0 calc(var(--rim) * 3) var(--rim) rgba(255, 216, 130, .75); }
/* the burst: a hard little star with a tongue of flame along the barrel's line */
.burst { left: var(--mz-x); top: var(--mz-y); width: calc(var(--c) * 6); height: calc(var(--c) * 3.6); margin: calc(var(--c) * -1.8) 0 0 calc(var(--c) * -1.3); transform-origin: 21.7% 50%;
  clip-path: polygon(100% 50%, 56.7% 40.3%, 40% 36.1%, 48.3% 9.7%, 32.5% 31.9%, 25.8% 0, 22.5% 30.6%, 5.8% 13.9%, 15.8% 40.3%, 0 47.2%, 14.2% 54.2%, 7.5% 86.1%, 20.8% 66.7%, 28.3% 100%, 32.5% 68.1%, 45% 83.3%, 40% 62.5%, 58.3% 58.9%);
  background: radial-gradient(ellipse 30% 46% at 21.7% 50%, #FFFFFF 0 34%, #FFF3C4 52%, rgba(246, 179, 60, 0) 100%), linear-gradient(90deg, rgba(255, 255, 255, 0) 18%, #FFFFFF 30%, #FFE9A8 52%, #F6B33C 78%, #E0611A), #F6B33C; }
.is-shooting .inside__kick { animation: kick .14s linear 1 both; }
.is-shooting .inside__wedge { animation: kick .14s linear 1 both; }
.is-shooting .inside__rim { visibility: inherit; }
.is-shooting .man__aim img { filter: drop-shadow(var(--rim) 0 0 rgba(255, 236, 170, .95)); }
.is-shooting .man__aim { animation: recoil .08s ease-out 1 both; transform-origin: 30% 100%; }
.is-shooting .inside__streak { animation: streak .14s linear 1 both; }
.is-shooting .burst { animation: burst .14s linear 1 both; }
@keyframes kick { 0% { opacity: .3; } 21% { opacity: 1; } 100% { opacity: .25; } }
@keyframes burst { 0% { opacity: 1; transform: scale(.35); } 21% { opacity: 1; transform: scale(1); } 60% { opacity: .9; transform: scale(1.06, .86); } 100% { opacity: .35; transform: scale(.82, .5); } }
@keyframes streak { 0%, 14% { opacity: 1; clip-path: inset(-12px 100% -12px 0); } 55% { opacity: 1; clip-path: inset(-12px 52% -12px 4%); } 100% { opacity: 1; clip-path: inset(-12px 0 -12px 58%); } }
@keyframes recoil { 0%, 100% { transform: none; } 30% { transform: translateX(-3px) rotate(-1.5deg); } }
/* what is left on the eye when the light has gone: the burst alone, at the muzzle, dim, for a quarter of a second */
.shot { position: absolute; left: 0; top: 0; width: 0; height: 0; --c: max(8px, calc(var(--in-w) * .02)); }
.shot::before { content: ""; position: absolute; left: calc(var(--c) * -1.6); top: calc(var(--c) * -1.5); width: calc(var(--c) * 5.2); height: calc(var(--c) * 3); border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse 50% 50% at 34% 50%, rgba(232, 120, 40, .62), rgba(200, 84, 20, .26) 48%, rgba(180, 70, 10, 0) 100%); }
.is-after .shot::before { animation: after .26s ease-out 1 both; }
@keyframes after { from { opacity: 1; } to { opacity: 0; } }

/* The one lamp, on the black water. */
.lamp { position: relative; width: var(--lamp-w); margin: 0 auto; }
.lamp__art { position: relative; width: 100%; }
.lamp__glow { position: absolute; left: 50%; top: 24%; width: 420%; aspect-ratio: 1; margin: -210% 0 0 -210%;
  background: radial-gradient(closest-side, rgba(255, 196, 100, .46), rgba(246, 150, 50, .16) 36%, rgba(246, 140, 40, 0) 72%); animation: breathe 2.3s ease-in-out infinite alternate; }
.lamp__refl { position: absolute; left: 0; top: 84%; width: 100%; transform: scaleY(-.8); opacity: .3; filter: blur(2px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%); }

.stage__grain { position: absolute; inset: 0; background: var(--grain); opacity: .9; }
/* A phone, or any machine with little to spare: the paper keeps its place, the soft shadows go. */
.lite .strip, .lite .track, .lite .stn__refl { filter: none; }
@media (max-width: 899px) { .strip, .track, .stn__refl { filter: none; } }

/* ------------------------------------------------------------------ header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter) 0 max(16px, calc(var(--gutter) - 24px));
  box-shadow: 0 1px 0 var(--rule), 0 6px 16px -10px rgba(23, 16, 47, .5); transition: background-color .9s, color .9s, box-shadow .9s; }
.mark { min-width: 0; margin-right: auto; font: 400 clamp(.9rem, 3.9vw, 1.1rem)/44px var(--display); color: var(--lekh); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .9s; }
.mark { display: inline-flex; align-items: center; gap: .55rem; }
.mark :lang(hi) { font-size: clamp(.94rem, 4vw, 1.16rem); padding-top: .15em; overflow: hidden; text-overflow: ellipsis; }
.mark__face { flex: none; width: auto; height: 38px; }
.nav { display: none; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a, .top__login { font-weight: 500; font-size: 1.0625rem; text-decoration: none; padding: 10px 2px; white-space: nowrap; }
.nav a:hover, .top__login:hover, .menu__panel a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--gerua); }
.top__act { display: flex; align-items: center; gap: 1.2rem; }
.top__login { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; }
.menu svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 14rem; padding: 8px 0; color: var(--ink); box-shadow: var(--shadow-paper); border-radius: var(--r-paper); }
.menu__panel a { display: block; padding: 11px 22px; text-decoration: none; font-weight: 500; }
@media (max-width: 399px) { .top { gap: 8px; padding-left: 12px; padding-right: 8px; } .btn--sm { padding: .4rem .8rem; font-size: .9375rem; } }
@media (min-width: 560px) { .top__login { display: block; } .menu__panel .menu__login { display: none; } }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } .top { gap: clamp(1rem, 2.4vw, 2.4rem); } }
/* the header's dark form, for the hours without light */
.top.is-night { --paper: var(--night); --paper-wash: transparent; --paper-top: transparent; color: var(--night-ink); box-shadow: 0 1px 0 rgba(245, 243, 248, .12); }
.top.is-night .mark { color: var(--night-soft); }
.top.is-night .btn { background: transparent; color: var(--agni); box-shadow: inset 0 0 0 1.5px rgba(246, 179, 60, .6); }
.top.is-night :focus-visible { outline-color: var(--agni); }

/* ------------------------------------------------------------------ the rail of years (desktop) */
.rail { display: none; }
@media (min-width: 900px) and (orientation: landscape), (min-width: 900px) and (min-aspect-ratio: 13001/20000) {
  .rail { display: block; position: fixed; left: 0; top: calc(50vh + var(--top-h) / 2); z-index: 15; translate: 0 -50%; padding: 10px 12px 10px 22px;
    border-radius: 0 var(--r-paper) var(--r-paper) 0; box-shadow: var(--shadow-paper); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
  .rail.is-on { opacity: 1; visibility: visible; }
  .rail::before, .rail__fill { content: ""; position: absolute; left: 12px; top: 32px; bottom: 32px; width: 2px; background: var(--rule); }
  .rail__fill { background: var(--gerua); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .rail a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 2px 0 6px; font: 500 .9375rem/1 var(--body); color: var(--ink-soft); text-decoration: none; transition: color .3s; }
  .rail a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(23, 16, 47, .3); transition: background-color .3s, box-shadow .3s; }
  .rail a:hover { color: var(--ink); }
  .rail a.is-past::before { background: var(--gerua); box-shadow: none; }
  .rail a[aria-current] { color: var(--lekh); font-weight: 700; }
  .rail a[aria-current]::before { background: var(--gerua); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gerua); }
}

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .6rem 1.7rem; border-radius: var(--r-ctl); background: var(--gerua); color: var(--ratri);
  font: 700 1.0625rem/1.2 var(--body); text-decoration: none; box-shadow: var(--shadow-ctl); transition: transform .15s, box-shadow .15s, background-color .15s, color .15s; }
.btn:hover { background: var(--agni); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 1px rgba(23, 16, 47, .3); }
.btn--quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ratri); }
.btn--quiet:hover { background: var(--ratri); color: var(--bhasma); }
.btn--sm { min-height: 44px; padding: .4rem 1.1rem; font-size: 1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 14px; }

/* THE WAY DOWN. With the theatre running there is one control, the same on every section: .down, fixed at the bottom
   centre, a thin ring and a chevron, whose target main.js keeps at the next section and whose ink follows the ground
   behind it. The links in the sections (a.next) are what a browser without scripting gets instead: each centred at
   the foot of its section, in the same style. */
.down, .next { position: relative; display: block; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); opacity: .66; transition: opacity .25s, color .5s; }
.down::after, .next::after { content: ""; position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.down::before, .next::before { content: ""; position: absolute; right: 19px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.down:hover, .down:focus-visible, .down:active, .next:hover, .next:focus-visible { opacity: 1; }
.next { margin: 12px auto 0; }
.live a.next { display: none; }
.down { display: none; position: fixed; z-index: 18; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); margin-left: -24px; }
.live .down { display: block; }
.down[data-ink="light"], .mart .next, .folio--night .next { color: var(--night-ink); }
.down[data-ink="light"]:focus-visible { outline-color: var(--agni); }
.down.is-off { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
/* the hero's cue keeps its words: a link with them beside the ring; with the theatre running, the words alone */
.next--cue { display: flex; align-items: center; width: fit-content; height: auto; min-height: 48px; padding-right: 58px; border-radius: 0; font-weight: 500; color: var(--ganga); opacity: 1; }
.next--cue::after { top: 50%; margin-top: -20px; }
.live a.next--cue { display: flex; margin: 6px 0 0; padding-right: 0; }
.live .next--cue::before, .live .next--cue::after { content: none; }
/* the reeds stand back from that spot, so that the control has the water behind it */
.stage__fore { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle at 50% calc(100% - 30px), #0000 24px, #000 58px); mask-image: radial-gradient(circle at 50% calc(100% - 30px), #0000 24px, #000 58px); }

/* ------------------------------------------------------------------ chapters and their folios
   A chapter is a tall stretch of the journey. Its folio is a sheet of paper that comes up, stays put while the
   reader scrolls the chapter's length (--hold, set from the amount of text), and is let go as the camera moves on.
   It never changes height: anything longer opens as a sheet of its own (.leaf). Phones: the folio stands on the
   bottom of the screen. Desktop: it hangs in a column on the left. */
main { position: relative; z-index: 1; overflow-x: clip; }
.chapter { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(var(--hold, 85vh) + 85vh); padding: 0 var(--folio-left) 45vh; }
.folio { position: sticky; bottom: var(--stick); z-index: 1; width: 100%; max-width: 31rem; margin-inline: auto; padding: 20px 22px 14px; color: var(--ink); filter: var(--shadow-cut); }
/* the sheet, cut by hand, and the leaf under it */
.folio::before, .folio::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--deckle); }
.folio::before { background-color: var(--paper-back); transform: rotate(-1.1deg) translate(-2px, 5px); }
.folio.is-gone { pointer-events: none; }
.lite .folio { filter: none; }
.lite .folio::after { clip-path: none; box-shadow: var(--shadow-paper); }
/* A folio too tall to stand on a small screen goes with the page like any long text. */
.folio.is-loose { position: relative; top: auto; bottom: auto; margin-bottom: auto; }
.chapter.is-loose { min-height: 0; }
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) {
  .chapter { justify-content: flex-start; min-height: calc(var(--hold, 85vh) + 100vh); padding: var(--stick) 0 45vh var(--folio-left); }
  .folio { top: var(--stick); bottom: auto; width: var(--folio-w); max-width: none; margin-inline: 0; padding: 34px 40px 22px; }
}
@media (min-width: 900px) and (max-width: 1199px) { .folio { padding: 28px 28px 18px; } }

.folio h2, .folio h3 { font-size: var(--t-h3); line-height: 1.2; }
.folio p { margin-top: .55rem; }
.folio__sheet > p:first-child, .folio__sheet > dl:first-child { margin-top: .55rem; }
.on-phone { display: none; }
.year { display: block; margin: 0 0 .12em -.03em; font-size: var(--t-year); line-height: .98; letter-spacing: -.015em; color: var(--lekh); }
.year::after { content: ""; display: block; width: 2.75rem; height: 3px; margin: .1em 0 .14em .03em; background: var(--gerua); }
.year__day { display: block; font-size: .3em; line-height: 1.3; letter-spacing: 0; color: var(--ink); }
.year--date { padding-top: .08em; }

/* Read more: with JavaScript it lays the passage out as a sheet (.leaf); without, it opens here. */
.more { margin-top: .9rem; border-top: 1px solid var(--rule); }
.more > summary { list-style: none; display: flex; align-items: center; gap: .65rem; min-height: 48px; padding-right: 56px; font-weight: 500; color: var(--ganga); }
.more > summary::before { content: ""; flex: none; width: 15px; height: 15px; background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 2px 100% no-repeat; }
.more[open] > summary::before { background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat; }
.more > summary:hover { color: var(--ink); }
.more > summary:focus-visible, .credits summary:focus-visible { outline-offset: -2px; }
.more__body { padding: .5rem 0 .6rem; }
.more__body > :first-child { margin-top: 0; }
.more__body h4 { font-size: var(--t-h4); line-height: 1.3; color: var(--lekh); }
.more__body p { margin-top: .5rem; }
.plates { display: grid; gap: 1rem 1.2rem; margin-top: 1.1rem; }
.plate img { width: 100%; border: 5px solid var(--surface); box-shadow: var(--shadow-leaf); }
.plate figcaption, .mount figcaption { margin-top: .5rem; font-size: var(--t-small); line-height: 1.45; color: var(--ink-soft); }
.terms div + div { margin-top: .7rem; }
.terms dt { font: 400 1.25rem/1.3 var(--display); color: var(--lekh); }
.terms dd { line-height: 1.55; }

/* ------------------------------------------------------------------ hero: the title plate */
.hero__hi { margin: 0; font: 400 clamp(1.1rem, 4.2vw, 1.4rem)/1.7 var(--display); color: var(--ganga); }
.hero__title { margin-top: .05em; font-size: var(--t-h1); line-height: 1.08; letter-spacing: -.01em; color: var(--lekh); }
.span { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; font: 400 1.3rem/1.4 var(--display); }
.span::before, .span::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }
.span::before { order: 1; } .span__mid { order: 2; white-space: nowrap; font-size: 1rem; } .span::after { order: 3; } .span > :last-child { order: 4; }
.span--plain::after { display: none; }
.facts { display: flex; flex-wrap: wrap; gap: .2rem 2rem; margin-top: .6rem; }
.facts dt { font-size: var(--t-small); line-height: 1.4; color: var(--ink-soft); }
.facts dd { font: 400 clamp(1.1rem, 4.6vw, 1.25rem)/1.35 var(--display); }
.folio--title .cta { margin-top: .9rem; }
/* The event card in the hero, dressed as the event site (static/css/site.css, content.css): its cream with saffron rays
   from behind the emblem, the name in Rozha One, the maroon days strip, saffron Registration. Its colours are that
   site's, so they are set here and not taken from this page's paper. */
.evcard { --maroon: #5A1209; --maroon-2: #7A1F12; --maroon-ink: #2B0904; --saffron: #B4400C; --saffron-deep: #8F320A; --gold: #E59525; --gold-soft: #F6D28F;
  margin-top: .8rem; padding: .8rem .9rem .9rem; border-radius: 14px; color: #221A17; border-bottom: 3px solid var(--saffron);
  background: radial-gradient(circle at 16% 30%, rgba(255, 248, 236, 0) 0 14%, #FFF8EC 62%),
    repeating-conic-gradient(from 0deg at 16% 30%, rgba(229, 149, 37, .18) 0 6deg, rgba(229, 149, 37, 0) 6deg 15deg), #FFF8EC;
  box-shadow: 0 1px 2px rgba(43, 9, 4, .08), 0 14px 30px -16px rgba(43, 9, 4, .45); }
.evcard__head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem; }
.evcard__logo { width: clamp(72px, 20vw, 96px); height: auto; }
.evcard .evcard__name { margin: 0; font: 400 clamp(1.3rem, 5vw, 1.55rem)/1.05 "Rozha One", var(--display); color: var(--maroon); text-wrap: balance; }
.evcard__name span { display: block; }
.evcard__name small { display: block; margin-top: .35rem; font: 700 .72rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--saffron-deep); }
.evcard__days { display: flex; gap: 6px; margin: .75rem 0 0; padding: 7px; list-style: none; border-radius: 12px;
  background: radial-gradient(circle at 100% 0, rgba(229, 149, 37, .32), rgba(229, 149, 37, 0) 55%), linear-gradient(120deg, var(--maroon-2), var(--maroon) 60%, var(--maroon-ink)); }
.evcard__days li { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 5px 4px;
  border: 1px solid rgba(246, 210, 143, .3); border-radius: 9px; background: rgba(43, 9, 4, .28); line-height: 1.05; }
.evcard__days b { font: 400 1.45rem/1 "Rozha One", var(--display); color: #fff; }
.evcard__days span { display: grid; font: 700 .72rem/1.15 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }
.evcard__days small { font-size: .68rem; font-weight: 400; letter-spacing: .03em; color: #EBD5CB; }
.evcard .evcard__meta { margin: .6rem 0 0; font-size: var(--t-small); line-height: 1.4; color: #5F544E; }
.evcard .evcard__venue { display: flex; align-items: baseline; gap: .45rem; }
.evcard__venue::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translateY(-1px); background: var(--saffron); }
.evcard__cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .8rem 0 0; }
.evcard__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .6rem; border-radius: 10px; text-align: center;
  font: 700 .9375rem/1.2 var(--body); color: var(--maroon); text-decoration: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--maroon); transition: background .15s, color .15s; }
.evcard__btn:hover { background: var(--maroon); color: #fff; }
.evcard__btn--go { background: var(--saffron); color: #fff; box-shadow: none; }
.evcard__btn--go:hover { background: var(--saffron-deep); }
.evcard__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (min-width: 900px) { .folio--title .cta { margin-top: 1.5rem; } .span { margin-top: 1.2rem; } .facts { margin-top: 1.1rem; } }

/* ------------------------------------------------------------------ the introduction: the portrait in its mount, and the text */
.chapter--intro h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; color: var(--lekh); }
.chapter--intro h2 span { display: block; font-size: .62em; color: var(--ganga); }
.folio__dates { margin-top: .1rem !important; font: 400 1.35rem/1.4 var(--display); color: var(--ink-soft); }
.folio__sub { margin-top: .35rem !important; font: italic 400 var(--t-lead)/1.4 var(--display); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.6rem, max-content)); gap: .1rem 1.6rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--rule); font: 400 1.2rem/1.5 var(--display); color: var(--lekh); }
.values li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 .6rem .16em 0; background: var(--gerua); transform: rotate(45deg); }
/* The photograph is left as it is: a keyline, a board, a caption. */
.mount { position: relative; z-index: 1; width: min(64vw, 17rem); margin: 0 auto 18px; padding: 12px 12px 12px; box-shadow: var(--shadow-paper); transform: rotate(-.8deg); }
.mount img { width: 100%; outline: 1px solid rgba(23, 16, 47, .35); outline-offset: -1px; }
.mount figcaption { text-align: center; font-family: var(--display); font-style: italic; }
/* A cut-out portrait stands on the page itself: no board, no keyline, only its shadow. */
.mount.mount--cutout { padding: 0; background: none; box-shadow: none; transform: none; }
.mount--cutout img { outline: 0; filter: drop-shadow(0 14px 18px rgba(23, 16, 47, .28)); }
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) {
  .chapter--intro { display: grid; grid-template-columns: var(--folio-w) 1fr; align-items: start; }
  .chapter--intro .folio { grid-column: 1; grid-row: 1; }
  .mount { grid-column: 2; grid-row: 1; position: sticky; top: var(--stick); justify-self: center; width: min(21rem, 34vh); margin: 0 0 0 4vw; padding: 16px 16px 14px; }
}

/* ------------------------------------------------------------------ the intertitle before the seven moments */
.slip { position: relative; z-index: 1; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto 30vh; padding: .55rem 1.3rem .4rem; box-shadow: var(--shadow-paper);
  border-radius: var(--r-paper); font-size: 1.45rem; line-height: 1.4; color: var(--lekh); transform: rotate(-1deg); }
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) { .slip { margin: 0 0 34vh var(--folio-left); font-size: 1.7rem; } }

/* ------------------------------------------------------------------ the towns: painted flats
   A town chapter leaves the bank. On the wide page its painting is a flat that rises out of the bank like the page of
   a pop-up book: hinged at its foot, it stands up as the chapter comes (main.js turns it from 75deg to upright and lays
   its shadow on the river behind), creeps a few percent closer while it is read, and folds back down when the story
   returns to the river; the next town rises over it. On a phone the same painting is simply the page's poster.
   Every painting is laid in a box of its own proportion (--ar) that covers the screen, its focal point at --fx/--fy
   (as object-position would): figures standing on it are placed in that box, so they keep to their ground. */
.paint { display: none; }
.paint__view { --ar: 1.5; --pw: max(100vw, calc(100 * var(--vh) * var(--ar))); position: absolute; width: var(--pw); height: calc(var(--pw) / var(--ar));
  left: calc((100vw - var(--pw)) * var(--fx, .5)); top: calc((100 * var(--vh) - var(--pw) / var(--ar)) * var(--fy, .5)); }
.paint__view > picture, .paint__view > picture > img, .paint__view > img { display: block; width: 100%; height: 100%; max-width: none; }
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) {
  .paint--town { position: fixed; inset: 0; z-index: 0; perspective: 1700px; perspective-origin: 50% 12%; pointer-events: none; }
  .paint--town.is-near { display: block; }
  .paint__page { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 100%; transform: rotateX(75deg); visibility: hidden; clip-path: var(--deckle); backface-visibility: hidden; will-change: transform; }
  /* lying back it catches less of the light */
  .paint__page::after { content: ""; position: absolute; inset: 0; background: #120C26; opacity: var(--dim, 0); }
  .paint__view { transform-origin: 50% 64%; will-change: transform; }
  /* its shadow on the scene behind: a soft dark plane, a little more upright than the flat, that shows above its edge */
  .paint__cast { position: absolute; inset: 0; transform-origin: 50% 100%; visibility: hidden; will-change: transform, opacity;
    background: linear-gradient(rgba(16, 10, 34, 0), rgba(16, 10, 34, .42) 16%, rgba(16, 10, 34, .55)); }
}

/* 1879, Bareilly: the wagonette, and Munshi Ram in two poses drawn at the same scale (--man-s: a share of the
   painting's width per pixel of the figure's file), standing on one line, so the change of pose does not jump. All
   are placed in the painting's box; nudge these when the art changes. The resting state is the last of the scene:
   that is what shows without scripting or with motion reduced. main.js sets .is-wait (the road empty) and .is-play. */
.paint--bareilly .paint__view { --fy: .85; --cart-x: -3%; --cart-y: 6.5%; --cart-w: 41%; --step: 13%; --man-x: 39.5%; --man-y: 4%; --man-s: .000178; --lean: 3deg; }
.bar, .bar__cart, .bar__man { position: absolute; inset: 0; }
.bar__roll { position: absolute; left: var(--cart-x); bottom: var(--cart-y); width: var(--cart-w); transform-origin: 62% 100%; }
.bar__roll img { width: 100%; height: auto; }
.bar__fig { position: absolute; left: var(--man-x); bottom: var(--man-y); width: calc(411 * var(--man-s) * 100%); transform-origin: 52% 100%; transform: rotate(var(--lean)); }
.bar__fig img { width: 100%; height: auto; max-width: none; }
.bar__stand { opacity: 0; }
.bar__fig .bar__bow { position: absolute; left: 0; bottom: 0; width: calc(489 / 411 * 100%); }
.bar.is-wait .bar__cart { transform: translateX(calc(-1 * var(--cart-x) - var(--cart-w) - 1%)); }
.bar.is-wait .bar__man { opacity: 0; }
.bar.is-play .bar__cart { animation: roll 1.8s cubic-bezier(.18, .62, .3, 1) both; }
.bar.is-play .bar__roll { animation: bob .3s ease-in-out 6 alternate both; }
.bar.is-play .bar__man { animation: alight 5.2s linear both; }
.bar.is-play .bar__fig { animation: lean 5.2s linear both; }
.bar.is-play .bar__stand { animation: stride 5.2s linear both; }
.bar.is-play .bar__bow { animation: bow 5.2s linear both; }
@keyframes roll { from { transform: translateX(calc(-1 * var(--cart-x) - var(--cart-w) - 1%)); } }
@keyframes bob { to { transform: translateY(-1.1%) rotate(-.45deg); } }
/* a beat; he steps down at the carriage step; walks a few paces towards the dais (a puppet's lifts); stops; greets */
@keyframes alight {
  0%, 38% { opacity: 0; transform: translate(calc(var(--step) - var(--man-x)), -3.5%); }
  42% { opacity: 1; transform: translate(calc(var(--step) - var(--man-x)), -3.5%); animation-timing-function: ease-in; }
  48% { transform: translate(calc(var(--step) - var(--man-x)), 0); }
  78%, 100% { opacity: 1; transform: none; } }
@keyframes stride { 0%, 48% { opacity: 1; transform: none; } 53%, 63%, 73% { transform: translateY(-1.5%); } 58%, 68%, 78% { transform: none; } 80% { opacity: 1; } 86%, 100% { opacity: 0; transform: none; } }
@keyframes bow { 0%, 80% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes lean { 0%, 81% { transform: none; animation-timing-function: ease-out; } 92%, 100% { transform: rotate(var(--lean)); } }

/* ------------------------------------------------------------------ 23 December 1926: one scene
   One screen. The house at dusk, its upper window lit (--win-x/--win-y: its centre in the painting; --win-w/--win-h:
   half its size, as shares of the painting's width and height); the view goes in at the window and the room opens
   from it; the shot, the cut; in the dark the date and the paragraph; the one lamp. main.js plays it on a clock and
   holds the page still meanwhile. With motion reduced it is two still screens, the house and then the dark. */
.mart { position: relative; z-index: 2; display: block; height: 100vh; height: 100svh; background: var(--night); color: var(--night-ink); overflow: clip; }
.mart__pin { position: absolute; inset: 0; overflow: hidden; }
.mart__after { position: absolute; left: 0; top: 100%; width: 1px; height: 1px; }
@media (prefers-reduced-motion: reduce) {
  .live .mart { height: calc(200 * var(--vh)); }
  .live .mart__pin { position: sticky; top: 0; height: calc(100 * var(--vh)); }
  .live .mart__after { top: 50%; }
}
.mart__house { position: absolute; inset: 0; overflow: hidden; }
.mart__view { --ar: 1.5; --pw: max(100vw, calc(100 * var(--vh) * var(--ar))); --win-x: 54.4%; --win-y: 36.5%; --win-w: .055; --win-h: .055;
  position: absolute; width: var(--pw); height: calc(var(--pw) / var(--ar)); left: calc((100vw - var(--pw)) * var(--fx, .5)); top: calc((100 * var(--vh) - var(--pw) / var(--ar)) * var(--fy, .5));
  transform-origin: var(--win-x) var(--win-y); will-change: transform; }
.mart__view > picture, .mart__view img { display: block; width: 100%; height: 100%; max-width: none; }
.mart__glow { position: absolute; left: var(--win-x); top: var(--win-y); width: 24%; aspect-ratio: 1; margin: -12% 0 0 -12%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 200, 104, .55), rgba(255, 164, 64, .2) 42%, rgba(255, 150, 50, 0) 76%); animation: breathe 3.6s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.9); } to { transform: scale(1.08); } }
/* over the house, small and calm: the date, the title, the line */
.mart__folio { position: absolute; transition: opacity .5s, visibility .5s; }
.mart.is-zoom .mart__folio, .mart.is-out .mart__folio { opacity: 0; visibility: hidden; }
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) {
  .mart__folio { left: var(--folio-left); top: var(--stick); width: min(var(--folio-w), 27rem); padding: 26px 32px 18px; }
  .mart__folio .year { font-size: calc(var(--t-year) * .72); }
}
/* in the dark: the date, the paragraph, and then the one lamp on the black water with the closing line */
.mart__words { position: absolute; inset: var(--top-h) 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.4rem, 5.5vh, 3.6rem);
  padding: 2vh max(var(--gutter), 22px) 10vh; text-align: center; pointer-events: none; }
.mart__dark, .mart__close { max-width: 40rem; }
.live .mart__words p, .live .mart__close { opacity: 0; }
.mart.is-dark .mart__words { pointer-events: auto; }
.mart.is-dark .dark__date { opacity: 1; transition: opacity 1.2s ease; }
.mart.is-dark .dark__body { opacity: 1; transition: opacity 1.6s ease 1.1s; }
.mart.is-lamp .mart__close, .mart.is-lamp .dark__close { opacity: 1; transition: opacity 1.8s ease; }
.mart.is-done .mart__words p, .mart.is-done .mart__close { transition: none !important; }
.dark__date { font: 400 clamp(1.9rem, min(5vw, 8vh), 3.4rem)/1.15 var(--display); color: var(--night-ink); }
.dark__date::after { content: ""; display: block; width: 3rem; height: 1px; margin: 1rem auto 0; background: var(--night-soft); opacity: .6; }
.dark__body { margin-top: 1.2rem; font: 400 clamp(1.0625rem, min(1.9vw + .55rem, 3.3vh), 1.45rem)/1.62 var(--display); color: var(--night-ink); } /* small screens too: it must fit one screen */
.dark__close { font: 400 clamp(1.3rem, min(2.6vw, 4.4vh), 2rem)/1.4 var(--display); color: #FFE7B8; text-wrap: balance; }
.mart__close .lamp { margin-top: clamp(.8rem, 3vh, 1.8rem); }
.mart :focus-visible { outline-color: var(--agni); }
.mart .next { position: absolute; left: 50%; bottom: 14px; margin: 0 0 0 -24px; }

/* the night paper: the same sheet, dark */
.folio--night { --paper: var(--night-paper); --paper-back: var(--night-paper-back); --paper-wash: transparent; --paper-top: rgba(245, 243, 248, .16); --paper-foot: transparent; color: var(--night-ink); }
.folio--night .year { color: var(--agni); }
.folio--night .year__day { color: var(--night-ink); }
.folio--night :focus-visible { outline-color: var(--agni); }

/* ------------------------------------------------------------------ a hundred years: the same paper at night */
.folio--night { filter: drop-shadow(0 0 1px rgba(245, 243, 248, .3)) drop-shadow(0 16px 22px rgba(0, 0, 0, .7)); }
.folio--night h2 span[lang] { display: block; margin-top: .1rem; font-size: .78em; color: var(--agni); }
.folio--night .span { color: var(--night-soft); font-size: clamp(.875rem, 3.8vw, 1.05rem); gap: .5rem; margin-top: .7rem; white-space: nowrap; }
.count { margin-top: .5rem !important; font: 400 1.35rem/1.4 var(--display); color: var(--agni); }
.folio__note { font-size: var(--t-small); color: var(--night-soft); }

/* ------------------------------------------------------------------ the sheet: archive, event, what is here */
.sheet { --paper: var(--bhasma); --paper-top: transparent; --paper-foot: transparent; position: relative; z-index: 2; padding: clamp(3rem, 10vh, 6rem) var(--gutter) clamp(3rem, 9vh, 5rem); }
.edge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(20px, 3.4vw, 44px); fill: #EBE9EE; } /* the sheet's colour once the paper is in it */
.edge--end { bottom: auto; top: calc(100% - 1px); transform: scaleY(-1); }
.edge__shadow { fill: var(--ratri); opacity: .18; }
.sheet > section { max-width: 68rem; margin: 0 auto; }
.sheet > section + section { margin-top: clamp(3rem, 9vh, 5.5rem); }
.sheet h2 { font-size: var(--t-h2); line-height: 1.12; color: var(--lekh); }
.sheet h2 span[lang] { display: block; margin-top: .1em; font-size: .56em; color: var(--ganga); }

/* The archive: prints stood along a ledge. Each one opens as a sheet. */
.archive__row { --thumb-h: clamp(104px, 9.7vw, 140px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px clamp(12px, 1.6vw, 22px); margin-top: 1.8rem; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.fig > summary { list-style: none; display: block; position: relative; }
.fig > summary img { height: var(--thumb-h); width: auto; border: 5px solid var(--surface); box-shadow: var(--shadow-leaf); transition: transform .25s, box-shadow .25s; }
.fig > summary:hover img { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-paper); }
/* the same plus as Read more: this opens */
.fig:not([open]) > summary::after { content: ""; position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; border-radius: 50%; box-shadow: var(--shadow-leaf);
  background: linear-gradient(var(--ganga), var(--ganga)) 50% 50% / 12px 2px no-repeat, linear-gradient(var(--ganga), var(--ganga)) 50% 50% / 2px 12px no-repeat, var(--surface); }
.fig__close { display: none; }
.fig[open] { flex: 0 0 100%; }
.fig[open] > summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ganga); text-decoration: underline; text-underline-offset: 5px; }
.fig[open] > summary img { display: none; }
.fig[open] .fig__close { display: inline; }
.fig figure, .leaf__body > figure { display: grid; gap: 1rem; justify-items: start; }
.fig figure img, .leaf__body > figure img { width: auto; max-width: 100%; max-height: 62vh; border: 8px solid var(--surface); box-shadow: var(--shadow-leaf); }
.fig--small figure img, .small .leaf__body > figure img { max-width: min(100%, 400px); } /* 384px of picture and its border: it has no more to give */
.fig figcaption p + p, .leaf__body figcaption p + p { margin-top: .4rem; }
.fig__credit { font-size: var(--t-small); line-height: 1.5; color: var(--ink-soft); }
.fig__credit a, .event__map { color: var(--ganga); text-underline-offset: 4px; }

/* The event: the emblem once, at its proper size, and the facts beside it. */
.event { display: grid; gap: 1.6rem; }
.event__logo { width: min(74vw, 340px); margin: 0 auto; }
.event__facts { margin-top: 1.4rem; border-top: 1px solid var(--rule); }
.event__facts > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.event__facts dt { font-size: var(--t-small); color: var(--ink-soft); }
.event__facts dd { font: 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--display); }
.event__addr { display: block; margin-top: .3rem; font: 400 var(--t-body)/1.5 var(--body); color: var(--ink-soft); }
.event__map { display: inline-flex; align-items: center; min-height: 44px; font: 500 var(--t-body)/1.4 var(--body); }
.event .cta { margin-top: 1.8rem; }
@media (min-width: 900px) {
  .event { grid-template-columns: minmax(320px, 400px) 1fr; column-gap: clamp(3rem, 7vw, 6.5rem); row-gap: 0; align-items: center; }
  .event__logo { grid-row: 1 / span 3; width: 100%; margin: 0; }
  .event h2, .event__facts, .event .cta { grid-column: 2; }
}

/* What is here: a contents page. */
.here__list { margin-top: 1.6rem; border-top: 1px solid var(--rule); }
.here__list li { break-inside: avoid; }
.here__list a { display: flex; align-items: baseline; gap: .9rem; min-height: 58px; padding: .75rem 0 .6rem; border-bottom: 1px solid var(--rule); text-decoration: none; transition: border-color .2s, color .2s; }
.here__list a span:first-child { font: 400 1.45rem/1.3 var(--display); }
.here__list a span[lang] { margin-left: auto; color: var(--ganga); white-space: nowrap; }
.here__list a:hover { color: var(--lekh); border-bottom-color: var(--gerua); box-shadow: 0 1px 0 var(--gerua); }
@media (min-width: 760px) { .here__list { columns: 2; column-gap: clamp(3rem, 7vw, 6.5rem); border-top: 0; } .here__list a { border-top: 1px solid var(--rule); border-bottom: 0; margin-bottom: -1px; } .here__list a:hover { border-top-color: var(--gerua); box-shadow: 0 -1px 0 var(--gerua); } }

/* ------------------------------------------------------------------ closing: dawn again */
.chapter--closing { --hold: 50vh; padding-bottom: 12vh; }
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) { .chapter--closing { padding-bottom: 30vh; } }
.chapter--closing .folio { padding-bottom: 24px; }
.chapter--closing h2 { font-size: var(--t-h1); line-height: 1.1; color: var(--lekh); }
.chapter--closing h2 span { display: block; margin-top: .1em; font-size: .6em; color: var(--ganga); }

/* ------------------------------------------------------------------ footer */
.foot { position: relative; z-index: 3; padding: 2.6rem var(--gutter) 2.8rem; background: var(--ratri); color: var(--night-ink); }
.foot :focus-visible { outline-color: var(--agni); }
.foot > * { max-width: 68rem; margin-inline: auto; }
.foot__org { font: 400 1.6rem/1.4 var(--display); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 1.8rem; margin-top: .4rem; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; text-decoration-color: var(--gerua); text-decoration-thickness: 2px; }
.credits { margin-top: 1.2rem; border-top: 1px solid rgba(245, 243, 248, .18); }
.credits summary { list-style: none; display: flex; align-items: center; gap: .65rem; min-height: 48px; font-weight: 500; color: var(--night-soft); }
.credits summary::before { content: ""; flex: none; width: 15px; height: 15px; background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 2px 100% no-repeat; }
.credits[open] summary::before { background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat; }
.credits__body { display: grid; gap: 1.2rem; font-size: var(--t-small); line-height: 1.55; }
.credits__body li + li { margin-top: .5rem; }
.credits__body a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.credits__links li { margin: 0 !important; }
.credits__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .credits__body { padding: .4rem 0 .6rem; color: var(--night-soft); }
.foot .credits__body a { color: var(--night-ink); }

/* ------------------------------------------------------------------ the leaf: one dialog for every longer passage
   A large sheet of the same paper, laid over the theatre. The page behind does not move. */
.leaf { position: fixed; inset: 0; width: min(664px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: min(86vh, 880px); margin: auto; padding: 0; border: 0; overflow: visible;
  background: none; color: var(--ink); filter: drop-shadow(0 2px 3px rgba(5, 3, 12, .5)) drop-shadow(0 26px 40px rgba(5, 3, 12, .55)); }
.leaf::backdrop { background: rgba(9, 6, 20, .68); }
.leaf__sheet { display: flex; flex-direction: column; max-height: inherit; clip-path: var(--deckle); }
.leaf__head { flex: none; display: flex; align-items: flex-end; gap: 1rem; padding: 26px 34px 14px; border-bottom: 1px solid var(--rule); }
.leaf__head h2 { flex: 1; min-width: 0; font-size: var(--t-h3); line-height: 1.2; }
.leaf__head .year { font-size: clamp(3.2rem, 9vw, 4.6rem); }
.leaf__close { flex: none; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--r-ctl); background: none; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font: 500 1rem/1 var(--body); cursor: pointer; transition: background-color .15s, color .15s; }
.leaf__close:hover { background: var(--ink); color: var(--paper); }
.leaf__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 34px 34px; }
.leaf__body > * { padding: 0; }
.leaf__body > * + * { margin-top: 1.1rem; }
.leaf__body > .values { padding-top: .8rem; }
.leaf__body p, .leaf__body h4, .leaf__body dl, .leaf__body li { max-width: 34rem; } /* lines under 62 characters */
.leaf__body .more__body h4 { font-size: 1.45rem; }
.leaf__body .plates { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.leaf[open] { animation: lay .24s cubic-bezier(.2, .8, .3, 1) both; }
.leaf[open]::backdrop { animation: dim .24s ease-out both; }
.leaf.is-closing { animation: lift .2s ease-in both; }
.leaf.is-closing::backdrop { animation: dim .2s ease-in reverse both; }
@keyframes lay { from { opacity: 0; transform: translateY(24px) rotate(-.7deg) scale(.985); } }
@keyframes lift { to { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes dim { from { opacity: 0; } }
@media (max-width: 699px) { /* a bottom sheet */
  .leaf { width: 100%; margin: auto 0 0; max-height: 88vh; max-height: 88dvh; }
  .leaf__sheet { clip-path: none; } /* it runs off three sides of the screen: no cut edge to show */
  .leaf__head { padding: 20px 20px 12px; }
  .leaf__body { padding: 16px 20px 28px; }
}

/* ==================================================================================================================
   PHONES, UPRIGHT: one poster per moment, one swipe per page.
   No stage here: every page is a painting that fills the screen (.paint, laid like object-fit: cover, its focal
   point at --fx/--fy), with the page's title on a slip of paper over its top and its sheet over its foot. The pages
   snap; after the story the page scrolls freely.
   ================================================================================================================== */
:root { --vh: 1vh; }
@supports (height: 1svh) { :root { --vh: 1svh; } } /* the small viewport: the browser's bar eats height */
@media (orientation: portrait) and (max-width: 599.98px), (max-aspect-ratio: 13/20) {
  :root {
    --top-h: 52px;
    --down-h: calc(56px + env(safe-area-inset-bottom, 0px));
    --wl: calc(100 * var(--vh) - var(--down-h) - 148px);            /* the top of the sheet's zone: the portrait stands on it */
  }
  html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  body { background: var(--ratri); }
  .on-desk { display: none; }
  .on-phone { display: inline; }
  .stage { display: none; }

  /* ---- header, and under it the line of the story with the seven years as ticks (main.js places them) */
  .top { gap: 8px; padding: 0 8px 0 14px; }
  .mark, .mark :lang(hi) { font-size: clamp(.8rem, 3.7vw, 1.16rem); }
  .mark__face { height: 34px; }
  .rail { display: block; position: fixed; left: 0; right: 0; top: var(--top-h); z-index: 19; height: 12px; background: none; pointer-events: none; opacity: 0; transition: opacity .4s; }
  .rail.is-on { opacity: 1; }
  .rail::before, .rail__fill { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(245, 243, 248, .55); }
  .rail__fill { background: var(--gerua); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .7s cubic-bezier(.3, .7, .3, 1); }
  .rail li { position: absolute; top: 0; left: calc(var(--x, 0) * 100%); }
  .rail a { display: block; width: 3px; height: 8px; margin-left: -1.5px; overflow: hidden; text-indent: -99em; background: rgba(245, 243, 248, .9); box-shadow: 0 0 0 .5px rgba(23, 16, 47, .35); transition: height .3s, background-color .3s; }
  .rail a.is-past, .rail a[aria-current] { background: var(--gerua); box-shadow: none; }
  .rail a[aria-current] { height: 12px; }

  /* ---- a page */
  main { overflow: visible; }
  .chapter, .mart { display: block; position: relative; height: calc(100 * var(--vh)); min-height: 0; margin: 0; padding: 0; overflow: clip; }
  .chapter:not(.chapter--closing), .mart, .live .mart__after { scroll-snap-align: start; scroll-snap-stop: always; }
  .tail { scroll-snap-align: start; }
  .foot { scroll-snap-align: end; }
  .tail section, .tail .chapter--closing { scroll-margin-top: calc(var(--top-h) + 8px); }
  .folio { position: static; width: auto; max-width: none; margin: 0; padding: 0; filter: none; }
  .folio::before, .folio::after { content: none; }

  /* the poster, and the ground it is painted on while it comes */
  .paint { display: block; position: absolute; inset: 0; overflow: hidden; background: linear-gradient(#6E69B4, #E7A6B6 46%, #FFD8A6 62%, #8884BC); }
  [data-sky="day"] .paint { background: linear-gradient(#63ABE8, #B6DCEC 46%, #EDF4EE 62%, #4FA3A8); }
  [data-sky="night"] .paint { background: linear-gradient(#0D0922, #1A1340 46%, #32225F 62%, #151036); }
  .paint__view, .mart__view { --ar: .6667; }
  .paint__cast { display: none; }
  .paint__page { position: absolute; inset: 0; }
  /* focal points: nudge these when the art changes */
  .chapter--hero .paint { --fx: .5; --fy: .55; }
  #y1856 .paint { --fx: .5; --fy: .6; }
  #y1902 .paint { --fx: .5; --fy: .6; }
  .chapter--night .paint { --fx: .5; --fy: .5; }
  .chapter--closing .paint { --fx: .5; --fy: .55; }
  .paint--bareilly .paint__view { --fx: .5; --fy: .5; --cart-x: 12%; --cart-y: 20%; --cart-w: 58%; --step: 26%; --man-x: 64%; --man-y: 18.5%; --man-s: .000208; }

  /* the title: a slip of the same paper pinned over the top of the painting */
  .folio__title { position: absolute; z-index: 1; left: 12px; top: calc(var(--top-h) + 16px); width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 10px 15px 9px; filter: var(--shadow-cut); }
  .folio__title::before, .folio__sheet::before { content: ""; position: absolute; z-index: -1; inset: 0; clip-path: var(--deckle);
    background-color: var(--paper);
    background-image: linear-gradient(var(--paper-top), transparent 2.5px), linear-gradient(to top, var(--paper-foot), transparent 3px), linear-gradient(var(--paper-wash), var(--paper-wash)), var(--grain), var(--paper-texture);
    background-size: auto, auto, auto, auto, var(--paper-texture-size); background-blend-mode: normal, normal, normal, normal, multiply; }
  .folio .folio__title { font: 400 1.15rem/1.22 var(--display); color: var(--ink); }
  h3.folio__title, .folio--night h2.folio__title { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: end; }
  .folio__title .year { margin: 0; font-size: 3rem; }
  .folio__title .year::after { height: 2px; margin: .05em 0 0; }
  .year--date .year__day { font-size: .3em; }
  .folio--night .folio__title { color: var(--night-ink); }
  .lite .folio__title, .lite .folio__sheet { filter: none; }
  .lite .folio__title::before, .lite .folio__sheet::before { clip-path: none; box-shadow: var(--shadow-paper); }

  /* the sheet: small, low, on the same paper */
  .folio__sheet { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: var(--down-h); padding: 10px 16px 4px; filter: var(--shadow-cut); }
  .folio__sheet > p:first-child, .folio__sheet > dl:first-child { margin-top: 0; }
  .folio__sheet p { font-size: 1rem; line-height: 1.42; }
  .folio__sheet > :last-child:not(.more) { margin-bottom: 6px; }
  .more { margin-top: .3rem; }
  .more > summary { min-height: 40px; padding-right: 0; }
  /* The way down belongs to the sheet: the sheet runs to the foot of the screen and ends in one row, ruled off from
     the text, with "Read more" at its left and the control in its middle. Same row, same place, on every page. */
  .live .folio__sheet { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding-bottom: 56px; }
  .live .folio__sheet::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 55px; border-top: 1px solid var(--rule); }
  .live .folio__sheet > :last-child:not(.more), .live .folio__sheet > :nth-last-child(2):not(.more) { margin-bottom: 8px; }
  .live .folio__sheet .more { position: absolute; left: 16px; bottom: 8px; margin: 0; border-top: 0; }
  .live .down { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

  /* hero: the names on the slip; the sheet holds the dates, the venue and the way in */
  .hero__hi { font-size: 1rem; line-height: 1.5; }
  .hero__title { font-size: clamp(1.3rem, 6.2vw, 1.55rem); line-height: 1.12; text-wrap: wrap; }
  .folio__title .span { max-width: 15rem; margin-top: .15rem; font-size: 1.05rem; }
  .facts { flex-wrap: nowrap; gap: 0 1.2rem; margin-top: 0; }
  .facts dt { font-size: .8125rem; }
  .facts dd { font-size: clamp(.9rem, 3.9vw, 1.02rem); }
  .folio--title .cta { flex-wrap: nowrap; margin-top: .45rem; gap: 10px; }
  .folio--title .cta .btn { flex: 1 1 0; min-height: 44px; padding-inline: .6rem; }
  .live a.next--cue { display: none; } /* no room for its words here: the control below says them to a screen reader */

  /* the introduction: no painting, the archival portrait on the paper itself */
  .chapter--intro { background-color: var(--bhasma); background-image: var(--grain), var(--paper-texture); background-size: auto, var(--paper-texture-size); background-blend-mode: normal, multiply; }
  .chapter--intro .folio__title { filter: none; padding-left: 4px; }
  .chapter--intro .folio__title::before { content: none; }
  .chapter--intro .folio__title h2 { font-size: 1.5rem; }
  .chapter--intro .folio__dates { font-size: 1.1rem; color: var(--ink); }
  /* it stands on the top of the sheet's zone, as wide as the height between its title and there allows (76px of that for its board and caption) */
  .mount { position: absolute; z-index: 1; left: 0; right: 0; top: auto; bottom: calc(100 * var(--vh) - var(--wl) + 4px); margin: 0 auto; padding: 8px 8px 6px; transform: rotate(-.6deg);
    width: min(calc(100vw - 24px), calc((var(--wl) - var(--pic-top, 190px) - 76px) * var(--ar, .627) + 16px)); }
  .mount img { width: 100%; height: auto; }
  .mount figcaption { margin-top: 5px; font-size: .75rem; line-height: 1.3; }
  .folio__sub { margin-top: 0 !important; font-size: 1.05rem !important; }
  .folio__sheet .folio__text { margin-top: .15rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } /* the whole of it is behind Read more */
  .folio__sheet .values { display: none; }

  /* the intertitle rides at the top of the first moment */
  .moments { position: relative; }
  .slip { position: absolute; z-index: 2; left: 14px; top: calc(var(--top-h) + 15px); margin: 0; padding: .1rem .6rem 0; font-size: .9rem; transform: none; }
  #y1856 .folio__title { top: calc(var(--top-h) + 52px); } /* under the intertitle */

  /* 23 December 1926: the same scene on its own page; the room a lit window across the dark */
  .mart__view { --win-x: 50.8%; --win-y: 37.7%; --win-w: .1; --win-h: .0525; --fx: .5; --fy: .5; }
  .mart .folio__sheet { padding-bottom: 10px; }
  .live .mart .folio__sheet::after { content: none; }
  @media (prefers-reduced-motion: reduce) { .live .mart .folio__sheet { padding-bottom: 56px; } } /* two still screens: the way down is in its row here too */
  .mart__words { padding: 2vh 22px calc(var(--down-h) + 6px); gap: clamp(1.1rem, 4vh, 2.2rem); }
  .dark__date { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .dark__body { font-size: clamp(1.0625rem, 4.6vw, 1.3rem); line-height: 1.6; }
  .dark__close { font-size: clamp(1.2rem, 5.4vw, 1.45rem); }
  .mart .next { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

  /* a hundred years */
  .folio--night .year::after { display: none; }
  .folio--night .year { grid-row: 1 / span 2; }
  .folio--night .folio__title span[lang] { grid-column: 2; margin: 0; font-size: .85em; line-height: 1.5; }
  .folio--night .folio__sheet { filter: drop-shadow(0 0 1px rgba(245, 243, 248, .3)) drop-shadow(0 12px 18px rgba(0, 0, 0, .7)); }
  .folio--night .span { margin-top: 0; }
  .chapter--night .folio__sheet > p { margin-top: .1rem; font-size: .95rem; }
  .folio--night .count { font-size: 1.12rem; }
  .mart__folio .year::after { display: block; }
  .mart__folio .year { grid-row: auto; }

  /* after the story: free scrolling. The closing is one more poster, the walk at dawn. */
  .tail .chapter--closing { height: calc(92 * var(--vh)); }
  .chapter--closing .folio__title { font-size: 1.6rem; color: var(--lekh); }
  .chapter--closing .folio__title span { display: block; }
  .chapter--closing .folio__sheet { padding-bottom: 16px; }
  .chapter--closing .cta { margin-top: 0; }
}
/* With scripting, a phone fetches the pictures of the page it is on and of the pages either side, no further ahead
   (main.js marks them .is-near): the first view stays light, the rest comes as the reader goes. */
@media (scripting: enabled) and (orientation: portrait) and (max-width: 599.98px), (scripting: enabled) and (max-aspect-ratio: 13/20) {
  .chapter:not(.is-near) .paint img, .mart:not(.is-near) img { display: none; }
}
/* A short upright screen (360x640 and the like): everything a little closer, so that each page still fits whole. */
@media (orientation: portrait) and (max-width: 599.98px) and (max-height: 700px), (max-aspect-ratio: 13/20) and (max-height: 700px) {
  .folio__title .year { font-size: 2.5rem; }
  .folio .folio__title { font-size: 1.05rem; top: calc(var(--top-h) + 12px); }
  #y1856 .folio__title { top: calc(var(--top-h) + 44px); }
  .slip { top: calc(var(--top-h) + 11px); font-size: .82rem; }
  .hero__title { font-size: 1.25rem; }
  .hero__hi { font-size: .92rem; }
  .folio__sheet { padding: 8px 14px 3px; }
  .folio__sheet p { font-size: .94rem; }
  .folio__sub { font-size: .95rem !important; }
  .folio__sheet .folio__text { -webkit-line-clamp: 1; line-clamp: 1; }
  .chapter--night .folio__sheet > p { font-size: .9rem; }
  .dark__body { font-size: 1rem; line-height: 1.55; }
}

/* ------------------------------------------------------------------ the loader: a diya burning on the dark
   The painted flame of the lamp is masked out and a live one stands in its place: three teardrops (saffron edge,
   flame gold, white-gold core) swaying on irregular, unrelated cycles, and a warm glow that breathes with them. */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(ellipse 70% 55% at 50% 46%, #1A1236, var(--night) 70%);
  transition: opacity .7s ease, visibility 0s .7s; animation: loader-giveup 0s 30s forwards; } /* no script after half a minute: out of the way */
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loading { overflow: hidden; }
@keyframes loader-giveup { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader__in { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: -4vh; }
.diya { position: relative; width: min(200px, 52vw); }
.diya__lamp { position: relative; width: 100%; height: auto; } /* art/diya: the same lamp, unlit; the flame below is its only fire */
.diya__glow { position: absolute; left: 54%; top: 36%; width: 380%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 190, 96, .36), rgba(246, 150, 50, .13) 38%, rgba(240, 120, 30, 0) 72%); animation: glow 2.9s ease-in-out infinite; }
/* the flame stands on the wick (its tip is 54.2% across, 48.6% down art/diya; the base overlaps it a little) and grows upward from there */
.flame { position: absolute; left: 54.2%; bottom: 50.2%; width: 16.5%; height: 37%; translate: -50% 0; transform-origin: 50% 100%; animation: sway 3.7s ease-in-out infinite; }
.flame i { position: absolute; left: 50%; bottom: 0; translate: -50% 0; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; transform-origin: 50% 100%; mix-blend-mode: screen; }
.flame__outer { width: 100%; height: 100%; background: radial-gradient(ellipse 50% 60% at 50% 72%, rgba(255, 196, 92, .95), rgba(232, 112, 26, .8) 62%, rgba(200, 70, 10, 0) 100%); filter: blur(1.5px); animation: lick 1.13s ease-in-out infinite; }
.flame__mid { width: 68%; height: 74%; background: radial-gradient(ellipse 50% 58% at 50% 70%, #FFF1B8, #F6B33C 70%, rgba(246, 150, 40, 0)); filter: blur(.8px); animation: lick .87s ease-in-out infinite reverse; }
.flame__core { width: 34%; height: 40%; bottom: 4%; background: radial-gradient(ellipse 50% 56% at 50% 64%, #FFFFFF, #FFF6D8 60%, rgba(255, 240, 200, 0)); animation: core 1.61s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1deg) skewX(0deg); } 18% { transform: rotate(2.2deg) skewX(-3deg); } 37% { transform: rotate(-.6deg) skewX(2deg) scaleY(1.04); } 55% { transform: rotate(-2.6deg) skewX(4deg); } 71% { transform: rotate(1.2deg) skewX(-1deg) scaleY(.96); } 86% { transform: rotate(-.2deg) skewX(1.5deg); } }
@keyframes lick { 0%, 100% { transform: scale(1, 1); } 23% { transform: scale(.94, 1.07) translateX(.6px); } 49% { transform: scale(1.04, .95); } 71% { transform: scale(.97, 1.1) translateX(-.8px); } }
@keyframes core { 0%, 100% { transform: scale(1, 1); opacity: .95; } 31% { transform: scale(.9, 1.08); opacity: 1; } 64% { transform: scale(1.06, .93); opacity: .86; } }
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 41% { opacity: 1; transform: scale(1.05); } 77% { opacity: .78; transform: scale(.97); } }
.loader.is-flare .flame { animation: flare .5s ease-out 1; }
.loader.is-flare .diya__glow { animation: flare-glow .5s ease-out 1; }
@keyframes flare { 40% { transform: scale(1.18, 1.32); } }
@keyframes flare-glow { 40% { opacity: 1; transform: scale(1.25); } }
.loader__name { font: 400 1.05rem/1.6 var(--display); color: var(--night-soft); letter-spacing: .01em; }
.loader__line { position: relative; display: block; width: min(180px, 46vw); height: 1px; background: rgba(245, 243, 248, .16); overflow: hidden; }
.loader__fill { position: absolute; inset: 0; background: var(--agni); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .3s ease-out; }
.loader__enter { position: absolute; left: 50%; bottom: calc(14vh + env(safe-area-inset-bottom, 0px)); translate: -50% 0; min-height: 44px; padding: 0 18px; border: 0; background: none;
  color: var(--night-soft); font: 500 1rem/1 var(--body); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(246, 179, 60, .5); cursor: pointer; }
.loader__enter:hover { color: var(--night-ink); }
.loader__enter:focus-visible { outline-color: var(--agni); }

/* ------------------------------------------------------------------ stillness */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ the hero's card is the event's card
   (river.html .folio--event): no paper; the event site's cream with saffron rays behind the emblem, its maroon and
   Rozha One, a saffron foot. The emblem small; the name and the occasion large, one line each at one size; the days and
   the place on one line. The whole folio is the card, on phones too (one card, not a title slip and a sheet). */
.folio--event { --maroon: #5A1209; --saffron: #B4400C; --saffron-deep: #8F320A; --ev-name: clamp(1.55rem, 2.05vw, 1.95rem); text-align: center; }
.folio--event .evhero__logo { display: block; width: 112px; height: auto; margin: -6px auto 4px; }
.folio--event .hero__title, .folio--event .evhero__occasion { margin: 0; font: 400 var(--ev-name)/1.1 "Rozha One", var(--display); letter-spacing: 0; text-transform: none; color: var(--maroon); white-space: nowrap; }
.folio--event .evhero__occasion { margin-top: .1rem; }
.folio--event .span { margin-top: .7rem; color: var(--maroon); }
.folio--event .span__mid { font: 600 1rem/1.3 var(--body); color: var(--maroon); }
.folio--event .evcard { margin-top: .6rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.folio--event .evcard .evcard__venue { justify-content: center; margin-top: .55rem; font-size: 1rem; color: #3A2A24; }
.folio--event .evcard__cta { margin-top: .75rem; }
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) {
  .folio.folio--event::before { content: none; }
  .folio.folio--event::after { clip-path: none; border-radius: 18px; border-bottom: 4px solid var(--saffron);
    background: radial-gradient(circle at 50% 14%, rgba(255, 248, 236, 0) 0 9%, #FFF8EC 52%),
      repeating-conic-gradient(from 0deg at 50% 14%, rgba(229, 149, 37, .18) 0 6deg, rgba(229, 149, 37, 0) 6deg 15deg), #FFF8EC;
    box-shadow: 0 2px 4px rgba(43, 9, 4, .08), 0 22px 44px -20px rgba(43, 9, 4, .5); }
  /* a little wider than the other folios, so the name and the occasion each keep one line */
  .folio.folio--event { filter: none; width: calc(var(--folio-w) + 3.5rem); padding: 22px 32px 22px; }
  /* in the middle of the screen below the bar, on arrival and while the hero holds; --ev-h is the card's height */
  .chapter--hero { --ev-h: 400px; padding-top: max(var(--stick), calc((100vh + var(--top-h) - var(--ev-h)) / 2)); }
  .chapter--hero .folio.folio--event { top: max(var(--stick), calc((100vh + var(--top-h) - var(--ev-h)) / 2)); }
}
@media (orientation: portrait) and (max-width: 599.98px), (max-aspect-ratio: 13/20) {
  .folio.folio--event { --ev-name: clamp(1.3rem, 6.6vw, 1.65rem); position: absolute; z-index: 1; left: 10px; right: 10px; top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 12px 14px 0; filter: var(--shadow-cut); }
  .lite .folio.folio--event { filter: none; }
  .folio.folio--event::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: none; transform: none; border-radius: 16px;
    border-bottom: 3px solid var(--saffron); box-shadow: 0 10px 30px -14px rgba(43, 9, 4, .55);
    background: radial-gradient(circle at 50% 10%, rgba(255, 248, 236, 0) 0 8%, #FFF8EC 50%),
      repeating-conic-gradient(from 0deg at 50% 10%, rgba(229, 149, 37, .18) 0 6deg, rgba(229, 149, 37, 0) 6deg 15deg), #FFF8EC; }
  .folio--event .folio__title, .folio--event .folio__sheet { position: static; inset: auto; width: auto; max-width: none; margin: 0; padding: 0; filter: none; }
  .folio--event .folio__title::before, .folio--event .folio__sheet::before { content: none; }
  .folio--event .evhero__logo { width: 76px; margin: 0 auto 2px; }
  .folio--event .folio__title .span { max-width: none; margin-top: .45rem; font-size: 1.1rem; }
  .folio--event .span__mid { font-size: 1.05rem; }
  .folio--event .evcard { margin-top: .45rem; }
  .live .folio--event .folio__sheet { padding-bottom: 52px; }
  .live .folio--event .folio__sheet::after { left: 0; right: 0; bottom: 51px; }
}

/* The introduction's legacy (river.html #life-values): its heading over the four, which are long enough for one column. */
.values__title { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--rule); font: 600 1rem/1.4 var(--body); color: var(--ink-soft); }
.values--legacy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1.2rem; margin-top: .35rem; padding-top: 0; border-top: 0; font-size: 1.08rem; line-height: 1.35; }
.values--legacy li { display: flex; align-items: baseline; }
.values--legacy li::before { flex: none; }
/* The introduction's longer text (Home.docx) stands whole on a laptop: its folio a little wider, its text a little smaller. */
@media (orientation: landscape), (min-width: 600px) and (min-aspect-ratio: 13001/20000) {
  .chapter--intro .folio { width: calc(var(--folio-w) + 7rem); }
  .chapter--intro .folio__text { font-size: 1.02rem; line-height: 1.6; }
}
@media (orientation: portrait) and (max-width: 599.98px), (max-aspect-ratio: 13/20) {
  .folio__sheet .values__title { display: none; }
  .values--legacy { grid-template-columns: 1fr; }
}
.leaf__body .values__title { margin-top: .6rem; }
