/* DRS Arts Grant: shared styles
   Brand palette (Brand Colour Guidelines, 30 Oct 2026):
   Brick Red #BB3324 primary · Royal Blue #234F85 secondary · Antique Gold #C49A46 sparing highlights
   Warm Ivory #F5F2EA light ground · Soft Charcoal #202020 text and dark ground
   Typeface: Anek Gujarati */

:root {
  --red: #bb3324;
  --red-deep: #9c2a1d;
  --blue: #234f85;
  --gold: #c49a46;
  --ivory: #f5f2ea;
  --charcoal: #202020;
  --paper: #fbf9f4;
  --sand: #ebe4d5;

  --font: "Anek Gujarati", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Colour themes: every section picks one, and components read these variables */
.theme-ivory, :root {
  --bg: var(--ivory); --fg: var(--charcoal); --muted: #5d5850; --line: rgba(32, 32, 32, .14);
  --accent: var(--red); --statement: var(--red); --surface: var(--paper); --surface-fg: var(--charcoal);
}
.theme-sand { --bg: var(--sand); --fg: var(--charcoal); --muted: #57524a; --line: rgba(32, 32, 32, .16); --accent: var(--red); --statement: var(--charcoal); --surface: var(--paper); --surface-fg: var(--charcoal); }
.theme-charcoal { --bg: var(--charcoal); --fg: var(--ivory); --muted: rgba(245, 242, 234, .7); --line: rgba(245, 242, 234, .16); --accent: var(--gold); --statement: var(--ivory); --surface: #2b2a28; --surface-fg: var(--ivory); }
.theme-red { --bg: var(--red); --fg: var(--ivory); --muted: rgba(245, 242, 234, .82); --line: rgba(245, 242, 234, .24); --accent: var(--ivory); --statement: var(--ivory); --surface: var(--ivory); --surface-fg: var(--charcoal); }
.theme-blue { --bg: var(--blue); --fg: var(--ivory); --muted: rgba(245, 242, 234, .78); --line: rgba(245, 242, 234, .2); --accent: var(--gold); --statement: var(--ivory); --surface: var(--ivory); --surface-fg: var(--charcoal); }
[class*="theme-"] { background-color: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; font-family: var(--font); font-size: 19px; line-height: 1.55;
  background: var(--ivory); color: var(--charcoal);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-stretch: 88%; letter-spacing: -0.01em; line-height: 1.02; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent, var(--red)); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--ivory); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

.display { font-size: clamp(54px, 9.5vw, 148px); line-height: .9; letter-spacing: -0.02em; font-stretch: 82%; font-weight: 650; }
.h1 { font-size: clamp(46px, 7vw, 104px); line-height: .94; font-stretch: 84%; letter-spacing: -0.015em; }
.h2 { font-size: clamp(36px, 5vw, 72px); line-height: .98; font-stretch: 86%; }
.h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; }
.h4 { font-size: 22px; line-height: 1.2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.lead { font-size: clamp(21px, 2vw, 27px); line-height: 1.38; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.statement { font-size: clamp(38px, 5.6vw, 84px); line-height: 1; font-weight: 600; font-stretch: 84%; text-align: center; max-width: 17ch; margin-inline: auto; color: var(--statement); }
.statement--wide { max-width: 22ch; }
.rupee { font-feature-settings: "tnum"; }
.gold { color: var(--gold); }

/* Word-by-word reveal for statements */
.split-words .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .split-words .w { opacity: .12; transform: translateY(.18em); transition: opacity .6s var(--ease), transform .8s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
  .js .split-words.is-in .w { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 12px; border-radius: 999px;
  font: 600 17px/1 var(--font); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill--solid:hover { background: var(--red); border-color: var(--red); color: var(--ivory); }
.pill--red { background: var(--red); color: var(--ivory); border-color: var(--red); }
.pill--red:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.theme-red .pill--solid:hover, .theme-red .pill--red { background: var(--ivory); color: var(--red); border-color: var(--ivory); }
.theme-red .pill--red:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.pill--sm { padding: 11px 18px 9px; font-size: 16px; }
.pill.is-disabled { opacity: .8; cursor: default; }
.pill.is-disabled:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pill:hover .icon-arrow, .link-arrow:hover .icon-arrow, a:hover > .link-arrow .icon-arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--charcoal);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease), box-shadow .4s var(--ease);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.hero-ivory .site-header, .site-header.is-scrolled { background: rgba(245, 242, 234, .94); backdrop-filter: blur(12px); color: var(--charcoal); box-shadow: 0 1px 0 rgba(32, 32, 32, .1); }
.hero-ivory main { padding-top: var(--header-h); }
.hero-media .site-header:not(.is-scrolled) { color: var(--ivory); }
.hero-media .site-header:not(.is-scrolled)::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(20, 20, 20, .55), transparent); pointer-events: none; z-index: -1; }
body.menu-open .site-header { background: var(--charcoal); color: var(--ivory); box-shadow: none; }
/* Stays pinned while scrolling; tightens up once you leave the top of the page */
.site-header__bar { transition: height .4s var(--ease); }
.site-header.is-scrolled .site-header__bar { height: 68px; }

.brand { display: inline-flex; margin-right: auto; position: relative; }
.brand__logo { height: 58px; width: auto; transition: opacity .3s var(--ease), height .4s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 48px; }
.brand__logo--ivory { position: absolute; inset: 0; opacity: 0; }
.hero-media .site-header:not(.is-scrolled) .brand__logo--colour, body.menu-open .brand__logo--colour { opacity: 0; }
.hero-media .site-header:not(.is-scrolled) .brand__logo--ivory, body.menu-open .brand__logo--ivory { opacity: 1; }

.nav__list { list-style: none; display: flex; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 11px 13px 9px; border-radius: 999px; text-decoration: none; font-size: 17px; font-weight: 500; }
.nav__link:hover, .nav__item:focus-within > .nav__link { background: rgba(127, 127, 127, .16); }
.nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.hero-media .site-header:not(.is-scrolled) .nav__link[aria-current="page"] { text-decoration-color: var(--gold); }
.icon-chevron { width: 11px; height: 11px; opacity: .7; }
.nav__sub {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: var(--paper); color: var(--charcoal); border-radius: var(--radius-sm); padding: 8px;
  box-shadow: 0 22px 44px -14px rgba(32, 32, 32, .3), 0 0 0 1px rgba(32, 32, 32, .08);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 11px 12px 9px; border-radius: 8px; text-decoration: none; font-size: 16.5px; line-height: 1.25; }
.nav__sub a:hover { background: var(--sand); color: var(--red); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.apply-cta { background: var(--red); color: var(--ivory); border-color: var(--red); }
.apply-cta:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; position: relative; }
.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after { position: absolute; left: 50%; width: 18px; height: 1.8px; background: currentColor; border-radius: 2px; transform: translateX(-50%); transition: transform .3s var(--ease), background-color .2s; }
.menu-toggle__lines { top: 50%; margin-top: -1px; }
.menu-toggle__lines::before { content: ""; top: -6px; }
.menu-toggle__lines::after { content: ""; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 49; overflow-y: auto; background: var(--charcoal); color: var(--ivory); padding-block: calc(var(--header-h) + 28px) 48px; }
.menu[hidden] { display: none; }
.menu__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; }
.menu__title { display: block; font-size: 32px; font-weight: 600; font-stretch: 88%; text-decoration: none; margin-bottom: 8px; }
.menu__group ul { list-style: none; }
.menu__group li a { display: block; padding: 5px 0; text-decoration: none; color: rgba(245, 242, 234, .72); font-size: 18px; }
.menu__group li a:hover, .menu__title:hover { color: var(--gold); }
.menu__foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(245, 242, 234, .16); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.menu__foot .pill--solid { background: var(--red); color: var(--ivory); border-color: var(--red); }
.menu__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; }
.menu__links a { color: rgba(245, 242, 234, .72); text-decoration: none; }
.menu__links a:hover { color: var(--ivory); }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) .menu__group { animation: menu-in .5s var(--ease-out) both; }
  .menu:not([hidden]) .menu__group:nth-child(2) { animation-delay: .04s; }
  .menu:not([hidden]) .menu__group:nth-child(3) { animation-delay: .08s; }
  .menu:not([hidden]) .menu__group:nth-child(4) { animation-delay: .12s; }
  .menu:not([hidden]) .menu__group:nth-child(5) { animation-delay: .16s; }
  .menu:not([hidden]) .menu__group:nth-child(6) { animation-delay: .2s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .apply-cta { display: none; }
  .brand__logo { height: 46px; }
  .site-header.is-scrolled .site-header__bar { height: 60px; }
  .site-header.is-scrolled .brand__logo { height: 40px; }
}

