:root {
  --ink: #111417;
  --ink-soft: #4d565f;
  --paper: #f5f7f2;
  --white: #ffffff;
  --line: rgba(17, 20, 23, 0.12);
  --blue: #2f95ee;
  --green: #00a438;
  --coral: #f05d47;
  --gold: #c9a54a;
  --stage: #171118;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 36px;
  color: var(--white);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.05;
}

.brand small {
  max-width: 210px;
  color: currentColor;
  font-size: 0.75rem;
  opacity: 0.72;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .main-nav,
.site-header.is-open .main-nav {
  border-color: var(--line);
  background: rgba(17, 20, 23, 0.04);
}

.main-nav a {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: currentColor;
  opacity: 0.84;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--white);
  color: var(--ink);
  opacity: 1;
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 86svh;
  max-height: 860px;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: var(--stage);
  color: var(--white);
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.03);
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.94) 0%, rgba(8, 11, 13, 0.78) 38%, rgba(8, 11, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 11, 13, 0.82) 0%, rgba(8, 11, 13, 0) 56%);
}

.hero-mark {
  position: absolute;
  right: 4%;
  bottom: 9%;
  z-index: -1;
  width: 320px;
  opacity: 0.2;
}

.hero-content {
  width: min(860px, calc(100% - 72px));
  padding: 150px 0 150px;
  margin-left: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.federation-copy h2,
.contact-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero h1 {
  max-width: 780px;
  font-size: 4.9rem;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.event-feature-body a,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action {
  background: var(--coral);
  color: var(--white);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.primary-action:hover,
.event-feature-body a:hover,
.contact-actions a:hover {
  background: #d94f3b;
}

.secondary-action:hover {
  background: var(--white);
  color: var(--ink);
}

.hero-stats {
  position: absolute;
  right: 36px;
  bottom: 28px;
  left: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 900px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-stats a {
  padding: 16px;
  background: rgba(12, 15, 18, 0.42);
}

.hero-stats a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.05rem;
}

.hero-stats span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.section,
.split-section,
.contact-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-intro {
  padding-top: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-copy h2,
.federation-copy h2,
.contact-section h2 {
  max-width: 760px;
  font-size: 3.1rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 93, 71, 0.5);
  box-shadow: 0 20px 60px rgba(17, 20, 23, 0.09);
}

.quick-index {
  width: max-content;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(47, 149, 238, 0.1);
  color: #1169b1;
  font-weight: 800;
  font-size: 0.8rem;
}

.quick-card h3,
.event-list h3,
.event-feature h3,
.process-grid h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.quick-card h3 {
  margin-top: auto;
  font-size: 1.5rem;
}

.quick-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.events-section {
  border-top: 1px solid var(--line);
}

.events-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
}

.event-feature {
  overflow: hidden;
  border-radius: 8px;
  background: var(--stage);
  color: var(--white);
}

.event-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.event-feature-body {
  padding: 24px;
}

.tag {
  width: max-content;
  margin: 0 0 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 164, 56, 0.18);
  color: #85f2a9;
  font-weight: 800;
  font-size: 0.78rem;
}

.event-feature h3 {
  font-size: 2rem;
}

.event-feature p:not(.tag) {
  color: rgba(255, 255, 255, 0.74);
}

.event-feature-body a {
  margin-top: 10px;
  background: var(--coral);
  color: var(--white);
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-list article {
  display: grid;
  grid-template-columns: 126px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.event-list time {
  color: #1169b1;
  font-weight: 900;
}

.event-list h3 {
  font-size: 1.2rem;
}

.event-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.event-list article > span {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(17, 20, 23, 0.06);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 40px;
  align-items: center;
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.split-copy p:not(.eyebrow),
.federation-copy p,
.contact-section p {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.check-list span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 760;
}

.split-photo {
  overflow: hidden;
  border-radius: 8px;
}

.split-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center 38%;
}

.media-section {
  border-top: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(17, 20, 23, 0.78);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.gallery-item.is-hidden {
  display: none;
}

.federation-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 36px;
  align-items: end;
  padding: 52px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 149, 238, 0.14), rgba(0, 164, 56, 0.12)),
    var(--white);
}

.federation-metrics {
  display: grid;
  gap: 10px;
}

.federation-metrics div {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.federation-metrics strong {
  color: var(--coral);
  font-size: 2rem;
  line-height: 1;
}

.federation-metrics span {
  color: var(--ink-soft);
}

.judges-section {
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.process-grid article {
  min-height: 220px;
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.process-grid article:nth-child(2) {
  background: #123f2a;
}

.process-grid article:nth-child(3) {
  background: #253d61;
}

.process-grid span {
  color: var(--gold);
  font-weight: 900;
}

.process-grid h3 {
  margin-top: 56px;
  font-size: 1.44rem;
}

.process-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 56px;
  margin-bottom: 48px;
  border-radius: 8px;
  background: var(--stage);
  color: var(--white);
}

.contact-section .eyebrow {
  color: #85f2a9;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.68);
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: 250px;
}

.contact-actions a {
  background: var(--coral);
  color: var(--white);
}

.contact-actions a + a {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.contact-actions a + a:hover {
  background: var(--white);
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(7, 9, 11, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  width: min(100%, 1120px);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 80svh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--white);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .site-header {
    padding-inline: 24px;
  }

  .hero {
    min-height: 84svh;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .hero-content {
    width: min(760px, calc(100% - 48px));
    margin-left: 24px;
  }

  .quick-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-layout,
  .split-section,
  .federation-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .split-photo img {
    height: 520px;
  }
}

@media (max-width: 780px) {
  .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    top: 67px;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    background: var(--white);
    border-color: var(--line);
    box-shadow: 0 20px 70px rgba(17, 20, 23, 0.16);
  }

  .site-header.is-open .main-nav {
    display: grid;
    z-index: 40;
    background: var(--white);
    color: var(--ink);
  }

  .main-nav a {
    min-height: 44px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-bottom: 16px;
  }

  .hero-photo {
    object-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 11, 13, 0.92), rgba(8, 11, 13, 0.54)),
      linear-gradient(0deg, rgba(8, 11, 13, 0.88), rgba(8, 11, 13, 0.12));
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 112px 0 24px;
    margin-left: 16px;
  }

  .hero h1,
  .section-heading h2,
  .split-copy h2,
  .federation-copy h2,
  .contact-section h2 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .hero-stats a {
    padding: 11px 12px;
  }

  .section,
  .split-section,
  .contact-section {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;
  }

  .quick-grid,
  .gallery-grid,
  .process-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 210px;
  }

  .event-list article {
    grid-template-columns: 1fr;
  }

  .event-list article > span {
    width: max-content;
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

  .split-section {
    padding: 58px 0;
  }

  .split-photo img {
    height: 430px;
  }

  .federation-section,
  .contact-section {
    padding: 28px;
  }

  .federation-metrics div {
    grid-template-columns: 76px 1fr;
  }

  .contact-actions {
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 170px;
    font-size: 0.9rem;
  }

  .hero h1,
  .section-heading h2,
  .split-copy h2,
  .federation-copy h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
