:root {
  --black: #050505;
  --black-soft: #0c0b0a;
  --panel: rgba(13, 12, 11, 0.78);
  --gold: #d4aa52;
  --gold-light: #edca77;
  --cream: #f0eee8;
  --muted: #b8b4ac;
  --line: rgba(212, 170, 82, 0.34);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
}

.hero-image, .hero-shade, .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-image {
  z-index: -5;
  background-image: url("assets/hero-boxers.webp");
  background-position: center center;
  background-size: cover;
  filter: saturate(0.88) contrast(1.08);
  transform: scale(1.015);
  animation: image-breathe 18s ease-in-out infinite alternate;
}
.hero-shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.48) 0%, rgba(5, 5, 5, 0.9) 37%, rgba(5, 5, 5, 0.93) 63%, rgba(5, 5, 5, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.38) 0%, rgba(5, 5, 5, 0.14) 46%, rgba(5, 5, 5, 0.92) 100%);
}
.grain {
  z-index: -3;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ring {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(212, 170, 82, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.ring::before, .ring::after {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(212, 170, 82, 0.1);
  border-radius: inherit;
  content: "";
}
.ring::after { inset: 21%; }
.ring-one {
  top: 10%;
  left: 50%;
  width: min(58vw, 840px);
  aspect-ratio: 1;
  transform: translateX(-50%);
}
.ring-two {
  right: -16vw;
  bottom: -30vw;
  width: min(70vw, 920px);
  aspect-ratio: 1;
}

.topbar {
  display: flex;
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 28px 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.event-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.event-mark-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 17px;
  letter-spacing: 0.08em;
}
.event-mark-copy {
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(5, 5, 5, 0.58);
  backdrop-filter: blur(12px);
}
.language-switch span {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
}
.language-switch button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: #85827c;
  cursor: pointer;
  font: 700 11px/1 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.14em;
  transition: color 180ms ease;
}
.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button.active { color: var(--gold-light); }
.language-switch button:focus-visible,
.event-mark:focus-visible,
.congress-card:focus-visible,
.organizer-card:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.hero-content {
  display: flex;
  width: min(100% - 48px, 920px);
  margin: auto;
  padding: clamp(38px, 6vh, 72px) 0 clamp(34px, 5vh, 58px);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.status-pill {
  display: inline-flex;
  margin-bottom: 19px;
  padding: 8px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.58);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  backdrop-filter: blur(10px);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 170, 82, 0.7);
  animation: status-pulse 2.2s infinite;
}
.hook {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.congress-grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
}
.congress-card {
  position: relative;
  display: grid;
  min-height: 130px;
  padding: 22px 25px 20px;
  align-content: center;
  border: 1px solid rgba(212, 170, 82, 0.5);
  background: linear-gradient(135deg, rgba(25, 22, 17, 0.88), rgba(5, 5, 5, 0.72));
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.congress-card::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--gold-light);
  border-right: 2px solid var(--gold-light);
  content: "";
}
.congress-card:hover {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, rgba(42, 34, 20, 0.92), rgba(5, 5, 5, 0.82));
  transform: translateY(-3px);
}
.card-index {
  position: absolute;
  top: 13px;
  left: 14px;
  color: rgba(237, 202, 119, 0.67);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.card-title {
  max-width: 330px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(21px, 2.2vw, 31px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.card-year {
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.congress-cross {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 20px;
}

.construction-message {
  display: flex;
  max-width: 760px;
  margin-top: clamp(28px, 4.5vh, 48px);
  flex-direction: column;
  align-items: center;
}
.gold-rule {
  width: 68px;
  height: 3px;
  margin-bottom: 17px;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(212, 170, 82, 0.48);
}
.construction-message h1 {
  margin: 0;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
}
.construction-message h1 strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 400;
}
.construction-message p {
  max-width: 660px;
  margin: 19px 0 0;
  color: #d5d1c9;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
  text-wrap: balance;
}

.progress-block {
  width: min(100%, 620px);
  margin-top: 24px;
}
.progress-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
.progress-track span {
  position: absolute;
  inset: 0 auto 0 -34%;
  width: 34%;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation: progress-sweep 2.8s ease-in-out infinite;
}
.progress-copy {
  display: flex;
  margin-top: 9px;
  justify-content: space-between;
  color: #8e8a83;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.progress-copy strong { color: var(--gold-light); font-weight: 800; }

.organizers {
  display: grid;
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 18px 0 26px;
  grid-template-columns: auto minmax(420px, 620px);
  align-items: center;
  gap: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.organizers > p {
  margin: 0;
  color: #86827b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.19em;
}
.organizer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.organizer-card {
  display: grid;
  min-height: 64px;
  padding: 8px 10px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(5, 5, 5, 0.62);
  text-decoration: none;
  backdrop-filter: blur(11px);
  transition: border-color 180ms ease, transform 180ms ease;
}
.organizer-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.logo-frame {
  display: grid;
  width: 116px;
  height: 46px;
  place-items: center;
  overflow: hidden;
}
.organizer-card.world .logo-frame { background: #050505; }
.organizer-card.panamerican .logo-frame { background: #fff; }
.organizer-card img {
  display: block;
  max-width: 100px;
  max-height: 38px;
  object-fit: contain;
}
.organizer-card.panamerican img { max-width: 54px; max-height: 44px; }
.visit-label {
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--gold);
  background: #050505;
  color: var(--cream);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 170, 82, 0.62); }
  70% { box-shadow: 0 0 0 7px rgba(212, 170, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 170, 82, 0); }
}
@keyframes progress-sweep {
  0% { left: -34%; }
  100% { left: 100%; }
}
@keyframes image-breathe {
  0% { transform: scale(1.015); }
  100% { transform: scale(1.055); }
}

@media (max-width: 900px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.88)),
      linear-gradient(180deg, rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.92));
  }
  .organizers { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 720px) {
  .topbar, .hero-content, .organizers { width: min(100% - 32px, 920px); }
  .topbar { padding-top: 18px; }
  .event-mark-copy { display: none; }
  .hero-content { padding-top: 34px; }
  .congress-grid { grid-template-columns: 1fr; gap: 10px; }
  .congress-cross { display: none; }
  .congress-card { min-height: 105px; padding: 24px 20px 16px; }
  .card-title { max-width: none; font-size: clamp(22px, 7vw, 31px); }
  .construction-message h1 { font-size: clamp(45px, 14vw, 68px); }
  .organizer-grid { grid-template-columns: 1fr 1fr; }
  .organizer-card {
    min-height: 66px;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .visit-label { display: none; }
}

@media (max-width: 460px) {
  .site-shell { overflow: clip; }
  .hero-image { background-position: 39% center; }
  .status-pill { font-size: 9px; letter-spacing: 0.14em; }
  .hook { letter-spacing: 0.18em; }
  .construction-message { margin-top: 31px; }
  .construction-message p { font-size: 14px; }
  .progress-copy { letter-spacing: 0.11em; }
  .organizers > p { text-align: center; }
}

@media (max-height: 820px) and (min-width: 721px) {
  .topbar { padding-top: 18px; padding-bottom: 13px; }
  .hero-content { padding-top: 24px; padding-bottom: 23px; }
  .congress-card { min-height: 110px; }
  .construction-message { margin-top: 25px; }
  .construction-message h1 { font-size: clamp(48px, 5.5vw, 70px); }
  .construction-message p { margin-top: 13px; }
  .progress-block { margin-top: 17px; }
  .organizers { padding-top: 12px; padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
