/*
 * Apple-inspired web redesign for Learning Jungle.
 * This is a native web interpretation using restrained surfaces, typography,
 * photography and frosted materials. It is not an Apple design system.
 */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --paper: #fbfbfd;
  --cream: #f5f5f7;
  --mint: #edf4f0;
  --green: #17643e;
  --leaf: #17643e;
  --sky: #edf4f0;
  --blue: #17643e;
  --yellow: #edf4f0;
  --coral: #17643e;
  --rose: #edf4f0;
  --shadow: 0 30px 80px rgba(22, 35, 29, 0.1);
  --font-text: "SF Pro SC", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  --font-display: "SF Pro SC", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  --font-ui: "SF Pro SC", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  --font: var(--font-text);
  --site-max: 1280px;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-glass: rgba(255, 255, 255, 0.76);
  --accent: #17643e;
  --accent-hover: #0f4f30;
  --block-sky: #d8f1ff;
  --block-blue: #c7e8ff;
  --block-green: #d9f3df;
  --block-yellow: #fff0a6;
  --block-coral: #ffd6ca;
  --radius-card: 28px;
  --radius-media: 24px;
  --section-space: clamp(64px, 5.2vw, 80px);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-padding-top: 84px;
  background: var(--paper);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body,
.subpage-body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: 0;
  font-kerning: normal;
  font-synthesis: none;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang^="en"] {
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[lang^="en"] body,
html[lang^="en"] .subpage-body {
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 2%, rgba(23, 100, 62, 0.055), transparent 28rem),
    radial-gradient(circle at 88% 25%, rgba(66, 137, 99, 0.04), transparent 32rem);
}

::selection {
  color: #fff;
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(23, 100, 62, 0.35);
  outline-offset: 4px;
}

p {
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(54px, min(6.8vw, 10dvh), 104px);
}

h2 {
  font-size: clamp(42px, 5.4vw, 76px);
}

h3 {
  font-size: clamp(23px, 2vw, 31px);
  letter-spacing: -0.018em;
}

html[lang^="en"] h1,
html[lang^="en"] h2,
html[lang^="en"] h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08349;
}

html[lang^="en"] h3 {
  letter-spacing: 0.004em;
  line-height: 1.125;
}

