/* Building Centre — static site stylesheet v3 (16-section preview build)
   Evolved from v2: same tokens, fonts, header, buttons, cards and motion.
   Brand green #00874a throughout; contrast checked for WCAG 2.2 AA.
   Motion is opt-in: it only runs with JavaScript (html.js) and when the
   visitor has not asked for reduced motion. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
/* Preview 7: Poppins Bold for the S03 rotating headline (Google Fonts latin subset, OFL) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

:root {
  --green: #00874a;        /* brand green: header, bands, buttons. White text 4.6:1 */
  --green-dark: #006b3b;   /* hovers, pressed states, link text. White 6.6:1; on --mist 6.0:1 */
  --green-deep: #00562f;   /* overlay shade for photos */
  --green-light: #6ee7a8;  /* accents on dark ink (11.6:1) */
  --ink: #0f172a;          /* headings, footer */
  --text: #454f5e;         /* body text, 8.3:1 on white, 7.5:1 on --mist */
  --mist: #edf6ee;         /* light section background */
  --white: #ffffff;
  --sand: #fbe3a6;         /* warm metric accent on --green: 3.9:1 (large text only) */
  --keyword: #e8f7ef;      /* keyword text on the deep-green field (>10:1) */
  --forest: #04402b;       /* S05 gradient start */
  --teal-deep: #0a4a4c;    /* S05 gradient end */

  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(2.1rem, 4.8vw, 3.9rem);   /* Preview 9: 40% less (was clamp(3.5rem, 8vw, 6.5rem)) */
  --radius: 14px;
  --header-h: 84px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 40px rgba(15, 23, 42, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 0.8s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.svg-sprite { display: none; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 1.1rem + 4vw, 4.1rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem); line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.3; }
p { margin: 0 0 1.1em; }

a { color: var(--green-dark); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }

/* Two-tone focus ring: dark ink ring with a white halo, so it reaches 3:1
   on white, mist, brand green, photos and the dark footer alike. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: currentColor;
}
.eyebrow-light { color: var(--white); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.button:hover { background: var(--green-dark); color: var(--white); }
.button-light { background: var(--white); color: var(--green-dark); }
.button-light:hover { background: var(--mist); color: var(--green-dark); }
.button-ghost { background: transparent; color: var(--white); }
.button-ghost:hover { background: var(--white); color: var(--green-dark); }
/* Green pill on white or mint backgrounds */
.button-solid { border-color: var(--green); }
.button-solid:hover { border-color: var(--green-dark); }
.button .arrow { transition: transform 0.25s var(--ease-out); }
.button-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 40, 20, 0.25); }
  .button:hover .arrow { transform: translateX(3px); }
}
.button-glyph { flex: none; width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--white);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 40, 20, 0.22); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: block; flex: 0 1 280px; min-width: 0; }
.brand img { width: 100%; max-width: 280px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 0.55rem 0.95rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.nav-list a:hover { background: var(--green-dark); color: var(--white); }
.nav-list a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}
.nav-list .nav-contact {
  margin-left: 0.35rem;
  border: 2px solid var(--white);
  padding: 0.45rem 1.15rem;
}
.nav-list .nav-contact:hover { background: var(--white); color: var(--green-dark); }
.nav-list .nav-contact[aria-current="true"]::after { display: none; }

