:root {
  --navy: #12223c;
  --navy-2: #1f3f74;
  --navy-3: #315fca;
  --cream: #f7fbff;
  --paper: #fbfdff;
  --ink: #101827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --gold: #b89a5d;
  --gold-2: #d4b775;
  --teal: #12c8c4;
  --cyan: #18d9d2;
  --blue: #2f6fd0;
  --burgundy: #7b2f3a;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(31, 63, 116, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 6% 4%, rgba(24, 217, 210, 0.12), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(47, 111, 208, 0.09), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 253, 255, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(24px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 286px;
}

.logo-frame {
  display: block;
  width: 154px;
  height: auto;
}

.logo-frame img {
  display: block;
  width: 154px;
  height: auto;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: #172033;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #526173;
  font-size: 14px;
}

.desktop-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.desktop-nav a.is-current {
  color: var(--blue);
  font-weight: 900;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(31, 63, 116, 0.08);
}

.lang-btn {
  min-width: 36px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 12px/1 "DM Sans", sans-serif;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.nav-cta,
.nav-phone,
.button,
.consult-form button {
  border-radius: 999px;
  font-weight: 700;
}

.nav-phone {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(47, 111, 208, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #24344d;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(31, 63, 116, 0.08);
}

.nav-phone span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nav-phone strong {
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav-cta {
  padding: 10px 18px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.mobile-panel {
  position: fixed;
  inset: 75px 16px auto;
  z-index: 30;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  color: #39485d;
}

.mobile-panel a.is-current {
  padding-right: 12px;
  padding-left: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 111, 208, 0.12), rgba(24, 217, 210, 0.1));
  color: var(--blue);
  font-weight: 900;
}

.hero {
  display: grid;
  min-height: calc(100vh - 81px);
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  padding: clamp(70px, 8vw, 118px) clamp(20px, 5vw, 72px) 66px;
  background:
    linear-gradient(100deg, rgba(251, 253, 255, 0.98), rgba(247, 251, 255, 0.88) 48%, rgba(237, 249, 252, 0.72)),
    url("./assets/site/family-planning.jpg") center/cover;
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

.hero::after {
  position: absolute;
  right: -12vw;
  bottom: -28vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 217, 210, 0.18), rgba(47, 111, 208, 0.08) 42%, transparent 68%);
  content: "";
  pointer-events: none;
}

.hero-copy,
.admissions-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-weight: 900;
  letter-spacing: 0;
}

html[lang="en"] h1,
html[lang="en"] h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6.2vw, 82px);
  line-height: 1.03;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 760px;
  color: #415066;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  letter-spacing: 0.02em;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 18px 38px rgba(47, 111, 208, 0.2);
}

.button.secondary {
  border: 1px solid rgba(47, 111, 208, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.admissions-card {
  position: relative;
  padding: 38px 34px 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.2);
}

.admissions-card::before,
.admissions-card::after {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(47, 111, 208, 0.24);
  content: "";
}

.admissions-card::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.admissions-card::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.card-ribbon {
  margin-bottom: 22px;
  color: var(--teal);
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.card-photo {
  min-height: 156px;
  margin-bottom: 20px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.08), rgba(24, 217, 210, 0.12)),
    url("./assets/site/pathway-board.jpg") center/cover;
  box-shadow: 0 18px 50px rgba(31, 63, 116, 0.08);
}

.card-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #66758a;
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-mark span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(47, 111, 208, 0.18);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 111, 208, 0.08), rgba(24, 217, 210, 0.1));
  color: var(--blue);
  font-size: 12px;
}

.card-mark b {
  font-weight: 700;
}

.admissions-card h2 {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
}

.admissions-card p {
  color: #52606f;
}

.card-matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card-matrix section {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid rgba(var(--route-rgb), 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(var(--route-rgb), 0.05), rgba(255, 255, 255, 0.66));
}

.matrix-route b,
.card-coverage span {
  color: #38506f;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-route {
  --route-color: var(--blue);
  --route-rgb: 47, 111, 208;
}

.route-k12 {
  --route-color: #1d8fce;
  --route-rgb: 29, 143, 206;
}

.route-private {
  --route-color: #0f9f8f;
  --route-rgb: 15, 159, 143;
}

