/* ART UAE 2026
   Palette: monotone. Pure white ground, near-black ink, neutral greys with no hue.
   Colour on this site belongs to the photographs and nothing else.
   Type: Melodrama (display, a high-contrast serif in the register of the logo) + Switzer (text).
   Signature: the rail. The logo stacks ART over UAE between two hairline rails; every section
   on the site is ruled the same way, and the rails draw themselves once when a page opens. */

:root {
  --white: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #333333;
  --muted: #6b6b6b;      /* 5.3:1 on white */
  --line: #e2e2e2;
  --wash: #f5f5f5;
  --ink-line: #2a2a2a;   /* hairline on the black ground */
  --ink-muted: #a3a3a3;  /* 7.9:1 on --ink */

  --serif: 'Melodrama', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 3.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 5vw, 4.25rem);
  --step-5: clamp(3rem, 8vw, 7.5rem);

  --gutter: clamp(16px, 3.4vw, 48px);
  --wide: 1360px;
  --prose: 68ch;
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .index-panel :focus-visible, .lightbox :focus-visible { outline-color: var(--white); }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: square; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* The rail */
.rail { height: 1px; background: currentColor; transform-origin: left; }
.rail--double { height: 5px; background: none; border-block: 1px solid currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .js .rail { animation: rail 900ms var(--ease) both; }
  .js .rail:nth-of-type(2) { animation-delay: 120ms; }
}
@keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.2) blur(10px); } }
.site-header .wrap { height: var(--header); display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; }
.primary-nav { display: flex; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.primary-nav a { font-size: .9375rem; text-decoration: none; padding: 10px 0; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; font-size: .9375rem;
}
.menu-button:hover { background: var(--white); color: var(--ink); }
.menu-button .icon { width: 18px; height: 18px; }
@media (max-width: 1080px) { .primary-nav { display: none; } .menu-button { margin-left: auto; } }

/* Index overlay */
.index-panel {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--white);
  overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 240ms var(--ease), visibility 240ms;
}
.index-panel.is-open { visibility: visible; opacity: 1; }
.index-panel .wrap { min-height: 100%; display: flex; flex-direction: column; padding-block: 24px 40px; }
.index-top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header) - 24px); margin-bottom: clamp(32px, 6vw, 72px); }
.index-top img { height: 42px; width: auto; }
.index-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--white); background: none; cursor: pointer; }
.index-close:hover { background: var(--white); color: var(--ink); }
.index-close .icon { width: 18px; height: 18px; }
.index-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px var(--gutter); }
.index-groups h2 { margin: 0 0 18px; font: 500 var(--step--1)/1.3 var(--sans); color: var(--ink-muted); }
.index-groups ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-line); }
.index-groups li { border-bottom: 1px solid var(--ink-line); }
.index-groups a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; text-decoration: none; font: 400 clamp(1.5rem, 2.4vw, 2.125rem)/1.1 var(--serif); }
.index-groups a:hover { color: var(--ink-muted); }
.index-groups a .icon { width: 18px; height: 18px; }
.index-foot { margin-top: auto; padding-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--ink-muted); font-size: .9375rem; }
.index-foot a { color: var(--white); }
@media (max-width: 900px) { .index-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .index-groups { grid-template-columns: 1fr; } }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--white); border: 1px solid var(--ink); text-decoration: none; font-weight: 500;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.button:hover { background: var(--white); color: var(--ink); }
.button .icon { width: 16px; height: 16px; }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--white); }
.on-ink .button { background: var(--white); color: var(--ink); border-color: var(--white); }
.on-ink .button:hover { background: transparent; color: var(--white); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: underline; }
.link .icon { width: 14px; height: 14px; }

