/* ==========================================================================
   Ansh Dhanda Tutoring — styles
   All colors, fonts and spacing are variables in :root. Change them here.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  /* Color: brand navy + teal, with soft color-blocked bands */
  --ink: #1b2036;            /* body text: 15:1 on cream */
  --navy: #1b3478;           /* brand primary */
  --navy-deep: #16224a;      /* dark bands, footer */
  --teal: #146b5f;           /* 5.9:1 on cream */
  --red: #c23a2f;            /* thin title accents only */
  --muted: #4b5168;          /* 7:1 on cream */
  --cream: #efece7;          /* page background */
  --paper: #f8f6f2;
  --blue: #cfd6e8;           /* hero / testimonials band */
  --sage: #c4dbd4;           /* cards, image panels */
  --blush: #f2d1cb;          /* call-to-action band */
  --sand: #e3dccf;
  --teal-deep: #2a5f59;     /* CTA drawing panel: complements blush, distinct from footer navy */
  --line: rgba(27, 32, 54, .18);
  --error: #a3201a;
  --focus: #e8a317;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-h3: clamp(1.45rem, 1.25rem + .8vw, 1.9rem);
  --fs-h2: clamp(2.2rem, 1.6rem + 2.6vw, 3.9rem);
  --fs-h1: clamp(2.9rem, 1.9rem + 4.6vw, 6.4rem);

  /* Space */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
  --wrap: 76rem;
  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --radius: 28px;
  --radius-sm: 14px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-base); line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 var(--s3); color: var(--ink); font-variation-settings: "opsz" 144; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin-bottom: var(--s2); font-variation-settings: "opsz" 48; }
p { margin: 0 0 var(--s2); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.skip-link { position: absolute; left: var(--s2); top: -100px; z-index: 200; background: var(--navy-deep); color: #fff; padding: var(--s1) var(--s2); border-radius: 999px; }
.skip-link:focus { top: var(--s1); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--s7) 0; }
.band--tight { padding: var(--s6) 0; }
.band--blue { background: var(--blue); }
.band--sage { background: var(--sage); }
.band--blush { background: var(--blush); }
.band--paper { background: var(--paper); }
.band--dark { background: var(--navy-deep); color: #fff; }
.band--teal { background: var(--teal-deep); color: #fff; }
.band--dark h2, .band--dark h3 { color: #fff; }
@media (max-width: 759px) { .band { padding: var(--s6) 0; } .band--tight { padding: var(--s5) 0; } }

.lede { font-size: var(--fs-lg); max-width: 34rem; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.title-rule { display: inline-block; border-bottom: 2px solid var(--red); padding-bottom: .1em; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " \2192"; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.9rem;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em;
  border-radius: 999px; border: 1.5px solid var(--ink);
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.btn--dark:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--light { background: var(--blush); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--on-dark { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn--on-dark:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 599px) { .btn-row .btn { flex: 1 1 auto; padding-left: 1.2rem; padding-right: 1.2rem; } }

/* ---------- Header + nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--header-h); }
.wordmark { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; letter-spacing: -.01em; text-decoration: none; color: var(--ink); line-height: 1; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav__links { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: currentColor; color: var(--ink); }
.nav .btn { min-height: 44px; padding: .55rem 1.3rem; font-size: .9375rem; }
.nav__phone { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
    background: none; border: 0; font: 600 .9375rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .menu-toggle__bars { width: 24px; height: 14px; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s, top .2s; }
  .menu-toggle__bars::before { top: 2px; }
  .menu-toggle__bars::after { top: 10px; }
  .menu-open .menu-toggle__bars::before { top: 6px; transform: rotate(45deg); }
  .menu-open .menu-toggle__bars::after { top: 6px; transform: rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s4);
    padding: var(--s5) var(--gutter); background: var(--cream);
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; font-family: var(--serif); font-weight: 300; font-size: 2.4rem; padding: var(--s1) 0; border: 0; }
  .nav .btn { min-height: 56px; font-size: 1.05rem; }
  .nav__phone { font-size: 1.1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Split layout (image + text) ---------- */
.split { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s6); } .split--wide-text { grid-template-columns: 7fr 5fr; } }

.panel { border-radius: var(--radius); overflow: hidden; }
.panel--sage { background: var(--sage); }
.panel--blue { background: var(--blue); }
.panel--sand { background: var(--sand); }
.panel--blush { background: var(--blush); }
.panel--paper { background: var(--paper); }
.panel--illus { padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); display: grid; place-items: center; aspect-ratio: 4 / 3; }
.panel--illus img { width: 100%; height: auto; }

/* Full-bleed color halves (Squarespace-style bands) */
.halves { display: grid; }
@media (min-width: 900px) { .halves { grid-template-columns: 1fr 1fr; } }
.halves > * { padding: var(--s7) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
@media (min-width: 900px) {
  .halves > :first-child { padding-right: var(--s6); }
  .halves > :last-child { padding-left: var(--s6); }
}
@media (max-width: 899px) { .halves > * { padding-top: var(--s6); padding-bottom: var(--s6); } }
.halves__media { display: grid; place-items: center; }
.halves__media img { width: 100%; max-width: 30rem; height: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); padding: var(--s6) 0 var(--s7); }
.hero__grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s6); } }
.hero h1 { margin-bottom: var(--s3); }
.hero__meta { font-size: var(--fs-sm); margin-top: var(--s3); color: var(--muted); }
.hero__meta span + span::before { content: "·"; margin: 0 .6em; }
.portrait { margin: 0; border-radius: 40px; overflow: hidden; background: #fff; aspect-ratio: 4 / 5; max-width: 26rem; width: 100%; justify-self: center; }
@media (min-width: 900px) { .portrait { justify-self: end; } }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (max-width: 899px) { .portrait { max-width: 22rem; aspect-ratio: 1; justify-self: start; } }

.page-hero { background: var(--blue); padding: var(--s6) 0; }
.page-hero h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 5.2rem); }
.page-hero .lede { margin-bottom: 0; }