.eyebrow,
.tag {
  color: var(--accent);
  font-size: 14px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html[lang^="en"] h1,
html[lang^="en"] h2,
html[lang^="en"] h3,
html[lang^="en"] .eyebrow,
html[lang^="en"] .tag,
html[lang^="en"] .top-nav a {
  text-transform: none;
}

/* Navigation */
.site-header {
  min-height: 64px;
  padding: 8px max(24px, calc((100vw - var(--site-max)) / 2));
  grid-template-columns: 178px minmax(0, 1fr) auto;
  gap: 28px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.brand img {
  width: 112px;
  max-height: 40px;
}

html[lang^="en"] .brand img {
  width: 168px;
}

html[lang^="en"] .site-header {
  grid-template-columns: 190px minmax(0, 1fr) auto;
  padding-inline: max(24px, calc((100vw - var(--site-max)) / 2));
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 34px);
  max-width: none;
  color: #4e4e52;
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 400;
}

.top-nav a {
  padding: 12px 0;
  transition: color 180ms ease;
}

.top-nav a::after {
  display: none;
}

.top-nav a:hover {
  color: var(--accent);
}

.header-actions {
  gap: 8px;
}

.language-toggle,
.pill-button {
  min-height: 42px;
  border-radius: 999px;
  font-size: 15px;
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.language-toggle {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(29, 29, 31, 0.13);
  background: rgba(255, 255, 255, 0.68);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.language-toggle:hover {
  border-color: rgba(29, 29, 31, 0.24);
  background: #fff;
}

.pill-button {
  min-height: 44px;
  padding: 0 23px;
  border-width: 1px;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.pill-button.dark {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.pill-button.dark:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(23, 100, 62, 0.22);
}

.pill-button.light {
  color: var(--ink);
  border-color: rgba(29, 29, 31, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.pill-button.light:hover {
  border-color: rgba(29, 29, 31, 0.28);
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 29, 31, 0.09);
}

.pill-button:hover {
  transform: translateY(-1px);
}

.pill-button:active,
.language-toggle:active,
.card-link:active,
.text-link:active {
  transform: scale(0.98);
}

/* Home hero */
.hero {
  width: min(100%, 1512px);
  min-height: calc(100svh - 64px);
  margin: 0 auto;
  padding: clamp(24px, 4dvh, 52px) clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(42px, 6vw, 96px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
  font-size: 15px;
}

.hero-copy h1 {
  max-width: 8em;
}

.hero-copy h1 span:last-child {
  color: var(--accent);
}

.hero-lead {
  max-width: 540px;
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  letter-spacing: 0;
  white-space: pre;
}

html[lang^="en"] .hero-lead {
  line-height: 1.47059;
  letter-spacing: -0.022em;
  white-space: normal;
}

.hero-actions {
  gap: 12px;
  margin-top: 32px;
}

.hero-stage {
  min-height: 0;
  height: min(68dvh, 680px);
}

.hero-main {
  height: 100%;
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: 0 40px 100px rgba(18, 40, 29, 0.16);
  transform: none;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.hero-stage:hover .hero-main {
  filter: saturate(1.02);
  transform: scale(1.008);
}

.floating-card {
  min-width: 142px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 20px 54px rgba(11, 31, 21, 0.18);
  animation: none;
}

.floating-card strong {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.024em;
}

.floating-card span {
  color: #3f3f43;
  font-size: 14px;
  font-weight: 600;
}

.card-yellow {
  left: -28px;
  top: 42px;
}

.card-blue {
  right: -24px;
  bottom: 42px;
}

/* Quick entrance strip */
.resource-strip {
  width: min(var(--site-max), calc(100% - 48px));
  margin: 0 auto;
  gap: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  box-shadow: none;
}

.resource-strip a {
  min-height: 150px;
  padding: 30px;
  background: transparent;
  border-right: 1px solid var(--line);
  transition: background 220ms ease;
}

.resource-strip a:last-child {
  border-right: 0;
}

.resource-strip a::before {
  display: none;
}

.resource-strip a:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: none;
}

.resource-strip span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.resource-strip strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.resource-strip small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Shared section rhythm */
.section-pad {
  width: min(100%, 1512px);
  margin: 0 auto;
  padding: var(--section-space) clamp(24px, 5vw, 72px);
}

.section-heading,
.section-heading.narrow {
  width: min(100%, 900px);
  max-width: 900px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

#model .section-heading.narrow,
#highlights > .section-heading,
#campuses .section-heading {
  width: min(100%, 900px);
  max-width: 900px;
  margin-left: auto;
  text-align: center;
}

#highlights > .section-heading > h2 {
  width: auto;
  max-width: none;
  font-size: clamp(42px, 5.4vw, 76px);
}

#campuses .section-heading > p:last-child {
  max-width: 680px;
}

#language .section-heading > p:last-child {
  max-width: min(1200px, 100%);
}

/* About */
.intro {
  width: min(var(--site-max), calc(100% - 48px));
  margin-block: 16px;
  padding-inline: clamp(28px, 5vw, 72px);
  padding-top: var(--section-space);
  border-radius: 40px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.8), transparent 22rem),
    linear-gradient(135deg, var(--block-green), var(--surface-soft));
}

.intro-title span {
  display: inline;
}

.intro-title span:not(:last-child)::after {
  content: " ";
}

.intro-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
}

.intro-media img {
  min-height: 600px;
  border-radius: var(--radius-card);
  box-shadow: 0 28px 70px rgba(22, 82, 51, 0.13);
}

.intro-text {
  gap: 22px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.intro-text > p {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.6;
}

.intro-text dl {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.intro-text dl > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.intro-text dt {
  color: var(--ink);
  font-weight: 600;
}

.intro-text dd {
  color: var(--muted);
}

/* Model and content cards */
.model {
  width: min(var(--site-max), calc(100% - 48px));
  margin-block: 16px;
  padding-inline: clamp(28px, 5vw, 72px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.82), transparent 24rem),
    linear-gradient(145deg, var(--block-sky), var(--surface-soft));
}

.model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.model-card,
.model-card.green {
  min-height: 520px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--block-green);
  box-shadow: none;
}

.model-card.mint {
  background: var(--block-blue);
}

.model-card.mint img {
  width: 102.4%;
  max-width: none;
  margin-left: -2.4%;
}

.model-card.yellow {
  background: var(--block-yellow);
}

.model-card.coral {
  background: var(--block-coral);
}

.model-card img {
  height: 330px;
}

