:root {
  color-scheme: light;
  --ink: #20170e;
  --text: #2c241a;
  --muted: #766a5c;
  --paper: #fbf5e8;
  --teal: #247b78;
  --accent: #ef745d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(241, 199, 123, 0.08) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, #071216 0%, #0b2024 46%, #f2f6eb 46%, #eef4ed 100%);
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 12px;
  min-height: 54px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 248, 230, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: #f8f2dc;
  background: rgba(8, 24, 29, 0.66);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.site-brand {
  color: #f8f2dc;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-meta a,
.site-meta-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  color: #f8f2dc;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.site-meta a:hover,
.site-meta a:focus-visible,
.site-meta-button:hover,
.site-meta-button:focus-visible {
  border-color: rgba(255, 248, 230, 0.22);
  background: rgba(255, 248, 230, 0.1);
  outline: none;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  min-height: min(840px, calc(100dvh - 90px));
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 230, 0.16);
  border-radius: 8px;
  padding: clamp(26px, 5vw, 70px);
  background: #08191e;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 18, 22, 0.94) 0%, rgba(5, 18, 22, 0.8) 33%, rgba(5, 18, 22, 0.28) 61%, rgba(5, 18, 22, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 18, 22, 0.04) 0%, rgba(5, 18, 22, 0.38) 72%, rgba(5, 18, 22, 0.86) 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 248, 230, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  max-width: 650px;
  color: #f9f4df;
}

.series-label,
.eyebrow {
  margin: 0 0 12px;
  color: #146d62;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.home-hero .series-label {
  width: fit-content;
  border: 1px solid rgba(245, 192, 116, 0.34);
  border-radius: 999px;
  padding: 7px 11px;
  color: #f5c074;
  background: rgba(7, 18, 22, 0.54);
  backdrop-filter: blur(14px);
}

.home-hero h1 {
  max-width: 640px;
  margin-bottom: 18px;
  color: #fff9e8;
  font-size: clamp(46px, 6.1vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.home-hero .hook {
  max-width: 620px;
  color: rgba(245, 250, 236, 0.86);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.72;
  text-wrap: pretty;
}

.home-hero-actions {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-hero-actions a,
.theater-open-button,
.track-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 248, 230, 0.3);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.home-hero-actions a:active,
.track-link:active,
.theater-open-button:active {
  transform: translateY(1px);
}

.primary-action {
  color: #fffaf0;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(239, 116, 93, 0.22);
}

.secondary-action,
.theater-open-button,
.track-link {
  color: #fff8e6;
  background: rgba(255, 248, 230, 0.1);
  backdrop-filter: blur(14px);
}

.home-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 610px;
  margin-top: 28px;
  border: 1px solid rgba(255, 248, 230, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 248, 230, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.home-metrics span {
  min-width: 150px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-right: 1px solid rgba(255, 248, 230, 0.14);
  padding: 14px 18px;
  color: rgba(245, 250, 236, 0.78);
  background: rgba(7, 18, 22, 0.54);
}

.home-metrics span:last-child {
  border-right: 0;
}

.home-metrics strong {
  color: #f5c074;
  font-size: 30px;
}

.home-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  border-radius: 0;
  pointer-events: none;
}

.home-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(1.08) contrast(1.04);
}

.home-visual-top,
.home-route-board,
.home-subject-strip {
  position: absolute;
  pointer-events: auto;
}

.home-visual-top {
  top: clamp(28px, 4vw, 58px);
  right: clamp(28px, 4vw, 58px);
  z-index: 4;
  max-width: 330px;
  border: 1px solid rgba(255, 248, 230, 0.2);
  border-radius: 8px;
  padding: 13px 15px;
  color: #f9f4df;
  background: rgba(7, 18, 22, 0.72);
  box-shadow: 0 8px 8px rgba(4, 24, 23, 0.08);
  backdrop-filter: blur(18px);
}

.home-visual-top span,
.home-proof span,
.path-steps span,
.track-link,
.home-subject-strip span {
  color: #f5c074;
  letter-spacing: 0;
}

.home-visual-top strong {
  display: block;
  color: #fff9e8;
  font-size: 20px;
}

.home-route-board {
  right: clamp(28px, 4vw, 58px);
  bottom: clamp(28px, 4vw, 58px);
  z-index: 4;
  width: min(620px, 46vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.route-pin {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 248, 230, 0.18);
  border-radius: 8px;
  padding: 14px 15px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  background: rgba(7, 18, 22, 0.74);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.route-pin:hover,
.route-pin:focus-visible {
  border-color: rgba(245, 192, 116, 0.58);
  transform: translateY(-2px);
  outline: none;
}

.route-pin span {
  color: #79d9c8;
  font-size: 12px;
  font-weight: 950;
}

.route-pin strong {
  color: #fff8e6;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.2;
}

.home-subject-strip {
  left: clamp(26px, 5vw, 70px);
  bottom: clamp(24px, 3.8vw, 50px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: min(580px, 42vw);
}

.home-subject-strip span {
  border: 1px solid rgba(255, 248, 230, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #f8f2dc;
  background: rgba(7, 18, 22, 0.48);
  backdrop-filter: blur(14px);
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border: 1px solid rgba(11, 45, 48, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf0;
}

.subject-modules {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid rgba(11, 45, 48, 0.12);
  border-radius: 10px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(239, 248, 244, 0.94)),
    #fffdf7;
  box-shadow: 0 20px 54px rgba(11, 45, 48, 0.08);
}

.video-theater-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 230, 0.16);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 48px);
  color: #fff9e8;
  background:
    linear-gradient(135deg, rgba(7, 18, 22, 0.98), rgba(9, 42, 45, 0.95)),
    #071216;
  box-shadow: 0 28px 74px rgba(5, 18, 22, 0.24);
  isolation: isolate;
}

.video-theater-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 14%, rgba(245, 192, 116, 0.18), transparent 28%),
    radial-gradient(circle at 34% 70%, rgba(121, 217, 200, 0.16), transparent 28%);
}

.video-theater-copy {
  align-self: center;
  max-width: 620px;
}

.video-theater-copy .eyebrow,
.knowledge-video-dialog .eyebrow {
  color: #f5c074;
}

.video-theater-copy h2,
.video-dialog-header h2 {
  margin-bottom: 14px;
  color: #fff9e8;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.02;
  text-wrap: balance;
}

.video-theater-copy p:not(.eyebrow) {
  color: rgba(245, 250, 236, 0.82);
  font-size: 18px;
  line-height: 1.72;
}

.theater-open-button {
  margin-top: 18px;
  border-color: rgba(245, 192, 116, 0.38);
  color: #071216;
  background: #f5c074;
  box-shadow: 0 16px 34px rgba(245, 192, 116, 0.18);
}

.video-theater-reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 460px;
}