/* ---------- Back to top (bottom left), ring shows how far down the page you are ---------- */

.to-top {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 45;
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--charcoal); color: var(--ivory); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), background-color .3s, visibility 0s linear .35s;
}
.to-top.is-visible { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 100%; height: 100%; }
.to-top__track { fill: none; stroke: rgba(245, 242, 234, .18); stroke-width: 2; }
.to-top__progress { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--scroll, 0)); transform: rotate(-90deg); transform-origin: center; }
.to-top:hover .to-top__progress { stroke: var(--ivory); }
.to-top path { transition: transform .3s var(--ease); }
.to-top:hover path { transform: translateY(-2px); }
body.menu-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- Cookie choice (bottom right, clear of the back-to-top button) ---------- */
.consent {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: min(400px, calc(100vw - 32px)); padding: 22px 22px 20px; border-radius: 18px;
  --bg: var(--charcoal); --fg: var(--ivory);
  background: var(--charcoal); color: var(--ivory); box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .5);
  border-top: 3px solid var(--gold);
  opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.consent.is-visible { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.consent__text { margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(245, 242, 234, .8); }
.consent__text a { color: var(--ivory); }
.consent__text a:hover { color: var(--gold); }
.consent__actions { display: flex; gap: 10px; margin-top: 16px; }
.consent__actions .pill { flex: 1; justify-content: center; }
.consent .pill--red:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
@media (max-width: 560px) { body.consent-open .to-top { opacity: 0; pointer-events: none; } }
.link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.site-footer__links .link-btn:hover { color: var(--gold); }

/* ---------- Page-to-page transitions (browsers that support cross-document view transitions) ---------- */

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .35s ease both; }
  ::view-transition-new(root) { animation: vt-in .45s ease both; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Media ---------- */

.media { position: relative; overflow: hidden; border-radius: var(--radius); background: #2a2a2a; isolation: isolate; }
.media__el { width: 100%; height: 100%; object-fit: cover; }
.media--parallax .media__el { height: 118%; margin-top: -9%; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.media__caption { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 2; font-size: 14px; line-height: 1.3; color: var(--ivory); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.media__caption::before { content: "— "; color: var(--gold); }

/* YouTube film: the official still with a quiet play button; the player replaces it on click */
.film { max-width: 1060px; margin: 0 auto; }
.film__frame, .film__player { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.film__frame { color: var(--ivory); isolation: isolate; }
.film__still { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s var(--ease); }
.film__frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .28)); pointer-events: none; }
.film__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center;
  width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  background: rgba(20, 20, 20, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px rgba(245, 242, 234, .7);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), scale .45s var(--ease-out);
}
.film__play svg { width: 38%; margin-left: 6%; }
.film__frame:hover .film__still, .film__frame:focus-visible .film__still { transform: scale(1.025); filter: brightness(.92); }
.film__frame:hover .film__play, .film__frame:focus-visible .film__play { background: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); scale: 1.06; }
.film__frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.film__caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.film__meta { color: var(--muted); }