/* Social icon links (header) */
.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social a:hover { background: var(--green-dark); color: var(--white); }
@media (hover: hover) {
  .social a:hover { transform: translateY(-2px); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--green-dark); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mid-width: tighten the header so links and icons fit on one row */
@media (min-width: 900px) and (max-width: 1099px) {
  .brand { flex-basis: 220px; }
  .nav-list a { padding-inline: 0.7rem; }
  .site-nav { gap: 0.5rem; }
  .social { gap: 0; }
  .social a { width: 40px; height: 40px; }
}

/* Mobile navigation: collapsed only once the script has run (html.js),
   so links stay visible if JavaScript is unavailable. */
@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .brand { flex-basis: 210px; }
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0.5rem; padding-bottom: 1rem; }
  .nav-list { flex-wrap: wrap; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list a { padding: 0.8rem 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0; }
  .js .nav-list a[aria-current="true"]::after { left: 0; right: auto; top: 0.8rem; bottom: 0.8rem; width: 3px; height: auto; }
  .js .nav-list .nav-contact { margin: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); padding: 0.8rem 0.5rem; }
  .js .nav-list .nav-contact:hover { background: var(--green-dark); color: var(--white); }
  .site-nav .social { padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .js .site-nav.is-open { animation: menu-in 0.3s var(--ease-out); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Scroll progress bar under the header (CSS scroll-driven animation,
   only where supported and motion is welcome; purely decorative). */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 3px;
      background: var(--green-light);
      transform-origin: 0 50%;
      transform: scaleX(0);
      animation: scroll-progress linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes scroll-progress { to { transform: scaleX(1); } }

/* Background photos (hero).
   If a photo is missing, the brand-green background still shows: the
   section never depends on the image for contrast or layout. */
.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background-color: var(--green-dark);
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* ------------------------------------------------------------------
   S01 Hero. v3 change: the green protection is concentrated behind the
   text and clears quickly, so the exhibition photographs read on the right.
   ------------------------------------------------------------------ */
.hero::before {
  background-image: url("../img/hero-bg-1-m.jpg");
  background-image: image-set(url("../img/hero-bg-1-m.webp") type("image/webp"), url("../img/hero-bg-1-m.jpg") type("image/jpeg"));
  background-position: center bottom;
}
@media (min-width: 800px) {
  .hero::before {
    background-image: url("../img/hero-bg-1-2560.jpg");
    background-image: image-set(url("../img/hero-bg-1-2560.webp") type("image/webp"), url("../img/hero-bg-1-2560.jpg") type("image/jpeg"));
    background-position: 70% center;
  }
}
/* Desktop overlay: solid brand green under the copy (white text above 6:1),
   a short transition, then a near-clear photograph. */
.hero::after {
  background:
    linear-gradient(90deg,
      rgba(0, 86, 47, 0.95) 0%,
      rgba(0, 86, 47, 0.92) 48%,
      rgba(0, 107, 59, 0.6) 58%,
      rgba(0, 107, 59, 0.12) 70%,
      rgba(0, 107, 59, 0) 100%);
}
@media (min-width: 800px) and (max-width: 1099px) {
  .hero::after {
    background: linear-gradient(90deg, rgba(0, 86, 47, 0.95) 0%, rgba(0, 86, 47, 0.92) 68%, rgba(0, 107, 59, 0.5) 80%, rgba(0, 107, 59, 0.1) 92%, rgba(0, 107, 59, 0) 100%);
  }
}
/* Phones: copy on protected green; the bottom of the band shows the photo clearly. */
@media (max-width: 799px) {
  .hero::after {
    background: linear-gradient(0deg, rgba(0, 86, 47, 0) 0, rgba(0, 86, 47, 0.15) 120px, rgba(0, 86, 47, 0.9) 210px, rgba(0, 86, 47, 0.94) 100%);
  }
}
.hero-inner {
  min-height: clamp(520px, 78vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: clamp(2.4rem, 5.4vw, 3.9rem);   /* Preview 9: 40% less (was clamp(4rem, 9vw, 6.5rem)) */
}
/* Phones: padding-top is 40% less (was 3rem). padding-bottom stays 240px on purpose: it is the
   photo strip below the copy, where the overlay is clear (see .hero::after), so the copy and
   buttons stay on solid green and the bottom-anchored photo stays visible. */
@media (max-width: 799px) {
  .hero-inner { justify-content: flex-start; padding-top: 1.8rem; padding-bottom: 240px; min-height: 0; }
}
.hero h1 { color: var(--white); max-width: 13ch; }
.hero-inner > * { max-width: 36rem; }
.hero-lead { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); }
.hero-inner > .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.6rem 0 0; max-width: 44rem; }
.hero-actions .button { padding-inline: 1.3rem; font-size: 1rem; }
/* Outline buttons keep a little green behind them where the photo starts to show */
.hero-actions .button-ghost { background: rgba(0, 86, 47, 0.55); }
.hero-actions .button-ghost:hover { background: var(--white); }
/* Tablet: keep every line of copy and every button inside the solid zone (68%) */
@media (min-width: 800px) and (max-width: 1099px) {
  .hero-inner > *,
  .hero-inner > .hero-actions { max-width: min(36rem, calc(66vw - var(--gutter))); }
}
.hero h1,
.hero-lead { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
@media (max-width: 479px) {
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.75rem; }
.section-head h2 { margin-bottom: 0; }
.section-head .section-lead { margin: 1rem auto 0; max-width: 40rem; font-size: 1.08rem; }

/* Clip sideways entrance offsets so they never add page scroll */
.visit-plan, .why, .students, .exhibit { overflow-x: clip; }

/* Thin green accent line beside an audience group (S04, S13) */
.accent-group {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--green);
}
.accent-group h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); margin-bottom: 0.5rem; }
.accent-group p:last-child { margin-bottom: 0; }
.accent-action { margin-top: 1.25rem; }

/* ------------------------------------------------------------------
   S02 Visit Us — plan your visit
   ------------------------------------------------------------------ */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .visit-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.visit-facts {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 135, 74, 0.2);
}
@media (min-width: 600px) and (max-width: 959px) {
  .visit-facts { grid-template-columns: 1fr 1fr; }
}
.visit-fact { display: flex; gap: 0.9rem; align-items: flex-start; }
.fact-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--green-dark);
}
.fact-icon svg,
.contact-icon svg,
.map-facade-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fact-title { font-size: 1.05rem; margin: 0.4rem 0 0.35rem; }
.fact-body { margin: 0; color: var(--text); }
.fact-body strong { color: var(--ink); font-weight: 500; }
@media (min-width: 960px) {
  /* The map panel runs from the top of the eyebrow to the baseline of the last
     line ("Closed on public holidays"). The padding-bottom is the distance from
     that baseline to the bottom of its line box (Poppins, 16px, line-height 1.7). */
  .visit-grid { align-items: stretch; }
  .visit-text .eyebrow { display: block; }
  .visit-map { position: relative; display: flex; flex-direction: column; padding-bottom: 0.54rem; }
  .visit-map .map-facade-compact { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; max-height: none; }
}