.video-theater-reel article {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 230, 0.14);
  border-radius: 10px;
  background: rgba(255, 248, 230, 0.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.video-theater-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.video-theater-reel article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 22, 0.02), rgba(7, 18, 22, 0.18) 48%, rgba(7, 18, 22, 0.82));
}

.video-theater-reel article:nth-child(2) {
  transform: translateY(38px);
}

.video-theater-reel article:nth-child(3) {
  transform: translateY(18px);
}

.video-theater-reel div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.video-theater-reel span,
.video-card-copy span {
  display: inline-flex;
  margin-bottom: 8px;
  border: 1px solid rgba(245, 192, 116, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  color: #f5c074;
  font-size: 12px;
  font-weight: 950;
  background: rgba(7, 18, 22, 0.54);
  backdrop-filter: blur(12px);
}

.video-theater-reel strong {
  display: block;
  color: #fff9e8;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
}

.knowledge-video-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: min(880px, calc(100dvh - 32px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: #fff9e8;
  background: transparent;
}

.knowledge-video-dialog::backdrop {
  background: rgba(4, 12, 15, 0.72);
  backdrop-filter: blur(12px);
}

.video-dialog-shell {
  max-height: min(880px, calc(100dvh - 32px));
  overflow: auto;
  border: 1px solid rgba(255, 248, 230, 0.16);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(7, 18, 22, 0.98), rgba(10, 41, 45, 0.96)),
    #071216;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.video-dialog-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.video-dialog-header h2 {
  max-width: 820px;
  font-size: clamp(28px, 4vw, 50px);
}

.video-dialog-close {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(255, 248, 230, 0.24);
  border-radius: 999px;
  padding: 9px 15px;
  color: #fff8e6;
  font-weight: 950;
  background: rgba(255, 248, 230, 0.08);
  cursor: pointer;
}

.video-dialog-close:hover,
.video-dialog-close:focus-visible {
  border-color: rgba(245, 192, 116, 0.56);
  outline: none;
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-feature-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(255, 248, 230, 0.14);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 248, 230, 0.06);
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 248, 230, 0.12);
  border-radius: 8px;
  background: #071216;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-card-copy {
  align-self: center;
}

