/* ============================================================================
 * JPCircuit Season 2 — Sponsor Microsite
 * styles.css — mobile-first. Breakpoints: 768 (tablet), 1200 (desktop).
 *
 * CONTRAST RULE, enforced throughout:
 *   Gold #F5C518 on Navy #0D1F6E = 8.96:1  → passes WCAG AAA.
 *   Gold #F5C518 on off-white    = 1.63:1  → FAILS at every size.
 * Therefore gold is used as TEXT only inside .section--navy. On light
 * sections gold appears solely as rules, borders and outlines, never as
 * type. Sections alternate navy/light deliberately for this reason.
 * ========================================================================= */

/* ---------------------------------------------------------------- FONTS -- */
@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Fallback metrics tuned so the swap from system font to Inter does not
   reflow the page. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------- TOKENS -- */
:root {
  --navy:        #0D1F6E;
  --navy-deep:   #081548;
  --navy-line:   #24378a;
  --gold:        #F5C518;
  --gold-dim:    #c99f0f;
  --ink:         #0B0B0F;
  --ink-soft:    #4a4a55;
  --paper:       #F6F5F1;
  --paper-pure:  #FFFFFF;
  --on-navy:     #EFEFF5;
  --on-navy-dim: #a8b0d4;

  --head: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --sec-y: clamp(4rem, 11vw, 8.5rem);

  --r: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Height reserved for the mobile sticky CTA, added to body padding so it
     can never cover the last line of content. */
  --sticky-h: 0px;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-h);
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3, .num, .pkg__price {
  font-family: var(--head);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
}

a { color: inherit; }

/* ------------------------------------------------------------ A11Y BITS -- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 999; background: var(--gold); color: var(--navy);
  padding: .75rem 1.25rem; font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--r) var(--r);
}
.skip-link:focus { transform: translate(-50%, 0); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Gold on off-white is 1.63:1, so light sections take a navy ring instead. */
.section--light :focus-visible,
.foot :focus-visible { outline-color: var(--navy); }
/* And a gold ring around a gold button is invisible — these elements are
   themselves gold, so they always take the navy ring regardless of section. */
.btn--gold:focus-visible,
.skip-link:focus,
.skip-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* --------------------------------------------------------------- LAYOUT -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 780px; }

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section--light { background: var(--paper); color: var(--ink); }
.section--navy  { background: var(--navy); color: var(--on-navy); }
/* Two navy sections in a row read as one block — suppress the seam. */
.section--navy + .section--navy { padding-top: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.section--navy .eyebrow { color: var(--gold); }

.section__title {
  font-size: clamp(2rem, 1.15rem + 4.2vw, 4.25rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.section__title--sm { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); }

.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.35rem);
  max-width: 46ch;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.section--navy .lede { color: var(--on-navy-dim); }

/* ================================================================= HERO == */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* Navy scrim as a CSS layer, not baked into the photo, so images swap
   freely. ~55% flat, deepening toward the lower third where text sits. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(13,31,110,.45) 0%,
      rgba(13,31,110,.55) 45%,
      rgba(8,21,72,.86) 100%);
}

/* Lift the three content rows above the photo and its scrim. Scoped to the
   specific children — a `.hero > *` rule would also hit .hero__media and
   .hero__scrim and knock them out of their absolute positioning. */
.hero__brand, .hero__body, .hero__cue { position: relative; z-index: 1; }

.hero__brand { padding: var(--gut); }
.hero__brand img { width: clamp(104px, 26vw, 148px); height: auto; }