/* Home: hero */
.hero { padding-block: clamp(28px, 4vw, 56px) 0; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; padding-bottom: clamp(40px, 5vw, 72px); }
.hero-mark img { width: 100%; max-width: 760px; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-mark img { animation: mark 1100ms var(--ease) both; }
}
@keyframes mark { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.hero-copy h1 { margin: 0 0 24px; font: 400 clamp(2.25rem, 4vw, 3.75rem)/1.04 var(--serif); letter-spacing: -.02em; }
.hero-copy p { margin: 0 0 28px; max-width: 46ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero > .rail { margin-bottom: clamp(20px, 3vw, 32px); }
.hero-full { margin: 0; }
.hero-full a { display: block; }
.hero-full img { width: 100%; height: auto; }
.hero-full figcaption { padding-top: 12px; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.statement-photo { margin: 0 0 24px; }
.statement-photo img { width: 100%; height: auto; }
.statement-photo figcaption { padding-top: 10px; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Home: numbers ledger */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); }
.ledger div { padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px) clamp(24px, 3vw, 36px); border-left: 1px solid var(--line); }
.ledger div:first-child { border-left: 0; padding-left: 0; }
.ledger strong { display: block; font: 300 clamp(2.5rem, 5.6vw, 5rem)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; }
.ledger span { display: block; margin-top: 10px; color: var(--muted); font-size: .9375rem; }
@media (max-width: 720px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Generic section rhythm */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: end; padding-bottom: 20px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--ink); }
.section-head h2 { margin: 0; font: 400 var(--step-4)/1.02 var(--serif); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); justify-self: end; text-align: right; max-width: 40ch; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } .section-head p { justify-self: start; text-align: left; } }

