/* =========================================================================
   Christopher Pluntke — Concert Organist & Music Director
   Monochrome editorial site. No build step, no dependencies.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --black:      #000000;
  --panel:      #0b0b0b;
  --panel-2:    #141414;
  --line:       rgba(255, 255, 255, 0.16);
  --line-soft:  rgba(255, 255, 255, 0.08);

  --white:      #ffffff;
  --white-soft: rgba(255, 255, 255, 0.72);
  --white-dim:  rgba(255, 255, 255, 0.46);
  --white-faint:rgba(255, 255, 255, 0.50);  /* 5.3:1 on black — WCAG AA */

  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;

  --gutter:  clamp(1.25rem, 4.5vw, 4rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --measure: 60ch;
  --shell:   1320px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /*
    Photographs render in full colour against the black interface, as in the
    design mock — warm wood and brass carry the whole palette.
    For a black-and-white treatment instead, use: grayscale(1) contrast(1.04)
  */
  --photo-filter: none;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: clamp(4.5rem, 8vw, 5.5rem); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(0.95rem, 0.92rem + 0.16vw, 1.02rem);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.3em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* The hero video is left visible and simply never started — the poster
     lives on the element, so hiding it blanks the whole first screen.
     initHeroVideo() does the not-starting. */
}

/* ---- Primitives ------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 900px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--panel { background: var(--panel); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--white); color: var(--black);
  padding: 0.75rem 1.25rem;
  font-family: var(--ui);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin: 0 0 1.25rem;
}

.display-lg { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); }
.display-md { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); }
.display-sm { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }

.prose { max-width: var(--measure); color: var(--white-soft); }
.prose strong { color: var(--white); font-weight: 500; }
.prose em { font-style: italic; }
.prose a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { text-decoration-color: var(--white); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.link::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.link:hover { border-color: var(--white); }
.link:hover::after { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.btn:hover { background: transparent; color: var(--white); }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---- Masthead --------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 74px;
}

.wordmark {
  font-family: var(--ui);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem); }

.nav a {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white-dim);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  color: var(--white);
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 22px; height: 1.5px; background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after  { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: rotate(-45deg); }

/* Seven nav items — collapse to the menu button before they crowd. */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { width: 100%; padding-block: 0.95rem; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
  .nav a::after { display: none; }
}

/* ---- Photographs ------------------------------------------------------ */
.figure { margin: 0; }

.figure__frame {
  position: relative;
  overflow: hidden;
  background: var(--panel-2);
}
.figure__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  line-height: 1.6;
}
.figure figcaption span {
  display: block;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white-faint);
  margin-top: 0.3rem;
}

.ratio-portrait  { aspect-ratio: 3 / 4; }
.ratio-landscape { aspect-ratio: 4 / 3; }
.ratio-wide      { aspect-ratio: 16 / 9; }
.ratio-ultra     { aspect-ratio: 21 / 9; }
.ratio-tall      { aspect-ratio: 2 / 3; }
.ratio-square    { aspect-ratio: 1 / 1; }

/*
  Placeholder shown until a photograph is added to assets/images/.
  Stops applying by itself once the file is there.
*/
.figure__frame.is-missing img { display: none; }
.figure__frame.is-missing {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.035) 0 10px, transparent 10px 20px),
    var(--panel-2);
  border: 1px solid var(--line-soft);
}
.figure__frame.is-missing::after {
  content: attr(data-filename);
  font-family: var(--ui);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
  max-width: 92%;
  word-break: break-word;
  line-height: 1.8;
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 72%;
  filter: var(--photo-filter);
}
.hero__media.is-missing img { display: none; }
.hero__media.is-missing {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0 14px, transparent 14px 28px),
    var(--panel-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.05) 25%,
    rgba(0,0,0,0.18) 65%,
    rgba(0,0,0,0.85) 100%);
}

