body {
  background-color: #080805;
  color: #ffffff;
  font-family: 'Figtree', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(199, 154, 98, 0.12), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.05), transparent 18%);
}

html {
  scroll-behavior: smooth;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.text-balance {
  text-wrap: balance;
}

.hero-image::after,
.gallery-image::after,
.cover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,5,0.18), rgba(8,8,5,0.72));
}

/* Page hero — full-bleed cover image (about / palmares / media / contacts).
   Mirrors the gallery hero so the translucent sticky header floats over the
   image and the photo fades into the page before the content begins. */
.page-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-image {
  position: absolute;
  inset: 0;
}

.page-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.page-hero-image::after {
  background: linear-gradient(180deg, rgba(8,8,5,0.30) 0%, rgba(8,8,5,0.20) 45%, rgba(8,8,5,0.92) 100%);
}

.page-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3.25rem;
}

.page-top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 8, 5, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-card {
  background: #11110e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
}

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
}

.page-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 14, 0.72);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  min-width: 42px;
  height: 32px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lang-button:hover {
  color: #ffffff;
}

.lang-button.is-active {
  background: #c79a62;
  color: #080805;
}

.mobile-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 70;
  padding: 0;
  transition: background 180ms ease, border-color 180ms ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-btn-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 240ms ease, opacity 200ms ease;
  transform-origin: center;
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn-line:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn-line:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 8, 5, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  width: 100%;
  max-width: 520px;
  padding: 6.5rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mobile-menu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #c79a62;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 400;
}

.mobile-menu-eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: #c79a62;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.72);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 200ms ease, transform 320ms ease, opacity 320ms ease;
  transform: translateY(10px);
  opacity: 0;
}

.mobile-menu[aria-hidden="false"] .mobile-menu-nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-nav a:nth-child(1) { transition-delay: 60ms, 80ms, 80ms; }
.mobile-menu-nav a:nth-child(2) { transition-delay: 60ms, 130ms, 130ms; }
.mobile-menu-nav a:nth-child(3) { transition-delay: 60ms, 180ms, 180ms; }
.mobile-menu-nav a:nth-child(4) { transition-delay: 60ms, 230ms, 230ms; }
.mobile-menu-nav a:nth-child(5) { transition-delay: 60ms, 280ms, 280ms; }
.mobile-menu-nav a:nth-child(6) { transition-delay: 60ms, 330ms, 330ms; }

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  color: #ffffff;
}

.mobile-menu-nav a.is-active {
  color: #ffffff;
}

.mobile-menu-nav a .mobile-menu-arrow {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 240ms ease, color 200ms ease;
}

.mobile-menu-nav a:hover .mobile-menu-arrow,
.mobile-menu-nav a.is-active .mobile-menu-arrow {
  color: #c79a62;
  transform: translateX(4px);
}

.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}

.mobile-menu-foot a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 180ms ease;
}

.mobile-menu-foot a:hover {
  color: #c79a62;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Dakar partnerships — palmares
   ========================================================================== */

.dakar-partners {
  position: relative;
  padding: 2.5rem 1.75rem 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 10% 0%, rgba(199, 154, 98, 0.10), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(199, 154, 98, 0.06), transparent 40%),
    #0d0d0a;
  overflow: hidden;
}

@media (min-width: 768px) {
  .dakar-partners { padding: 3.25rem 3rem 2.75rem; }
}

.dakar-partners-head {
  max-width: 56rem;
  margin-bottom: 2.5rem;
}

.dakar-partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dakar-partner {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 240ms ease;
}

@media (min-width: 768px) {
  .dakar-partner {
    grid-template-columns: 144px 1fr;
    gap: 2.25rem;
    padding: 2.25rem 0.5rem;
  }
}

.dakar-partner:hover {
  background: linear-gradient(90deg, rgba(199, 154, 98, 0.04), transparent 60%);
}

.dakar-partner.is-featured {
  background: linear-gradient(90deg, rgba(199, 154, 98, 0.10), rgba(199, 154, 98, 0.02) 70%);
}

.dakar-partner.is-featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #c79a62;
}

.dakar-partner-portrait {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(199, 154, 98, 0.35), rgba(199, 154, 98, 0.05) 70%),
    #1a1915;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .dakar-partner-portrait {
    width: 144px;
    height: 144px;
  }
}

.dakar-partner-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dakar-partner-initials {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(199, 154, 98, 0.85);
  font-feature-settings: "ss01";
}

@media (min-width: 768px) {
  .dakar-partner-initials { font-size: 2.4rem; }
}

.dakar-partner-body {
  min-width: 0;
}

