:root {
  --black: #020408;
  --navy: #061426;
  --navy-2: #0a1b31;
  --gold: #f3c541;
  --gold-dark: #a66c0b;
  --white: #f8fafc;
  --muted: #b3bdcb;
  --line: rgba(243, 197, 65, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  background-color: #061426;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(23, 59, 105, .22), transparent 34rem),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #07172a 0%, #020811 48%, #061426 100%);
  font-family: "Montserrat", system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 78px;
  padding: .55rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(243,197,65,.18);
  background: rgba(2,4,8,.82);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 132px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  color: #d9dee6;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--gold); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 9px;
  background: white;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 2rem;
  padding: 8rem clamp(1.1rem, 6vw, 6rem) 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .21em;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.045em;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(3.3rem, 7.6vw, 7.8rem);
  line-height: .9;
}

h1 span {
  color: transparent;
  background: linear-gradient(180deg, #fff5c1, var(--gold) 48%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  max-width: 690px;
  color: #c6ced9;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  color: #080808;
  background: linear-gradient(135deg, #ffeb95, var(--gold) 48%, #b47613);
  box-shadow: 0 15px 35px rgba(243,197,65,.18);
}
.button-ghost {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
}
.button-ghost:hover {
  border-color: var(--gold);
  background: rgba(243,197,65,.1);
}

.hero-art {
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctc-hero-video {
  display: block;
  width: min(650px, 100%);
  height: auto !important;
  max-width: 100%;
  max-height: none !important;
  aspect-ratio: 4 / 3;
  object-fit: contain !important;
  object-position: center center;
  margin: auto;
  border-radius: 0;
}
.hero-art img {
  width: min(650px, 100%);
  max-height: 760px;
  object-fit: contain;
  filter: drop-shadow(0 28px 65px rgba(0,0,0,.75));
}

.section { padding: 7rem clamp(1.1rem, 6vw, 6rem); }

.section-heading h2,
.join-intro h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: .96;
}
.centered { text-align: center; }

.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
}

.about-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17,34,62,.8), rgba(3,7,14,.94));
}
.about-card p {
  color: #c8d0dc;
  font-size: clamp(1rem, 1.45vw, 1.17rem);
  line-height: 1.9;
}
.about-card p:last-child { margin-bottom: 0; }

.process { background: rgba(255,255,255,.015); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.step {
  min-height: 310px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10,28,53,.75), rgba(3,6,12,.96));
}
.step-number {
  display: block;
  margin-bottom: 4rem;
  color: var(--gold);
  font-size: 2.7rem;
  font-weight: 900;
}
.step h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.step p { color: var(--muted); line-height: 1.75; }

.discipline-grid {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.discipline-card {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: end;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(243,197,65,.23);
  background:
    linear-gradient(160deg, rgba(24,61,113,.56), rgba(2,4,8,.97)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.035) 15px 16px);
}
.discipline-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -82px;
  right: -82px;
  border: 1px solid rgba(243,197,65,.24);
  transform: rotate(45deg);
}
.discipline-card span {
  position: relative;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

.join {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.join-intro {
  position: sticky;
  top: 7rem;
}
.join-intro p:last-child {
  margin-top: 1.5rem;
  color: var(--muted);
  line-height: 1.8;
}

.form-shell {
  overflow: hidden;
  border: 1px solid rgba(243,197,65,.35);
  border-radius: 18px;
  background: #0a1019;
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}

.form-topline {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.2rem;
  border-bottom: 1px solid rgba(243,197,65,.22);
}
.form-topline img {
  width: 132px;
  height: 60px;
  object-fit: contain;
}
.form-topline a {
  font-size: .76rem;
  font-weight: 800;
}

.form-shell iframe {
  display: block;
  width: 100%;
  min-height: 1350px;
  border: 0;
  background: white;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

.instagram-card {
  min-width: min(100%, 360px);
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15,38,72,.84), rgba(6,11,20,.95));
}
.instagram-card span {
  display: block;
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .8rem;
}
.instagram-card strong { display: block; font-size: clamp(1.2rem, 2.2vw, 2rem); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem clamp(1.1rem, 6vw, 6rem);
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .78rem;
}
footer img {
  width: 125px;
  height: 58px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(2,4,8,.98);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem; }

  .hero { grid-template-columns: 1fr; padding-top: 8.5rem; }
  .hero-art { min-height: 0; height: auto; overflow: visible; }
  .hero-art img,
  .ctc-hero-video { width: min(570px, 100%); height: auto !important; max-height: none !important; }

  .about, .join { grid-template-columns: 1fr; }
  .join-intro { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; }
  .step-number { margin-bottom: 2rem; }
}

@media (max-width: 700px) {
  .discipline-grid { grid-template-columns: 1fr; }
  .discipline-card { min-height: 180px; }
  .section { padding: 5rem 1rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .form-topline { align-items: flex-start; flex-direction: column; }
  .form-shell iframe { min-height: 1500px; }
  .contact, footer { flex-direction: column; align-items: flex-start; }
}


/* Custom Couch To Cage registration form */
.registration-panel {
  overflow: hidden;
  border: 1px solid rgba(243,197,65,.38);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8,14,24,.98), rgba(3,6,11,.99));
  box-shadow: 0 32px 100px rgba(0,0,0,.52);
}

.registration-visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1004;
  overflow: hidden;
  border-bottom: 1px solid rgba(243,197,65,.3);
  background: #02050b;
}

.registration-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(5,9,16,.15) 58%, rgba(5,9,16,.98)),
    linear-gradient(90deg, rgba(3,6,12,.18), transparent 50%, rgba(3,6,12,.18));
}

.registration-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ctc-form {
  padding: clamp(1.2rem, 3.5vw, 2.5rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(30,75,138,.14), transparent 22rem),
    linear-gradient(180deg, rgba(13,20,31,.98), rgba(5,9,15,.99));
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.7rem;
  border-bottom: 1px solid rgba(243,197,65,.32);
}

.form-heading img {
  width: 145px;
  height: 88px;
  object-fit: contain;
}