.hero__body {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero__title {
  font-size: clamp(2.3rem, 1.1rem + 5.2vw, 5.4rem);
  line-height: 1.04;
  max-width: 18ch;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* Offered when the hero video did not start by itself. Sits clear of the
   centred scroll arrow. */
/* ---- Voices -----------------------------------------------------------
   Sits between the biography and the diary as a short interlude, so it is
   bounded by hairlines rather than given a panel — two filled bands in a
   row would flatten the page.

   One quote is a centred pull quote. Two or more become a scattered wall:
   varying size, column, and vertical offset, driven entirely by nth-child
   so adding a quote needs no classes and no JavaScript.
   -------------------------------------------------------------------- */
.voices {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.voices .eyebrow { text-align: center; }

.voices__list {
  /* Every quote's type scales off this one number, the decorative mark
     included, so a size change stays proportional. */
  --q: clamp(1.5rem, 3.4vw, 2.4rem);
  list-style: none;
  margin: clamp(2.25rem, 4vw, 3.25rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.voice {
  margin: 0;
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

/* The opening mark is decoration, so the quote text carries none of its
   own — two sets of quote marks read as a typo. */
.voice__quote { margin: 0; }
.voice__quote::before {
  content: "\201C";
  display: block;
  font-family: var(--display);
  font-size: calc(var(--q) * 2.05);
  line-height: 0.72;
  color: var(--white);
  opacity: 0.22;
  margin-bottom: 0.5rem;
}
.voice__quote p {
  margin: 0;
  font-family: var(--display);
  font-size: var(--q);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.voice__gloss {
  margin: 0.85rem 0 0;
  font-family: var(--ui);
  font-style: italic;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.5;
  /* --white-dim would measure 4.58:1 — passing, but with no margin at this
     size. --white-faint is 5.28:1 and still clearly secondary. */
  color: var(--white-faint);
  text-wrap: balance;
}

.voice__by {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ui);
}
/* Short rule above the attribution, so the name does not crowd the quote. */
.voice__by::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--line);
  margin-bottom: clamp(0.9rem, 2vw, 1.25rem);
}
.voice__source {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
/* Press notices link to the review, so a reader can check it. */
.voice__source a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: border-color 0.3s var(--ease);
}
.voice__source a:hover { border-color: var(--white); }
.voice__meta {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--white-faint);
  max-width: 34ch;
  text-wrap: balance;
}

/* ---- Two or more: the scattered wall -----------------------------------
   Browsers without :has() keep the plain auto-fit grid above, which is a
   perfectly good fallback. The pattern repeats every fifth quote, which is
   long enough that the eye reads it as irregular rather than as a grid.
   ---------------------------------------------------------------------- */
@supports selector(:has(*)) {
  .voices__list:has(> li:nth-child(2)) {
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: clamp(2.5rem, 5vw, 4rem);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
  }
  .voices__list:has(> li:nth-child(2)) .voice {
    max-width: none;
    margin-inline: 0;
    text-align: left;
  }
  .voices__list:has(> li:nth-child(2)) .voice__by { align-items: flex-start; }
  .voices__list:has(> li:nth-child(2)) .voice__meta { max-width: 30ch; }
  /* A centred eyebrow floats orphaned above a left-aligned wall. */
  .voices:has(.voices__list > li:nth-child(2)) .eyebrow { text-align: left; }

  .voices__list:has(> li:nth-child(2)) > li:nth-child(5n + 1) {
    grid-column: 1 / span 7;
    --q: clamp(1.6rem, 3.6vw, 2.55rem);
  }
  .voices__list:has(> li:nth-child(2)) > li:nth-child(5n + 2) {
    grid-column: 8 / span 5;
    --q: clamp(1.1rem, 2.1vw, 1.45rem);
    margin-block-start: clamp(2rem, 6vw, 5.5rem);
    rotate: 0.5deg;
  }
  .voices__list:has(> li:nth-child(2)) > li:nth-child(5n + 3) {
    grid-column: 3 / span 6;
    --q: clamp(1.3rem, 2.7vw, 1.9rem);
    margin-block-start: clamp(1rem, 4vw, 3rem);
    rotate: -0.4deg;
  }
  .voices__list:has(> li:nth-child(2)) > li:nth-child(5n + 4) {
    grid-column: 9 / span 4;
    --q: clamp(1.05rem, 1.9vw, 1.3rem);
    margin-block-start: clamp(0.5rem, 2vw, 1.5rem);
  }
  .voices__list:has(> li:nth-child(2)) > li:nth-child(5n + 5) {
    grid-column: 1 / span 6;
    --q: clamp(1.35rem, 2.9vw, 2.05rem);
    margin-block-start: clamp(2rem, 5vw, 4rem);
    rotate: 0.35deg;
  }

  /* Narrow screens have no room to scatter sideways, but a plain stack
     reads as a list. The column zigzags instead: alternate quotes sit
     against the opposite margin, inset, and a size step apart. No tilt —
     rotated text on a 390px column just looks broken. */
  @media (max-width: 760px) {
    .voices__list:has(> li:nth-child(2)) {
      grid-template-columns: 1fr;
      row-gap: clamp(3rem, 10vw, 4rem);
    }
    .voices__list:has(> li:nth-child(2)) > li {
      grid-column: 1 / -1 !important;
      margin-block-start: 0;
      rotate: none;
    }

    .voices__list:has(> li:nth-child(2)) > li:nth-child(odd) .voice {
      text-align: left;
      margin-inline: 0 8%;
    }
    .voices__list:has(> li:nth-child(2)) > li:nth-child(even) .voice {
      text-align: right;
      margin-inline: 8% 0;
    }
    .voices__list:has(> li:nth-child(2)) > li:nth-child(even) .voice__by {
      align-items: flex-end;
    }
    /* The meta is capped at 30ch, so it needs pushing over to stay flush
       with the edge its quote is aligned to. */
    .voices__list:has(> li:nth-child(2)) > li:nth-child(even) .voice__meta {
      margin-left: auto;
    }

    .voices__list:has(> li:nth-child(2)) > li:nth-child(4n + 1) { --q: clamp(1.55rem, 6vw, 2rem); }
    .voices__list:has(> li:nth-child(2)) > li:nth-child(4n + 2) { --q: clamp(1.1rem, 4.2vw, 1.35rem); }
    .voices__list:has(> li:nth-child(2)) > li:nth-child(4n + 3) { --q: clamp(1.35rem, 5.2vw, 1.7rem); }
    .voices__list:has(> li:nth-child(2)) > li:nth-child(4n + 4) { --q: clamp(1.2rem, 4.6vw, 1.5rem); }

    .voices:has(.voices__list > li:nth-child(2)) .eyebrow { text-align: left; }
  }
}

.hero__play {
  position: absolute;
  bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  right: var(--gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hero__play:hover,
.hero__play:focus-visible {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.7);
}
.hero__play[hidden] { display: none; }

.hero__scroll {
  position: absolute;
  bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}

.hero__scroll-arrow {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
  animation: heroBounce 2.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes heroBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow {
    animation: none;
  }
}

@media (max-width: 680px) {
  .hero { min-height: 85svh; }
  .hero__media::after {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.08) 20%,
      rgba(0,0,0,0.25) 65%,
      rgba(0,0,0,0.90) 100%);
  }
  .hero__title {
    font-size: clamp(2rem, 7.6vw, 2.75rem);
    line-height: 1.1;
    max-width: 14ch;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.95), 0 1px 6px rgba(0, 0, 0, 1);
  }
  .hero__body {
    padding-bottom: 2.5rem;
  }
}

/* ---- Split ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--center { align-items: center; }
.split--reverse > :first-child { order: 2; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---- Mosaic (instrument feature) -------------------------------------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.mosaic .figure:first-child { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .mosaic { grid-template-columns: 1fr; }
}

/* ---- Concert listing & Diary ------------------------------------------- */
.upcoming-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 3.5rem;
}
.upcoming-card__action { flex-shrink: 0; }

