/* ==========================================================================
   Basel AI Festival — design system
   World: Swiss poster & print programme (Basel School of Design lineage).
   The material carries the page: red poster hero, cream programme sheet,
   ink manifesto, fact-sheet rows. Archivo (variable, expanded) + Fragment
   Mono, self-hosted (no third-party font CDN — GDPR-friendly).
   ========================================================================== */

@font-face {
  font-family: "Fragment Mono";
  src: url("../assets/fonts/fragment-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* "Prism": white page, five vivid accents. Contrast rules (WCAG AA):
     white text only on violet; ink text on pink, lime, orange, sky;
     coloured text on white only in violet (pink for large display marks) */
  --violet: #4B2BFF;
  --pink: #FF3D8B;
  --lime: #C6FF3D;
  --orange: #FF7A1A;
  --sky: #1FA7FF;

  /* colour roles: swap a palette here, nothing else hard-codes colour */
  --paper: #FFFFFF;          /* page background */
  --ink: #0E0B1F;            /* text, rules, dark sections */
  --ink-soft: #36325A;       /* secondary text on paper */
  --muted: #5B5873;          /* muted text on paper (6.8:1) */
  --muted-dark: #ADA9C9;     /* muted text on ink (8.6:1) */
  --accent: var(--violet);   /* buttons, links, labels on paper (6.8:1) */
  --on-accent: #FFFFFF;      /* text on --accent */
  --accent-bright: var(--pink);    /* large display accents (title dots) on paper */
  --accent-on-dark: var(--lime);   /* small accent text on ink (16:1) */
  --field: #FFFFFF;          /* hero field: white like the page, colour lives in the components */
  --on-field: var(--ink);    /* text and rules on --field */
  --field-dot: var(--pink);  /* hero title dot */
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-dark: color-mix(in srgb, var(--paper) 22%, transparent);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* data voice: dates, counts, labels on the programme sheet */
  --font-mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1160px;
  --rule: 2px solid var(--ink);

  /* motion tokens (from the easing tables — never hand-rolled) */
  --ease-out-ui: cubic-bezier(0.23, 1, 0.32, 1);

  /* lets height:auto transition where supported (FAQ, mobile menu) */
  interpolate-size: allow-keywords;
}

/* ---------- reset & browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
p { max-width: 66ch; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

/* modern inline icons (stroke 2, currentColor — no icon font, no CDN) */
.icon {
  width: 15px; height: 15px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -2px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-transform: uppercase;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
h3 { font-size: 1rem; letter-spacing: -0.01em; }
.dot { color: var(--accent-bright); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 160ms var(--ease-out-ui);
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-outline-paper { background: transparent; border-color: var(--paper); color: var(--paper); }
/* on a colour field the light button follows --on-field */
.hero .btn-paper, .section-signup .btn-paper { background: var(--on-field); border-color: var(--on-field); color: var(--field); }
.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--rule);
}
.nav-row {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}
.brand { text-decoration: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name b { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current] { border-bottom-color: var(--accent); }
.nav-cta { padding: 10px 18px; font-size: 14px; }
/* language switch: EN / DE / FR, stays visible next to the menu toggle on mobile */
.lang-switch { display: flex; gap: 2px; }
.lang-switch a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none;
  min-width: 36px; min-height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  border: 2px solid transparent;
}
.lang-switch a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--ink);
  min-width: 48px; min-height: 44px;
  padding: 0 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- hero: the festival poster ---------- */
