:root {
  --paper: #f3eee6;
  --paper-deep: #e7e0d4;
  --card: #fffbf6;
  --ink: #1a2e28;
  --ink-soft: #3d524a;
  --muted: #5c6d65;
  --line: rgba(26, 46, 40, 0.12);
  --terra: #c65a32;
  --terra-deep: #9a3f1e;
  --sand: #f0c9a0;
  --sand-deep: #e4b583;
  --sage: #d7e6db;
  --sage-deep: #b7d0c2;
  --pine: #234238;
  --pine-deep: #163029;
  --cream: #f7f3ec;
  --shadow: 0 18px 50px rgba(26, 46, 40, 0.08);
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --radius: 28px;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(240, 201, 160, 0.45), transparent 60%),
    radial-gradient(800px 480px at 110% 8%, rgba(215, 230, 219, 0.7), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--terra-deep);
}

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

::selection {
  background: #f0c9a0;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
}

.skip:focus {
  top: 12px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 16px 0;
}

.site-header.is-stuck .nav-shell {
  box-shadow: 0 12px 40px rgba(26, 46, 40, 0.12);
}

.nav-shell {
  width: min(var(--wrap), calc(100% - 8px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 8px 8px 18px;
  background: rgba(255, 251, 246, 0.84);
  border: 1px solid rgba(26, 46, 40, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(26, 46, 40, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(26, 46, 40, 0.05);
}

.nav a.btn-small,
.nav a.btn-small:hover {
  background: var(--pine);
  color: #fffaf6;
}

.nav a.btn-small:hover {
  background: var(--pine-deep);
}

.nav a.is-active {
  color: var(--ink);
  background: var(--sage);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--pine);
  position: relative;
  cursor: pointer;
}

.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  position: absolute;
  left: 15px;
}

.nav-toggle .burger {
  top: 22px;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  left: 0;
}

.nav-toggle .burger::before {
  top: -6px;
}

.nav-toggle .burger::after {
  top: 6px;
}

.nav-shell.is-open .nav-toggle .burger {
  background: transparent;
}

.nav-shell.is-open .nav-toggle .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-shell.is-open .nav-toggle .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--terra);
  color: #fffaf6;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--terra-deep);
  color: white;
}

.btn-small {
  padding: 10px 16px;
  background: var(--pine);
}

.btn-small:hover {
  background: var(--pine-deep);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  padding-inline: 8px;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--terra-deep);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 46, 40, 0.28);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero {
  padding: 54px 0 20px;
  text-align: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--sage);
  color: var(--pine-deep);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

.announce:hover {
  color: var(--pine-deep);
  background: var(--sage-deep);
}

.announce i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
}

h1,
h2,
h3,
.stat strong {
  font-family: var(--sans);
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-weight: 600;
  margin: 0;
}

.hero h1 {
  margin: 28px auto 0;
  max-width: 11ch;
  font-size: clamp(3.3rem, 8vw, 6.5rem);
}

.hero h1 em,
.page-hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  letter-spacing: -0.03em;
  background: var(--sand);
  padding: 0 0.14em 0.02em;
  border-radius: 0.16em;
}

.lede {
  max-width: 40rem;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stage {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
}

.face-row {
  display: flex;
  padding-left: 18px;
}

.face-row .portrait {
  width: 92px;
  height: 92px;
  margin-left: -18px;
  border: 4px solid var(--paper);
  box-shadow: var(--shadow);
}

.hero-note {
  width: min(280px, 100%);
  text-align: left;
  background: var(--pine);
  color: var(--cream);
  border-radius: 24px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}

.hero-note p {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-note span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.marquee {
  margin-top: 42px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 42s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.marquee-track span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 28px;
  border-radius: 50%;
  background: var(--terra);
  transform: translateY(-1px);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 28px auto 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 28px 24px 26px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--pine);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-deep);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p,
.quiet {
  color: var(--muted);
  margin: 0;
  max-width: 36rem;
}

.pathways {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.pathway {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 26px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease;
}

.pathway:hover {
  transform: translateY(-4px);
}

a.pathway:first-child:hover {
  color: var(--cream);
}

a.pathway:nth-child(2):hover,
a.pathway:nth-child(3):hover {
  color: var(--ink);
}

.pathway:first-child {
  background: var(--pine);
  color: var(--cream);
}

.pathway:nth-child(2) {
  background: var(--sand);
  color: var(--ink);
}

.pathway:nth-child(3) {
  background: var(--card);
  border-color: var(--line);
}

.pathway .index {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.pathway h3 {
  margin-top: 28px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 10ch;
}

.pathway p {
  margin: 14px 0 0;
  max-width: 28ch;
}

.pathway .more {
  margin-top: auto;
  padding-top: 28px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--pine);
  color: white;
  border-color: var(--pine);
}

.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 2px 18px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.result {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.result strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pine);
}

.result span {
  display: block;
  margin-top: 8px;
  color: var(--terra-deep);
  font-weight: 650;
  font-size: 0.92rem;
}

.result p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.subject {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.subject:hover h3 {
  color: var(--terra-deep);
}

.subject p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
}

.subject h3 {
  font-size: 1.35rem;
}

.arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-deep);
  grid-row: 1 / span 2;
}

