/* Straight Training Center – building fundraiser */
:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --sand: #f2e8d8;
  --sand-2: #e7d7bd;
  --ink: #231e1a;
  --muted: #675d53;
  --line: rgba(35, 30, 26, 0.13);
  --brick: #b5532b;
  --brick-dark: #8f3f1f;
  --brick-soft: #f0d2c2;
  --navy: #22306e;
  --green: #3c7a4c;
  --green-soft: #d6e8d8;
  --gold: #e2a52e;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 30, 26, .06), 0 8px 24px rgba(35, 30, 26, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 65px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brick-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 14px; display: block;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
section { padding: 88px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brick); color: var(--white); }
.btn-primary:hover { background: var(--brick-dark); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: .55em 1em; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { height: 44px; width: auto; border-radius: 4px; }
.brand span { font: 700 .95rem/1.1 var(--sans); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--brick); }
.lang { display: flex; gap: 2px; font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a, .lang span { padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 1150px) { .nav { gap: 14px; } .nav a { font-size: .88rem; } }
@media (max-width: 940px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 480px) { .brand span { display: none; } }

/* Hero */
.hero { position: relative; color: var(--white); padding: 0; min-height: 88vh; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; background: #3a2a20 url("../img/photos/hero-students.jpg") center 35% / cover no-repeat; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.15) 0%, rgba(20,14,10,.35) 40%, rgba(20,14,10,.88) 100%);
}
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.hero h1 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero { min-height: 0; } }

