/* Portrait of a nation
   The look follows the project deck: a flat grey ground, heavy black type, and the paintings as the only colour. */

:root {
  --bg: #d6d6d6;
  --bg-2: #c9c9c9;
  --line: #b4b4b4;
  --ink: #000;
  --ink-2: #262626;
  --ink-3: #5a5a5a;
  --white: #fff;

  --sans: "Helvetica Neue", Helvetica, "Inter Tight", Arial, sans-serif;
  --hindi: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--sans);

  --gutter: clamp(16px, 4vw, 60px);
  --max: 1400px;
  --nav-h: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--white); text-decoration: none;
}
.skip:focus { top: 12px; }

h2 {
  font: 800 clamp(2.3rem, 6vw, 5.4rem)/0.98 var(--sans);
  letter-spacing: -0.035em; text-wrap: balance;
}
h2 span { display: block; font-size: 0.5em; letter-spacing: -0.02em; line-height: 1.15; margin-top: 0.15em; }
h3 { font: 700 1.25rem/1.2 var(--sans); letter-spacing: -0.015em; }

.link-btn {
  padding: 0; border: 0; background: none;
  font: 700 0.9375rem/1.3 var(--sans);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.link-btn:hover { text-decoration-thickness: 4px; }

/* ── Nav ──────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h); padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-mark { font: 800 1.0625rem/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; }
.nav-links a { padding: 6px 0; font: 700 0.9375rem/1 var(--sans); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="true"] { border-bottom-color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; height: 36px; padding: 0 14px;
  border: 2px solid var(--ink); background: none; font: 700 0.875rem/1 var(--sans);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 20px;
    background: var(--bg); border-bottom: 2px solid var(--ink);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav-links[data-open] { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
}

/* ── Title ────────────────────────────────────────── */

/* The painting takes all the height the first screen has left once the title
   and the line under it are fitted in; the credit and the button come below. */
.hero {
  --title: clamp(2.9rem, 9.6vw, 9rem);
  --sub: clamp(1.15rem, 3.6vw, 3.1rem);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px var(--gutter) clamp(36px, 7vh, 72px);
  text-align: center;
}
.hero-portrait {
  position: relative; display: block; overflow: hidden;
  width: min(100%, max(280px, calc(100svh - var(--nav-h) - var(--title) * 0.92 - var(--sub) * 1.05 - 76px))); aspect-ratio: 1;
  background: var(--bg-2);
}
.hero-portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.9s ease;
}
.hero-portrait img.is-out { opacity: 0; }
.hero-no { margin-top: 8px; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.04em; color: var(--ink-3); }
.hero-title {
  margin-top: clamp(6px, 1.4vh, 16px);
  font: 800 var(--title)/0.92 var(--sans);
  letter-spacing: -0.045em;
}
.hero-sub { margin-top: 0.35em; font: 800 var(--sub)/1.05 var(--sans); letter-spacing: -0.03em; }
.hero-credit { margin-top: clamp(28px, 6vh, 56px); max-width: 46ch; font: 700 clamp(0.875rem, 1.5vw, 1.3rem)/1.3 var(--sans); letter-spacing: -0.01em; text-wrap: balance; }
.hero-down {
  margin-top: clamp(18px, 3vh, 32px); padding: 12px 22px;
  background: var(--ink); color: var(--white);
  font: 700 0.9375rem/1 var(--sans); text-decoration: none;
}
.hero-down span { display: inline-block; margin-left: 4px; transition: transform 0.25s var(--ease); }
.hero-down:hover span { transform: translateY(3px); }

/* ── Statement ────────────────────────────────────── */

.statement { padding: clamp(56px, 12vh, 150px) var(--gutter); }
.statement p {
  max-width: 1120px; margin: 0 auto; text-align: center;
  font: 700 clamp(1.15rem, 2.25vw, 2.05rem)/1.27 var(--sans); letter-spacing: -0.018em;
  text-wrap: pretty;
}
.statement em { font-style: italic; }

/* ── 1000 portraits ───────────────────────────────── */