.hero__body {
  align-self: end;
  padding-inline: var(--gut);
  padding-bottom: clamp(1rem, 3vw, 2rem);
  max-width: 900px;
}
.hero__title {
  font-size: clamp(2.75rem, 1.2rem + 8.6vw, 6.5rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(1.05rem, .98rem + .55vw, 1.5rem);
  max-width: 30ch;
  color: var(--on-navy);
  text-wrap: pretty;
}

.hero__cue {
  justify-self: center;
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  color: var(--gold);
  text-decoration: none;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
}
.hero__cue-icon { width: 18px; height: 18px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* =========================================================== TRAJECTORY == */
.traj { display: grid; gap: 1rem; margin-bottom: 1.75rem; }

.traj__card {
  position: relative;
  background: var(--paper-pure);
  border: 1px solid rgba(11,11,15,.1);
  border-radius: var(--r);
  padding: 1.5rem 1.35rem;
  /* --rise (0,1,2) is set per card in script.js and drives the ascent. */
  border-top: 4px solid var(--gold);
}
.traj__card::before {
  content: '';
  position: absolute; left: 0; bottom: 0; width: 100%;
  height: calc(3px + var(--rise, 0) * 3px);
  background: var(--gold);
  opacity: calc(.25 + var(--rise, 0) * .375);
}
/* DELIVERED seasons sit back: paler card, quieter type, a gold tick. They are
   evidence, not the pitch. */
.traj__card--done {
  background: rgba(255,255,255,.55);
  border-color: rgba(11,11,15,.14);
}
/* Navy, not gold, for the same reason the tier-table ticks are navy: gold on
   this near-white card measures 2.28:1, under the 4.5:1 AA needs for text.
   Navy is 13.4:1. */
.traj__done {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy);
}
.traj__done svg { width: 12px; height: 12px; }

/* The PROJECTED season is inverted — navy card, gold numerals — so the eye
   lands on it first. It is the season being sold. Gold on navy-deep measures
   10.6:1, so the numbers stay well clear of WCAG AA. */
.traj__card--next {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  border-top-color: var(--gold);
  box-shadow: 0 20px 44px -22px rgba(13,31,110,.6);
}
.traj__card--next .traj__label { color: var(--on-navy); }
.traj__card--next .traj__name  { color: var(--on-navy-dim); }
.traj__card--next .num         { color: var(--gold); }
.traj__card--next .traj__unit  { color: var(--on-navy-dim); }
.traj__card--next .traj__tag--projected {
  color: var(--gold); border-color: var(--gold); background: transparent;
}
.traj__card--next::before { opacity: 1; }

.traj__head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.traj__label { font-family: var(--head); font-stretch: 125%; font-weight: 700; font-size: 1.15rem; }
.traj__name  { font-size: .9rem; color: var(--ink-soft); }
.traj__tag {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .5rem; border-radius: 2px;
  background: var(--navy); color: var(--on-navy);
}
.traj__tag--projected { background: transparent; color: var(--navy); border: 1px solid var(--gold-dim); }

.traj__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.traj__stat { min-width: 0; }
.traj__unit {
  display: block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .2rem;
}

.num {
  display: inline-block;
  font-variant-numeric: tabular-nums; /* digits stay put while counting */
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
}
.traj__caption {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.4rem);
  font-weight: 500;
  max-width: 34ch;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

/* ================================================================ STATS == */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
.stats .num {
  color: var(--gold);                     /* navy section only — see top */
  font-size: clamp(2.1rem, 1.2rem + 4vw, 4rem);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: .6rem;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--on-navy-dim);
  line-height: 1.4;
  text-wrap: pretty;
}

/* ================================================================ CHIPS == */
.chips__label {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-navy-dim);
  margin-bottom: .9rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  border: 1px solid var(--gold);
  color: var(--gold);                     /* navy section only */
  border-radius: 100px;
  padding: .5rem 1rem;
  font-size: .88rem; font-weight: 500;
}

/* ====================================================== OVERLAY / FRAME == */
.frame { margin: 0 0 3rem; }
.frame__inner {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--navy-deep);
}
.frame__inner > picture img { width: 100%; height: 100%; object-fit: cover; }

/* The sponsor bug. Percentages, not pixels, because it has to stay locked
   over the burned-in placeholder in the source still at every screen size.
   Sized to fully cover that white box — any gap would show its corner. */
/* Measured against the source still: its burned-in placeholder occupies
   x 1.40%–33.6%, y 1.30%–27.2%. This sits a hair outside all four edges.
   The background must be FULLY opaque — at 95% the white box bleeds through
   as a pale patch with its text faintly legible underneath. */