.form-heading h3 {
  margin: 0 0 .4rem;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -.035em;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.form-section h4 {
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ctc-form label,
.ctc-form fieldset {
  display: block;
  margin: 0 0 1rem;
}

.ctc-form label > span,
.ctc-form legend {
  display: block;
  margin-bottom: .55rem;
  color: #f4f6f9;
  font-size: .88rem;
  font-weight: 800;
}

.ctc-form b {
  color: #ff5c52;
  font-weight: 900;
}

.ctc-form input,
.ctc-form select,
.ctc-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(243,197,65,.58);
  border-radius: 7px;
  outline: none;
  padding: .85rem 1rem;
  color: #f8fafc;
  background: rgba(2,6,12,.72);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ctc-form textarea {
  min-height: 130px;
  resize: vertical;
}

.ctc-form input::placeholder,
.ctc-form textarea::placeholder {
  color: #7f8997;
}

.ctc-form input:focus,
.ctc-form select:focus,
.ctc-form textarea:focus {
  border-color: var(--gold);
  background: rgba(6,12,22,.95);
  box-shadow: 0 0 0 3px rgba(243,197,65,.12);
}

.ctc-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 13px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ctc-form fieldset {
  padding: 0;
  border: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.choice {
  margin: 0 !important;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 !important;
  padding: .7rem 1rem;
  border: 1px solid rgba(243,197,65,.42);
  border-radius: 999px;
  color: #dbe1e9 !important;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.choice input:checked + span {
  color: #070707 !important;
  border-color: var(--gold);
  background: linear-gradient(135deg, #ffe999, var(--gold) 48%, #b67915);
}

.file-field input {
  padding: .7rem;
}

.file-field input::file-selector-button {
  margin-right: .8rem;
  border: 0;
  border-radius: 5px;
  padding: .7rem .9rem;
  color: #0a0a0a;
  background: var(--gold);
  font-weight: 800;
}

.consent {
  display: grid !important;
  grid-template-columns: 24px 1fr;
  gap: .75rem;
  align-items: start;
  margin: 1.5rem 0 !important;
}

.consent input {
  width: 20px;
  min-height: 20px;
  margin-top: .1rem;
  accent-color: var(--gold);
}

.consent span {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  line-height: 1.55;
}

.submit-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 7px;
  color: #080808;
  background: linear-gradient(135deg, #fff0a7, var(--gold) 45%, #b77711);
  box-shadow: 0 15px 38px rgba(243,197,65,.18);
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:hover {
  filter: brightness(1.04);
}

.privacy-note {
  margin: .9rem 0 0;
  color: #7f8997;
  font-size: .75rem;
  text-align: center;
}

.hidden-field {
  position: absolute !important;
  left: -9999px !important;
}

@media (max-width: 760px) {
  .registration-visual { height: auto; }
  .field-grid.two,
  .field-grid.three { grid-template-columns: 1fr; }
  .form-heading { align-items: flex-start; flex-direction: column; }
  .form-heading img { width: 130px; height: 72px; }
}

.thank-you-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.thank-you-card {
  width: min(720px, 100%);
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid rgba(243,197,65,.35);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(145deg, rgba(15,37,70,.88), rgba(3,7,13,.97));
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.thank-you-card img {
  width: 210px;
  height: 130px;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.thank-you-card h1 {
  font-size: clamp(2.7rem, 8vw, 5rem);
}
.thank-you-card p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--muted);
  line-height: 1.75;
}


/* V5 polish */
.site-header {
  min-height: 70px;
  padding-top: .35rem;
  padding-bottom: .35rem;
}

.brand img {
  width: 190px;
  height: 64px;
}

.ctc-form em {
  color: var(--muted);
  font-size: .76rem;
  font-style: normal;
  font-weight: 600;
}

.submit-button {
  position: relative;
}

.submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: .7rem;
  border: 3px solid rgba(0,0,0,.25);
  border-top-color: #080808;
  border-radius: 50%;
  vertical-align: middle;
  animation: ctc-spin .75s linear infinite;
}

.submit-button.is-loading .submit-spinner {
  display: inline-block;
}

.submit-button.is-loading {
  cursor: wait;
  opacity: .9;
}

@keyframes ctc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
  .brand img {
    width: 165px;
    height: 58px;
  }
}

.registration-success {
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(30, 75, 138, .2), transparent 22rem),
    linear-gradient(180deg, rgba(13, 20, 31, .98), rgba(5, 9, 15, .99));
}

.registration-success img {
  width: min(220px, 70%);
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.registration-success h3 {
  margin: .25rem 0 1rem;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
}

.registration-success p:last-child {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

/* V9 additions */
.section-subtitle{max-width:780px;margin:14px auto 0;color:var(--muted,#aab0bd);line-height:1.7;text-align:center}
.family-grid{columns:3 290px;column-gap:18px;margin-top:34px}
.gallery-item{display:block;width:100%;padding:0;margin:0 0 18px;border:1px solid rgba(202,164,55,.38);border-radius:16px;overflow:hidden;background:#050914;cursor:zoom-in;break-inside:avoid;box-shadow:0 14px 32px rgba(0,0,0,.25)}
.gallery-item img{display:block;width:100%;height:auto;min-height:180px;object-fit:cover;transition:transform .25s ease,filter .25s ease}
.gallery-item:hover img,.gallery-item:focus-visible img{transform:scale(1.025);filter:brightness(1.08)}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:68px 56px}
.gallery-lightbox img{max-width:min(1100px,92vw);max-height:86vh;object-fit:contain;border-radius:10px;box-shadow:0 0 0 1px rgba(202,164,55,.45)}
.lightbox-close,.lightbox-nav{position:absolute;border:1px solid rgba(202,164,55,.65);background:rgba(3,5,10,.78);color:white;border-radius:999px;cursor:pointer}
.lightbox-close{top:18px;right:18px;width:46px;height:46px;font-size:32px;line-height:1}
.lightbox-nav{top:50%;transform:translateY(-50%);width:48px;height:58px;font-size:42px;line-height:1}
.lightbox-prev{left:14px}.lightbox-next{right:14px}
body.lightbox-open{overflow:hidden}
.partner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:34px}
.partner-card{border:1px solid rgba(202,164,55,.42);background:linear-gradient(145deg,#091426,#030914);border-radius:22px;padding:20px;text-align:center}
.partner-logo{aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:#111;display:flex;align-items:center;justify-content:center}
.partner-logo img{width:100%;height:100%;object-fit:contain;padding:8px}
.partner-card h3{margin:18px 0 4px;text-transform:uppercase;letter-spacing:.08em;font-size:1.05rem}
.contact-actions{display:grid;gap:16px;min-width:min(100%,520px)}
.social-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.social-buttons .button{text-align:center;padding-inline:12px}
.medical-readiness #bloodworkDateField{margin-top:18px}
@media(max-width:760px){.family-grid{columns:2 145px;column-gap:10px}.gallery-item{margin-bottom:10px;border-radius:11px}.partner-grid{grid-template-columns:1fr}.social-buttons{grid-template-columns:1fr}.gallery-lightbox{padding:60px 12px}.lightbox-nav{width:40px;height:50px}.lightbox-prev{left:5px}.lightbox-next{right:5px}}


/* V9 final gallery stability fix: prevents iOS Safari multicolumn stretching after form reload. */
.family-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  columns: auto !important;
  column-gap: normal !important;
  align-items: start;
}
.gallery-item {
  display: block;
  min-width: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  contain: layout paint;
}
.gallery-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
}
.gallery-item:first-child img {
  object-fit: contain !important;
  background: #02050c;
}
@media (max-width: 760px) {
  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .gallery-item { aspect-ratio: 4 / 5; }
}
@media (max-width: 380px) {
  .family-grid { grid-template-columns: 1fr !important; }
  .gallery-item { aspect-ratio: 4 / 3; }
}

/* V9 concept preview: upcoming events + nationwide fighter network */
.events-preview,.fighter-network{position:relative;overflow:hidden}
.events-preview::before,.fighter-network::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 15%,rgba(18,50,92,.16),transparent 42%)}
.events-summary{position:relative;display:grid;grid-template-columns:minmax(220px,.6fr) 1.4fr;gap:24px;margin-top:36px}
.fight-count{min-height:300px;border:1px solid rgba(243,197,65,.45);border-radius:24px;background:linear-gradient(145deg,#0d2240,#030812);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.fight-count span{font-size:clamp(6rem,14vw,10rem);font-weight:900;line-height:.8;color:var(--gold);text-shadow:0 0 35px rgba(243,197,65,.25)}
.fight-count small{margin-top:24px;font-size:.88rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.events-list{display:grid;gap:18px}
.event-card{display:grid;grid-template-columns:100px 1fr auto;align-items:center;gap:22px;padding:22px;border:1px solid rgba(243,197,65,.35);border-radius:22px;background:linear-gradient(145deg,rgba(11,27,51,.96),rgba(3,8,17,.98));box-shadow:0 18px 50px rgba(0,0,0,.25)}
.event-date{width:92px;height:110px;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#e0b63c,#8f5f0c);color:#070707;box-shadow:0 0 28px rgba(243,197,65,.16)}
.event-date span{font-size:.78rem;font-weight:900;letter-spacing:.18em}.event-date strong{font-size:3.3rem;line-height:1;font-weight:900}
.event-promotion{margin:0 0 5px;color:var(--gold);font-size:.75rem;font-weight:900;letter-spacing:.13em}.event-details h3{margin:0;font-size:clamp(1.7rem,4vw,2.4rem)}.event-details p:last-child{margin:.45rem 0 0;color:var(--muted)}
.event-status{padding:10px 12px;border:1px solid rgba(243,197,65,.5);border-radius:999px;color:var(--gold);font-size:.68rem;font-weight:900;letter-spacing:.12em}
.network-shell{position:relative;margin-top:38px;border:1px solid rgba(243,197,65,.35);border-radius:26px;overflow:hidden;background:linear-gradient(160deg,#07172a,#02060d 68%);box-shadow:0 35px 90px rgba(0,0,0,.55)}
.network-map{position:relative;width:100%;padding:24px;height:clamp(380px,78vw,720px);overflow:hidden;box-sizing:border-box;background:#01040a}
.map-viewport{position:relative;width:100%;height:100%;overflow:hidden;border-radius:16px;cursor:grab;touch-action:none;background:radial-gradient(circle at 50% 40%,rgba(37,72,118,.08),transparent 70%)}
.map-viewport.is-dragging{cursor:grabbing}
.map-stage{position:absolute;top:0;left:0;width:100%;height:100%;transform-origin:0 0;will-change:transform}
.usa-map-image{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 32px rgba(243,197,65,.14));pointer-events:none;user-select:none;-webkit-user-drag:none}
.network-overlay{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;pointer-events:none}
.map-controls{position:absolute;top:36px;right:36px;z-index:5;display:flex;flex-direction:column;gap:8px}
.map-btn{width:38px;height:38px;border-radius:10px;border:1px solid rgba(243,197,65,.5);background:rgba(2,6,13,.82);color:var(--gold);font-size:1.2rem;font-weight:900;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease}
.map-btn:hover{background:rgba(243,197,65,.18)}
.map-btn-reset{width:auto;height:32px;padding:0 10px;font-size:.65rem;letter-spacing:.08em;font-weight:800}
.map-hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:5;margin:0;padding:6px 14px;border-radius:999px;background:rgba(2,6,13,.72);border:1px solid rgba(243,197,65,.22);color:var(--muted);font-size:.68rem;letter-spacing:.04em;pointer-events:none;white-space:nowrap;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis}
.route-lines line{stroke:rgba(243,197,65,.45);stroke-width:2.4;stroke-dasharray:7 10;animation:routeFlow 4.2s linear infinite;filter:drop-shadow(0 0 5px rgba(243,197,65,.28))}
.city text{fill:#fff;font-size:17px;font-weight:900;text-anchor:middle;letter-spacing:2px}.city .home-label{fill:var(--gold);font-size:13px}.city .dot{fill:#ff3232;filter:url(#redGlow)}.city-home .dot{fill:var(--gold);filter:url(#goldGlow)}
.pulse-ring{fill:none;stroke:#ff3232;stroke-width:4;opacity:.8;transform-box:fill-box;transform-origin:center;animation:mapPulse 1.8s ease-out infinite}.city-home .pulse-ring{stroke:var(--gold);animation-duration:1.35s}
.city:nth-of-type(5) .pulse-ring{animation-delay:.2s}.city:nth-of-type(6) .pulse-ring{animation-delay:.45s}.city:nth-of-type(7) .pulse-ring{animation-delay:.7s}.city:nth-of-type(8) .pulse-ring{animation-delay:.95s}.city:nth-of-type(9) .pulse-ring{animation-delay:1.2s}.city:nth-of-type(10) .pulse-ring{animation-delay:1.45s}
.network-callout{display:flex;align-items:center;gap:20px;padding:25px 28px;border-top:1px solid rgba(243,197,65,.24);background:rgba(2,6,13,.82)}.network-callout h3{margin:0;font-size:clamp(1.5rem,3vw,2.2rem)}.network-callout p:not(.eyebrow){flex:1;margin:0;color:var(--muted)}.network-callout .button{white-space:nowrap}
@keyframes mapPulse{0%{transform:scale(.65);opacity:1}100%{transform:scale(1.65);opacity:0}}@keyframes routeFlow{to{stroke-dashoffset:-42}}
@media(max-width:760px){.events-summary{grid-template-columns:1fr}.fight-count{min-height:220px}.event-card{grid-template-columns:74px 1fr;gap:14px;padding:14px}.event-date{width:70px;height:86px}.event-date strong{font-size:2.45rem}.event-status{grid-column:2;justify-self:start}.network-map{padding:12px;height:clamp(320px,90vw,560px)}.map-controls{top:22px;right:22px}.map-hint{font-size:.6rem;padding:5px 10px}.city text{font-size:22px;letter-spacing:1px}.network-callout{align-items:flex-start;flex-direction:column;padding:22px}.network-callout .button{width:100%;text-align:center}}

@media(max-width:760px){.city text{font-size:19px;paint-order:stroke;stroke:#07111f;stroke-width:4px;stroke-linejoin:round}.city .home-label{font-size:14px}.route-lines line{stroke-width:2}}


/* CTC registration success motto */
.ctc-success-motto {
  width: min(100%, 620px);
  margin: 26px auto 4px;
  padding: 22px 18px;
  display: grid;
  gap: 9px;
  text-align: center;
  border-top: 1px solid rgba(243, 197, 65, .35);
  border-bottom: 1px solid rgba(243, 197, 65, .35);
  background: linear-gradient(180deg, rgba(8, 24, 56, .52), rgba(2, 7, 18, .18));
}
.ctc-success-motto strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.12;
}
.ctc-success-motto .motto-blue {
  color: #2f5f9b;
  font-size: clamp(1.15rem, 4vw, 1.65rem);
  text-shadow: 0 0 18px rgba(47, 95, 155, .35);
}
.ctc-success-motto .motto-gold {
  color: var(--gold, #f3c541);
  font-size: clamp(1.22rem, 4.5vw, 1.85rem);
  text-shadow: 0 0 18px rgba(243, 197, 65, .36);
}
.ctc-success-motto .motto-family {
  color: #fff;
  margin-top: 3px;
  font-size: clamp(.98rem, 3.5vw, 1.28rem);
}

/* V12 map-coordinate + contact motto update */
.contact-motto{line-height:.94}
.contact-blue{color:#2f5f9b;text-shadow:0 0 18px rgba(47,95,155,.28)}
.contact-gold{color:var(--gold);text-shadow:0 0 18px rgba(243,197,65,.24)}


/* Final CTC navy reference + map alignment pass */
.events-preview,.fighter-network,.family,.contact {
  background-color:#061426;
  background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.014) 0 2px,transparent 2px 24px),linear-gradient(180deg,rgba(8,26,47,.96),rgba(2,8,17,.98));
}
.network-map{background:#02060d}
.contact-blue{background:linear-gradient(180deg,#4779ad,#214d82);-webkit-background-clip:text;background-clip:text;color:transparent}

/* V13 exact approved map artwork + aligned interactive overlay */
.usa-map-image{object-fit:contain}
.network-overlay{preserve-aspect-ratio:xMidYMid meet}
.map-pulse .pulse-ring{fill:none;stroke:#ff3232;stroke-width:4;opacity:.9;filter:url(#redGlow);transform-box:fill-box;transform-origin:center;animation:mapPulse 1.8s ease-out infinite}
.map-pulse:nth-of-type(3) .pulse-ring{animation-delay:.18s}
.map-pulse:nth-of-type(4) .pulse-ring{animation-delay:.36s}
.map-pulse:nth-of-type(5) .pulse-ring{animation-delay:.54s}
.map-pulse:nth-of-type(6) .pulse-ring{animation-delay:.72s}
.map-pulse:nth-of-type(7) .pulse-ring{animation-delay:.90s}
.map-pulse:nth-of-type(8) .pulse-ring{animation-delay:1.08s}
.map-pulse:nth-of-type(9) .pulse-ring{animation-delay:1.26s}
.contact-bleed{color:#fff}
.contact-blue{background:linear-gradient(180deg,#4f91d2,#2f5f9b);-webkit-background-clip:text;background-clip:text;color:transparent}


/* Fighter support benefits */
.fighter-support {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(243,197,65,.12);
  border-bottom: 1px solid rgba(243,197,65,.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(243,197,65,.09), transparent 34rem),
    linear-gradient(180deg, rgba(3,9,19,.96), rgba(6,20,38,.98));
}
.fighter-support::before {
  content: "CTC";
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255,255,255,.018);
  font-size: clamp(15rem, 35vw, 38rem);
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.support-subtitle {
  max-width: 780px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem,1.45vw,1.16rem);
  line-height: 1.8;
}
.support-grid {
  position: relative;
  max-width: 1200px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.support-card {
  min-height: 285px;
  padding: 1.7rem;
  border: 1px solid rgba(243,197,65,.28);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(12,31,57,.94),rgba(2,7,15,.98));
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
  display: flex;
  flex-direction: column;
}
.support-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(243,197,65,.55);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(243,197,65,.06);
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: inset 0 0 22px rgba(243,197,65,.05);
  flex-shrink: 0;
}
.support-card h3 {
  margin-bottom: .75rem;
  color: var(--white);
  font-size: 1.22rem;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.support-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}
.support-statement {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  border-top: 1px solid rgba(243,197,65,.35);
  border-bottom: 1px solid rgba(243,197,65,.35);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.support-statement strong { color: var(--gold); }
.support-statement span { color: var(--white); font-weight: 800; }

@media (max-width: 980px) {
  .support-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .support-grid { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .support-card { min-height: 0; padding: 1.45rem; }
  .support-icon { margin-bottom: 1.5rem; }
  .support-statement { align-items: flex-start; flex-direction: column; text-align: left; }
}

/* CTC V2 final multi-page adjustments */
.home-join-cta {
  border-top: 1px solid rgba(243,197,65,.18);
  background: radial-gradient(circle at 50% 20%, rgba(243,197,65,.08), transparent 30rem);
}
.home-join-cta h2 { margin-bottom: 1rem; font-size: clamp(2.8rem,5.6vw,5.8rem); line-height:.96; }
@media (max-width: 980px) { .support-grid { grid-template-columns: 1fr; } }


/* Contact page mobile stacking and overflow fix */
.contact-layout {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.contact-copy,
.contact-actions {
  min-width: 0;
}
.contact-actions .instagram-card {
  max-width: 100%;
  overflow: hidden;
}
.contact-actions .instagram-card strong {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word !important;
}
.join-staple .motto-gold,
.join-staple .motto-family {
  line-height: 1.12;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: stretch;
  }
  .contact-copy,
  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .contact {
    display: block;
  }
  .contact-layout {
    gap: 2rem;
  }
  .contact-copy {
    text-align: left;
  }
  .contact-copy .contact-motto {
    font-size: clamp(3rem, 15vw, 5rem) !important;
  }
  .contact-actions .instagram-card {
    min-width: 0;
    width: 100% !important;
    padding: 1.5rem !important;
  }
  .contact-actions .instagram-card strong {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }
  .contact-actions .social-buttons {
    grid-template-columns: 1fr;
  }
}


/* Final CTC motto and gallery atmosphere updates */
.hero-and {
  display: inline-block;
  color: var(--white) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  font-size: .38em;
  letter-spacing: .18em;
  line-height: 1.7;
}
.join-staple .motto-blue,
.join-staple .motto-gold {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.12;
}

.gallery-page {
  position: relative;
  background: #020811;
}
.gallery-video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #020811;
  pointer-events: none;
}
.gallery-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .19;
  filter: brightness(.48) saturate(.72) blur(1.5px);
  transform: scale(1.025);
}
.gallery-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,8,17,.84), rgba(2,8,17,.72) 35%, rgba(2,8,17,.82)),
    radial-gradient(circle at 50% 20%, rgba(6,20,38,.12), rgba(2,8,17,.56) 72%);
}
.gallery-page .site-header,
.gallery-page main,
.gallery-page footer,
.gallery-page .gallery-lightbox {
  position: relative;
  z-index: 1;
}
.gallery-page .family {
  background: transparent !important;
  background-image: none !important;
}
.gallery-page .family::before {
  display: none !important;
}
.gallery-page .gallery-item {
  background: rgba(5,9,20,.86);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.gallery-page footer {
  background: rgba(2,4,8,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 700px) {
  .gallery-video-bg video {
    opacity: .15;
    filter: brightness(.42) saturate(.68) blur(1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-video-bg video { display: none; }
}


/* CTC polish fixes */
.motto-bleed { color: #fff; }
.join-staple strong { display: block; }
.join-staple .motto-blue { display: inline; }
.form-heading { align-items: flex-start; gap: 0; padding-top: 0; }
.form-heading > div { width: 100%; }

/* Mobile navigation must fully cover page content */
@media (max-width: 980px) {
  .site-header { z-index: 10000; }
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    margin: 0;
    padding: 2rem 1.5rem;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: #020408;
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  body.menu-open { overflow: hidden; touch-action: none; }
  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #020408;
  }
  .site-header, .site-header * { position: relative; z-index: 10002; }
}

/* Gallery video lives only behind the top gallery header area */
.gallery-page .family {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.gallery-page .gallery-video-bg {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: clamp(600px, 76vh, 860px);
  z-index: -2;
  overflow: hidden;
  background: #020811;
  pointer-events: none;
}
.gallery-page .gallery-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .30;
  filter: brightness(.52) saturate(.78) blur(.7px);
  transform: scale(1.01);
}
.gallery-page .gallery-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,8,17,.68), rgba(2,8,17,.72) 55%, #020811 100%),
    radial-gradient(circle at 50% 15%, rgba(6,20,38,.08), rgba(2,8,17,.42) 72%);
}
.gallery-page .section-heading,
.gallery-page .family-grid { position: relative; z-index: 1; }
.gallery-page .family-grid { background: #020811; }
@media (max-width: 700px) {
  .gallery-page .gallery-video-bg { height: 690px; }
  .gallery-page .gallery-video-bg video {
    opacity: .24;
    filter: brightness(.46) saturate(.72) blur(.5px);
  }
}


/* Final mobile header, menu, motto color, and gallery-video refinements */
.header-join-now { display: none; }

/* Use the supplied logo artwork with its background removed. */
.site-header .brand img {
  background: transparent !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.34));
}

/* Exact muted CTC blue used on the reference Contact page. */
.join-staple .motto-blue {
  color: #2f5f9b !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  text-shadow: 0 0 14px rgba(47,95,155,.22);
}

/* Let the existing gallery video read more clearly without moving any text. */
.gallery-page .gallery-video-bg video {
  opacity: .52 !important;
  filter: brightness(.72) saturate(.88) contrast(1.04) !important;
  transform: scale(1.005) !important;
}
.gallery-page .gallery-video-bg::after {
  background:
    linear-gradient(180deg, rgba(2,8,17,.38), rgba(2,8,17,.46) 55%, #020811 100%),
    radial-gradient(circle at 50% 15%, rgba(6,20,38,.02), rgba(2,8,17,.25) 76%) !important;
}

@media (max-width: 980px) {
  .site-header {
    position: fixed !important;
    z-index: 10000 !important;
    display: grid !important;
    grid-template-columns: minmax(84px,1fr) auto minmax(84px,1fr);
    align-items: center;
    gap: .65rem;
    width: 100%;
    min-height: 88px;
    padding: .5rem 1rem;
    background: #020408 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .site-header .brand {
    position: relative;
    z-index: 10004;
    justify-self: start;
    display: flex;
    align-items: center;
  }
  .site-header .brand img {
    width: 116px !important;
    height: 70px !important;
  }
  .header-join-now {
    position: relative;
    z-index: 10004;
    display: inline-flex;
    justify-self: center;
    min-height: 46px;
    padding: 0 1.25rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: .78rem;
  }
  .menu-button {
    position: relative;
    z-index: 10004;
    display: block;
    justify-self: end;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #020408;
  }

  /* Restore the compact dropdown design; only the opacity/stacking bug is fixed. */
  .nav {
    position: absolute !important;
    top: 100% !important;
    left: 1rem !important;
    right: 1rem !important;
    bottom: auto !important;
    z-index: 10003 !important;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    max-height: calc(100svh - 104px);
    margin: 0;
    padding: 1.15rem;
    overflow-y: auto;
    border: 1px solid rgba(243,197,65,.32);
    border-radius: 0;
    background: #020408 !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.72);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav.open { display: flex !important; }
  .nav a {
    width: 100%;
    padding: .95rem 1rem;
    text-align: left;
  }
  .nav .button { text-align: center; margin-top: .35rem; }

  body.menu-open {
    overflow: hidden !important;
    touch-action: none;
  }
  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 88px 0 0;
    z-index: 9999;
    background: rgba(2,4,8,.98);
  }

  .gallery-page .gallery-video-bg video {
    opacity: .46 !important;
    filter: brightness(.68) saturate(.84) contrast(1.03) !important;
  }
  .gallery-page .gallery-video-bg::after {
    background:
      linear-gradient(180deg, rgba(2,8,17,.34), rgba(2,8,17,.44) 58%, #020811 100%),
      radial-gradient(circle at 50% 15%, rgba(6,20,38,.02), rgba(2,8,17,.22) 76%) !important;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: minmax(76px,1fr) auto minmax(76px,1fr);
    gap: .4rem;
    padding-inline: .8rem;
  }
  .site-header .brand img { width: 100px !important; height: 64px !important; }
  .header-join-now { min-height: 42px; padding: 0 .9rem; font-size: .7rem; }
  .menu-button { width: 50px; height: 50px; }
}

/* Join page hero-image update only */
.join-hero {
  position: relative;
  min-height: clamp(560px, 64vh, 720px);
  display: flex;
  align-items: flex-end;
  margin-top:0;
  padding-top:0;
  overflow: hidden;
  border-bottom: 1px solid rgba(243,197,65,.24);
  background: #020811;
}
.join-hero-bg,
.join-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.join-hero-bg {
  background-image: url('../assets/registration-sky.jpeg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  transform: scale(1.08);
  transform-origin: center center;
}
.join-hero-overlay {
  background:
    linear-gradient(180deg, rgba(2,8,17,.28) 0%, rgba(2,8,17,.46) 38%, rgba(2,8,17,.93) 86%, #020811 100%),
    linear-gradient(90deg, rgba(2,8,17,.54), rgba(2,8,17,.12) 52%, rgba(2,8,17,.45));
}
.join-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1.1rem, 6vw, 6rem) clamp(3.5rem, 7vw, 6rem);
}
.join-hero .join-intro {
  position: static;
  max-width: 920px;
}
.join-hero .join-intro h2 {
  margin-bottom: .65rem;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
}
.join-hero .join-intro > p:last-of-type {
  max-width: 760px;
  margin-top: 0;
  color: #d7dee8;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.72;
}
.join-hero .join-staple {
  width: min(100%, 760px);
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.7rem;
  border-top: 1px solid rgba(243,197,65,.38);
  border-right: 0;
  border-bottom: 1px solid rgba(243,197,65,.38);
  border-left: 3px solid var(--gold);
  text-align: left;
  background: rgba(2,8,17,.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.join-form-section {
  display: block;
  padding-top: clamp(2.5rem, 5vw, 5rem);
}
.join-form-section .registration-panel {
  width: min(100%, 1040px);
  margin: 0 auto;
}

@media (max-width: 700px) {
  .join-hero {
    min-height: 760px;
    align-items: flex-end;
  margin-top:0;
  padding-top:0;
  }
  .join-hero-bg {
    background-position: center top;
    transform: scale(1.15);
  }
  .join-hero-overlay {
    background:
      linear-gradient(180deg, rgba(2,8,17,.22) 0%, rgba(2,8,17,.42) 34%, rgba(2,8,17,.9) 72%, #020811 100%),
      linear-gradient(90deg, rgba(2,8,17,.28), rgba(2,8,17,.08), rgba(2,8,17,.28));
  }
  .join-hero-content {
    padding: 4.5rem 1.5rem 2.8rem;
  }
  .join-hero .join-intro h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .join-hero .join-staple {
    margin-top: 2rem;
    padding: 1.35rem 1.25rem;
  }
  .join-form-section {
    padding: 2.25rem 1rem 5rem;
  }
}

/* Join hero mobile composition correction: preserve the full artwork instead of zooming/cropping it. */
@media (max-width: 700px) {
  .join-hero {
    min-height: 0;
    display: block;
  }

  .join-hero-bg {
    background-size: 100% auto;
    background-position: center top;
    background-color: #020811;
    transform: none;
  }

  .join-hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(2,8,17,.16) 0%,
        rgba(2,8,17,.22) 26%,
        rgba(2,8,17,.58) 49%,
        rgba(2,8,17,.91) 68%,
        #020811 100%),
      linear-gradient(90deg, rgba(2,8,17,.18), rgba(2,8,17,.03) 50%, rgba(2,8,17,.18));
  }

  .join-hero-content {
    padding: clamp(15.5rem, 70vw, 20rem) 1.5rem 2.8rem;
  }

  .join-hero .join-intro h2 {
    font-size: clamp(2.8rem, 12.5vw, 4.45rem);
    line-height: .92;
  }
}


/* Join hero final alignment: artwork begins directly below the fixed header and copy overlays the artwork. */
.join-main {
  padding-top: 70px;
}

@media (max-width: 980px) {
  .join-main {
    padding-top: 88px;
  }
}

@media (max-width: 700px) {
  .join-hero {
    position: relative;
    min-height: 760px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
    background: #020811;
  }

  .join-hero-bg {
    inset: 0;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    transform: none;
  }

  .join-hero-overlay {
    inset: 0;
    background:
      linear-gradient(180deg,
        rgba(2,8,17,.10) 0%,
        rgba(2,8,17,.16) 24%,
        rgba(2,8,17,.42) 47%,
        rgba(2,8,17,.78) 67%,
        #020811 90%),
      linear-gradient(90deg, rgba(2,8,17,.16), rgba(2,8,17,.02) 50%, rgba(2,8,17,.16));
  }

  .join-hero-content {
    width: 100%;
    padding: clamp(18rem, 49vw, 22rem) 1.5rem 2.8rem;
  }

  .join-hero .join-intro h2 {
    font-size: clamp(2.8rem, 12.5vw, 4.45rem);
    line-height: .92;
  }
}

/* Final Join mobile alignment: copy begins over the lower 35% of the artwork,
   and the page is locked to vertical scrolling only. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.join-main,
.join-hero,
.join-hero-content,
.join-form-section,
.join-form-section .registration-panel,
.join-form-section .ctc-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

@media (max-width: 700px) {
  .join-hero {
    min-height: 0 !important;
    display: block !important;
    align-items: initial !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .join-hero-bg {
    inset: 0 !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    transform: none !important;
  }

  .join-hero-overlay {
    inset: 0 !important;
    background:
      linear-gradient(180deg,
        rgba(2,8,17,.08) 0%,
        rgba(2,8,17,.12) 30%,
        rgba(2,8,17,.40) 52%,
        rgba(2,8,17,.80) 72%,
        #020811 92%),
      linear-gradient(90deg,
        rgba(2,8,17,.12),
        rgba(2,8,17,.02) 50%,
        rgba(2,8,17,.12)) !important;
  }

  .join-hero-content {
    box-sizing: border-box;
    /* The artwork displays at about 65vw tall. Starting at 42.5vw places
       the copy 35% up from the bottom of the picture. */
    padding: 42.5vw 1.5rem 2.8rem !important;
    margin: 0 !important;
    position: relative;
    z-index: 2;
  }

  .join-hero .join-intro,
  .join-hero .join-staple,
  .join-hero .join-intro > p:last-of-type {
    max-width: 100%;
    min-width: 0;
  }

  .join-hero .join-intro h2 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .join-form-section {
    box-sizing: border-box;
  }
}

/* iPhone horizontal-pan hard lock: keep every page fixed to the viewport width. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
  overscroll-behavior-x: none;
}
body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
.site-header,
.join-main,
.join-hero,
.join-hero-bg,
.join-hero-overlay,
.join-hero-content,
.join-form-section,
.registration-panel,
.ctc-form,
.form-section,
.field-grid,
footer {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.site-header {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}
.join-main,
.join-hero,
.join-hero-content,
.join-form-section {
  width: 100% !important;
  overflow-x: clip !important;
}
.ctc-form input,
.ctc-form select,
.ctc-form textarea,
.ctc-form label,
.ctc-form fieldset {
  min-width: 0;
  max-width: 100%;
}
@supports not (overflow: clip) {
  html,
  body,
  .join-main,
  .join-hero,
  .join-hero-content,
  .join-form-section {
    overflow-x: hidden !important;
  }
}


/* CTC visual refresh */
.upcoming, #upcoming, .upcoming-section{
  position:relative;
  background:
    linear-gradient(rgba(5,10,20,.70),rgba(5,10,20,.82)),
    url('images/upcoming-arena-bg.jpg') center/cover no-repeat;
}
.contact, #contact, .contact-section{
  position:relative;
  background:
    linear-gradient(rgba(5,10,20,.72),rgba(5,10,20,.86)),
    url('images/vegas-skyline-bg.jpg') center/cover no-repeat;
}


/* =========================================================
   CTC CINEMATIC FIXED PAGE BACKGROUNDS
   Homepage: arena | Events: world map | Contact: Las Vegas
   Uses a fixed pseudo-element for reliable iPhone Safari behavior.
   ========================================================= */
html { overflow-x: hidden; }
body.fixed-bg-page {
  position: relative;
  min-height: 100%;
  overflow-x: clip;
  background: #020711 !important;
  isolation: isolate;
}
body.fixed-bg-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100dvh;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform: translateZ(0);
  will-change: transform;
  pointer-events: none;
}
body.fixed-bg-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100dvh;
  background: linear-gradient(180deg, rgba(1,6,15,.46), rgba(1,7,18,.70));
  pointer-events: none;
}
body.home-bg-page::before {
  background-image: url('../backgrounds/homepage-arena.jpg');
  background-position: center center;
}
body.events-bg-page::before {
  background-image: url('../backgrounds/upcoming-world-map.jpg');
  background-position: center center;
}
body.contact-bg-page::before {
  background-image: url('../backgrounds/contact-vegas-skyline.jpg');
  background-position: center center;
}
body.fixed-bg-page > .site-header,
body.fixed-bg-page > main,
body.fixed-bg-page > footer {
  position: relative;
  z-index: 1;
}
body.fixed-bg-page main {
  background: transparent !important;
}

/* Let the selected photography remain visible while content scrolls. */
body.home-bg-page .hero,
body.home-bg-page .process,
body.home-bg-page .fighter-support,
body.home-bg-page .events-preview,
body.home-bg-page .fighter-network,
body.home-bg-page .partners,
body.home-bg-page .home-join-cta,
body.events-bg-page .events-preview,
body.contact-bg-page .contact {
  background: transparent !important;
  background-image: none !important;
}
body.home-bg-page .section,
body.events-bg-page .section,
body.contact-bg-page .section {
  position: relative;
}
body.home-bg-page .section::after,
body.events-bg-page .section::after,
body.contact-bg-page .section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2,8,19,.20), rgba(2,8,19,.46));
  pointer-events: none;
}

/* Homepage becomes a clean arena hero instead of covering the new background with video. */
body.home-bg-page .hero {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  align-content: center;
  min-height: 100svh;
  padding-top: clamp(9rem, 16vh, 12rem);
  text-align: center;
}
body.home-bg-page .hero-copy {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(2,7,16,.42), rgba(2,7,16,.72));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.home-bg-page .hero-actions { justify-content: center; }
body.home-bg-page .hero-art { display: none !important; }
body.home-bg-page .hero h1 { text-shadow: 0 5px 30px rgba(0,0,0,.88); }
body.home-bg-page .hero-text { margin-inline: auto; }

/* Cards stay readable but retain a glass-like view of each backdrop. */
body.fixed-bg-page .fight-count,
body.fixed-bg-page .event-card,
body.fixed-bg-page .support-card,
body.fixed-bg-page .step,
body.fixed-bg-page .network-shell,
body.fixed-bg-page .partner-card,
body.fixed-bg-page .contact-actions > * {
  background-color: rgba(3,9,19,.82) !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
body.events-bg-page .events-preview::before,
body.home-bg-page .events-preview::before {
  display: none !important;
}
body.contact-bg-page .contact-layout {
  padding: clamp(1rem, 3vw, 2.5rem);
  border-radius: 26px;
  background: rgba(2,8,18,.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 760px) {
  body.fixed-bg-page::before {
    height: 100svh;
    background-attachment: scroll;
  }
  body.home-bg-page::before { background-position: 50% center; }
  body.events-bg-page::before { background-position: 50% center; }
  body.contact-bg-page::before { background-position: 52% center; }
  body.home-bg-page .hero {
    min-height: 100svh;
    padding-top: 8.5rem;
  }
  body.home-bg-page .hero-copy {
    width: 100%;
    padding: 1.25rem .65rem 1.5rem;
    background: linear-gradient(180deg, rgba(2,7,16,.30), rgba(2,7,16,.74));
  }
}

/* =========================================================
   MOBILE CINEMATIC REFERENCE — approved visual direction
   Full fixed photography, no headline panels, clear hierarchy.
   ========================================================= */
:root { --cinematic-overlay: rgba(1, 6, 15, .50); }

body.fixed-bg-page::after {
  background: linear-gradient(180deg, rgba(1,6,15,.28) 0%, rgba(1,6,15,.52) 44%, rgba(1,6,15,.78) 100%) !important;
}

/* Keep backgrounds recognizable instead of aggressively cropped. */
body.home-bg-page::before,
body.events-bg-page::before,
body.contact-bg-page::before {
  background-color: #020711;
  background-repeat: no-repeat;
}

/* HOME — headline directly over arena, no glass box. */
body.home-bg-page .hero {
  min-height: 100svh;
  padding: clamp(9rem, 18vh, 12rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}
body.home-bg-page .hero-copy {
  width: min(100%, 820px);
  max-width: 820px;
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
body.home-bg-page .hero h1,
body.home-bg-page .hero .eyebrow,
body.home-bg-page .hero-text {
  text-shadow: 0 4px 24px rgba(0,0,0,.92);
}
body.home-bg-page .hero h1 { line-height: .93; }
body.home-bg-page .hero-text { max-width: 650px; }
body.home-bg-page .hero-art { display: none !important; }
body.home-bg-page .hero-actions { justify-content: center; }

.hero-stats {
  width: min(1180px, calc(100% - 2rem));
  margin: -1.25rem auto 3rem;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(243,197,65,.28);
  border-radius: 16px;
  background: rgba(2,8,18,.62);
  overflow: hidden;
}
.hero-stats > div {
  padding: 1.2rem .75rem;
  text-align: center;
  border-right: 1px solid rgba(243,197,65,.18);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong { display:block; color:var(--gold); font-size:clamp(1.35rem,3vw,2rem); font-weight:900; }
.hero-stats span { display:block; color:var(--white); font-size:.68rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin-top:.3rem; }

/* EVENTS — world map visible behind heading and cards. */
body.events-bg-page main { padding-top: 0 !important; }
body.events-bg-page .events-page-shell {
  min-height: 100svh;
  padding-top: clamp(10rem, 19vh, 13rem);
  background: transparent !important;
}
body.events-bg-page .section-heading {
  max-width: 760px;
  margin-inline: auto;
  text-shadow: 0 4px 24px rgba(0,0,0,.9);
}
body.events-bg-page .events-summary { position: relative; z-index: 2; }
body.events-bg-page .fight-count,
body.events-bg-page .event-card {
  background: rgba(2,8,18,.70) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}
body.events-bg-page .network-callout { background: rgba(2,8,18,.72); }

/* CONTACT — skyline visible; main words sit directly on photography. */
body.contact-bg-page main { padding-top: 0 !important; }
body.contact-bg-page .contact-page-shell {
  min-height: 100svh;
  padding-top: clamp(10rem, 18vh, 13rem);
  padding-bottom: 4rem;
  justify-content: flex-start;
  background: transparent !important;
}
body.contact-bg-page .contact-layout {
  width: min(1180px, 100%);
  margin: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
body.contact-bg-page .contact-copy {
  text-shadow: 0 4px 24px rgba(0,0,0,.92);
}
body.contact-bg-page .contact-copy > p:last-child {
  max-width: 640px;
  color: rgba(255,255,255,.82) !important;
  line-height: 1.75;
  font-size: clamp(1rem,2vw,1.15rem);
}
body.contact-bg-page .contact-motto { line-height: .92; margin: .6rem 0 1.5rem; }
body.contact-bg-page .instagram-card {
  background: rgba(2,8,18,.72) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 760px) {
  /* Size by viewport height rather than cover, revealing more of each photo. */
  body.home-bg-page::before {
    background-size: auto 82svh !important;
    background-position: 50% 5.8rem !important;
  }
  body.events-bg-page::before {
    background-size: auto 78svh !important;
    background-position: 50% 6rem !important;
  }
  body.contact-bg-page::before {
    background-size: auto 78svh !important;
    background-position: 50% 6rem !important;
  }

  body.home-bg-page .hero {
    min-height: 100svh;
    padding: 20rem 1.45rem 4rem !important;
    align-items: flex-end;
  }
  body.home-bg-page .hero-copy { padding: 0 !important; }
  body.home-bg-page .hero h1 { font-size: clamp(3.4rem, 15vw, 5.7rem); }
  body.home-bg-page .hero-text { font-size: 1rem; line-height: 1.75; }
  body.home-bg-page .hero-actions { display:grid; grid-template-columns:1fr; gap:.8rem; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -1rem;
  }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(243,197,65,.18); }

  body.events-bg-page .events-page-shell { padding: 21rem 1.25rem 4rem; }
  body.events-bg-page .section-heading { text-align:left; }
  body.events-bg-page .section-heading h2 { font-size: clamp(3rem,13vw,4.6rem); line-height:.95; }
  body.events-bg-page .events-summary { margin-top: 2rem !important; }
  body.events-bg-page .fight-count { min-height: 170px; }

  body.contact-bg-page .contact-page-shell { padding: 21rem 1.45rem 4rem; }
  body.contact-bg-page .contact-layout { display:block; }
  body.contact-bg-page .contact-copy,
  body.contact-bg-page .contact-actions { width:100%; }
  body.contact-bg-page .contact-motto { font-size: clamp(3.7rem, 17vw, 5.8rem) !important; }
  body.contact-bg-page .contact-actions { margin-top:2.25rem; }
  body.contact-bg-page .instagram-card { padding:1.5rem !important; }
}

/* =========================================================
   HOME ARENA FRAMING — show more lights/fans, less cage
   ========================================================= */
body.home-bg-page::before {
  background-image: url('../backgrounds/home-arena-background.jpg') !important;
  background-size: auto 74vh !important;
  background-position: 50% 5.75rem !important;
  background-repeat: no-repeat !important;
  background-color: #020711 !important;
}

@media (max-width: 760px) {
  body.home-bg-page::before {
    /* Pull back the landscape artwork so the arena lights and crowd dominate.
       The cage remains visible only as a smaller anchor near the bottom. */
    background-size: auto 62svh !important;
    background-position: 50% 5.65rem !important;
  }

  body.home-bg-page .hero {
    padding-top: 18.5rem !important;
  }
}