.archive { padding: clamp(24px, 6vh, 72px) var(--gutter) clamp(56px, 10vh, 120px); --cell: 230px; }
.archive-head { max-width: 1280px; margin: 0 auto clamp(28px, 6vh, 64px); }
.mega {
  text-align: center; padding-bottom: 0.14em;
  font: 800 clamp(4.4rem, 20vw, 19rem)/0.84 var(--sans);
  letter-spacing: -0.04em;
}
.mega span { display: block; font-size: 1em; letter-spacing: -0.04em; line-height: 0.86; margin: 0; }
.archive-lede {
  margin-top: clamp(20px, 3vw, 40px);
  font: 400 clamp(1.0625rem, 1.9vw, 1.75rem)/1.28 var(--sans); letter-spacing: -0.012em;
  text-wrap: pretty;
}

.archive-bar {
  position: sticky; top: var(--nav-h); z-index: 5;
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  padding: 10px 0; background: var(--bg);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab, .chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  height: 36px; padding: 0 13px;
  border: 2px solid transparent; background: none;
  font: 700 0.9375rem/32px var(--sans); letter-spacing: -0.01em; white-space: nowrap;
}
.tab small, .chip small { font: 500 0.6875rem/1 var(--sans); color: var(--ink-3); }
.tab:hover, .chip:hover { border-color: var(--ink); }
.tab[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tab[aria-selected="true"] small, .chip[aria-pressed="true"] small { color: #bdbdbd; }
.tab-shuffle { margin-right: auto; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.size { display: flex; align-items: center; gap: 8px; font: 700 0.8125rem/1 var(--sans); }
.size input { width: 110px; accent-color: #000; }

.search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px; min-width: min(250px, 100%);
  border: 2px solid var(--ink);
}
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 0.9375rem/1 var(--sans); }
.search input::placeholder { color: var(--ink-3); }
.search:focus-within { background: var(--white); }

.places { display: flex; flex-wrap: wrap; gap: 3px; padding-top: 10px; }
.places .chip { height: 30px; padding: 0 9px; font-size: 0.8125rem; line-height: 26px; border-color: var(--line); }
.places .chip:hover { border-color: var(--ink); }
.places-label { align-self: center; margin-right: 8px; font: 700 0.8125rem/1 var(--sans); }

.archive-status { padding: 14px 0 12px; font: 700 0.8125rem/1.4 var(--sans); }

/* Portraits are near-square, so they hang as an even wall. */
.grid.is-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); gap: 6px; }
.grid.is-wall .tile { aspect-ratio: 1; }
.grid.is-wall .grid-head { grid-column: 1 / -1; }
.grid.is-wall .grid-fill { display: none; }

/* Photographs and posters vary in shape: justified rows, one height per row. */
.grid:not(.is-wall) { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; --row: calc(var(--cell) * 1.35); }
.grid:not(.is-wall)::after { content: ""; flex: 1e4 1 0; }
.grid:not(.is-wall) .tile {
  flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row));
  aspect-ratio: var(--r); max-width: calc(var(--r) * var(--row) * 1.9);
}
.grid-fill { flex: 1e4 1 0; height: 0; margin: -3px 0; }
.grid-head {
  flex: 0 0 100%; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 30px 0 6px;
  font: 800 1.5rem/1.1 var(--sans); letter-spacing: -0.03em;
}
.grid-head:first-child { padding-top: 2px; }
.grid-head small { font: 500 0.8125rem/1.2 var(--sans); letter-spacing: 0; color: var(--ink-3); }

.tile { position: relative; display: block; overflow: hidden; background: var(--bg-2); text-decoration: none; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.tile img.is-in { opacity: 1; }
.tile-cap {
  position: absolute; left: 0; bottom: 0; max-width: 100%;
  padding: 5px 8px; background: var(--ink); color: var(--white);
  font: 700 0.6875rem/1.25 var(--sans); letter-spacing: 0.02em;
  opacity: 0; transition: opacity 0.2s;
}
.tile-cap small { display: block; font: 500 0.6875rem/1.25 var(--sans); opacity: 0.8; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
@media (hover: none) { .tile-cap { display: none; } }

.grid-empty { grid-column: 1 / -1; flex: 0 0 100%; padding: 48px 0; font: 700 1.25rem/1.3 var(--sans); }
.grid-empty button { border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.grid-sentinel { height: 1px; }

@media (max-width: 700px) {
  .archive { --cell: 150px; }
  .archive-bar { position: static; }
  .size { display: none; }
  .search { width: 100%; }
  .tab-shuffle { margin-right: 0; }
  .grid.is-wall, .grid:not(.is-wall) { gap: 4px; }
}

/* ── Deck slides: text beside a picture ───────────── */

.slide {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px); align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 11vh, 140px) var(--gutter);
}
.slide-flip .slide-text { order: 2; }
.slide-text p {
  margin-top: clamp(20px, 3.4vw, 48px);
  font: 400 clamp(1.125rem, 1.95vw, 1.8rem)/1.25 var(--sans); letter-spacing: -0.012em; text-wrap: pretty;
}
.slide-media img { width: 100%; }
.slide-media a { display: block; }
figcaption { margin-top: 10px; font: 500 0.8125rem/1.35 var(--sans); color: var(--ink-3); }

/* ── Saawan ───────────────────────────────────────── */

.poem {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px); align-items: start;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 8vh, 100px) var(--gutter);
}
.poem-hi p { font: 700 clamp(1.05rem, 2.15vw, 2rem)/1.55 var(--hindi); }
.poem-hi span { padding-left: 1.2em; }
.poem-en p { font: 400 clamp(1.125rem, 1.95vw, 1.8rem)/1.25 var(--sans); letter-spacing: -0.012em; text-wrap: pretty; }
.poem-en .poem-note { margin-top: 1em; }

