:root {
  --black: #0d0d0d;
  --charcoal: #33383d;
  --graphite: #b8bdc2;
  --steel: #b8bdc2;
  --silver: #eef0f3;
  --paper: #f4f4f2;
  --white: #ffffff;
  --accent: #33383d;
  --redline: #d8dde4;
  --display: "Barlow Condensed", "Archivo Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--silver);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

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

a {
  color: inherit;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  align-items: center;
  background: rgba(13, 13, 13, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand-mark {
  align-items: center;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark img {
  width: 190px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-links a,
.button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  display: inline-flex;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 13px 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.button {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.button.secondary {
  background: transparent;
}

.button.dark {
  background: var(--black);
  border-color: var(--black);
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.95) 0%, rgba(5, 5, 6, 0.74) 44%, rgba(5, 5, 6, 0.2) 100%),
    url("../img/Laguna-Thunder-Elk-Grove-Travel-Ball.jpg") center center / cover no-repeat;
  display: grid;
  min-height: 92vh;
  padding: 126px clamp(18px, 6vw, 78px) 70px;
  position: relative;
}

.hero::after {
  background: linear-gradient(180deg, rgba(5, 5, 6, 0) 0%, var(--black) 100%);
  bottom: 0;
  content: "";
  height: 170px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
.stat-value {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(58px, 10vw, 146px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(36px, 6vw, 76px);
}

h3 {
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy {
  color: #d9dce1;
  font-size: clamp(21px, 2.4vw, 31px);
  margin: 22px 0 32px;
  max-width: 720px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: clamp(54px, 8vw, 100px) clamp(18px, 6vw, 78px);
}

.section.light {
  background: var(--paper);
  color: var(--black);
}

.section.black {
  background: var(--black);
}

.section-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 34px;
}

.section-header p {
  color: #c8cbd1;
  margin: 0;
  max-width: 520px;
}

.light .section-header p {
  color: #444852;
}

.tryout-band {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 60px);
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.poster-frame {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  padding: 10px;
}

.tryout-copy {
  max-width: 680px;
}

.tryout-copy p {
  color: #d9dce1;
  font-size: 22px;
  margin: 20px 0 0;
}

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

.stat {
  background: var(--charcoal);
  border-top: 3px solid var(--graphite);
  padding: 22px;
}

.stat-value {
  color: var(--white);
  font-size: 34px;
}

.stat-label {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-top: 6px;
  text-transform: uppercase;
}

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

.principle {
  background: var(--white);
  border: 1px solid #d9dce2;
  min-height: 210px;
  padding: 28px;
}

.principle h3 {
  color: var(--black);
  font-size: 30px;
  margin-bottom: 16px;
}

.principle p {
  color: #3f4249;
  margin: 0;
}

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

.team-panel,
.sponsor-panel,
.registration-card,
.notice-panel {
  background: var(--white);
  border: 1px solid #d9dce2;
  color: var(--black);
}

.team-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 210px;
  padding: 28px;
}

.team-age {
  align-items: center;
  background: var(--black);
  color: var(--white);
  display: flex;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  justify-content: center;
  min-height: 120px;
}

.team-panel h3,
.sponsor-panel h3 {
  font-size: 34px;
  margin-bottom: 10px;
}

.team-panel p,
.sponsor-panel p {
  color: #40434a;
  margin: 0 0 16px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.94), rgba(5, 5, 6, 0.52)),
    url("../img/Laguna-Thunder-Elk-Grove-Travel-Ball-medium.jpg") center center / cover no-repeat;
  padding: 150px clamp(18px, 6vw, 78px) 72px;
}

.page-hero p {
  color: #d9dce1;
  font-size: 24px;
  margin: 18px 0 0;
  max-width: 720px;
}

.registration-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1200px;
}

.registration-sidebar {
  align-self: start;
  position: sticky;
  top: 94px;
}

.notice-panel {
  border-left: 5px solid var(--charcoal);
  margin-top: 18px;
  padding: 22px;
}

.notice-panel p {
  color: #343741;
  margin: 0 0 14px;
}

.notice-panel p:last-child {
  margin-bottom: 0;
}

.registration-card {
  box-shadow: 0 24px 70px rgba(5, 5, 6, 0.12);
}

.form-header {
  background: var(--black);
  color: var(--white);
  padding: 22px 28px;
}

.form-header p {
  margin: 0;
}

.registration-form {
  padding: 30px 28px 36px;
}

.registration-form > fieldset {
  border: 0;
  border-top: 1px solid #d9dce2;
  margin: 30px 0 0;
  padding: 28px 0 0;
}

.registration-form > fieldset:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.registration-form > fieldset > legend {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 24px;
  padding: 0 18px 0 0;
  text-transform: uppercase;
}

.registration-form h3 {
  font-size: 24px;
  margin: 28px 0 10px;
}

.form-grid,
.choice-grid,
.followup-grid {
  display: grid;
  gap: 20px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid,
.followup-grid {
  margin-top: 24px;
}

.registration-form label {
  color: var(--black);
  display: block;
  font-weight: 700;
  line-height: 1.25;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  background: #f7f8fa;
  border: 1px solid #c8ccd4;
  border-radius: 0;
  display: block;
  font: inherit;
  margin-top: 8px;
  min-height: 50px;
  padding: 12px 14px;
  width: 100%;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  background: var(--white);
  border-color: var(--charcoal);
  box-shadow: 0 0 0 3px rgba(51, 56, 61, 0.16);
  outline: 0;
}

.registration-form textarea {
  min-height: 124px;
  resize: vertical;
}

.registration-form input[type="hidden"] {
  display: none;
}

.radio-line {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.registration-form .radio-line input,
.registration-form .option-panel input,
.registration-form .consent input {
  display: inline-block;
  flex: 0 0 auto;
  margin: 2px 0 0;
  min-height: auto;
  width: auto;
}

.registration-form .option-panel,
.registration-form .followup-panel {
  border: 1px solid #d9dce2;
  margin: 0;
  padding: 20px;
}

.registration-form .option-panel h3 {
  color: var(--black);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.registration-form .option-panel label {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.registration-form .position-grid .option-panel {
  align-content: start;
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-form .position-grid .option-panel h3 {
  grid-column: 1 / -1;
}

.full-width {
  grid-column: 1 / -1;
}

.form-note {
  color: #9f221b;
  font-weight: 700;
  margin: 0 0 20px;
}

.help-text {
  color: #565b65;
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-top: 4px;
}

.conditional-field[hidden] {
  display: none;
}

.consent {
  border-top: 1px solid #d9dce2;
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
}

.submit-row {
  margin-top: 28px;
}

.success-message {
  display: none;
  font-weight: 700;
  margin: 18px 0 0;
}

.registration-form.is-submitted .success-message {
  display: block;
}

.sponsor-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.1fr 0.9fr;
  margin: 0 auto;
  max-width: 1120px;
}

.sponsor-panel {
  padding: 30px;
}

.donation-form-panel {
  background: var(--white);
  border: 1px solid #d9dce2;
  color: var(--black);
  margin: 24px auto 0;
  max-width: 1120px;
  padding: clamp(22px, 4vw, 34px);
}

.donation-form-header {
  border-bottom: 1px solid #d9dce2;
  margin-bottom: 24px;
  padding-bottom: 22px;
}

.donation-form-header .eyebrow {
  color: #5d626b;
}

.donation-form-header p:last-child {
  color: #40434a;
  margin: 14px 0 0;
  max-width: 680px;
}

.donation-form-panel iframe {
  display: block;
  min-height: 1096px;
  width: 100%;
}

.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--steel);
  padding: 34px clamp(18px, 6vw, 78px);
  text-align: center;
}

.brand-board-frame {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
  margin: 0 auto;
  max-width: 1280px;
  padding: 10px;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.policy-card {
  background: var(--white);
  border: 1px solid #d9dce2;
  color: var(--black);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(28px, 5vw, 56px);
}

.policy-card h2 {
  border-top: 1px solid #d9dce2;
  font-size: clamp(28px, 4vw, 44px);
  margin: 32px 0 12px;
  padding-top: 28px;
}

.policy-card p {
  color: #30343a;
  margin: 0 0 16px;
}

.policy-card a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

.business-verification-details {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    position: relative;
  }

  .brand-mark {
    justify-content: center;
  }

  .brand-mark img {
    width: 150px;
  }

  .nav-links {
    gap: 6px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-links a {
    min-width: 0;
    padding: 12px 6px;
  }

  .hero,
  .page-hero {
    padding-top: 70px;
  }

  .tryout-band,
  .principles,
  .teams-grid,
  .registration-layout,
  .sponsor-layout {
    grid-template-columns: 1fr;
  }

  .registration-sidebar {
    position: static;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
  }

  .topbar {
    padding: 14px 12px;
    width: 100%;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 366px;
    width: 100%;
  }

  .nav-links a {
    font-size: 13px;
    letter-spacing: 0.06em;
    max-width: none;
    overflow: hidden;
    padding: 11px 0;
    text-align: center;
    white-space: nowrap;
  }

  .nav-links a:last-child {
    grid-column: 1 / -1;
  }

  .hero {
    align-items: center;
    background-position: 62% center;
    min-height: 520px;
    padding: 44px 18px 48px;
  }

  .hero-content {
    box-sizing: border-box;
    max-width: 354px;
    min-width: 0;
    width: 100%;
  }

  h1 {
    font-size: 54px;
  }

  h1 span {
    display: block;
  }

  .hero-copy {
    font-size: 18px;
    line-height: 1.45;
    margin: 16px 0 24px;
    max-width: 354px;
    overflow-wrap: break-word;
  }

  .hero-copy,
  .tryout-copy p,
  .page-hero p {
    font-size: 20px;
  }

  .stats-grid,
  .form-grid,
  .choice-grid,
  .followup-grid {
    grid-template-columns: 1fr;
  }

  .team-panel {
    grid-template-columns: 1fr;
  }

  .team-age {
    min-height: 86px;
  }

  .registration-form {
    padding: 24px 18px 28px;
  }

  .form-header {
    padding: 18px;
  }
}