/* A white plate with a gold spine, which is what the recording system's own
   overlay looks like in the source still.
   Measured against that still: the burned-in placeholder occupies
   x 1.40%–33.6%, y 1.30%–27.2%, so this sits a hair outside all four edges.
   The background must be FULLY opaque — at 95% the white box underneath
   bleeds through as a pale patch with its text faintly legible. */
/* SIZE IS FLOORED, not chosen. The plate has to hide the "Your logo here"
   box already burned into the source still, measured at x 1.40%–33.6%,
   y 1.30%–27.2%. These numbers hug that box with roughly 1% of margin on
   every side, which is as small as it can go while still covering it.
   For reference the CourtSee watermark is ~17% of frame height, so a
   realistic bug would be about this size — see README, "Why the plate is
   the size it is". */
.sponsorbug {
  position: absolute;
  top: 0.4%; left: 0.3%;
  width: 34.6%; height: 28.2%;
  padding: 1.4%;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 2px;
}
/* The swappable logo fills the whole plate. object-fit: contain means ANY
   aspect ratio — wide wordmark or square badge — sits correctly with no CSS
   change, and the plate keeps its footprint either way. The placeholder
   image carries the "YOUR LOGO HERE" wording; a real logo replaces it. */
.sponsorbug__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.frame__note {
  margin-top: .75rem;
  font-size: .78rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* =========================================================== TIER TABLE == */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 2rem; }
/* Deliberately no min-width: this table has to fit a 375px phone without
   horizontal scrolling. Tier 2 sitting off-screen behind a scrollbar on the
   section that actually sells the packages loses the comparison entirely.
   The wrapper keeps overflow-x as a safety net for very long feature names. */
.tiers { width: 100%; border-collapse: collapse; text-align: left; }
.tiers caption {
  text-align: left;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
  padding-bottom: .9rem;
}
.tiers th, .tiers td { padding: .85rem .3rem; border-bottom: 1px solid rgba(11,11,15,.12); }
.tiers thead th {
  font-family: var(--head); font-stretch: 125%; font-weight: 700;
  font-size: .95rem; letter-spacing: 0;
  border-bottom: 2px solid var(--navy);
  white-space: nowrap;
}
.tiers thead th:first-child { font-family: var(--body); font-weight: 600; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
/* The value columns are centred in the body, so their headers must be too.
   Without this they inherit `text-align: left` from .tiers and sit visibly
   off to the left of the ticks beneath them. Width is declared here as well
   as on the td so both agree on the column. */
.tiers thead th:not(:first-child) { text-align: center; width: 22%; }
.tiers tbody th { font-weight: 500; font-size: .88rem; padding-left: 0; line-height: 1.35; }
.tiers td { text-align: center; width: 22%; }
/* Navy, not gold. Gold #F5C518 on paper measures 1.63:1 and even the darker
   --gold-dim only reaches 2.28:1 — under the 3:1 WCAG 1.4.11 requires of a
   meaningful graphic. Navy on paper is 13.4:1. Gold checks are still used
   inside the navy package cards, where they measure 10.6:1. */
.tiers .yes { color: var(--navy); }
.tiers .yes svg { width: 19px; height: 19px; margin-inline: auto; }
.tiers .no { color: rgba(11,11,15,.42); }
.tiers .txt { font-weight: 600; font-size: .82rem; }
.tiers tbody tr:last-child th, .tiers tbody tr:last-child td { border-bottom: none; }

.support {
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  font-weight: 500;
  max-width: 42ch;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

/* ============================================================= PACKAGES == */
.pkgs { display: grid; gap: 1.25rem; margin-bottom: 2rem; }

.pkg {
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex; flex-direction: column;
}
.pkg--featured { border: 2px solid var(--gold); }
.pkg--sold { opacity: .58; }

.pkg__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.pkg__name {
  font-family: var(--head); font-stretch: 125%; font-weight: 700;
  font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase;
}
.pkg__badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 2px;
  border: 1px solid var(--gold); color: var(--gold);
  white-space: nowrap;
}
.pkg__badge--sold { border-color: var(--on-navy-dim); color: var(--on-navy-dim); }

.pkg__price { color: var(--gold); font-size: clamp(2.4rem, 1.5rem + 4vw, 3.4rem); line-height: 1; margin-bottom: .35rem; }
.pkg__instalment { font-size: .85rem; color: var(--on-navy-dim); margin-bottom: 1.5rem; }

.pkg__list { display: grid; gap: .8rem; }
.pkg__list li { display: grid; grid-template-columns: 18px 1fr; gap: .7rem; align-items: start; font-size: .95rem; line-height: 1.45; }
.pkg__list svg { width: 15px; height: 15px; color: var(--gold); margin-top: .28em; }

.footnote { font-size: .82rem; color: var(--on-navy-dim); max-width: 54ch; }

/* ============================================================= TIMELINE == */
.steps { display: grid; gap: 0; margin-bottom: 2rem; }
.step { position: relative; padding: 0 0 2rem 2rem; border-left: 2px solid rgba(13,31,110,.18); }
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: -7px; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--paper);
}
.step__date {
  display: block;
  font-family: var(--head); font-stretch: 125%; font-weight: 700;
  font-size: 1.25rem; margin-bottom: .25rem;
}
.step__text { color: var(--ink-soft); font-size: .95rem; }