/* ── Sessions ─────────────────────────────────────── */

.sessions, .story, .team { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 11vh, 140px) var(--gutter) 0; }
.block-head { margin-bottom: clamp(24px, 5vh, 48px); }
.block-head p { margin-top: clamp(14px, 2vw, 24px); max-width: 44ch; font: 400 clamp(1.0625rem, 1.7vw, 1.5rem)/1.28 var(--sans); letter-spacing: -0.012em; }

.session-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.session-photos a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.session-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.session-photos a:hover img { transform: scale(1.04); }

.where { columns: 3; column-gap: clamp(20px, 4vw, 56px); margin-top: clamp(28px, 5vh, 52px); border-top: 2px solid var(--ink); padding-top: 14px; }
.where li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); font: 700 clamp(1rem, 1.3vw, 1.1875rem)/1.25 var(--sans); letter-spacing: -0.015em; }

/* ── Back story ───────────────────────────────────── */

.story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.prose { max-width: 64ch; color: var(--ink-2); }
.prose p + p, .more p { margin-top: 1em; }
.more summary {
  display: inline-block; margin-top: 14px; cursor: pointer; list-style: none;
  font: 700 0.9375rem/1.3 var(--sans); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.more summary::-webkit-details-marker { display: none; }
.more .more-close, .more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }

.journey-map img { width: 100%; max-width: 380px; }
.routes { margin-top: 18px; border-top: 2px solid var(--ink); }
.route { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.route h3 { font-size: 1.0625rem; }
.route p { grid-column: 1; font-size: 0.9375rem; color: var(--ink-2); }
.route .link-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.route-map { margin-top: 20px; border: 2px solid var(--ink); background: var(--bg-2); }
.route-map iframe { display: block; width: 100%; height: min(70vh, 560px); border: 0; }

.extras { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 88px); margin-top: clamp(40px, 7vh, 80px); padding-top: 18px; border-top: 2px solid var(--ink); }
.extra h3 { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 800; }
.extra > p { margin-top: 8px; max-width: 52ch; color: var(--ink-2); }
.extra-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px !important; }
.film-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; margin-top: 18px; }
.film-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; background: var(--ink); }
.film-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.film-play:hover img { transform: scale(1.04); }
.film-play::after {
  content: ""; position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23000'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.film iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.film-title { margin-top: 6px; font: 700 0.8125rem/1.2 var(--sans); }
.film-title small { display: none; }
.tracks { display: grid; gap: 8px; margin-top: 18px; }
.tracks iframe { display: block; width: 100%; height: 120px; border: 0; background: var(--bg-2); }

/* ── Team ─────────────────────────────────────────── */

.core { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.person h3 { margin: 16px 0 8px; font: 800 1.625rem/1.1 var(--sans); letter-spacing: -0.03em; }
.person p { color: var(--ink-2); font-size: 0.9688rem; }
.thanks { margin-top: clamp(28px, 5vh, 48px); font: 700 1.0625rem/1.3 var(--sans); }

.partners { margin-top: clamp(40px, 7vh, 80px); padding-top: 14px; border-top: 2px solid var(--ink); }
.partners-title { font: 800 1.5rem/1.1 var(--sans); letter-spacing: -0.03em; }
.partners ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 18px; }
.partners a { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--white); }
.partners img { position: absolute; inset: 16% 14%; width: 72%; height: 68%; object-fit: contain; }