.route-college {
  --route-color: #a26a18;
  --route-rgb: 162, 106, 24;
}

.matrix-route b {
  color: var(--route-color);
}

.matrix-hint {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  margin-top: 4px;
  padding: 3px 9px;
  border: 1px solid rgba(var(--route-rgb), 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--route-color);
  font-size: 10px;
  font-weight: 800;
}

.matrix-links,
.matrix-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.matrix-groups {
  align-items: start;
}

.matrix-stack {
  display: grid;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(var(--route-rgb), 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.matrix-stack.wide {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matrix-links a,
.matrix-stack a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid rgba(var(--route-rgb), 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(var(--route-rgb), 0.11), rgba(255, 255, 255, 0.84));
  color: color-mix(in srgb, var(--route-color) 72%, #111827);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 8px 18px rgba(var(--route-rgb), 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.matrix-links a:first-child {
  grid-column: 1 / -1;
}

.matrix-links a::after,
.matrix-stack a::after {
  color: var(--route-color);
  content: ">";
  font-size: 10px;
  opacity: 0.72;
}

.matrix-links a:hover,
.matrix-stack a:hover {
  border-color: rgba(var(--route-rgb), 0.48);
  background:
    linear-gradient(135deg, rgba(var(--route-rgb), 0.18), rgba(255, 255, 255, 0.92));
  box-shadow: 0 12px 26px rgba(var(--route-rgb), 0.16);
  transform: translateY(-2px);
}

.card-coverage {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.card-coverage p {
  margin: 7px 0 0;
  color: #536277;
  font-size: 12px;
  line-height: 1.7;
}

@media (min-width: 1061px) {
  .card-matrix {
    z-index: 3;
  }

  .matrix-route {
    min-height: 74px;
    cursor: default;
  }

  .matrix-links,
  .matrix-groups {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 8;
    width: min(360px, 88vw);
    padding: 12px;
    border: 1px solid rgba(var(--route-rgb), 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 54px rgba(31, 63, 116, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .route-college .matrix-groups {
    right: 0;
    left: auto;
  }

  .matrix-route:hover .matrix-links,
  .matrix-route:focus-within .matrix-links,
  .matrix-route:hover .matrix-groups,
  .matrix-route:focus-within .matrix-groups {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.motto-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
}

.motto-band span:first-child,
.motto-band span:last-child {
  color: #8793a4;
}

.banner-slider {
  position: relative;
  padding: 28px clamp(20px, 5vw, 72px) 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.banner-track {
  position: relative;
  min-height: 462px;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 84px rgba(31, 63, 116, 0.1);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.banner-slide h2 {
  max-width: 660px;
  font-size: clamp(32px, 4vw, 58px);
}

.banner-slide p:not(.eyebrow) {
  max-width: 620px;
  color: #526173;
  font-size: 18px;
}

.banner-image {
  min-height: 282px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 70px rgba(31, 63, 116, 0.12);
}

.banner-pathway {
  background-image: linear-gradient(135deg, rgba(247, 251, 255, 0.1), rgba(24, 217, 210, 0.12)), url("./assets/site/pathway-board.jpg");
}

.banner-course {
  background-image: linear-gradient(135deg, rgba(247, 251, 255, 0.08), rgba(47, 111, 208, 0.12)), url("./assets/site/isee-framework.jpg");
}

.banner-family {
  background-image: linear-gradient(135deg, rgba(247, 251, 255, 0.1), rgba(24, 217, 210, 0.1)), url("./assets/site/home-study-family.jpg");
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 0;
}

.banner-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 111, 208, 0.18);
  cursor: pointer;
}

.banner-dots button.active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.about-brand {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background:
    radial-gradient(circle at 12% 12%, rgba(24, 217, 210, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fcff);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px) 72px;
  background:
    radial-gradient(circle at 88% 10%, rgba(24, 217, 210, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fcff, #ffffff);
}

.about-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #526173;
  font-size: 20px;
}

.about-hero-art {
  min-height: clamp(360px, 42vw, 620px);
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.06), rgba(24, 217, 210, 0.1)),
    url("./assets/site/family-planning.jpg") center/cover;
  box-shadow: 0 30px 96px rgba(31, 63, 116, 0.13);
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  max-width: 740px;
}

.about-metrics span {
  padding: 18px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(31, 63, 116, 0.06);
}

.about-metrics b,
.about-metrics small {
  display: block;
}

.about-metrics b {
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 24px;
}

.about-metrics small {
  color: #526173;
  font-size: 13px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about-quote {
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 3px solid var(--teal);
  border-radius: 0 22px 22px 0;
  background: linear-gradient(135deg, rgba(47, 111, 208, 0.06), rgba(24, 217, 210, 0.1));
  color: var(--navy);
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
}

.about-products {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.about-product-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.about-product-columns article {
  min-height: 280px;
  padding: 30px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(24, 217, 210, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 66px rgba(31, 63, 116, 0.08);
}

.about-product-columns span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 850;
}

.about-product-columns h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.about-product-columns p {
  color: #526173;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 72px) 96px;
}

.about-values article {
  min-height: 320px;
  padding: 30px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(24, 217, 210, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 66px rgba(31, 63, 116, 0.08);
}

.about-values span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue);
  font-weight: 850;
}

.about-values h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.about-values p {
  color: #526173;
}

.brand-intro-grid {
  display: grid;
  gap: 14px;
}

.brand-intro-grid article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(31, 63, 116, 0.07);
}

.brand-intro-grid b {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 111, 208, 0.12), rgba(24, 217, 210, 0.16));
  color: var(--blue);
  font-family: "Cinzel", serif;
}

.brand-intro-grid h3 {
  margin-bottom: 6px;
}

.brand-intro-grid p {
  margin-bottom: 0;
  color: #526173;
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.sub-hero {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px) 56px;
  background:
    radial-gradient(circle at 88% 8%, rgba(24, 217, 210, 0.16), transparent 28%),
    linear-gradient(180deg, #f8fcff, #ffffff);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sub-hero-with-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.programs-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.86fr);
}

.sub-hero h1,
.sub-hero p {
  max-width: 980px;
}

.sub-hero p:not(.eyebrow) {
  color: #526173;
  font-size: 20px;
}

.sub-hero-art {
  min-height: clamp(260px, 30vw, 430px);
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 34px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 90px rgba(31, 63, 116, 0.12);
}

.visual-pathways {
  background-image: linear-gradient(135deg, rgba(247, 251, 255, 0.12), rgba(24, 217, 210, 0.12)), url("./assets/site/pathway-board.jpg");
}

.visual-programs {
  min-height: 0;
  aspect-ratio: 1672 / 941;
  background-color: #ffffff;
  background-image: url("./assets/site/favan-product-matrix-zh.png");
  background-repeat: no-repeat;
  background-size: contain;
}

html[lang="en"] .visual-programs {
  background-image: url("./assets/site/favan-product-matrix-en.png");
}

.visual-faculty-page {
  background-image: linear-gradient(135deg, rgba(247, 251, 255, 0.12), rgba(47, 111, 208, 0.12)), url("./assets/site/english-class.jpg");
}

.visual-insights-page {
  background-image: linear-gradient(135deg, rgba(247, 251, 255, 0.14), rgba(24, 217, 210, 0.12)), url("./assets/site/student-growth-scenes.jpg");
}

.visual-stories-page {
  background-image: linear-gradient(135deg, rgba(247, 251, 255, 0.06), rgba(47, 111, 208, 0.12)), url("./assets/site/ucl-offer.jpg");
}

.page-section {
  padding: 72px clamp(20px, 5vw, 72px) 96px;
}

.route-map,
.journey-map,
.program-deck,
.insight-grid,
.story-list {
  display: grid;
  gap: 18px;
}

.route-map {
  grid-template-columns: 1fr;
}

.route-map article,
.program-deck article,
.program-card,
.insight-grid article,
.story-list article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 55px rgba(31, 63, 116, 0.07);
  backdrop-filter: blur(16px);
}

.route-map article {
  padding: clamp(26px, 4vw, 46px);
}

.route-map b,
.journey-lane b,
.program-deck span,
.program-card span,
.insight-grid span,
.story-list span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-map ul,
.story-list ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: #526173;
}

.route-map li,
.story-list li {
  margin: 8px 0;
}

.journey-map {
  position: relative;
}

.journey-map::before {
  content: "";
  position: absolute;
  left: clamp(28px, 4vw, 54px);
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, rgba(47, 111, 208, 0.15), rgba(24, 217, 210, 0.65), rgba(47, 111, 208, 0.15));
}

.journey-lane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  margin-left: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 12%, rgba(24, 217, 210, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 70px rgba(31, 63, 116, 0.08);
}

.journey-lane::before {
  content: "";
  position: absolute;
  left: calc(clamp(28px, 4vw, 54px) * -1 - 6px);
  top: 42px;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 8px rgba(24, 217, 210, 0.12);
}

.lane-copy p,
.lane-note {
  color: #526173;
}

.lane-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.8);
}

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

.journey-steps span {
  position: relative;
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 18px 14px;
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f4fbff);
  color: var(--navy);
  font-weight: 850;
  text-align: center;
  box-shadow: 0 18px 42px rgba(31, 63, 116, 0.08);
}