.video-card-copy h3 {
  margin-bottom: 10px;
  color: #fff9e8;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
}

.video-card-copy p {
  margin-bottom: 0;
  color: rgba(245, 250, 236, 0.8);
  line-height: 1.72;
}

.modules-heading {
  max-width: 760px;
}

.modules-heading h2 {
  margin-bottom: 10px;
  color: #0e332f;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
}

.modules-heading p:last-child {
  color: #466761;
  line-height: 1.72;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-card {
  position: relative;
  min-height: 410px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(11, 45, 48, 0.14);
  border-radius: 10px;
  color: #fffaf0;
  text-decoration: none;
  background: #10272a;
  box-shadow: 0 18px 40px rgba(11, 45, 48, 0.12);
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 58px rgba(11, 45, 48, 0.17);
}

.module-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 24, 29, 0.06) 0%, rgba(8, 24, 29, 0.36) 48%, rgba(8, 24, 29, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 24, 29, 0.5), transparent 58%);
}

.module-card div {
  padding: 22px;
}

.module-card span {
  display: inline-flex;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 248, 230, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  color: #f5c074;
  font-size: 12px;
  font-weight: 950;
  background: rgba(7, 18, 22, 0.48);
  backdrop-filter: blur(12px);
}

.module-card h3 {
  margin-bottom: 8px;
  color: #fff9e8;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.08;
}

.module-card p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.84);
  line-height: 1.68;
}

.module-chinese::after {
  background:
    linear-gradient(180deg, rgba(8, 24, 29, 0.02) 0%, rgba(8, 24, 29, 0.24) 46%, rgba(8, 24, 29, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 24, 29, 0.44), transparent 62%);
}

.home-proof div {
  min-height: 166px;
  border-right: 1px solid rgba(16, 71, 66, 0.14);
  padding: 24px;
}

.home-proof div:last-child {
  border-right: 0;
}

.home-proof span,
.path-steps span,
.course-card span,
.track-grid span,
.eyebrow {
  color: #146d62;
}

.home-proof strong {
  display: block;
  color: #0e332f;
  font-size: clamp(22px, 2.1vw, 30px);
}

.home-proof p,
.path-steps p,
.track-intro p,
.home-growth p,
.trust-list span,
.course-card p,
.track-grid p {
  color: #466761;
  line-height: 1.7;
}

.home-path,
.home-track,
.home-growth {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 26px;
  border: 1px solid rgba(11, 45, 48, 0.1);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 253, 247, 0.94);
}

.home-path {
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
}

.home-track {
  grid-template-columns: minmax(250px, 0.3fr) minmax(0, 1fr);
}

.home-growth {
  grid-template-columns: minmax(310px, 0.42fr) minmax(0, 1fr);
}

.home-path .section-heading,
.track-intro {
  position: sticky;
  top: 96px;
}

.home-path h2,
.track-intro h2,
.home-growth h2 {
  color: #0e332f;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.08;
  text-wrap: balance;
}

.path-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-left: 2px solid rgba(20, 109, 98, 0.24);
}

.path-steps article {
  position: relative;
  min-height: 128px;
  padding: 0 0 26px 28px;
}