/* Map areas: S02 compact (road map, loads automatically near the viewport) and
   S16 full-bleed (satellite, also loads automatically near the viewport). The branded first-party panel is the
   placeholder, the no-JavaScript view and the fallback if the embed is blocked. */
.map-facade {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--green-dark);
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(110, 231, 168, 0.18), rgba(110, 231, 168, 0) 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}
.map-facade-compact {
  width: 100%;
  aspect-ratio: 16 / 9;   /* grows to fit its content on narrow phones */
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) and (max-width: 959px) {
  .map-facade-compact { max-height: 340px; }
}
@media (max-width: 599px) {
  /* Phones: a fixed 4:3 frame (at least 280px) for the auto-loaded map, so the
     placeholder and the map are the same size and nothing shifts on load */
  .map-facade-compact { aspect-ratio: 4 / 3; min-height: 280px; }
  .map-facade-compact .map-facade-inner { padding: 1.25rem 1rem; }
  .map-facade-compact .map-facade-icon { width: 44px; height: 44px; margin-bottom: 0.5rem; }
  .map-facade-compact .map-facade-place { margin-bottom: 0.9rem; font-size: 1.1rem; }
}
.map-actions { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; }
/* Side by side where they fit, so the capped tablet panel holds its content */
@media (min-width: 600px) {
  .map-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .map-facade-compact .map-facade-inner { max-width: 36rem; }
}

.map-facade-inner { position: relative; padding: 1.5rem; max-width: 30rem; }
.map-facade-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 8px 22px rgba(0, 40, 20, 0.25);
}
.map-facade-place {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--white);
}
.map-facade-place span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
}
.map-facade .button-solid { border-color: var(--white); }
.map-notice { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--white); }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-facade.is-loaded { background: var(--mist); }
.map-fallback-note { margin: -0.4rem 0 1rem; font-size: 0.95rem; color: var(--white); }
/* Shown in place of an embed the browser refused to load (e.g. by the site CSP) */
.embed-blocked {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}
.embed-blocked p { margin: 0 0 1rem; font-weight: 500; color: var(--white); }

/* ------------------------------------------------------------------
   S03 Statement and metrics
   ------------------------------------------------------------------ */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}