.dakar-partner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.dakar-partner-index {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.dakar-partner-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.dakar-partner.is-featured .dakar-partner-count {
  border-color: rgba(199, 154, 98, 0.6);
  background: rgba(199, 154, 98, 0.12);
}

.dakar-partner-count strong {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.dakar-partner-count em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.dakar-partner-name {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 768px) {
  .dakar-partner-name { font-size: 2rem; }
}

.dakar-partner-car {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.dakar-partner-car span {
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: rgba(199, 154, 98, 0.85);
  margin-right: 0.4rem;
}

.dakar-partner-years {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dakar-partner-years li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.dakar-partner-years li:last-child {
  border-bottom: 0;
}

.dakar-year {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.dakar-year.is-win {
  color: #c79a62;
  position: relative;
}

.dakar-year.is-win::after {
  content: "★";
  margin-left: 0.4rem;
  font-size: 0.78rem;
  color: #c79a62;
}

/* ==========================================================================
   Palmarés details — year-by-year results timeline
   ========================================================================== */

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 14, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.results-toolbar-label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 0.5rem;
}

.results-toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.results-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.72);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.results-chip:hover {
  color: #ffffff;
  border-color: rgba(199, 154, 98, 0.5);
}

.results-chip.is-active {
  background: #c79a62;
  color: #080805;
  border-color: #c79a62;
}

.results-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.results-year {
  position: relative;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 17, 14, 0.95), rgba(13, 13, 10, 0.92));
  padding: 1.75rem 1.25rem 1rem;
  transition: opacity 200ms ease, transform 200ms ease;
}

@media (min-width: 768px) {
  .results-year {
    padding: 2.25rem 2.5rem 1.5rem;
  }
}

.results-year.is-hidden {
  display: none;
}

.results-year-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-year-title {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

@media (min-width: 768px) {
  .results-year-title {
    font-size: 2.75rem;
  }
}

.results-year-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c79a62;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 154, 98, 0.35);
  background: rgba(199, 154, 98, 0.08);
}

.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.result-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  transition: background 200ms ease;
}

@media (min-width: 768px) {
  .result-row {
    grid-template-columns: 110px 1fr auto;
    gap: 1.5rem;
    padding: 1.25rem 0.5rem;
  }
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row.is-hidden {
  display: none;
}

.result-row:hover {
  background: linear-gradient(90deg, rgba(199, 154, 98, 0.04), transparent 80%);
}

.result-row.is-win {
  background: linear-gradient(90deg, rgba(199, 154, 98, 0.10), rgba(199, 154, 98, 0.01) 70%);
}

.result-row.is-win::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: #c79a62;
  border-radius: 2px;
}

.result-row.is-podium::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: rgba(199, 154, 98, 0.55);
  border-radius: 2px;
}

.result-pos {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .result-pos {
    font-size: 2rem;
  }
}

.result-row.is-win .result-pos {
  color: #c79a62;
}

/* Word-based status labels (Concluído, Campeão, Estreia) carry data-i18n; the
   numeric placings do not. Render them as a compact tag that wraps inside the
   position column instead of overflowing onto the event title. */
.result-pos[data-i18n] {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.3;
  white-space: normal;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  .result-pos[data-i18n] {
    font-size: 0.78rem;
  }
}

.result-row.is-win .result-pos[data-i18n] {
  color: #c79a62;
}

.result-body {
  min-width: 0;
}

.result-event {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .result-event {
    font-size: 1.2rem;
  }
}

.result-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.result-meta .result-cat {
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: rgba(199, 154, 98, 0.85);
  margin-right: 0.2rem;
}

.result-meta .result-loc {
  color: rgba(255, 255, 255, 0.7);
}

.result-pair {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.result-pair span {
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.42);
  margin-right: 0.4rem;
}

.result-flag {
  font-size: 1rem;
  color: #c79a62;
  align-self: center;
  justify-self: end;
  display: none;
}

@media (min-width: 768px) {
  .result-flag {
    display: inline-flex;
  }
}

.results-source {
  position: relative;
}

/* Gallery teaser strip on the detailed palmarés page — links each placing-rich
   event into its anchor inside gallery.html. */
.pald-gallery {
  margin-top: 3rem;
}

.pald-gallery-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .pald-gallery-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.pald-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pald-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.pald-gallery-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #11110e;
}

.pald-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, opacity 300ms ease;
  opacity: 0.92;
}

.pald-gallery-tile:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.pald-gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 5, 0.85), rgba(8, 8, 5, 0) 55%);
}

.pald-gallery-cap {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.8rem;
  z-index: 1;
}