.hero {
  background: var(--field);
  border-bottom: var(--rule);
  color: var(--on-field);
  padding: clamp(72px, 11vw, 150px) 0 clamp(48px, 6vw, 84px);
}
.hero-title {
  grid-column: 1 / -1;
  font-size: clamp(2.375rem, 7.5vw, 6rem);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.hero-dot { color: var(--field-dot); }
.hero-dates {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 110%;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  margin-top: clamp(20px, 3vw, 34px);
}
.hero-sub {
  max-width: 60ch;
  margin-top: clamp(18px, 2.5vw, 28px);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  hyphens: none;
}
/* hero sign-up: the email field sits in the poster, one step instead of a jump to the footer form */
.signup-hero { margin-top: clamp(28px, 4vw, 40px); max-width: 520px; }
.hero-note { margin-top: clamp(24px, 3.5vw, 36px); font-size: 14px; }
.hero-note.hero-links { margin-top: 8px; display: flex; flex-wrap: wrap; column-gap: 24px; }
.hero-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-underline-offset: 3px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.hero-copy { min-width: 0; }

/* hero side: the week as a printed timetable (real dates, links to the programme) */
.hero-side { min-width: 0; }
.countdown {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.countdown-n {
  color: var(--violet);
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.week {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--on-field);
  border-left: 2px solid var(--on-field);
}
.week li { border-right: 2px solid var(--on-field); border-bottom: 2px solid var(--on-field); }
.week a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: baseline;
  height: 100%;
  padding: 14px 16px 16px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.week-dow {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-mono);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
}
.week-date {
  grid-column: 1; grid-row: 2;
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 125%;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.week-what {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: end;
  font-size: 14px; font-weight: 600; line-height: 1.3;
  min-width: 0;
  hyphens: auto;
}
.week li:nth-child(1) a { background: var(--violet); color: #FFFFFF; }
.week li:nth-child(2) a { background: var(--pink); color: var(--ink); }
.week li:nth-child(3) a { background: var(--lime); color: var(--ink); }
.week li:nth-child(4) a { background: var(--sky); color: var(--ink); }
.week li:nth-child(5) a { background: var(--ink); color: #FFFFFF; }
.week li:nth-child(6) a { background: var(--orange); color: var(--ink); }
.week .is-flag .week-dow { color: var(--lime); }

/* ---------- the poster prints itself: one authored entrance ---------- */
/* clip-path reveal, top-to-bottom like a screen-print pass; CSS keyframes keep it off the main thread */
@keyframes print-in {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 -10% 0); }
}
.hero-title { animation: print-in 640ms var(--ease-out-ui) both; }
.hero-dates { animation: print-in 560ms var(--ease-out-ui) 140ms both; }
.hero-sub   { animation: print-in 520ms var(--ease-out-ui) 280ms both; }
.signup-hero { animation: print-in 520ms var(--ease-out-ui) 360ms both; }
.hero-note  { animation: print-in 520ms var(--ease-out-ui) 440ms both; }

/* ---------- ticker ---------- */
.marquee {
  position: relative;
  border-top: var(--rule);
  border-bottom: var(--rule);
  overflow: hidden;
  padding: 14px 0;
}
/* taste-skill-ignore: scrim fades over the ticker edges (no text contrast loss, judged defensible) */
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 44px; z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--paper), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--paper), transparent); }
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: slide 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
}
@keyframes slide { to { transform: translateX(-50%); } }
/* user pause for the moving ticker (WCAG 2.2.2) */
.marquee-toggle {
  position: absolute; right: 12px; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); cursor: pointer;
}
.marquee-toggle .icon { width: 14px; height: 14px; }
.marquee-toggle .icon-play, .marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .icon-play { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-title, .hero-dates, .hero-sub, .signup-hero, .hero-note { animation: none; }
  .marquee-toggle { display: none; }
  .mobile-cta { transition: none; }
.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* sections print into place: one reveal per block, staggered by row — no scroll-jacking */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s var(--ease-out-ui), transform 0.45s var(--ease-out-ui);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-compact { padding: clamp(48px, 6.5vw, 84px) 0; }
.section-ruled { border-top: var(--rule); }
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head > * + * { margin-top: 18px; }
.section-lede { font-size: 1rem; color: var(--ink-soft); max-width: 64ch; }
.note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-dark);
}