/* ---------- Stats band ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4) var(--s3); grid-template-columns: 1fr 1fr; text-align: center; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; margin-bottom: var(--s1); }
.stats span { font-size: var(--fs-sm); opacity: .85; }

/* ---------- Two-point approach ---------- */
.points { display: grid; gap: var(--s4); margin: var(--s4) 0; }
.points h3 { margin-bottom: var(--s1); }
.points p { margin: 0; color: var(--muted); }

/* ---------- Video ---------- */
.video { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); aspect-ratio: 16 / 9; }
.video__btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; }
.video__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,40,.6), transparent 50%); }
.video__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .2s;
}
.video__play svg { width: 28px; height: 28px; margin-left: 5px; }
.video__btn:hover .video__play, .video__btn:focus-visible .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.video__label { position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); z-index: 1; color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 599px) { .video { border-radius: var(--radius-sm); } .video__play { width: 64px; height: 64px; } .video__label { left: var(--s2); right: var(--s2); bottom: var(--s2); font-size: .875rem; } }
.video-head { display: grid; gap: var(--s2) var(--s5); align-items: end; margin-bottom: var(--s4); }
@media (min-width: 900px) { .video-head { grid-template-columns: 1fr auto; } }
.video-head h2 { margin: 0; }
.video-head p { margin: 0; }