.model-card div {
  padding: 28px 30px 32px;
}

.model-card p {
  max-width: 39em;
  margin-top: 13px;
  font-size: 16px;
  line-height: 1.55;
}

.model-card:hover {
  box-shadow: 0 22px 50px rgba(22, 35, 29, 0.1);
  transform: translateY(-4px);
}

.model-card:hover img {
  transform: scale(1.025);
}

/* Future */
.future {
  width: min(100%, 1512px);
  color: var(--ink);
  background: transparent;
}

.future-panel {
  min-height: 610px;
  padding: clamp(42px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  border-radius: 40px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.76), transparent 23rem),
    linear-gradient(140deg, var(--block-sky), var(--block-green));
  box-shadow: none;
}

.future-copy h2,
.future-copy p,
.future-copy .eyebrow {
  color: var(--ink);
}

.future-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section-more.light-on-dark {
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}

.section-more::after,
.text-link::after,
.card-link::after,
.back-link::before {
  transition: transform 180ms ease;
}

.section-more:hover::after,
.text-link:hover::after,
.card-link:hover::after {
  transform: translateX(3px);
}

.os-orbit {
  min-height: 490px;
  border-color: rgba(23, 100, 62, 0.14);
  background:
    radial-gradient(circle at center, rgba(23, 100, 62, 0.12), transparent 9rem),
    rgba(255, 255, 255, 0.5);
}

.os-orbit::before {
  border-color: rgba(23, 100, 62, 0.2);
  box-shadow: inset 0 0 80px rgba(23, 100, 62, 0.025);
}

.os-core {
  color: #fff;
  border: 1px solid rgba(23, 100, 62, 0.24);
  background: var(--accent);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.os-orbit span,
.os-orbit span:nth-of-type(n) {
  color: var(--ink);
  border: 1px solid rgba(23, 100, 62, 0.16);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.product-row {
  margin-top: 24px;
  gap: 24px;
}

.product-row article {
  padding: 0 0 30px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--block-sky);
  box-shadow: none;
}

.product-row article:nth-child(2) {
  background: var(--block-coral);
}

.product-row article:nth-child(3) {
  background: var(--block-green);
}

.future .product-row p {
  color: var(--muted);
}

.product-row img {
  height: 310px;
  border-radius: 0;
}

.product-row h3,
.product-row p {
  margin-inline: 28px;
}

.product-row h3 {
  margin-top: 26px;
}

.product-row p {
  margin-top: 14px;
}

.product-row article:hover {
  box-shadow: 0 20px 48px rgba(22, 35, 29, 0.09);
  transform: translateY(-3px);
}

/* Language */
.language-cards {
  gap: 24px;
}

.language-cards article {
  min-height: 560px;
  padding: 0;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--block-coral);
  box-shadow: none;
}

.language-cards article:nth-child(2) {
  background: var(--block-blue);
}

.language-cards img {
  width: 100%;
  height: 360px;
}

.language-cards div {
  padding: 30px 32px 34px;
}

.language-cards article:hover {
  box-shadow: 0 22px 50px rgba(22, 35, 29, 0.09);
  transform: translateY(-3px);
}

/* Highlights */
.highlights {
  width: min(var(--site-max), calc(100% - 48px));
  margin-block: 16px;
  padding-inline: clamp(28px, 5vw, 72px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.74), transparent 22rem),
    var(--surface-soft);
}

.highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.highlight-card,
.highlight-card.sports {
  min-height: 430px;
  padding: clamp(34px, 4vw, 52px);
  border: 0;
  border-radius: var(--radius-card);
  background: var(--block-yellow);
  box-shadow: none;
}

.highlight-card.art {
  background: var(--block-coral);
}

.highlight-card.life {
  background: var(--block-green);
}

.highlight-card.competition {
  background: var(--block-blue);
}

.highlight-card::before,
.highlight-card::after {
  display: none;
}

.highlight-card > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.highlight-card h3 {
  margin-top: auto;
  font-size: clamp(40px, 4.4vw, 64px);
}

.highlight-card p {
  max-width: 440px;
  margin-top: 14px;
  font-size: 19px;
}

.highlight-card:hover {
  color: inherit;
  box-shadow: 0 20px 44px rgba(22, 35, 29, 0.09);
  transform: translateY(-4px);
}

/* Research */
.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.resources {
  width: min(var(--site-max), calc(100% - 48px));
  margin-block: 16px;
  padding-inline: clamp(28px, 5vw, 72px);
  border-radius: 40px;
  background: var(--surface-soft);
}