/* Soft, static light shapes for depth; decorative only. */
.stats::before,
.stats::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.stats::before { width: 520px; height: 520px; top: -260px; left: -120px; }
.stats::after { width: 420px; height: 420px; bottom: -220px; right: -80px; }
.stats .container { position: relative; }
/* Lighter impression than the Inter headings: Poppins 400 at a large size */
.stats-statement {
  max-width: 22ch;
  margin: 0 auto 1.25rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.3rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--white);
}
/* Preview 5: one statement per line; a statement only wraps on very narrow screens */
.stats-line { display: block; }
@media (min-width: 480px) {
  .stats-line { white-space: nowrap; }
}
.stats-support {
  max-width: 44rem;
  margin: 0 auto 0.75rem;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  font-weight: 500;
}
.stats-desc { max-width: 40rem; margin: 0 auto; color: var(--white); }
.stats-list {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
  padding: 0;
  max-width: 62rem;
  display: grid;
  gap: 2.25rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
.stats-list > li:last-child { grid-column: 1 / -1; }
.stats-list-words { grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 720px) {
  .stats-list, .stats-list-words { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stats-list > li:last-child { grid-column: auto; }
  .stats-list-words { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
}
.stat-number {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.7rem + 3.2vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.stat-word {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.stat-label { display: block; max-width: 18rem; margin: 0.6rem auto 0; color: var(--white); }
/* Preview 6: S03 about 20% shorter on desktop. Only padding, gaps and the statement's
   line-height are reduced; font sizes, wording and grouping are unchanged. */
/* Preview 9: the 40% cut (to clamp(1.5rem, 2.64vw, 2.1rem)) was then raised by 66.67% at the
   owner's request, which lands exactly back on the Preview 6-8 value. Outer padding only. */
.stats { padding-block: clamp(2.5rem, 4.4vw, 3.5rem); }
.stats-statement { margin-bottom: 1rem; line-height: 1.18; }
.stats-list { margin-top: clamp(1.75rem, 3.2vw, 2.5rem); gap: 1.75rem 1.5rem; }
.stats-list-words { margin-top: 1.75rem; }
@media (min-width: 720px) {
  .stats-list, .stats-list-words { gap: 1.5rem; }
  .stats-list-words { margin-top: clamp(1.75rem, 3.2vw, 2.25rem); }
}
.stat-label { margin-top: 0.45rem; }

/* ------------------------------------------------------------------
   Preview 7: S03 six-phrase 3D rotating headline.
   Adapted from CodeFronts "3D drum of rotating words" (cat-30b, MIT):
   perspective + preserve-3d drum, faces at rotateX(n * step) translateZ(radius),
   hold-and-roll keyframes. Re-calculated for SIX faces:
     step   = 360deg / 6 = 60deg
     radius = (face height / 2) / tan(30deg) = 0.866 x face height
   The window is exactly one face high and clips, so at rest only the front
   face shows (the neighbours at +/-60deg sit just outside it).
   ------------------------------------------------------------------ */
.stats-drum-title { max-width: none; }
/* Preview 7: all six metric values in Poppins SemiBold (sizes, colours, labels unchanged) */
.stat-number { font-weight: 600; }
/* Preview 9: the bottom-row words (7 DAYS A WEEK, FREE, EST. 1953) in Poppins Regular; the figures stay 600 */
.stat-number.stat-word { font-weight: 400; }
/* Preview 7 refinement: one-sentence supporting statement, Poppins Regular like the S01
   hero paragraph (400, line-height 1.7 there) but a step larger, secondary to the drum.
   About 24px on desktop, 18px on phones; lines balanced by the browser. */
.stats-support {
  max-width: 46rem;
  font-size: clamp(1.125rem, 0.75rem + 1.1vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}
.drum-scene {
  --lh: 1.3;                                  /* line-height of a face (fits Poppins ascenders/descenders) */
  --lines: 1;                                 /* text lines per face */
  --face-h: calc(var(--lh) * var(--lines) * 1em);
  --radius: calc(var(--face-h) * 0.866);
  display: block;
  position: relative;
  height: var(--face-h);
  overflow: hidden;
  perspective: 16em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 0.6rem + 3.2vw, 3.25rem);
  line-height: var(--lh);
  letter-spacing: -0.01em;
  color: var(--white);
}
.drum {
  position: relative;
  display: block;
  height: 100%;
  transform-style: preserve-3d;
}
.drum-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  white-space: nowrap;
}
/* Without 3D support only the first phrase shows */
.drum-face + .drum-face { display: none; }
@supports (transform-style: preserve-3d) {
  .drum-face + .drum-face { display: grid; }
  .drum-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateX(calc(var(--n) * 60deg)) translateZ(var(--radius));
  }
  .drum-face:nth-child(1) { --n: 0; }
  .drum-face:nth-child(2) { --n: 1; }
  .drum-face:nth-child(3) { --n: 2; }
  .drum-face:nth-child(4) { --n: 3; }
  .drum-face:nth-child(5) { --n: 4; }
  .drum-face:nth-child(6) { --n: 5; }
}
/* Phones: two lines per face so the longest phrase stays a readable size */
@media (max-width: 599px) {
  .drum-scene { --lines: 2; font-size: clamp(1.5rem, 0.9rem + 3vw, 2rem); }
  .drum-face { white-space: normal; padding-inline: 0.25rem; }
}
/* 3 s per phrase: 2.3 s held, 0.7 s roll; 18 s per full revolution.
   The last step ends at -360deg, identical to 0deg, so the loop is seamless. */
@media (prefers-reduced-motion: no-preference) {
  @supports (transform-style: preserve-3d) {
    .drum {
      animation: s03-drum 18s cubic-bezier(0.55, -0.12, 0.3, 1.12) infinite;
    }
    .drum.is-paused { animation-play-state: paused; }
  }
}
@keyframes s03-drum {
  0%, 12.78% { transform: rotateX(0deg); }
  16.67%, 29.44% { transform: rotateX(-60deg); }
  33.33%, 46.11% { transform: rotateX(-120deg); }
  50%, 62.78% { transform: rotateX(-180deg); }
  66.67%, 79.44% { transform: rotateX(-240deg); }
  83.33%, 96.11% { transform: rotateX(-300deg); }
  100% { transform: rotateX(-360deg); }
}

/* ------------------------------------------------------------------
   S04 Why visit, and the shared crossfading photo panel (S04, S13)
   ------------------------------------------------------------------ */
.why-grid, .students-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: 1.1fr 1fr; }
  .students-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.why-intro { font-size: 1.05rem; }

.slideshow-figure { position: relative; margin: 0; }
.slideshow-figure::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border-radius: var(--radius);
  background: var(--mist);
  z-index: -1;
}
.students-figure::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
@media (max-width: 599px) {
  .slideshow-figure::before { inset: 0.75rem -0.5rem -0.75rem 0.75rem; }
  .students-figure::before { inset: 0.75rem 0.75rem -0.75rem -0.5rem; }
}
.slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 960px) {
  .why-figure .slideshow { aspect-ratio: 1 / 1; }
  .students-figure .slideshow { aspect-ratio: 4 / 5; }
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;   /* Preview 9: was 1.5s; matches FADE_MS in site.v3.js */
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active { opacity: 1; z-index: 2; }
/* The outgoing photo stays fully opaque underneath while the next one fades
   in on top, so the panel never shows an empty background mid-crossfade. */
.slide.is-leaving { opacity: 1; z-index: 1; transition: none; }

/* Slideshow controls: arrows, a pause/play button and a photo counter, added by the script */
.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--green-dark);
  cursor: pointer;
}
.slide-nav::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: background-color 0.2s ease;
}
.slide-nav:hover::before { background: var(--white); }
.slide-nav svg { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slide-prev { left: 8px; }
.slide-next { right: 8px; }
/* Preview 9: pause/play in the bottom-right corner, clear of the centred arrows and the counter */
.slide-toggle { top: auto; bottom: 4px; right: 8px; margin-top: 0; }
.slide-toggle svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
/* Preview 8: "3 / 14" counter where the dots were; light pill like the arrow discs */
.slide-count {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 5;
  margin: 0;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  color: var(--green-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ------------------------------------------------------------------
   S05 Product category keywords
   ------------------------------------------------------------------ */
.keywords {
  position: relative;
  overflow: hidden;   /* words near the edges crop off the section */
  background: var(--green);
}
/* Edge to edge; about the same height as the old 16:9 frame plus its padding */
.keyword-frame {
  position: relative;
  width: 100%;
  height: clamp(480px, calc((min(100vw, 1200px) - 4rem) * 0.5625 + 6rem), 720px);
  color: var(--white);
}
@media (max-width: 899px) { .keyword-frame { height: calc((100vw - 4rem) * 0.75 + 4rem); } }
@media (max-width: 599px) { .keyword-frame { height: 130vw; } }
/* Preview 6: S05 about 65% of its Preview 5 height on desktop (70% tablet, ~74% phone).
   min-height (not height) so the static no-JS / reduced-motion list can never be clipped. */
.keyword-frame {
  display: flex;
  height: auto;
  min-height: clamp(320px, calc(((min(100vw, 1200px) - 4rem) * 0.5625 + 6rem) * 0.65), 468px);
}
.keyword-static { flex: 1 1 auto; width: 100%; height: auto; }
@media (max-width: 899px) { .keyword-frame { min-height: calc(((100vw - 4rem) * 0.75 + 4rem) * 0.7); } }
@media (max-width: 599px) { .keyword-frame { min-height: 96vw; } }
/* Static arrangement (no JavaScript, or reduced motion) */
.keyword-static {
  list-style: none;
  margin: 0 auto;
  max-width: 1100px;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: clamp(1rem, 2.8vw, 1.9rem) clamp(1.5rem, 4.5vw, 3.5rem);
  font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1vw, 2rem);
  line-height: 1.25;
}
.keyword-static li:nth-child(3n + 2) { opacity: 0.72; }
.keyword-static li:nth-child(4n + 3) { opacity: 0.86; }
/* Base keyword size (about 22% above Preview 1); each word scales from it in em */
.keyword-field {
  position: absolute;
  inset: 0;
  font-size: clamp(1.28rem, 0.98rem + 1.04vw, 2rem);
}
.kw {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-weight: 500;
  font-size: 1em;
  line-height: 1.2;
  color: var(--white);
  opacity: 0;
  transform-origin: center;
  will-change: opacity, transform;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   Photo collages (S06, S10, S14): image only, no overlays
   ------------------------------------------------------------------ */
.collage { background: var(--ink); }
.collage img { width: 100%; height: auto; margin-inline: auto; }
/* 16:9 collages show whole; on very wide screens they stop at 1920px, centred */
.collage-visitors img,
.collage-students img { max-width: 1920px; }
/* S10 strip: fixed band height, cover-cropped like the hero, so the photos stay
   readable and wider screens reveal more of the collage. */
.collage-strip { height: 240px; overflow: hidden; }
.collage-strip picture,
.collage-strip img { width: 100%; height: 100%; }
.collage-strip img { object-fit: cover; object-position: center; }
@media (min-width: 600px) { .collage-strip { height: 320px; } }
@media (min-width: 1100px) { .collage-strip { height: 400px; } }

/* ------------------------------------------------------------------
   S07 Audience cards (approved v2 design, preserved; not clickable)
   ------------------------------------------------------------------ */
.services { background: var(--mist); }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease, translate 0.35s var(--ease-out);
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}
.card-media { overflow: hidden; }
.card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  transition: transform 0.7s var(--ease-out);
}
.card-body { padding: 1.5rem 1.5rem 0.75rem; }
/* Preview 8: one statement per paragraph, ~10px apart; the last keeps the usual bottom space */
.card-body p:not(:last-child) { margin-bottom: 0.625rem; }
@media (hover: hover) {
  .card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
  .card:hover img { transform: scale(1.05); }
  .card:hover::after { transform: scaleX(1); }
}

/* ------------------------------------------------------------------
   S08 Exhibitor logos: staggered brick-like tiles
   ------------------------------------------------------------------ */
.logos {
  background: var(--green);
  padding-block: clamp(1.8rem, 3.6vw, 2.7rem);   /* Preview 9: 40% less (was clamp(3rem, 6vw, 4.5rem)) */
}
.logos-head { text-align: center; margin: 0 auto 32px; }
.logos-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.logos-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.25;
  color: var(--white);
}
/* Base list: no JavaScript fallback, wraps naturally */
.logo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.logo-list li,
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile-w, 200px);
  height: var(--tile-h, 84px);
  padding: 0 1.25rem;
  border-radius: 12px;
  background: rgba(0, 50, 28, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
/* Logos shown as white monochrome, original proportions */
.logo-list img,
.logo-tile img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: opacity 0.9s ease;
}
.logo-tile img.is-fading { opacity: 0; }
.logo-wall { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.logo-row { display: flex; justify-content: center; gap: 14px; }
@media (max-width: 1099px) { .logos { --tile-w: 172px; --tile-h: 76px; } }
@media (max-width: 760px) {
  .logos { --tile-w: calc((100vw - 2 * var(--gutter) - 2 * 10px) / 3); --tile-h: 62px; }
  .logo-wall, .logo-row, .logo-list { gap: 10px; }
  .logo-list li, .logo-tile { padding: 0 0.6rem; border-radius: 10px; }
  .logo-list img, .logo-tile img { max-height: 24px; }
}

/* ------------------------------------------------------------------
   S09 Events
   ------------------------------------------------------------------ */
.events-intro {
  display: grid;
  gap: 0.5rem 3.5rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
@media (min-width: 960px) {
  .events-intro { grid-template-columns: 1fr 1.2fr; }
  .events-intro h2 { margin-bottom: 0.2em; }
}
.events-intro-text p:last-child { margin-bottom: 0; }
.event-types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 760px) {
  .event-types { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.event-type img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.event-type h3 { margin-bottom: 0.45rem; }
.event-type p { margin: 0; }

.upcoming {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(0, 135, 74, 0.2);
}
.upcoming-title { margin-bottom: 0.4rem; }
.upcoming-lead { max-width: 44rem; margin-bottom: 1.75rem; }
.event-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.event-card {
  flex: 1 1 340px;
  max-width: 560px;
  display: grid;
  grid-template-columns: 38% 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.event-card img { width: 100%; height: 100%; object-fit: cover; }
.event-card-noimage { grid-template-columns: 1fr; }
.event-card-body { padding: 1.25rem 1.25rem 1.4rem; }
.event-card-type {
  margin: 0 0 0.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.event-card h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
}
.event-meta { list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.92rem; }
.event-meta li { display: flex; gap: 0.5rem; align-items: center; }
.event-meta svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--green-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.event-card .button { min-height: 44px; padding: 0.5rem 1.4rem; font-size: 0.98rem; }
@media (max-width: 479px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card img { aspect-ratio: 16 / 9; }
}

.stay-panel {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--mist);
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .stay-panel { grid-template-columns: 1.35fr 1fr; }
}
.stay-title { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); margin-bottom: 0.6rem; }
.stay-text p:last-child { margin-bottom: 0; }
.stay-text strong { color: var(--ink); font-weight: 600; }
.stay-actions > p:first-child { margin-bottom: 1.5rem; }
.stay-follow {
  margin: 0 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 135, 74, 0.2);
  font-weight: 500;
  color: var(--ink);
}
.social-labelled { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.social-labelled a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.social-labelled a:hover { color: var(--green-dark); }
.social-labelled a:hover .social-name { text-decoration: underline; }
.social-name { font-weight: 600; color: var(--ink); margin-right: 0.25rem; }
.social-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: background-color 0.2s ease;
}
.social-chip svg { width: 18px; height: 18px; fill: currentColor; }
.social-labelled a:hover .social-chip { background: var(--green-dark); }

/* ------------------------------------------------------------------
   S11 Become an exhibitor
   ------------------------------------------------------------------ */
.exhibit-intro {
  display: grid;
  gap: 0.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 960px) {
  .exhibit-intro { grid-template-columns: 1fr 1fr; align-items: end; }
}
.exhibit-statement {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.4;
  color: var(--green-dark);
}
.exhibit-intro-text p:last-child { margin-bottom: 0; }
.benefits-title { margin-bottom: 1.5rem; }
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 3.5rem;
}
@media (min-width: 760px) {
  .benefits { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
}
.benefits li { display: flex; gap: 0.9rem; align-items: flex-start; }
.benefit-icon { flex: none; width: 26px; height: 26px; margin-top: 0.15rem; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefits strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); margin-bottom: 0.2rem; }
.benefits span { display: block; font-size: 0.97rem; }
.walkabout {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--mist);
  display: grid;
  gap: 1rem 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .walkabout { grid-template-columns: 1fr auto; }
}
.walkabout h3 { margin-bottom: 0.4rem; }
.walkabout p { margin: 0; }
.walkabout-action { margin: 0; }

