/* ============================================================
   CASAM — Variante A · "Classico mediterraneo"
   Museum-editorial: serif display, travertine paper, Pompeii red,
   deep Mediterranean blue, bronze details.
   ============================================================ */

:root {
  --paper: #F6F1E6;
  --paper-alt: #EFE7D4;
  --card: #FCF9F1;
  --ink: #241E14;
  --ink-soft: #6A6050;
  --terra: #A6432D;
  --terra-deep: #7C3021;
  --sea: #1E3A5F;
  --sea-deep: #142840;
  --bronze: #A5813F;
  --line: #DACFB6;
  --line-soft: #E6DDC8;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-deep); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

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

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 18px;
}
.h1, h1 { font-size: clamp(38px, 5.2vw, 62px); }
.h2, h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); }
h4 { font-size: 19px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; }
.section-sub { max-width: 760px; font-size: 17px; color: var(--ink-soft); }

/* ---------- layout ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section-inner.narrow { max-width: 840px; }
.section-inner.center { text-align: center; }
.alt-bg { background: var(--paper-alt); }
.dark-bg { background: var(--sea-deep); color: #EFE8D8; }
.dark-bg .kicker { color: var(--bronze); }
.dark-bg h2, .dark-bg h3 { color: #F6EFDE; }

/* double hairline divider between sections */
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(92%, var(--maxw)); height: 5px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft);
  pointer-events: none;
}
.alt-bg + .section::before, .section + .alt-bg::before,
.dark-bg + .section::before, .section + .dark-bg::before,
.alt-bg + .dark-bg::before, .dark-bg + .alt-bg::before { display: none; }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse { grid-template-columns: 5fr 7fr; }
.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(36, 30, 20, 0.08); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; color: var(--terra); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: 0.14em; }
.brand-sub { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: clamp(14px, 2vw, 26px); }
.site-nav a {
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--terra); }
.site-nav a.is-current { color: var(--terra); border-bottom-color: var(--terra); }
.nav-extra { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.lang-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  background: none; border: none; cursor: pointer; color: var(--ink-soft); padding: 4px 3px;
}
.lang-btn.is-active { color: var(--terra); text-decoration: underline; text-underline-offset: 4px; }
.lang-sep { color: var(--line); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 28px; border: 1px solid var(--terra);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer; background: none; text-align: center;
}
.btn-primary { background: var(--terra); color: #FBF6EA; }
.btn-primary:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: #FBF6EA; }
.btn-ghost { color: var(--terra); }
.btn-ghost:hover { background: var(--terra); color: #FBF6EA; }
.dark-bg .btn-ghost { color: #EFE8D8; border-color: #EFE8D8; }
.dark-bg .btn-ghost:hover { background: #EFE8D8; color: var(--sea-deep); }
.btn-small { padding: 9px 18px; font-size: 12px; }
.btn-nav { border-color: var(--sea); color: var(--sea); }
.btn-nav:hover { background: var(--sea); color: var(--paper); }
.text-link {
  font-weight: 600; color: var(--terra);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* ---------- hero (index) ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #F5EEDD; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.35) 0%, rgba(20, 22, 28, 0.18) 40%, rgba(16, 16, 14, 0.78) 100%);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 120px var(--pad) 96px; width: 100%; }
.hero .kicker { color: #D9B87A; }
.hero-title { font-size: clamp(38px, 5.4vw, 68px); max-width: 17em; color: #FAF4E4; }
.hero-title .accent { font-style: italic; font-weight: 500; color: #DFC08A; display: block; }
.hero-sub { max-width: 620px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(245, 238, 221, 0.92); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-primary { border-color: var(--terra); }
.hero .btn-ghost { color: #F5EEDD; border-color: rgba(245, 238, 221, 0.7); }
.hero .btn-ghost:hover { background: #F5EEDD; color: var(--ink); border-color: #F5EEDD; }
.hero-caption, .page-hero .hero-caption {
  position: absolute; right: 18px; bottom: 12px; margin: 0;
  font-family: var(--serif); font-style: italic; font-size: 12.5px;
  color: rgba(245, 238, 221, 0.75); max-width: 380px; text-align: right;
}

/* ---------- page hero (subpages) ---------- */
.page-hero { position: relative; padding: clamp(70px, 9vw, 120px) 0 clamp(56px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.page-hero.has-img { min-height: 62vh; display: flex; align-items: flex-end; color: #F5EEDD; border-bottom: none; }
.ph-media { position: absolute; inset: 0; overflow: hidden; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-img .hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 32, 0.4) 0%, rgba(16, 16, 14, 0.8) 100%); }
.ph-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.page-hero.has-img .ph-inner { padding-bottom: 60px; padding-top: 130px; }
.page-hero.has-img .kicker { color: #D9B87A; }
.page-hero.has-img h1 { color: #FAF4E4; }
.page-hero .lead { max-width: 780px; }
.page-hero.has-img .lead { color: rgba(245, 238, 221, 0.93); }

/* ---------- stats band ---------- */
.stats-band { background: var(--sea-deep); color: #EFE8D8; padding: clamp(40px, 5vw, 64px) 0; }
.stats-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-left: 1px solid rgba(217, 184, 122, 0.45); padding-left: 20px; }
.stat-value { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; color: #DFC08A; margin: 0 0 6px; line-height: 1; }
.stat-label { font-size: 13.5px; color: rgba(239, 232, 216, 0.85); margin: 0; line-height: 1.5; }

/* ---------- figures / museum captions ---------- */
.img-fig { margin: 0; }
.img-fig .mz-wrap { border: 1px solid var(--line); padding: 10px; background: var(--card); }
.img-fig img { width: 100%; height: auto; display: block; }
.img-fig figcaption {
  font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-soft);
  margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--bronze); line-height: 1.5;
}
.img-fig.wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.img-band-section { padding-top: 0; }

/* drop cap on the about lead */
.about-section .lead::first-letter {
  font-family: var(--serif); font-size: 3.4em; float: left;
  line-height: 0.82; padding: 6px 10px 0 0; color: var(--terra); font-weight: 600;
}

/* ---------- chips ---------- */
.chips-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 26px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-size: 13.5px; padding: 7px 16px; border: 1px solid var(--bronze);
  color: var(--ink); background: var(--card); border-radius: 999px;
}
.ai-chips li { border-color: rgba(217, 184, 122, 0.6); background: rgba(217, 184, 122, 0.08); color: #EFE8D8; }

/* ---------- principles / generic cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.p-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.p-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.p-card {
  background: var(--card); border: 1px solid var(--line); padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(36, 30, 20, 0.1); }
.p-card h3 { margin-top: 8px; }
.p-card p { margin-bottom: 0; font-size: 15px; color: var(--ink-soft); }
.p-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--bronze); margin: 0; }

/* ---------- AI section ---------- */
.ai-section .lead { max-width: 800px; }

/* ---------- timeline ---------- */
.tl-hint { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-bottom: 26px; }
.timeline { margin-top: 8px; }
.tl-track {
  display: grid; grid-template-columns: repeat(5, 1fr); position: relative;
  border-top: 1px solid var(--bronze); padding-top: 0; margin-bottom: 36px;
}
.tl-era {
  position: relative; background: none; border: none; cursor: pointer;
  padding: 26px 10px 10px; text-align: left; font-family: var(--sans); color: var(--ink);
}
.tl-dot {
  position: absolute; top: -6px; left: 10px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper-alt); border: 2px solid var(--bronze);
  transition: background 0.25s, transform 0.25s;
}
.tl-era:hover .tl-dot { background: var(--bronze); }
.tl-era.is-active .tl-dot { background: var(--terra); border-color: var(--terra); transform: scale(1.25); }
.tl-label { display: block; font-family: var(--serif); font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; line-height: 1.2; }
.tl-era.is-active .tl-label { color: var(--terra); }
.tl-dates { display: block; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 5px; }
.tl-panels { position: relative; background: var(--card); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); min-height: 190px; }
.tl-panel { display: none; max-width: 780px; }
.tl-panel.is-active { display: block; animation: tlfade 0.45s ease; }
@keyframes tlfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tl-p-dates { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-bottom: 8px; }
.tl-panel h3 { font-size: clamp(24px, 2.6vw, 32px); }
.tl-panel p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- map ---------- */
.map-wrap { position: relative; margin-top: 40px; border: 1px solid var(--line); background: #EAE0C9; }
.med-map { display: block; width: 100%; height: auto; }
.map-sea { fill: #E7DCC2; }
.map-land { fill: #D9C9A5; stroke: #A5813F; stroke-width: 0.7; }
.map-grat { fill: none; stroke: rgba(165, 129, 63, 0.18); stroke-width: 0.5; }
.mk { cursor: pointer; }
.mk-dot { fill: var(--terra); }
.mk-ring { fill: none; stroke: var(--terra); stroke-width: 1.2; opacity: 0.55; }
.mk-pulse { fill: var(--terra); opacity: 0.14; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.3; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.mk-sdot { fill: var(--sea); opacity: 0.8; transition: r 0.2s; }
.mk-site:hover .mk-sdot, .mk-site.is-active .mk-sdot { opacity: 1; }
.mk-inst:hover .mk-dot, .mk-inst.is-active .mk-dot { fill: var(--terra-deep); }
.map-tip {
  position: absolute; z-index: 5; transform: translate(-50%, -114%);
  background: var(--card); border: 1px solid var(--bronze); padding: 14px 18px;
  width: max-content; max-width: 300px; box-shadow: 0 16px 40px rgba(36, 30, 20, 0.18);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.map-tip.is-visible { opacity: 1; }
.map-tip.tip-below { transform: translate(-50%, 22px); }
.map-tip strong { font-family: var(--serif); font-size: 17px; display: block; margin-bottom: 6px; color: var(--sea); }
.map-tip ul { list-style: none; }
.map-tip li { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); padding: 2px 0; }
.map-legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-inst .lg-dot { background: var(--terra); }
.lg-site .lg-dot { background: var(--sea); }
.map-fallback { display: none; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- partners ---------- */
.partner-ticker { display: none; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.partner-col { border-top: 2px solid var(--bronze); padding-top: 18px; }
.partner-col .f-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.partner-col li { font-family: var(--serif); font-size: 19px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.partner-col li:last-child { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--terra); color: #FBF3E2; padding: clamp(64px, 8vw, 100px) 0; text-align: center; }
.cta-band h2 { color: #FDF8EC; font-style: italic; font-weight: 500; }
.cta-band p { max-width: 620px; margin: 0 auto 1em; color: rgba(251, 243, 226, 0.92); }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-primary { background: #FBF3E2; color: var(--terra-deep); border-color: #FBF3E2; }
.cta-band .btn-primary:hover { background: var(--sea-deep); color: #FBF3E2; border-color: var(--sea-deep); }
.cta-band .btn-ghost { color: #FBF3E2; border-color: rgba(251, 243, 226, 0.7); }
.cta-band .btn-ghost:hover { background: #FBF3E2; color: var(--terra-deep); }

/* ---------- membership ---------- */
.check-list { margin-top: 26px; }
.check-list li {
  position: relative; padding: 13px 0 13px 38px; border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px;
  border-left: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(-45deg);
}
.fee-card { background: var(--card); border: 1px solid var(--bronze); padding: 36px 32px; }
.fee-amount { font-family: var(--serif); font-size: clamp(52px, 5vw, 72px); font-weight: 600; color: var(--sea); line-height: 1; margin: 10px 0 18px; }
.fee-amount small { font-size: 18px; font-family: var(--sans); font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; }
.fee-text { font-size: 14.5px; color: var(--ink-soft); }
.fee-inst { font-size: 13.5px; font-style: italic; color: var(--ink-soft); margin-bottom: 0; }
.apply-cta { margin-top: 26px; }
.cta-mail { margin-top: 14px; font-size: 15px; letter-spacing: 0.02em; }
.pending-note {
  display: inline-block; font-style: italic; font-size: 14.5px; color: var(--ink-soft);
  border: 1px dashed var(--bronze); padding: 12px 20px; background: rgba(165, 129, 63, 0.06);
}

/* ---------- governance ---------- */
.person-card { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 4vw, 60px); align-items: start; padding: clamp(36px, 5vw, 64px) 0; }
.person-card + .person-card { border-top: 1px solid var(--line); }
.person-name { margin-bottom: 2px; }
.person-role { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--terra); margin-bottom: 20px; }
.person-body p { color: var(--ink); }
.person-body .text-link { display: inline-block; margin-top: 6px; }

/* ---------- events ---------- */
.empty-card {
  background: var(--card); border: 1px dashed var(--bronze); padding: 36px 32px; margin-top: 30px;
  font-size: 16px;
}
.empty-card p:last-child { margin-bottom: 0; }
.event-card { background: var(--card); border: 1px solid var(--line); padding: clamp(30px, 4vw, 52px); margin-top: 34px; }
.event-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; background: var(--sea); color: var(--paper);
}
.event-dates { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--terra); }
.event-title { font-size: clamp(26px, 3vw, 36px); }
.event-venue { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.event-intro { max-width: 820px; }
.event-meta { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 26px 0; border-top: 1px solid var(--line-soft); padding-top: 22px; }
.event-meta dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 3px; }
.event-meta dd { margin: 0; font-size: 15px; }
.prog-toggle { margin-top: 8px; }
.programme { display: none; margin-top: 30px; }
.programme.open { display: block; animation: tlfade 0.4s ease; }
.prog-day { margin-bottom: 26px; }
.prog-day h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sea); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.prog-list li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.prog-time { font-family: var(--serif); font-weight: 600; color: var(--terra); }

/* ---------- prizes ---------- */
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prize-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--bronze); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.prize-card[data-status="closed"] { border-top-color: var(--sea); }
.prize-year { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--sea); line-height: 1; margin: 0; }
.prize-card .badge { align-self: flex-start; background: var(--paper-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.prize-card[data-status="open"] .badge { background: var(--terra); color: var(--paper); border-color: var(--terra); }
.prize-card h3 { margin-bottom: 4px; }
.prize-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 0; }
.prize-note { font-style: italic; border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: auto; }

/* ---------- support ---------- */
.legal-note { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); font-style: italic; line-height: 1.6; color: var(--sea); border-left: 3px solid var(--bronze); padding-left: 26px; }
.way-card { background: var(--card); border: 1px solid var(--line); padding: 28px 24px; }
.way-card h3 { color: var(--terra); font-size: 20px; }
.way-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 0; }
.bank-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.bank-dl div:last-child { border-bottom: none; }
.bank-dl dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.bank-dl dd { margin: 0; font-size: 15px; }
.closing-section .lead { font-family: var(--serif); font-style: italic; font-size: 21px; color: #DFC08A; }
.closing-section .hero-ctas { justify-content: center; margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--sea-deep); color: #D9D2BF; margin-top: 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--pad) 40px;
  display: grid; grid-template-columns: 5fr 3fr 3fr; gap: clamp(32px, 5vw, 64px);
}
.site-footer .logo-mark { color: #DFC08A; margin-bottom: 16px; }
.f-name { font-family: var(--serif); font-size: 20px; color: #F0E9D8; margin-bottom: 4px; }
.f-legal { font-style: italic; font-size: 13.5px; color: rgba(217, 210, 191, 0.8); }
.f-venues-label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #DFC08A; margin: 20px 0 4px; }
.f-venues { font-size: 13.5px; line-height: 1.7; }
.f-label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #DFC08A; margin-bottom: 14px; }
.f-col li { padding: 5px 0; }
.f-col a { color: #D9D2BF; font-size: 14.5px; }
.f-col a:hover { color: #FFF7E3; }
.footer-bottom {
  border-top: 1px solid rgba(217, 210, 191, 0.2);
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--pad) 30px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(217, 210, 191, 0.7);
}
.footer-bottom p { margin: 0; }

/* ---------- reveal animation ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
.p-grid .rv:nth-child(2), .prize-grid .rv:nth-child(2) { transition-delay: 0.1s; }
.p-grid .rv:nth-child(3), .prize-grid .rv:nth-child(3) { transition-delay: 0.2s; }
.p-grid .rv:nth-child(4) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .mk-pulse { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 1; }
  .split.reverse .split-media { order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid, .p-grid.grid-4, .prize-grid { grid-template-columns: repeat(2, 1fr); }
  .person-card { grid-template-columns: 1fr; }
  .person-media { max-width: 420px; }
  .partner-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) {
  .site-nav {
    position: fixed; inset: 0; top: 0; background: var(--paper);
    flex-direction: column; justify-content: center; align-items: center; gap: 36px;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 90;
  }
  body.nav-open .site-nav { transform: none; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 20px; }
  .site-nav a { font-size: 17px; }
  .nav-extra { flex-direction: column; gap: 24px; }
  .nav-toggle { display: block; position: relative; z-index: 95; }
  body.nav-open { overflow: hidden; }
  .tl-track { grid-template-columns: 1fr; border-top: none; border-left: 1px solid var(--bronze); margin-left: 6px; }
  .tl-era { padding: 12px 0 12px 26px; }
  .tl-dot { top: 18px; left: -6px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .p-grid, .p-grid.grid-4, .prize-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero { min-height: 76vh; }
  .hero-caption { display: none; }
  .brand-sub { display: none; }
  .prog-list li { grid-template-columns: 54px 1fr; gap: 10px; }
  .event-meta { gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============================================================
   PREMIUM — cinematic hero, mosaic reveal, living map, glow
   ============================================================ */

/* hero video layer (sits between image and veil; fades in when ready) */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.hero.video-on .hero-video { opacity: 1; }
.hero.video-on .hero-media > img { transition: opacity 1.4s ease; opacity: 0; }

/* closing band: sea-horizon video under a terracotta-toned veil */
.cta-band { position: relative; overflow: hidden; }
.cta-band .section-inner { position: relative; z-index: 2; }
.band-media { position: absolute; inset: 0; }
.band-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.6s ease;
}
.cta-band.video-on .band-video { opacity: 1; }
.band-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(124, 48, 33, 0.82) 0%, rgba(94, 38, 26, 0.66) 55%, rgba(30, 26, 20, 0.78) 100%);
}
.cta-band.video-on h2, .cta-band.video-on p { text-shadow: 0 1px 18px rgba(20, 14, 8, 0.35); }

/* slow Ken Burns on hero stills */
@keyframes kburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.07) translateY(-1.2%); }
}
.hero-media > img, .ph-media img { animation: kburns 24s ease-in-out infinite alternate; will-change: transform; }
.hero.video-on .hero-media > img { animation: none; }

/* staggered hero entrance */
.hero .rv, .page-hero .rv { transition-duration: 0.9s; }
.hero .kicker.rv { transition-delay: 0.1s; }
.hero .hero-title.rv { transition-delay: 0.25s; }
.hero .hero-sub.rv { transition-delay: 0.45s; }
.hero .hero-ctas.rv { transition-delay: 0.62s; }

/* scroll indicator */
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(245, 238, 221, 0.85); font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; z-index: 3;
}
.hero-scroll:hover { color: #F5EEDD; }
.hs-line { width: 1px; height: 44px; background: rgba(245, 238, 221, 0.4); position: relative; overflow: hidden; display: block; }
.hs-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: #DFC08A; animation: hsdrop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes hsdrop { 0% { top: -50%; } 60% { top: 100%; } 100% { top: 100%; } }

/* mosaic tessera reveal */
.mz-wrap { position: relative; display: block; }
.mz-clip { position: relative; display: block; overflow: hidden; }
.mz-grid {
  position: absolute; inset: 0; display: grid; z-index: 2;
  grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr);
  pointer-events: none; gap: 1px;
}
.mz-tile { opacity: 1; transition: opacity 0.55s ease; }
.mz-wrap.done .mz-tile { opacity: 0; }

/* living map: trade routes + ships */
.route {
  fill: none; stroke: #A5813F; stroke-width: 1.3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
}
.map-wrap.routes-on .route { animation: drawRoute 2.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.map-wrap.routes-on .route-2 { animation-delay: 0.35s; }
.map-wrap.routes-on .route-3 { animation-delay: 0.7s; }
.map-wrap.routes-on .route-4 { animation-delay: 1.05s; }
@keyframes drawRoute {
  0% { stroke-dashoffset: 1; opacity: 0; }
  15% { opacity: 0.6; }
  100% { stroke-dashoffset: 0; opacity: 0.6; }
}
.ship { fill: #7C3021; opacity: 0; transition: opacity 0.8s ease 2s; }
.map-wrap.routes-on .ship { opacity: 0.9; }

/* golden glow following the cursor on dark surfaces */
.glow { position: relative; }
.glow::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(223, 192, 138, 0.12), transparent 65%);
  transition: opacity 0.3s ease;
}
.cta-band.glow::after { background: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 245, 220, 0.14), transparent 65%); }

@media (prefers-reduced-motion: reduce) {
  .hero-media > img, .ph-media img { animation: none; }
  .hs-line::after { animation: none; }
  .mz-grid { display: none; }
  .map-wrap .route { animation: none; stroke-dashoffset: 0; opacity: 0.5; }
  .map-wrap .ship { display: none; }
  .glow::after { display: none; }
  .notice-bar { transition: none; }
}
@media (max-width: 640px) {
  .hero-scroll { display: none; }
}

/* ---------- legal pages ---------- */
.legal-doc { font-size: 15.5px; }
.legal-updated {
  font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 34px;
}
.legal-sec { margin-bottom: 38px; }
.legal-sec h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.legal-sec p { color: var(--ink); }
.legal-sec strong { color: var(--terra-deep); }
.legal-sec a { border-bottom: 1px solid currentColor; }

/* ---------- Academy ---------- */
.nav-badge {
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); background: var(--bronze); padding: 2px 6px; margin-left: 6px;
  vertical-align: super; border-radius: 2px;
}
.ep-player { position: relative; border: 1px solid var(--line); background: var(--sea-deep); padding: 10px; }
.ep-player video { display: block; width: 100%; height: auto; background: #000; }
.ep-note { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; border-left: 2px solid var(--bronze); padding-left: 14px; }
.lesson-hero { padding-bottom: clamp(36px, 5vw, 60px); }
.lesson-meta { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.lvl-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.lvl-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }
.lvl-tab {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  padding: 9px 20px; border-radius: 999px; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.lvl-tab:hover { border-color: var(--terra); color: var(--terra); }
.lvl-tab.is-active { background: var(--terra); border-color: var(--terra); color: #FBF6EA; }
.lvl-text [data-level] { display: none; }
.lesson-body[data-agelevel="kids"] [data-level="kids"],
.lesson-body[data-agelevel="teens"] [data-level="teens"],
.lesson-body[data-agelevel="adults"] [data-level="adults"] { display: block; animation: tlfade 0.4s ease; }
.lvl-text p { font-size: 17px; line-height: 1.8; }
.h3-sub { margin-top: 44px; }
.qz-item { background: var(--card); border: 1px solid var(--line); padding: 26px 26px 20px; margin-bottom: 18px; }
.qz-q { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.qz-n { color: var(--bronze); font-style: italic; margin-right: 4px; }
.qz-opts { display: grid; gap: 10px; }
.qz-opt {
  font-family: var(--sans); font-size: 15px; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 13px 18px; transition: border-color 0.2s, background 0.2s;
}
.qz-opt:hover:not(:disabled) { border-color: var(--terra); }
.qz-opt:disabled { cursor: default; opacity: 0.75; }
.qz-opt.is-right { background: #E8EFE0; border-color: #6B8E4E; opacity: 1; }
.qz-opt.is-wrong { background: #F5E3DC; border-color: var(--terra); opacity: 1; }
.qz-opt.is-answer { border-color: #6B8E4E; opacity: 1; }
.qz-why { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.qz-verdict { font-weight: 700; }
.qz-verdict.v-right { color: #4F7038; }
.qz-verdict.v-wrong { color: var(--terra-deep); }
.qz-score { text-align: center; background: var(--sea-deep); color: #EFE8D8; padding: 28px; margin-top: 26px; }
.qz-score p { font-size: 18px; font-family: var(--serif); }
.qz-score-val { color: #DFC08A; }
.sources-list li { font-size: 15px; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line-soft); position: relative; }
.sources-list li::before { content: "—"; position: absolute; left: 0; color: var(--bronze); }

/* ---------- informational notice bar ---------- */
.notice-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 16px);
  z-index: 120; display: flex; align-items: center; gap: 18px;
  max-width: min(92vw, 760px); width: max-content;
  background: var(--sea-deep); color: #EFE8D8;
  border: 1px solid rgba(223, 192, 138, 0.4);
  padding: 13px 20px; box-shadow: 0 18px 44px rgba(20, 16, 10, 0.35);
  opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease;
}
.notice-bar.is-visible { opacity: 1; transform: translate(-50%, 0); }
.notice-bar p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.notice-bar a { color: #DFC08A; border-bottom: 1px solid currentColor; white-space: nowrap; }
.notice-bar a:hover { color: #F2DBAB; }
.notice-ok {
  flex: none; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  background: none; border: 1px solid rgba(239, 232, 216, 0.6); color: #EFE8D8;
  padding: 8px 18px; transition: background 0.25s, color 0.25s;
}
.notice-ok:hover { background: #EFE8D8; color: var(--sea-deep); }
@media (max-width: 640px) {
  .notice-bar { flex-direction: column; gap: 10px; text-align: center; bottom: 10px; padding: 14px 18px; }
}