.article-grid article,
.feature-article {
  display: flex;
  min-height: 0;
  padding: 0 0 32px;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--block-sky);
  box-shadow: none;
}

.feature-article {
  grid-column: auto;
  grid-row: auto;
}

.article-grid article:nth-child(2) {
  background: var(--block-coral);
}

.article-grid article:nth-child(3) {
  background: var(--block-green);
}

.article-grid article:nth-child(4) {
  background: var(--block-yellow);
}

.feature-article img {
  height: 310px;
}

.article-grid img {
  flex: 0 0 auto;
  height: 310px;
  border-radius: 0;
}

.feature-article div,
.article-grid article:not(.feature-article) > :not(img) {
  margin-inline: 28px;
}

.feature-article div {
  display: flex;
  padding: 28px 0 0;
  flex: 1;
  flex-direction: column;
}

.feature-article div > * {
  margin-inline: 0;
}

.article-grid h3 {
  margin-top: 15px;
  font-size: clamp(22px, 2vw, 30px);
}

.article-grid article > p:not(.tag) {
  margin-top: 14px;
}

.article-grid article > .text-link,
.feature-article .text-link {
  align-self: flex-start;
  margin-top: 22px;
  margin-bottom: 0;
}

.article-grid article:hover {
  box-shadow: 0 20px 48px rgba(22, 35, 29, 0.09);
  transform: translateY(-3px);
}

.text-link,
.card-link,
.section-more,
.back-link {
  color: var(--accent);
  font-weight: 600;
}

.section-cta {
  margin-top: 44px;
}

/* Campuses */
.featured-campus-grid,
.campus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.campus-grid article {
  min-height: 560px;
  padding: 0 30px 30px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  box-shadow: none;
}

.campus-grid img {
  width: calc(100% + 60px);
  height: 380px;
  max-width: none;
  margin-left: -30px;
  border-radius: 0;
}

.campus-grid p {
  margin-top: 24px;
  color: var(--accent);
}

.campus-grid h3 {
  margin-top: 7px;
}

.campus-grid span {
  margin-top: 12px;
}

.campus-grid article:hover {
  box-shadow: 0 22px 50px rgba(22, 35, 29, 0.09);
  transform: translateY(-3px);
}

/* Gallery and visit */
.gallery {
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.gallery-copy {
  padding-right: 0;
}

.gallery-copy h2 span {
  display: inline;
}

.gallery-copy h2 span:first-child::after {
  content: " ";
}

.gallery-copy p:not(.eyebrow) {
  max-width: 390px;
  margin-top: 24px;
  font-size: 19px;
}

.gallery-copy .pill-button {
  margin-top: 30px;
}

.gallery-rail {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 18px;
}

.gallery-rail a {
  min-height: 230px;
  border-radius: var(--radius-media);
  box-shadow: none;
}

.gallery-rail a:first-child {
  grid-row: span 2;
}

.gallery-rail span {
  left: 24px;
  top: auto;
  bottom: 22px;
  width: auto;
  padding: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  opacity: 1;
  background: transparent;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.gallery-rail article:hover span,
.gallery-rail a:hover span {
  transform: none;
}

.gallery-rail a::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 52%);
}

.gallery-rail span {
  z-index: 1;
}

.visit {
  width: min(var(--site-max), calc(100% - 48px));
  padding-inline: 0;
  background: transparent;
}

.visit-card {
  padding: clamp(38px, 6vw, 80px);
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 90px);
  border: 0;
  border-radius: 40px;
  background: var(--surface-soft);
  box-shadow: none;
}

.visit-card > div:first-child {
  padding: 0;
}

.visit-card p:not(.eyebrow) {
  max-width: 430px;
  margin-top: 22px;
  font-size: 18px;
}

.visit-card form {
  gap: 20px 16px;
}

.visit-card label,
.comment-box label {
  color: #4e4e52;
  font-size: 14px;
  font-weight: 550;
}