.journey-steps span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(47, 111, 208, 0.35);
  border-right: 2px solid rgba(47, 111, 208, 0.35);
  transform: translateY(-50%) rotate(45deg);
  background: #fff;
}

.program-deck,
.insight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.program-deck article,
.program-card,
.insight-grid article {
  min-height: 310px;
  padding: 30px;
}

.program-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 72px rgba(31, 63, 116, 0.13);
}

.editorial-grid {
  grid-template-columns: repeat(2, 1fr);
}

.editorial-card,
.story-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(31, 63, 116, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.editorial-card {
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 0.58fr);
  min-height: 310px;
}

.editorial-card > div:last-child,
.story-card > div:last-child {
  padding: 30px;
}

.editorial-card:hover,
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(31, 63, 116, 0.13);
}

.editorial-card b,
.story-card b {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
}

.card-visual,
.story-art,
.article-visual {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(47, 111, 208, 0.82), rgba(24, 217, 210, 0.62)),
    url("./assets/site/campus-students.jpg") center/cover;
}

.visual-ssat {
  background:
    linear-gradient(135deg, rgba(47, 111, 208, 0.46), rgba(18, 200, 196, 0.26)),
    url("./assets/site/isee-stairway.jpg") center/cover;
}

.visual-toefl {
  background:
    linear-gradient(135deg, rgba(18, 200, 196, 0.32), rgba(47, 111, 208, 0.18)),
    url("./assets/site/english-class.jpg") center/cover;
}

