:root {
  --ink: #17120f;
  --paper: #fffaf2;
  --paper-2: #f3efe7;
  --red: #a51e22;
  --red-dark: #661418;
  --gold: #d8a734;
  --blue: #223b4d;
  --green: #3e5d47;
  --muted: #6c6258;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(23, 18, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 8px 26px rgba(23, 18, 15, 0.1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #000;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: currentColor;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

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

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 18, 15, 0.88) 0%, rgba(23, 18, 15, 0.63) 42%, rgba(23, 18, 15, 0.18) 100%),
    linear-gradient(180deg, rgba(23, 18, 15, 0.32) 0%, rgba(23, 18, 15, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 84px);
  padding: 112px 0 72px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 11vw, 8.4rem);
  font-weight: 950;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  font-weight: 920;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  color: rgba(255, 255, 255, 0.9);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 900;
}

.section {
  padding: clamp(64px, 9vw, 108px) clamp(18px, 4vw, 48px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-band {
  padding-block: 22px;
  background: var(--red-dark);
  color: var(--white);
}

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

.stats div {
  min-height: 108px;
  display: grid;
  align-content: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.stats span,
.values-list span,
.contact-details span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.stats strong {
  margin-top: 6px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.stats strong small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  min-height: 280px;
  padding: 26px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.program-card:nth-child(2) {
  background: var(--red-dark);
}

.program-card:nth-child(3) {
  background: var(--green);
}

.program-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border: 2px solid currentColor;
  color: var(--gold);
  font-weight: 950;
}

.program-card p {
  color: rgba(255, 255, 255, 0.84);
}

.schedule-band {
  background: var(--paper-2);
}

.schedule-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 7vw, 84px);
  align-items: start;
}

.schedule-table {
  border-top: 3px solid var(--ink);
}

.schedule-table div {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(23, 18, 15, 0.18);
}

.schedule-table strong {
  color: var(--red-dark);
}

.results-band {
  background: var(--ink);
  color: var(--white);
}

.results-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.athlete-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.athlete-card {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.athlete-copy {
  padding: 24px;
}

.athlete-copy span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.athlete-copy h3 {
  margin-top: 8px;
}

.athlete-copy ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.84);
}

.athlete-copy li + li {
  margin-top: 6px;
}

.athlete-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.athlete-images img,
.team-gallery img {
  width: 100%;
  object-fit: cover;
}

.athlete-images img {
  aspect-ratio: 4 / 3;
}

.team-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.team-gallery img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.team-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.training-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.training-gallery figure {
  margin: 0;
}

.training-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.training-gallery figcaption {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.handbook-band {
  background: var(--paper-2);
}

.handbook-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.handbook-layout p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.07rem;
}

.handbook-layout .button {
  margin-top: 16px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.principles-grid span {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 950;
  text-align: center;
}

.principles-grid span:nth-child(2),
.principles-grid span:nth-child(5) {
  background: var(--red-dark);
}

.principles-grid span:nth-child(3) {
  background: var(--green);
}

.principles-grid span:nth-child(5) {
  grid-column: 1 / -1;
}

.about-panel p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.07rem;
}

.values-list {
  display: grid;
  gap: 14px;
}

.values-list div {
  padding: 22px 0;
  border-top: 1px solid rgba(23, 18, 15, 0.16);
}

.values-list strong {
  display: block;
  margin-top: 8px;
  font-size: 1.28rem;
}

.values-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-band {
  background: var(--ink);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 74px);
}

.contact-layout h2 {
  max-width: 10ch;
}

.contact-layout p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-details a {
  color: var(--gold);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.76);
  background: #0d0a08;
}

.site-footer a {
  color: var(--gold);
  font-weight: 900;
}

.site-footer span:last-child {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.subpage {
  padding-top: 76px;
}

.subpage .site-header {
  position: fixed;
}

.subpage-nav {
  color: inherit;
}

.certificate-page h1 {
  max-width: 14ch;
  color: var(--ink);
}

.certificate-group-title {
  max-width: none;
  margin: 42px 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.certificate-grid,
.recognition-grid {
  display: grid;
  gap: 18px;
}

.certificate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recognition-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-recognition,
.single-athlete {
  max-width: 780px;
}

.certificate-grid article,
.recognition-grid article {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.certificate-grid img,
.recognition-grid img {
  width: 100%;
  object-fit: cover;
}

.certificate-grid img {
  aspect-ratio: 1 / 1;
}

.recognition-grid img {
  aspect-ratio: 16 / 9;
}

.certificate-grid h2,
.recognition-grid h2 {
  max-width: none;
  padding: 20px 20px 0;
  font-size: 1.8rem;
}

.certificate-grid p,
.recognition-grid p {
  margin: 8px 0 0;
  padding: 0 20px 22px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 10px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(23, 18, 15, 0.78) 0%, rgba(23, 18, 15, 0.65) 54%, rgba(23, 18, 15, 0.88) 100%);
  }

  .hero-content {
    width: min(100% - 36px, 620px);
    margin: 0 auto;
  }

  .stats,
  .program-grid,
  .schedule-layout,
  .athlete-results,
  .certificate-grid,
  .recognition-grid,
  .about-layout,
  .handbook-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .schedule-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .program-card {
    min-height: 220px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid span:nth-child(5) {
    grid-column: auto;
  }

  .athlete-images,
  .team-gallery {
    grid-template-columns: 1fr;
  }

  .training-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .training-gallery {
    grid-template-columns: 1fr;
  }
}

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

  .brand strong {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }
}