input,
select,
textarea {
  min-height: 52px;
  color: var(--ink);
  border: 1px solid rgba(29, 29, 31, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

input::placeholder,
textarea::placeholder {
  color: #77777c;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(23, 100, 62, 0.13);
}

/* Detail overlay */
.detail-backdrop {
  background: rgba(18, 20, 19, 0.42);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.detail-panel {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-card);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.24);
}

.detail-close {
  border: 1px solid rgba(29, 29, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

/* Shared inner pages */
.subpage-shell {
  width: min(100%, 1512px);
  padding: 0 clamp(24px, 5vw, 72px) var(--section-space);
}

.sub-hero,
.campus-detail,
.gallery-detail {
  min-height: calc(100dvh - 64px);
  min-width: 0;
  padding-block: clamp(44px, 7vw, 96px);
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: start;
  align-content: start;
}

.campus-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campus-detail-copy {
  min-width: 0;
}

.campus-detail h1 {
  font-size: clamp(42px, 4.5vw, 64px);
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.sub-campus-grid h3 {
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.sub-hero > div > p:not(.eyebrow),
.campus-detail-copy > p.campus-intro,
.gallery-detail p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 28px;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.6;
}

.sub-hero img,
.campus-detail > img,
.gallery-detail > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: var(--shadow);
  transform: none;
}

.sub-actions {
  margin-top: 32px;
}

.subpage-card-grid,
.story-grid,
.product-showcase,
.sub-campus-grid,
.article-list {
  gap: 24px;
  margin-top: 24px;
}

.subpage-card,
.story-grid article,
.product-showcase article,
.campus-tile,
.sub-article-card,
.ik-grid article,
.pathway-intro-card,
.principal-note {
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  box-shadow: none;
}

.subpage-card,
.story-grid article {
  min-height: 260px;
  padding: 34px;
}

.subpage-card:nth-child(4n + 2),
.subpage-card:nth-child(4n + 3),
.story-grid article:nth-child(3n + 1) {
  background: var(--surface-soft);
}

.subpage-card:hover,
.story-grid article:hover,
.product-showcase article:hover,
.campus-tile:hover,
.sub-article-card:hover {
  box-shadow: 0 20px 48px rgba(22, 35, 29, 0.09);
  transform: translateY(-3px);
}

.product-showcase article,
.campus-tile,
.sub-article-card {
  overflow: hidden;
}

.product-showcase img,
.campus-tile img,
.sub-article-card > img {
  border-radius: 0;
}

.product-showcase div,
.campus-tile > :not(img),
.sub-article-card > :not(img) {
  margin-inline: 28px;
}

.research-search {
  max-width: 880px;
  margin: 0 auto 72px;
}

.research-search label {
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(22, 35, 29, 0.07);
}

.research-search input {
  border-radius: 12px;
}

.pathway-panel {
  gap: 40px;
}

.pathway-intro-card,
.pathway-section-title {
  padding: clamp(34px, 5vw, 64px);
}

.pathway-section-title {
  grid-template-columns: 1fr;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.pathway-section-title p {
  grid-column: auto;
  max-width: 760px;
}

.ik-grid {
  gap: 20px;
}

.ik-grid article {
  padding: 30px;
}

.bk-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: none;
}

.bk-table th {
  background: var(--surface-soft);
}

.bk-table td,
.bk-table th {
  border-color: var(--line);
}

.gallery-switcher {
  gap: 24px;
}

.gallery-switcher a,
.gallery-photo-wall figure {
  border-radius: var(--radius-card);
  box-shadow: none;
}

.gallery-photo-wall {
  column-gap: 24px;
}

.gallery-photo-wall figure {
  margin-bottom: 24px;
}

.contact-list div {
  border-radius: 16px;
  background: var(--surface-soft);
}

/* Articles */
.article-page {
  width: min(100%, 900px);
  padding-top: clamp(64px, 9vw, 120px);
}

.article-page h1 {
  max-width: 11em;
  font-size: clamp(48px, 6.2vw, 80px);
}

.article-cover {
  margin-top: 52px;
  border-radius: var(--radius-card);
  box-shadow: none;
}

.article-byline,
.article-meta {
  color: var(--muted);
}

.article-body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.78;
}

.article-body h2 {
  margin-top: 72px;
  font-size: clamp(32px, 4vw, 48px);
}

.article-body h3 {
  margin-top: 48px;
}

.article-body p {
  color: #454549;
}

.article-body blockquote {
  padding: 30px 34px;
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: var(--surface-soft);
}

.article-body figure img,
.article-cover {
  border-radius: var(--radius-media);
}

.article-tools,
.comment-box {
  max-width: 720px;
  margin-inline: auto;
}

.comment-box {
  padding: 30px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

/* Footer */
.site-footer {
  min-height: 180px;
  padding: 56px max(24px, calc((100vw - var(--site-max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-soft);
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.site-footer p {
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

/* Deliberate, lightweight motion for hierarchy and feedback. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.model-card,
.product-row article,
.language-cards article,
.highlight-card,
.article-grid article,
.campus-grid article,
.subpage-card,
.story-grid article,
.product-showcase article,
.campus-tile,
.sub-article-card {
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --paper: #101311;
    --cream: #171a18;
    --mint: #19221d;
    --surface: #1c201e;
    --surface-soft: #171a18;
    --surface-glass: rgba(28, 32, 30, 0.82);
    --accent: #67b88d;
    --accent-hover: #78c89e;
    --block-sky: #193744;
    --block-blue: #17394c;
    --block-green: #1d3b2b;
    --block-yellow: #4a431f;
    --block-coral: #4b2f2a;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  }

  body::before {
    background:
      radial-gradient(circle at 10% 2%, rgba(103, 184, 141, 0.08), transparent 28rem),
      radial-gradient(circle at 88% 25%, rgba(103, 184, 141, 0.05), transparent 32rem);
  }

  .site-header {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(16, 19, 17, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .top-nav,
  .visit-card label,
  .comment-box label,
  .article-body p,
  .floating-card span {
    color: #c7c7cc;
  }

  .language-toggle,
  .pill-button.light,
  input,
  select,
  textarea,
  .detail-close,
  .research-search label {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(35, 39, 37, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .floating-card {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(28, 32, 30, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 54px rgba(0, 0, 0, 0.3);
  }

  input::placeholder,
  textarea::placeholder {
    color: #9a9a9f;
  }

  .future-panel {
    background:
      radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.08), transparent 23rem),
      linear-gradient(140deg, var(--block-sky), var(--block-green));
  }

  .os-orbit {
    border-color: rgba(103, 184, 141, 0.16);
    background:
      radial-gradient(circle at center, rgba(103, 184, 141, 0.12), transparent 9rem),
      rgba(255, 255, 255, 0.025);
  }

  .os-orbit::before {
    border-color: rgba(103, 184, 141, 0.22);
  }

  .os-orbit span,
  .os-orbit span:nth-of-type(n) {
    border-color: rgba(103, 184, 141, 0.16);
    background: rgba(28, 32, 30, 0.72);
  }

  .article-body blockquote {
    color: var(--ink);
  }
}

@media (max-width: 1180px) {
  .site-header,
  html[lang^="en"] .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    padding-inline: 24px;
  }

  .top-nav,
  html[lang^="en"] .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-copy h1 {
    max-width: 9em;
  }

  .hero-stage,
  .hero-main {
    min-height: 0;
    height: min(68dvh, 680px);
  }

  .card-yellow {
    left: 24px;
  }

  .card-blue {
    right: 24px;
  }

  .future-panel,
  .visit-card {
    grid-template-columns: 1fr;
  }

  .future-copy {
    max-width: 760px;
  }

  .os-orbit {
    max-width: 650px;
    margin-inline: auto;
  }

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

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

  .feature-article {
    grid-column: span 2;
    grid-row: auto;
  }

  .sub-hero,
  .campus-detail,
  .gallery-detail {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .sub-hero > div,
  .campus-detail-copy,
  .gallery-detail > div {
    max-width: 800px;
  }
}

@media (max-width: 820px) {
  :root {
    --radius-card: 24px;
    --radius-media: 20px;
    --section-space: 64px;
  }

  body,
  .subpage-body {
    font-size: 16px;
  }

  .site-header,
  html[lang^="en"] .site-header {
    padding-inline: 18px;
  }

  .header-actions .pill-button {
    display: inline-flex;
  }

  .top-nav,
  html[lang^="en"] .top-nav {
    margin-inline: -18px;
    padding: 0 18px;
    gap: 24px;
  }

  .hero {
    padding: 54px 20px 72px;
  }

  .hero-stage,
  .hero-main {
    height: 520px;
  }

  .resource-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 40px);
  }

  .resource-strip a:nth-child(2) {
    border-right: 0;
  }

  .resource-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-pad,
  .subpage-shell {
    padding-inline: 20px;
  }

  .model,
  .intro,
  .highlights,
  .resources,
  .visit {
    width: calc(100% - 40px);
    padding-inline: 24px;
  }

  .visit {
    padding-inline: 0;
  }

  .intro-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .intro-media img {
    min-height: 0;
    height: 560px;
  }

  .model-grid,
  .product-row,
  .language-cards,
  .highlight-grid,
  .article-grid,
  .featured-campus-grid,
  .campus-grid {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: 0;
  }

  .model-card img {
    height: 360px;
  }

  .gallery-copy {
    max-width: 620px;
  }

  .gallery-rail {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 480px 260px;
  }

  .gallery-rail a:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .sub-hero img,
  .campus-detail > img,
  .gallery-detail > img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-photo-wall {
    columns: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --section-space: 52px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .site-header,
  html[lang^="en"] .site-header {
    min-height: 60px;
    padding-top: 7px;
  }

  .brand img {
    width: 96px;
  }

  html[lang^="en"] .brand img {
    width: 138px;
  }

  .language-toggle {
    min-width: 40px;
    height: 40px;
  }

  .header-actions .pill-button {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 14px;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
  }

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

  .hero-stage,
  .hero-main {
    height: 410px;
  }

  .floating-card {
    position: absolute;
    min-width: 116px;
    padding: 13px 15px;
    border-radius: 17px;
  }

  .floating-card strong {
    font-size: 30px;
  }

  .floating-card span {
    font-size: 12px;
  }

  .card-yellow {
    left: 12px;
    top: 18px;
  }

  .card-blue {
    right: 12px;
    bottom: 18px;
  }

  .resource-strip {
    grid-template-columns: 1fr;
  }

  .resource-strip a {
    min-height: 130px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resource-strip a:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .section-heading.narrow,
  #model .section-heading.narrow,
  #highlights > .section-heading,
  #campuses .section-heading {
    margin-bottom: 40px;
    text-align: left;
  }

  .section-heading p:not(.eyebrow) {
    margin-left: 0;
  }

  .intro-media img,
  .model-card img,
  .language-cards img,
  .campus-grid img {
    height: 360px;
  }

  .sub-hero img,
  .campus-detail > img,
  .gallery-detail > img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .intro-grid {
    gap: 30px;
  }

  .intro-text {
    padding-top: 0;
  }

  .intro-text dl > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .model,
  .intro,
  .resources,
  .highlights {
    width: calc(100% - 24px);
    padding: 72px 12px;
    border-radius: 30px;
  }

  .model-grid,
  .product-row,
  .language-cards,
  .highlight-grid,
  .article-grid,
  .featured-campus-grid,
  .campus-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card,
  .highlight-card.sports {
    min-height: 340px;
  }

  .feature-article {
    grid-column: auto;
  }

  .feature-article img,
  .article-grid img {
    height: 260px;
  }

  .future-panel,
  .visit-card {
    padding: 32px 24px;
    border-radius: 30px;
  }

  .future-copy h2 {
    font-size: 42px;
  }

  .os-orbit {
    min-height: 430px;
    transform: scale(0.88);
    transform-origin: center;
  }

  .gallery-rail {
    grid-template-columns: 82vw 82vw 82vw;
    grid-template-rows: 430px;
    margin-right: -20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery-rail a,
  .gallery-rail a:first-child {
    grid-column: auto;
    min-height: 430px;
    scroll-snap-align: start;
  }

  .visit {
    width: calc(100% - 24px);
  }

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

  .subpage-shell {
    padding-bottom: 72px;
  }

  .sub-hero,
  .campus-detail,
  .gallery-detail {
    padding-top: 48px;
    gap: 36px;
  }

  .subpage-card-grid,
  .story-grid,
  .product-showcase,
  .sub-campus-grid,
  .article-list,
  .gallery-switcher {
    grid-template-columns: 1fr;
  }

  .gallery-photo-wall {
    columns: 1;
  }

  .article-page h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .article-body {
    font-size: 17px;
  }

  .site-footer {
    min-height: 160px;
    padding: 44px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .hero-main,
  .model-card,
  .product-row article,
  .language-cards article,
  .highlight-card,
  .article-grid article,
  .campus-grid article,
  .subpage-card,
  .story-grid article,
  .product-showcase article,
  .campus-tile,
  .sub-article-card {
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .floating-card,
  .detail-panel,
  .detail-backdrop,
  .os-core,
  .os-orbit span {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header {
    background: var(--paper);
  }

  .floating-card,
  .detail-panel {
    background: var(--surface);
  }
}
