/* JAT Services — shared styles (v9). Palette and type unchanged from v3–v8. */

:root {
      --navy: #14202B;
      --navy-soft: #1C2B38;
      --gold: #B08849;
      --gold-ink: #8C6230;
      --cream: #F8F4F0;
      --paper: #F3F0EA;
      --white: #FFFFFF;
      --ink: #14202B;
      --muted: #5B6570;
      --line: #E3DED5;
      --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
      --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
      --header-h: 4.25rem;
      --max: 68rem;
      --gutter: clamp(1.25rem, 4vw, 2rem);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      scroll-padding-top: calc(var(--header-h) + 0.75rem);
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
    }

    body {
      margin: 0;
      font-family: var(--sans);
      font-size: 1.125rem;
      line-height: 1.65;
      color: var(--ink);
      background: var(--paper);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    img, svg { display: block; max-width: 100%; }
    a { color: var(--navy); }
    a:hover { color: color-mix(in srgb, var(--navy) 80%, var(--gold)); }
    :focus { outline: none; }
    :focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }
    ::selection {
      background: color-mix(in srgb, var(--gold) 35%, transparent);
      color: var(--navy);
    }

    .skip {
      position: absolute;
      left: var(--gutter);
      top: -100px;
      z-index: 100;
      background: var(--gold);
      color: var(--navy);
      font-weight: 600;
      padding: 0.5rem 0.9rem;
      text-decoration: none;
      border-radius: 2px;
    }
    .skip:focus { top: 0.6rem; }

    .wrap {
      width: min(var(--max), 100% - 2 * var(--gutter));
      margin-inline: auto;
    }

    /* Header */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: color-mix(in srgb, var(--paper) 92%, transparent);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    }
    .site-header .wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.25rem;
      min-height: var(--header-h);
    }
    .brand {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: inherit;
      flex-shrink: 0;
    }
    .brand-logo {
      display: block;
      height: 2.75rem; /* 44px */
      width: auto;
    }
    .site-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 0.15rem 1.35rem;
    }
    .site-nav a {
      color: var(--navy);
      text-decoration: none;
      font-size: 0.98rem;
      font-weight: 500;
      padding: 0.25rem 0;
      border-bottom: 1px solid transparent;
    }
    .site-nav a:hover,
    .site-nav a:focus-visible {
      border-bottom-color: var(--gold);
      color: var(--navy);
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.8rem 1.35rem;
      font-family: inherit;
      font-size: 1.02rem;
      font-weight: 600;
      line-height: 1.2;
      text-decoration: none;
      border-radius: 3px;
      border: 1px solid transparent;
      cursor: pointer;
    }
    .btn-cream {
      background: var(--cream);
      color: var(--navy);
    }
    .btn-cream:hover {
      background: var(--white);
      color: var(--navy);
    }
    .btn-navy {
      background: var(--navy);
      color: var(--cream);
    }
    .btn-navy:hover {
      background: var(--navy-soft);
      color: var(--cream);
    }
    .btn-gold {
      background: var(--gold);
      color: var(--navy);
    }
    .btn-gold:hover {
      background: #c49a58;
      color: var(--navy);
    }

    /* Hero */
    .hero {
      background: var(--navy);
      color: var(--cream);
      padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.25rem, 8vw, 6.75rem);
    }
    .hero .wrap { max-width: 44rem; margin-left: max(var(--gutter), calc((100% - var(--max)) / 2)); }
    .eyebrow {
      display: inline-block;
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold);
      margin: 0 0 1.1rem;
    }
    .hero h1 {
      font-family: var(--serif);
      font-weight: 550;
      font-size: clamp(2.05rem, 4.6vw, 3.35rem);
      line-height: 1.18;
      letter-spacing: -0.02em;
      margin: 0 0 1.25rem;
      color: var(--cream);
    }
    .hero .lead {
      margin: 0 0 2rem;
      font-size: clamp(1.08rem, 1.7vw, 1.22rem);
      line-height: 1.6;
      color: color-mix(in srgb, var(--cream) 86%, var(--muted));
      max-width: 38rem;
    }

    /* Sections */
    section { padding: clamp(3.25rem, 7vw, 5.25rem) 0; }
    .section-head {
      max-width: 38rem;
      margin-bottom: 2.25rem;
    }
    .section-head h2,
    .contact h2,
    .about-grid h2 {
      font-family: var(--serif);
      font-weight: 550;
      font-size: clamp(1.7rem, 3vw, 2.15rem);
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin: 0 0 0.75rem;
    }
    .section-head p,
    .about-copy p {
      margin: 0 0 1rem;
      color: color-mix(in srgb, var(--ink) 88%, var(--muted));
    }
    .about-copy p:last-child { margin-bottom: 0; }

    .about { background: var(--white); }
    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
      gap: clamp(1.5rem, 5vw, 4.5rem);
      align-items: start;
    }
    .kicker {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-ink);
      margin: 0 0 0.65rem;
    }
    .nobr { white-space: nowrap; }
    .creds {
      margin-top: 1.75rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--line);
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1rem 1.5rem;
    }
    .creds div { min-width: 0; }
    .creds dt {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 0.2rem;
    }
    .creds dd {
      margin: 0;
      font-weight: 600;
      font-size: 1.02rem;
    }

    /* Services */
    .services { background: var(--paper); }
    .cards {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 1.15rem;
    }
    .card {
      grid-column: span 2;
      background: var(--white);
      border: 1px solid var(--line);
      border-top: 3px solid var(--gold);
      padding: 1.5rem 1.4rem 1.6rem;
    }
    .card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
    .card:nth-child(5):last-child { grid-column: 4 / span 2; }
    .card h3 {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 1.28rem;
      margin: 0 0 0.65rem;
      letter-spacing: -0.01em;
    }
    .card p {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
    }
    .services-note {
      margin: 1.75rem 0 0;
      color: var(--muted);
      font-size: 1.02rem;
      max-width: 40rem;
    }

    /* Approach */
    .approach { background: var(--white); }
    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.15rem 1.75rem;
      margin-top: 0.25rem;
    }
    .step {
      padding-top: 0.25rem;
    }
    .step-num {
      display: block;
      font-family: var(--serif);
      font-size: 1.35rem;
      font-weight: 600;
      color: var(--gold-ink);
      letter-spacing: 0.04em;
      margin-bottom: 0.55rem;
    }
    .step h3,
    .why-point h3 {
      font-family: var(--sans);
      font-size: 1.12rem;
      font-weight: 700;
      margin: 0 0 0.45rem;
    }
    .step p,
    .why-point p {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
    }
    .why {
      margin-top: 2.5rem;
      padding-top: 2.15rem;
      border-top: 1px solid var(--line);
    }
    .why .kicker { margin-bottom: 1.35rem; }
    .why-points {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.15rem 1.5rem;
    }

    /* Contact */
    .contact {
      background: var(--navy);
      color: var(--cream);
    }
    .contact h2 { color: var(--cream); }
    .contact .kicker { color: var(--gold); }
    .contact-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
      gap: clamp(1.75rem, 5vw, 4rem);
      align-items: start;
    }
    .contact .intro {
      margin: 0 0 1.5rem;
      color: color-mix(in srgb, var(--cream) 86%, var(--muted));
      max-width: 34rem;
    }
    .contact-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 1.1rem;
    }
    .contact-list li { min-width: 0; }
    .contact-list .label {
      display: block;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 0.2rem;
    }
    .contact-list a {
      color: var(--cream);
      text-decoration: underline;
      text-underline-offset: 0.2em;
      text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
      font-weight: 600;
      word-break: break-word;
    }
    .contact-list a:hover { color: var(--white); }
    .contact-list .value { font-weight: 500; }

    /* Footer */
    .site-footer {
      background: #0E171E;
      color: color-mix(in srgb, var(--cream) 70%, var(--muted));
      padding: 1.35rem 0;
      font-size: 0.92rem;
    }
    .site-footer .wrap {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.5rem 1.5rem;
    }
    .site-footer p { margin: 0; }

    @media (max-width: 900px) {
      .why-points { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 800px) {
      .about-grid,
      .cards,
      .steps,
      .contact-layout,
      .creds {
        grid-template-columns: 1fr;
      }
      .card,
      .card:nth-child(4):nth-last-child(2),
      .card:nth-child(5):last-child {
        grid-column: auto;
      }
      .cards, .steps { gap: 0.9rem; }
    }

    @media (max-width: 640px) {
      :root { --header-h: 7.5rem; }
      body { font-size: 1.0625rem; }
      .brand-logo { height: 2.5rem; } /* 40px */
      .site-header .wrap {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.55rem;
        padding-top: 0.7rem;
        padding-bottom: 0.75rem;
      }
      .site-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 0.15rem 1.05rem;
      }
      .site-nav a {
        font-size: 0.95rem;
        min-height: 2.5rem;
        display: inline-flex;
        align-items: center;
      }
      .why-points { grid-template-columns: 1fr; }
    }

    /* ---- v3 multi-page additions ---- */

    .site-nav a[aria-current="page"] {
      border-bottom-color: var(--gold);
      font-weight: 600;
    }

    .page-hero {
      background: var(--navy);
      color: var(--cream);
      padding: clamp(2.4rem, 5.5vw, 3.75rem) 0;
    }
    .page-hero h1 {
      font-family: var(--serif);
      font-weight: 550;
      font-size: clamp(1.9rem, 3.6vw, 2.65rem);
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin: 0 0 0.7rem;
      color: var(--cream);
    }
    .page-hero .lead {
      margin: 0;
      max-width: 38rem;
      color: color-mix(in srgb, var(--cream) 86%, var(--muted));
      font-size: 1.12rem;
    }
    .page-hero .eyebrow { margin-bottom: 0.85rem; }
    .page-hero.is-directors .lead { max-width: 46rem; }

    .page-body { background: var(--white); }
    .page-body.paper { background: var(--paper); }

    /* Home: meet the director teaser */
    .meet {
      background: var(--white);
    }
    .meet-card {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 1.5rem 1.75rem;
      align-items: center;
      padding: 1.6rem 1.7rem;
      border: 1px solid var(--line);
      background: var(--paper);
    }
    .meet-card h3 {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 1.45rem;
      margin: 0 0 0.25rem;
      letter-spacing: -0.01em;
    }
    .meet-card .role {
      margin: 0 0 0.65rem;
      color: var(--muted);
      font-size: 1.02rem;
    }
    .meet-card p { margin: 0 0 1rem; }
    .meet-card p:last-of-type { margin-bottom: 1rem; }
    .text-link {
      font-weight: 600;
      color: var(--navy);
      text-decoration: none;
      border-bottom: 1px solid var(--gold);
    }
    .text-link:hover { color: var(--navy); border-bottom-color: var(--navy); }

    /* Initials avatar */
    .avatar {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 5.5rem;
      height: 5.5rem;
      border-radius: 0.9rem;
      background: var(--navy);
      color: var(--cream);
      font-family: var(--serif);
      font-weight: 600;
      font-size: 1.7rem;
      letter-spacing: 0.04em;
      flex-shrink: 0;
      position: relative;
    }
    .avatar::after {
      content: "";
      position: absolute;
      width: 0.7rem;
      height: 0.7rem;
      border-radius: 50%;
      background: var(--gold);
      right: 0.55rem;
      bottom: 0.55rem;
    }
    .avatar-lg {
      width: 8.25rem;
      height: 8.25rem;
      font-size: 2.35rem;
      border-radius: 1.15rem;
    }
    .avatar-lg::after {
      width: 0.85rem;
      height: 0.85rem;
      right: 0.7rem;
      bottom: 0.7rem;
    }


    /* Directors page: photo left, bio right */
    .director {
      display: grid;
      grid-template-columns: 17rem minmax(0, 1fr);
      gap: 2.5rem 3.25rem;
      align-items: start;
    }
    .director-additional {
      margin-top: 3.5rem;
      padding-top: 2.75rem;
      border-top: 1px solid var(--line);
    }
    .director-photo {
      display: block;
      width: 17rem;
      height: 21.25rem;
      object-fit: cover;
      object-position: center 12%;
      border-radius: 1.15rem;
      border: 1px solid var(--line);
      background: var(--paper);
    }
    .director-copy { min-width: 0; padding-top: 0.15rem; }
    .director-identity { margin-bottom: 1.15rem; }
    .director-identity h2 {
      font-family: var(--serif);
      font-weight: 550;
      font-size: clamp(1.65rem, 2.8vw, 2.15rem);
      letter-spacing: -0.02em;
      line-height: 1.2;
      margin: 0 0 0.3rem;
    }
    .director-identity .role {
      margin: 0;
      font-weight: 600;
      color: var(--gold-ink);
    }
    .director-bio p {
      margin: 0 0 0.95rem;
      color: color-mix(in srgb, var(--ink) 88%, var(--muted));
    }
    .director-bio p:last-child { margin-bottom: 0; }
    .director-focus {
      margin: 1.4rem 0 0;
      padding-top: 1.2rem;
      border-top: 1px solid var(--line);
      font-size: 1.02rem;
      line-height: 1.55;
      color: var(--muted);
    }
    .director-focus .focus-label {
      display: block;
      font-family: var(--sans);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-ink);
      margin-bottom: 0.4rem;
    }
    .director-contact {
      margin: 1.15rem 0 0;
    }
    .director-contact a {
      font-weight: 600;
      color: var(--navy);
      text-decoration: none;
      border-bottom: 1px solid var(--gold);
    }
    .director-contact a:hover { border-bottom-color: var(--navy); }

    /* Services detail page */
    .service-list {
      display: grid;
      gap: 1.15rem;
    }
    .service-block {
      background: var(--white);
      border: 1px solid var(--line);
      border-top: 3px solid var(--gold);
      padding: 1.45rem 1.5rem 1.5rem;
    }
    .service-block h2 {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 1.4rem;
      margin: 0 0 0.55rem;
      letter-spacing: -0.01em;
    }
    .service-block p {
      margin: 0;
      color: var(--muted);
      font-size: 1.08rem;
    }

    .end-cta {
      margin-top: 2.5rem;
      padding-top: 1.75rem;
      border-top: 1px solid var(--line);
    }
    .end-cta p {
      margin: 0 0 1.1rem;
      color: var(--muted);
      max-width: 36rem;
    }

    /* Footer: slightly richer for multi-page */
    .site-footer {
      padding: 2rem 0 1.5rem;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1.2fr;
      gap: 1.5rem 2rem;
      margin-bottom: 1.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
    }
    .footer-grid h2 {
      font-family: var(--sans);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold);
      margin: 0 0 0.7rem;
    }
    .footer-grid p,
    .footer-grid a,
    .footer-nav {
      color: color-mix(in srgb, var(--cream) 78%, var(--muted));
      font-size: 0.98rem;
    }
    .footer-grid p { margin: 0 0 0.35rem; }
    .footer-grid a {
      color: color-mix(in srgb, var(--cream) 86%, var(--muted));
      text-decoration: none;
    }
    .footer-grid a:hover { color: var(--cream); }
    .footer-nav {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.3rem;
    }
    .footer-legal {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.5rem 1.5rem;
    }
    .footer-legal p { margin: 0; }

    @media (max-width: 800px) {
      .meet-card,
      .director,
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .avatar-lg {
        width: 6.5rem;
        height: 6.5rem;
        font-size: 1.9rem;
      }
      .director {
        gap: 1.65rem;
      }
      .director-photo {
        width: 13.25rem;
        height: 16.5rem;
        border-radius: 1rem;
      }
    }


    .site-footer .wrap {
      display: block;
      width: min(var(--max), 100% - 2 * var(--gutter));
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .approach { background: var(--paper); }

    .page-body .page-heading {
      font-family: var(--serif);
      font-weight: 550;
      font-size: clamp(1.5rem, 2.5vw, 1.9rem);
      letter-spacing: -0.02em;
      margin: 0 0 0.7rem;
    }
    .page-intro {
      margin: 0 0 1.5rem;
      color: var(--muted);
      max-width: 36rem;
    }
    .page-body .contact-list .label { color: var(--gold-ink); }
    .page-body .contact-list a {
      color: var(--navy);
      text-decoration-color: color-mix(in srgb, var(--gold) 80%, transparent);
    }
    .page-body .contact-list a:hover { color: var(--navy); }
    .page-body .contact-list .value { color: var(--ink); font-weight: 600; }


    .footer-cred {
      margin-top: 0.4rem !important;
      font-size: 0.9rem;
      color: color-mix(in srgb, var(--cream) 62%, var(--muted));
    }
    .footer-legal .footer-cred {
      margin-top: 0 !important;
    }
    .designation {
      font-weight: 550;
      letter-spacing: -0.01em;
    }
    .fees-note {
      margin: 1.35rem 0 0;
      color: var(--muted);
      font-size: 1.02rem;
      max-width: 40rem;
    }


    /* Tax fees */
    .fees {
      margin-top: 2.75rem;
      padding-top: 2.25rem;
      border-top: 1px solid var(--line);
    }
    .fees .section-head { margin-bottom: 1.5rem; }
    .fees h2 {
      font-family: var(--serif);
      font-weight: 550;
      font-size: clamp(1.5rem, 2.6vw, 1.95rem);
      letter-spacing: -0.02em;
      margin: 0 0 0.65rem;
    }
    .fee-block { margin-bottom: 1.75rem; }
    .fee-block h3 {
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-ink);
      margin: 0 0 0.7rem;
    }
    .table-wrap {
      overflow-x: auto;
      background: var(--white);
      border: 1px solid var(--line);
    }
    .fee-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 1.05rem;
    }
    .fee-table th,
    .fee-table td {
      text-align: left;
      padding: 0.8rem 1.1rem;
      vertical-align: top;
      border-bottom: 1px solid var(--line);
    }
    .fee-table tr:last-child th,
    .fee-table tr:last-child td { border-bottom: 0; }
    .fee-table thead th {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      background: color-mix(in srgb, var(--paper) 70%, var(--white));
    }
    .fee-table .price {
      font-weight: 700;
      white-space: nowrap;
      text-align: right;
      width: 8.5rem;
    }
    .fee-table thead th:last-child { text-align: right; }
    .fee-table .desc {
      color: var(--muted);
      font-size: 0.98rem;
      display: block;
      margin-top: 0.15rem;
    }
    .vat-note,
    .fees-note {
      color: var(--muted);
      font-size: 1.02rem;
      max-width: 42rem;
    }
    .vat-note { margin: 0.25rem 0 1.25rem; }
    @media (max-width: 640px) {
      .fee-table th,
      .fee-table td { padding: 0.75rem 0.85rem; }
    }