.urgency {
  font-size: clamp(1rem, .95rem + .45vw, 1.25rem);
  font-weight: 600;
  max-width: 40ch;
  background: var(--navy); color: var(--on-navy);
  border-left: 4px solid var(--gold);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--r) var(--r) 0;
}

/* ============================================================== GALLERY == */
.gallery { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 3 / 2; }

/* Flip on with flags.galleryAsStrip once there are 6+ photos. */
.gallery--strip {
  grid-template-columns: none;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gut) * -1);
  padding-inline: var(--gut);
}
.gallery--strip li { flex: 0 0 82%; scroll-snap-align: center; }

/* =========================================================== TESTIMONIAL == */
/* Generous gap when stacked: each quote's opening mark is set large and
   pulled upward, so a tighter gap lets it crowd the attribution above it. */
.quotes { display: grid; gap: clamp(3.25rem, 8vw, 4rem); }
.quote { position: relative; padding-top: 2.5rem; }
.quote__mark {
  position: absolute; top: -.4em; left: -.06em;
  font-family: var(--head); font-stretch: 125%; font-weight: 700;
  font-size: 7rem; line-height: 1; color: var(--gold);
}
/* Sized for two quotes sitting side by side from 768px up. A single quote at
   the old 2.4rem ceiling would overpower the column it now shares. */
.quote__text {
  position: relative;
  font-family: var(--head); font-stretch: 110%; font-weight: 600;
  font-size: clamp(1.2rem, .95rem + 1.1vw, 1.65rem);
  line-height: 1.28; letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}
.quote__by { display: flex; flex-direction: column; gap: .15rem; }
.quote__name { font-weight: 600; }
.quote__attr { font-size: .85rem; color: var(--on-navy-dim); }