/* ---------- Subject cards ---------- */
.cards { display: grid; gap: var(--s3); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { border-radius: var(--radius); padding: var(--s4); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s; }
.card:hover { transform: translateY(-4px); color: var(--ink); }
.card img { width: 100%; height: auto; margin: 0 0 var(--s3); }
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.card .link-arrow { align-self: flex-start; font-size: var(--fs-sm); }
.ribbon { margin-top: var(--s3); border-radius: 999px; border: 1.5px solid var(--ink); padding: var(--s2) var(--s2) var(--s2) var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; justify-content: space-between; }
.ribbon p { margin: 0; font-weight: 500; }
@media (max-width: 599px) { .ribbon { border-radius: var(--radius); padding: var(--s3); } .ribbon .btn { width: 100%; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: var(--s3); margin-top: var(--s5); align-items: stretch; }
@media (min-width: 1024px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); } }
.quote {
  margin: 0; position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); padding: var(--s4);
  box-shadow: 0 1px 0 rgba(27, 32, 54, .06), 0 18px 40px -24px rgba(22, 34, 74, .35);
}
.quote__mark { font-family: var(--serif); font-weight: 400; font-size: 4.5rem; line-height: .8; height: 2.4rem; color: var(--teal); margin-bottom: var(--s1); }
.quote blockquote { margin: 0 0 var(--s4); font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem); line-height: 1.35; }
.quote figcaption { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.quote__avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--navy-deep); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.quote:nth-child(3n+2) .quote__avatar { background: var(--sage); }
.quote:nth-child(3n+3) .quote__avatar { background: var(--blush); }
.quote__who { display: flex; flex-direction: column; line-height: 1.35; }
.quote__who b { font-weight: 600; }
.quote__who span { color: var(--muted); }
.quote--sample blockquote { color: var(--muted); }
.sample-tag { position: absolute; top: var(--s3); right: var(--s3); display: inline-block; font: 700 .75rem/1 var(--sans); color: var(--error); background: #fff; border: 1px solid rgba(163, 32, 26, .35); border-radius: 999px; padding: 5px 10px; }
.quote__video { margin-bottom: var(--s2); aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: rgba(255,255,255,.4); }
.quote__video iframe, .quote__video video { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s3) var(--s5) var(--s3) 0; position: relative; font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 1.8rem/1 var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 var(--s3); max-width: 40rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Subjects page ---------- */
.subject-row + .subject-row { margin-top: var(--s6); }
@media (min-width: 900px) { .subject-row:nth-of-type(even) .panel { order: 2; } }
.pills { list-style: none; padding: 0; margin: var(--s3) 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.pills li { border: 1.5px solid var(--ink); border-radius: 999px; padding: .4rem 1rem; font-size: var(--fs-sm); font-weight: 500; }

/* ---------- About page ---------- */
.tiles { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 700px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { border-radius: var(--radius); padding: var(--s4); }
.tile h3 { margin-bottom: var(--s1); }
.tile p { margin: 0; color: var(--muted); }
.results { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s5); }
@media (min-width: 900px) { .results { grid-template-columns: repeat(3, 1fr); } }
.results strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.1; margin-bottom: var(--s2); }
.results span { opacity: .85; }
.quals { list-style: none; padding: 0; margin: var(--s4) 0; border-top: 1px solid var(--ink); }
.quals li { padding: var(--s2) 0; border-bottom: 1px solid var(--ink); font-weight: 500; }
.quals li span { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--radius); padding: var(--s4); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); font-family: var(--serif); font-size: 1.2rem; margin-bottom: var(--s3); }
.steps h3 { font-size: 1.4rem; margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Booking form ---------- */
.book { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .book { grid-template-columns: 7fr 4fr; gap: var(--s6); } .book .talk { position: sticky; top: calc(var(--header-h) + var(--s3)); } }
.form { background: var(--paper); border-radius: var(--radius); padding: var(--s4) var(--s3); }
@media (min-width: 640px) { .form { padding: var(--s5); } }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); }
.form legend { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; padding: 0; margin-bottom: var(--s2); }
.form__grid { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--error); }
.field .hint { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #8b90a3; border-radius: var(--radius-sm);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b2036' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); background-color: #fff6f5; }
.field__error { display: block; color: var(--error); font-size: var(--fs-sm); font-weight: 600; margin-top: 6px; }
.field__error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s2); align-items: start; font-size: var(--fs-sm); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy-deep); }
.check label { font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__req-note { font-size: var(--fs-sm); color: var(--muted); margin: var(--s3) 0; }
.form__status { margin: var(--s2) 0 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--error { color: var(--error); }
.form__status--ok { color: var(--teal); }
.form__summary { border: 2px solid var(--error); background: #fff; padding: var(--s2) var(--s3); margin-bottom: var(--s3); border-radius: var(--radius-sm); }
.form__summary[hidden] { display: none; }
.form__summary ul { margin: var(--s1) 0 0; padding-left: 1.2rem; }
.spinner { width: 18px; height: 18px; margin-right: .6em; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.talk { background: var(--blush); border-radius: var(--radius); padding: var(--s4); }
.talk h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); margin-bottom: var(--s2); }
.contact-list { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.contact-list li { border-top: 1px solid var(--ink); }
.contact-list li:last-child { border-bottom: 1px solid var(--ink); }
.contact-list a { display: flex; flex-direction: column; padding: var(--s2) 0; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list .sub { font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); padding: 0 var(--s1) var(--s1); }
.site-footer__box { background: var(--navy-deep); color: rgba(255,255,255,.88); border-radius: var(--radius); padding: var(--s6) 0 var(--s4); font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__name { font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; color: #fff; margin-bottom: var(--s2); }
.site-footer h2 { font: 600 var(--fs-sm)/1.4 var(--sans); color: #fff; letter-spacing: 0; margin-bottom: var(--s2); opacity: .7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__base { border-top: 1px solid rgba(255,255,255,.2); margin-top: var(--s5); padding-top: var(--s3); }

/* ---------- Mobile contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(239, 236, 231, .96); border-top: 1px solid var(--line);
    transition: transform .3s ease;
  }
  .js .mobile-bar { transform: translateY(110%); }
  .js .bar-visible .mobile-bar { transform: none; }
  .menu-open .mobile-bar { transform: translateY(110%) !important; }
  .mobile-bar a { min-height: 46px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: .9375rem; border-radius: 999px; }
  .mobile-bar__call, .mobile-bar__wa { border: 1.5px solid var(--ink); color: var(--ink); }
  .mobile-bar__cta { background: var(--navy-deep); color: #fff; }
  .mobile-bar__cta:hover { color: #fff; }
}

/* ---------- Simple pages (thanks, privacy, terms) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem); margin-top: var(--s5); margin-bottom: var(--s2); }
.prose li { margin-bottom: var(--s1); }
.todo { background: #fff3d6; border-radius: var(--radius-sm); padding: var(--s2) var(--s3); font-size: var(--fs-sm); margin: var(--s3) 0; }
.sat-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.sat-list li { padding: var(--s3) 0; border-bottom: 1px solid var(--ink); }
.sat-list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; margin-bottom: 4px; }
.sat-list span { color: var(--muted); }

/* ==========================================================================
   Phone & tablet refinements
   ========================================================================== */
@media (max-width: 899px) {
  :root { --header-h: 60px; --s7: 4rem; }
  .wordmark { font-size: 1.4rem; }
  .band { padding: 3.5rem 0; }
  .band--tight { padding: 2.75rem 0; }
  h2 { margin-bottom: var(--s2); }
  .split { gap: var(--s4); }

  /* Hero: photo first, compact */
  .hero { padding: var(--s3) 0 var(--s5); }
  .hero__grid { gap: var(--s3); }
  .hero .portrait { order: -1; max-width: 13.5rem; aspect-ratio: 1; border-radius: 28px; justify-self: start; }
  .hero h1 { margin-bottom: var(--s2); }
  .page-hero { padding: var(--s4) 0 var(--s5); }

  /* Illustration panels: shorter on phones */
  .panel--illus { aspect-ratio: auto; padding: var(--s3) var(--s4); }
  .panel--illus img { max-width: 20rem; }

  /* CTA halves: compact the drawing side */
  .halves > * { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .halves__media { padding-top: var(--s4) !important; padding-bottom: var(--s4) !important; }
  .halves__media img { max-width: 15rem; }

  /* Stats: tighter 2x2 */
  .stats { gap: var(--s4) var(--s2); }

  /* Footer: link groups in two columns */
  .site-footer__box { padding: var(--s5) 0 var(--s3); border-radius: 22px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
  .site-footer__name { font-size: 2rem; }
  .site-footer__base { margin-top: var(--s4); }
}

/* Phones: swipeable carousels for cards and testimonials */
@media (max-width: 759px) {
  .cards, .quotes {
    display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) var(--s4); scroll-padding-left: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cards::-webkit-scrollbar, .quotes::-webkit-scrollbar { display: none; }
  .cards > *, .quotes > * { flex: 0 0 82%; scroll-snap-align: start; }
  .card { padding: var(--s3); }
  .card img { max-height: 150px; object-fit: contain; }
  .card:hover { transform: none; }
  .quotes { margin-top: var(--s3); }
  .quote { padding: var(--s3); }
  .swipe-hint { display: block; font-size: var(--fs-sm); color: var(--muted); margin: var(--s1) 0 0; }
  .ribbon { margin-top: var(--s2); }
  .tiles { gap: var(--s2); margin-top: var(--s4); }
  .tile { padding: var(--s3); }
  .steps { gap: var(--s2); }
  .steps li { padding: var(--s3); display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s2); }
  .steps li::before { margin: 0; grid-row: span 2; }
  .results { gap: var(--s4); }
  .form { padding: var(--s3) var(--s2); border-radius: 22px; }
  .talk { padding: var(--s3); }
}
.swipe-hint { display: none; }

/* Tablet */
@media (min-width: 600px) and (max-width: 899px) {
  .hero__grid { grid-template-columns: 3fr 2fr; gap: var(--s4); }
  .hero .portrait { order: 0; max-width: none; aspect-ratio: 4 / 5; justify-self: stretch; }
  .split { gap: var(--s4); }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .card { padding: var(--s3); }
  .card img { max-height: 130px; object-fit: contain; }
  .ribbon { border-radius: var(--radius); padding: var(--s3); }
}

/* ==========================================================================
   Scroll animations (fade + rise, like the reference site)
   Applied by js/main.js only when JavaScript runs and the visitor has not
   asked for reduced motion.
   ========================================================================== */
.anim .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .65, .25, 1), transform .9s cubic-bezier(.2, .65, .25, 1);
  transition-delay: var(--d, 0s);
}
.anim .reveal.is-in { opacity: 1; transform: none; }
.anim .reveal--zoom { transform: scale(.96); }
.anim .reveal--zoom.is-in { transform: none; }
.anim .panel--illus.reveal img, .anim .portrait.reveal img { transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2, .65, .25, 1); }
.anim .panel--illus.reveal.is-in img, .anim .portrait.reveal.is-in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim .reveal, .anim .reveal img { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .quotes {
    display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) var(--s4); scroll-padding-left: var(--gutter); scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quotes > * { flex: 0 0 46%; scroll-snap-align: start; }
  .quotes + .swipe-hint { display: block; font-size: var(--fs-sm); color: var(--muted); }
}

/* Stat counters */
.stats strong { font-variant-numeric: tabular-nums; }
.stats .count-done { animation: count-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.stats .pop-wait { opacity: 0; transform: scale(.6); }
.stats .pop-in { animation: pop-in .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes count-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.stats strong { display: block; transform-origin: center; }

/* ---------- Much more offered (other subjects) ---------- */
.more {
  margin-top: var(--s5); padding: var(--s4); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  display: grid; gap: var(--s4); align-items: center;
}
@media (min-width: 1024px) { .more { grid-template-columns: 5fr 8fr; gap: var(--s5); padding: var(--s5); } }
.more__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--s1); font-variation-settings: "opsz" 48; }
.more__title::after { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--red); margin-top: var(--s2); }
.more__head p { margin: 0; color: var(--muted); font-size: var(--fs-sm); max-width: 26rem; }
.more__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: var(--s3) var(--s2); }
.more__grid li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.more__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--blue); color: var(--navy-deep);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.more__grid li:nth-child(4n+2) .more__icon { background: var(--sage); }
.more__grid li:nth-child(4n+3) .more__icon { background: var(--blush); }
.more__grid li:nth-child(4n+4) .more__icon { background: var(--sand); }
.more__grid li:last-child .more__icon { background: transparent; border: 1.5px dashed rgba(27, 32, 54, .4); }
.more__icon svg { width: 28px; height: 28px; }
.more__grid li:hover .more__icon { transform: translateY(-3px) rotate(-4deg); }
.more__label { font-size: .78rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
@media (max-width: 599px) {
  .more { padding: var(--s3); margin-top: var(--s4); border-radius: 22px; }
  .more__grid { grid-template-columns: repeat(4, 1fr); gap: var(--s3) 6px; }
  .more__icon { width: 50px; height: 50px; border-radius: 16px; }
  .more__icon svg { width: 25px; height: 25px; }
  .more__label { font-size: .72rem; }
}
@media (max-width: 359px) { .more__grid { grid-template-columns: repeat(3, 1fr); } }
