*,
*::before,
*::after { box-sizing: border-box; }

body.home {
  margin: 0;
  color: #142028;
  background: #f4f7f8;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.home img { max-width: 100%; display: block; }
body.home a { color: inherit; }
body.home button,
body.home a { -webkit-tap-highlight-color: transparent; }
body.home :focus-visible {
  outline: 2px solid #e23d2b;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #142028;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.kicker.dark { color: #5d6b73; }
.prose { margin: 0; color: #3c4a52; max-width: 38rem; }
.waters .prose { margin-top: 28px; max-width: 46rem; line-height: 1.75; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  background: #e23d2b;
  color: #fff;
  text-decoration: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.btn.quiet {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.btn.block { width: 100%; }

.top {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
  padding: 0 22px;
  color: #fff;
}
.top.is-solid {
  background: rgba(7, 20, 28, 0.92);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.links { display: flex; gap: 18px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.top .btn { margin-left: 8px; }
.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.menu {
  display: none;
  position: fixed;
  z-index: 6;
  top: 64px;
  left: 0;
  right: 0;
  background: #07141c;
  padding: 8px 22px 18px;
}
.menu.is-open { display: grid; }
.menu a {
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 100dvh;
  color: #fff;
  overflow: hidden;
  background: #07141c;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 700ms ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 46%;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(7, 16, 22, 0.38);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow:hover { background: rgba(7, 16, 22, 0.72); }
.hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 22, 0.58) 0%, rgba(7, 16, 22, 0.05) 42%, rgba(7, 16, 22, 0.12) 100%),
    linear-gradient(180deg, rgba(7, 16, 22, 0.28) 0%, rgba(7, 16, 22, 0) 24%, rgba(7, 16, 22, 0.42) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 440px));
  padding: 18vh 0 0 6vw;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero h1 span { display: block; white-space: nowrap; }
.lede {
  margin: 16px 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.deck {
  position: absolute;
  z-index: 1;
  right: 5vw;
  bottom: 92px;
  width: min(360px, calc(100% - 40px));
  padding: 18px 18px 16px;
  background: rgba(7, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.deck-head { display: flex; justify-content: space-between; align-items: center; }
.chip {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}
.sog {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 8px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 80px;
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.sog small {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.metrics, .pairs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
}
.pairs { grid-template-columns: 1fr 1fr; margin: 12px 0; }
.metrics dt, .pairs dt {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
}
.metrics dd, .pairs dd {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 600;
}
.pairs dd span { font-size: 14px; color: rgba(255, 255, 255, 0.65); }

.hero-foot {
  position: absolute;
  z-index: 1;
  left: 6vw;
  right: 5vw;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.slide-name {
  margin: 0;
  min-width: 4em;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
}
.dots { display: flex; gap: 8px; flex: 1; }
.dots button {
  width: 36px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.dots button.is-on { background: #fff; }
.pause {
  background: transparent;
  color: #fff;
  border: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.film { background: #07141c; color: #fff; overflow: auto; }
.film ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.film li { position: relative; }
.film li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}
.film img { width: 100%; height: 280px; object-fit: cover; }
.film span {
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 8px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  font-size: 14px;
}

.waters, .train, .readout, .marks-band, .phones, .faq { padding: 108px 0; }
.section-head h2, .train h2, .faq h2, .join h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.cards { margin-top: 40px; }
.cards article {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 12px 48px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid #d5dee3;
}
.cards h3 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.cards p { margin: 0; max-width: 40em; color: #3c4a52; font-size: 17px; line-height: 1.75; }

.rail {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  min-height: 640px;
  background: #07141c;
  color: #fff;
}
.rail img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.rail-copy { padding: 48px 40px; align-self: center; }
.rail-copy p:last-child { color: rgba(255, 255, 255, 0.82); }

.train-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid #c5d0d6;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}
.stepper p { margin: 0; display: grid; }
.stepper b {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 48px;
  line-height: 0.9;
  font-weight: 600;
}
.stepper span { color: #5d6b73; font-size: 13px; letter-spacing: 0.12em; }
.board {
  background: #fff;
  border: 1px solid #d5dee3;
  padding: 20px;
}
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.marks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d6b73;
}
.marks i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5d0d6;
  font-style: normal;
}
.marks li.is-on { color: #142028; }
.marks li.is-on i { background: #e23d2b; }
.board-note { margin: 14px 0 0; color: #3c4a52; }

.readout { background: #fff; }
.readout table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.readout th, .readout td {
  text-align: left;
  padding: 14px 8px;
  border-bottom: 1px solid #e1e8ec;
  vertical-align: top;
}
.readout th {
  width: 8.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.readout td:last-child { width: 5rem; color: #5d6b73; text-align: right; }

.medal-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.medal-row button {
  min-width: 96px;
  height: 92px;
  border: 1px solid #c5d0d6;
  background: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  letter-spacing: -0.03em;
  cursor: pointer;
}
.medal-row button::after {
  content: "NM";
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.medal-row button[aria-pressed="true"] {
  background: #07141c;
  color: #fff;
  border-color: #07141c;
}
.medal-note { margin: 14px 0 0; color: #3c4a52; }

.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 32px; }
.faq details { border-top: 1px solid #d5dee3; }
.faq details:last-child { border-bottom: 1px solid #d5dee3; }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 500;
}
.faq details p { margin: 0 0 16px; color: #3c4a52; }
.phones-note { margin-top: 22px; }

.join {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #07141c;
  color: #fff;
}
.join-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.join-copy { padding: 56px 40px; }
.join .btn.quiet { color: #fff; }
.contact { margin: 18px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.8); }
.contact a { color: #fff; }

.site-footer {
  background: #07141c;
  color: rgba(255, 255, 255, 0.72);
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.footer-row strong, .footer-row span { display: block; }
.footer-row strong { color: #fff; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-row a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 14px; }

@media (max-width: 1080px) {
  .links, .top .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-copy { padding-top: 108px; width: calc(100% - 32px); }
  .hero h1 span { white-space: normal; }
  .deck {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 28px 16px 88px;
  }
  .hero { min-height: auto; }
  .hero-foot { bottom: 16px; left: 16px; right: 16px; }
  .hero-arrow { top: 38%; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .cards, .train-grid, .faq-grid, .rail, .join {
    grid-template-columns: 1fr;
  }
  .cards article { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .film ul { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow: auto; }
  .footer-row { flex-direction: column; align-items: start; }
  .waters, .train, .readout, .marks-band, .phones, .faq { padding: 48px 0; }
  .rail-copy, .join-copy { padding: 28px 20px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
