/* ============================================================
   THE C.FERG — Christian Ferguson · Class of 2028
   Design system matched to nicholaslferguson.com:
   Barlow Condensed display / Barlow body · black + volt #C6F135
   Minimum font size: 16px everywhere.
   ============================================================ */

:root {
  --black: #0A0A0A;
  --grey: #141414;
  --rule: #222222;
  --mid: #ADADAD;
  --v: #C6F135;
  --white: #FFFFFF;
  --cond: "Barlow Condensed", sans-serif;
  --body: "Barlow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--v); color: var(--black); }

a { color: inherit; }

img, video { max-width: 100%; display: block; }

figure img, figure video { width: 100%; }

figcaption {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  padding-top: 0.6rem;
}

/* ============ ANNOUNCE + NAV ============ */
.announce {
  background: var(--v);
  color: var(--black);
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--v); }
.nav-cta {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--v);
  color: var(--black);
  padding: 0.6rem 1.4rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover { background: var(--white); }
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .announce .announce-tail { display: none; }
}

/* ============ MASTHEAD ============ */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 7.5rem); /* fill the fold below announce + nav */
  padding: clamp(1.5rem, 3vw, 3rem) 1.5rem clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.masthead-text, .masthead-photo { position: relative; z-index: 1; }
.masthead-bg {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate3d(0, var(--py, 0px), 0);
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(14rem, 34vw, 34rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(198, 241, 53, 0.09);
  pointer-events: none;
  user-select: none;
}
.masthead-kicker {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--v);
  margin-bottom: 1rem;
}
.masthead-title {
  font-family: var(--cond);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.masthead-line {
  display: block;
  font-size: clamp(3.6rem, 11vw, 10rem);
  white-space: nowrap;
}
.masthead-line.volt { color: var(--v); }
.masthead-sub {
  max-width: 36ch;
  margin-top: 1.75rem;
  font-size: 20px;
  color: var(--mid);
}
.masthead-sub strong { color: var(--v); font-weight: 500; }

.masthead-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.masthead-stats strong {
  display: block;
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1;
  color: var(--v);
}
.masthead-stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

.masthead-photo {
  transform: rotate(1.5deg) translate3d(0, var(--py, 0px), 0);
  border: 1px solid var(--rule);
  padding: 0.6rem;
  background: var(--grey);
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.masthead-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  max-height: min(72svh, 620px);
  width: 100%;
}
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr; min-height: 0; }
  .masthead-photo {
    order: -1; /* photo leads on mobile, like the NLF site */
    justify-self: center;
    transform: rotate(-1deg) translate3d(0, var(--py, 0px), 0);
    max-width: 420px;
  }
  .masthead-photo img { aspect-ratio: 4 / 3; max-height: 44svh; }
  .masthead-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .masthead-kicker { letter-spacing: 0.16em; }
  /* nowrap lines must still fit small screens — 17vw clipped "Christian C." */
  .masthead-line { font-size: clamp(2.6rem, 14vw, 5rem); }
}

/* ============ TICKER ============ */
.ticker {
  border-bottom: 1px solid var(--rule);
  background: var(--v);
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 30s linear infinite;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============ SCROLL PROGRESS ============ */
.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: calc(var(--scroll, 0) * 100%);
  background: var(--v);
}

/* ============ STACKING PANELS ============ */
/* Each panel sticks at a JS-computed top offset (0 when the panel fits
   the viewport, negative when taller) so the next panel slides over it. */
.stack { position: relative; }
.stack > section {
  position: sticky;
  top: 0; /* JS refines per panel */
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
  background: var(--black); /* opaque — otherwise stacked panels bleed through */
}
.stack > section.trajectory { background: var(--grey); }
.stack > section.band { background: var(--grey); }
.stack > section.coaches { background: var(--v); }
.stack > section:first-child { border-radius: 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .stack > section { position: static; border-radius: 0; box-shadow: none; }
}

/* ============ SECTIONS SHARED ============ */
.section-label {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--v);
  margin-bottom: 2.75rem;
}

section { border-bottom: 1px solid var(--rule); }

/* ============ NUMBERS ============ */
.numbers {
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
}
.numbers-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.numbers-big { transform: translateY(2rem); }
.big-time {
  display: block;
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.9;
  color: var(--v);
}
.big-decimal { font-size: 0.45em; color: var(--white); }
.big-caption {
  display: block;
  margin-top: 0.9rem;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}
