/* ==========================================================================
   World Art Dubai — Editions
   Shared design system for the 2024 / 2025 / 2026 edition pages
   ========================================================================== */

:root {
  --paper: #f6f2ec;
  --paper-2: #efe9e0;
  --ink: #151312;
  --ink-soft: #3a3532;
  --muted: #7a726b;
  --line: rgba(21, 19, 18, .12);
  --night: #0e0d0c;
  --night-2: #1a1816;
  --gold: #b89b6a;

  --accent: #c8175d;
  --accent-soft: #f4d9e3;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body[data-edition="2024"] { --accent: #b7676f; --accent-light: #e6a9ae; --accent-soft: #f1dfdf; }
body[data-edition="2025"] { --accent: #d92f45; --accent-light: #ff7385; --accent-soft: #fbe1e3; }
body[data-edition="2026"] { --accent: #c8175d; --accent-light: #ff5c97; --accent-soft: #f6d7e3; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.eyebrow.plain::before { display: none; }

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: .98; letter-spacing: -.015em;
}
.stat__num, .countdown b, .hero__badge b, .panel__year, .edition-nav strong, .schedule__date,
.info-grid .big, .hero__meta dd, .bar__row b, .lightbox__count { font-variant-numeric: lining-nums; }
.display em, .h2 em, .h3 em { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.01em;
}
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.45; color: var(--ink-soft);
}
.lead.dropcap::first-letter {
  float: left; font-size: 4.3em; line-height: .8; padding: .08em .1em 0 0; color: var(--accent);
}
.body-copy p + p { margin-top: 1.1em; }
.body-copy { color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border: 1px solid var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { border-color: var(--accent); }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--ink); }
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.link-line {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-line:hover { background-size: 30% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease), color .5s;
  padding: 22px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 46px; width: auto; transition: height .5s var(--ease), filter .5s; }