.diary-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.diary-filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white-soft);
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.diary-filter-btn:hover {
  color: var(--white);
  border-color: var(--white-soft);
}
.diary-filter-btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 600;
}
.diary-filter-btn .count {
  font-size: 0.8em;
  opacity: 0.75;
  margin-left: 0.25rem;
}

.year-group {
  margin-bottom: 4rem;
}
.year-divider {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  font-weight: 400;
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.year-divider span {
  font-family: var(--ui);
  font-size: 0.72rem;
  color: var(--white-faint);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Accordion toggle button for seasons */
.year-divider--toggle {
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--white);
  text-align: left;
  transition: border-color 0.25s var(--ease);
}
.year-divider--toggle:hover {
  border-bottom-color: var(--white-dim);
}
.year-divider--toggle .year-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-weight: 400;
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
}
.year-divider--toggle .year-count {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  text-transform: none;
  background: var(--panel-2);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.year-divider--toggle .year-action {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s var(--ease);
}
.year-divider--toggle:hover .year-action {
  color: var(--white);
}
.year-divider--toggle .chevron {
  transition: transform 0.3s var(--ease);
}
.year-divider--toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.mobile-more-wrap {
  display: none;
  margin-top: 1.25rem;
  text-align: center;
}
@media (max-width: 760px) {
  .entry.is-mobile-collapsed {
    display: none !important;
  }
  .mobile-more-wrap {
    display: block;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--white-soft);
  margin-bottom: 0.4rem;
}
.badge--organ {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}
.badge--choir {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white-soft);
}