/* Home: statement */
.statement { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gutter); align-items: end; }
.statement > p { margin: 0; font: 400 var(--step-4)/1.08 var(--serif); letter-spacing: -.015em; }
.statement aside p { margin: 0; color: var(--ink-2); max-width: 38ch; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Home: pillars (a ruled 2 x 2 table) */
.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pillars article { padding: clamp(24px, 3.4vw, 44px) clamp(0px, 3vw, 40px) clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.pillars article:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.pillars h3 { margin: 0 0 12px; font: 400 var(--step-3)/1.1 var(--serif); }
.pillars p { margin: 0; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } .pillars article:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Home: latest feature */
.feature { display: grid; grid-template-columns: 6fr 6fr; gap: var(--gutter); align-items: center; }
.feature figure { margin: 0; }
.feature img { width: 100%; height: auto; }
.feature h2 { margin: 0 0 16px; font: 400 var(--step-4)/1.02 var(--serif); letter-spacing: -.02em; }
.feature h3 { margin: 0 0 28px; font: 400 var(--step-1)/1.45 var(--sans); color: var(--ink-2); max-width: 40ch; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Home: upcoming list */
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-bottom: 1px solid var(--ink-line); padding: clamp(16px, 2vw, 24px) 0; font: 400 var(--step-3)/1.1 var(--serif); }
.upcoming li:first-child { border-top: 1px solid var(--ink-line); }

/* Home: portrait story */
.portrait { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.portrait figure { margin: 0; }
.portrait img { width: 100%; height: auto; }
.portrait h2 { margin: 0 0 20px; font: 400 var(--step-4)/1.05 var(--serif); letter-spacing: -.015em; }
.portrait .figure-line { margin: 0 0 32px; font-weight: 500; }
.portrait p { max-width: 46ch; color: var(--ink-2); }
@media (max-width: 860px) { .portrait { grid-template-columns: 1fr; } }

/* Home: archive directory */
.directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.directory a { display: grid; grid-template-columns: 96px 4fr 5fr auto; gap: clamp(16px, 2.4vw, 32px); align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.directory img { width: 96px; height: 72px; object-fit: contain; object-position: left center; }
.directory strong { font: 400 var(--step-3)/1.05 var(--serif); }
.directory span { color: var(--muted); }
.directory .count { font-size: var(--step--1); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.directory .icon { width: 20px; height: 20px; transition: transform 220ms var(--ease); }
.directory a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.directory a:hover .icon { transform: translateX(4px); }
.directory .tail { display: flex; align-items: center; gap: 20px; }
@media (max-width: 860px) {
  .directory a { grid-template-columns: 72px 1fr auto; }
  .directory img { width: 72px; height: 54px; }
  .directory a > span { display: none; }
  .directory .count { display: none; }
}

/* Black ground */
.on-ink { background: var(--ink); color: var(--white); }
.on-ink .section-head { border-color: var(--white); }
.on-ink .section-head p { color: var(--ink-muted); }
.closing { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gutter); align-items: end; }
.closing p { margin: 0; font: 400 var(--step-4)/1.1 var(--serif); letter-spacing: -.015em; }
.closing .actions { justify-content: flex-end; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; } .closing .actions { justify-content: flex-start; } }

/* Page head */
.page-head { padding-block: clamp(40px, 7vw, 104px) clamp(28px, 4vw, 48px); }
.page-head h1 { margin: 0; font: 400 var(--step-5)/.95 var(--serif); letter-spacing: -.025em; }
.page-head .deck { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); margin-top: clamp(24px, 3vw, 40px); padding-top: 20px; border-top: 1px solid var(--ink); }
.page-head .deck p { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.page-head .meta { justify-self: end; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .page-head .deck { grid-template-columns: 1fr; } .page-head .meta { justify-self: start; } }
.cover { margin-top: 0; margin-bottom: clamp(48px, 7vw, 96px); }
.cover img { width: 100%; height: auto; }

/* Archive layout: contents + chapters */
.archive { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(64px, 9vw, 128px); }
.archive--single { grid-template-columns: minmax(0, 1fr); }
.contents { position: sticky; top: calc(var(--header) + 24px); align-self: start; max-height: calc(100vh - var(--header) - 48px); overflow: auto; }
.contents summary { list-style: none; cursor: default; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.contents summary::-webkit-details-marker { display: none; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li { border-bottom: 1px solid var(--line); }
.contents a { display: block; padding: 10px 0; text-decoration: none; font-size: .9375rem; line-height: 1.35; color: var(--muted); }
.contents a:hover, .contents a.is-current { color: var(--ink); }
.contents a.is-current { font-weight: 500; }
.contents .contents-foot { margin-top: 20px; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 960px) {
  .archive { grid-template-columns: 1fr; }
  .contents { position: static; max-height: none; border: 1px solid var(--ink); padding: 0 16px; }
  .contents summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0; border: 0; }
  .contents summary .icon { transition: transform 200ms var(--ease); }
  .contents[open] summary .icon { transform: rotate(180deg); }
  .contents[open] summary { border-bottom: 1px solid var(--ink); }
  .contents ol { padding-bottom: 8px; }
  .contents .contents-foot { display: none; }
}

.chapter { padding-bottom: clamp(56px, 7vw, 104px); }
.chapter + .chapter { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; margin-bottom: clamp(24px, 3vw, 36px); }
.chapter-head h2 { margin: 0; font: 400 var(--step-4)/1 var(--serif); letter-spacing: -.01em; text-transform: uppercase; }
.chapter-head p { margin: 0; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.in-chapter { margin: 0 0 clamp(32px, 4vw, 56px); padding: 20px 0; border-block: 1px solid var(--line); }
.in-chapter h3 { margin: 0 0 12px; font: 500 .9375rem/1.3 var(--sans); }
.in-chapter ol { margin: 0; padding: 0; list-style: none; columns: 2 280px; column-gap: 40px; }
.in-chapter li { break-inside: avoid; padding: 5px 0; }
.in-chapter a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; line-height: 1.4; display: inline-block; }
.in-chapter a:hover { color: var(--ink); text-decoration: underline; }

.intro, .entry { max-width: var(--prose); }
.entry { padding-block: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.intro + .entry, .chapter-head + .entry { border-top: 0; padding-top: 0; }
.in-chapter + .entry { border-top: 0; padding-top: 0; }
.entry > h3 { margin: 0 0 18px; font: 400 var(--step-3)/1.1 var(--serif); letter-spacing: -.005em; }
.entry h4, .intro h4 { margin: 32px 0 10px; font: 600 var(--step-0)/1.4 var(--sans); }
.entry > :last-child, .intro > :last-child { margin-bottom: 0; }
.entry p, .intro p { margin: 0 0 1em; color: var(--ink-2); }
.entry p.lead-in, .intro p.lead-in { margin: 1.6em 0 .5em; color: var(--ink); font-weight: 600; }
.entry ul, .intro ul { margin: 0 0 1.2em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.entry ul li, .intro ul li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); color: var(--ink-2); position: relative; }
.entry ul li::before, .intro ul li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 10px; height: 1px; background: var(--ink); }
.entry blockquote, .intro blockquote { margin: 28px 0; padding-left: 24px; border-left: 1px solid var(--ink); font: 400 var(--step-2)/1.3 var(--serif); }
.source-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 1em; }
.source-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .9375rem; }
.source-links .icon { width: 12px; height: 12px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; color: var(--muted); font-size: .9375rem; text-decoration: none; }
.back:hover { color: var(--ink); }
.back .icon { width: 14px; height: 14px; }

/* Stories: as on the original site, each event is its photograph, then its title, then its text */
.story { max-width: 820px; padding-block: clamp(36px, 4.4vw, 64px); border-top: 1px solid var(--line); }
.in-chapter + .story, .chapter-head + .story, .gallery-block + .story { border-top: 0; padding-top: 0; }
.story--cont { border-top: 0; padding-top: 0; }
.story figure { margin: 0; }
.story a:has(img) { display: block; }
.story-lead { margin-bottom: clamp(20px, 2.4vw, 28px); }
.story-lead img { display: block; width: auto; max-width: 100%; max-height: 78vh; height: auto; }
.story-lead .film { max-width: 100%; }
.story-more { --row: 150px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2.4vw, 28px); }
.story-more::after { content: ""; flex-grow: 999; }
.story-more > figure { flex-grow: calc(var(--w) / var(--h)); flex-basis: calc(var(--row) * var(--w) / var(--h)); }
.story-more > figure.story-film { flex: 1 1 260px; }
.story-more a { display: block; background: var(--wash); overflow: hidden; }
.story-more img { width: 100%; height: auto; aspect-ratio: var(--w) / var(--h); transition: transform 500ms var(--ease); }
.story-more a:hover img { transform: scale(1.02); }
.story-lead figcaption { padding-top: 10px; font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
.story figcaption a.inline { display: inline; background: none; color: var(--ink); text-decoration: underline; }
.story-more figcaption, .story-film figcaption { padding-top: 6px; font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
.story-more .film .play { left: 6px; bottom: 6px; min-height: 32px; padding: 0 10px; font-size: var(--step--1); }
.story-text { max-width: var(--prose); }
.story-text > h3 { margin: 0 0 18px; font: 400 var(--step-3)/1.1 var(--serif); letter-spacing: -.005em; }
.story-text .story-label { margin: 0 0 12px; font: 600 var(--step-1)/1.3 var(--sans); }
.story-text h4 { margin: 32px 0 10px; font: 600 var(--step-0)/1.4 var(--sans); }
.story-text > h4:first-child { margin-top: 0; }
.story-text p { margin: 0 0 1em; color: var(--ink-2); }
.story-text p.lead-in { margin: 1.6em 0 .5em; color: var(--ink); font-weight: 600; }
.story-text ul { margin: 0 0 1.2em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.story-text ul li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); color: var(--ink-2); position: relative; }
.story-text ul li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 10px; height: 1px; background: var(--ink); }
.story-text blockquote { margin: 28px 0; padding-left: 24px; border-left: 1px solid var(--ink); font: 400 var(--step-2)/1.3 var(--serif); }
.story-text > :last-child { margin-bottom: 0; }