.brand .brand-year {
  font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1;
  padding-left: 16px; border-left: 1px solid currentColor; opacity: .85;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a.nav-link {
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; position: relative; padding: 6px 0;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.edition-switch {
  display: flex; border: 1px solid currentColor; border-radius: 40px; padding: 3px; gap: 2px;
}
.edition-switch a {
  font-size: 12px; font-weight: 500; letter-spacing: .12em; padding: 6px 14px; border-radius: 40px;
  transition: background .3s, color .3s; opacity: .75;
}
.edition-switch a:hover { opacity: 1; }
.edition-switch a.is-active { background: var(--accent); color: #fff; opacity: 1; }

.site-header.is-scrolled {
  background: rgba(246, 242, 236, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line); padding: 12px 0; color: var(--ink);
}
.site-header.is-scrolled .brand img { height: 36px; filter: none !important; }

/* Header on dark heroes */
.site-header.on-dark:not(.is-scrolled) { color: #fff; }
.site-header.on-dark:not(.is-scrolled) .brand img { filter: invert(1); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero (split, editorial) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: 130px var(--gutter) 80px;
}
.hero__text .display { font-size: clamp(44px, 5.4vw, 88px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero__meta dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero__meta dd { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__media::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(246, 242, 236, .85), rgba(246, 242, 236, 0));
}
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); animation: heroZoom 2.4s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__caption {
  position: absolute; left: 28px; bottom: 26px; z-index: 2;
  color: #fff; font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero__caption::before { content: ""; width: 26px; height: 1px; background: #fff; }
.hero__badge {
  position: absolute; right: 28px; top: 120px; z-index: 2; width: 132px; height: 132px; border-radius: 50%;
  background: var(--paper); color: var(--ink); display: grid; place-items: center; text-align: center;
  font-family: var(--serif); line-height: 1.05;
}
.hero__badge b { display: block; font-size: 46px; font-weight: 500; color: var(--accent); }
.hero__badge small { font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.hero__badge svg { position: absolute; inset: 0; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 28px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ink);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (max-height: 1000px) { .scroll-cue { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; white-space: nowrap;
  background: var(--paper);
}
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-left: 48px; }
.marquee span {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); font-style: italic; display: inline-flex; align-items: center; gap: 48px;
}
.marquee span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--accent); }
.marquee .ar { font-family: "Noto Kufi Arabic", var(--sans); font-style: normal; font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.section--tight { padding: clamp(70px, 8vw, 110px) 0; }
.section--dark { background: var(--night); color: #f3eee7; }
.section--dark .muted, .section--dark .eyebrow { color: rgba(243, 238, 231, .6); }
.section--dark .h2 em, .section--dark .h3 em { color: var(--accent-light); }
.section--dark .body-copy, .section--dark .lead { color: rgba(243, 238, 231, .82); }
.section--tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(50px, 6vw, 90px); }
.section-head .eyebrow { margin-bottom: 26px; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--accent); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split--rev { grid-template-columns: 7fr 5fr; }
.sticky { position: sticky; top: 120px; }

/* Framed image with offset hairline */
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: 0;
  transition: inset .8s var(--ease);
}
.frame:hover::before { inset: 12px -12px -12px 12px; }
.frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.frame figcaption { position: relative; z-index: 1; margin-top: 40px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 28px 44px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stats--2 { --cols: 2; }
.stats--2 .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
.stats--3 { --cols: 3; }
.stats--3 .stat:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.stat__num {
  font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 6vw, 92px); line-height: 1; letter-spacing: -.02em;
  display: flex; align-items: flex-start;
}
.stat__num sup { font-size: .42em; color: var(--accent); margin-left: 4px; top: .25em; position: relative; }
.stat__label { margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.section--dark .stats, .section--dark .stat { border-color: rgba(255,255,255,.12); }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 36px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card__img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding-top: 26px; }
.card__kicker { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.card .h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card:nth-child(3n + 2) { margin-top: 70px; }
.cards--2 .card:nth-child(3n + 2) { margin-top: 0; }
.cards--2 .card:nth-child(even) { margin-top: 90px; }

/* ---------- Numbered list (programme) ---------- */
.numbered { counter-reset: n; border-top: 1px solid var(--line); }
.numbered li {
  counter-increment: n; display: grid; grid-template-columns: 70px 1fr; gap: 20px;
  padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease);
}
.numbered li::before {
  content: counter(n, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent); line-height: 1.3;
}
.numbered li:hover { padding-left: 14px; }
.numbered h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.numbered p { color: var(--ink-soft); font-size: 16px; }
.numbered .metric { display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.section--dark .numbered, .section--dark .numbered li { border-color: rgba(255,255,255,.12); }
.section--dark .numbered p { color: rgba(243, 238, 231, .75); }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 980px; margin: 0 auto; }
.quote__mark { font-family: var(--serif); font-size: 140px; line-height: .6; color: var(--accent); display: block; height: 60px; }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3;
}
.quote cite { display: block; margin-top: 30px; font-style: normal; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.quotes figure { margin: 0; padding: 40px 34px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; font-style: italic; }
.quotes figcaption { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.quotes figcaption b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 40px; font-size: 14px; letter-spacing: .04em;
  transition: background .3s, color .3s, border-color .3s;
}
.chips li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--dark .chips li { border-color: rgba(255,255,255,.18); }
.section--dark .chips li:hover { background: #fff; color: var(--ink); }

/* ---------- Bars (profile) ---------- */
.bars { display: grid; gap: 22px; }
.bar__row { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; }
.bar__row b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 1.8s var(--ease); }
.is-visible .bar i { width: var(--v); }

/* ---------- Schedule ---------- */
.schedule { border-top: 1px solid var(--line); }
.schedule__row {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.schedule__date { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.schedule__day { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.schedule__time { font-size: 15px; letter-spacing: .12em; white-space: nowrap; }
.schedule__row.vip .schedule__date::after {
  content: "VIP"; margin-left: 12px; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; vertical-align: middle;
  padding: 4px 10px; border-radius: 20px; background: var(--accent); color: #fff;
}
.section--dark .schedule, .section--dark .schedule__row { border-color: rgba(255,255,255,.12); }

.venue-card { padding: 44px; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.venue-card::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -90px; bottom: -120px;
  background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .55;
}
.venue-card .h3 { margin: 18px 0 14px; }
.venue-card p { color: rgba(246,242,236,.75); font-size: 16px; }
.venue-card .link-line { margin-top: 30px; position: relative; z-index: 1; }

/* ---------- Gallery (masonry) ---------- */
.gallery { columns: 3 320px; column-gap: 18px; }
.gallery a {
  display: block; margin-bottom: 18px; break-inside: avoid; position: relative; overflow: hidden; background: var(--paper-2);
  cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform 1.2s var(--ease), filter .6s; }
.gallery a::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.gallery a span {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; color: #fff; font-size: 13px; letter-spacing: .04em;
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.gallery a:hover img { transform: scale(1.045); }
.gallery a:hover::after { opacity: 1; }
.gallery a:hover span { transform: none; opacity: 1; }
.gallery a.is-hidden { display: none; }
.gallery-more { text-align: center; margin-top: 50px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 9, 8, .96);
  display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: grid; place-items: center; padding: 70px 90px 10px; min-height: 0; }
.lightbox__stage img { max-height: calc(100vh - 160px); max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.75); padding: 18px 30px 26px; font-size: 13px; letter-spacing: .06em; gap: 20px; }
.lightbox__count { font-family: var(--serif); font-size: 20px; font-style: italic; white-space: nowrap; }
.lightbox button { position: absolute; color: #fff; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: background .3s, border-color .3s; }
.lightbox button:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lightbox .lb-close { top: 18px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.2; }

/* ---------- Photo strip / mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 80px; gap: 16px; }
.mosaic figure { margin: 0; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic .m1 { grid-column: 1 / 6; grid-row: span 6; }
.mosaic .m2 { grid-column: 6 / 13; grid-row: span 4; }
.mosaic .m3 { grid-column: 6 / 9; grid-row: span 3; }
.mosaic .m4 { grid-column: 9 / 13; grid-row: span 3; }
.mosaic .m5 { grid-column: 1 / 6; grid-row: span 1; display: none; }

/* ---------- Edition nav ---------- */
.edition-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.edition-nav a {
  position: relative; padding: clamp(50px, 7vw, 100px) var(--gutter); overflow: hidden; display: block; isolation: isolate;
}
.edition-nav a + a { border-left: 1px solid var(--line); text-align: right; }
.edition-nav .bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s var(--ease), transform 1.6s var(--ease); transform: scale(1.08); }
.edition-nav .bg img { width: 100%; height: 100%; object-fit: cover; }
.edition-nav .bg::after { content: ""; position: absolute; inset: 0; background: rgba(14, 13, 12, .6); }
.edition-nav a:hover { color: #fff; }
.edition-nav a:hover .bg { opacity: 1; transform: none; }
.edition-nav small { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.edition-nav strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 8vw, 128px); line-height: 1; margin-top: 12px; }
.edition-nav span.sub { font-family: var(--serif); font-style: italic; font-size: 22px; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(243, 238, 231, .7); padding: 90px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 92px; width: auto; filter: invert(1); margin-bottom: 26px; }
.footer-brand p { max-width: 320px; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.4; color: rgba(243,238,231,.85); }
.site-footer h4 { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 22px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; font-size: 13px; letter-spacing: .04em; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.reveal-img.is-visible { clip-path: inset(0 0 0 0); }
/* framed images: clip only the photo so the offset hairline stays visible */
.frame.reveal-img { clip-path: none; }
.frame.reveal-img img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.frame.reveal-img.is-visible img { clip-path: inset(0 0 0 0); }
.frame.reveal-img::before { opacity: 0; transition: opacity 1.2s .5s, inset .8s var(--ease); }
.frame.reveal-img.is-visible::before { opacity: 1; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split-words.is-visible .w > span { transform: none; }

/* ==========================================================================
   2026 — night hero, countdown, curators, award
   ========================================================================== */
.hero-night {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--night); color: #f3eee7; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  padding: 140px var(--gutter) 100px;
}
.hero-night::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; left: -300px; top: -360px;
  background: radial-gradient(circle, rgba(200, 23, 93, .35), transparent 65%); filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-night::after {
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -200px; bottom: -300px;
  background: radial-gradient(circle, rgba(109, 59, 209, .25), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(80px, 60px); } }
.hero-night > * { position: relative; z-index: 1; }
.hero-night__lockup { width: min(360px, 70%); filter: invert(1); margin-bottom: 34px; }
.hero-night .display { font-size: clamp(40px, 5.2vw, 82px); }
.hero-night .display em { color: #ff5c97; }
.hero-night .eyebrow { color: rgba(243,238,231,.65); }
.hero-night .hero__actions { margin-top: 32px; }

.countdown { display: flex; gap: 0; margin-top: 36px; border: 1px solid rgba(255,255,255,.14); width: fit-content; }
.countdown div { padding: 18px 26px; text-align: center; min-width: 98px; }
.countdown div + div { border-left: 1px solid rgba(255,255,255,.14); }
.countdown b { display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: rgba(243,238,231,.55); }

.floating-frames { position: relative; height: min(76vh, 720px); }
.floating-frames figure {
  position: absolute; margin: 0; background: #fff; padding: 10px; box-shadow: 0 40px 80px rgba(0,0,0,.5);
  transition: transform 1s var(--ease);
}
.floating-frames img { width: 100%; height: 100%; object-fit: cover; }
.floating-frames .f1 { width: 62%; height: 54%; right: 0; top: 0; transform: rotate(2deg); }
.floating-frames .f2 { width: 46%; height: 52%; left: 0; top: 30%; transform: rotate(-3deg); z-index: 2; }
.floating-frames .f3 { width: 44%; height: 36%; right: 6%; bottom: 0; transform: rotate(1.5deg); }
.floating-frames figure:hover { transform: rotate(0) scale(1.03); z-index: 3; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.info-grid > div { padding: 46px 40px 50px 0; }
.info-grid > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.info-grid .label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.info-grid .big { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; margin: 16px 0 10px; }
.info-grid p { color: var(--ink-soft); font-size: 16px; }

.curators { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.curator { text-align: left; }
.curator__img { overflow: hidden; aspect-ratio: 353 / 332; background: var(--night-2); position: relative; }
.curator__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease), filter .8s; }
.curator:hover .curator__img img { transform: scale(1.05); filter: grayscale(0); }
.curator h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 22px; line-height: 1.15; }
.curator p { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,238,231,.55); margin-top: 6px; }

.advisor { display: grid; grid-template-columns: 360px 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.advisor .frame img { aspect-ratio: 196 / 276; filter: grayscale(1); }

.award {
  display: grid; grid-template-columns: auto 1fr auto; gap: 50px; align-items: center;
  padding: 56px 60px; border: 1px solid var(--gold); position: relative; background: linear-gradient(120deg, #141210, #24201c);
  color: #f3eee7; overflow: hidden;
}
.award::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent); transform: skewX(-20deg);
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.award__laurel { width: 120px; height: 120px; color: var(--gold); }
.award__title { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.award__title em { color: var(--gold); }
.award p { color: rgba(243,238,231,.7); margin-top: 10px; }
.award__tag { max-width: 300px; text-align: right; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); line-height: 2; }
.award__tag b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 6px 0; letter-spacing: .04em; color: #fff; font-weight: 500; }

/* ==========================================================================
   Landing (editions hub)
   ========================================================================== */
.hub { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; background: var(--night); color: #f3eee7; }
.hub__top { padding: 130px var(--gutter) 50px; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.hub__top .display { font-size: clamp(42px, 6vw, 96px); }
.hub__top .display em { color: #ff5c97; }
.hub__top p { max-width: 420px; color: rgba(243,238,231,.7); }
.hub__panels { display: flex; min-height: 62vh; border-top: 1px solid rgba(255,255,255,.1); }
.panel {
  position: relative; flex: 1; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px clamp(24px, 3vw, 48px); transition: flex 1s var(--ease); color: #fff;
}
.panel + .panel { border-left: 1px solid rgba(255,255,255,.1); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.6s var(--ease), filter 1s; filter: grayscale(.6) brightness(.7); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,9,8,.92) 0%, rgba(10,9,8,.2) 60%, rgba(10,9,8,.35) 100%); }
.panel:hover { flex: 1.7; }
.panel:hover img { transform: scale(1); filter: grayscale(0) brightness(.85); }
.panel__year { font-family: var(--serif); font-size: clamp(64px, 8vw, 140px); line-height: .9; font-weight: 400; }
.panel__tag { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .75; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.panel__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #fff); }
.panel__desc { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 12px; opacity: .9; max-width: 380px; min-height: 2.9em; }
.panel .link-line { margin-top: 26px; width: fit-content; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav .nav-link { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(3n + 2) { margin-top: 0; }
  .cards:not(.cards--2) .card:nth-child(even) { margin-top: 60px; }
  .curators { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .award { grid-template-columns: auto 1fr; }
  .award__tag { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--night); color: #fff; flex-direction: column; justify-content: center;
    gap: 26px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; z-index: -1;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open .site-header .brand img { filter: invert(1) !important; }
  body.menu-open { overflow: hidden; }
  .nav .nav-link { display: block; font-family: var(--serif); font-size: 34px; letter-spacing: 0; text-transform: none; font-weight: 400; }
  .brand .brand-year { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero__text { padding-top: 130px; padding-bottom: 60px; order: 2; }
  .hero__media { height: 62vh; order: 1; }
  .hero__badge { top: auto; bottom: -40px; right: 24px; width: 110px; height: 110px; }
  .hero__badge b { font-size: 38px; }
  .scroll-cue { display: none; }

  .hero-night { grid-template-columns: 1fr; padding-top: 120px; }
  .floating-frames { height: 520px; }

  .section-head, .split, .split--rev, .advisor { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stats { --cols: 2; }
  .stats .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats .stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid > div, .info-grid > div + div { padding: 34px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .schedule__row { grid-template-columns: 1fr; gap: 4px; }
  .mosaic { grid-auto-rows: 60px; gap: 10px; }
  .edition-nav { grid-template-columns: 1fr; }
  .edition-nav a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .hub__panels { flex-direction: column; }
  .panel { min-height: 46vh; }
  .panel + .panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .lightbox__stage { padding: 70px 14px 10px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
  .lightbox .lb-prev { left: auto; right: 76px; }
  .lightbox .lb-next { right: 18px; }
  .lightbox__bar { padding-right: 140px; }
}

@media (max-width: 600px) {
  .edition-switch a { padding: 5px 9px; font-size: 11px; }
  .brand img { height: 38px; }
  .cards, .cards--2, .curators { grid-template-columns: 1fr; }
  .cards .card:nth-child(n) { margin-top: 0; }
  .stats { --cols: 1; }
  .stats .stat:nth-child(n) { padding-left: 0; border-left: 0; }
  .countdown div { min-width: 0; flex: 1; padding: 14px 10px; }
  .countdown { width: 100%; }
  .countdown b { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; padding: 40px 28px; gap: 26px; }
  .venue-card { padding: 34px 26px; }
  .mosaic .m1, .mosaic .m2, .mosaic .m3, .mosaic .m4 { grid-column: 1 / -1; grid-row: span 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-img, .split-words .w > span { opacity: 1; transform: none; clip-path: none; }
  html { scroll-behavior: auto; }
}
