.study-modes-page {
  --study-bg: #f6fbfc;
  --study-panel: rgba(255,255,255,.92);
  background:
    radial-gradient(circle at 8% 0%, rgba(108,198,208,.18), transparent 30rem),
    radial-gradient(circle at 92% 4%, rgba(145,0,72,.12), transparent 28rem),
    linear-gradient(180deg, #f8fcfd 0%, #fff 40%, #f3f8f9 100%);
}

.study-shell { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 34px); }

.study-hero {
  position: relative;
  min-height: calc(100svh - var(--topbar));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  padding: clamp(54px, 8vh, 84px) 0;
}
.study-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .56; }
.study-hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(6,31,42,.92), rgba(6,31,42,.70) 48%, rgba(145,0,72,.34)); }
.study-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(310px, .58fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
.study-eyebrow, .study-kicker { color: var(--teal); font-weight: 950; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }
.study-hero h1 { margin: 12px 0 0; max-width: 860px; font-size: clamp(3.1rem, 7.4vw, 6.7rem); line-height: .91; letter-spacing: -.075em; }
.study-lede { max-width: 720px; margin: 22px 0 0; color: rgba(255,255,255,.88); font-size: clamp(1.04rem, 1.6vw, 1.28rem); line-height: 1.55; }
.study-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.study-hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 860px; }
.study-hero-proof span { display: block; border: 1px solid rgba(255,255,255,.20); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.10); backdrop-filter: blur(12px); }
.study-hero-proof strong { display: block; color: #fff; font-weight: 950; }
.study-hero-proof small { display: block; margin-top: 5px; color: rgba(255,255,255,.76); line-height: 1.35; }
.study-hero-panel { border: 1px solid rgba(255,255,255,.22); border-radius: 28px; background: rgba(255,255,255,.13); backdrop-filter: blur(18px); padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.study-panel-head span { color: var(--teal); font-size: .78rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.study-panel-head strong { display: block; margin-top: 7px; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.05; letter-spacing: -.04em; }
.study-panel-row { margin-top: 14px; border-radius: 18px; padding: 14px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); }
.study-panel-row strong { display: block; color: #fff; }
.study-panel-row span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); }

.study-section { padding: clamp(64px, 9vw, 112px) 0; }
.study-section-soft { background: linear-gradient(180deg, rgba(238,244,246,.65), rgba(255,255,255,.88)); }
.study-section-dark { background: radial-gradient(circle at 10% 0%, rgba(108,198,208,.22), transparent 30rem), linear-gradient(135deg, #061f2a, #0c3340); color: #fff; }
.study-section-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, .52fr); gap: clamp(18px, 4vw, 52px); align-items: end; margin-bottom: clamp(26px, 4vw, 44px); }
.study-section-head.compact { display: block; margin: 0; }
.study-section-head h2, .final-card h2 { margin: 8px 0 0; font-size: clamp(2.1rem, 4.5vw, 4.1rem); line-height: .98; letter-spacing: -.06em; }
.study-section-head p, .final-card p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.study-section-head.light p { color: rgba(255,255,255,.76); }

.mode-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.mode-card { overflow: hidden; border: 1px solid rgba(219,229,232,.9); border-radius: 30px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 100%; }
.mode-media { aspect-ratio: 16/10; background: var(--ink); overflow: hidden; }
.mode-media img, .mode-media video { width: 100%; height: 100%; object-fit: cover; }
.mode-body { padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; min-height: 0; flex: 1; }
.mode-tag { color: var(--magenta); font-size: .76rem; text-transform: uppercase; font-weight: 950; letter-spacing: .08em; }
.mode-body h3 { margin: 8px 0 0; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.02; letter-spacing: -.045em; }
.mode-body p { color: var(--muted); line-height: 1.56; margin: 12px 0 0; }
.mode-body ul { margin: 16px 0 18px; padding-left: 18px; color: var(--ink-2); line-height: 1.45; }
.mode-body a, .route-fit-card a { margin-top: auto; color: var(--magenta); font-weight: 950; text-decoration: none; border-bottom: 1px solid rgba(145,0,72,.28); width: fit-content; }

.route-fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.route-fit-card { position: relative; overflow: hidden; border-radius: 28px; background: #fff; border: 1px solid rgba(219,229,232,.9); padding: clamp(20px, 2.5vw, 30px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.route-fit-card::before { content: ""; position: absolute; right: -44px; top: -44px; width: 110px; height: 110px; border-radius: 0 0 0 100%; background: rgba(145,0,72,.12); }
.route-fit-card.msc::before { background: rgba(108,198,208,.22); }
.route-fit-card.exec::before { background: rgba(216,165,45,.22); }
.route-fit-card strong { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.08; letter-spacing: -.04em; max-width: 90%; }
.route-fit-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.fit-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-pills span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-weight: 900; font-size: .82rem; background: var(--soft); color: var(--ink-2); }

.study-same-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 5vw, 66px); align-items: start; }
.same-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.same-card { border-radius: 22px; background: #fff; border: 1px solid rgba(219,229,232,.9); box-shadow: 0 12px 26px rgba(6,31,42,.07); padding: 18px; }
.same-card strong { display: block; font-weight: 950; }
.same-card span { display: block; margin-top: 7px; color: var(--muted); line-height: 1.45; }

.campus-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 26px); }
.campus-card { overflow: hidden; border-radius: 28px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 54px rgba(0,0,0,.20); }
.campus-card video { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.campus-card div { padding: 18px; }
.campus-card strong { display: block; color: #fff; font-size: 1.06rem; }
.campus-card span { display: block; color: rgba(255,255,255,.75); margin-top: 6px; line-height: 1.45; }

.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: clamp(18px, 4vw, 46px); align-items: stretch; }
.final-card, .final-note { border-radius: 32px; border: 1px solid rgba(219,229,232,.9); background: #fff; padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow-strong); }
.final-note { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; }
.final-note strong { font-size: 1.55rem; letter-spacing: -.04em; }
.final-note span { margin-top: 10px; color: rgba(255,255,255,.78); line-height: 1.55; }

@media (max-width: 980px) {
  .study-hero-grid, .study-section-head, .study-same-grid, .final-grid { grid-template-columns: 1fr; }
  .study-hero { min-height: auto; }
  .study-hero-proof, .mode-card-grid, .route-fit-grid, .campus-strip { grid-template-columns: 1fr; }
  .study-hero-panel { max-width: 720px; }
}

@media (max-width: 640px) {
  .study-hero h1 { font-size: clamp(2.65rem, 16vw, 4.7rem); }
  .study-hero-proof, .same-card-grid { grid-template-columns: 1fr; }
  .study-section { padding: 58px 0; }
}

/* V246b — Study Modes refinement: full-height desktop hero, clearer CTA,
   tighter decision sections and reusable card accents. */
@media (min-width: 981px) {
  .study-modes-page > .study-hero.viewport-section[data-nav-section] {
    min-height: 100svh;
  }
}

.study-hero-actions .study-compare-btn {
  background: var(--magenta);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 36px rgba(145,0,72,.30);
}

.study-hero-actions .study-compare-btn:hover,
.study-hero-actions .study-compare-btn:focus-visible {
  background: #ad115d;
  color: #fff;
}

.study-title-focus {
  color: var(--magenta);
}

.study-section.study-tight {
  padding-top: clamp(42px, 5.8vw, 72px);
  padding-bottom: clamp(42px, 5.4vw, 68px);
}

.mode-card-grid.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.same-card {
  position: relative;
  overflow: hidden;
}

.same-card::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 86px;
  height: 86px;
  border-radius: 0 0 0 100%;
  background: rgba(145, 0, 72, .12);
  pointer-events: none;
}

.same-card:nth-child(2)::before,
.same-card:nth-child(3)::before {
  background: rgba(108,198,208,.20);
}

.same-card strong,
.same-card span {
  position: relative;
}

.same-card a {
  color: var(--magenta);
  font-weight: 950;
  text-decoration: none;
  border-bottom: 1px solid rgba(145,0,72,.28);
}

@media (max-width: 980px) {
  .mode-card-grid.four {
    grid-template-columns: 1fr;
  }
}

/* V248 — Study Modes first-fold containment.
   The global header and page subnav sit outside main, so the hero should fill
   the remaining viewport, not add a full extra viewport below the chrome. */
@media (min-width: 641px) {
  .study-modes-page > .study-hero.viewport-section[data-nav-section] {
    min-height: calc(100svh - var(--topbar)) !important;
    min-height: calc(100dvh - var(--topbar)) !important;
    box-sizing: border-box;
    display: grid;
    align-items: center;
    padding-top: clamp(30px, 4.4vh, 56px);
    padding-bottom: clamp(30px, 4.4vh, 56px);
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .study-modes-page > .study-hero.viewport-section[data-nav-section] {
    padding-top: clamp(22px, 3.4vh, 40px);
    padding-bottom: clamp(22px, 3.4vh, 40px);
  }

  .study-hero h1 {
    font-size: clamp(2.9rem, 6.8vw, 6rem);
  }

  .study-lede {
    margin-top: 18px;
  }

  .study-hero-proof {
    margin-top: 20px;
  }
}