/* ── Footer ───────────────────────────────────────── */

.footer { margin-top: clamp(72px, 12vh, 150px); padding: clamp(40px, 8vh, 90px) var(--gutter) 30px; background: var(--ink); color: var(--white); }
.footer :focus-visible { outline-color: var(--white); }
.footer-mark { font: 800 clamp(2.6rem, 10vw, 9rem)/0.92 var(--sans); letter-spacing: -0.045em; }
.footer-sub { margin-top: 0.5em; font: 800 clamp(1.05rem, 2.6vw, 2.2rem)/1.1 var(--sans); letter-spacing: -0.03em; }
.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; margin-top: clamp(32px, 6vh, 64px); padding-top: 18px; border-top: 2px solid var(--white); }
.footer-mail { font: 700 clamp(1.125rem, 2vw, 1.5rem)/1.2 var(--sans); text-underline-offset: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { font: 700 0.9375rem/1.3 var(--sans); text-decoration: none; }
.footer-links a:hover, .footer-mail:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-fine { margin-top: 40px; font: 500 0.8125rem/1.4 var(--sans); color: #a9a9a9; }

/* ── Viewer: the painting large on the left, its caption at the lower right, as in the deck ── */

.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
  grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 340px);
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: var(--bg); }

.viewer-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.viewer-stage img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
  transition: opacity 0.2s ease;
}
/* Paintings are 800px scans: let them fill the height, up to a modest enlargement. */
.viewer-stage.is-fill { justify-items: start; }
.viewer-stage.is-fill img { height: min(100%, calc(var(--h) * 1.5px)); max-height: none; }
.viewer-stage img.is-loading { opacity: 0.7; }

.viewer-side { display: flex; flex-direction: column; min-height: 0; padding: 14px clamp(14px, 1.6vw, 24px) 18px; }
.viewer-tools { display: flex; justify-content: flex-end; }
.viewer-close { height: 38px; padding: 0 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--white); font: 700 0.875rem/1 var(--sans); }
.viewer-close:hover { background: none; color: var(--ink); }
.viewer-text { margin-top: auto; }
.viewer-count { font: 500 0.8125rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.viewer-text h3 { margin-top: 10px; font: 800 clamp(1.5rem, 2.2vw, 2.1rem)/1.02 var(--sans); letter-spacing: -0.035em; }
.viewer-meta { margin-top: 8px; font: 500 0.9375rem/1.35 var(--sans); color: var(--ink-2); }
.viewer-note { margin-top: 8px; font: 400 0.9375rem/1.4 var(--sans); color: var(--ink-2); }
.viewer-note:empty, .viewer-meta:empty { display: none; }
.viewer-actions { display: flex; gap: 18px; margin-top: 14px; }

.viewer-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 18px; }
.viewer-strip button { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: var(--bg-2); opacity: 0.55; }
.viewer-strip button img { width: 100%; height: 100%; object-fit: cover; }
.viewer-strip button:hover { opacity: 1; }
.viewer-strip button[aria-current="true"] { opacity: 1; outline: 3px solid var(--ink); outline-offset: -3px; }

.viewer-navs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 10px; }
.viewer-nav { height: 52px; border: 2px solid var(--ink); background: none; font: 700 1.25rem/1 var(--sans); }
.viewer-nav:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.viewer-nav:disabled { opacity: 0.25; cursor: default; }

@media (max-width: 760px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer-stage.is-fill { justify-items: center; }
  .viewer-stage.is-fill img { height: auto; width: 100%; max-height: 100%; }
  .viewer-side { padding: 12px var(--gutter) 14px; }
  .viewer-tools { position: absolute; top: 10px; right: 10px; }
  .viewer-text { margin-top: 0; }
  .viewer-strip { display: none; }
  .viewer-actions { display: none; }
}

/* ── Smaller screens ──────────────────────────────── */

@media (max-width: 860px) {
  .slide, .poem, .story-grid, .extras { grid-template-columns: 1fr; }
  .slide-flip .slide-text { order: 0; }
  .session-photos { grid-template-columns: repeat(2, 1fr); }
  .where { columns: 1; }
  .core { grid-template-columns: 1fr; }
  .person img { max-width: 300px; }
  .partners ul { grid-template-columns: repeat(3, 1fr); }
  .film-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