/* ------------------------------------------------------------------
   S12 Video walkthrough (click-to-load YouTube facade)
   ------------------------------------------------------------------ */
.video-band {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
  padding-block: var(--section-pad);
  text-align: center;
}
.video-band::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  top: -320px;
  right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.video-band .container { position: relative; }
.video-head { max-width: 52rem; margin: 0 auto 2.25rem; }
.video-head h2 { color: var(--white); }
.video-head p:last-child { margin-bottom: 0; font-size: 1.05rem; }
.yt-video { max-width: 960px; margin-inline: auto; }
.yt-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 30, 15, 0.35);
}
.yt-poster, .yt-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
}
.yt-poster picture, .yt-poster img { width: 100%; height: 100%; }
.yt-poster img { object-fit: cover; }
.yt-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 30, 15, 0.35), rgba(0, 30, 15, 0.1) 60%);
  transition: background-color 0.3s ease;
}
/* Preview 8: YouTube-red circle, white triangle (size and position unchanged) */
.yt-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #FF0000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-out);
}
.yt-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--white);
}
.yt-poster:hover .yt-play,
.yt-poster:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-poster:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; box-shadow: inset 0 0 0 9px var(--ink); }
@media (max-width: 480px) {
  .yt-play { width: 64px; height: 64px; }
  .yt-play::after { border-width: 12px 0 12px 20px; }
}
.yt-notice { margin: 1rem 0 0; font-size: 0.9rem; color: var(--white); }
.yt-status { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--white); }
.yt-status:empty { display: none; }
.yt-action { margin: 1.25rem 0 0; }
/* Preview 8: white pill, red YouTube logo, near-black text and external-link icon */
.button-youtube,
.button-youtube:hover { color: var(--ink); }