.subject:hover .arrow {
  background: var(--terra);
  color: white;
}

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

.tutor-grid:has(.tutor-card:only-child) {
  grid-template-columns: minmax(0, 360px);
}

.tutor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.tutor-card:hover {
  color: inherit;
  transform: translateY(-3px);
}

.tutor-card .portrait {
  border-radius: 0;
  aspect-ratio: 5 / 4;
}

.tutor-card div {
  padding: 18px 18px 20px;
}

.tutor-card h3 {
  font-size: 1.45rem;
}

.tutor-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.quotes {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
}

.quote-intro {
  background: var(--sage);
  border-radius: 30px;
  padding: 32px;
}

.quote-list {
  display: grid;
  gap: 14px;
}

blockquote {
  margin: 0;
  background: var(--card);
  border-radius: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
}

blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

blockquote footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.campus {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  background: var(--pine-deep);
  color: var(--cream);
  border-radius: 34px;
  overflow: hidden;
}

.campus-copy,
.campus-panel {
  padding: 40px;
}

.campus h2 {
  color: white;
  max-width: 12ch;
}

.campus p {
  color: rgba(247, 243, 236, 0.78);
  max-width: 38ch;
}

.campus address {
  font-style: normal;
  margin-top: 22px;
  font-size: 1.15rem;
}

