:root {
    --cream:        #EFF2E5;
    --cream-deep:   #E4EAD6;
    --ink:          #332D26;
    --ink-soft:     #6B6355;
    --sage:         #55684C;
    --sage-deep:    #3B4A34;
    --sage-line:    #C7D0BC;
    --white:        #FFFFFF;

    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1180px;
    --nav-height: 88px;
    --sidebar-width: 248px;
    --edge: clamp(24px, 6vw, 64px);
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
  }

  a { color: var(--sage-deep); }

  ::selection { background: var(--sage-line); }

  :focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 3px;
  }

  /* ---------- Nav ---------- */

  header.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(59, 74, 52, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px var(--edge);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .nav-text { display: flex; flex-direction: column; gap: 3px; }

  .nav-name {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--cream);
  }

  .nav-subtitle {
    font-size: 0.85rem;
    color: rgba(239, 242, 229, 0.75);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .nav-text-mobile { display: none; }

  .nav-name-desktop,
  .nav-name-desktop:link,
  .nav-name-desktop:visited,
  .nav-name-desktop:hover,
  .nav-name-desktop:focus,
  .nav-name-desktop:active {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--cream);
    white-space: nowrap;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
  }

  .nav-name-desktop:hover {
    opacity: 0.8;
  }

  .nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
  }

  .nav-links a {
    text-decoration: none;
    color: rgba(239, 242, 229, 0.85);
    position: relative;
    padding-bottom: 2px;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--cream);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    transform: scaleX(1);
  }

  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ---------- Layout helpers ---------- */

  main { display: block; }

  section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 76px var(--edge);
    position: relative;
  }

  section:not(.hero) {
    scroll-margin-top: 40px;
  }

  section:not(.hero)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    height: 1px;
    background: var(--sage-line);
  }

  h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

  h2 {
    font-size: 1.65rem;
    color: var(--sage-deep);
    margin-bottom: 22px;
    letter-spacing: 0.01em;
  }

  p { margin: 0 0 20px; color: var(--ink); }
  p:last-child { margin-bottom: 0; }

  .wt-block {
    max-width: 760px;
  }

  #working-together .wt-block,
  #about .wt-block {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  #working-together h2,
  #about h2 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .wt-block + .wt-block { margin-top: 52px; }

  #faq h2,
  #faq p,
  #faq details {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  #faq .wt-list {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  #working-together .wt-block p,
  #about .wt-block p {
    max-width: none;
  }

  .wt-issues-intro { font-weight: 600; margin-bottom: 24px; }
  .wt-issues-intro-plain { font-weight: 400; margin-bottom: 24px; }

  .wt-list {
    list-style: disc outside;
    margin: 0;
    padding: 0 0 0 1.15em;
    display: grid;
    gap: 10px 28px;
  }

  .wt-list li {
    color: var(--ink);
  }

  .wt-list li::marker {
    color: var(--sage);
    font-size: 1.5em;
  }

  /* Keep the wide section width (matching the hero), but let running text
     sit in a narrower reading column so lines don't stretch too long. */
  section:not(.hero) p,
  section:not(.hero) details,
  section:not(.hero) form {
    max-width: 620px;
  }

  .lede { color: var(--ink-soft); }

  /* ---------- Hero ---------- */

  .hero {
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: 360px 64px auto;
    grid-template-rows: auto auto;
    row-gap: 64px;
    justify-content: center;
    align-items: center;
    padding: 42px var(--edge) 72px;
  }

  .hero-copy { max-width: 520px; grid-column: 3; grid-row: 1; order: 2; margin-left: 48px; }

  .about-image {
    flex: 0 0 320px;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    background: var(--cream-deep);
    border-radius: 10px;
    overflow: hidden;
    grid-column: 1;
    grid-row: 1;
    order: 1;
    justify-self: end;
  }

  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-logo {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    justify-self: center;
  }

  .hero-logo img {
    height: 96px;
    width: auto;
  }

  .scroll-arrow {
    display: block;
    margin: 14px auto 0;
    width: 22px;
    height: 22px;
    border-right: 2px solid var(--sage-deep);
    border-bottom: 2px solid var(--sage-deep);
    transform: rotate(45deg);
    animation: scroll-bounce 1.8s ease-in-out infinite;
  }

  .section-scroll-arrow {
    margin-top: 48px;
  }

  @keyframes scroll-bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .scroll-arrow { animation: none; }
  }

  .about-columns {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    flex-wrap: wrap;
  }

  .about-text { flex: 2 1 460px; }

  .practice-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .practice-subtitle {
    font-size: 0.95rem;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
    margin-bottom: 40px;
  }

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

  .hero p {
    font-size: 1.15rem;
  }

  .hero-copy-mobile {
    display: none;
    text-align: left;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .hero-cta {
    display: inline-block;
    padding: 13px 30px;
    background: var(--sage-deep);
    color: var(--cream);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .hero-cta:hover { background: var(--sage); }

  .hero-logo-mobile-img {
    height: 52px;
    width: auto;
  }

  .scroll-arrow.scroll-arrow-mobile { display: none; }

  .title-credentials {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
    margin-left: 10px;
    vertical-align: middle;
  }

  .credential-dot {
    color: var(--sage);
    margin: 0 2px;
  }

  /* ---------- Divider ---------- */

  .divider {
    display: block;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--edge);
  }

  .divider svg { width: 100%; height: 20px; display: block; }

  /* ---------- FAQ ---------- */

  details {
    border-bottom: 1px solid var(--sage-line);
    padding: 18px 0;
  }
  details:first-of-type { border-top: 1px solid var(--sage-line); }

  summary {
    cursor: pointer;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  summary::-webkit-details-marker { display: none; }

  summary::after {
    content: '+';
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--sage);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  details[open] summary::after { transform: rotate(45deg); }

  details p {
    margin-top: 12px;
    color: var(--ink-soft);
  }

  @media (min-width: 860px) {
    details p {
      width: calc(100% + 160px);
    }
  }

  .faq-updated {
    font-size: 0.85rem;
    color: var(--sage);
    margin-top: 16px;
  }

  /* ---------- Contact ---------- */

  #contact h2,
  #contact .contact-intro {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .contact-intro { margin-bottom: 32px; }

  form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    margin-top: 64px;
  }

  .contact-logos img {
    height: 116px;
    width: auto;
  }

  label {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    margin-bottom: 6px;
    display: block;
  }

  .required-asterisk {
    color: var(--sage-deep);
  }

  input, textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 1rem;
    background: var(--white);
    border: 1px solid var(--sage-line);
    border-radius: 6px;
    color: var(--ink);
  }

  input:focus, textarea:focus {
    border-color: var(--sage-deep);
  }

  textarea { min-height: 130px; resize: vertical; }

  button {
    align-self: flex-start;
    padding: 13px 30px;
    background: var(--sage-deep);
    color: var(--cream);
    border: none;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  button:hover { background: var(--sage); }

  .form-status {
    margin-top: 14px;
    font-size: 0.9rem;
  }

  .form-status-pending { color: var(--ink-soft); }
  .form-status-success { color: var(--sage-deep); font-weight: 600; }
  .form-status-error { color: #a33; font-weight: 600; }

  /* ---------- Footer ---------- */

  footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px var(--edge) 56px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    text-align: center;
  }

  /* ---------- Scroll reveal ---------- */

  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  @media (max-width: 860px) {
    .nav-toggle {
      display: flex;
    }
    .nav-links {
      display: none;
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
      width: 100%;
      padding: 18px 0 4px;
      font-size: 0.95rem;
      order: 3;
    }
    .nav-links.is-open {
      display: flex;
    }
    .nav-links a {
      white-space: nowrap;
    }
    .hero {
      grid-template-columns: 1fr;
      row-gap: 20px;
      min-height: auto;
      padding-top: 20px;
      padding-bottom: 56px;
      justify-items: center;
      text-align: center;
    }
    .hero-copy {
      max-width: 460px;
      grid-column: 1;
      grid-row: auto;
      justify-self: center;
      margin-left: 0;
      order: 3;
    }
    .about-columns { flex-direction: column; }
    .about-image {
      max-width: 200px;
      width: 100%;
      margin: 0 auto;
      grid-column: 1;
      grid-row: auto;
      justify-self: center;
    }
    .hero-logo {
      display: none;
    }
    .scroll-arrow.scroll-arrow-mobile {
      display: block;
      grid-column: 1;
      order: 4;
      margin-top: 8px;
    }
    .hero-copy-desktop {
      display: none;
    }
    .hero-copy-mobile {
      display: block;
    }
    .nav-credentials {
      font-family: var(--sans);
      font-size: 0.85rem;
      font-weight: 400;
      color: rgba(239, 242, 229, 0.75);
      letter-spacing: 0.02em;
    }
    .nav-text-desktop {
      display: none;
    }
    .nav-text-mobile {
      display: flex;
    }
  }

  @media (max-width: 480px) {
    section { padding: 56px var(--edge); }
    .nav-links { gap: 14px; }
  }