.pald-gallery-cap strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}

.pald-gallery-cap span {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(199, 154, 98, 0.9);
  margin-top: 0.15rem;
}

/* ==========================================================================
   Gallery — event archive (gallery.html)
   ========================================================================== */

.gal-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.gal-hero-image {
  position: absolute;
  inset: 0;
}

.gal-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.gal-hero-image::after {
  background: linear-gradient(180deg, rgba(8,8,5,0.30) 0%, rgba(8,8,5,0.20) 45%, rgba(8,8,5,0.92) 100%);
}

.gal-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3.25rem;
}

.gal-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.gal-hero-stats strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

/* Event index ---------------------------------------------------------------*/

.gal-index {
  position: sticky;
  top: 64px;
  z-index: 30;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: rgba(8, 8, 5, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gal-index-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.2rem;
}

.gal-index-scroll::-webkit-scrollbar { display: none; }

.gal-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gal-chip:hover {
  background: rgba(199, 154, 98, 0.14);
  border-color: rgba(199, 154, 98, 0.55);
  color: #ffffff;
}

.gal-chip-year {
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #c79a62;
}

/* Event sections ------------------------------------------------------------*/

.gal-events {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.gal-event {
  scroll-margin-top: 152px;
  padding: 2.25rem 0 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gal-event:last-child { border-bottom: 0; }

.gal-event-head {
  margin-bottom: 1.6rem;
}

.gal-event-headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.gal-event-year {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  font-variant-numeric: tabular-nums;
  color: rgba(199, 154, 98, 0.85);
  text-transform: uppercase;
}

.gal-event-year--accent { color: #c79a62; font-size: 1rem; }

.gal-event-title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: #ffffff;
}

@media (min-width: 768px) {
  .gal-event-title { font-size: 2.6rem; }
}

.gal-result {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.gal-result.is-win {
  border-color: rgba(199, 154, 98, 0.6);
  background: rgba(199, 154, 98, 0.14);
  color: #f0d4ad;
}

.gal-event-meta {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.56);
  letter-spacing: 0.01em;
}

.gal-event-place {
  color: rgba(255, 255, 255, 0.82);
}

.gal-event-dot {
  margin: 0 0.5rem;
  color: rgba(199, 154, 98, 0.7);
}

/* Tile grid -----------------------------------------------------------------*/

.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .gal-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

@media (min-width: 1024px) {
  .gal-grid { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
}

.gal-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #15140f;
  cursor: zoom-in;
  outline-offset: 3px;
}

.gal-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,5,0) 55%, rgba(8,8,5,0.45));
  opacity: 0;
  transition: opacity 240ms ease;
}

.gal-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gal-tile:hover img,
.gal-tile:focus-visible img {
  transform: scale(1.06);
}

.gal-tile:hover::after,
.gal-tile:focus-visible::after {
  opacity: 1;
}

/* The reel that leads the page gets a slightly taller, square-ish rhythm. */
.gal-event--reel .gal-tile { aspect-ratio: 1 / 1; }

/* Lightbox ------------------------------------------------------------------*/

.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3.5rem);
  background: rgba(5, 5, 3, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.gal-lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.gal-lightbox-figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gal-lightbox-img {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.gal-lightbox-caption {
  max-width: 60ch;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.gal-lightbox-close,
.gal-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gal-lightbox-close:hover,
.gal-lightbox-nav:hover {
  background: rgba(199, 154, 98, 0.22);
  border-color: rgba(199, 154, 98, 0.6);
}

.gal-lightbox-close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
}

.gal-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.gal-lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }

.gal-lightbox-prev { left: clamp(0.5rem, 2vw, 1.75rem); }
.gal-lightbox-next { right: clamp(0.5rem, 2vw, 1.75rem); }

@media (max-width: 640px) {
  .gal-lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .gal-lightbox-img { max-height: 70vh; }
}

/* ---- Accessibility: site-wide visible keyboard focus ---- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid #c79a62;
  outline-offset: 3px;
  border-radius: 4px;
}
/* Form fields suppress the UA outline via Tailwind focus:outline-none; restore a clear ring */
.page-card input:focus-visible,
.page-card select:focus-visible,
.page-card textarea:focus-visible {
  outline: 2px solid #c79a62;
  outline-offset: 1px;
  border-color: #c79a62;
}

/* ---- Contact form: honeypot trap + submit status ---- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { margin-top: 0.5rem; line-height: 1.5; }
.contact-status[data-state="sending"] { color: #a6a39b; }
.contact-status[data-state="ok"] { color: #7fcf9f; }
.contact-status[data-state="err"] { color: #e8908f; }
