/* ==========================================================================
   Queen's Gambit Zürich · "Modern Editorial" design system · v1
   Layout concept: a magazine-style column grid on warm ivory; oversized
   uppercase League Spartan headlines, generous whitespace, sand panels,
   Zurich Blue reserved for actions and key highlights.

   Single deliberate light theme (brand palette). Colours are tokens only.
   ========================================================================== */

:root {
  /* Colour (approved palette) */
  --ivory: #FDFBF7;      /* primary background */
  --sand: #EFECE6;       /* sections and cards */
  --charcoal: #2B2A27;   /* type and structure */
  --blue: #0070B4;       /* Zurich Blue: accent, used sparingly */

  /* Derived tones (mixes of the palette, no new hues) */
  --blue-deep: #005A91;                                   /* hover */
  --muted: color-mix(in srgb, var(--charcoal) 72%, var(--ivory));
  --rule: color-mix(in srgb, var(--charcoal) 18%, transparent);
  --rule-strong: var(--charcoal);

  /* Type */
  --font-display: "League Spartan", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(3.4rem, 13vw, 9.5rem);
  --fs-h2: clamp(2.1rem, 6vw, 4.25rem);
  --fs-h3: clamp(1.2rem, 1.6vw + .8rem, 1.5rem);
  --fs-lead: clamp(1.125rem, .6vw + 1rem, 1.375rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  --track-tight: -0.02em;
  --track-label: 0.14em;

  /* Space and layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 2px;
  --header-h: 68px;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
  text-wrap: balance;
}
h1, h2 { text-transform: uppercase; letter-spacing: var(--track-tight); line-height: .92; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; line-height: 1.25; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol { list-style: none; }

a { color: inherit; }
a:hover { color: var(--blue); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 1px; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--ivory); padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); color: var(--ivory); }

/* ---------- Shared components ---------- */

/* Eyebrow: names the programme a section belongs to */
.eyebrow {
  display: flex; align-items: center; gap: .65rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--charcoal);
}
.eyebrow::before {
  content: ""; width: .6rem; height: .6rem; background: var(--blue); flex: none;
}

.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 40rem; }
.small { font-size: var(--fs-small); color: var(--muted); }
.caption {
  font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding-top: .6rem;
}
.h-small {
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
}

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; letter-spacing: .01em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .875rem; }
.btn--primary { background: var(--blue); color: var(--ivory); }
.btn--primary:hover { background: var(--blue-deep); color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--ivory); }
.btn--light { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--charcoal); }


/* Status labels: state is encoded in form as well as words */
.status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: var(--radius); line-height: 1; white-space: nowrap;
  width: fit-content;
}
.status::before { content: ""; width: .45rem; height: .45rem; flex: none; }
.status--active { background: var(--charcoal); color: var(--ivory); }
.status--active::before { background: var(--ivory); }
.status--pilot { background: var(--blue); color: var(--ivory); }
.status--pilot::before { background: var(--ivory); border-radius: 50%; }
.status--planned,
.status--dev { border: 1px dashed var(--charcoal); color: var(--charcoal); }
.status--planned::before { border: 1px solid var(--charcoal); border-radius: 50%; }
.status--dev::before { border: 1px dashed var(--charcoal); border-radius: 50%; }