/* Artwork credits. Over cropped photos and films: a small frosted label, bottom right.
   Under uncropped artworks: a gallery-style label, right-aligned. */
.credit { font-size: 12.5px; line-height: 1.35; letter-spacing: .01em; font-weight: 400; }
.credit i { font-style: italic; }
.media > .credit {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 20px); text-align: right;
  padding: 5px 9px 3px; border-radius: 6px; color: rgba(245, 242, 234, .94);
  background: rgba(20, 20, 20, .34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: .82; transition: opacity .3s var(--ease);
}
.media:hover > .credit, a:hover .media > .credit { opacity: 1; }
.media__caption { right: auto; max-width: 55%; }

.art { margin: 0; }
.art .media--art { background: transparent; border-radius: 3px; overflow: visible; box-shadow: 0 26px 48px -30px rgba(0, 0, 0, .55); }
.media.media--art { aspect-ratio: auto !important; }
.media--art .media__el { height: auto; display: block; object-fit: contain; border-radius: 3px; }
.art > .credit { margin-top: 12px; text-align: right; color: var(--muted); font-size: 13.5px; }
.art > .credit::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 9px 0 0; vertical-align: .3em; background: var(--gold); }
/* Keep tall works from towering over the text beside them */
.art--contain .media__el { max-height: min(78vh, 760px); width: auto; max-width: 100%; margin-inline: auto; }
.art--contain > .credit { text-align: center; }

