/* Sinulog Foundation Inc. — design tokens follow the Sinulog 2027 brand */
:root {
  --red: #d7262c;
  --red-deep: #a31b20;
  --gold: #f7b733;
  --gold-deep: #d99114;
  --gold-soft: #ffe08a;
  --maroon: #7a1f1f;
  --maroon-ink: #3b0f0e;
  --cream: #fff6e8;
  --paper: #fffbf5;
  --ink: #231614;
  --muted: #6e5c57;
  --line: rgba(122, 31, 31, 0.14);
  --line-strong: rgba(122, 31, 31, 0.28);
  --shadow: 0 1px 2px rgba(59, 15, 14, 0.06), 0 8px 28px rgba(59, 15, 14, 0.08);
  --shadow-lg: 0 24px 60px rgba(59, 15, 14, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
svg { width: 1.15em; height: 1.15em; flex: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--maroon-ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.big { font-size: 1.15rem; }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 600 0.95rem/1 var(--body); text-decoration: none;
  padding: 0.85em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 1.02rem; padding: 1em 1.5em; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(215, 38, 44, 0.28); }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--maroon-ink); box-shadow: 0 6px 20px rgba(247, 183, 51, 0.35); }
.btn-gold:hover { background: var(--gold-soft); color: var(--maroon-ink); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-line { background: transparent; color: var(--maroon); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--red-deep); text-decoration: none; }
.link-arrow svg { transition: transform 0.15s ease; }
a:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(3px); }