.numbers-photo { margin-top: 2.5rem; border: 1px solid var(--rule); }
.numbers-photo img { aspect-ratio: 3 / 2; object-fit: cover; }

.pb-table {
  width: 100%;
  border-collapse: collapse;
}
.pb-table caption {
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 1rem;
}
.pb-table th, .pb-table td {
  text-align: left;
  padding: 1.1rem 0.75rem 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.pb-table th {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  width: 6.5rem;
}
.pb-time {
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1;
}
.pb-table tr:first-child .pb-time { color: var(--v); }
.pb-note { font-size: 16px; color: var(--mid); }
.numbers-footnote {
  max-width: 52ch;
  margin-top: 4rem;
  margin-left: auto;
  font-size: 20px;
  color: var(--mid);
  border-left: 3px solid var(--v);
  padding-left: 1.5rem;
}
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .numbers-big { transform: none; }
}

/* ============ TRAJECTORY ============ */
.trajectory {
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
  background: var(--grey);
}
.trajectory-headline {
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  margin-left: clamp(0rem, 12vw, 14rem);
}
.trajectory-headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--v);
}
.trajectory-cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.trajectory-body p { margin-bottom: 1.25rem; }
.trajectory-body strong { color: var(--v); font-weight: 500; }
.trajectory-photo {
  transform: rotate(-1.2deg) translate3d(0, calc(2rem + var(--py, 0px)), 0);
  border: 1px solid var(--rule);
  background: var(--black);
  padding: 0.6rem;
}
.trajectory-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) {
  .trajectory-cols { grid-template-columns: 1fr; }
  .trajectory-headline { margin-left: 0; }
  .trajectory-photo { transform: none; max-width: 480px; }
}

.tl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 4.5rem;
}
.tl-card {
  background: var(--black);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
}
.tl-card:hover { background: #161616; }
.tl-ghost {
  font-family: var(--cond);
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(198, 241, 53, 0.08);
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  letter-spacing: -0.03em;
}
.tl-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--v);
  color: var(--black);
  font-family: var(--cond);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}
.tl-title {
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--v);
  margin-bottom: 0.9rem;
  margin-top: auto;
}
.tl-desc { font-size: 18px; color: var(--mid); }
.tl-feature { background: #101008; grid-column: span 2; }
.tl-feature::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--v);
}
.tl-feature .tl-ghost { color: rgba(198, 241, 53, 0.18); }
.tl-feature .tl-title { color: var(--white); }
.tl-feature .tl-desc { color: var(--v); font-weight: 500; }
@media (max-width: 1000px) {
  .tl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tl-grid { grid-template-columns: 1fr; }
  .tl-card { min-height: 0; padding: 1.85rem 1.5rem; }
  .tl-feature { grid-column: span 1; }
}