/* formerly ink bands; on the white "Prism" page they are ruled white sections */
.section-dark { background: var(--paper); color: var(--ink); border-top: var(--rule); }
.section-dark .section-lede { color: var(--ink-soft); }
.partner-grid p { color: var(--ink-soft); }
.section-dark .btn-outline-paper { border-color: var(--ink); color: var(--ink); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.split p + p { margin-top: 16px; }
.split .partners-cta { margin-top: 20px; }
.partner-grid p + p { margin-top: 16px; }
.partner-grid .partners-cta { margin-top: 28px; }

/* ---------- sign-up — a second red poster field ---------- */
.section-signup { --field: var(--violet); --on-field: #FFFFFF; --field-dot: var(--lime); background: var(--field); color: var(--on-field); }
.section-signup .dot { color: var(--field-dot); }
.signup-lede { margin-top: 16px; }
.signup-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.signup-row { display: flex; gap: 12px; }
.signup-input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px;
  color: var(--on-field);
  background: transparent;
  border: 2px solid var(--on-field);
  border-radius: 0;
  padding: 12px 14px;
}
.signup-input::placeholder { color: color-mix(in srgb, var(--on-field) 62%, transparent); }
.signup-input:focus-visible { outline: 2px solid var(--field-dot); outline-offset: 2px; }
.signup-input[aria-invalid="true"] { border-color: var(--field-dot); }
.signup-btn { flex: none; cursor: pointer; }
.signup-btn[disabled] { opacity: 0.6; cursor: progress; }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-status { min-height: 1.6em; margin-top: 12px; font-weight: 600; }
.signup-status:empty { min-height: 0; margin-top: 0; }
.signup-legal { margin-top: 12px; font-size: 14px; color: color-mix(in srgb, var(--on-field) 86%, transparent); }
.signup.is-done .signup-row, .signup.is-done .signup-label { display: none; }
/* success state: what happened, where the email went, and a way to fix a typo */
.signup.is-done .signup-status { margin-top: 0; }
.signup-status strong { display: block; font-size: 1.1rem; }
.signup-sent { display: block; margin-top: 4px; font-weight: 400; }
.signup-again {
  margin-top: 6px; padding: 0; min-height: 44px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- programme & rate sheets (tables, not cards) ---------- */
.sheet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.sheet-table th {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--muted);
  padding: 0 16px 12px 0;
  border-bottom: var(--rule);
}
.sheet-table td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sheet-table tbody tr { transition: background 0.15s ease; }
.t-date {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  width: 110px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.t-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.t-venue { color: var(--muted); font-size: 0.875rem; }
.t-inc { color: var(--ink-soft); font-size: 0.875rem; }
.t-status {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.t-red { color: var(--accent); font-weight: 700; }
/* keep the ticket column wide enough for three-word names on one line */
.rates th:nth-child(1) { width: 26%; }
.rates th:nth-child(2) { width: 54%; }
.rates th:nth-child(3) { width: 20%; }
.row-flag { background: var(--ink); color: var(--paper); }
.row-flag .t-venue, .row-flag .t-inc { color: var(--muted-dark); }
.row-flag .t-date { color: var(--accent-on-dark); }
.row-flag .t-red { color: var(--accent-on-dark); }
.row-flag td { border-bottom-color: transparent; }
.row-flag td:first-child { padding-left: 16px; }
.row-flag td:last-child { padding-right: 16px; }

/* ---------- manifesto points ---------- */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  padding-top: 0;
}
.point h3 { color: inherit; margin-bottom: 10px; font-size: 1.15rem; }
.point p { font-size: 1rem; }
/* topic points as colour cards */
.point { padding: 24px 24px 28px; border: var(--rule); }
.point:nth-child(1) { background: var(--violet); color: #FFFFFF; }
.point:nth-child(2) { background: var(--lime); color: var(--ink); }
.point:nth-child(3) { background: var(--pink); color: var(--ink); }

/* ---------- fact sheet (why basel) ---------- */
.fact-sheet { border-top: var(--rule); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 64px); }
.fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
}
.fact dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 3px;
}
.fact dd { color: var(--ink-soft); }

