/* ==========================================================================
   TPDL 2027 · Venice · stylesheet
   Colours: lagoon teal (dominant), Venetian red (actions), gold (details).
   Type: EB Garamond (headings, a nod to the Aldine types printed in Venice)
         and Inter (text and interface). Both self-hosted, SIL OFL.
   ========================================================================== */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/ebgaramond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/ebgaramond-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/ebgaramond-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/ebgaramond-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0d2a31;
  --text: #253a40;
  --muted: #5a6d72;
  --lagoon-950: #08232a;
  --lagoon-900: #0b2f38;
  --lagoon-800: #0f3e48;
  --lagoon-700: #135460;
  --lagoon-600: #17666d;
  --lagoon-500: #1f7d83;
  --lagoon-200: #bcd9d7;
  --lagoon-100: #e2efee;
  --lagoon-50: #f2f8f7;
  --red-800: #7c231e;
  --red-700: #922b25;
  --red-600: #a9352d;
  --red-100: #f7e5e2;
  --gold-600: #9c7a3a;
  --gold-500: #b8924f;
  --gold-200: #ead9b6;
  --line: #d6e1e1;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(8, 35, 42, .06), 0 10px 30px -12px rgba(8, 35, 42, .22);
  --shadow-lg: 0 30px 60px -24px rgba(8, 35, 42, .45);
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --header-h: 72px;
  /* Venetian ogee arch, used to frame pictures (aspect ratio 4:5) */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 125' preserveAspectRatio='none'%3E%3Cpath d='M0 125V50C0 31 17 23 31 18C42 14 48 9 50 0C52 9 58 14 69 18C83 23 100 31 100 50V125Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-700); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--tint { background: var(--lagoon-50); }