.path-steps article::before {
  content: "";
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px #fffdf7;
}

.path-steps h3 {
  margin: 8px 0 6px;
  color: #0e332f;
  font-size: 25px;
}

.course-grid,
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-card,
.track-grid article,
.science-map-preview a {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 71, 66, 0.14);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: #fffdf7;
}

.course-card {
  min-height: 220px;
}

.course-card:hover {
  border-color: rgba(233, 94, 73, 0.42);
  transform: translateY(-2px);
}

.course-card.live {
  border-color: rgba(20, 109, 98, 0.32);
}

.course-card span,
.track-grid span {
  align-self: flex-start;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
  background: #eef6f0;
}

.course-card img,
.course-placeholder {
  width: 100%;
  height: 124px;
  margin-bottom: 14px;
  border: 1px solid rgba(16, 71, 66, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.course-card img[data-src] {
  background:
    linear-gradient(135deg, rgba(20, 109, 98, 0.12), rgba(239, 116, 93, 0.1)),
    #eef6f0;
}

.course-placeholder {
  display: grid;
  place-items: center;
  color: rgba(20, 109, 98, 0.42);
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #f8f6ee, #eaf5ef);
}

.course-card h3,
.track-grid h3 {
  margin-bottom: 8px;
  color: #0e332f;
  font-size: 19px;
  line-height: 1.28;
}

.science-map-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.science-map-preview a {
  flex: 1 1 170px;
  min-height: 104px;
  background: #eef6f0;
}

.growth-copy {
  display: grid;
  gap: 16px;
}

.trust-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(16, 71, 66, 0.14);
}

.trust-list li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 71, 66, 0.14);
}

.trust-list strong {
  color: #0e332f;
}

.subject-queue {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(16, 71, 66, 0.14);
  border-radius: 8px;
  background: rgba(16, 71, 66, 0.14);
}

.home-growth .track-grid article {
  min-height: 172px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 253, 247, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-actions a,
  .track-link,
  .course-card,
  .route-pin {
    transition: none;
  }
}

@media (max-width: 1120px) {
  .home-hero,
  .home-path,
  .home-track,
  .home-growth {
    grid-template-columns: 1fr;
  }

  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 18, 22, 0.82) 0%, rgba(5, 18, 22, 0.5) 48%, rgba(5, 18, 22, 0.9) 100%);
  }

  .home-hero-copy {
    max-width: 760px;
    padding-bottom: clamp(270px, 42vw, 440px);
  }

  .home-path .section-heading,
  .track-intro {
    position: relative;
    top: auto;
    max-width: 760px;
  }

  .home-route-board {
    left: clamp(26px, 5vw, 70px);
    right: clamp(26px, 5vw, 70px);
    width: auto;
  }

  .home-subject-strip {
    max-width: min(620px, calc(100% - 52px));
  }

  .home-proof,
  .module-grid,
  .video-theater-preview,
  .subject-queue {
    grid-template-columns: 1fr;
  }

  .video-theater-reel {
    min-height: 420px;
  }

  .home-proof div {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 71, 66, 0.14);
  }

  .home-proof div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 18px, 1440px);
    padding-top: 16px;
  }

  .site-header {
    gap: 14px;
    padding: 14px;
  }

  .site-brand {
    font-size: 23px;
  }

  .site-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .site-meta a {
    font-size: 15px;
    line-height: 1.25;
  }

  .home-hero {
    min-height: auto;
    margin-top: 12px;
    border-radius: 8px;
    padding: 20px 16px 18px;
  }

  .home-hero::after {
    inset: 8px;
  }

  .home-hero-art {
    object-position: 68% 50%;
  }

  .home-hero-copy {
    padding-bottom: 520px;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10.4vw, 46px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  .home-hero .hook {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .home-hero-actions a {
    width: 100%;
  }

  .home-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-metrics span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 248, 230, 0.14);
    padding: 12px 14px;
  }

  .home-metrics span:last-child {
    border-bottom: 0;
  }

  .home-visual-top {
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 386px;
    max-width: none;
    padding: 12px;
  }

  .home-visual-top strong {
    font-size: 17px;
  }

  .home-route-board {
    left: 16px;
    right: 16px;
    bottom: 96px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .route-pin {
    min-height: 58px;
    padding: 10px 12px;
  }

  .route-pin strong {
    font-size: 16px;
  }

  .home-subject-strip {
    left: 16px;
    right: 16px;
    bottom: 24px;
    max-width: none;
  }

  .home-path,
  .subject-modules,
  .home-track,
  .home-growth {
    padding: 22px;
  }

  .module-card {
    min-height: 330px;
  }

  .course-grid,
  .science-map-preview,
  .video-theater-reel,
  .video-gallery-grid,
  .video-feature-card,
  .subject-queue,
  .trust-list li {
    grid-template-columns: 1fr;
  }

  .video-theater-preview {
    padding: 22px;
  }

  .video-theater-reel {
    min-height: auto;
  }

  .video-theater-reel article,
  .video-theater-reel article:nth-child(2),
  .video-theater-reel article:nth-child(3) {
    min-height: 360px;
    transform: none;
  }

  .knowledge-video-dialog {
    width: min(100% - 18px, 1180px);
    max-height: calc(100dvh - 18px);
  }

  .video-dialog-shell {
    max-height: calc(100dvh - 18px);
    padding: 16px;
  }

  .video-dialog-header {
    display: grid;
  }

  .video-dialog-close {
    justify-self: start;
  }
}