/* ================================================================== CTA == */
.cta { text-align: center; }
.cta__title {
  font-size: clamp(1.75rem, 1.1rem + 3.4vw, 3.5rem);
  margin: 0 auto 2.5rem;
  max-width: 18ch;
  text-wrap: balance;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--body); font-weight: 600; font-size: 1.05rem;
  text-decoration: none;
  padding: 1.1rem 2rem;
  border-radius: 100px;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn__icon { width: 21px; height: 21px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
@media (hover: hover) {
  .btn--gold:hover { background: #ffd93d; transform: translateY(-2px); }
}
.btn--gold:active { transform: translateY(0); }
.cta__btn { width: 100%; max-width: 380px; }

/* =========================================================== STICKY BAR == */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(8,21,72,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--navy-line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.stickybar[data-show='true'] { transform: translateY(0); }
.stickybar__btn { width: 100%; padding-block: .9rem; font-size: 1rem; }

/* ================================================================ FOOT === */
.foot {
  background: var(--navy-deep); color: var(--on-navy-dim);
  padding: 2rem var(--gut) calc(2rem + env(safe-area-inset-bottom));
  font-size: .8rem; text-align: center;
}

.noscript { padding: 2rem var(--gut); background: var(--navy); color: var(--on-navy); }
.noscript a { color: var(--gold); }

/* ====================================================== SCROLL REVEALS === */
/* VISIBLE IS THE DEFAULT. The hidden starting state applies only under
   html.js-anim, which script.js adds after confirming that JavaScript runs,
   that IntersectionObserver exists, and that motion is not reduced. If any
   of those is false the content simply renders — it can never be stranded
   at opacity 0. script.js also force-reveals anything still hidden after
   2.5s as a second backstop. */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(18px); }
.js-anim .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .js-anim .reveal, .js-anim .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .hero__cue-icon { animation: none; }
  .btn, .stickybar { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =============================================================== 768px === */
@media (min-width: 768px) {
  .traj { grid-template-columns: repeat(3, 1fr); align-items: end; gap: 1.25rem; }
  /* The ascent: each card sits higher than the last, in EQUAL steps.
     The step is driven by min-height, not padding. Padding alone cannot do
     it — the three cards carry different numbers of lines (a Pilot tag, a
     Delivered chip, a Projected tag), so equal padding increments produced
     tops spaced 10px then 71px apart. Stepping the height instead makes the
     stagger independent of content, and content is bottom-aligned so the
     extra height opens up above it, where the stagger should read. */
  .traj__card {
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-top: 1.5rem;
    /* Base must clear the TALLEST card's natural content, which is Season 0
       (it carries both a Pilot tag and a Delivered chip). If any card's
       content exceeds the base, that card grows past its step and the
       stagger goes uneven again — which is why the base is larger here than
       at 1200px, where the wider columns mean less wrapping. */
    min-height: calc(15.5rem + var(--rise, 0) * 2.6rem);
  }

  .stats { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  /* minmax(0,1fr) so a long unbroken run in a quote can't force its column
     wider than its share. An odd last quote runs the full width rather than
     sitting alone in the left column with a hole beside it. */
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); }
  .quotes .quote:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* minmax(0,1fr), not 1fr: a grid item defaults to min-width:auto, so a card
     whose content will not shrink can force its column wider than its share.
     Tier 1 did exactly that at ~800px, pushing Tier 2 off-screen and giving
     the page a horizontal scrollbar. */
  .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--strip li { flex-basis: 42%; }

  .hero__body { padding-bottom: clamp(2rem, 5vw, 4rem); }
  .cta__btn { width: auto; }

  /* Horizontal stepper */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .step { padding: 2rem 1rem 0 0; border-left: none; border-top: 2px solid rgba(13,31,110,.18); }
  .step:last-child { border-top-color: rgba(13,31,110,.18); }
  .step::before { left: 0; top: -7px; }

  .tiers { min-width: 0; }
  .tiers th, .tiers td { padding: 1.05rem 1rem; }

  /* Desktop has room for the real CTA — the sticky bar is mobile-only. */
  .stickybar { display: none; }
  body { padding-bottom: 0; }
}

/* ============================================================== 1200px === */
@media (min-width: 1200px) {
  /* Three across once there is room. The full-width orphan rule from the
     2-column breakpoint has to be undone or a third quote would still span. */
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .quotes .quote:last-child:nth-child(odd) { grid-column: auto; }
  .quotes .quote__text { font-size: 1.4rem; }

  .pkgs { gap: 2rem; }
  /* Tier 1 lifts slightly above Tier 2. */
  .pkg--featured { transform: scale(1.035); }

  .traj__card { padding: 1.75rem; min-height: calc(14rem + var(--rise, 0) * 2.6rem); }
  .section__title { margin-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1200px) {
  .pkg--featured { transform: none; border-width: 3px; }
}