/* ------------------------------------------------------------------
   S13 Students (shares slideshow + accent styles above)
   ------------------------------------------------------------------ */
@media (max-width: 959px) {
  .students-figure { order: 2; }
}

/* ------------------------------------------------------------------
   S15 Contact
   ------------------------------------------------------------------ */
.contact-panels {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .contact-panels { grid-template-columns: 1.25fr 1fr 1fr; }
}
.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  border: 1px solid rgba(0, 135, 74, 0.18);
  transition: box-shadow 0.3s ease, translate 0.3s var(--ease-out);
}
.contact-panel-primary {
  background: var(--mist);
  border-color: transparent;
  border-top: 5px solid var(--green);
}
.contact-panel h3 { margin-bottom: 0.6rem; }
.contact-panel p { margin-bottom: 0.9rem; }
.contact-venue strong { color: var(--ink); font-weight: 600; }
.contact-highlight {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--green-dark);
}
.contact-panel-primary .contact-icon { background: var(--green); color: var(--white); }
.contact-action { margin: auto 0 0; padding-top: 0.5rem; }
/* Preview 9: details follow the paragraph (was margin: auto 0 0, which pushed them to the
   card's bottom); spare height now falls below them, matching the WhatsApp card */
.contact-list { margin: 0; padding-top: 0; }
.contact-list div + div { margin-top: 0.6rem; }
.contact-list dt { display: block; font-weight: 600; color: var(--ink); }
.contact-list dd { display: block; margin: 0; }
.contact-list a { display: inline-block; padding-block: 0.35rem; font-weight: 500; overflow-wrap: anywhere; }
/* Preview 9: WhatsApp number in the WhatsApp card, styled like the Telephone entry.
   It sits under the description; the green button keeps the bottom of the card. */
