/* ============================================================
   AZAANKARAN.COM — The Museum Publication, second printing
   THESIS: a finely printed exhibition catalogue brought to the
   screen and made cinematic: ivory paper, charcoal ink, bronze
   labels, real plates from real work, denser spreads.
   OWN-WORLD: ivory #f2ede2, ink #221d16, bronze #8a6f43;
   Helvetica Bold architecture + EB Garamond editorial; hung
   plates, floating cutouts, hairline double-rules, no radius.
   STORY: visitor lands inside the interviews, meets Azaan,
   reads a grounded thesis, walks the exhibition, and writes.
   FIRST VIEWPORT: headline left; edge-bleed cinema carousel of
   interviews right, with folio numerals and a running progress
   hairline.
   FORM: brief-pinned museum publication; density and drama
   raised per client feedback of 2026-08-05.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/ebgaramond-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/ebgaramond-italic-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper: #f2ede2;
  --paper-deep: #e9e2d1;
  --plate-ground: #ece5d6;
  --ink: #221d16;
  --ink-78: rgba(34, 29, 22, 0.78);
  --ink-55: rgba(34, 29, 22, 0.55);
  --ink-16: rgba(34, 29, 22, 0.16);
  --ink-08: rgba(34, 29, 22, 0.08);
  --bronze: #8a6f43;
  --bronze-deep: #6f5732;
  --display: 'Neue Haas Grotesk Display', 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--bronze); color: var(--paper); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

/* ---------- paper grain ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.045;
  mix-blend-mode: multiply;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
}
.preloader__name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-55);
}
.preloader__count {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(70px, 13vw, 170px);
  line-height: 0.82; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.preloader__count .pct { color: var(--bronze); font-size: 0.35em; vertical-align: 0.15em; }

.veil {
  position: fixed; inset: 0; z-index: 180;
  background: var(--paper-deep);
  transform: scaleY(0); transform-origin: top;
  pointer-events: none;
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor.is-on { opacity: 0.85; }
.cursor.is-link { width: 44px; height: 44px; opacity: 0.14; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(14px, 2vw, 24px) var(--gutter);
  background: linear-gradient(to bottom, var(--paper) 55%, rgba(242, 237, 226, 0));
}
.site-head__name {
  font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
}
.menu-btn {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 6px 0;
}
.menu-btn__lines { position: relative; width: 30px; height: 10px; }
.menu-btn__lines::before, .menu-btn__lines::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1px;
  background: var(--ink); transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: 9px; }
body.menu-open .menu-btn__lines::before { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn__lines::after { top: 4px; transform: rotate(-45deg); }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--paper-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path 0.7s var(--ease-out); }
.menu__list { display: flex; flex-direction: column; }
.menu__item { border-bottom: 1px solid var(--ink-08); overflow: hidden; }
.menu__item:first-child { border-top: 1px solid var(--ink-08); }
.menu__link {
  display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px);
  padding: clamp(8px, 1.6vh, 18px) 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 5.6vh, 64px);
  line-height: 1; letter-spacing: -0.02em;
  transform: translateY(110%);
  transition: transform 0.65s var(--ease-out), color 0.3s;
}
body.menu-open .menu__link { transform: translateY(0); }
body.menu-open .menu__link:hover { color: var(--bronze-deep); transform: translateY(0) translateX(0.4ch); }
.menu__num { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--bronze); }
.menu__foot {
  position: absolute; bottom: clamp(20px, 4vh, 40px); left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between;
  font-family: var(--display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-55);
  opacity: 0; transition: opacity 0.5s 0.35s;
}
body.menu-open .menu__foot { opacity: 1; }

/* ---------- type voices ---------- */
.label {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bronze);
}
.label--quiet { color: var(--ink-55); }

.display {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.03em; line-height: 0.96;
  color: var(--ink);
}
.dot { color: var(--bronze); }