.visual-sat,
.visual-score {
  background:
    linear-gradient(135deg, rgba(49, 95, 202, 0.36), rgba(180, 150, 90, 0.2)),
    url("./assets/site/student-growth-scenes.jpg") center/cover;
}

.visual-ap {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(18, 200, 196, 0.2)),
    url("./assets/site/campus-students.jpg") center/cover;
}

.visual-school,
.visual-stanford,
.visual-upenn {
  background:
    linear-gradient(135deg, rgba(47, 111, 208, 0.22), rgba(255, 255, 255, 0.12)),
    url("./assets/site/private-school-split.jpg") center/cover;
}

.visual-dual {
  background:
    linear-gradient(135deg, rgba(18, 200, 196, 0.34), rgba(49, 95, 202, 0.24)),
    url("./assets/site/pathway-board.jpg") center/cover;
}

.visual-english {
  background:
    linear-gradient(135deg, rgba(18, 200, 196, 0.2), rgba(47, 111, 208, 0.12)),
    url("./assets/site/english-growth-map.jpg") center/cover;
}

.program-deck article b,
.program-card b {
  display: block;
  margin-top: 22px;
  color: #38506f;
  font-size: 14px;
}

.program-card em {
  display: inline-flex;
  margin-top: auto;
  padding-top: 24px;
  color: var(--blue);
  font-style: normal;
  font-weight: 850;
}