.contact-list-whatsapp { margin: 0; padding-top: 0; }
.contact-note { font-size: 0.92rem; }

/* ------------------------------------------------------------------
   S16 Find us: full-bleed map
   ------------------------------------------------------------------ */
.find-us { position: relative; }
.map-facade-wide {
  width: 100%;
  height: clamp(380px, 58vh, 560px);
}
@media (max-width: 599px) {
  .map-facade-wide { height: 420px; }
}

/* ------------------------------------------------------------------
   Footer (dark ink, four groups)
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem 1.5rem;
  padding-block: clamp(3rem, 6vw, 4.25rem) 2rem;
  /* Phones: brand and Visit Us full width, then Follow Us beside Contact Us */
  grid-template-columns: auto minmax(0, 1fr);
}
@media (max-width: 639px) {
  .footer-grid > :nth-child(-n + 2) { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
}
/* Wide: the address and contact columns take their natural width so no line wraps */
@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) max-content max-content max-content;
    column-gap: clamp(2rem, 4vw - 0.5rem, 4rem);
  }
}
.footer-brand img { width: 220px; max-width: 100%; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; margin: 0; }
.footer-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}
.footer-subtitle {
  margin: 1.1rem 0 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.footer-text { margin: 0; }
/* Preview 5: the footer address is one Google Maps link; subtle underline, brighter on hover */
.site-footer .footer-address {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.25em;
}
.site-footer .footer-address:hover { color: var(--green-light); text-decoration-color: currentColor; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 0.6rem; }
.footer-list .contact-label { display: block; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--green-light); }
.footer-list a { display: inline-block; padding-block: 0.25rem; overflow-wrap: anywhere; }
.footer-social { list-style: none; margin: 0; padding: 0; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 40px;
  text-decoration: none;
}
.footer-social a:hover { text-decoration: underline; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.25rem;
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
/* Preview 11: "Privacy Notice" beside the copyright line (on its own line below it on phones).
   Same look as the copyright text, with the footer-address underline and hover. The 44px
   touch target overlaps the bar's padding (negative margin), so the bar keeps its height. */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1.5rem;
}
.site-footer .footer-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.25em;
}
.site-footer .footer-privacy:hover { color: var(--green-light); text-decoration-color: currentColor; }
@media (max-width: 599px) {
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
/* Preview 11: privacy notice page (privacy.html), a white reading column */
.legal { padding-block: var(--section-pad); }
.legal-body { max-width: 70ch; overflow-wrap: break-word; } /* long email addresses wrap on small phones */
.legal-body h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal-body h2 { margin-top: 2.25rem; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); }
.legal-body h3 { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.legal-body ul { padding-left: 1.25rem; }
.legal-body li + li { margin-top: 0.35rem; }
.legal-date { font-weight: 500; color: var(--ink); }

/* Preview 9: back-to-top button (added by the script). Brand green disc with a white
   ring and shadow, so it stands out on white and on the green bands alike. */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0s linear 0.25s, background-color 0.2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0s, background-color 0.2s ease;
}
.to-top:hover { background: var(--green); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 800px) {
  .to-top { right: 1.5rem; bottom: 1.5rem; }
}
@media print {
  .to-top { display: none; }
}

