:root {
  --paper: #f4f1e8;
  --paper-2: #faf8f2;
  --ink: #202220;
  --muted: #626662;
  --line: #d9d6cc;
  --accent: #165c63;
  --accent-dark: #0d4a50;
  --accent-soft: #dce9e8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(33, 44, 42, .08);
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 79px;
  --sticky-height: var(--header-height);
  --anchor-gap: 40px;
  --section-space: 56px;
  --card-space: 34px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 2%, rgba(22,92,99,.05), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 232, .94);
  border-bottom: 1px solid rgba(32,34,32,.10);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  width: fit-content;
}
.brand-main {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .92rem;
}
.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .58rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.site-nav a {
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
}
.site-nav a:hover { border-color: var(--accent); }

.nav-cta {
  text-decoration: none;
  color: white;
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

.menu-button {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 11px;
  font: inherit;
}

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.credentials h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  line-height: .93;
}

.hero-lede {
  max-width: 670px;
  margin: 26px 0 28px;
  font-size: clamp(1.08rem, 1.8vw, 1.33rem);
  line-height: 1.45;
}

.credentials {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 690px;
}
.credentials h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}
.credentials p {
  margin: 10px 0 0;
  color: #343734;
}
.credentials strong { font-weight: 600; }
.credentials em { font-family: var(--serif); }

.service-line {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: .92rem;
}