.sl { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.sl > span { display: block; transform: translateY(120%); }
html.no-js .sl > span, html.reduced .sl > span { transform: none; }

.passage {
  font-size: clamp(21px, 2.4vw, 31px);
  line-height: 1.5;
  max-width: 32em;
}
.body-copy {
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.68; color: var(--ink-78);
  max-width: 36em;
}
.body-copy p + p { margin-top: 1.2em; }

/* drop cap: the catalogue's opening initial */
.dropcap::first-letter {
  font-family: var(--serif); font-weight: 500;
  font-size: 3.6em; line-height: 0.78;
  float: left; padding: 0.06em 0.14em 0 0;
  color: var(--bronze-deep);
}

/* full-bleed image band */
.band { position: relative; }
.band .plate { height: min(68vh, 680px); }
.band .caption { padding: 0 var(--gutter); }

/* section header: double rule + label + ghost folio numeral */
.sect-head {
  position: relative;
  border-top: 1px solid var(--ink-16);
  padding-top: 10px;
  margin-bottom: clamp(28px, 4.5vh, 48px);
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sect-head::before {
  content: ''; position: absolute; top: 3px; left: 0; right: 0;
  border-top: 1px solid var(--ink-16);
}
.sect-head .passage { font-size: clamp(18px, 1.7vw, 23px); font-style: italic; color: var(--ink-78); }
.sect-head__folio {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 72px); line-height: 0.9; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(138, 111, 67, 0.55);
}

/* ---------- layout ---------- */
.frame { position: relative; padding: 8vh var(--gutter); }
.frame--tight { padding: 6vh var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--ink-16); }

/* ---------- plates ---------- */
.plate { position: relative; overflow: hidden; background: var(--plate-ground); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--contain img { object-fit: contain; }
.plate--bare { background: transparent; overflow: visible; }
.caption { margin-top: 14px; max-width: 44em; }
.caption__desc { display: block; font-style: italic; font-size: 16px; color: var(--ink-78); }
.caption__meta {
  display: block; margin-top: 4px;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-55);
}

/* ============================================================
   HOME
   ============================================================ */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: 12vh var(--gutter) 5vh 0;
  padding-left: var(--gutter);
}
.hero__title { font-size: clamp(44px, 5.4vw, 92px); line-height: 0.96; }
.hero__id { margin-top: 3.5vh; border-top: 1px solid var(--ink-16); padding-top: 18px; max-width: 30ch; }
.hero__id-name { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.4vw, 20px); }
.hero__id-roles { margin-top: 6px; }
.hero__id-line { margin-top: 14px; font-style: italic; font-size: 15px; color: var(--ink-55); }
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; padding: 13vh var(--gutter) 5vh; gap: 4vh; align-content: center; }
}

/* ---------- cinema carousel ---------- */
.cine { position: relative; }
.cine__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9.4;
  background: var(--ink);
}
.cine__slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transform: scale(1.045);
  transition: opacity 0.7s ease, transform 3.4s linear;
  pointer-events: none;
}
.cine__slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.cine__slide img { width: 100%; height: 100%; object-fit: cover; }
.cine__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 9, 0.55), rgba(14, 12, 9, 0) 45%);
}
.cine__onframe {
  position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 3;
  pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
}
.cine__ep {
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(242, 237, 226, 0.85);
}
.cine__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vw, 28px);
  align-items: start;
  border-top: 1px solid var(--ink-16);
  margin-top: 16px; padding-top: 14px;
}
.cine__index {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3vw, 48px); line-height: 0.9; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cine__index .of { color: var(--ink-55); font-size: 0.45em; letter-spacing: 0.04em; }
.cine__meta { min-width: 0; }
.cine__titlebox { overflow: hidden; }
.cine__title {
  display: block;
  font-style: italic; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.3;
  color: var(--ink);
  transform: translateY(0);
}
.cine__title.is-out { transition: transform 0.35s ease-in, opacity 0.3s; transform: translateY(-110%); opacity: 0; }
.cine__title.is-in { transition: none; transform: translateY(110%); opacity: 0; }
.cine__title.is-live { transition: transform 0.55s var(--ease-out), opacity 0.5s; transform: translateY(0); opacity: 1; }
.cine__date {
  margin-top: 6px;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-55);
}
.cine__progress { position: relative; margin-top: 12px; height: 1px; background: var(--ink-16); }
.cine__progress b {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: var(--bronze);
  transform: scaleX(0); transform-origin: left;
}
.cine__progress b.run { animation: cine-run var(--cine-dur, 5.2s) linear forwards; }
@keyframes cine-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cine__nav { display: flex; gap: 2px; }
.cine__btn {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  padding: 2px 12px; color: var(--ink-55); transition: color 0.3s;
}
.cine__btn:hover { color: var(--bronze-deep); }
.hero .cine__frame { margin-right: calc(-1 * var(--gutter)); }
@media (max-width: 899px) { .hero .cine__frame { margin-right: 0; } }
.hero .cine__bar { margin-right: 0; }