/* Galleries: colour lives here */
.gallery-block { margin-top: clamp(36px, 5vw, 64px); }
.gallery-block > h3 { margin: 0 0 14px; font: 500 .9375rem/1.3 var(--sans); display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.gallery-block > h3 span { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
/* Justified rows: each photograph keeps its own shape, rows fill the width, nothing is cropped. */
.gallery { --row: 240px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 999; }
.gallery a { display: block; position: relative; overflow: hidden; background: var(--wash);
  flex-grow: calc(var(--w) / var(--h)); flex-basis: calc(var(--row) * var(--w) / var(--h)); }
.gallery img { width: 100%; height: auto; aspect-ratio: var(--w) / var(--h); transition: transform 500ms var(--ease); }
.gallery a:hover img { transform: scale(1.02); }
.gallery--n1 a { flex: 0 1 auto; }
.gallery--n1 img { width: auto; max-width: 100%; max-height: 78vh; }
@media (max-width: 640px) { .gallery { --row: 150px; } }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos a { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: clamp(16px, 2vw, 28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.logos img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* Films */
.films { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.film { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; color: var(--white); text-decoration: none; }
.film img { width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms var(--ease); }
.film:hover img { opacity: .78; }
.film .play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: var(--white); color: var(--ink); font-weight: 500; font-size: .9375rem; }
.film .play .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.films--single { grid-template-columns: 1fr; max-width: 960px; }
@media (max-width: 720px) { .films { grid-template-columns: 1fr; } }

/* Moments archive */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0; list-style: none; }
.filter button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: .9375rem; }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter button span { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.filter button[aria-pressed="true"] span { color: var(--ink-muted); }
.moments-group { padding-bottom: clamp(40px, 5vw, 64px); }
.moments-group[hidden] { display: none; }
.moments-group .gallery { --row: 180px; }
@media (max-width: 640px) { .moments-group .gallery { --row: 110px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); max-width: 820px; padding-bottom: clamp(64px, 9vw, 128px); }
.contact-grid figure { margin: 0; }
.contact-grid figure img { width: auto; max-width: 100%; max-height: 78vh; height: auto; }
.contact-lede { margin: 0 0 clamp(32px, 4vw, 48px); font: 400 var(--step-3)/1.2 var(--serif); }
.contact-lede strong { font-weight: 400; }
.details { margin: 0; border-top: 1px solid var(--ink); }
.details div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.details dd p { margin: 0; }
.details dd p + p { margin-top: 6px; }
.details a { font-weight: 500; }
.contact-note { margin-top: 32px; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .details div { grid-template-columns: 1fr; gap: 4px; } }

/* Next page */
.next { border-top: 1px solid var(--ink); }
.next a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding-block: clamp(32px, 5vw, 64px); text-decoration: none; }
.next small { display: block; color: var(--muted); font-size: .9375rem; margin-bottom: 6px; }
.next strong { font: 400 var(--step-4)/1 var(--serif); letter-spacing: -.02em; }
.next .icon { width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px); stroke-width: 1; transition: transform 240ms var(--ease); }
.next a:hover .icon { transform: translateX(8px); }

/* Footer */
.footer { padding-block: clamp(56px, 8vw, 104px) 28px; }
.footer-top { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); padding-bottom: clamp(40px, 6vw, 72px); }
.footer-mark img { width: min(100%, 360px); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px var(--gutter); }
.footer-cols h2 { margin: 0 0 14px; font: 500 .9375rem/1.3 var(--sans); color: var(--ink-muted); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 3px 0; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--ink-line); color: var(--ink-muted); font-size: var(--step--1); }
.footer-bottom a { color: var(--white); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; grid-template-rows: auto 1fr auto; background: #050505; color: var(--white); }
.lightbox.is-open { display: grid; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.lb-count { color: var(--ink-muted); font-variant-numeric: tabular-nums; font-size: .9375rem; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(56px, 7vw, 96px); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ink-line); background: transparent; color: var(--white); cursor: pointer; }
.lb-btn:hover { border-color: var(--white); }
.lb-btn .icon { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
.lb-caption { padding: 12px var(--gutter) 20px; color: var(--ink-muted); font-size: .9375rem; min-height: 52px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -56px; transform: none; } .lb-caption { padding-right: 130px; } }

/* Cookie notice */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(420px, calc(100% - 32px)); padding: 20px; background: var(--white); border: 1px solid var(--ink); }
.cookie[hidden] { display: none; }
.cookie h2 { margin: 0 0 8px; font: 600 var(--step-0)/1.3 var(--sans); }
.cookie p { margin: 0 0 16px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.cookie .actions { gap: 8px; }
.cookie button { min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: var(--white); cursor: pointer; }
.cookie button[data-cookie-choice="accepted"] { background: var(--ink); color: var(--white); }

/* Legal */
.legal { max-width: var(--prose); }
.legal h2 { margin: 48px 0 12px; font: 400 var(--step-3)/1.15 var(--serif); }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); margin: 0 0 1em; }

@media print {
  .site-header, .index-panel, .cookie, .contents, .next, .lightbox { display: none !important; }
  .archive { display: block; }
}
