:root {
    --pine: #29342A;
    --pine-soft: #3E4E3E;
    --sage: #7C8C71;
    --sage-pale: #DDE3D4;
    --ivory: #F6F2E9;
    --ivory-deep: #EDE6D6;
    --gold: #8F5A10;
    --sun: #F7AA48;
    --ink: #2B2A26;
    --ink-soft: #57554D;
    --line: rgba(43, 42, 38, 0.14);
    --font-head: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ivory: #21261F;
      --ivory-deep: #262B22;
      --ink: #EDEAE0;
      --ink-soft: #C7C4B8;
      --line: rgba(237, 234, 224, 0.16);
      --sage-pale: #333B2D;
      --pine: #D5E0CC;
      --pine-soft: #BCCBB1;
      --gold: #E9A650;
    }
  }
  :root[data-theme="dark"] {
    --ivory: #21261F;
    --ivory-deep: #262B22;
    --ink: #EDEAE0;
    --ink-soft: #C7C4B8;
    --line: rgba(237, 234, 224, 0.16);
    --sage-pale: #333B2D;
    --pine: #D5E0CC;
    --pine-soft: #BCCBB1;
    --gold: #E9A650;
  }

  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
  }
  body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--pine);
    line-height: 1.18;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
  }
  a { color: var(--pine); }
  img { max-width: 100%; display: block; }

  .wrap {
    max-width: 760px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
  }

  /* ---- Header ---- */
  header {
    position: sticky;
    top: 0;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .brand {
    display: block;
    line-height: 0;
    text-decoration: none;
  }
  .brand svg { height: 56px; width: auto; display: block; }
  .brand .logo-sun { fill: var(--sun); }
  .brand .logo-text { fill: var(--pine); font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif; }
  @media (max-width: 480px) { .brand svg { height: 42px; } }
  .call-link {
    font-size: 15px;
    color: var(--pine);
    text-decoration: none;
    border: 1px solid var(--pine);
    border-radius: 999px;
    padding: 8px 18px;
    white-space: nowrap;
    font-family: var(--font-body);
  }
  .call-link:hover { background: var(--pine); color: var(--ivory); }


  /* ---- Navigation ---- */
  .header-inner { max-width: 1044px; }
  .site-nav { display: flex; gap: 22px; align-items: center; }
  .site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
  }
  .site-nav a:hover { color: var(--pine); border-bottom-color: var(--gold); }
  .site-nav .nav-phone { display: none; }
  .header-actions { display: flex; align-items: center; gap: 10px; }
  .menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
  }
  @media (max-width: 960px) {
    .menu-toggle { display: inline-block; }
    .site-nav {
      display: none;
      position: absolute;
      left: 0; right: 0; top: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: var(--ivory);
      border-bottom: 1px solid var(--line);
      padding: 8px 28px 16px;
      box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
    .site-nav a:last-child { border-bottom: none; }
  }
  @media (max-width: 560px) {
    .header-actions .call-link { display: none; }
    .site-nav .nav-phone { display: block; color: var(--pine); font-weight: 600; }
  }

  /* ---- Hero ---- */
  .hero {
    padding-top: 76px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
  }
  .hero p.eyebrow {
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 600;
  }
  .hero h1 {
    font-size: clamp(32px, 5vw, 44px);
    max-width: 16ch;
  }
  .hero .lede {
    margin-top: 22px;
    max-width: 46ch;
    font-size: 19px;
    color: var(--ink-soft);
  }

  .hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
    color: var(--pine);
    font-weight: 500;
    font-size: 17px;
  }
  .hero-note .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }

  /* ---- Section rhythm ---- */
  section { padding-top: 68px; padding-bottom: 68px; border-bottom: 1px solid var(--line); }
  section:last-of-type { border-bottom: none; }
  .kicker {
    color: var(--gold);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
  }
  section h2 { font-size: clamp(24px, 3.4vw, 30px); max-width: 22ch; }
  section .lead { color: var(--ink-soft); max-width: 58ch; margin-top: 14px; }

  /* ---- Specialty groups ---- */
  .specialty-groups {
    margin-top: 32px;
    display: grid;
    gap: 28px;
  }
  .specialty-group h3 {
    font-size: 17px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--ink);
    margin-bottom: 10px;
  }
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }
  .tags span {
    background: var(--sage-pale);
    color: var(--pine);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 16px;
  }

  /* ---- Services list ---- */
  .services {
    margin-top: 32px;
    display: grid;
    gap: 0;
  }
  .service {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .service:last-child { border-bottom: 1px solid var(--line); }
  .service h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 20px;
    margin: 0;
  }
  .service p { margin: 4px 0 0; color: var(--ink-soft); max-width: 60ch; }

  /* ---- Benefits ---- */
  .benefits {
    margin-top: 30px;
    display: grid;
    gap: 16px;
    padding: 0;
  }
  .benefits li {
    list-style: none;
    padding-left: 26px;
    position: relative;
    color: var(--ink-soft);
  }
  .benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
  }

  /* ---- Quote ---- */
  .quote {
    background: var(--ivory-deep);
    padding-top: 84px;
    padding-bottom: 84px;
  }
  .quote blockquote {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 500;
    font-style: normal;
    font-size: clamp(22px, 3.2vw, 28px);
    color: var(--pine);
    max-width: 22ch;
  }

  /* ---- Team ---- */
  .team-lead {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 176px 1fr;
    gap: 30px;
    align-items: start;
  }
  .team-lead img {
    width: 176px;
    height: 220px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
  }
  .team-lead h3 {
    font-family: var(--font-head);
    font-size: 21px;
    margin: 0 0 2px;
  }
  .team-lead .credentials {
    color: var(--gold);
    font-size: 14.5px;
    margin: 0 0 10px;
  }
  .team-lead p.bio { color: var(--ink-soft); margin: 0; max-width: 60ch; }

  .team-grid {
    margin-top: 40px;
    display: grid;
    gap: 32px;
  }
  .team-card { display: grid; grid-template-columns: 136px 1fr; gap: 28px; align-items: start; }
  .avatar {
    width: 136px;
    height: 170px;
    border-radius: 12px;
    object-fit: cover;
  }
  .avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sage-pale);
    color: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
  }
  .team-card h3 {
    font-family: var(--font-head);
    font-size: 18px;
    margin: 0 0 2px;
  }
  .team-card .credentials {
    color: var(--gold);
    font-size: 14px;
    margin: 0 0 8px;
  }
  .team-card p.bio { color: var(--ink-soft); margin: 0; font-size: 15.5px; }

  /* ---- Contact form ---- */
  .contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 24px;
  }
  .contact-item .icon {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    color: var(--gold);
  }
  .contact-item div { color: var(--ink-soft); }
  .contact-item a { color: var(--pine); font-weight: 500; text-decoration: none; }
  .contact-item a:hover { text-decoration: underline; }

  form.contact-form {
    margin-top: 32px;
    display: grid;
    gap: 16px;
    max-width: 480px;
  }
  form.contact-form label {
    font-size: 14.5px;
    color: var(--ink-soft);
    display: block;
    margin-bottom: 6px;
  }
  form.contact-form input,
  form.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--ivory-deep);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
  }
  form.contact-form textarea { min-height: 120px; resize: vertical; }
  form.contact-form button {
    justify-self: start;
    background: var(--pine);
    color: var(--ivory);
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
  }
  form.contact-form button:hover { background: var(--pine-soft); }
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }


  /* ---- Photos ---- */
  .photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    background: var(--ivory-deep);
  }
  .hero-image {
    width: min(1044px, calc(100vw - 56px));
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 48px;
    aspect-ratio: 2 / 1;
  }
  .hero-photo {
    margin-top: 44px;
    aspect-ratio: 3 / 2;
  }
  .focus-image {
    margin-top: 28px;
    aspect-ratio: 16 / 9;
  }
  .focus-image + .lead { margin-top: 24px; }
  section .lead.closing-line { color: var(--pine); font-weight: 600; }
  .split {
    display: grid;
    gap: 32px;
    align-items: center;
  }
  .split .photo { aspect-ratio: 4 / 5; max-height: 460px; }
  @media (min-width: 640px) {
    .split.split--reverse { grid-template-columns: 7fr 5fr; }
    .split--reverse .photo { order: 2; }
    .split { grid-template-columns: 5fr 7fr; gap: 40px; }
    .split .photo { max-height: none; }
  }
  @media (max-width: 639px) {
    .hero-image { aspect-ratio: 3 / 2; }
    .split .photo { aspect-ratio: 4 / 3; object-position: center 20%; }
  }

  /* ---- Book feature ---- */
  .book-card {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    align-items: center;
    background: var(--ivory-deep);
    border-radius: 12px;
    padding: 28px;
  }
  .book-cover {
    width: 150px;
    aspect-ratio: 2 / 3;
    border-radius: 3px 6px 6px 3px;
    box-shadow: 0 10px 24px rgba(20, 24, 34, 0.28), inset 3px 0 0 rgba(255,255,255,0.08);
    object-fit: cover;
  }
  .book-cover--placeholder {
    background: linear-gradient(160deg, #1E2638 0%, #141A28 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 14px 14px;
    text-align: center;
  }
  .book-cover-title {
    font-family: var(--font-head);
    color: #E9B35F;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
  }
  .book-cover-author {
    color: #E9D7B4;
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
  .book-status {
    color: var(--gold);
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 6px;
  }
  .book-title {
    font-size: 22px;
    margin: 0 0 4px;
  }
  .book-subtitle {
    color: var(--ink-soft);
    font-style: italic;
    margin: 0 0 12px;
    font-size: 16px;
  }
  .book-blurb { color: var(--ink-soft); margin: 0 0 14px; font-size: 16px; }
  .book-link {
    color: var(--pine);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
  }
  .book-link:hover { color: var(--gold); }
  @media (max-width: 520px) {
    .book-card { grid-template-columns: 1fr; justify-items: start; padding: 24px; }
  }

  /* ---- Video ---- */
  .video-wrap {
    margin-top: 32px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ivory-deep);
  }
  .video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

  /* ---- Read more ---- */
  .bio-more { margin-top: 10px; }
  .bio-more summary {
    cursor: pointer;
    color: var(--pine);
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .bio-more summary::-webkit-details-marker { display: none; }
  .bio-more summary::after { content: "+"; color: var(--gold); font-size: 18px; line-height: 1; }
  .bio-more[open] summary::after { content: "\2212"; }
  .bio-more[open] summary { margin-bottom: 8px; }
  .bio-more p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 10px; }

  /* ---- FAQ ---- */
  .faq { margin-top: 28px; border-top: 1px solid var(--line); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 36px 18px 0;
    position: relative;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 18px;
    color: var(--pine);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+";
    position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 24px; font-weight: 400;
  }
  .faq details[open] summary::after { content: "\2212"; }
  .faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }
  .lead a, .faq a { color: var(--pine); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }

  /* ---- Crisis note ---- */
  .crisis-note {
    margin-top: 32px;
    max-width: 560px;
    border-left: 3px solid var(--gold);
    background: var(--ivory-deep);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    font-size: 15.5px;
    color: var(--ink-soft);
  }
  .crisis-note strong { color: var(--pine); display: block; margin-bottom: 4px; font-size: 16px; }
  .crisis-note a { color: var(--pine); font-weight: 600; }

  .form-note { margin: 28px 0 0; max-width: 480px; font-size: 15px; color: var(--ink-soft); }
  .form-note + .contact-form { margin-top: 16px; }

  /* ---- Article ---- */
  .section-more { margin-top: 18px; }
  .article {
    margin-top: 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ivory);
  }
  .article summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 24px;
    display: grid;
    gap: 6px;
  }
  .article summary::-webkit-details-marker { display: none; }
  .article-label { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
  .article-title { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--pine); line-height: 1.3; }
  .article-toggle { color: var(--pine); font-weight: 600; font-size: 15px; margin-top: 4px; }
  .article-toggle::after { content: " +"; color: var(--gold); }
  .article[open] .article-toggle { font-size: 0; }
  .article[open] .article-toggle::after { content: "Close article \2212"; font-size: 15px; color: var(--pine); }
  .article-body { padding: 0 24px 24px; }
  .article-body p { color: var(--ink-soft); max-width: 62ch; }
  .article-byline { font-style: italic; margin-top: 0; }
  .article-body h3 { font-size: 19px; margin: 28px 0 8px; }
  .article-body h4 { font-family: var(--font-head); font-size: 16.5px; color: var(--pine); margin: 20px 0 4px; }

  footer {
    padding-top: 32px;
    padding-bottom: 48px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
  }
  footer a { color: var(--ink-soft); }

  @media (min-width: 640px) {
    .specialty-groups { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px) {
    .team-lead, .team-card { grid-template-columns: 1fr; gap: 14px; }
    .team-lead img { width: 160px; height: 200px; }
    .avatar { width: 144px; height: 180px; }
  }

  /* ---- Added for multi-page site ---- */
  .page-links { margin-top: 32px; display: grid; gap: 0; }
  .page-link {
    display: block; padding: 22px 0; border-top: 1px solid var(--line);
    text-decoration: none; color: inherit;
  }
  .page-link:last-child { border-bottom: 1px solid var(--line); }
  .page-link h3 { font-size: 20px; margin: 0; }
  .page-link h3::after { content: " \2192"; color: var(--gold); }
  .page-link:hover h3 { color: var(--gold); }
  .page-link p { margin: 4px 0 0; color: var(--ink-soft); max-width: 60ch; }
  .text-link { color: var(--pine); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
  .prose p { color: var(--ink-soft); max-width: 62ch; }
  .prose h3 { font-size: 20px; margin: 30px 0 8px; }
  .prose h4 { font-family: var(--font-head); font-size: 16.5px; color: var(--pine); margin: 20px 0 4px; }
  .people { margin-top: 28px; display: grid; gap: 26px; }
  .person { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; }
  .person img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; }
  .person h3 { font-size: 18px; margin: 0 0 2px; }
  .person p { margin: 0; color: var(--ink-soft); font-size: 16px; }
  .person .credentials { color: var(--gold); font-size: 14px; margin: 0 0 6px; }
  .cta { background: var(--ivory-deep); }
  .cta .button {
    display: inline-block; margin-top: 22px; background: var(--pine); color: var(--ivory);
    border-radius: 999px; padding: 13px 28px; text-decoration: none; font-weight: 500;
  }
  .cta .button:hover { background: var(--pine-soft); }
  .cta .or-call { margin: 14px 0 0; color: var(--ink-soft); }
  .site-nav a { white-space: nowrap; }
  @media (min-width: 961px) and (max-width: 1180px) { .header-actions .call-link { display: none; } }
  @media (min-width: 961px) { .site-nav { gap: 18px; } .site-nav a { font-size: 15px; } }
  .site-nav a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--gold); }
  @media (max-width: 480px) { .person { grid-template-columns: 1fr; gap: 12px; } }