.eyebrow {
  font: 700 0.78rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.9rem; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow-light { color: var(--gold-soft); }
.h-display { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.h-section { font-size: 1.5rem; margin: 2.5rem 0 1.25rem; }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 245, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--maroon-ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font: 800 1.3rem/1 var(--display); letter-spacing: -0.02em; color: var(--red); }
.brand small { font: 600 0.72rem/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-wordmark img { width: auto; height: 46px; border-radius: 0; }
.brand-light b { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, 0.7); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.nav a:not(.btn):hover { background: rgba(215, 38, 44, 0.07); color: var(--red-deep); }
.nav a[aria-current="page"] { color: var(--red); background: rgba(215, 38, 44, 0.08); }
.nav-cta { margin-left: 10px; padding: 0.7em 1.1em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--maroon-ink); cursor: pointer; border-radius: 10px; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle svg + svg { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav a:not(.btn) { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 12px 0 0; justify-content: center; padding: 1em; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle svg:first-child { display: none; }
  .nav-open .nav-toggle svg + svg { display: block; }
}

/* ------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--maroon-ink); }
.hero-bg, .page-head-bg, .sponsor-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img, .page-head-bg img, .sponsor-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 9, 8, 0.92) 0%, rgba(43, 9, 8, 0.72) 42%, rgba(43, 9, 8, 0.25) 100%),
    linear-gradient(0deg, rgba(43, 9, 8, 0.7) 0%, transparent 40%);
}
.hero-inner {
  min-height: min(88vh, 860px); display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 40px;
  padding-top: clamp(56px, 9vh, 110px); padding-bottom: clamp(110px, 16vh, 170px);
}
.hero h1 { color: #fff; font-size: clamp(2.9rem, 7.4vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin-bottom: 0.35em; }
.hero h1 span { color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; color: rgba(255, 255, 255, 0.88); }
.hero-logo { justify-self: end; width: min(100%, 440px); background: var(--paper); border-radius: 50%; padding: 9%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(247, 183, 51, 0.35); }
.hero-logo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; align-content: center; gap: 28px; text-align: left; padding-top: 40px; }
  .hero-logo { order: -1; justify-self: center; width: min(56vw, 240px); }
  .hero h1 { font-size: 5.3vw; white-space: nowrap; letter-spacing: -0.015em; }
  .hero h1 .br-wide { display: none; }
  .hero-btns { flex-wrap: nowrap; gap: 10px; }
  .hero-btns .btn { flex: 1 1 0; justify-content: center; font-size: 0.9rem; padding: 0.95em 0.8em; }
  .hide-sm { display: none; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(43, 9, 8, 0.94) 10%, rgba(43, 9, 8, 0.6) 100%); }
}

/* ------------------------------------------------ countdown */
.countdown-band { position: relative; z-index: 2; margin-top: -84px; }
.countdown-card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center;
  background: var(--paper); border-radius: 24px; padding: 26px 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.countdown-band .countdown-card { max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); padding: 26px 32px; }
.countdown-label p:last-child { margin: 0; font-weight: 600; color: var(--maroon-ink); }
.countdown-label .eyebrow { margin-bottom: 0.4rem; }
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.countdown-units div { text-align: center; background: var(--cream); border-radius: 16px; padding: 14px 8px; border: 1px solid var(--line); }
.countdown-units b { display: block; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.countdown-units span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.countdown-done { grid-column: 1 / -1; font: 800 1.6rem/1.2 var(--display); color: var(--red); margin: 0; }
@media (max-width: 760px) {
  .countdown-card, .countdown-band .countdown-card { grid-template-columns: 1fr; padding: 20px; }
  .countdown-units { gap: 8px; }
}

/* ------------------------------------------------ sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.section-cream { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head .h-display { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-media { align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split-media { grid-template-columns: 1fr; } .section-head { flex-direction: column; align-items: start; } }

/* main events */
.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.event { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.event-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.event-photo img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.event-date { margin: 0; }
.event-date time { display: flex; align-items: center; gap: 12px; }
.event-date b { font: 800 2.6rem/0.9 var(--display); color: var(--red); letter-spacing: -0.02em; }
.event-date span { font: 600 0.74rem/1.35 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.event h3 { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.event-venue { margin: 0; display: flex; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.event-venue svg { width: 15px; height: 15px; margin-top: 3px; flex: none; color: var(--red); }
.event-text { margin: 0; font-size: 0.93rem; color: var(--muted); }
.event-related { margin: 0; padding: 0 0 0 1.1em; font-size: 0.85rem; color: var(--muted); }
.event .link-arrow { margin-top: auto; padding-top: 4px; }
.event.is-main { background: var(--maroon-ink); border-color: var(--maroon-ink); color: #fff; }
.event.is-main h3 { color: #fff; }
.event.is-main .event-date b, .event.is-main .link-arrow, .event.is-main .event-venue svg { color: var(--gold); }
.event.is-main .event-date span, .event.is-main .event-venue, .event.is-main .event-text { color: rgba(255, 255, 255, 0.78); }
.year-events { margin-bottom: 8px; }
.year-events .h-section { margin-top: 0; }
@media (max-width: 1100px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .events { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--red)); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 14px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); }
.timeline time { font: 700 0.95rem/1.5 var(--body); color: var(--red); text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }

.photo-card { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

.year-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.year-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 150px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.year-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.year-card .year { font: 800 2.4rem/1 var(--display); color: var(--maroon-ink); letter-spacing: -0.03em; }
.year-card .year-meta { color: var(--muted); font-size: 0.9rem; }
.year-card svg { position: absolute; right: 20px; bottom: 20px; color: var(--red); }
.year-card.is-current { background: var(--red); border-color: var(--red); color: #fff; }
.year-card.is-current .year, .year-card.is-current svg { color: #fff; }
.year-card.is-current .year-meta { color: var(--gold-soft); }
@media (max-width: 900px) { .year-grid { grid-template-columns: repeat(2, 1fr); } .year-card.is-current { grid-column: 1 / -1; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin: 0 0 8px; }
.card-body .link-arrow { margin-top: auto; }
.card-meta { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); margin: 0; text-transform: uppercase; }

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.mosaic-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cream); cursor: zoom-in; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-lg { grid-column: span 2; grid-row: span 2; }
.mosaic-item figcaption, .photo-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(30, 8, 7, 0.75));
}
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

.app-band { background: var(--red); color: #fff; padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.app-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 183, 51, 0.45), transparent); }
.app-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; }
.app-band h2 { color: #fff; margin-bottom: 0.4em; }
.app-band p { color: rgba(255, 255, 255, 0.88); max-width: 40em; margin: 0; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .app-inner { grid-template-columns: 1fr; } }

.sponsor-band { position: relative; isolation: isolate; color: #fff; padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; }
.sponsor-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(59, 15, 14, 0.94), rgba(122, 31, 31, 0.75)); }
.sponsor-inner { max-width: 820px; }
.sponsor-band h2 { color: #fff; }

/* ------------------------------------------------ inner pages */
.page-head { background: var(--cream); padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 183, 51, 0.35), transparent); z-index: -1; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin: 0; max-width: 18em; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 42em; margin: 1rem 0 0; }
.page-head-photo { color: #fff; border: 0; padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 6vw, 64px); }
.page-head-photo .page-head-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 9, 8, 0.9), rgba(43, 9, 8, 0.35)); }
.page-head-photo h1, .page-head-photo .crumbs a, .page-head-photo .crumbs span { color: #fff; }
.page-head-photo .eyebrow { color: var(--gold-soft); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; margin-bottom: 18px; }
.crumbs a, .crumbs span { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs > * + *::before { content: "/"; margin-right: 6px; opacity: 0.5; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.aside-card h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-family: var(--body); margin-bottom: 10px; }
.aside-card a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.aside-card a:hover { background: rgba(215, 38, 44, 0.07); color: var(--red-deep); }
.aside-card a[aria-current="page"] { background: #fff; color: var(--red); font-weight: 700; box-shadow: var(--shadow); }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } .aside-card { position: static; } }

.prose { max-width: 760px; font-size: 1.05rem; }
.prose-wide { max-width: none; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.prose h4 { font-size: 1.1rem; margin: 1.6em 0 0.5em; color: var(--maroon); }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; box-shadow: var(--shadow); cursor: zoom-in; background: var(--cream); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.25em 0; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 0.5em 0 0.5em 1.2em; border-left: 4px solid var(--gold); color: var(--maroon); font-style: italic; }
.part-title { padding-top: 1.2em; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 2em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose td, .prose th { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tr:last-child td { border-bottom: 0; }
.prose tr:nth-child(even) td { background: rgba(255, 246, 232, 0.6); }
.prose td p { margin: 0 0 0.4em; }
.prose td p:last-child { margin: 0; }
.prose td:first-child { white-space: nowrap; }
.prose-schedule td:first-child { white-space: normal; width: 30%; color: var(--maroon); }
.prose-schedule tr:first-child td { background: var(--maroon); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.prose-sponsors img, .prose-venue img, .prose-officials img { margin-left: auto; margin-right: auto; }
.prose-sponsors { text-align: center; }
.prose-sponsors > p, .prose-sponsors > h2, .prose-sponsors > h3, .prose-sponsors > h4 { text-align: center; }
.prose-sponsors img.logo { display: inline-block; max-height: 110px; max-width: 220px; width: auto; box-shadow: none; background: transparent; margin: 12px 16px; vertical-align: middle; cursor: default; }
.prose-sponsors img:not(.logo) { width: 100%; max-width: 1100px; }
@media (max-width: 700px) { .prose-schedule td:first-child { width: 38%; } .prose td, .prose th { padding: 10px 12px; } }

/* tabs + year switch */
.year-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.year-switch a { font: 700 0.9rem/1 var(--body); padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); background: #fff; }
.year-switch a:hover { border-color: var(--line-strong); color: var(--ink); }
.year-switch a[aria-current="page"] { background: var(--maroon-ink); color: #fff; border-color: var(--maroon-ink); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 36px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 12px 16px; font-weight: 600; font-size: 0.95rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--red); border-color: var(--red); }

.edition-list { display: grid; gap: 16px; }
.edition { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 30px; }
.edition-year { font: 800 3.6rem/1 var(--display); letter-spacing: -0.04em; color: var(--maroon-ink); text-decoration: none; }
.edition h2 { font-size: 1.4rem; margin: 0 0 2px; }
.edition h2 a { color: inherit; text-decoration: none; }
.edition .muted { margin: 0 0 12px; }
.edition.is-current { background: linear-gradient(120deg, var(--red), var(--red-deep)); border-color: transparent; color: #fff; }
.edition.is-current .edition-year, .edition.is-current h2 { color: #fff; }
.edition.is-current .muted { color: var(--gold-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--maroon); text-decoration: none; border: 1px solid var(--line); }
.chip:hover { background: var(--gold-soft); color: var(--maroon-ink); }
.chip-soon { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
@media (max-width: 700px) { .edition { grid-template-columns: 1fr; gap: 10px; padding: 22px; } .edition-year { font-size: 2.6rem; } }

.overview-grid { display: grid; gap: 40px; }
.countdown-inline { box-shadow: var(--shadow); }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.soon-card { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; background: var(--cream); }
.soon-card h3 { font-size: 1.15rem; }
.soon-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.section-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.section-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.section-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.section-card-img { aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.section-card-img img { width: 100%; height: 100%; object-fit: cover; }
.section-card-blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon), var(--red)); }
.section-card-blank span { font: 800 3rem/1 var(--display); color: rgba(255, 255, 255, 0.9); letter-spacing: -0.04em; }
.section-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.section-card-body h2 { font-size: 1.25rem; margin-bottom: 6px; }
.section-card-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }

/* gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.photo-grid figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.cat-card { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: block; color: #fff; text-decoration: none; background: var(--maroon); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.85; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font: 700 1.1rem/1.2 var(--display); background: linear-gradient(transparent, rgba(30, 8, 7, 0.85)); }
.cat-card:hover { color: #fff; }

/* ------------------------------------------------ footer */
.site-footer { background: var(--maroon-ink); color: rgba(255, 255, 255, 0.78); padding: 72px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.footer-grid h2 { font: 700 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: rgba(255, 255, 255, 0.78); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand p { margin: 18px 0; max-width: 26em; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; }
.socials a:hover { background: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 56px; padding-top: 22px; padding-bottom: 28px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gold-soft); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 6, 5, 0.9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 12px; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox-close svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 12px 0 28px; }
.prose .img-grid img { display: block; width: 100%; margin: 0; aspect-ratio: 4 / 3; object-fit: cover; }

/* ------------------------------------------------ legal */
.prose-legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose-legal ol[type="a"] { list-style: lower-alpha; }

/* ------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.contact-card h2 { font-size: 1.3rem; margin: 10px 0 0; }
.contact-card p { color: var(--muted); margin: 0 0 10px; }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--red); }
.contact-icon svg { width: 24px; height: 24px; }
.contact-value { margin-top: auto; font-weight: 700; font-size: 0.92rem; color: var(--red-deep); overflow-wrap: anywhere; }
.contact-card-red { background: linear-gradient(135deg, var(--red), var(--red-deep)); border-color: transparent; color: #fff; }
.contact-card-red:hover { color: #fff; }
.contact-card-red h2 { color: #fff; }
.contact-card-red p { color: rgba(255, 255, 255, 0.85); }
.contact-card-red .contact-icon { background: rgba(255, 255, 255, 0.15); color: var(--gold); }
.contact-card-red .contact-value { color: var(--gold-soft); }
.contact-visit { margin-top: clamp(48px, 7vw, 88px); align-items: start; }
.social-list { display: grid; gap: 10px; }
.social-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.social-list a:hover { border-color: var(--red); color: var(--red-deep); }
.social-list a svg:first-child { width: 22px; height: 22px; color: var(--red); }
.social-list span { flex: 1; }

/* ------------------------------------------------ app download */
.app-hero { background: radial-gradient(circle at 85% 10%, rgba(247, 183, 51, 0.35), transparent 40%), linear-gradient(135deg, var(--red), var(--maroon)); color: #fff; overflow: hidden; }
.app-hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-top: clamp(48px, 8vw, 96px); }
.app-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.02; }
.app-hero-inner > div { padding-bottom: clamp(48px, 8vw, 96px); }
.app-mockup { justify-self: center; align-self: end; width: min(100%, 320px); height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4)); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.feature { padding: 26px; border-radius: 22px; background: var(--cream); border: 1px solid var(--line); }
.feature-num { font: 700 2rem/1 var(--display); color: var(--red); }
.feature h2 { font-size: 1.25rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .app-hero-inner { grid-template-columns: 1fr; } .app-mockup { width: min(70%, 260px); } }

/* ------------------------------------------------ link in bio */
.is-bare { background: var(--maroon-ink); }
.linkbio { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: start center; padding: 40px 16px 56px; }
.linkbio-bg { position: fixed; inset: 0; z-index: -1; }
.linkbio-bg img { width: 100%; height: 100%; object-fit: cover; }
.linkbio-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 9, 8, 0.75), rgba(43, 9, 8, 0.95)); }
.linkbio-card { width: 100%; max-width: 460px; text-align: center; color: #fff; }
.linkbio-logo { width: 168px; height: 168px; margin: 0 auto 18px; padding: 12px; border-radius: 50%; background: var(--paper); object-fit: contain; box-shadow: 0 0 0 6px rgba(247, 183, 51, 0.45), 0 20px 40px rgba(0, 0, 0, 0.4); }
.linkbio h1 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.linkbio-card > p { color: var(--gold-soft); font-weight: 600; font-size: 0.95rem; margin-bottom: 26px; }
.linkbio-links { display: grid; gap: 12px; }
.linkbio-links a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; text-decoration: none; font-weight: 600; text-align: left;
  color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.linkbio-links a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.18); color: #fff; }
.linkbio-links a.is-primary { background: var(--gold); border-color: var(--gold); color: var(--maroon-ink); }
.linkbio-links a.is-primary:hover { background: var(--gold-soft); color: var(--maroon-ink); }
.linkbio-links svg { width: 22px; height: 22px; }
.linkbio-socials { justify-content: center; margin-top: 28px; }