.listing { border-top: 1px solid var(--line); }
/* An empty diary should not draw a stray rule. */
.listing:empty { display: none; }

.entry {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 15rem);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: opacity 0.2s var(--ease);
}
.entry[hidden] { display: none; }

.entry[hidden] { display: none; }

.entry__date {
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.7;
  margin: 0;
}
.entry__date b { display: block; font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
.entry__date span { color: var(--white-faint); font-weight: 400; }

.entry__title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.45rem;
}
.entry__meta { margin: 0; font-size: 0.88rem; color: var(--white-dim); line-height: 1.7; }

/* Venue or event page: the title becomes a link when one is given. */
.entry__title a {
  text-decoration: none;
  background-image: linear-gradient(var(--line), var(--line));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-image 0.25s var(--ease);
}
.entry__title a:hover {
  background-image: linear-gradient(var(--white), var(--white));
}

/* Ticket link, sitting under the programme. */
.entry__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  transition: border-color 0.25s var(--ease);
}
.entry__link::after { content: "\2197"; }
.entry__link:hover { border-color: var(--white); }

/* Year marker, inserted by site.js from each entry's data-date. */
.entry-year {
  margin: 0;
  padding-block: 1.75rem 0.6rem;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white-dim);
  font-variant-numeric: tabular-nums;
}
.listing > .entry-year:first-child { padding-top: 1rem; }

/* Rows past the cap, until "show all" is pressed. */
.is-collapsed { display: none !important; }

.listing__more {
  margin-top: 1.75rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.listing__more:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* Small label saying what the player was doing: recital, continuo, soloist. */
.entry__role {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--line);
  padding: 0.22rem 0.6rem;
  margin-right: 0.7rem;
  white-space: nowrap;
  vertical-align: 0.12em;
}
.entry__meta strong { color: var(--white-soft); font-weight: 500; }

.entry__prog {
  margin: 0;
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.75;
}
.entry__prog em { font-style: italic; color: var(--white-soft); }

.entry__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.entry__title a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.entry__link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.entry__btn {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}
.entry__btn:hover {
  opacity: 0.9;
}
.entry__btn--ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
}
.entry__btn--ghost:hover {
  border-color: var(--white);
}

.entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-top: 0.65rem;
}
.entry__actions .entry__btn {
  margin-top: 0;
}
.entry__actions .entry__link {
  margin-top: 0;
}