/* ---------- venues: numbered columns on a rule, like a programme sheet ---------- */
.venues {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule);
}
.venue {
  display: flex; flex-direction: column;
  padding: 20px 24px 28px 0;
  min-height: 220px;
}
.venue + .venue { padding-left: 24px; border-left: 1px solid var(--line); }
.venue-n {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 4px 8px;
  margin-bottom: 24px;
  color: var(--ink);
}
.venue:nth-child(1) .venue-n { background: var(--lime); }
.venue:nth-child(2) .venue-n { background: var(--pink); }
.venue:nth-child(3) .venue-n { background: var(--sky); }
.venue:nth-child(4) .venue-n { background: var(--orange); }
.venue-name { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.15; }
.venue-where { margin-top: 8px; font-size: 14px; color: var(--muted); }
.venue-days {
  margin-top: auto; padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* why: facts + photo side by side */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
/* stat tiles: only figures that are true today (geography, travel, dates) */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-top: var(--rule);
  border-left: var(--rule);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  gap: 10px;
  padding: 22px 22px 26px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  min-height: 190px;
}
.stat:nth-child(1) { background: var(--violet); color: #FFFFFF; }
.stat:nth-child(2) { background: var(--lime); }
.stat:nth-child(3) { background: var(--pink); }
.stat:nth-child(4) { background: var(--sky); }
.stat:nth-child(n+2) .stat-label { color: var(--ink); }
.stat:nth-child(1) .stat-label { color: #FFFFFF; }
.stat-n {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.2rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  padding: 22px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon-chev {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out-ui);
}
.faq details[open] summary .icon-chev { transform: rotate(180deg); }
.info-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.glance h3 { margin: 0 0 14px; font-weight: 700; }
.glance dl { margin: 0; }
.glance dl div { padding: 13px 0; border-bottom: var(--rule); }
.glance dt { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.glance dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.faq details p {
  padding: 0 0 22px;
  color: var(--ink-soft);
}

/* accordion height animates where supported (::details-content + interpolate-size); snap fallback elsewhere */
.faq details::details-content {
  height: 0;
  overflow: clip;
  opacity: 0;
  transition:
    height 240ms var(--ease-out-ui),
    opacity 200ms ease-out,
    content-visibility 240ms allow-discrete;
}
.faq details[open]::details-content {
  height: auto;
  opacity: 1;
  transition:
    height 300ms var(--ease-out-ui),
    opacity 240ms ease-out,
    content-visibility 300ms allow-discrete;
}

/* ---------- privacy page ---------- */
.privacy h1 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; font-stretch: 112%; }
.privacy h2 { font-size: 1.25rem; text-transform: none; font-stretch: 100%; letter-spacing: -0.01em; margin: 40px 0 10px; }
.privacy p + p, .privacy ul { margin-top: 12px; }
.privacy ul { padding-left: 1.2em; max-width: 66ch; }
/* .note is tuned for ink sections; on cream it needs the cream-safe muted */
.privacy .note { color: var(--muted); }
.privacy .note a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* ---------- mobile sticky call to action (built by main.js) ---------- */
.mobile-cta { display: none; }
@media (max-width: 880px) {
  .mobile-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px clamp(20px, 4vw, 40px) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: var(--rule);
    transform: translateY(110%);
    transition: transform 240ms var(--ease-out-ui);
  }
  .mobile-cta.is-on { transform: none; }
  body.nav-open .mobile-cta { transform: translateY(110%); }
  .mobile-cta .btn { display: block; width: 100%; text-align: center; }
  /* room so the bar never covers the last footer line */
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* touch: grow the hit area of inline email links without moving the text */
@media (pointer: coarse) {
  a.text-link[href^="mailto:"] { padding-block: 14px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: var(--rule);
  padding: clamp(48px, 6vw, 72px) 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: 16px;
}
.footer-brand b { color: var(--accent-on-dark); }
.footer-dates {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-dark);
  font-variant-numeric: tabular-nums;
}
.footer-nav { display: grid; gap: 10px; }
.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.footer-nav a:hover { color: var(--accent-on-dark); }
.footer-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-on-dark);
  margin-bottom: 10px;
}
.site-footer .text-link { color: var(--accent-on-dark); }
.site-footer .text-link:hover { color: var(--paper); }
.footer-social { margin-top: 12px; font-size: 14px; color: var(--muted-dark); }
.footer-legal {
  padding-top: 24px;
  display: grid; gap: 6px;
  font-size: 0.85rem;
  color: var(--muted-dark);
}
.footer-legal p { text-wrap: balance; }