.section--dark { background: var(--lagoon-900); color: #d6e6e6; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--gold-200); }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-600); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-200); }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: start; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split--wide-left { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; font: 600 .95rem/1 var(--sans); padding: .95rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--red-600); color: var(--white); }
.btn--primary:hover { background: var(--red-700); color: var(--white); }
.btn--lagoon { background: var(--lagoon-700); color: var(--white); }
.btn--lagoon:hover { background: var(--lagoon-800); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); color: var(--white); border-color: var(--white); }
.btn--line { border-color: var(--lagoon-600); color: var(--lagoon-700); background: transparent; }
.btn--line:hover { background: var(--lagoon-700); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font: 600 .74rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; background: var(--lagoon-100); color: var(--lagoon-700); }
.tag--red { background: var(--red-100); color: var(--red-700); }
.tag--gold { background: #f6eedd; color: #6d5424; }
.tag--tentative { background: #f6eedd; color: #6d5424; text-transform: none; letter-spacing: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .88rem; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--text); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(13,42,49,.08); transition: background .25s, border-color .25s; }
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 34px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; border-left: 1px solid var(--line); padding-left: .75rem; }
.brand .brand-year { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.brand .brand-place { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-600); margin-top: .2rem; font-weight: 600; }
.brand .logo-white { display: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav li { position: relative; }
.nav a, .nav button.nav-link { display: flex; align-items: center; gap: .3rem; font: 500 .94rem/1 var(--sans); color: var(--ink); text-decoration: none; padding: .7rem .8rem; border-radius: 999px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.nav-link:hover, .nav .is-active > a, .nav .is-active > button { background: var(--lagoon-100); color: var(--lagoon-800); }
.nav .caret { width: 10px; height: 10px; transition: transform .2s; }
.nav .dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: .5rem; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown, .nav li.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav li:hover > button .caret, .nav li.open > button .caret { transform: rotate(180deg); }
.nav .dropdown a { border-radius: 9px; padding: .7rem .8rem; font-size: .92rem; }
.nav-cta { margin-left: .5rem; }
.nav-cta .btn { padding: .7rem 1rem; font-size: .88rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
/* transparent header over the home hero */
body.has-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; }
body.has-hero .site-header:not(.is-scrolled) .brand .logo-dark { display: none; }
body.has-hero .site-header:not(.is-scrolled) .brand .logo-white { display: block; }
body.has-hero .site-header:not(.is-scrolled) .brand-year { color: var(--white); }
body.has-hero .site-header:not(.is-scrolled) .brand-place { color: var(--gold-200); }
body.has-hero .site-header:not(.is-scrolled) .brand .brand-text { border-color: rgba(255,255,255,.3); }
body.has-hero .site-header:not(.is-scrolled) .nav > ul > li > a, body.has-hero .site-header:not(.is-scrolled) .nav > ul > li > button, body.has-hero .site-header:not(.is-scrolled) .nav-toggle { color: var(--white); }
body.has-hero .site-header:not(.is-scrolled) .nav > ul > li > a:hover, body.has-hero .site-header:not(.is-scrolled) .nav > ul > li > button:hover, body.has-hero .site-header:not(.is-scrolled) .nav .is-active > a { background: rgba(255,255,255,.14); color: var(--white); }
body.has-hero .site-header:not(.is-scrolled) .nav-cta .btn--line { color: var(--white); border-color: rgba(255,255,255,.6); }
body.has-hero .site-header { position: fixed; left: 0; right: 0; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 1rem clamp(16px, 4vw, 32px) 2rem; overflow-y: auto; margin: 0; display: none; }
  .nav.open { display: flex; animation: navIn .22s ease-out; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a, .nav button.nav-link { padding: 1rem .6rem; font-size: 1.05rem; width: 100%; border-radius: 10px; color: var(--ink) !important; }
  .nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; display: none; min-width: 0; }
  .nav li.open > .dropdown { display: block; }
  .nav li:hover > .dropdown { display: none; }
  .nav li.open:hover > .dropdown { display: block; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 1rem; color: var(--lagoon-700) !important; border-color: var(--lagoon-600) !important; }
  body.nav-open { overflow: hidden; }
  body.has-hero.nav-open .site-header { background: var(--white); }
  body.has-hero.nav-open .site-header .brand .logo-dark { display: block; }
  body.has-hero.nav-open .site-header .brand .logo-white { display: none; }
  body.has-hero.nav-open .site-header .brand-year, body.has-hero.nav-open .site-header .nav-toggle { color: var(--ink); }
}

/* ---------- home hero ---------- */
.hero { position: relative; min-height: min(100vh, 940px); display: flex; align-items: flex-end; color: var(--white); background: var(--lagoon-950); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.04); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate(-1.2%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8,35,42,.55) 0%, rgba(8,35,42,0) 22%),
  linear-gradient(90deg, rgba(8,35,42,.88) 0%, rgba(8,35,42,.55) 45%, rgba(8,35,42,.05) 80%),
  linear-gradient(0deg, rgba(8,35,42,.9) 0%, rgba(8,35,42,0) 45%); }