/* Cards */
.card { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); }
.card--ivory { background: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__crown { width: 34px; height: auto; flex: none; }
.brand__wordmark { width: clamp(150px, 30vw, 196px); height: auto; min-width: 0; }
/* Official QGZ logo (blue graffiti crown) */
.brand__logo { height: 52px; width: auto; flex: none; }
@media (max-width: 479px) { .brand__logo { height: 46px; } }

/* Header logo switch: exactly one logo is displayed at a time. The inactive
   one carries the `hidden` attribute (set in index.html and toggled by
   js/site.js), so both can never show together. Both share one grid cell,
   so switching never moves the navigation. */
.site-header .brand { display: grid; align-items: center; justify-items: start; }
.brand > .brand__logo,
.brand > .brand__kids { grid-area: 1 / 1; }
.brand__kids { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand > .brand__logo:not([hidden]),
.brand > .brand__kids:not([hidden]) { animation: brand-fade-in .3s ease both; }
@keyframes brand-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .brand > .brand__logo, .brand > .brand__kids { animation: none; }
}

.site-nav__toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 40px; padding: .4rem .6rem; background: transparent; border: 0;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--charcoal); cursor: pointer;
}
.site-nav__toggle-bars,
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--charcoal); position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.site-nav__toggle-bars::before, .site-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle-bars::before { top: -6px; }
.site-nav__toggle-bars::after { top: 6px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars { background: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--charcoal);
  padding: .5rem var(--gutter) 1.25rem;
}
.site-nav__list.is-open { display: block; }
.site-nav__list a {
  display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: var(--track-tight); text-decoration: none;
}
.site-header__join { flex: none; }
/* Instagram icon link (header and footer); charcoal outline, blue on hover */
.ig-icon { display: block; flex: none; }
.site-header__ig {
  flex: none; display: inline-grid; place-items: center;
  width: 40px; height: 40px; color: var(--charcoal); border-radius: var(--radius);
}
.site-header__ig:hover { color: var(--blue); }

/* Mobile navigation (below 1024px only; desktop navigation is unchanged) */
@media (max-width: 1023px) {
  .site-nav__list { list-style: none; margin: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .site-nav__list li { margin: 0; padding: 0; }
}
@media (max-width: 349px) {
  .site-nav__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header__inner { gap: .4rem; }
}
/* Small phones: tighter header spacing so logo, Menu/Close and Join always fit */
@media (max-width: 479px) {
  .site-header__inner { gap: .5rem; }
  .site-nav__toggle { padding-inline: .35rem; gap: .45rem; }
  .site-header__join { padding-inline: .8rem; }
  .site-header__ig { width: 32px; }
  .brand__kids { gap: .45rem; }
  .brand__kids .brand__crown { width: 26px; }
  .brand__kids .brand__wordmark { width: clamp(96px, calc(100vw - 262px), 150px); }
}

@media (min-width: 1024px) {
  .site-nav__toggle { display: none; }
  .site-nav__list {
    display: flex; position: static; gap: clamp(1rem, 2vw, 1.75rem);
    padding: 0; border: 0; background: none;
  }
  .site-nav__list a {
    padding: .4rem 0; border: 0;
    font-family: var(--font-body); font-weight: 500; font-size: .9rem;
    text-transform: none; letter-spacing: 0;
  }
  .site-nav__list { list-style: none; margin: 0; }
  .site-nav { margin-right: 1.25rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--sand { background: var(--sand); }
.section--charcoal { background: var(--charcoal); color: var(--ivory); }
.section--charcoal h2,
.section--charcoal h3 { color: var(--ivory); }

.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--split { gap: 1.5rem; }
.section-head__aside { max-width: 30rem; color: var(--muted); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr minmax(0, 26rem); align-items: end; }
}

/* ---------- 1. Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.hero__text { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.hero__title {
  font-size: var(--fs-display);
  line-height: .86; letter-spacing: -0.03em;
  display: grid;
}
.hero__title-line--city { color: var(--blue); }
.hero__tagline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw + .6rem, 2.1rem); line-height: 1.1; letter-spacing: -0.01em;
  padding-top: .25rem; border-top: 1.5px solid var(--charcoal); max-width: 24ch;
  padding-top: 1.1rem;
}
.hero__intro { font-size: var(--fs-lead); max-width: 34rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .25rem; }
.hero__next {
  font-size: var(--fs-small); color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline;
}
.hero__next strong { color: var(--charcoal); font-weight: 600; }

.hero__media { margin: 0; min-width: 0; padding-left: 1.125rem; padding-right: 1.25rem; }
.hero__frame { position: relative; }
.hero__frame::before {      /* offset sand block: subtle geometric composition */
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--sand); z-index: 0;
}
.hero__frame::after {       /* small blue square, a "square on the board" */
  content: ""; position: absolute; width: 2.25rem; height: 2.25rem;
  left: -1.125rem; top: 2.5rem; background: var(--blue); z-index: 2;
}
.hero__frame img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.hero__media .caption { padding-top: 1.9rem; }