/* stacked hero: full-bleed cinema on top, statement beneath */
.hero--stack { display: block; min-height: 0; padding: 0 0 6vh; }
.hero--stack .cine__frame {
  aspect-ratio: auto;
  height: min(76vh, 880px);
  margin: 0;
}
.hero--stack .cine__slide::after {
  background: linear-gradient(to top, rgba(14, 12, 9, 0.6), rgba(14, 12, 9, 0) 40%),
              linear-gradient(to bottom, rgba(242, 237, 226, 0.5), rgba(242, 237, 226, 0) 14%);
}
.hero--stack .cine__bar { margin: 16px var(--gutter) 0; }
.hero--stack .hero__text {
  padding: 8vh var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero--stack .hero__title { font-size: clamp(48px, 7.4vw, 128px); }
.hero--stack .hero__id {
  margin-top: 4vh;
  max-width: 34ch;
}
@media (max-width: 899px) {
  .hero--stack .cine__frame { height: min(52vh, 520px); }
  .hero--stack .hero__text { padding-top: 6vh; }
}
html.reduced .cine__slide { transition: none; }
html.reduced .cine__progress b.run { animation: none; transform: scaleX(1); }

/* ---------- portrait spread (home) ---------- */
.spread {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.spread--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.spread__media .plate img { max-height: 82vh; object-fit: cover; }
@media (max-width: 899px) { .spread, .spread--flip { grid-template-columns: 1fr; } }

/* thesis */
.thesis__sig { margin-top: 3vh; font-style: italic; color: var(--ink-55); font-size: 16px; }

/* figures: museum table */
.figures__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 4vw;
  padding: clamp(18px, 3vh, 34px) 0;
  border-top: 1px solid var(--ink-16);
}
.figures__row:first-of-type { border-top: 3px double var(--ink-55); }
.figures__row:last-child { border-bottom: 3px double var(--ink-55); }
.figures__num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(56px, 8.4vw, 140px);
  line-height: 0.85; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figures__num .aff { color: var(--bronze); font-size: 0.5em; vertical-align: 0.5em; letter-spacing: 0; }
.figures__what { font-style: italic; font-size: clamp(16px, 1.5vw, 21px); color: var(--ink-78); max-width: 18em; text-align: right; }
@media (max-width: 700px) {
  .figures__row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .figures__what { text-align: left; }
}

/* guests rail */
.rail {
  display: flex; gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__card { flex: none; width: clamp(190px, 20vw, 280px); scroll-snap-align: start; }
.rail__card .plate { aspect-ratio: 4 / 5; }
.rail__card .plate img { filter: saturate(0.92); transition: filter 0.4s, transform 0.6s var(--ease-out); }
.rail__card:hover .plate img { filter: saturate(1); transform: scale(1.04); }
.rail__name { font-family: var(--display); font-weight: 700; font-size: clamp(15px, 1.3vw, 19px); margin-top: 12px; }
.rail__role { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-top: 3px; }

/* venue collage */
.collage {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.collage__a { grid-column: 1 / 6; }
.collage__b { grid-column: 6 / 13; margin-top: 8vh; }
.collage__c { grid-column: 2 / 9; margin-top: -4vh; }
.collage figure .plate img { max-height: 66vh; }
@media (max-width: 899px) {
  .collage { display: block; }
  .collage > * { margin: 0 0 5vh !important; }
}

/* exhibition card */
.exhibit-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  border-top: 3px double var(--ink-55); border-bottom: 3px double var(--ink-55);
  padding: 5vh 0;
  transition: background 0.4s;
}
.exhibit-card:hover { background: var(--paper-deep); }
.exhibit-card__media { aspect-ratio: 3 / 2; }
.exhibit-card__title { font-size: clamp(34px, 4.6vw, 72px); line-height: 0.98; }
.exhibit-card__facts { margin-top: 2.5vh; display: flex; flex-direction: column; gap: 6px; }
.exhibit-card__facts span { font-style: italic; color: var(--ink-78); font-size: 17px; }
.exhibit-card__go {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 3vh;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.go-rule { display: block; width: 3em; height: 1px; background: var(--ink); transform-origin: left center; transition: transform 0.45s var(--ease-out), background 0.3s; }
.exhibit-card:hover .go-rule, a:hover > .go-rule, button:hover > .go-rule { transform: scaleX(1.66); background: var(--bronze-deep); }
@media (max-width: 899px) { .exhibit-card { grid-template-columns: 1fr; } }

/* doors */
.doors-intro { max-width: 30em; margin-bottom: 4vh; }
.doors { display: flex; flex-direction: column; }
.door { border-top: 1px solid var(--ink-16); overflow: hidden; }
.door:last-child { border-bottom: 1px solid var(--ink-16); }
.door__link {
  display: flex; align-items: baseline; gap: clamp(18px, 3vw, 48px);
  padding: clamp(16px, 3vh, 32px) 0;
  transition: transform 0.45s var(--ease-out);
}
.door__link:hover { transform: translateX(1ch); }
.door__num { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--bronze); }
.door__name { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.02em; transition: color 0.3s; }
.door__link:hover .door__name { color: var(--bronze-deep); }
.door__hint { margin-left: auto; font-style: italic; font-size: 15px; color: var(--ink-55); display: none; }
@media (min-width: 900px) { .door__hint { display: block; } }

/* next room */
.next-room { padding-top: 7vh; padding-bottom: 9vh; }
.next-room__label { margin-bottom: 2.5vh; display: block; }
.next-room__link {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 6.6vw, 104px); line-height: 0.96; letter-spacing: -0.03em;
  display: inline-block; transition: color 0.3s;
}
.next-room__link:hover { color: var(--bronze-deep); }
.next-room__link .arr { display: inline-block; transition: transform 0.45s var(--ease-out); }
.next-room__link:hover .arr { transform: translateX(0.25em); }

/* footer: the colophon */
.site-foot {
  border-top: 1px solid var(--ink-16);
  padding: 7vh var(--gutter) 3.5vh;
  background: var(--paper-deep);
}
.site-foot__mark {
  font-size: clamp(40px, 7vw, 110px);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 5vh;
}
.site-foot__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4vh 4vw;
  border-top: 1px solid var(--ink-16);
  padding-top: 3.5vh;
}
.f-col-label {
  display: block; margin-bottom: 14px;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze);
}
.site-foot__grid a {
  display: block; padding: 3px 0;
  font-size: 17px; color: var(--ink-78);
  transition: color 0.3s;
}
.site-foot__grid a:hover { color: var(--bronze-deep); }
.site-foot__colophon { font-style: italic; font-size: 15px; color: var(--ink-55); max-width: 26em; }
.site-foot__base {
  display: flex; justify-content: space-between; gap: 3vw; flex-wrap: wrap;
  margin-top: 5vh;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-55);
}
@media (max-width: 699px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ============================================================
   INNER PAGES
   ============================================================ */
.room-open {
  min-height: 54vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 15vh var(--gutter) 5vh;
}
.room-open .label { margin-bottom: 2.5vh; }
.room-open__title { font-size: clamp(44px, 7.6vw, 126px); line-height: 0.94; }
.room-open__dek { margin-top: 3vh; font-style: italic; font-size: clamp(18px, 1.7vw, 24px); color: var(--ink-78); max-width: 32em; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 5vw; align-items: start; }
.about-grid .plate { position: sticky; top: 11vh; }
.about-grid .plate img { max-height: 78vh; }
@media (max-width: 899px) { .about-grid { grid-template-columns: 1fr; } .about-grid .plate { position: relative; top: 0; order: -1; } }

.timeline { max-width: 980px; }
.timeline__row {
  display: grid; grid-template-columns: 110px 1fr; gap: 4vw; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--ink-16);
}
.timeline__row:last-child { border-bottom: 1px solid var(--ink-16); }
.timeline__year { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: var(--bronze); }
.timeline__what { font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-78); }
.timeline__what strong { color: var(--ink); font-weight: 500; }