.hero-inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(40px, 6vw, 72px); width: 100%; }
.hero-edition { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); font-weight: 600; margin-bottom: 1.1rem; }
.hero h1 { color: var(--white); font-size: clamp(3.6rem, 11vw, 8.5rem); line-height: .9; margin: 0 0 .25em; font-weight: 600; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-200); }
.hero .hero-title { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.25; color: #eaf3f2; max-width: 760px; margin: 0 0 1.6rem; font-weight: 400; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 0 0 2rem; padding: 0; list-style: none; font-size: 1.02rem; color: #e9f2f1; }
.hero-meta li { display: flex; align-items: center; gap: .55rem; }
.hero-meta svg { width: 20px; height: 20px; color: var(--gold-200); flex: none; }
.hero-twin { display: inline-flex; align-items: center; gap: .75rem; padding: .5rem .9rem .5rem .6rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: var(--white); text-decoration: none; font-size: .92rem; margin-bottom: 2rem; backdrop-filter: blur(6px); }
.hero-twin img { height: 20px; width: auto; background: var(--white); border-radius: 999px; padding: 3px 8px; box-sizing: content-box; }
.hero-twin:hover { background: rgba(255,255,255,.18); color: var(--white); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
@media (max-width: 900px) { .hero-bottom { grid-template-columns: 1fr; } }
.deadline-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 1.2rem 1.4rem; backdrop-filter: blur(10px); min-width: 280px; max-width: 360px; }
.deadline-card .dl-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); font-weight: 600; }
.deadline-card .dl-what { font-family: var(--serif); font-size: 1.45rem; color: var(--white); line-height: 1.15; margin: .35rem 0 .2rem; }
.deadline-card .dl-when { color: #d7e7e6; font-size: .95rem; }
.deadline-card .dl-count { display: flex; gap: 1rem; margin-top: .9rem; }
.deadline-card .dl-count div { display: flex; flex-direction: column; }
.deadline-card .dl-count b { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--white); font-variant-numeric: lining-nums tabular-nums; }
.deadline-card .dl-count span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #bcd9d7; }
.photo-credit { position: absolute; right: 12px; bottom: 8px; font-size: .7rem; color: rgba(255,255,255,.6); z-index: 1; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; color: var(--white); background: var(--lagoon-900); isolation: isolate; overflow: hidden; }
.page-hero .ph-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,35,42,.92) 0%, rgba(8,35,42,.72) 50%, rgba(8,35,42,.35) 100%); }
.page-hero .container { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero .lead { color: #dcebea; max-width: 720px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .85rem; color: #bcd9d7; }
.crumbs a { color: #e3efee; text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }

/* ---------- wave divider ---------- */
.wave { display: block; width: 100%; height: 38px; color: var(--lagoon-50); }
.wave--dark { color: var(--lagoon-900); }

/* ---------- arch frame ---------- */
.arch { aspect-ratio: 4 / 5; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; overflow: hidden; background: var(--lagoon-100); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-pair { position: relative; display: grid; grid-template-columns: 1fr .72fr; gap: 20px; align-items: end; }
.arch-pair .arch:nth-child(2) { margin-bottom: 18%; }
.figure-note { font-size: .78rem; color: var(--muted); margin-top: .6rem; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card--flat { box-shadow: none; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--lagoon-100); color: var(--lagoon-700); margin-bottom: 1.1rem; }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--red { background: var(--red-100); color: var(--red-700); }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.fact-list li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; }
.fact-list svg { width: 20px; height: 20px; color: var(--lagoon-600); margin-top: .2rem; }

/* two tracks */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }
.track { position: relative; border-radius: 24px; overflow: hidden; color: var(--white); padding: clamp(28px, 4vw, 44px); min-height: 460px; display: flex; flex-direction: column; isolation: isolate; box-shadow: var(--shadow-lg); }
.track .track-bg { position: absolute; inset: 0; z-index: -2; }
.track .track-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.track:hover .track-bg img { transform: scale(1.04); }
.track::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.track--qual::before { background: linear-gradient(160deg, rgba(124,35,30,.9) 0%, rgba(124,35,30,.78) 45%, rgba(60,16,14,.9) 100%); }
.track--quant::before { background: linear-gradient(160deg, rgba(15,62,72,.92) 0%, rgba(19,84,96,.8) 45%, rgba(8,35,42,.94) 100%); }
.track .track-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-200); }
.track h3 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.7rem); margin: .4rem 0 .2rem; }
.track .track-sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #f3e9e7; margin-bottom: 1rem; }
.track--quant .track-sub { color: #dcefee; }
.track p { color: rgba(255,255,255,.9); }
.track .chips li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: var(--white); font-size: .84rem; }
.track .track-foot { margin-top: auto; padding-top: 1.6rem; }
.track .btn--ghost { backdrop-filter: none; }