.program-matrix-panel {
  margin-bottom: 34px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 4%, rgba(24, 217, 210, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(47, 111, 208, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 76px rgba(31, 63, 116, 0.08);
}

.section-heading.compact {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading.compact h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.02;
}

.section-heading.compact p:not(.eyebrow) {
  max-width: 660px;
  color: #526173;
}

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

.program-matrix .matrix-route {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(var(--route-rgb), 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(var(--route-rgb), 0.07), rgba(255, 255, 255, 0.82));
  box-shadow: 0 16px 44px rgba(var(--route-rgb), 0.08);
}

.program-matrix .matrix-links,
.program-matrix .matrix-groups {
  position: static;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.program-matrix .matrix-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-matrix .matrix-links a:first-child {
  grid-column: 1 / -1;
}

.program-matrix .matrix-stack.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.materials-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 54px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 18%, rgba(24, 217, 210, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 76px rgba(31, 63, 116, 0.09);
}

.materials-showcase p:not(.eyebrow) {
  color: #526173;
}

.materials-rail {
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.materials-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: material-scroll 44s linear infinite;
}

.materials-rail:hover .materials-track,
.materials-rail:focus-within .materials-track {
  animation-play-state: paused;
}

.material-card {
  display: grid;
  width: clamp(148px, 12vw, 188px);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(31, 63, 116, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.material-card:hover {
  border-color: rgba(18, 200, 196, 0.36);
  box-shadow: 0 24px 58px rgba(31, 63, 116, 0.14);
  transform: translateY(-4px);
}

.material-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 18px;
  background: #edf6fb;
  object-fit: cover;
}

.material-card span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 200, 196, 0.1);
  color: #0f766e;
  font-size: 10px;
  font-weight: 850;
}

.material-card strong {
  color: #253855;
  font-size: 13px;
  line-height: 1.25;
}

@keyframes material-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faculty-grid article,
.faculty-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 55px rgba(31, 63, 116, 0.07);
}

.faculty-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 72px rgba(31, 63, 116, 0.13);
}

.faculty-grid img,
.faculty-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: #edf6fb;
}

.faculty-mark {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  background:
    radial-gradient(circle at 24% 20%, rgba(24, 217, 210, 0.24), transparent 34%),
    linear-gradient(135deg, #f7fbff, #eaf8ff);
}

.faculty-mark span {
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  border: 1px solid rgba(47, 111, 208, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 22px 60px rgba(31, 63, 116, 0.1);
}

.faculty-mark.detail {
  min-height: 420px;
}

.faculty-grid h2,
.faculty-grid p,
.faculty-card h2,
.faculty-card p {
  padding: 0 24px;
}

.faculty-grid h2,
.faculty-card h2 {
  margin-top: 22px;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 30px;
}

.faculty-grid p,
.faculty-card p {
  color: #526173;
}

.faculty-card > div {
  display: flex;
  min-height: 260px;
  flex: 1;
  flex-direction: column;
  padding-bottom: 24px;
}

.faculty-card b {
  display: inline-flex;
  margin: auto 24px 0;
  color: var(--blue);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 18px;
}

.tag-row span {
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(247, 251, 255, 0.9);
  color: #38506f;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large {
  padding: 0;
  margin-top: 20px;
}

.story-editorial {
  grid-template-columns: 1fr;
}

.story-card {
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 0.65fr);
  min-height: 340px;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px) 72px;
  background:
    radial-gradient(circle at 90% 10%, rgba(24, 217, 210, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fcff, #ffffff);
}

.article-hero h1 {
  max-width: 920px;
}

.article-hero p:not(.eyebrow) {
  max-width: 740px;
  color: #526173;
  font-size: 20px;
}

.article-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 800;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.article-visual {
  min-height: 440px;
  border-radius: 36px;
  box-shadow: 0 28px 90px rgba(31, 63, 116, 0.14);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  padding: 72px clamp(20px, 5vw, 72px) 96px;
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-body section {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 55px rgba(31, 63, 116, 0.07);
}

.article-body h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.article-body p {
  color: #526173;
  font-size: 18px;
}

.article-aside {
  position: relative;
}

.sticky-cta {
  position: sticky;
  top: 112px;
  padding: 28px;
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 12%, rgba(24, 217, 210, 0.18), transparent 35%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 65px rgba(31, 63, 116, 0.1);
}

.sticky-cta span {
  color: var(--blue);
  font-weight: 800;
}

.sticky-cta h2 {
  margin-top: 14px;
  font-size: 30px;
}

.sticky-cta p {
  color: #526173;
}

.sticky-cta .button {
  width: 100%;
  margin-top: 10px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.course-hero,
.teacher-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px) 72px;
  background:
    radial-gradient(circle at 88% 8%, rgba(24, 217, 210, 0.16), transparent 28%),
    linear-gradient(180deg, #f8fcff, #ffffff);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.material-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(64px, 8vw, 116px) clamp(20px, 5vw, 72px) 48px;
  background:
    radial-gradient(circle at 12% 18%, rgba(24, 217, 210, 0.14), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(47, 111, 208, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(247, 251, 255, 0.86));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.material-cover {
  max-width: 420px;
  padding: 16px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 76px rgba(31, 63, 116, 0.12);
}

.material-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
}

.material-hero h1 {
  max-width: 780px;
  margin: 8px 0 16px;
  color: var(--navy);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 650;
  line-height: 0.96;
}

.material-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #526173;
  font-size: 18px;
}

.material-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 4px;
}

.material-meta article {
  padding: 18px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(31, 63, 116, 0.06);
}

.material-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.material-meta strong {
  color: #253855;
}

.material-detail-layout {
  padding-top: 34px;
}

.course-hero p:not(.eyebrow),
.teacher-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #526173;
  font-size: 20px;
}

.course-panel {
  min-height: 360px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 22% 12%, rgba(24, 217, 210, 0.2), transparent 36%),
    linear-gradient(145deg, #ffffff, #f2fbff);
  box-shadow: 0 28px 90px rgba(31, 63, 116, 0.12);
}

.course-media {
  min-height: 210px;
  margin: -12px -12px 28px;
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 52px rgba(31, 63, 116, 0.1);
}

.course-panel span {
  color: var(--blue);
  font-weight: 850;
}

.course-panel strong {
  display: block;
  margin: 42px 0 18px;
  color: var(--navy);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.95;
}

.course-panel p {
  color: #526173;
}

.course-layout,
.teacher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  padding: 72px clamp(20px, 5vw, 72px) 96px;
}