/* episodes grid */
.episodes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
}
.episode { display: flex; flex-direction: column; gap: 10px; }
.episode .plate { aspect-ratio: 16 / 9; }
.episode .plate img { transition: transform 0.6s var(--ease-out); }
.episode:hover .plate img { transform: scale(1.03); }
.episode__title { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.25; letter-spacing: -0.01em; transition: color 0.3s; }
.episode:hover .episode__title { color: var(--bronze-deep); }
.episode__meta { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-55); }

/* guest index */
.guest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
}
.guest-card .plate { aspect-ratio: 4 / 5; }
.guest-card .plate img { filter: saturate(0.92); }
.guest-card__name { font-family: var(--display); font-weight: 700; font-size: 18px; margin-top: 14px; }
.guest-card__role { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-top: 4px; }
.guest-card__bio { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.interlude { padding: 7vh var(--gutter); display: flex; justify-content: center; }
.pull { font-size: clamp(24px, 3vw, 40px); line-height: 1.35; font-style: italic; max-width: 26em; }
.interlude .pull { text-align: center; }

/* ============================================================
   CURATION — featured spreads + the catalogue room
   ============================================================ */

/* featured spreads: JS-rendered, honest aspect ratios */
.feat { display: flex; flex-direction: column; gap: clamp(40px, 8vh, 96px); }
.feat__item {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 0 2vw; align-items: end;
}
.feat__media { grid-column: 1 / 9; justify-self: start; max-width: 100%; }
.feat__item:nth-child(even) .feat__media { grid-column: 5 / 13; order: 2; justify-self: end; }
.feat__cap { grid-column: 9 / 13; padding-bottom: 8px; }
.feat__item:nth-child(even) .feat__cap { grid-column: 1 / 5; order: 1; text-align: right; }
.feat__media img { max-height: 76vh; width: auto; max-width: 100%; height: auto; }
.feat__media .plate { display: inline-block; }
.feat__media.is-cut img { max-height: 66vh; }
.feat__catno {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 54px); line-height: 0.9; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(138, 111, 67, 0.6);
  margin-bottom: 10px;
}
.feat__artist { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.01em; }
.feat__title { font-style: italic; font-size: clamp(16px, 1.5vw, 21px); color: var(--ink-78); margin-top: 3px; }
.feat__details { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-55); line-height: 1.8; }
@media (max-width: 899px) {
  .feat__item, .feat__item:nth-child(even) { display: block; }
  .feat__media, .feat__item:nth-child(even) .feat__media { max-width: 100%; }
  .feat__media img { max-height: 60vh; }
  .feat__cap, .feat__item:nth-child(even) .feat__cap { text-align: left; margin-top: 14px; }
}