.hero__notation {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1rem; border-top: 1px solid var(--rule);
  font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline;
}
.hero__notation span { color: var(--charcoal); font-weight: 600; }
.hero__notation em { font-style: normal; margin-left: .75rem; letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-label); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .hero__media { padding-left: 0; }
}

/* ---------- 2. Upcoming ---------- */
.event-list { display: grid; border-top: 1.5px solid var(--charcoal); }
.event {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem 1.25rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--rule);
}
.event__date { display: grid; align-content: start; font-variant-numeric: tabular-nums; }
.event__day {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: .9; letter-spacing: -0.02em;
}
.event__month { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; padding-top: .35rem; }
.event__weekday { font-size: var(--fs-small); color: var(--muted); }
.event__body { display: grid; gap: .5rem; min-width: 0; }
.event__tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.event__programme {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .55rem; background: var(--sand); border-radius: var(--radius); line-height: 1;
}
.event__title { font-size: var(--fs-h3); }
.event__meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: var(--fs-small); color: var(--muted); }
.event__meta b { color: var(--charcoal); font-weight: 600; }
.event__sessions { display: grid; gap: .35rem; font-size: var(--fs-small); padding-top: .25rem; font-variant-numeric: tabular-nums; }
.event__sessions li { display: grid; grid-template-columns: 5.5rem 6.5rem minmax(0, 1fr); gap: .5rem; }
.event__sessions li.is-past { color: var(--muted); text-decoration: line-through; }
.event__action { padding-top: .5rem; }

.event--featured { background: var(--sand); padding-inline: 1.25rem; border-bottom-color: transparent; margin-block: .5rem; }
.event--featured .event__programme { background: var(--ivory); }

@media (min-width: 720px) {
  .event { grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: start; padding-block: 1.75rem; }
  .event__day { font-size: 3.25rem; }
  .event__action { padding-top: 0; align-self: center; }
  .event--featured { padding-inline: 1.75rem; }
}
@media (max-width: 479px) {
  .event__sessions li { grid-template-columns: 1fr; gap: 0; padding-bottom: .4rem; }
}

.event-empty { padding: 2rem 0; color: var(--muted); max-width: 36rem; }
.event-more { padding-top: 2rem; }

/* ---------- 3. Community ---------- */
.community { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.feature-grid { display: grid; gap: 0; border-top: 1.5px solid var(--charcoal); }
.feature { display: grid; gap: .7rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); align-content: start; }
.feature__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.feature p { max-width: 36rem; }
.feature-grid > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }

.community__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.community__media figure { margin: 0; min-width: 0; }
.community__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.community__media figure:nth-child(2) { margin-top: clamp(2rem, 6vw, 4.5rem); }

.pull {
  margin-top: clamp(3rem, 7vw, 5rem);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw + .8rem, 2.4rem); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 28ch; padding-left: 1.25rem; border-left: 4px solid var(--blue);
  text-wrap: balance;
}

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .community { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 4. Kids ---------- */
.kids { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.pilot {
  background: var(--sand); padding: clamp(1.5rem, 4vw, 3rem);
  display: grid; gap: 1.75rem; border-radius: var(--radius); min-width: 0;
}
.pilot__head { display: grid; gap: .75rem; }
.pilot__head h3, .pilot__title { font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem); text-transform: uppercase; letter-spacing: var(--track-tight); line-height: .95; }
.pilot__sub { color: var(--muted); }

.table-wrap { overflow-x: auto; }
.sessions { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.sessions th {
  text-align: left; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label);
  text-transform: uppercase; padding: 0 1rem .6rem 0; border-bottom: 1.5px solid var(--charcoal);
}
.sessions td { padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.sessions td:last-child { white-space: normal; font-weight: 600; }

.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; padding-top: .2rem; }
.facts dd { margin: 0; }

.pilot__levels { display: grid; gap: 1.25rem; }
.pilot__levels > div { display: grid; gap: .4rem; padding-top: 1rem; border-top: 1.5px solid var(--charcoal); }
.pilot__included { max-width: 44rem; }
.pilot__cta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.pilot__cta .small { max-width: 26rem; }

.kids__side { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.kids__media { margin: 0 0 .75rem; }
.kids__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--ivory); } /* whole illustration, no cropping or distortion */