@media (max-width: 820px) {
  .entry { grid-template-columns: 1fr; gap: 0.85rem; }
}

/* ---- Facts list -------------------------------------------------------- */
.facts { border-top: 1px solid var(--line); margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.5rem clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  line-height: 2;
}
.facts dd { margin: 0; color: var(--white-soft); }
.facts dd a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--line); }
.facts dd a:hover { text-decoration-color: var(--white); }

@media (max-width: 640px) {
  .facts > div { grid-template-columns: 1fr; }
  .facts dt { line-height: 1.6; }
}

/* ---- Mission / value columns ------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.pillars > div { position: relative; padding-top: 2.5rem; }
.pillars .num {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--white-faint);
  line-height: 1;
}
.pillars h3 {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.pillars p { color: var(--white-dim); font-size: 0.92rem; }

/* ---- Stoplist ---------------------------------------------------------- */
.stoplist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.stoplist h3 {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.stoplist ul { list-style: none; margin: 0; padding: 0; }
.stoplist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--display);
  font-size: 1.08rem;
  padding-block: 0.42rem;
  color: var(--white-soft);
}
.stoplist li span {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white-faint);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* ---- Media player ------------------------------------------------------ */
.player {
  border: 1px solid var(--line);
  background: var(--panel);
}

.player__now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}

.player__art {
  width: clamp(56px, 9vw, 76px);
  aspect-ratio: 1;
  background: var(--panel-2);
  overflow: hidden;
  flex: none;
}
.player__art img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.player__art.is-missing img { display: none; }
.player__art.is-missing {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 16px),
    var(--panel-2);
}

.player__meta { min-width: 0; }
.player__title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem);
  margin: 0 0 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player__composer {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.9rem, 2vw, 1.25rem) clamp(1.1rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}

.player__btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.player__btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.player__btn--play { width: 50px; height: 50px; background: var(--white); color: var(--black); border-color: var(--white); }
.player__btn--play:hover { background: transparent; color: var(--white); border-color: var(--line); }

.player__scrub { flex: 1; display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.player__time {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white-dim);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.player__bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  min-width: 60px;
}
.player__bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--white); }

.tracklist { list-style: none; margin: 0; padding: 0; }
.tracklist li { border-bottom: 1px solid var(--line-soft); }
.tracklist li:last-child { border-bottom: none; }

.tracklist button {
  width: 100%;
  display: grid;
  grid-template-columns: 1.75rem 3.25rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem clamp(1.1rem, 2.5vw, 1.6rem);
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.22s var(--ease);
}
.tracklist button:hover { background: var(--panel-2); }
.tracklist li[aria-current="true"] button { background: var(--panel-2); }

.tracklist .idx {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--white-faint);
  font-variant-numeric: tabular-nums;
}
.tracklist li[aria-current="true"] .idx { color: var(--white); }

/* Per-track artwork */
.tracklist .t-art {
  display: block;
  width: 3.25rem;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--panel-2);
}
.tracklist .t-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
}
.tracklist .t-art.is-missing img { display: none; }
.tracklist .t-art.is-missing {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 6px, transparent 6px 12px),
    var(--panel-2);
}

@media (max-width: 420px) {
  .tracklist button { grid-template-columns: 1.5rem 2.5rem minmax(0, 1fr) auto; gap: 0.7rem; }
  .tracklist .t-art { width: 2.5rem; }
}
.tracklist .t-name { min-width: 0; }
.tracklist .t-name b {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.3;
}
.tracklist .t-name span {
  display: block;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.2rem;
}
.tracklist .t-dur {
  font-family: var(--ui);
  font-size: 0.7rem;
  color: var(--white-faint);
  font-variant-numeric: tabular-nums;
}

.player__empty {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white-dim);
  font-size: 0.9rem;
  text-align: center;
}