/* movement chapters */
.chapter { margin-bottom: clamp(48px, 9vh, 110px); }
.chapter__intro {
  font-style: italic; font-size: clamp(19px, 1.9vw, 26px);
  color: var(--ink-78); max-width: 30em;
  margin: -1vh 0 5vh;
}
.chapter .feat { gap: clamp(32px, 6vh, 72px); }
.chapter__more {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 4vh;
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.chapter__more:hover { color: var(--bronze-deep); }

/* the catalogue room */
.room-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--ink-16); border-bottom: 1px solid var(--ink-16);
  margin: 0 calc(-1 * var(--gutter));
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); flex-wrap: wrap;
}
.room-bar__count { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.room-bar__count b { color: var(--bronze); }
.room-bar__filters { display: flex; gap: clamp(8px, 1.4vw, 20px); flex-wrap: wrap; margin-left: auto; }
.chip {
  font-family: var(--display); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-55);
  padding: 6px 2px; position: relative;
  transition: color 0.3s;
}
.chip::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--bronze); transition: right 0.4s var(--ease-out);
}
.chip:hover { color: var(--ink); }
.chip.is-on { color: var(--ink); }
.chip.is-on::after { right: 0; }

.works-room { margin-top: clamp(28px, 5vh, 56px); }
.works-cols { columns: 4 240px; column-gap: clamp(18px, 2.2vw, 32px); }
.work-card {
  display: block; width: 100%;
  break-inside: avoid;
  margin: 0 0 clamp(26px, 3.6vh, 44px);
  text-align: left;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.work-card.in { opacity: 1; transform: none; }
html.reduced .work-card { opacity: 1; transform: none; transition: none; }
.work-card.hide { display: none; }
.work-card .plate { width: 100%; }
.work-card .plate img { width: 100%; height: auto; object-fit: unset; transition: transform 0.55s var(--ease-out); }
.work-card .plate--bare img { transition: transform 0.55s var(--ease-out); }
.work-card:hover .plate img { transform: scale(1.025); }
.work-card__meta { padding-top: 10px; }
.work-card__cat { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; color: var(--bronze); text-transform: uppercase; }
.work-card__artist { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; margin-top: 3px; }
.work-card__title { font-style: italic; font-size: 15px; color: var(--ink-78); margin-top: 1px; }

/* lightbox viewer */
.viewer {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(242, 237, 226, 0.97);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(56px, 9vh, 96px) var(--gutter) clamp(24px, 5vh, 56px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.viewer.open { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.viewer__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.viewer__stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease-out);
}
.viewer.open .viewer__stage img { transform: scale(1); }
.viewer__info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.viewer__catno {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 5vw, 84px); line-height: 0.9; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(138, 111, 67, 0.6);
}
.viewer__artist { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -0.01em; margin-top: 3vh; }
.viewer__title { font-style: italic; font-size: clamp(18px, 1.7vw, 24px); color: var(--ink-78); margin-top: 6px; }
.viewer__details { margin-top: 3vh; border-top: 1px solid var(--ink-16); }
.viewer__details div { padding: 10px 0; border-bottom: 1px solid var(--ink-08); font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-78); }
.viewer__era { margin-top: 3vh; }
.viewer__close {
  position: absolute; top: clamp(16px, 2.4vw, 28px); right: var(--gutter);
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.viewer__close:hover { color: var(--bronze-deep); }
.viewer__navs {
  position: absolute; bottom: clamp(20px, 4vh, 40px); left: var(--gutter);
  display: flex; gap: 4px; align-items: baseline;
}
.viewer__navs .cine__btn { font-size: 24px; }
.viewer__pos { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-55); margin-left: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow-y: auto; }
  .viewer__info { padding-bottom: 9vh; }
  .viewer__catno { font-size: 36px; }
}