/* Progress card */
.progress-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.progress-card .big { font: 700 2.4rem/1 var(--serif); color: var(--ink); }
.progress-card .of { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.progress-card .of b { color: var(--ink); }
.big-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.of-goal { font: 600 1.05rem/1.2 var(--sans); color: var(--muted); }
.bar { position: relative; height: 18px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 16px 0 8px; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); width: 0; }
.bar .committed { background: repeating-linear-gradient(45deg, #e9b79c 0 6px, #f0cbb6 6px 12px); }
.bar .received { background: var(--brick); }
.bar.spent { height: 8px; margin-top: 6px; }
.bar.spent .spent-fill { background: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); margin: 10px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend b { color: var(--ink); font-weight: 600; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.received { background: var(--brick); }
.swatch.committed { background: repeating-linear-gradient(45deg, #e9b79c 0 3px, #f0cbb6 3px 6px); }
.swatch.spent { background: var(--ink); }
.next-milestone {
  margin-top: 18px; padding: 14px 16px; background: var(--sand); border-radius: 10px;
  font-size: .95rem; border-left: 4px solid var(--gold);
}
.next-milestone strong { display: block; font-size: 1.05rem; }
.next-milestone .rain { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-style: normal; font-size: .88rem; color: var(--brick-dark); }
.next-milestone .rain[hidden] { display: none; }
.progress-card .btn { width: 100%; margin-top: 16px; }
.source-note { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* Stats strip */
.stats { background: var(--navy); color: var(--white); padding: 28px 0; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li { text-align: center; }
.stats b { display: block; font: 700 2rem/1.1 var(--serif); color: var(--gold); }
.stats span { font-size: .9rem; color: rgba(255,255,255,.85); }
@media (max-width: 700px) { .stats ul { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }

/* Two-column story */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; background: var(--white); }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-stack .photo:first-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }

blockquote {
  margin: 28px 0 0; padding: 20px 24px; background: var(--white); border-radius: var(--radius);
  border-left: 4px solid var(--brick); font-family: var(--serif); font-size: 1.12rem; box-shadow: var(--shadow);
}
blockquote cite { display: block; margin-top: 10px; font: italic .9rem var(--sans); color: var(--muted); }


/* Why cards */
.why { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brick-soft); color: var(--brick-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Building & phases */
.phases { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; }
.phase {
  display: grid; grid-template-columns: 64px 1fr 220px; gap: 20px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
  border: 2px solid transparent;
}
.phase.is-next { border-color: var(--gold); }
.phase-num { font: 700 1.5rem/1 var(--serif); color: var(--navy); text-align: center; }
.phase-num small { display: block; font: 600 .65rem/1 var(--sans); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.phase h3 { margin: 0 0 2px; font-size: 1.1rem; }
.phase p { margin: 0; color: var(--muted); font-size: .93rem; }
.phase .unlocks { color: var(--ink); margin-top: 4px; }
.phase .unlocks::before { content: "→ "; color: var(--brick); font-weight: 700; }
.phase-fund .amount { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.phase-fund .amount b { color: var(--ink); }
.phase-fund .bar { height: 10px; margin: 6px 0; }
.badge { display: inline-block; font: 600 .72rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; letter-spacing: .03em; }
.badge.done { background: var(--green-soft); color: var(--green); }
.badge.building { background: #fbecc8; color: #8a5a00; }
.badge.planned { background: var(--sand); color: var(--muted); }
@media (max-width: 760px) {
  .phase { grid-template-columns: 48px 1fr; }
  .phase-fund { grid-column: 1 / -1; }
}

/* Diary */
.diary { background: var(--ink); color: var(--paper); }
.diary .lead { color: rgba(251,247,240,.75); }
.diary .eyebrow { color: var(--gold); }
.diary-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 340px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin-top: 32px;
  scrollbar-color: var(--brick) transparent;
}
.diary-track figure { margin: 0; scroll-snap-align: start; background: #2f2924; border-radius: var(--radius); overflow: hidden; }
.diary-track img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.diary-track figcaption { padding: 14px 16px 18px; font-size: .93rem; color: rgba(251,247,240,.85); }
.diary-track time { display: block; font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.diary-controls { display: flex; gap: 8px; justify-content: flex-end; }
.diary-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(251,247,240,.3); background: transparent; color: var(--paper); cursor: pointer; font-size: 1.1rem; }
.diary-controls button:hover { background: rgba(251,247,240,.1); }
.diary blockquote { background: #2f2924; color: var(--paper); box-shadow: none; }
.diary blockquote cite { color: rgba(251,247,240,.65); }
.diary-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
@media (max-width: 600px) { .diary-controls { display: none; } }

/* Partner */
.partner-logo { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.tranches { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.tranches li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; background: var(--white); padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); }
.tranches .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--sand); color: var(--muted); }
.tranches .tick.ok { background: var(--green); color: var(--white); }
.tranches b { font-family: var(--serif); }
.tranches .amt { font-weight: 700; white-space: nowrap; }

/* Transparency */
.transparency { background: var(--sand); }
.ledger-panel { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.ledger-panel h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ledger-panel h3 span { font: 400 .85rem var(--sans); color: var(--muted); }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 14px 0; font-size: .95rem; }
.cat-row .bar { grid-column: 1 / -1; height: 8px; margin: 0; }
.cat-row .bar i { background: var(--navy); }
.spend { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; margin: 14px 0 6px; }
.donut { position: relative; width: 170px; aspect-ratio: 1; }
.donut svg { display: block; width: 100%; height: 100%; }
.donut .seg { fill: none; stroke-width: 30; cursor: pointer; transition: opacity .2s, stroke-width .2s; }
.donut .seg:hover { stroke-width: 36; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 0 38px; }
.donut-center b { font: 700 1.15rem/1.1 var(--serif); }
.donut-center span { font-size: .72rem; color: var(--muted); line-height: 1.2; margin-top: 3px; }
.spend-legend { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.spend-legend li { display: grid; grid-template-columns: 12px 1fr auto 3.6em; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 6px; cursor: default; transition: opacity .2s, background .2s; }
.spend-legend li:hover, .spend-legend li:focus-visible { background: var(--sand); outline: none; }
.spend-legend i { width: 12px; height: 12px; border-radius: 3px; }
.spend-legend em { font-style: normal; color: var(--muted); text-align: right; font-size: .85rem; }
.spend .dim { opacity: .3; }
@media (max-width: 520px) { .spend { grid-template-columns: 1fr; justify-items: center; } .spend-legend { width: 100%; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--white); font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

/* Donate */
.donate { background: var(--paper); }
.gifts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 32px 0 40px; }
.gift { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; }
.gift b { display: block; font: 700 1.7rem/1 var(--serif); color: var(--brick); margin-bottom: 6px; }
.gift span { font-size: .9rem; color: var(--muted); display: block; }
.gift em { font-style: normal; font-size: .78rem; color: var(--muted); display: block; margin-top: 6px; }
@media (max-width: 900px) { .gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gift span, .gift em { hyphens: auto; overflow-wrap: break-word; }

.fields { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 20px; }
.field { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field dt { font-size: .85rem; color: var(--muted); }
.field dd { margin: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; word-break: break-all; }
.copy {
  border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 10px;
  font: 600 .8rem var(--sans); cursor: pointer; color: var(--ink); white-space: nowrap;
  justify-self: end;
}
.copy:hover { border-color: var(--brick); color: var(--brick); }
.copy.done { background: var(--green); color: var(--white); border-color: var(--green); }
@media (max-width: 560px) { .field { grid-template-columns: 1fr auto; } .field dt { grid-column: 1 / -1; } }
.note { background: var(--sand); border-radius: 10px; padding: 14px 16px; font-size: .92rem; margin-top: 16px; }
.note.warn { background: #fbecc8; }

/* Region picker */
.region-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin: 14px 0 24px; }
.region-picker button {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px 10px; cursor: pointer;
  text-align: left; font: inherit; color: var(--ink); display: grid; gap: 2px; transition: border-color .15s, background .15s;
}
.region-picker button b { font-size: .95rem; }
.region-picker button span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.region-picker button:hover { border-color: var(--brick); }
.region-picker button[aria-checked="true"] { border-color: var(--brick); background: var(--brick-soft); box-shadow: inset 0 0 0 1px var(--brick); }
.region-panel { max-width: 760px; }
.region-panel h3 { margin-bottom: 14px; }
.field dd.soon { font-family: var(--sans); color: var(--muted); font-style: italic; }
.field-links { grid-column: 2 / -1; font-size: .85rem; margin-top: -4px; }
.field.has-qr { grid-template-columns: 150px 1fr auto; }
.qr-inline { grid-column: 2; width: 132px; height: 132px; margin-top: 4px; }
.note.pending { background: var(--sand); border-left: 4px solid var(--gold); margin: 0 0 16px; }
.partner-note { max-width: 760px; margin-top: 28px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.partner-note[hidden] { display: none; }
.partner-note h3 { font-size: 1.1rem; }
.partner-note p:last-child { margin: 0; }
@media (max-width: 560px) { .field-links, .qr-inline { grid-column: 1 / -1; } }

/* Life & video */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; margin-top: 32px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; color: var(--white); font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
.videos { display: grid; grid-template-columns: 1fr 240px; gap: 28px; margin-top: 8px; scroll-margin-top: 90px; align-items: start; }
.videos video { border-radius: var(--radius); background: #000; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.vimeo-facade {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat;
  display: grid; place-items: center; cursor: pointer; border: 0; width: 100%; color: var(--white); padding: 0;
}
.vimeo-facade::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.vimeo-facade .play { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px; }
.vimeo-facade .play i { width: 72px; height: 72px; border-radius: 50%; background: var(--brick); display: grid; place-items: center; font-style: normal; font-size: 1.6rem; }
.vimeo-facade small { font-size: .78rem; opacity: .85; max-width: 40ch; }
.vimeo-wrap iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } .videos video { max-width: 320px; margin: 0 auto; } }

/* Supporters */
.supporters { background: var(--white); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.logos > .logo-tile { flex: 0 1 200px; }
@media (max-width: 600px) { .logos > .logo-tile { flex-basis: calc(50% - 8px); } }
.logo-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; place-items: center;
  min-height: 120px; text-decoration: none; color: var(--ink);
}
.logo-tile img { max-height: 70px; width: auto; object-fit: contain; }
.logo-tile.tui { padding: 28px; }
.wordmark { font: 600 1.15rem/1.15 var(--serif); text-align: center; color: #2f5d4a; letter-spacing: .01em; }
.wordmark small { display: block; font: 600 .62rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* FAQ */
.faq details { background: var(--white); border-radius: 12px; margin: 10px 0; box-shadow: var(--shadow); }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brick); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* Contact & footer */
.contact { background: var(--navy); color: var(--white); }
.contact a { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.contact-grid div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 20px; }
.contact-grid b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 6px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid div, .gift b { min-width: 0; overflow-wrap: anywhere; }
.site-footer { background: #171c3f; color: rgba(255,255,255,.7); padding: 32px 0; font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: rgba(255,255,255,.85); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar > i { transition: none; }
}

.badge.next { background: var(--brick-soft); color: var(--brick-dark); }

/* Track record */
.track { background: var(--paper); }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.track .card p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.track .card p.small { margin: 0; }
.track .card .badge { margin-bottom: 12px; }
@media (max-width: 760px) { .track-grid { grid-template-columns: 1fr; } }

.other-currency { margin: -12px 0 24px; }

/* Where the money goes */
.stats a { color: inherit; text-decoration: none; display: block; }
.stats a:hover span { text-decoration: underline; }
.overhead { background: var(--white); }
.compare { display: grid; gap: 28px; margin: 32px 0 40px; }
.compare-row h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; font-size: 1.1rem; }
.compare-row h3 strong { font-weight: inherit; }
.compare-row h3 span { font: 400 .85rem var(--sans); color: var(--muted); }
.stack { display: flex; height: 34px; border-radius: 8px; overflow: hidden; background: var(--sand); }
.stack i { display: flex; align-items: center; justify-content: center; font: 600 .85rem/1 var(--sans); font-style: normal; color: var(--white); min-width: 3px; overflow: hidden; white-space: nowrap; }
.seg-project { background: var(--green); }
.seg-project.soft { background: #9cc3a5; color: #1f4a2b; }
.overhead .stack .seg-admin, .overhead .stack .seg-fund { opacity: .75; }
.seg-admin { background: var(--gold); }
.seg-fund { background: var(--brick); }
.seg-fees { background: var(--muted); }
.seg-fx { background: #a89a8c; }
.swatch.seg-fx { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.swatch.seg-project, .swatch.seg-admin, .swatch.seg-fund, .swatch.seg-fees { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.overhead-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.overhead .checklist { margin-top: 0; }
.seal-card { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.seal-card h3 { margin: 0; font-size: 1.4rem; }
.seal-card .kicker { margin: 2px 0 14px; font-weight: 600; color: var(--brick-dark); }
.seal-card p { margin: 0 0 12px; }
.seal-card p:last-child { margin: 0; }
.compare-title { margin: 32px 0 8px; font-size: 1.1rem; }
.facts { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; max-width: 75ch; }
.sources { margin: 16px 0 0; padding-left: 20px; font-size: .78rem; color: var(--muted); display: grid; gap: 4px; overflow-wrap: anywhere; }
.overhead sup a { text-decoration: none; padding: 0 2px; }
@media (max-width: 760px) { .overhead-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 700px) { .stats li:last-child { grid-column: 1 / -1; } }
@media (min-width: 701px) { .stats ul { grid-template-columns: repeat(5, 1fr); } }


/* Share */
.share-link { display: block; text-align: center; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.share-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.share-box h3 { margin: 0 0 4px; }
.share-box p { margin: 0; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Story: portrait */
.photo-stack.has-portrait { grid-template-columns: 1fr; }
.photo-stack .portrait { max-width: 300px; justify-self: center; }
.photo-stack .portrait img { aspect-ratio: 1; object-fit: cover; }
@media (max-width: 700px) { .photo-stack.has-portrait .photo:not(.portrait) { display: none; } .photo-stack .portrait { max-width: 220px; } }

/* Photo timeline: photo and text alternate around a centre line */
.timeline-wrap { margin-top: 56px; }
.timeline-head { font-size: 1.5rem; margin: 0 0 24px; text-align: center; }
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; display: grid; gap: 28px; max-width: 980px; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--sand-2); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 160px 1fr; align-items: center; }
.tl-item.side-a { grid-template-areas: "photo year text"; }
.tl-item.side-b { grid-template-areas: "text year photo"; }
.tl-item:not(.has-photo).side-a { grid-template-areas: ". year text"; }
.tl-item:not(.has-photo).side-b { grid-template-areas: "text year ."; }
.tl-year { grid-area: year; justify-self: center; position: relative; z-index: 1; background: var(--paper); border: 2px solid var(--brick); color: var(--brick-dark); border-radius: 999px; padding: 4px 12px; font: 700 1rem/1.2 var(--serif); text-align: center; white-space: nowrap; }
.tl-item.now .tl-year { background: var(--brick); color: var(--white); }
.tl-item.next .tl-year { border-style: dashed; border-color: var(--gold); color: var(--ink); }
.tl-text { grid-area: text; }
.side-b .tl-text { text-align: right; }
.tl-text h3 { margin: 0 0 4px; font-size: 1.2rem; }
.tl-text p { margin: 0; color: var(--muted); }
.tl-item.next h3 { color: var(--brick-dark); }
.tl-photo { grid-area: photo; margin: 0; position: relative; display: block; }
.tl-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.tl-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,.6); color: var(--white); display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; transition: transform .2s, background .2s; }
.tl-video:hover .tl-play { transform: scale(1.1); background: var(--brick); }
@media (max-width: 700px) {
  .timeline::before { left: 7px; }
  .timeline { gap: 18px; padding-left: 26px; }
  .tl-item, .tl-item.side-a, .tl-item.side-b, .tl-item:not(.has-photo).side-a, .tl-item:not(.has-photo).side-b {
    grid-template-columns: 1fr 104px; grid-template-areas: "year year" "text photo"; gap: 6px 12px; align-items: start; }
  .tl-item:not(.has-photo) { grid-template-columns: 1fr; grid-template-areas: "year" "text"; }
  .tl-year { justify-self: start; margin-left: -34px; font-size: .9rem; padding: 2px 10px; }
  .side-b .tl-text { text-align: left; }
  .tl-text h3 { font-size: 1.05rem; }
  .tl-text p { font-size: .95rem; }
  .tl-photo img { aspect-ratio: 1; border-radius: 8px; }
  .tl-play { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: .9rem; }
  .tl-item.minor { display: none; }
}
/* scroll-in animation (only when JS is running and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .anim .tl-item { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .anim .tl-item.in { opacity: 1; transform: none; }
  .anim .tl-photo img { transform: scale(.94); transition: transform .8s ease .1s; }
  .anim .tl-item.in .tl-photo img { transform: none; }
}

/* Partner quote with photo */
.quote-with-photo { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.quote-with-photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.quote-with-photo blockquote { margin: 0; }

/* 3D building model */
.model { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; margin: 36px 0 44px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.m-svg svg { display: block; width: 100%; height: auto; }
.m-part { cursor: pointer; transition: opacity .25s; }
.m-part.dim { opacity: .1; }
.m-part.m-ground.dim { opacity: .55; }
.m-roof-top { fill-opacity: .12; transition: fill-opacity .3s; pointer-events: none; }
.m-gable { pointer-events: none; }
.roof-on .m-roof-top { fill-opacity: .85; stroke-dasharray: none; }
.m-head { margin: 0 0 10px; }
.m-info { min-height: 150px; }
.m-info h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.m-info p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.m-hint { font-style: italic; }
.m-incl b { color: var(--ink); }
.m-bar { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.m-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.m-amt { font-weight: 600; color: var(--ink) !important; }
.m-badge { display: inline-block; font: 600 .72rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.m-chip { font: 600 .9rem var(--sans); min-width: 44px; padding: 8px 12px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; color: var(--ink); }
.m-chip[aria-pressed="true"] { border-color: var(--ink); }
.m-built { background: rgb(60,122,76); color: #fff; }
.m-funded { background: rgb(134,186,146); }
.m-partly { background: rgb(226,165,46); }
.m-open { background: rgb(222,210,190); }
.m-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.m-legend li { display: flex; align-items: center; gap: 6px; }
.m-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 800px) {
  .model { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .m-info { min-height: 0; }
}

/* Partner: logo and quote side by side with the text */
.partner-side { display: grid; gap: 24px; align-content: start; }
.partner-side .quote-with-photo { margin: 0; }
#partner .split { align-items: start; }

/* Gallery: fill gaps */
.gallery { grid-auto-flow: dense; }

/* Supporter logos: clickable tiles react to the mouse */
a.logo-tile { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.logo-tile img { transition: transform .25s ease; }
@media (hover: hover) {
  a.logo-tile:hover, a.logo-tile:focus-visible { transform: translateY(-4px); border-color: var(--brick); box-shadow: 0 10px 24px rgba(35,30,26,.12); }
  a.logo-tile:hover img { transform: scale(1.06); }
  a.logo-tile::after { content: "↗"; position: absolute; top: 8px; right: 10px; font-size: .85rem; color: var(--brick); opacity: 0; transition: opacity .2s; }
  a.logo-tile:hover::after { opacity: 1; }
}
a.logo-tile { position: relative; }
html { scroll-padding-top: 65px; }

/* Partner photo: rounded rectangle, big enough to see faces */
.quote-with-photo { grid-template-columns: 1fr; gap: 14px; }
.quote-with-photo img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 607 / 387; border-radius: 12px; object-fit: cover; }

/* Track record: soft, blurred photo slides behind the text */
.track .card.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.card-bg { position: absolute; inset: 0; z-index: -1; }
.card-bg img { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(5px) saturate(.9); opacity: 0; }
.card-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .8); }
.card-bg img:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .card-bg img { animation: card-slide 15s infinite; }
  .card-bg img:nth-child(2) { animation-delay: 5s; }
  .card-bg img:nth-child(3) { animation-delay: 10s; }
  .card-bg img:first-child { opacity: 0; }
}
@keyframes card-slide { 0% { opacity: 0; } 8% { opacity: 1; } 33% { opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; } }

/* Timeline: larger text */
.tl-text h3 { font-size: 1.35rem; }
.tl-text p { font-size: 1.05rem; }
.tl-year { font-size: 1.15rem; padding: 6px 14px; }
@media (max-width: 700px) { .tl-text h3 { font-size: 1.12rem; } .tl-text p { font-size: 1rem; } .tl-year { font-size: .98rem; padding: 3px 10px; } }

/* Why: faint photo of a class on the floor of a rented room behind the cards */
#why { background: linear-gradient(rgba(242, 232, 216, .9), rgba(242, 232, 216, .9)), url("../img/photos/why-bg.jpg") center / cover no-repeat; }

/* Phases: compact rows, details behind + */
.phase.collapsible { grid-template-columns: 64px 1fr 220px 40px; padding: 12px 18px; }
.phase.collapsible:not(.open) > div > p { display: none; }
.phase.collapsible h3 { margin: 0; }
.phase-toggle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font: 600 1.2rem/1 var(--sans); color: var(--brick-dark); cursor: pointer; }
.phase-toggle:hover { border-color: var(--brick); }
.phase.is-funded .bar i { background: var(--green); }
@media (max-width: 760px) {
  .phase.collapsible { grid-template-columns: 44px 1fr 40px; }
  .phase.collapsible .phase-fund { grid-column: 1 / -1; grid-row: 2; }
}

/* Partner: photo inside the quote box */
.quote-card { margin: 0; overflow: hidden; }
.q-photo { float: right; width: 150px; margin: 2px 0 10px 16px; position: relative; }
.q-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.q-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; border-radius: 0 0 10px 10px; font: 600 .72rem/1.2 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
@media (max-width: 480px) { .q-photo { width: 110px; } }

/* Track record: photos faint but sharp */
.card-bg img { filter: none; inset: 0; width: 100%; height: 100%; }
.card-bg::after { background: rgba(255, 255, 255, .84); }

/* Supporter logos: stronger hover */
@media (hover: hover) {
  a.logo-tile:hover, a.logo-tile:focus-visible { border-color: var(--brick); box-shadow: 0 0 0 2px var(--brick), 0 12px 28px rgba(35, 30, 26, .16); }
  a.logo-tile::after { font-size: 1.35rem; font-weight: 800; top: 6px; right: 10px; }
}

/* Diary: live photos */
.diary-track figure[data-live] { position: relative; }
.diary-track figure video { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.diary-track figure.playing video { opacity: 1; }
.diary-track figure.is-live::before { content: "LIVE"; position: absolute; top: 10px; left: 10px; z-index: 2; font: 700 .65rem/1 var(--sans); letter-spacing: .08em; color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 7px; border-radius: 999px; }

/* Phone: timeline text back to the earlier size */
@media (max-width: 700px) { .tl-text h3 { font-size: 1.05rem; } .tl-text p { font-size: .95rem; } .tl-year { font-size: .9rem; padding: 2px 10px; } }

/* Roof drawing in the timeline: show it whole */
.tl-item.next .tl-photo img { object-fit: contain; background: var(--white); }

/* Modest: name on the photo */
.photo.portrait { position: relative; }
.photo.portrait .pic { position: relative; display: block; }
.name-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font: 600 .95rem/1 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); border-radius: 0 0 12px 12px; pointer-events: none; }

/* Phases: details slide down below the row, like paper coming out */
.phase.collapsible:not(.open) > div > p { display: block; }
.phase-details { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.phase.open .phase-details { grid-template-rows: 1fr; }
.phase-details-inner { overflow: hidden; margin: 0 6px; }
.phase-details-inner p:first-child { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.phase-details-inner p { transform: translateY(-12px); opacity: 0; transition: transform .4s ease, opacity .3s ease; }
.phase.open .phase-details-inner p { transform: none; opacity: 1; }
.phase.open { box-shadow: 0 14px 30px rgba(35, 30, 26, .14); }
@media (max-width: 760px) { .phase-details { grid-row: 3; } }

/* Why cards on phones: icon + title, tap to open */
.why-plus { display: none; }
@media (max-width: 700px) {
  #why .cards { gap: 10px; }
  #why .card.foldable { padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 4px 12px; }
  #why .card.foldable .icon { margin: 0; width: 36px; height: 36px; }
  #why .card.foldable h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
  .why-plus { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); font: 600 1rem/1 var(--sans); color: var(--brick-dark); }
  #why .card.foldable .why-text { grid-column: 1 / -1; display: none; margin-top: 6px; }
  #why .card.foldable.open .why-text { display: block; }
}

/* Gifts: amounts stay on one line */
.gift b { white-space: nowrap; overflow: hidden; }

/* Donation tiles: centred rows with small icons, details centred below */
.region-picker { display: flex; flex-wrap: wrap; justify-content: center; }
.region-picker button { flex: 0 1 150px; }
.r-icon { display: block; width: 26px; height: 26px; margin-bottom: 8px; }
.r-icon.flag { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
#donate #region-label, #donate #region-label + p, #donate .other-currency { text-align: center; }
.region-panel, .partner-note { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .region-picker button { flex-basis: calc(50% - 4px); } }

/* Track record: one slideshow behind the section, cards stay plain white */
.track { position: relative; overflow: hidden; isolation: isolate; }
.track-bg { position: absolute; inset: 0; z-index: -1; }
.track-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.track-bg img:first-child { opacity: 1; }
.track-bg::after { content: ""; position: absolute; inset: 0; background: rgba(251, 247, 240, .9); }
@media (prefers-reduced-motion: no-preference) {
  .track-bg img { animation: track-slide 30s infinite; }
  .track-bg img:first-child { opacity: 0; }
  .track-bg img:nth-child(2) { animation-delay: 5s; }
  .track-bg img:nth-child(3) { animation-delay: 10s; }
  .track-bg img:nth-child(4) { animation-delay: 15s; }
  .track-bg img:nth-child(5) { animation-delay: 20s; }
  .track-bg img:nth-child(6) { animation-delay: 25s; }
}
@keyframes track-slide { 0% { opacity: 0; } 4% { opacity: 1; } 17% { opacity: 1; } 21% { opacity: 0; } 100% { opacity: 0; } }

/* Live photos: pointer, and a hint when the browser blocks hover play */
.diary-track figure.is-live { cursor: pointer; }
.diary-track figure.is-live::before { content: "▶ LIVE"; }
.diary-track figure.needs-click:not(.playing)::before { content: "▶ Click to play"; }
html[lang="de"] .diary-track figure.needs-click:not(.playing)::before { content: "▶ Klicken zum Abspielen"; }
#donate .wrap > p.small { text-align: center; }

/* Donation tiles: the colourful logo leads; on hover or when chosen it floats into the background and the details appear */
.region-picker button { position: relative; overflow: hidden; min-height: 118px; text-align: center; align-content: end; padding: 12px 10px 12px; }
.region-picker .r-icon { position: absolute; top: 14px; left: 50%; margin: 0; width: 40px; height: 40px; transform: translateX(-50%); transition: top .45s cubic-bezier(.2, .8, .2, 1), left .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.region-picker .r-icon.flag { width: 50px; height: 33px; top: 18px; }
.region-picker button b, .region-picker button span { position: relative; z-index: 1; }
.region-picker button span { opacity: 0; max-height: 0; overflow: hidden; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease, max-height .35s ease; }
/* hover / chosen: the logo or flag grows to fill the whole tile (no tilt) and shows through */
.region-picker button:hover .r-icon.r-icon.r-icon, .region-picker button:focus-visible .r-icon.r-icon.r-icon, .region-picker button[aria-checked="true"] .r-icon.r-icon.r-icon {
  top: 0; left: 0; width: 100%; height: 100%; transform: none; opacity: .42; border-radius: 0; }
.region-picker button[aria-checked="true"] { background: var(--white); }
.region-picker button[aria-checked="true"] b { font-size: 1.08rem; }
.region-picker button[aria-checked="true"] span { font-size: .86rem; color: var(--ink); }
.region-picker button:hover b, .region-picker button:focus-visible b, .region-picker button[aria-checked="true"] b,
.region-picker button:hover span, .region-picker button:focus-visible span, .region-picker button[aria-checked="true"] span { text-shadow: 0 0 6px #fff, 0 0 3px #fff, 0 0 1px #fff; }
.region-picker button:hover span, .region-picker button:focus-visible span, .region-picker button[aria-checked="true"] span { opacity: 1; transform: none; max-height: 3.2em; }
@media (prefers-reduced-motion: reduce) { .region-picker .r-icon, .region-picker button span { transition: none; } }

/* Live photos on phones: the label hints that a tap plays it */
@media (hover: none) { .diary-track figure.is-live:not(.playing)::before { content: "▶ LIVE"; } }

/* Square Swiss flag, currency badge in the tile corner */
.region-picker .r-icon.flag.square { width: 36px; height: 36px; top: 14px; }
.r-cur { position: absolute; top: 8px; right: 8px; z-index: 1; font: 700 .72rem/1 var(--sans); font-style: normal; color: var(--brick-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; }
.region-picker button[aria-checked="true"] .r-cur { background: var(--white); border-color: var(--brick); }

/* Story: portrait only, timeline heading as a title, less space between */
#story { padding-bottom: 48px; }
#story .split { align-items: center; }
.photo-stack .portrait { max-width: 360px; }
.timeline-wrap { margin-top: 28px; }
.timeline-head { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 32px; }

/* Contact: one compact band with a faint photo behind it */
.contact { position: relative; padding: 56px 0; background: linear-gradient(rgba(34, 48, 110, .9), rgba(23, 28, 63, .94)), url("../img/photos/hero-students.jpg") center 40% / cover no-repeat; }
.contact-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.contact h2 { color: var(--white); margin-bottom: 8px; }
.contact-band p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 46ch; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions .btn { display: flex; align-items: center; gap: 14px; justify-content: flex-start; padding: 12px 20px; border-radius: 14px; text-align: left; color: var(--white); }
.contact-actions .btn svg { width: 28px; height: 28px; flex: none; }
.contact-actions .btn span { display: grid; font-weight: 700; }
.contact-actions .btn small { font-weight: 400; font-size: .85rem; opacity: .9; overflow-wrap: anywhere; }
.btn-wa { background: #25d366; color: #0b3d22 !important; }
.btn-wa:hover { background: #1fb457; }
.btn-mail { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); }
.btn-mail:hover { background: rgba(255, 255, 255, .2); }
.contact-addr { font-size: .85rem; color: rgba(255, 255, 255, .7) !important; }
@media (max-width: 760px) { .contact { padding: 40px 0; } .contact-band { grid-template-columns: 1fr; gap: 20px; } }
/* Contact: label and number/address on one line on computers */
@media (min-width: 900px) {
  .contact-band { grid-template-columns: 1fr auto; }
  .contact-actions .btn span { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
  .contact-actions .btn small { font-size: .95rem; overflow-wrap: normal; }
  .contact-actions .btn { padding: 14px 24px; }
  .contact-addr { white-space: nowrap; }
}

/* Student voices: handwritten answers, replayed stroke by stroke */
.voices { background: var(--paper); padding-top: 64px; }
.voices-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(720px, 86vw); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 24px; margin-top: 28px;
  scroll-padding-inline: max(20px, calc((100vw - var(--wrap)) / 2 + 20px));
  scrollbar-color: var(--brick) transparent;
}
.voice { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.voice-paper { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  background: #fffdf8; }
.voice-paper svg { width: 100%; height: 100%; overflow: visible; }
.voice-paper path { fill: none; stroke: var(--navy); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.voice-pen { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--brick); border: 1px solid var(--line); opacity: .85; transition: opacity .2s; }
.voice-pen svg { width: 16px; height: 16px; }
.voice.writing .voice-pen { opacity: 0; }
.voice blockquote { margin: 0; padding: 18px 20px 6px; border: 0; border-radius: 0; background: none; box-shadow: none; quotes: none; font: italic 1.05rem/1.5 var(--serif); color: var(--ink); flex: 1; }
.voice figcaption { padding: 0 20px 18px; font: 600 .82rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--brick); }
.voices .diary-controls button { border-color: var(--line); color: var(--ink); }
.voices .diary-controls button:hover { background: var(--sand); }
.voices-note { margin-top: 4px; font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) { .voices-track { gap: 14px; } .voice blockquote { font-size: 1rem; } }
.voices .lead { max-width: none; }

/* Our own film (16:9, self-hosted) next to the Vimeo documentary */
.videos { grid-template-columns: 3fr 2fr; align-items: end; }
.videos video.film { aspect-ratio: 16 / 9; object-fit: contain; max-width: none; }
.videos .doc .muted { font-size: .95rem; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } .videos video.film { max-width: none; margin: 0; } }

/* Card / TWINT option: link out to the Infomaniak shop, fee table */
.cta-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border-left: 4px solid var(--brick); }
.cta-box p { margin: 0 0 14px; }
.cta-box p:last-child { margin: 14px 0 0; }
.pay-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-line { margin: 0 0 8px; }
.pay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; }
.pay-btn .r-icon { width: 26px; height: 26px; flex: none; }
.pay-btn i { font-style: normal; opacity: .75; }
@media (max-width: 560px) { .pay-btn { width: 100%; } }
.region-panel h4 { margin: 24px 0 8px; font-size: 1.02rem; }
.fee-table { width: 100%; max-width: 520px; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); margin: 12px 0 8px; font-size: .94rem; }
.fee-table th, .fee-table td { padding: 9px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.fee-table th:first-child, .fee-table td:first-child { text-align: left; }
.fee-table th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--paper); }
.fee-table tr:last-child td { border-bottom: 0; }

.region-picker button b, .region-picker button span { white-space: nowrap; }

/* Brand marks on the tiles; white outline so the label stays readable over a filled logo */
.r-icon.brand { border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.region-picker button:hover b, .region-picker button:focus-visible b, .region-picker button[aria-checked="true"] b,
.region-picker button:hover span, .region-picker button:focus-visible span, .region-picker button[aria-checked="true"] span {
  -webkit-text-stroke: 4px #fff; paint-order: stroke fill; text-shadow: 0 0 8px #fff, 0 0 4px #fff; }
.pay-btn .r-icon.flag.creditcard { width: 38px; height: 25px; }
@media (max-width: 360px) { .region-picker button b, .region-picker button span { white-space: normal; } }