/* 404 page */
.notfound { padding-block: var(--section-pad); text-align: center; }
.notfound .button { border-color: var(--green); }

/* ------------------------------------------------------------------
   Motion. Everything below runs only when the visitor has not asked
   for reduced motion. Elements are hidden only once JavaScript has
   added html.js, so content is never lost without the script.
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance on load */
  .hero::before { animation: hero-zoom 2.4s var(--ease-out) both; }
  .hero-inner > * { animation: rise-in 0.9s var(--ease-out) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.36s; }

  /* Scroll-triggered reveals */
  .js .reveal {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    /* translate and box-shadow keep the card/tile hover lift working */
    transition:
      opacity var(--reveal-dur) var(--ease-out) var(--reveal-delay, 0s),
      transform var(--reveal-dur) var(--ease-out) var(--reveal-delay, 0s),
      translate 0.35s var(--ease-out),
      box-shadow 0.35s ease;
  }
  .js .reveal-left { transform: translate3d(-40px, 0, 0); }
  .js .reveal-right { transform: translate3d(40px, 0, 0); }
  .js .reveal-scale { transform: scale(0.96); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Stagger groups: children follow one another */
  .stagger > :nth-child(2) { --reveal-delay: 0.12s; }
  .stagger > :nth-child(3) { --reveal-delay: 0.24s; }
  .stagger > :nth-child(4) { --reveal-delay: 0.36s; }
  .stagger > :nth-child(5) { --reveal-delay: 0.12s; }
  .stagger > :nth-child(6) { --reveal-delay: 0.24s; }

  @media (hover: hover) {
    .contact-panel:hover { translate: 0 -4px; box-shadow: var(--shadow-sm); }
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   Preview 8: S01 three-image crossfade, 1 > 2 > 3 > 1 ...
   Image 1 stays the .hero::before background: it shows at once and is the
   static picture without JS, with reduced motion or if a photo fails.
   Images 2 and 3 sit above it (below the green ::after overlay) in
   .hero-slides, hidden until site.v3.js has loaded them, then faded with
   opacity only. 13.5s cycle = 3 x (3s hold + 1.5s fade):
     22.2-33.3%  image 2 fades in over image 1
     55.6-66.7%  image 3 fades in over image 2
     70%         image 2 drops away, unseen under image 3
     88.9-100%   image 3 fades out, revealing image 1
   Both layers end at opacity 0, as they start, so the loop has no reset.
   The one-time hero-zoom entrance (scale on .hero::before only) is
   untouched: it ends at 2.4s, and image 2 cannot appear before the page
   has loaded plus the 3s hold, so the two animations never overlap and
   never share a property.
   ------------------------------------------------------------------ */
.hero-slides { display: none; position: absolute; inset: 0; z-index: -2; }
.hero-slides.is-loading,
.hero-slides.is-running { display: block; }
.hero-slide { position: absolute; inset: 0; opacity: 0; }
/* Same crop as the image-1 background (cover, centre bottom / 70% centre) */
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
@media (min-width: 800px) {
  .hero-slide img { object-position: 70% center; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-slides.is-running .hero-slide { animation: 13.5s ease-in-out infinite; }
  .hero-slides.is-running .hero-slide-2 { animation-name: hero-fade-2; }
  .hero-slides.is-running .hero-slide-3 { animation-name: hero-fade-3; }
  .hero-slides.is-paused .hero-slide { animation-play-state: paused; }
}
@media print {
  .hero-slides { display: none !important; }
}
@keyframes hero-fade-2 {
  0%, 22.2222% { opacity: 0; }
  33.3333%, 70% { opacity: 1; }
  70.01%, 100% { opacity: 0; }
}
@keyframes hero-fade-3 {
  0%, 55.5556% { opacity: 0; }
  66.6667%, 88.8889% { opacity: 1; }
  100% { opacity: 0; }
}
/* Pause/play button for the crossfade, added by the script once the
   slideshow runs. The bar is a .container, so the button's right edge lines
   up with the page content; same 44px white-disc style as .slide-nav. */
.hero-control {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--green-dark);
  cursor: pointer;
  pointer-events: auto;
}
.hero-toggle::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}
.hero-toggle:hover::before { background: var(--white); }
.hero-toggle svg { position: relative; width: 18px; height: 18px; fill: currentColor; }
@media print {
  .hero-control { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .card:hover, .contact-panel:hover { translate: none; }
  .card:hover img { transform: none; }
}

/* Print: no motion, no sticky header, photos off */
@media print {
  .site-header { position: static; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .photo-band::before, .photo-band::after { display: none; }
  .photo-band, .stats, .video-band, .keywords, .logos { background: none; color: var(--ink); }
  .hero h1, .stats h2, .video-band h2 { color: var(--ink); text-shadow: none; }
  .nav-toggle, .social, .scroll-progress, .map-facade, .collage { display: none !important; }
}