.campus-panel {
  background: rgba(255, 251, 246, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(247, 243, 236, 0.14);
}

.cta-band {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(240, 201, 160, 0.35), transparent 50%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 64px 24px;
}

.cta-band h2 {
  margin-inline: auto;
  max-width: 14ch;
}

.cta-band p {
  margin: 16px auto 0;
  max-width: 38rem;
  color: var(--muted);
}

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

.site-footer {
  padding: 28px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 32px;
  background: var(--pine);
  color: var(--cream);
  border-radius: 32px;
}

.footer-grid a {
  text-decoration: none;
  color: rgba(247, 243, 236, 0.82);
}

.footer-grid a:hover {
  color: white;
}

.footer-grid h2 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-brand p,
.fine {
  color: rgba(247, 243, 236, 0.72);
}

.fine {
  margin: 18px 8px 0;
  font-size: 0.88rem;
}

.page-hero {
  padding: 64px 0 10px;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 12ch;
}

.page-hero .lede {
  margin-left: 0;
}

.note {
  margin-top: 18px;
  color: var(--ink-soft);
  background: rgba(240, 201, 160, 0.45);
  display: inline-block;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.story p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.values {
  display: grid;
  gap: 12px;
}

.value {
  background: var(--card);
  border-radius: 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
}

.value strong {
  display: block;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.value span {
  color: var(--muted);
}

.tutor {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.tutor:nth-child(even) {
  grid-template-columns: 1fr 230px;
}

.tutor:nth-child(even) .portrait {
  order: 2;
}

.tutor h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  max-width: none;
}

.tutor .role {
  margin: 8px 0 0;
  color: var(--terra-deep);
  font-weight: 650;
}

.tutor .bio {
  margin: 12px 0 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.chips li {
  background: var(--sage);
  color: var(--pine-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg, var(--sage));
}

.portrait.is-round {
  aspect-ratio: 1;
  border-radius: 50%;
}

img.portrait {
  object-fit: cover;
  object-position: center 18%;
}

.portrait .shoulder,
.portrait .neck,
.portrait .head,
.portrait .hair {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.portrait .shoulder {
  bottom: -12%;
  width: 86%;
  height: 46%;
  background: var(--cloth);
  border-radius: 50% 50% 12% 12%;
}

.portrait .neck {
  top: 52%;
  width: 18%;
  height: 16%;
  background: var(--skin);
  z-index: 1;
}

.portrait .head {
  top: 24%;
  width: 42%;
  height: 34%;
  background: var(--skin);
  border-radius: 50%;
  z-index: 2;
}

.portrait .hair {
  z-index: 1;
  top: 16%;
  width: 56%;
  height: 32%;
  background: var(--hair);
  border-radius: 46% 46% 30% 30%;
}

.hair-long .hair {
  top: 12%;
  width: 66%;
  height: 78%;
  border-radius: 42% 42% 16% 16%;
}

.hair-short .hair {
  top: 17%;
  height: 22%;
  width: 52%;
  border-radius: 50% 50% 18% 18%;
}

.hair-bun::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hair);
  top: 11%;
  left: 60%;
}

.tone-maya { --bg: #e7d7c4; --skin: #e7b892; --hair: #2a211c; --cloth: #234238; }
.tone-jonah { --bg: #d5e3d8; --skin: #8d5a3c; --hair: #1a120e; --cloth: #c65a32; }
.tone-priya { --bg: #f0c9a0; --skin: #c98a62; --hair: #1c140f; --cloth: #1a2e28; }
.tone-leo { --bg: #d9e2ea; --skin: #f0c7a8; --hair: #6b4a32; --cloth: #3e5c74; }
.tone-hannah { --bg: #eadfef; --skin: #f2cdb4; --hair: #a8642c; --cloth: #6e3a4a; }
.tone-samir { --bg: #e4e7d4; --skin: #c48a5a; --hair: #241c16; --cloth: #2f4a3e; }

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
}

.filters button.is-on {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: min(280px, 100%);
}

.search input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
}

.summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
}

.class-block {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 12px 32px;
  padding: 26px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  scroll-margin-top: 110px;
}

.class-block header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.class-block h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 16ch;
  margin-top: 6px;
}

.class-block.is-coming-soon {
  background: linear-gradient(135deg, rgba(240, 201, 160, 0.2), rgba(215, 230, 219, 0.28));
  border-style: dashed;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
}

.class-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.class-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.class-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.class-meta dt {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.class-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.class-overview {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.class-details .chips {
  margin-top: 2px;
}

.tutor-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 650;
}

.empty {
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px dashed var(--line);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.map-frame {
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sage);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
}

.panel + .panel {
  margin-top: 16px;
}

.panel h2 {
  font-size: 1.8rem;
  max-width: none;
}

.panel .hours li {
  border-top-color: var(--line);
}

#enquire {
  scroll-margin-top: 96px;
}

.panel address {
  font-style: normal;
  font-size: 1.15rem;
  margin: 10px 0;
}

.detail-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.detail-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.detail-list strong {
  display: block;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--terra);
  background: white;
}

.form .btn {
  justify-self: start;
}

.form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-error {
  margin: 0;
  color: var(--terra-deep);
  font-weight: 600;
}

.success {
  background: var(--sage);
  border-radius: 20px;
  padding: 20px;
}

.success h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 2rem;
}

.success p {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .stats,
  .pathways,
  .tutor-grid,
  .quotes,
  .campus,
  .footer-grid,
  .split,
  .location-grid,
  .class-block {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
  }

  .subjects {
    grid-template-columns: 1fr;
  }

  .tutor,
  .tutor:nth-child(even) {
    grid-template-columns: 180px 1fr;
  }

  .tutor:nth-child(even) .portrait {
    order: 0;
  }

  .hero-stage {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-shell {
    padding: 4px 4px 4px 6px;
    gap: 10px;
  }

  .mark {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    display: inline-block;
    width: 40px;
    height: 40px;
  }

  .nav-toggle .burger,
  .nav-toggle .burger::before,
  .nav-toggle .burger::after {
    width: 14px;
  }

  .nav-toggle .burger {
    left: 13px;
    top: 19px;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 8px 12px;
  }

  .nav-shell.is-open {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav-shell.is-open .nav {
    display: flex;
  }

  .nav .btn-small {
    text-align: center;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .section-head,
  .rail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tutor,
  .tutor:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .portrait.is-card {
    max-width: 220px;
  }

  .class-meta {
    grid-template-columns: 1fr;
  }

  .campus-copy,
  .campus-panel,
  .class-block,
  .panel {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wrap,
  .wrap-narrow {
    width: min(var(--wrap), calc(100% - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .pathway,
  .tutor-card,
  .btn { transition: none; }
}