.course-main {
  display: grid;
  gap: 22px;
}

.course-main > section,
.teacher-story {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 55px rgba(31, 63, 116, 0.07);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pill-list span {
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 999px;
  padding: 12px 16px;
  background: #f7fbff;
  color: #38506f;
  font-weight: 800;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.outcome-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.outcome-grid b,
.syllabus-timeline span {
  color: var(--blue);
  font-family: "Cinzel", serif;
}

.outcome-grid p,
.syllabus-timeline p,
.teacher-story p {
  color: #526173;
}

.syllabus-timeline {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.syllabus-timeline article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.syllabus-timeline span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 217, 210, 0.12);
  font-weight: 900;
}

.teacher-hero {
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 0.52fr);
}

.teacher-photo-wrap {
  overflow: hidden;
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 34px;
  background: #edf6fb;
  box-shadow: 0 28px 90px rgba(31, 63, 116, 0.12);
}

.teacher-photo-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.teacher-story h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.route-grid article,
.program-list article,
.case-timeline article,
.faculty-points span {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-grid article:hover,
.program-list article:hover,
.case-timeline article:hover,
.faculty-points span:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(31, 63, 116, 0.12);
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

.route-grid,
.program-list,
.case-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.route-grid article,
.program-list article,
.case-timeline article {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(31, 63, 116, 0.06);
  backdrop-filter: blur(14px);
}

.route-grid span,
.program-list b,
.case-timeline b {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 16px;
}

.route-grid p,
.program-list p,
.case-timeline p,
.faculty p,
.consult p {
  color: var(--muted);
}

.navigator {
  background:
    linear-gradient(180deg, rgba(24, 217, 210, 0.08), rgba(47, 111, 208, 0.055)),
    #f8fcff;
}

.navigator-shell {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.navigator-form,
.navigator-result,
.consult-form {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(31, 63, 116, 0.08);
  backdrop-filter: blur(16px);
}

.navigator-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.navigator-form label {
  padding: 18px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 18px;
}

.navigator-form label:nth-child(1) {
  border-left: 5px solid var(--blue);
  background: linear-gradient(135deg, rgba(47, 111, 208, 0.1), rgba(255, 255, 255, 0.92));
}

.navigator-form label:nth-child(2) {
  border-left: 5px solid var(--teal);
  background: linear-gradient(135deg, rgba(24, 217, 210, 0.12), rgba(255, 255, 255, 0.92));
}

.navigator-form label:nth-child(3) {
  border-left: 5px solid var(--gold);
  background: linear-gradient(135deg, rgba(184, 154, 93, 0.16), rgba(255, 255, 255, 0.92));
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.navigator-result {
  padding: 28px;
}

.navigator-result h3 {
  color: var(--navy);
  font-size: 32px;
}

.result-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.result-steps div {
  padding: 16px;
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 18px;
  background: #f7fbff;
}

.result-steps b {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "Cinzel", serif;
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.comparison div {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(31, 63, 116, 0.06);
}

.comparison .wide {
  grid-column: 1 / -1;
  border: 0;
  background: linear-gradient(135deg, rgba(47, 111, 208, 0.95), rgba(18, 200, 196, 0.92));
  color: #fff;
}

.comparison .wide p {
  color: rgba(255, 255, 255, 0.82);
}

.programs {
  background: rgba(255, 255, 255, 0.72);
}

.faculty {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 50px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.94), rgba(230, 249, 251, 0.84)),
    url("./assets/site/english-class.jpg") center/cover;
  color: var(--ink);
}

.faculty p {
  color: #526173;
}

.faculty-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faculty-points span {
  min-height: 98px;
  padding: 18px;
  border: 1px solid rgba(47, 111, 208, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-family: "Cinzel", "Noto Serif SC", serif;
  box-shadow: 0 18px 48px rgba(31, 63, 116, 0.08);
}

.case-timeline {
  grid-template-columns: repeat(3, 1fr);
}

.consult {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 72px) 72px;
  padding: 50px;
  border: 1px solid rgba(47, 111, 208, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 16%, rgba(24, 217, 210, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f2fbff);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.consult p {
  color: #526173;
}

.consult-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(47, 111, 208, 0.1);
}

.consult-form input:nth-child(3) {
  grid-column: 1 / -1;
}

.consult-form button {
  grid-column: 1 / -1;
  min-height: 50px;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  cursor: pointer;
  font: 800 14px/1 "DM Sans", sans-serif;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--navy);
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 1060px) {
  .desktop-nav,
  .nav-phone,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .brand {
    min-width: 0;
  }

  .hero,
  .split,
  .faculty,
  .consult,
  .navigator-shell,
  .about-brand,
  .about-hero,
  .about-story {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .route-grid,
  .program-list,
  .program-deck,
  .insight-grid,
  .faculty-grid,
  .editorial-grid,
  .sub-hero-with-art,
  .article-hero,
  .article-layout,
  .course-hero,
  .course-layout,
  .material-hero,
  .teacher-hero,
  .teacher-layout,
  .materials-showcase,
  .about-values,
  .banner-slide,
  .journey-lane {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-layout,
  .material-hero,
  .teacher-layout,
  .about-brand,
  .story-list article,
  .story-card {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1061px) and (max-height: 850px) {
  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo-frame,
  .logo-frame img {
    width: 142px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .desktop-nav {
    gap: 20px;
    font-size: 13px;
  }

  .hero {
    min-height: calc(100vh - 65px);
    gap: clamp(24px, 4vw, 56px);
    padding-top: 10px;
    padding-bottom: 28px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(44px, 5.4vw, 70px);
  }

  .hero-lede {
    max-width: 700px;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
    padding: 0 20px;
  }

  .admissions-card {
    align-self: start;
    margin-top: 0;
    padding: 24px 26px 22px;
    border-radius: 24px;
  }

  .card-ribbon {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .card-photo {
    min-height: 112px;
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .card-mark {
    gap: 8px;
    margin-bottom: 8px;
    font-size: 10px;
  }

  .card-mark span {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .admissions-card h2 {
    margin-bottom: 6px;
    font-size: 30px;
  }

  .admissions-card p {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .card-matrix {
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .card-matrix section {
    gap: 4px;
    min-height: 58px;
    padding: 8px;
    border-radius: 12px;
  }

  .matrix-hint {
    min-height: 20px;
    margin-top: 2px;
    padding: 2px 7px;
    font-size: 8.5px;
  }

  .matrix-route b,
  .card-coverage span {
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }

  .matrix-links,
  .matrix-groups {
    gap: 5px;
  }

  .matrix-stack {
    gap: 4px;
    padding: 4px;
  }

  .matrix-links a,
  .matrix-stack a {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 9.5px;
    box-shadow: 0 5px 12px rgba(var(--route-rgb), 0.07);
  }

  .matrix-links a::after,
  .matrix-stack a::after {
    font-size: 8px;
  }

  .card-coverage {
    margin-top: 9px;
    padding-top: 8px;
  }

  .card-coverage p {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 12px 18px;
  }

  .logo-frame {
    width: 128px;
    height: auto;
  }

  .logo-frame img {
    width: 128px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .hero,
  .section,
  .banner-slider {
    padding-left: 18px;
    padding-right: 18px;
  }

  .motto-band,
  .route-grid,
  .program-list,
  .program-deck,
  .program-matrix,
  .insight-grid,
  .faculty-grid,
  .editorial-grid,
  .sub-hero-with-art,
  .editorial-card,
  .journey-lane,
  .journey-steps,
  .story-card,
  .article-hero,
  .article-layout,
  .course-hero,
  .course-layout,
  .material-hero,
  .teacher-hero,
  .teacher-layout,
  .outcome-grid,
  .materials-showcase,
  .materials-grid,
  .material-meta,
  .banner-slide,
  .about-brand,
  .about-hero,
  .about-story,
  .about-metrics,
  .about-values,
  .about-product-columns,
  .brand-intro-grid article,
  .case-timeline,
  .result-steps,
  .comparison,
  .faculty-points,
  .consult-form {
    grid-template-columns: 1fr;
  }

  .card-matrix {
    grid-template-columns: 1fr;
  }

  .program-matrix {
    grid-template-columns: 1fr;
  }

  .matrix-groups,
  .matrix-stack.wide {
    grid-template-columns: 1fr;
  }

  .motto-band {
    gap: 8px;
    font-size: 10px;
  }

  .banner-track {
    min-height: 690px;
  }

  .banner-image {
    min-height: 230px;
  }

  .consult {
    margin: 0 18px 48px;
    padding: 28px;
  }

  .language-switch {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .card-visual,
  .story-art,
  .article-visual,
  .sub-hero-art {
    min-height: 220px;
  }

  .article-layout,
  .course-layout,
  .teacher-layout,
  .material-detail-layout {
    padding-top: 36px;
  }

  .material-card {
    width: 150px;
  }

  .journey-map::before {
    left: 14px;
  }

  .journey-lane {
    margin-left: 24px;
  }

  .journey-lane::before {
    left: -31px;
  }

  .journey-steps span:not(:last-child)::after {
    display: none;
  }
}

.support-widget,
.support-launcher {
  position: fixed;
  right: clamp(16px, 2.2vw, 30px);
  z-index: 80;
  font-family: inherit;
}

.support-widget {
  bottom: clamp(18px, 2.2vw, 30px);
  width: min(340px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(47, 111, 208, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(24, 217, 210, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(18, 38, 70, 0.18);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  backdrop-filter: blur(18px);
}

.support-widget.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.support-widget__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #516074;
  background: rgba(239, 246, 255, 0.9);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.support-widget__eyebrow {
  margin: 0 34px 8px 0;
  color: #2f6fd0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.support-widget strong {
  display: block;
  color: #0d172a;
  font-size: 22px;
  line-height: 1.2;
}

.support-widget span {
  display: block;
  margin-top: 10px;
  color: #526173;
  font-size: 14px;
  line-height: 1.65;
}

.support-widget__actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.support-widget__primary,
.support-widget__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.support-widget__primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2f6fd0, #18d9d2);
  box-shadow: 0 12px 26px rgba(47, 111, 208, 0.24);
}

.support-widget__phone {
  color: #0d172a;
  border: 1px solid rgba(47, 111, 208, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.support-launcher {
  display: none;
  bottom: 22px;
  min-width: 72px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #0d172a;
  box-shadow: 0 16px 38px rgba(13, 23, 42, 0.22);
  cursor: pointer;
  font-weight: 900;
}

.support-launcher.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .support-widget {
    padding: 18px;
    border-radius: 20px;
  }
}
