/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.display,
h1, h2.section-head, .stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

h1 { font-size: var(--t-d1); }
.t-hero { font-size: var(--t-hero); }
.t-d1 { font-size: var(--t-d1); }
.t-d2 { font-size: var(--t-d2); }

h2.section-head { font-size: var(--t-d2); }

h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h3 { font-size: var(--t-d3); }
h4 { font-size: 1.0625rem; }

p { max-width: var(--measure); }

.lead {
  font-size: var(--t-lead);
  color: var(--slate);
  line-height: 1.55;
}

.muted { color: var(--slate); }
.small { font-size: var(--t-small); }

/* Eyebrow labels. Inter 600, uppercase, wide tracking. */
.eyebrow {
  display: block;
  font-size: var(--t-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--slate);
  margin-bottom: 1.5rem;
}
.eyebrow--gold { color: var(--gold); }

/* Inline emphasis inside display type */
.display em, h1 em, h2 em { font-style: italic; }

a.text-link {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.text-link:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* Breaks out of a constrained parent. Uses margin rather than a transform:
   a transformed ancestor becomes the containing block for position:fixed
   descendants, which silently breaks ScrollTrigger's pinning. */
.bleed {
  width: auto;
  margin-inline: calc(50% - 50vw);
}

/* Section density is chosen per section, never defaulted */
.sec-tight { padding-block: var(--pad-tight); }
.sec-base  { padding-block: var(--pad-base); }
.sec-open  { padding-block: var(--pad-open); }

.rule {
  height: 1px;
  background: var(--rule-soft);
  border: 0;
  margin: 0;
}
.rule--gold {
  height: 2px;
  width: 56px;
  background: var(--gold);
  border: 0;
  margin: 0 0 2rem;
}

/* Asymmetric split. Not a 3-up grid, and not 50/50. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split--reverse { grid-template-columns: 6fr 5fr; }
  .split--wide-left { grid-template-columns: 7fr 4fr; }
}

.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2.5rem; }

/* ==========================================================================
   BUTTONS - gold is action only
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover { background: var(--white); }

.btn--ghost {
  border: 1px solid var(--rule);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--lg { padding: 1.25rem 2.25rem; font-size: 1rem; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* Secondary text link with a moving rule */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.link-arrow:hover::after { width: 38px; }

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* Frosted glass, always on (not hover-gated like the cohort cards, since
     the nav is fixed and permanently in view while scrolling). Same
     recipe as the cards: navy-deep tint, saturate boost, thin top-edge
     glow, so it reads as one consistent material across the site. */
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.10) 0%, transparent 60%),
    rgba(6, 18, 35, 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule-soft);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
  background: var(--chrome-gradient);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: chrome-sweep 7s ease-in-out infinite;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav__links a {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--white); }
.nav__links a[aria-current="page"] { color: var(--white); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: -0.5rem;
}
.nav__toggle-bar {
  position: relative;
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: background 0.2s var(--ease);
}
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.28s var(--ease);
}
.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after  { top: 7px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* Drawer. The only element on the site with a shadow, because it floats. */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: var(--z-drawer);
  background: var(--navy-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 2.5rem var(--gutter) 3rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.drawer[data-open="true"] { display: flex; }

.drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.15;
  color: var(--white);
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule-soft);
}
.drawer a[aria-current="page"] { color: var(--gold); }
.drawer .btn { margin-top: 2rem; align-self: flex-start; }

@media (max-width: 767px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* The drawer is a mobile control only. CSS enforces the breakpoint so that a
   missed resize event can never leave it covering a desktop viewport. */
@media (min-width: 768px) {
  .drawer, .drawer[data-open="true"] { display: none; }
}

/* Same reasoning for the scroll lock. Scoped to mobile so the page can never
   be left unscrollable on desktop. */
@media (max-width: 767px) {
  body[data-drawer-open="true"] { overflow: hidden; }
}

/* ==========================================================================
   PAGE HEADER (every page except Home)
   ========================================================================== */

.page-head {
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: var(--pad-tight);
  border-bottom: 1px solid var(--rule-soft);
}
.page-head h1 { max-width: 10em; }
.page-head .lead { margin-top: 1.75rem; max-width: 56ch; }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form { max-width: 620px; }
.form--wide { max-width: 100%; }

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-size: var(--t-small);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.field .hint {
  display: block;
  font-size: var(--t-micro);
  color: var(--slate);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.req { color: var(--gold); margin-left: 0.15rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--white);
  font-size: var(--t-body);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--slate); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--gold);
  background: var(--surface-2);
  outline-offset: 1px;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(136, 146, 176, 0.85); }

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--slate) 50%),
    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.field select option { background: var(--navy-deep); color: var(--white); }

.field input[type="file"] {
  padding: 0.7rem;
  font-size: var(--t-small);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--white);
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
}

/* Two-up field rows. Not a card grid, just paired inputs. */
.field-row {
  display: grid;
  gap: 0 1.25rem;
}
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* Invalid state */
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--gold); }

.field-error {
  display: block;
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* Honeypot. Hidden from humans, reachable by bots. Not display:none. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  display: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gold);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(255, 215, 0, 0.06);
  font-size: var(--t-small);
  line-height: 1.55;
}
.form-error[data-visible="true"] { display: block; }

.form-legal {
  font-size: var(--t-micro);
  color: var(--slate);
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ==========================================================================
   PLACEHOLDER FLAG - visible on purpose. Cannot ship unnoticed.
   ========================================================================== */

.placeholder-flag {
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: rgba(255, 215, 0, 0.05);
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--white);
  max-width: var(--measure);
}
.placeholder-flag strong {
  display: block;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  margin-top: var(--pad-base);
}

.footer__grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  background: var(--chrome-gradient);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: chrome-sweep 7s ease-in-out infinite;
}
.nav__brand span,
.footer__brand span {
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@keyframes chrome-sweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.footer__blurb {
  font-size: var(--t-small);
  color: var(--slate);
  max-width: 34ch;
}

.footer h4, .footer__head {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer ul li + li { margin-top: 0.7rem; }
.footer ul a {
  font-size: var(--t-small);
  color: var(--white);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer ul a:hover { color: var(--gold); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-micro);
  color: var(--slate);
}
.footer__base a { color: var(--slate); text-decoration: none; }
.footer__base a:hover { color: var(--white); }
.footer__base .spacer { margin-left: auto; }

/* ==========================================================================
   CURSOR RING
   Decorative only. Real cursor stays untouched.
   ========================================================================== */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s var(--ease), width 0.2s var(--ease), height 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.cursor-ring--visible { opacity: 0.65; }
.cursor-ring--active {
  width: 44px;
  height: 44px;
  border-color: var(--white);
  opacity: 0.35;
}

/* ==========================================================================
   SOUND TOGGLE
   Off by default, always. Never autoplays. A visitor has to opt in.
   ========================================================================== */
.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--slate);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}
.sound-toggle:hover { color: var(--white); }
.sound-toggle__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound-toggle__icon path:first-child { stroke: none; }
.sound-toggle__wave { fill: none; opacity: 0; transition: opacity var(--dur) var(--ease); }
.sound-toggle__slash { fill: none; opacity: 1; transition: opacity var(--dur) var(--ease); }

/* On: waves show, slash hides, and the icon picks up the accent color so
   the state reads at a glance. */
.sound-toggle[aria-pressed="true"] { color: var(--gold); }
.sound-toggle[aria-pressed="true"] .sound-toggle__wave { opacity: 1; }
.sound-toggle[aria-pressed="true"] .sound-toggle__slash { opacity: 0; }