@media (min-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .pilot__levels { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
  .kids { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
}

/* ---------- 5. Social impact ---------- */
.impact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.impact__statement { display: grid; gap: 1.5rem; align-content: start; max-width: 44rem; }
.statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw + .8rem, 3rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
.impact__project { display: grid; gap: .9rem; align-content: start; border-top: 4px solid var(--blue); }
@media (min-width: 900px) {
  .impact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

/* ---------- 6. Collaborations ---------- */
.collab-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1.5px solid var(--charcoal);
}
.collab {
  display: grid; gap: .6rem; align-content: start;
  padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
}
.collab .status { margin-top: .35rem; }
.collab__type { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.collab--open { background: var(--sand); padding-inline: 1.5rem; border-bottom-color: transparent; }
@media (min-width: 640px) {
  .collab-grid { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .collab { padding: 2rem 1.75rem 2rem 0; }
  .collab:nth-child(2n) { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
  .collab--open, .collab--open:nth-child(2n) { padding-inline: 1.75rem; border-left: 0; }
}
@media (min-width: 1024px) {
  .collab-grid { grid-template-columns: repeat(3, 1fr); }
  .collab, .collab:nth-child(2n) { padding: 2rem 1.75rem; border-left: 1px solid var(--rule); }
  .collab:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .collab--open, .collab--open:nth-child(3n + 1) { padding-inline: 1.75rem; border-left: 0; }
}

/* ---------- 7. About ---------- */
.about { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.about__mission { display: grid; gap: 1.5rem; align-content: start; max-width: 42rem; }
.mission { margin: 0; }
.mission p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3vw + .8rem, 2.9rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
.about__values { display: grid; gap: 1.25rem; align-content: start; padding-top: 1.25rem; border-top: 1.5px solid var(--charcoal); }
.about__values p { color: var(--muted); max-width: 30rem; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
.values { display: flex; flex-wrap: wrap; gap: .5rem; }
.values li { padding: .45rem .8rem; border: 1px solid var(--charcoal); border-radius: var(--radius); font-weight: 500; font-size: .95rem; }


/* ---------- 8. Join ---------- */
.join { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.join__intro { display: grid; gap: 1.25rem; max-width: 44rem; }
.join__crown { width: 48px; height: auto; }
.join__intro .lead { color: var(--sand); }
.join__actions { display: grid; gap: 0; border-top: 1.5px solid var(--ivory); }
.join-card {
  display: grid; gap: .75rem; align-content: start; justify-items: start;
  padding: 1.75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ivory) 25%, transparent);
}
.join-card p { color: var(--sand); }
.join-card .btn { margin-top: .5rem; }
.join-card__email { font-weight: 600; color: var(--ivory) !important; user-select: all; word-break: break-word; }
@media (min-width: 900px) {
  .join__actions { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .join-card { padding: 2rem 2rem 2rem 0; }
  .join-card:not([hidden]) ~ .join-card:not([hidden]) { padding-left: 2rem; border-left: 1px solid color-mix(in srgb, var(--ivory) 25%, transparent); }
}

/* ---------- 9. Footer ---------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; background: var(--ivory); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: 1rem; justify-items: start; }
.site-footer__brand img { width: 112px; }
.site-footer__brand p { color: var(--muted); }
.site-footer__col { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.site-footer__title { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; }
.site-footer__col ul { display: grid; gap: .5rem; font-size: .95rem; }
.site-footer__col a { text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.site-footer__col a:hover { text-decoration: underline; }
.site-footer__col [data-contact-email] { overflow-wrap: anywhere; }
.site-footer__base { margin-top: 3rem; }
.site-footer__base-inner {
  padding-top: 1.25rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  font-size: var(--fs-small); color: var(--muted);
}
@media (min-width: 900px) {
  .site-footer__grid { grid-auto-flow: column; grid-template-columns: minmax(0, 1.5fr); grid-auto-columns: minmax(0, 1fr); }
  .site-footer__brand { grid-column: auto; }
}
@media (max-width: 479px) {
  .site-footer__col:last-child { grid-column: 1 / -1; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 60;
  background: var(--charcoal); color: var(--ivory);
  padding: .8rem 1.1rem; font-size: var(--fs-small); border-radius: var(--radius);
  max-width: calc(100% - 32px);
}