/* ---------- dates: "bricole" (lagoon mooring poles) ---------- */
.bricole { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; position: relative; }
.bricole::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 2px; background: repeating-linear-gradient(90deg, var(--lagoon-200) 0 10px, transparent 10px 18px); }
.bricole li { position: relative; padding: 0 1rem 0 0; }
.bricola { width: 14px; height: 78px; border-radius: 7px 7px 3px 3px; background: linear-gradient(90deg, #6b4a2b, #8b6540 45%, #5a3d22); position: relative; margin-bottom: 1.2rem; box-shadow: 0 6px 10px -6px rgba(0,0,0,.4); }
.bricola::before, .bricola::after { content: ""; position: absolute; left: -2px; right: -2px; height: 5px; border-radius: 2px; background: var(--ink); }
.bricola::before { top: 16px; } .bricola::after { top: 26px; }
.bricole li.is-conference .bricola { background: linear-gradient(90deg, var(--red-800), var(--red-600) 45%, var(--red-800)); }
.bricole li.is-past { opacity: .5; }
.bricole li.is-next .bricola { box-shadow: 0 0 0 6px rgba(184,146,79,.25), 0 6px 10px -6px rgba(0,0,0,.4); }
.bricole .b-date { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.bricole .b-date small { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; font-weight: 600; }
.bricole .b-label { margin-top: .6rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.bricole .b-label a { color: inherit; text-decoration: none; }
.bricole .b-label a:hover { color: var(--red-700); text-decoration: underline; }
.bricole .b-note { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.section--dark .bricole .b-date, .section--dark .bricole .b-label { color: var(--white); }
.section--dark .bricole .b-date small, .section--dark .bricole .b-note { color: #9fc4c2; }
@media (max-width: 860px) {
  .bricole { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .bricole::before { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--lagoon-200) 0 10px, transparent 10px 18px); }
  .bricole li { display: grid; grid-template-columns: 14px 1fr; column-gap: 1.2rem; padding: 0 0 1.6rem; }
  .bricola { height: 56px; margin: 0; grid-row: span 3; }
}

/* dates table */
.dates-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.dates-table th, .dates-table td { text-align: left; padding: 1rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dates-table thead th { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.dates-table td.when { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.dates-table tr.is-past td { color: var(--muted); }
.dates-table tr.is-next td.when { color: var(--red-700); }
.dates-table .tba { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-style: italic; }
.table-wrap { overflow-x: auto; }

/* ---------- venue mosaic ---------- */
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: var(--lagoon-100); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; font-size: .78rem; color: var(--white); background: rgba(8,35,42,.62); padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; } .mosaic figure:first-child { grid-column: span 2; grid-row: auto; } }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-row > div { background: var(--white); padding: 1.4rem 1.2rem; }
.stat-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-row b { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--lagoon-700); font-weight: 600; font-variant-numeric: lining-nums; }
.stat-row span { display: block; margin-top: .45rem; font-size: .9rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price { border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--lagoon-900); color: var(--white); }
.price .p-kind { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); font-weight: 600; }
.price .p-amount { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: .5rem 0 .2rem; font-variant-numeric: lining-nums; }
.price .p-amount small { font-family: var(--sans); font-size: .9rem; color: #bcd9d7; margin-left: .3rem; }
@media (max-width: 480px) { .price-cards { grid-template-columns: 1fr; } }

/* routes */
.route { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.route:last-child { border-bottom: 0; }
.route .r-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--lagoon-100); color: var(--lagoon-700); display: flex; align-items: center; justify-content: center; }
.route .r-icon svg { width: 24px; height: 24px; }
.route h4 { margin: .1rem 0 .3rem; font-family: var(--sans); font-size: 1.02rem; font-weight: 600; }
.route p { margin: 0; color: var(--text); }
.line-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; height: 2.1em; padding: 0 .45em; border-radius: 6px; background: #f2c200; color: #111; font-weight: 700; font-size: .85em; margin: 0 .15em; vertical-align: .05em; }
.map-frame { border: 0; width: 100%; height: 360px; border-radius: var(--radius); background: var(--lagoon-100); }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul li { margin-bottom: .35em; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h3 { font-size: 1.35rem; }
.callout { border-radius: var(--radius); padding: 1.2rem 1.4rem; background: #f7f1e4; color: #4f3d1b; display: grid; grid-template-columns: 24px 1fr; gap: .8rem; font-size: .96rem; }
.callout svg { width: 22px; height: 22px; color: var(--gold-600); margin-top: .15rem; }
.callout p:last-child { margin: 0; }
.topic-cols { columns: 2 280px; column-gap: 2.5rem; padding-left: 1.1em; }
.topic-cols li { break-inside: avoid; margin-bottom: .45em; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.toc a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; }
.toc a:hover { background: var(--lagoon-100); color: var(--lagoon-800); }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.2rem 0 1.6rem; }
.type-grid .card { padding: 1.3rem 1.4rem; }
.type-grid .pages { font-family: var(--serif); font-size: 2.2rem; color: var(--lagoon-700); line-height: 1; }
.type-grid .pages small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr; } }

/* organisers & twin conference */
.org-logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 5vw, 64px); }
.org { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.org img { height: 72px; width: auto; }
.org .org-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.org .org-name small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.org--cf img { height: 64px; }
.twin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: center; border-radius: 24px; padding: clamp(24px, 4vw, 40px); background: linear-gradient(120deg, var(--lagoon-800), var(--lagoon-600)); color: #dcebea; box-shadow: var(--shadow-lg); }
.twin h3 { color: var(--white); margin-bottom: .3rem; }
.twin .twin-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: 1.2rem; }
@media (max-width: 480px) { .twin .twin-logos img { height: 22px; padding: 8px 10px; } .twin .twin-logos span { font-size: 1.5rem; } }
.twin .twin-logos img { height: 28px; width: auto; background: var(--white); border-radius: 10px; padding: 10px 14px; box-sizing: content-box; }
.twin .twin-logos span { font-family: var(--serif); font-size: 2rem; color: var(--gold-200); }
@media (max-width: 860px) { .twin { grid-template-columns: 1fr; } }

.venice-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.venice-strip figure { margin: 0; }
.venice-strip .arch { aspect-ratio: 4/5; }
.venice-strip figcaption { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-top: .6rem; }
.venice-strip figcaption small { display: block; font-family: var(--sans); font-size: .84rem; color: var(--muted); }
@media (max-width: 860px) { .venice-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--ink); border-left: 2px solid var(--gold-500); padding-left: 1.2rem; margin: 1.6rem 0; font-style: italic; }