/* A heading or intro beside a single artwork */
.with-art { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.with-art--wide { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.with-art > .art { justify-self: end; width: 100%; max-width: 360px; }
.with-art--wide > .art { max-width: 560px; }
@media (max-width: 880px) { .with-art, .with-art--wide { grid-template-columns: 1fr; } .with-art > .art { justify-self: center; max-width: 440px; } }

.with-art--top { align-items: start; }
.art-stack { display: grid; gap: clamp(28px, 4vw, 48px); justify-self: end; width: 100%; max-width: 360px; }
.art-stack > .art:nth-child(2) { width: 82%; justify-self: end; }
@media (max-width: 880px) { .art-stack { grid-template-columns: 1fr 1fr; max-width: none; align-items: start; } .art-stack > .art:nth-child(2) { width: 100%; } }

/* A hang of works: every piece at the same height, its own width, label underneath */
.carousel--hang .carousel__track { gap: clamp(36px, 4.5vw, 72px); padding-bottom: 8px; }
.carousel--hang .carousel__slide { flex: 0 0 auto; }
.carousel--hang .media--art .media__el { height: clamp(250px, 32vw, 430px); width: auto; max-width: none; }
.carousel--hang .art > .credit { text-align: left; }

/* An object photographed on white: let the page colour replace the white, with no frame or shadow */
.art--blend .media--art { background: var(--bg); box-shadow: none; border-radius: 0; transition: background-color .9s var(--ease); }
.art--blend .media__el { mix-blend-mode: multiply; border-radius: 0; }

.carousel--photos .carousel__slide { flex-basis: clamp(260px, 30vw, 420px); }
.carousel--photos .carousel__slide .media { aspect-ratio: 4 / 3; }
.carousel--photos .carousel__slide p { margin-top: 12px; font-size: 17px; font-weight: 600; color: inherit; }
.faq-art { margin-block: clamp(48px, 7vw, 96px); }
.art-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); align-items: end; }

/* A row of artworks hung at different heights */
.art-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); align-items: start; }
.art-row > .art:nth-child(2) { margin-top: clamp(30px, 6vw, 90px); }
.art-row > .art:nth-child(3) { margin-top: clamp(10px, 2vw, 30px); }
@media (max-width: 700px) { .art-row { grid-template-columns: 1fr 1fr; } .art-row > .art:nth-child(3) { grid-column: 1 / -1; width: 70%; justify-self: center; } }

/* Centred feature artwork, e.g. under a call to action */
.art-center { max-width: 960px; margin-inline: auto; }
.ph-flag {
  position: absolute; top: 12px; left: 12px; z-index: 3; max-width: calc(100% - 24px);
  background: var(--gold); color: var(--charcoal); font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1.25;
  padding: 6px 10px 4px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-wide { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .ratio-wide { aspect-ratio: 4 / 3; } }

/* ---------- Home hero: fixed film, content slides over it ---------- */

.hero { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 0; color: var(--ivory); overflow: hidden; background: var(--charcoal); }
.hero .media { position: absolute; inset: 0; border-radius: 0; transform: scale(var(--hero-scale, 1)); will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 20, .35) 0%, rgba(20, 20, 20, .15) 40%, rgba(20, 20, 20, .7) 100%); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(36px, 7vh, 80px); opacity: var(--hero-fade, 1); transform: translateY(var(--hero-shift, 0px)); }
.hero .display { max-width: 11ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(22px, 3vw, 40px); }
.hero__begins { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; font-weight: 500; }
.hero__total { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 8px; color: rgba(245, 242, 234, .85); }
.hero__total strong { color: var(--gold); font-size: 18px; letter-spacing: .04em; }
.video-toggle {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 16px); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(245, 242, 234, .7); background: rgba(20, 20, 20, .25); color: var(--ivory); cursor: pointer; display: grid; place-items: center;
}
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(245, 242, 234, .6); border-radius: 20px; opacity: var(--hero-fade, 1); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ivory); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue::after { animation: cue 1.8s var(--ease) infinite; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* Rotating word */
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--gold); }
.rotator > span { grid-area: 1 / 1; transform: translateY(105%); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s var(--ease); white-space: nowrap; }
.rotator > span.is-active { transform: none; opacity: 1; }
.rotator > span.is-leaving { transform: translateY(-105%); opacity: 0; }
.no-js .rotator > span:first-child { transform: none; opacity: 1; }

.over { position: relative; z-index: 1; }

/* Content panel whose colour follows the section in view */
.chameleon { transition: background-color .9s var(--ease), color .9s var(--ease); }
.chameleon > section { background: transparent; }
.chameleon .chameleon__card { transition: background-color .9s var(--ease), color .9s var(--ease); }