/* Taste v1: mission-hub polish. */
.portal-v3 .site-header {
  border-radius: 10px;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.portal-v3 .site-meta {
  gap: 6px;
}

.portal-v3 .site-meta a {
  border: 1px solid rgba(255, 248, 230, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 248, 230, 0.04);
}

.portal-v3 .site-meta-button {
  border: 1px solid rgba(255, 248, 230, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 248, 230, 0.04);
}

.home-hero-v3 {
  border-radius: 10px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-hero-v3::after {
  border-radius: 8px;
}

.home-hero-v3 .primary-action,
.home-hero-v3 .secondary-action,
.track-link {
  border-radius: 999px;
}

.home-hero-v3 .route-pin,
.home-visual-top,
.portal-v3 .home-track,
.portal-v3 .home-path,
.portal-v3 .home-growth {
  border-radius: 10px;
}

.home-track .course-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(11, 45, 48, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(244, 250, 245, 0.96)),
    #fffdf7;
  box-shadow: 0 14px 34px rgba(11, 45, 48, 0.06);
}

.home-track .course-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(11, 45, 48, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.home-track .course-card:hover {
  border-color: rgba(20, 109, 98, 0.34);
  box-shadow: 0 20px 44px rgba(11, 45, 48, 0.1);
}

.home-track .course-card img,
.home-track .course-placeholder {
  height: 132px;
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(11, 45, 48, 0.08);
}

@media (max-width: 680px) {
  .portal-v3 .site-header {
    position: sticky;
    top: 8px;
    display: block;
    padding: 14px;
  }

  .portal-v3 .site-brand {
    display: flex;
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.15;
  }

  .portal-v3 .site-meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .portal-v3 .site-meta::-webkit-scrollbar {
    display: none;
  }

  .portal-v3 .site-meta a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
  }

  .portal-v3 .site-meta-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
  }

  .home-hero-v3 {
    min-height: calc(100dvh - 116px);
    margin-top: 12px;
    padding: 20px;
  }

  .home-hero-v3 .home-hero-copy {
    padding-bottom: 340px;
  }

  .home-hero-v3 h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 0.98;
  }

  .home-hero-v3 .hook {
    font-size: 16px;
    line-height: 1.65;
  }

  .home-hero-v3 .home-hero-actions a {
    width: 100%;
  }

  .portal-v3 .home-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-metrics span {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 248, 230, 0.14);
  }

  .portal-v3 .home-metrics span:last-child {
    border-bottom: 0;
  }

  .home-hero-v3 .home-route-board {
    bottom: 78px;
  }

  .home-hero-v3 .route-pin {
    min-height: 52px;
  }
}