/* ---- Featured Video Showcase ------------------------------------------- */
.featured-video {
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: stretch;
}
@media (max-width: 860px) {
  .featured-video {
    grid-template-columns: 1fr;
  }
}
.featured-video__frame {
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  position: relative;
}
.featured-video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.featured-video__body {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.featured-video__title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
  line-height: 1.25;
  margin: 0.5rem 0 0.75rem;
}
.featured-video__meta {
  color: var(--white-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}
.featured-video__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

/* ---- Video grid -------------------------------------------------------- */
.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 760px) {
  .videos {
    grid-template-columns: 1fr;
  }
}
.video-card {
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.video-card .frame {
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  position: relative;
  width: 100%;
}
.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-card .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-faint);
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.035) 0 10px, transparent 10px 20px),
    var(--panel-2);
}
.video-card .body {
  padding: 1.25rem clamp(1.1rem, 2vw, 1.5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.video-card .body .badge {
  align-self: flex-start;
  margin-bottom: 0.5rem;
}
.video-card h3 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.45rem);
  line-height: 1.25;
  margin: 0 0 0.35rem;
}
.video-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.55;
}

/* ---- Repertoire -------------------------------------------------------- */
.rep-layout {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .rep-layout { grid-template-columns: 1fr; } }

.rep-filter { position: sticky; top: 100px; }
@media (max-width: 860px) { .rep-filter { position: static; } }

.rep-filter h2 {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.rep-filter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.rep-filter button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white-dim);
  font-family: var(--display);
  font-size: 1.15rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.rep-filter button:hover { color: var(--white); padding-left: 0.35rem; }
.rep-filter button[aria-pressed="true"] { color: var(--white); }
.rep-filter button[aria-pressed="true"]::before {
  content: "\2014\00a0";
  color: var(--white-faint);
}

.works { border-top: 1px solid var(--line); }
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.work[hidden] { display: none; }
.work h3 { font-size: 1.15rem; font-weight: 400; line-height: 1.35; }
.work h3 em { font-style: italic; }
.work .composer {
  display: block;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.3rem;
}
.work .period {
  font-family: var(--ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-faint);
  border: 1px solid var(--line-soft);
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

/* ---- Gallery strip ----------------------------------------------------- */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(78vw, 30rem), 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.strip--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  overflow-x: visible;
  padding-bottom: 0;
}
@media (max-width: 760px) {
  .strip--three {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(min(80vw, 24rem), 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
  }
}
.strip--four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  overflow-x: visible;
  padding-bottom: 0;
}
@media (max-width: 900px) {
  .strip--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (max-width: 560px) {
  .strip--four {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(min(78vw, 20rem), 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
  }
}
.strip .figure { scroll-snap-align: start; }
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-track { background: var(--line-soft); }
.strip::-webkit-scrollbar-thumb { background: var(--white-faint); }

/* ---- Booking form ------------------------------------------------------ */
.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.7rem 0;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.field select { padding-right: 1rem; }
.field select option { background: var(--panel); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--white-faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--white); }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.7; }

/* ---- Footer ------------------------------------------------------------ */
.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--panel);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: 3rem;
}
@media (max-width: 780px) { .foot__grid { grid-template-columns: 1fr; } }

.foot h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 1rem; }
.foot h3 {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.6rem; }
/* Scoped to the link lists so it never overrides .btn in the footer. */
.foot ul a { color: var(--white-soft); text-decoration: none; font-size: 0.9rem; transition: color 0.25s var(--ease); }
.foot ul a:hover { color: var(--white); }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  text-align: center;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white-faint);
}

/* ---- Reveal ------------------------------------------------------------ */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal, .reveal { opacity: 1; transform: none; } }

/* ---- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.97);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1rem, 4vw, 3rem);
  gap: 1.25rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; filter: var(--photo-filter); }
.lightbox__caption {
  text-align: center;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 46px; height: 46px;
  background: none; border: 1px solid var(--line);
  color: var(--white);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__close:hover { background: var(--white); color: var(--black); }