/* ---------- Inner page hero (full-bleed media) ---------- */

.page-hero { position: relative; min-height: 82vh; min-height: 82svh; display: flex; align-items: flex-end; color: var(--ivory); background: var(--charcoal); overflow: hidden; }
.page-hero > .media { position: absolute; inset: 0; border-radius: 0; }
.page-hero > .media .media__el { transform: scale(var(--ph-scale, 1.08)) translateY(var(--ph-shift, 0px)); transition: transform .1s linear; }
.page-hero > .media .ph-flag { top: calc(var(--header-h) + 14px); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 20, 20, .5) 0%, rgba(20, 20, 20, .12) 38%, rgba(20, 20, 20, .78) 100%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 2; width: 100%; padding-block: calc(var(--header-h) + 40px) clamp(40px, 6vw, 80px); }
.page-hero .h1 { max-width: 16ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.page-hero .lead { margin-top: 24px; max-width: 42ch; color: rgba(245, 242, 234, .92); }
.page-hero__meta { margin-top: 22px; font-size: 16px; color: rgba(245, 242, 234, .8); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero--short { min-height: 64vh; min-height: 64svh; }
.plain-hero { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 70px); }
.plain-hero .h1 { max-width: 16ch; }
.breadcrumb { font-size: 15px; margin-bottom: 22px; opacity: .85; }
.breadcrumb a { text-decoration: none; border-bottom: 1px solid currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero__inner > * { animation: rise .9s var(--ease-out) both; }
  .page-hero__inner > *:nth-child(2) { animation-delay: .08s; }
  .page-hero__inner > *:nth-child(3) { animation-delay: .16s; }
  .page-hero__inner > *:nth-child(4) { animation-delay: .24s; }
  .hero__inner > * { animation: rise 1.1s var(--ease-out) both; animation-delay: .2s; }
  .hero__inner > *:nth-child(2) { animation-delay: .32s; }
  .hero__inner > *:nth-child(3) { animation-delay: .44s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Sections ---------- */

.band { padding-block: clamp(80px, 11vw, 160px); }
.band--tight { padding-block: clamp(56px, 7vw, 100px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { max-width: 15ch; }
.section-head p { max-width: 46ch; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--center { align-items: center; }
@media (max-width: 880px) { .split, .split--even { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.feature--flip > .media { order: 2; }
.feature > .media { aspect-ratio: 4 / 5; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature--flip > .media { order: 0; } .feature > .media { aspect-ratio: 4 / 3; } }

.full-bleed { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
.wide-media { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .wide-media { aspect-ratio: 4 / 3; } }

.stack > * + * { margin-top: 1em; }
.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 4vw, 60px); }
.mt-m { margin-top: 24px; }
.mt-xl { margin-top: clamp(48px, 7vw, 110px); }
.mb-l { margin-bottom: clamp(32px, 4vw, 60px); }

/* Grant cards */
.grant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grant-grid { grid-template-columns: 1fr; } }
.grant-card { display: flex; flex-direction: column; background: var(--surface); color: var(--surface-fg); border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease); }
.grant-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(0, 0, 0, .55); }
.grant-card .media { aspect-ratio: 4 / 3; border-radius: 0; }
.grant-card .media__el { transition: transform 1.2s var(--ease-out); }
.grant-card:hover .media__el { transform: scale(1.05); }
.grant-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.grant-card__age { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--sand); padding: 6px 10px 4px; border-radius: 999px; }
.grant-card__amount { font-size: clamp(36px, 3.4vw, 48px); font-weight: 600; font-stretch: 85%; line-height: 1; color: var(--red); }
.grant-card h3 { font-size: 24px; line-height: 1.1; }
.grant-card p { margin: 0; color: #5d5850; font-size: 17px; }
.grant-card .link-arrow { margin-top: auto; padding-top: 8px; align-self: flex-start; font-size: 16px; }
.grant-card--award { background: var(--charcoal); color: var(--ivory); }
.grant-card--award p { color: rgba(245, 242, 234, .72); }
.grant-card--award .grant-card__amount { color: var(--gold); }
.grant-card--award .grant-card__age { background: var(--gold); color: var(--charcoal); }

/* Horizontal carousel */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 24px; scrollbar-width: none; cursor: grab; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__slide { flex: 0 0 clamp(270px, 32vw, 460px); scroll-snap-align: start; }
.carousel__slide .media { aspect-ratio: 4 / 5; }
.carousel__slide h3 { margin-top: 16px; font-size: 24px; }
.carousel__slide p { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.carousel__btn:hover { background: var(--fg); color: var(--bg); }
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel__btn--prev svg { transform: rotate(180deg); }

/* Parallax mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.mosaic__col { display: grid; gap: 18px; will-change: transform; transform: translate3d(0, var(--my, 0px), 0); }
.mosaic__col:nth-child(2) { padding-top: clamp(60px, 10vw, 160px); }
.mosaic__col:nth-child(3) { padding-top: clamp(20px, 4vw, 60px); }
.mosaic .media:nth-child(odd) { aspect-ratio: 3 / 4; }
.mosaic .media:nth-child(even) { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic__col:nth-child(3) { display: none; } }

/* Numbered statements (01–05) */
.numbered { list-style: none; counter-reset: n; display: grid; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); font-size: clamp(21px, 2.1vw, 28px); line-height: 1.32; }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero) "."; font-size: 17px; font-weight: 600; padding-top: 6px; color: var(--accent); }
@media (max-width: 600px) { .numbered li { grid-template-columns: 1fr; gap: 6px; } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); color: var(--surface-fg); border-radius: var(--radius); padding: 26px 24px 28px; min-height: 230px; display: flex; flex-direction: column; transition: transform .45s var(--ease-out); }
.steps li:hover { transform: translateY(-4px); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 16px; font-weight: 600; color: var(--red); margin-bottom: auto; }
.steps h3 { font-size: clamp(30px, 3vw, 42px); margin-top: 40px; }
.steps p { margin: 10px 0 0; font-size: 17px; color: #5d5850; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { min-height: 0; } }

/* Selection stages / history list */
.stages { list-style: none; counter-reset: st; display: grid; }
.stages > li { counter-increment: st; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.stages > li:last-child { border-bottom: 1px solid var(--line); }
.stages > li::before { content: counter(st, decimal-leading-zero); font-size: clamp(48px, 6vw, 84px); font-weight: 600; font-stretch: 80%; line-height: .85; color: var(--red); }
.stages h3 { margin-bottom: 16px; }
.stages p:last-child { margin-bottom: 0; }
.stages .media { margin-top: 24px; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .stages > li { grid-template-columns: 1fr; gap: 10px; } }

.ticks { list-style: none; display: grid; gap: 10px; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px 8px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 17px; background: var(--surface); color: var(--surface-fg); }
.theme-charcoal .chips li, .theme-red .chips li, .theme-blue .chips li { background: transparent; color: inherit; border-color: rgba(245, 242, 234, .35); }

/* Timeline */
.timeline { list-style: none; display: grid; }
.timeline li { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding-block: 20px; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 600; font-feature-settings: "tnum"; color: var(--accent); }
.timeline .is-key { font-size: clamp(22px, 2.1vw, 28px); font-weight: 600; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.quick-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-view div { border-radius: var(--radius); padding: 28px 26px; background: rgba(245, 242, 234, .08); border: 1px solid var(--line); }
.quick-view dt { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 12px; }
.quick-view dd { margin: 0; font-size: clamp(30px, 3vw, 44px); font-weight: 600; font-stretch: 86%; line-height: 1; }
.theme-ivory .quick-view div, .theme-sand .quick-view div { background: var(--paper); }
@media (max-width: 760px) { .quick-view { grid-template-columns: 1fr; } }

.callout { border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); background: var(--sand); color: var(--charcoal); }
.callout--ink { background: var(--charcoal); color: var(--ivory); }
.callout--ink a { color: var(--gold); }
.callout h3 { margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }

/* Letters */
.letter { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.6; }
.letter p { margin-bottom: 1.15em; }
.letter strong { font-weight: 600; }
.pullquote { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; font-weight: 600; font-stretch: 86%; margin: 0; color: var(--statement); }
.pullquote::before { content: "\201C"; display: block; font-size: 1.5em; line-height: .6; color: var(--gold); margin-bottom: 18px; }
/* Letter opening: the writer's portrait sits in the margin beside the text column (which lines up with the
   narrow bands that follow) and stays in view while the first part is read */
.letter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 768px) minmax(0, 1fr); column-gap: 40px; }
.letter-head > .letter { grid-column: 2; }
.letter-head > .portrait { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; width: 200px; position: sticky; top: calc(var(--header-h) + 40px); }
.portrait { margin: 0; }
.portrait .media { aspect-ratio: 4 / 5; border-radius: 6px; }
.portrait__name { margin: 14px 0 0; line-height: 1.3; }
.portrait__name strong { display: block; font-size: 17px; font-weight: 600; }
.portrait__name span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
/* A cut-out on white: let the page colour show through instead of a white box */
.portrait--cutout .media { aspect-ratio: 1; background: var(--bg); border-radius: 0; }
.portrait--cutout .media__el { mix-blend-mode: multiply; object-fit: contain; }
@media (max-width: 1240px) {
  .letter-head { grid-template-columns: minmax(0, 768px); justify-content: center; }
  .letter-head > .letter, .letter-head > .portrait { grid-column: 1; }
  .letter-head > .portrait { grid-row: auto; position: static; justify-self: start; width: auto; display: flex; align-items: end; gap: 20px; margin-bottom: 40px; }
  .letter-head > .portrait .media { width: 150px; flex: none; }
  .portrait__name { margin: 0 0 6px; }
}
.signature { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature strong { display: block; font-size: 26px; font-weight: 600; font-stretch: 90%; }
.signature span { display: block; color: var(--muted); font-size: 17px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats div { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; }
.stats dt { order: 2; font-size: 17px; opacity: .85; margin-top: 8px; }
.stats dd { margin: 0; font-size: clamp(54px, 6.4vw, 96px); font-weight: 600; font-stretch: 80%; line-height: .9; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; } }

/* Grant detail */
.grant-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.grant-detail:first-child { border-top: 0; }
.grant-detail__amount { font-size: clamp(60px, 7.6vw, 116px); font-weight: 600; font-stretch: 80%; line-height: .9; margin-top: 16px; color: var(--red); }
.grant-detail__tag { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--sand); padding: 8px 12px 6px; border-radius: 999px; }
.grant-detail .media { aspect-ratio: 16 / 10; margin-bottom: 28px; }
.grant-detail .art { margin-bottom: 32px; }
.grant-detail .art .media { margin-bottom: 0; }
.grant-detail .art--contain .media__el { max-height: 62vh; margin-inline: 0; }
.grant-detail .art--contain > .credit { text-align: left; }
.facts { display: grid; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.facts dd { margin: 0; }
@media (max-width: 880px) { .grant-detail { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* Patrons */
.patrons { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.patrons li { background: var(--surface); color: var(--surface-fg); border-radius: var(--radius); padding: 30px 26px; font-size: clamp(26px, 2.2vw, 32px); font-weight: 600; font-stretch: 88%; line-height: 1.05; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; border-top: 3px solid var(--gold); }
.patrons li small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5d5850; margin-bottom: 6px; font-stretch: 100%; }

/* Jury placeholder */
.jury-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.jury-slot { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 26px 22px; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; }
.jury-slot__avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--sand); border: 2px solid var(--gold); }
.jury-slot strong { display: block; font-size: 22px; font-weight: 600; }
.jury-slot span { font-size: 16px; color: var(--muted); }
.jury-slot--drs .jury-slot__avatar { background: var(--red); }
@media (max-width: 960px) { .jury-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .jury-grid { grid-template-columns: 1fr; } .jury-slot { min-height: 0; gap: 28px; } }

/* FAQ */
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 64px); }
.faq-nav a { text-decoration: none; }
.faq-group + .faq-group { margin-top: clamp(56px, 7vw, 96px); }
.faq-group > h2 { margin-bottom: 24px; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 32px; gap: 12px; align-items: baseline; padding-block: 22px 18px; font-size: clamp(20px, 1.8vw, 25px); font-weight: 600; line-height: 1.25; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .q-num { font-size: 16px; font-weight: 600; color: var(--red); font-feature-settings: "tnum"; }
.accordion summary::after { content: ""; justify-self: end; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 11px no-repeat; align-self: center; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--red); }
.accordion .answer { padding: 0 44px 26px 64px; max-width: 880px; }
.accordion .answer p:last-child, .accordion .answer ul:last-child { margin-bottom: 0; }
.accordion .answer ul { padding-left: 1.2em; margin-bottom: 1em; }
@media (prefers-reduced-motion: no-preference) { .accordion details[open] .answer { animation: rise .5s var(--ease-out); } }
@media (max-width: 600px) { .accordion summary { grid-template-columns: 36px 1fr 30px; } .accordion .answer { padding: 0 0 22px 48px; } }