.press-line { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; border-top: 1px solid var(--ink-16); border-bottom: 1px solid var(--ink-16); padding: 3vh 0; }
.press-line a { border-bottom: 1px solid var(--ink-55); transition: border-color 0.3s, color 0.3s; font-style: italic; }
.press-line a:hover { color: var(--bronze-deep); border-color: var(--bronze); }

/* advisory services */
.services { max-width: 1100px; }
.service {
  display: grid; grid-template-columns: 60px 1fr 1.2fr; gap: 4vw; align-items: baseline;
  border-top: 1px solid var(--ink-16); padding: clamp(22px, 3.4vh, 40px) 0;
}
.service:last-child { border-bottom: 1px solid var(--ink-16); }
.service__num { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--bronze); }
.service__name { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 46px); line-height: 1; letter-spacing: -0.02em; }
.service__desc { font-style: italic; font-size: 17px; color: var(--ink-78); max-width: 26em; }
@media (max-width: 799px) { .service { grid-template-columns: 40px 1fr; } .service__desc { grid-column: 2; } }

/* learn */
.books { max-width: 1000px; }
.book {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4vw; align-items: baseline;
  border-top: 1px solid var(--ink-16); padding: clamp(20px, 3.2vh, 36px) 0;
}
.book:last-child { border-bottom: 1px solid var(--ink-16); }
.book__title { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 28px); letter-spacing: -0.01em; }
.book__author { font-style: italic; color: var(--ink-55); font-size: 16px; margin-top: 4px; }
.book__note { font-size: 17px; color: var(--ink-78); font-style: italic; }
@media (max-width: 699px) { .book { grid-template-columns: 1fr; gap: 10px; } }

/* contact */
.contact-open { min-height: 48vh; display: flex; align-items: flex-end; padding: 15vh var(--gutter) 5vh; }
.contact-open .pull { max-width: 24em; }
.door-form { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.door.is-open .door-form { grid-template-rows: 1fr; }
.door-form__clip { overflow: hidden; min-height: 0; }
.door-form__inner { padding: 0 0 clamp(26px, 4.5vh, 44px); display: grid; gap: 20px; max-width: 640px; }
.door-form .f-label { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-55); display: block; margin-bottom: 8px; }
.door-form input, .door-form textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--ink-16);
  color: var(--ink); font-family: var(--serif); font-size: 19px;
  padding: 8px 0 12px; border-radius: 0;
  transition: border-color 0.3s;
}
.door-form input:focus, .door-form textarea:focus { outline: none; border-color: var(--bronze); }
.door-form input::placeholder, .door-form textarea::placeholder { color: var(--ink-55); font-style: italic; }
.door-form textarea { resize: vertical; min-height: 90px; }
.door-form__send { justify-self: start; display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding: 4px 0; }
.door-form__note { font-style: italic; font-size: 14px; color: var(--ink-78); }
.the-end { padding: 6vh var(--gutter); }
.the-end__line { font-style: italic; color: var(--ink-55); font-size: 16px; }

/* reveal hooks */
.rv { opacity: 0; transform: translateY(28px); }
html.reduced .rv, html.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .frame { padding-top: 6vh; padding-bottom: 6vh; }
  .works-cols { columns: 2 150px; }
}
