:root {
  --ink: #252221;
  --ink-soft: #666462;
  --paper: #ffffff;
  --cream: #f1f3ef;
  --white: #ffffff;
  --copper: #657858;
  --gold: #859875;
  --green-soft: #a1ad96;
  --line: rgba(37, 34, 33, 0.14);
  --shadow: 0 24px 70px rgba(37, 34, 33, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--gold);
  background: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
}
.header-contact {
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding: clamp(42px, 7vw, 88px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--cream);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h1 { margin-bottom: 24px; font-size: clamp(2.65rem, 5.4vw, 5.3rem); }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 3.4vw, 3.35rem); }
h3 { margin-bottom: 12px; font-size: 1.45rem; }
.hero-intro {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.23rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 10px 24px rgba(37, 34, 33, 0.18); }
.button-secondary { background: transparent; }
.trust-list { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 600; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--copper); }
.hero-visual { position: relative; min-height: 400px; display: grid; place-items: end center; }
.hero-shape { position: absolute; inset: 7% 2% 3% 10%; border-radius: 48% 52% 35% 65% / 52% 40% 60% 48%; background: var(--gold); transform: rotate(-4deg); }
.hero-visual img { position: relative; z-index: 1; width: min(68%, 285px); height: auto; object-fit: contain; mix-blend-mode: multiply; }
.image-note {
  position: absolute;
  z-index: 2;
  right: -4%;
  bottom: 9%;
  padding: 13px 16px;
  border-radius: 13px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.subjects, .about, .reviews, .contact { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.subjects { padding: 120px 0; }
.section-heading { max-width: 750px; margin-bottom: 48px; }
.section-heading > p:last-child, .about-copy > p, .contact > p { color: var(--ink-soft); }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.subject-card { min-height: 240px; padding: 34px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 13px 36px rgba(37, 34, 33, 0.06); }
.subject-card:nth-child(2) { background: var(--ink); color: var(--white); transform: translateY(18px); }
.subject-card:nth-child(2) p { color: rgba(255,255,255,0.76); }
.subject-card p { margin-bottom: 0; color: var(--ink-soft); }

.about { display: grid; grid-template-columns: 0.58fr 1fr; align-items: center; gap: clamp(42px, 8vw, 110px); padding: 80px 0 120px; }
.portrait-wrap { position: relative; width: 100%; max-width: 340px; justify-self: center; }
.portrait-wrap img { width: 100%; height: auto; border-radius: 28px; object-fit: contain; box-shadow: var(--shadow); }
.portrait-label { position: absolute; right: -28px; bottom: 26px; padding: 15px 18px; border-radius: 14px; color: var(--ink); background: var(--gold); font-size: 0.88rem; font-weight: 700; line-height: 1.35; transform: rotate(-3deg); }
.about-copy > p { font-size: 1.04rem; }
.local-note { display: grid; gap: 5px; margin-top: 28px; padding: 21px 0 0 21px; border-top: 1px solid var(--line); border-left: 4px solid var(--copper); }
.local-note span { color: var(--ink-soft); }

.reviews { padding: 100px 0; border-top: 1px solid var(--line); }
.review-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.google-rating { display: grid; justify-items: end; margin-bottom: 26px; font-size: 0.88rem; font-weight: 600; }
.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 0.1em; }
.review-stage { padding: clamp(30px, 6vw, 65px); border-radius: 28px; color: var(--white); background: var(--ink); text-align: center; }
.review-viewport { max-width: 830px; min-height: 360px; display: grid; place-items: center; margin: 0 auto; }
.review-card { margin: 0; animation: review-in 320ms ease both; }
.review-card[hidden] { display: none; }
.review-card p { margin: -24px 0 26px; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.16rem, 2.1vw, 1.62rem); line-height: 1.46; }
.review-attribution { width: auto; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 4px; margin: 0; padding: 0; border: 0; color: var(--white); font-size: 0.9rem; }
.review-attribution strong { font-size: 1rem; }
.review-attribution > span { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.7); }
.review-attribution .stars { font-size: .86rem; }
.quote-mark { color: var(--gold); font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.review-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.review-controls button { cursor: pointer; }
.review-arrow { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: var(--white); background: transparent; font-size: 1.1rem; transition: background 180ms ease, border-color 180ms ease; }
.review-arrow:hover, .review-arrow:focus-visible { border-color: var(--gold); background: rgba(255,255,255,.08); }
.review-dots { display: flex; align-items: center; gap: 8px; }
.review-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.34); transition: width 180ms ease, background 180ms ease; }
.review-dots button.active { width: 24px; border-radius: 6px; background: var(--gold); }
.review-pause { min-height: 38px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: rgba(255,255,255,.82); background: transparent; font: inherit; font-size: .78rem; font-weight: 700; }
.review-pause:hover, .review-pause:focus-visible { color: var(--white); border-color: var(--gold); }
.review-controls button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.all-reviews-link { display: inline-block; margin-top: 28px; color: var(--gold); font-weight: 700; text-underline-offset: 5px; }
@keyframes review-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.contact { margin-bottom: 90px; padding: clamp(45px, 7vw, 78px); border-radius: 30px; background: var(--gold); }
.contact > p { max-width: 670px; }
.contact .eyebrow { color: var(--ink); }
.contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 32px; }
.contact-links a { min-width: 0; display: grid; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 15px; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.contact-links a:hover { color: var(--white); background: var(--ink); }
.contact-links small { margin-bottom: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.contact-links span { overflow-wrap: anywhere; font-weight: 600; }

footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 35px 0 44px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; }
footer p { margin: 0; }
.footer-brand { color: var(--ink); }
.tutor-invite { grid-column: 1 / -1; padding-bottom: 28px; border-bottom: 1px solid var(--line); text-align: center; }
.tutor-invite p { max-width: 720px; margin: 0 auto; }
.tutor-invite a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 52px 34px 18px; }
  .hero-visual { min-height: 350px; }
  .hero-visual img { width: min(58%, 255px); }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-card { min-height: auto; }
  .subject-card:nth-child(2) { transform: none; }
  .about { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 320px; }
  .review-heading { display: block; }
  .google-rating { justify-items: start; }
  footer { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 560px) {
  .site-header { width: min(100% - 30px, 1180px); min-height: 72px; }
  .header-contact { font-size: .9rem; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { width: calc(100% - 20px); margin-top: 2px; padding: 40px 23px 8px; border-radius: 24px; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .button { width: 100%; }
  .trust-list { display: grid; }
  .hero-visual { min-height: 300px; }
  .hero-shape { inset: 10% 1% 3% 2%; }
  .hero-visual img { width: min(58%, 230px); }
  .image-note { right: -2%; bottom: 7%; font-size: .78rem; }
  .subjects, .about, .reviews, .contact { width: calc(100% - 30px); }
  .subjects { padding: 84px 0; }
  .about { padding: 30px 0 90px; }
  .portrait-wrap { width: calc(100% - 38px); max-width: 280px; }
  .portrait-label { right: -15px; }
  .reviews { padding: 76px 0; }
  .review-stage { padding: 34px 20px; }
  .review-viewport { min-height: 510px; }
  .review-card p { font-size: 1.12rem; line-height: 1.5; }
  .review-controls { gap: 10px; }
  .review-pause { width: 100%; max-width: 112px; margin-top: 4px; }
  .contact { padding: 38px 23px; }
  .contact-links { grid-template-columns: 1fr; }
  footer { width: calc(100% - 30px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .review-card { animation: none; }
}