/* ---------- responsive ---------- */
/* nav collapses earlier than the layout: six links + language switch + CTA need ~1100px (longer in DE/FR) */
@media (max-width: 1100px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav {
    opacity: 0;
    transform: translateY(-8px);
    transform-origin: top center;
    transition:
      opacity 200ms var(--ease-out-ui),
      transform 200ms var(--ease-out-ui),
      display 200ms allow-discrete,
      overlay 200ms allow-discrete;
  }
  body.nav-open .site-nav { opacity: 1; transform: none; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--line); }
  .lang-switch { margin-left: auto; }
  .lang-switch a { min-height: 44px; min-width: 40px; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle:active { transform: scale(0.97); }
}
@media (max-width: 880px) {
  .nav-row { gap: 12px; }
  .nav-cta { display: none; }
  .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .venues { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fact-sheet { grid-template-columns: 1fr; }
  .venue:nth-child(3) { padding-left: 0; border-left: 0; }
  .venue:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .footer-nav a { padding: 10px 0; }
  .footer-nav { gap: 0; }
}
@media (max-width: 700px) {
  .sheet-table thead { display: none; }
  .sheet-table, .sheet-table tbody, .sheet-table tr, .sheet-table td { display: block; width: 100%; }
  .sheet-table tbody tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .sheet-table td { border-bottom: none; padding: 2px 0; }
  .sheet-table tbody tr.row-flag { padding: 18px 16px; margin-inline: -4px; width: calc(100% + 8px); }
  .row-flag td:first-child, .row-flag td:last-child { padding-inline: 0; }
  .t-date { margin-bottom: 4px; color: var(--accent); }
  .row-flag .t-date { color: var(--accent-on-dark); }
  .t-status { margin-top: 8px; }
  .fact { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}
@media (max-width: 620px) {
  .week a { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 4px; padding: 12px 14px 14px; }
  .week-what { grid-column: 1; grid-row: 3; align-self: start; }
  .venues { grid-template-columns: 1fr; }
  .venue, .venue + .venue { padding: 18px 0 22px; border-left: 0; min-height: 0; }
  .venue + .venue { border-top: 1px solid var(--line); }
  .venue-n { margin-bottom: 12px; }
  .venue-days { padding-top: 14px; }
  .stat { min-height: 150px; padding: 18px 16px 20px; }
  .stat-n { font-size: 2.1rem; }
  .partners-cta .btn { width: 100%; text-align: center; }
  .signup-row { flex-direction: column; }
  .signup-btn { width: 100%; text-align: center; }
  .hero-title { font-stretch: 105%; }
}

/* hover states gated to hover-capable pointers — no sticky hover on touch */
@media (hover: hover) {
  .btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
  .btn-paper:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .btn-outline-paper:hover { background: var(--paper); color: var(--ink); }
  .section-dark .btn-outline-paper:hover { background: var(--ink); color: var(--paper); }
  .text-link:hover { color: var(--ink); }
  .site-nav a:hover { border-bottom-color: var(--accent); }
  .lang-switch a:not([aria-current]):hover { color: var(--accent); }
  .week a:hover { filter: brightness(1.06) saturate(1.1); }
  .footer-nav a:hover { color: var(--accent-on-dark); }
  .sheet-table tbody tr:not(.row-flag):hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav { opacity: 1; transform: none; transition: none; }
  .faq details::details-content { transition: none; }
}