.rate-teaser {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}
.rate-teaser span {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: .91rem;
  border: 1px solid var(--accent);
}
.button.primary, .form-button {
  color: white;
  background: var(--accent);
}
.button.primary:hover, .form-button:hover { background: var(--accent-dark); }
.button.secondary {
  color: var(--accent);
  background: transparent;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  gap: 24px;
  align-items: start;
}
.portrait-frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.35);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 65%;
}
.hero-note {
  min-height: 270px;
  border-left: 1px solid rgba(32,34,32,.28);
  padding: 90px 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* Anchor the visible content, accounting for each target's internal padding. */
main[id], section[id], article[id] {
  scroll-margin-top: calc(var(--sticky-height) + var(--anchor-gap) - var(--anchor-inset, 0px));
}
.hero { --anchor-inset: 72px; }
.section {
  --anchor-inset: var(--section-space);
  padding: var(--section-space) 0;
  /* A navigation destination fills the available viewport. Content can grow
     beyond this minimum; no section is clipped or given a fixed height. */
  min-height: calc(100vh - var(--sticky-height) - var(--anchor-gap) + var(--anchor-inset));
  min-height: calc(100dvh - var(--sticky-height) - var(--anchor-gap) + var(--anchor-inset));
}
.facts-section { --anchor-inset: calc(var(--section-space) + var(--card-space) + 2px); }
.fact-card[id] { --anchor-inset: var(--card-space); }
.subjects-section { padding-bottom: 72px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.subjects-section,
.process-section,
.facts-section {
  background: rgba(250,248,242,.75);
  border-top: 1px solid rgba(32,34,32,.08);
  border-bottom: 1px solid rgba(32,34,32,.08);
}

/* A clear transition uses the existing palette and divider. */
.subjects-section { border-bottom-color: var(--line); }

.section-heading {
  margin-bottom: 30px;
}
.section-heading h2,
.approach-copy h2,
.about-heading h2,
.fact-card h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.05;
}

.split-heading {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items: end;
}
.section-intro {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.subject-card {
  min-height: 345px;
  padding: 26px 22px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.20);
}
.subject-symbol {
  height: 58px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 3.1rem;
  line-height: 1;
}
.subject-symbol.language {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: .06em;
}
.subject-card h3 {
  margin: 11px 0 12px;
  font-size: 1.02rem;
}
.subject-card p {
  margin: 0;
  color: #4f534f;
  font-size: .91rem;
}
.subject-card .fine-print {
  margin-top: 14px;
  font-style: italic;
  font-size: .8rem;
}
.additional-subjects {
  margin-top: 22px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: .91rem;
}
.additional-subjects strong {
  color: var(--ink);
  margin-right: 4px;
}

.approach-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.approach-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #4b4f4b;
  font-size: 1.02rem;
}
.principles {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.principle {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(32,34,32,.08);
}
.principle-no {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.principle h3, .principle p { margin: 0; }
.principle h3 { font-size: .98rem; }
.principle p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .9rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.process-step {
  padding: 28px 34px 6px 0;
  position: relative;
}
.process-step + .process-step {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.process-step span {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.process-step h3 { margin: 20px 0 6px; }
.process-step p { margin: 0; color: var(--muted); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact-card {
  padding: var(--card-space);
  background: var(--paper-2);
}
.fact-card h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.price-row:last-of-type { border-bottom: 1px solid var(--line); }
.price-row strong { white-space: nowrap; }
.fine-print {
  color: var(--muted);
  font-size: .82rem;
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
}
.about-heading h2 {
  max-width: 720px;
}
.about-copy {
  padding-top: 28px;
}
.about-copy p {
  margin: 0 0 18px;
  color: #464a46;
  font-size: 1.02rem;
}

.contact-section {
  color: white;
  background:
    linear-gradient(120deg, rgba(13,74,80,.98), rgba(22,92,99,.95)),
    var(--accent);
}
.eyebrow.light { color: rgba(255,255,255,.7); }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2.8rem, 5vw, 5.3rem); }
.contact-copy p {
  max-width: 520px;
  color: rgba(255,255,255,.82);
}
.contact-details {
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 18px;
}

.contact-form {
  padding: 30px;
  color: var(--ink);
  background: var(--paper-2);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: .82rem;
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #b9bdb8;
  background: white;
  color: var(--ink);
  border-radius: 2px;
  font: inherit;
  padding: 11px 12px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-button {
  cursor: pointer;
  font: inherit;
}
.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .76rem;
}
.form-note a { overflow-wrap: anywhere; text-underline-offset: 2px; }
.form-honeypot { display: none; }
.form-button:disabled { cursor: wait; opacity: .7; }
.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .9rem;
  scroll-margin-top: calc(var(--sticky-height) + 24px);
}
.form-status:empty { display: none; }
.form-status[data-state="error"] {
  border-color: #8c3c2f;
  background: #f6e8e1;
  color: #703327;
}
.form-status:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-footer {
  padding: 30px 0 38px;
  background: #eeeae0;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 22px;
}
.site-footer strong {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
}
.site-footer p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; font-size: .82rem; }
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 1060px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-cta { display: none; }
  .menu-button { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    padding: 15px 20px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .site-nav.open { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    --anchor-inset: 55px;
    padding-top: 55px;
  }
  .hero-copy { max-width: 820px; }
  .hero-visual {
    width: min(690px, 100%);
    grid-template-columns: 1fr 90px;
  }

  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-card { min-height: 300px; }
  .subject-card:last-child { grid-column: 1 / -1; min-height: unset; }

  .split-heading,
  .approach-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

@media (max-width: 700px) {
  :root {
    --shell: min(100% - 28px, 1180px);
    --sticky-height: 0px;
    --anchor-gap: 24px;
    --section-space: 40px;
  }

  .site-header { position: relative; }
  .nav-wrap { min-height: 68px; }
  .brand-main { font-size: .78rem; letter-spacing: .18em; }
  .brand-sub { font-size: .51rem; letter-spacing: .12em; }

  .hero {
    min-height: unset;
    --anchor-inset: 44px;
    padding-top: 44px;
    padding-bottom: 55px;
    gap: 40px;
  }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-note {
    min-height: unset;
    border-left: 0;
    border-top: 1px solid rgba(32,34,32,.28);
    padding: 14px 0 0;
    flex-direction: row;
    gap: 18px;
  }

  .subjects-section { padding-bottom: 56px; }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-card:last-child { grid-column: auto; }
  .subject-card { min-height: unset; }

  .principles { padding-left: 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 24px 0; }
  .process-step + .process-step {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .facts-grid { grid-template-columns: 1fr; }
  /* Locations is an anchor inside the Rates section. When stacked on mobile,
     keep its content in its own viewport before the following fact cards. */
  #locations {
    min-height: calc(100vh - var(--anchor-gap) + var(--card-space));
    min-height: calc(100dvh - var(--anchor-gap) + var(--card-space));
  }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }

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