:root {
  --bg: #0b0b0f;
  --bg-alt: #121219;
  --surface: #191922;
  --surface-2: #22222d;
  --border: #34343f;
  --text: #f4f1ea;
  --muted: #bdb8ad;
  --accent: #ffb547;
  --accent-strong: #ffc76e;
  --on-accent: #120d02;
  --danger: #ff8a80;
  --focus: #7cc4ff;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}

img, iframe { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.1; margin: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 800 16px/1 var(--font); letter-spacing: .02em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(255, 181, 71, .22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 5% 95%, rgba(124, 196, 255, .12), transparent 70%),
    linear-gradient(180deg, #050507 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6;
}
.eyebrow {
  font-weight: 800; text-transform: uppercase; letter-spacing: .2em; font-size: 13px;
  color: var(--accent); margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3.2rem, 15vw, 8.5rem); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.035em; line-height: .88; margin-bottom: 28px;
}
.accent { color: var(--accent); }
.hero-mission { font-size: clamp(1.15rem, 3.6vw, 1.5rem); max-width: 34ch; color: var(--text); margin-bottom: 16px; }
.hero-verse {
  margin: 0 0 36px; padding-left: 16px; border-left: 3px solid var(--accent);
  font-style: italic; color: var(--muted); font-size: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid #1d1d26; border-bottom: 1px solid #1d1d26; }
@media (min-width: 720px) { .section { padding: 104px 0; } }
.section-title {
  font-size: clamp(2.2rem, 8vw, 3.75rem); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.025em; margin-bottom: 16px;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 5px; margin-top: 14px; background: var(--accent); border-radius: 3px;
}
.section-title-sm { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.section-lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }

/* ---------- Videos ---------- */
.video-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video { margin: 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 12px; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Vision ---------- */
.vision-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .vision-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }
.big-text { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.welcome-card {
  background: linear-gradient(160deg, rgba(255, 181, 71, .16), rgba(255, 181, 71, .03));
  border: 1px solid rgba(255, 181, 71, .45); border-radius: var(--radius); padding: 28px;
}
.welcome-card h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 14px; color: var(--accent); }
.welcome-card p { margin: 0; }

/* ---------- Joining ---------- */
.track-grid { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 720px) { .track-grid { grid-template-columns: 1fr 1fr; } }
.track-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.track-tag { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.track-card h3 { font-size: 1.9rem; font-weight: 900; margin-bottom: 12px; }
.track-card p:last-child { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
@media (min-width: 900px) { .steps li { flex-direction: column; } }
.step-num {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: 1.15rem;
}
.steps h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Form ---------- */
#apply-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; scroll-margin-top: 16px; }
@media (min-width: 720px) { #apply-form { padding: 36px; } }
.progress { margin-bottom: 28px; }
.progress-text { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.progress-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }

.step-title { font-size: 1.75rem; font-weight: 900; margin-bottom: 20px; }
.step-title:focus { outline: none; }
.step-title:focus-visible { outline: 3px solid var(--focus); }
.step-intro { color: var(--muted); }

.field { margin-bottom: 26px; }
.field[hidden] { display: none; }
.label, legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1.02rem; }
legend { padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { color: var(--accent); }
.hint { color: var(--muted); font-size: 15px; margin: -4px 0 10px; }
.hint[hidden] { display: none; }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--bg); color: var(--text); border: 2px solid var(--border); border-radius: 10px;
  font: inherit; font-size: 17px;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input:hover, select:hover, textarea:hover { border-color: #4b4b58; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid=true]:not([type=radio]):not([type=checkbox]) { border-color: var(--danger); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-cards .choices { flex-direction: column; }
@media (min-width: 720px) { .choice-cards .choices { flex-direction: row; } .choice-cards .choice { flex: 1; } }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; min-height: 48px; cursor: pointer;
  background: var(--bg); border: 2px solid var(--border); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: #5a5a68; }
.choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(255, 181, 71, .1); }
.choice:has(input:focus-visible) { border-color: var(--focus); }
.choice-text { display: flex; flex-direction: column; gap: 4px; }
.choice-label { font-weight: 700; }
.choice-hint { color: var(--muted); font-size: 15px; }
.choice-cards .choice { padding: 18px; }
.choice-cards .choice-label { font-size: 1.15rem; }
.choice-single { width: 100%; }
.has-error .choice { border-color: rgba(255, 138, 128, .55); }

.field-error { color: var(--danger); font-weight: 700; font-size: 15px; margin: 8px 0 0; }
.field-error::before { content: "⚠ "; }
.field-error[hidden] { display: none; }

.error-summary {
  border: 2px solid var(--danger); background: rgba(255, 138, 128, .08);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 24px;
}
.error-summary[hidden] { display: none; }
.error-summary p { margin: 0 0 6px; font-weight: 700; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--text); }

.notice {
  border-left: 4px solid var(--accent); background: var(--surface-2);
  padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: 15px;
}

.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-nav .btn-primary { margin-left: auto; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.thanks h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.thanks h3:focus { outline: none; }
.thanks-verse { color: var(--muted); font-style: italic; margin: 20px 0 0; }

/* ---------- Privacy + footer ---------- */
#privacy p { color: var(--muted); }
#privacy strong { color: var(--text); }
.site-footer { border-top: 1px solid #1d1d26; padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer p { margin: 0 0 6px; }
.footer-verse { font-style: italic; }

@media (forced-colors: active) {
  .btn, .choice, .progress-bar { border: 1px solid CanvasText; }
  .progress-fill { background: Highlight; }
}
