:root {
  --paper: #f5f1e8;
  --paper-deep: #eae3d5;
  --ink: #17201d;
  --muted: #626963;
  --line: rgba(23, 32, 29, 0.16);
  --accent: #ef5b3f;
  --accent-dark: #c43d26;
  --forest: #163f35;
  --white: #fffdf8;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --shadow: 0 22px 70px rgba(27, 35, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 4vw;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}
.site-header.scrolled { border-color: var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:not(.nav-cta):hover { color: var(--accent-dark); }
.nav-cta {
  padding: 0.68rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: 160ms ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-button { display: none; }

.section-shell {
  width: min(1180px, calc(100% - 8vw));
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding-block: clamp(5rem, 10vw, 9rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
h1 { margin-bottom: 1.6rem; font-size: clamp(4rem, 8.7vw, 8.2rem); }
h1 em { color: var(--accent); font-weight: 400; }
h2 { margin-bottom: 1.4rem; font-size: clamp(2.75rem, 5.2vw, 5.1rem); }
h3 { margin-bottom: 0.65rem; font-size: 1.2rem; line-height: 1.2; }
.hero-lede {
  max-width: 670px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--forest); }
.button-secondary:hover { background: var(--paper-deep); }
.button-full { width: 100%; }

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 1.4rem;
  border-radius: 30px;
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow);
}
.hero-card::before {
  position: absolute;
  inset: 18% -20% auto auto;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
  content: "";
}
.hero-card-top { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: #a5e17e; box-shadow: 0 0 0 5px rgba(165,225,126,.12); }
.hero-monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -57%);
  font-family: var(--serif);
  font-size: clamp(7rem, 15vw, 12rem);
  line-height: 1;
  letter-spacing: -0.09em;
}
.hero-card-details {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.hero-card-details div { padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,.25); }
.hero-card-details span, .hero-card-details strong { display: block; }
.hero-card-details span { margin-bottom: 0.25rem; color: rgba(255,255,255,.65); font-size: 0.72rem; }
.hero-card-details strong { font-size: 0.9rem; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.proof-strip div { padding: 1.5rem 2vw; text-align: center; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.proof-strip div + div { border-left: 1px solid var(--line); }

.tutoring-section, .process-section, .world-section, .about-section, .faq-section { padding-block: clamp(6rem, 11vw, 10rem); }
.section-heading { max-width: 850px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading > p:last-child { max-width: 690px; color: var(--muted); font-size: 1.1rem; }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.subject-card {
  min-height: 300px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.subject-card:nth-child(3n) { border-right: 0; }
.subject-card:nth-child(n+4) { border-bottom: 0; }
.subject-card p { color: var(--muted); }
.subject-number { display: block; margin-bottom: 4rem; color: var(--accent-dark); font-size: .78rem; font-weight: 700; }
.subject-card-accent { display: flex; flex-direction: column; background: var(--accent); color: var(--ink); }
.subject-card-accent .eyebrow, .subject-card-accent p { color: var(--ink); }
.subject-card-accent a { margin-top: auto; font-weight: 700; text-decoration: none; }

.experience-section { padding-block: clamp(6rem, 10vw, 9rem); background: var(--ink); color: var(--paper); }
.experience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; }
.experience-section .eyebrow { color: #ff9b86; }
.experience-list { border-top: 1px solid rgba(255,255,255,.18); }
.experience-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding-block: 2rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.experience-item > span { color: #ff9b86; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.experience-item p { margin: 0; color: rgba(255,255,255,.65); }

.process-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { display: grid; grid-template-columns: .3fr 1fr; gap: 2rem; padding: 2.3rem 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--accent-dark); font-family: var(--serif); font-size: 2rem; }
.process-list p { margin-bottom: 0; color: var(--muted); }

.booking-section { padding-block: clamp(5rem, 9vw, 8rem); background: var(--paper-deep); }
.booking-grid { display: grid; grid-template-columns: 1.1fr .7fr; gap: 8vw; align-items: center; }
.booking-copy > p:not(.eyebrow) { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.check-list li::before { margin-right: .5rem; color: var(--accent-dark); content: "✓"; }
.price-card { padding: clamp(1.6rem, 4vw, 2.7rem); border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.price-card > p { margin-bottom: .2rem; color: var(--muted); }
.price { margin: 1.5rem 0 0; font-family: var(--serif); font-size: clamp(5.5rem, 10vw, 8rem); line-height: .8; letter-spacing: -.07em; }
.price span { vertical-align: top; font-size: .3em; }
.price-card .button { margin: 2rem 0 1rem; }
.price-card small { display: block; color: var(--muted); line-height: 1.45; }

.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.world-card { min-height: 340px; padding: 2rem; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.22); }
.world-card > span { display: inline-block; margin-bottom: 7rem; color: var(--accent-dark); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.world-card p { color: var(--muted); }
.world-card small { display: inline-block; margin-top: 1rem; padding: .4rem .65rem; border-radius: 999px; background: var(--paper-deep); font-weight: 600; }

.about-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; align-items: center; }
.about-mark { display: grid; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--accent); font-family: var(--serif); font-size: clamp(5rem, 13vw, 11rem); letter-spacing: -.08em; }
.about-copy p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.08rem; }

.faq-section { padding-top: 2rem; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 1.6rem 3rem 1.6rem 0; cursor: pointer; font-size: 1.08rem; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: .5rem; content: "+"; font-size: 1.5rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { max-width: 760px; padding: 0 0 1.6rem; color: var(--muted); }

.final-cta { padding-block: clamp(7rem, 12vw, 12rem); text-align: center; }
.final-cta h2 { max-width: 900px; margin-inline: auto; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 3rem; padding: 3rem 4vw; border-top: 1px solid var(--line); }
.site-footer > div:first-child { display: flex; flex-direction: column; }
.site-footer span, .site-footer small { color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-weight: 600; text-decoration: none; }
.site-footer small { grid-column: 1 / -1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 900px) {
  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: .5rem;
    border: 0;
    background: transparent;
  }
  .menu-button span:not(.sr-only) { width: 24px; height: 2px; background: var(--ink); transition: transform 160ms ease; }
  .menu-button[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 4vw 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; font-size: 1.05rem; }
  .nav-cta { margin-top: .5rem; text-align: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { min-height: 440px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .proof-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .subject-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .subject-card:nth-child(2n) { border-right: 0; }
  .subject-card:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .subject-card:nth-child(n+5) { border-bottom: 0; }
  .experience-grid, .booking-grid, .about-section { grid-template-columns: 1fr; }
  .world-grid { grid-template-columns: 1fr; }
  .world-card { min-height: 250px; }
  .world-card > span { margin-bottom: 4rem; }
  .about-mark { width: min(430px, 85vw); }
}

@media (max-width: 600px) {
  .section-shell { width: min(100% - 2.5rem, 1180px); }
  .site-header { padding-inline: 1.25rem; }
  h1 { font-size: clamp(3.7rem, 18vw, 5.3rem); }
  h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero { gap: 3rem; padding-block: 4.5rem 5rem; }
  .hero-card { min-height: 400px; border-radius: 22px; }
  .hero-card-details { grid-template-columns: 1fr 1fr; }
  .hero-card-details div:last-child { grid-column: 1 / -1; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .proof-strip div:nth-child(3) { border-top: 1px solid var(--line); }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-card { min-height: 260px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .subject-card:last-child { border-bottom: 0 !important; }
  .experience-item { grid-template-columns: 1fr; gap: .6rem; }
  .process-list li { grid-template-columns: 52px 1fr; gap: 1rem; }
  .check-list { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer small { grid-column: auto; }
  .footer-links { flex-direction: column; gap: .7rem; }
}