/* ---------- footer ---------- */
.site-footer { background: var(--lagoon-950); color: #a9c7c5; font-size: .95rem; position: relative; }
.site-footer .wave { color: var(--lagoon-950); position: absolute; top: -37px; left: 0; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 64px 0 40px; }
@media (max-width: 860px) { .site-footer .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .f-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #dcebea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .f-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.site-footer .f-brand img { height: 32px; width: auto; }
.site-footer .f-brand span { font-family: var(--serif); font-size: 1.5rem; color: var(--white); }
.site-footer .f-orgs { display: flex; gap: 1.2rem; align-items: center; margin-top: 1.2rem; }
.site-footer .f-orgs img { height: 44px; width: auto; opacity: .92; }
.site-footer .f-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .8rem; color: #7fa3a1; }
.site-footer .f-bottom a { color: #a9c7c5; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .dates-table th, .dates-table td { padding: .8rem .5rem; }
  .dates-table td.when { font-size: 1.1rem; white-space: normal; }
  .dates-table th:nth-child(3), .dates-table td:nth-child(3) { display: none; }
}
.section--dark .price { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.track-tag { display: inline-flex; margin-bottom: .6rem; }
@media (max-width: 1080px) {
  body.has-hero.nav-open .site-header .brand-place { color: var(--red-600); }
  body.has-hero.nav-open .site-header .brand .brand-text { border-color: var(--line); }
  .nav-cta .btn { background: var(--lagoon-100); border-color: var(--lagoon-100) !important; }
}