.grant-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.grant-table th, .grant-table td { text-align: left; padding: 11px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.grant-table th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.grant-table td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--red); }

/* Application form outline */
.form-section { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 1px solid var(--line); }
.form-section__num { font-size: 48px; font-weight: 600; font-stretch: 80%; line-height: .9; color: var(--red); }
.form-section h3 { margin-bottom: 14px; }
.form-section .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; list-style: none; }
.form-section .meta li { font-size: 15px; padding: 7px 12px 5px; border-radius: 999px; background: var(--sand); }
.form-section .meta li.is-req { background: var(--charcoal); color: var(--ivory); }
.field-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.field-list li { display: flex; justify-content: space-between; gap: 12px; padding-block: 11px 9px; border-bottom: 1px solid var(--line); font-size: 17px; }
.field-list li span { color: var(--muted); font-size: 15px; white-space: nowrap; }
@media (max-width: 700px) { .form-section { grid-template-columns: 1fr; gap: 10px; } .field-list { grid-template-columns: 1fr; } }
.declaration { list-style: none; display: grid; gap: 14px; font-size: 17px; }
.declaration li { position: relative; padding-left: 34px; }
.declaration li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid currentColor; opacity: .55; }

/* Legal */
.legal { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; font-size: 15.5px; padding-right: 8px; }
.legal__toc p { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.legal__toc ol { list-style: none; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 5px 0 4px; text-decoration: none; color: var(--muted); line-height: 1.3; }
.legal__toc a:hover { color: var(--red); }
.prose { max-width: 780px; font-size: 18px; line-height: 1.66; }
.prose h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose .intro { font-size: 20px; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
  .legal__toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: var(--surface); color: var(--surface-fg); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.contact-card .eyebrow { margin-bottom: auto; }
.contact-card .eyebrow::before { background: var(--red); }
.contact-card a.big, .contact-card .big { font-size: clamp(22px, 2vw, 27px); font-weight: 600; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a.big:hover { color: var(--red); }
.contact-card p { margin: 0; font-size: 16.5px; color: #5d5850; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { min-height: 0; } .contact-card .eyebrow { margin-bottom: 16px; } }

.coming { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); }
.coming .eyebrow { color: var(--accent); }

.next-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.next-links a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 170px; padding: 26px; border-radius: var(--radius); background: var(--surface); color: var(--surface-fg); text-decoration: none; overflow: hidden; transition: background-color .35s var(--ease), color .35s var(--ease); }
.next-links a:hover { background: var(--red); color: var(--ivory); }
.next-links small { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.next-links strong { font-size: 28px; font-weight: 600; font-stretch: 88%; line-height: 1.05; display: flex; justify-content: space-between; align-items: end; gap: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: var(--ivory); padding-bottom: 32px; overflow: hidden; }
.marquee { border-bottom: 1px solid rgba(245, 242, 234, .12); padding-block: 22px 14px; overflow: hidden; }
.marquee__track { display: flex; width: max-content; gap: 40px; font-size: clamp(40px, 6vw, 88px); font-weight: 600; font-stretch: 80%; line-height: 1; color: var(--gold); white-space: nowrap; }
.marquee__track span[aria-hidden] { color: var(--red); font-size: .5em; align-self: center; }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: marquee 40s linear infinite; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.site-footer__top { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px 48px; padding-block: clamp(56px, 7vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(245, 242, 234, .14); }
.site-footer__logo { height: 110px; width: auto; }
.site-footer__statement { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.04; font-weight: 600; font-stretch: 88%; max-width: 22ch; margin: 0; }
.site-footer .pill--light { background: var(--red); color: var(--ivory); border-color: var(--red); }
.site-footer .pill--light:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr; align-items: start; } }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 40px; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 18px; }
.site-footer__links a, .site-footer__contact a { text-decoration: none; }
.site-footer__links a:hover, .site-footer__contact a:hover { color: var(--gold); }
.site-footer__contact { font-size: 16.5px; line-height: 1.7; color: rgba(245, 242, 234, .75); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(245, 242, 234, .14); font-size: 15.5px; color: rgba(245, 242, 234, .75); }
.site-footer__base p { margin: 0; }
.site-footer__base strong { color: var(--ivory); font-weight: 600; }
.site-footer__tag { color: var(--gold) !important; font-weight: 600; }

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-media { clip-path: inset(12% 6% 0 6% round var(--radius)); transition: clip-path 1.3s var(--ease-out); }
  .js .reveal-media.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
}