/* ============ ACADEMICS ============ */
.academics {
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
}
.academics-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.academics-gpa {
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: 0.8;
  color: var(--v);
  transform: translateY(-1.5rem);
}
.academics-lede {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.academics-copy p:last-child { max-width: 54ch; color: var(--mid); }
@media (max-width: 720px) {
  .academics-grid { grid-template-columns: 1fr; }
  .academics-gpa { transform: none; }
}

/* ============ BAND ============ */
.band {
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
  background: var(--grey);
}
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.band-headline {
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.band-headline em { font-style: italic; font-weight: 700; color: var(--v); }
.band-copy p { margin-bottom: 1.25rem; color: var(--mid); }
.band-copy p strong { color: var(--v); }
.band-photo {
  border: 1px solid var(--rule);
  background: var(--black);
  padding: 0.6rem;
  transform: rotate(1.2deg) translate3d(0, var(--py, 0px), 0);
}
.band-photo.alt { transform: rotate(-1deg) translate3d(0, calc(1.5rem + var(--py, 0px)), 0); }
.band-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 980px) {
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-grid > div:first-child { grid-column: 1 / -1; }
  .band-photo.alt { transform: rotate(-1deg) translate3d(0, var(--py, 0px), 0); }
}
@media (max-width: 640px) {
  .band-grid { grid-template-columns: 1fr; }
  .band-photo { max-width: 400px; }
}

/* ============ FILM & PHOTOS ============ */
.media {
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
}
.media-video {
  border: 1px solid var(--rule);
  background: var(--grey);
  padding: 0.6rem;
  margin-bottom: 2.5rem;
}
.media-video video { width: 100%; aspect-ratio: 16 / 9; background: var(--black); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.media-item {
  border: 1px solid var(--rule);
  background: var(--grey);
  padding: 0.6rem;
}
.media-item:nth-child(2) { transform: translateY(1.5rem); }
.media-item img { aspect-ratio: 4 / 3; object-fit: cover; }
.media-item img[src*="trophy"], .media-item img[src*="training-turf"] { aspect-ratio: 4 / 5; }
.media-video-small video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--black); }
@media (max-width: 860px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .media-item:nth-child(2) { transform: none; }
}
@media (max-width: 560px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* ============ COACHES ============ */
.coaches {
  background: var(--v);
  color: var(--black);
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
}
.coaches .section-label { color: var(--black); }
.coaches-headline {
  font-family: var(--cond);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.coaches-headline em { font-style: italic; font-weight: 700; }
.coaches-copy { max-width: 56ch; font-size: 20px; margin-bottom: 2.5rem; }
.coaches-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 2px solid var(--black);
  padding-top: 1.75rem;
}
@media (max-width: 1000px) {
  .coaches-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .coaches-facts { grid-template-columns: 1fr; }
}
.coaches-facts dt {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}
.coaches-facts dd { font-size: 18px; }

/* ============ CONTACT ============ */
.contact {
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-heading {
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.contact-heading.connect { margin-top: 3rem; }
.contact-note {
  font-size: 16px;
  color: var(--mid);
  margin-bottom: 1.75rem;
  max-width: 48ch;
}
.coach-card {
  border: 1px solid var(--rule);
  background: var(--grey);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
}
.coach-card:hover { border-color: var(--v); }
.coach-name {
  display: block;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.coach-role {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0.35rem 0 1rem;
}
.coach-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
}
.coach-lbl {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  min-width: 4.5rem;
}
.coach-val {
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  word-break: break-word;
}
.coach-val:hover { color: var(--v); border-color: var(--v); }
.connect-links { list-style: none; }
.connect-links li { border-bottom: 1px solid var(--rule); }
.connect-links a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: padding-left 0.15s ease, color 0.15s ease;
}
.connect-links a:hover { padding-left: 1rem; color: var(--v); }

/* inquiry form (placeholder — not wired yet) */
.inquiry-form { display: flex; flex-direction: column; gap: 1.25rem; }
.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  background: var(--grey);
  border: 1px solid var(--rule);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 300;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: #6a6a6a; }
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--v);
}
.inquiry-form textarea { resize: vertical; }
.inquiry-submit {
  background: var(--v);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.inquiry-submit:hover { background: var(--white); }
.inquiry-note { font-size: 16px; color: var(--mid); font-style: italic; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: var(--v);
}

/* ============ MOTION ============
   Hero entrance is pure CSS. Scroll reveal is opt-in via the `js`
   class (added by main.js) so the page is fully visible without JS.
   Everything is disabled under prefers-reduced-motion. */

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(1.75rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.masthead-kicker       { animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.masthead-line:nth-child(1) { animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.masthead-line:nth-child(2) { animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }
.masthead-sub          { animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }
.masthead-stats        { animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
/* Photo only fades — it has a resting rotate() the entrance must not clobber. */
.masthead-photo        { animation: hero-fade 1s ease-out 0.35s both; }

/* Scroll reveal — main.js tags targets with .reveal, observer adds .is-visible */
html.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Figure hover: volt frame + subtle brightening (no transform, so the
   resting rotations/translates are preserved and nothing clips). */
.masthead-photo, .numbers-photo, .trajectory-photo, .band-photo, .media-video, .media-item {
  transition: border-color 0.3s ease;
}
figure img, .media-video video, .media-video-small video {
  transition: filter 0.4s ease;
}
.masthead-photo:hover, .numbers-photo:hover, .trajectory-photo:hover,
.band-photo:hover, .media-video:hover, .media-item:hover {
  border-color: var(--v);
}
figure:hover img, .media-video:hover video, .media-video-small:hover video {
  filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .masthead-kicker, .masthead-line, .masthead-sub, .masthead-stats, .masthead-photo {
    animation: none;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  figure img, .media-video video, .media-video-small video { transition: none; }
  figure:hover img, .media-video:hover video, .media-video-small:hover video { filter: none; }
}
