/*
Theme Name: Precision Credits
Theme URI: https://precisioncredits.com
Description: Custom child theme for Precision Credits — outsourced accounting, fractional CFO, bookkeeping and taxation services across the US, UK, Canada, Australia, KSA, and UAE.
Author: Precision Credits
Author URI: https://precisioncredits.com
Template: astra
Version: 1.0.0
License: GPLv2 or later
Text Domain: precision-credits
*/

/* --------- Design tokens --------- */
  :root {
    --ink: #0F1419;
    --ink-soft: #1C2128;
    --paper: #EFE9DD;
    --paper-warm: #E6DFD1;
    --brass: #A5793C;
    --brass-dark: #8B6530;
    --sage: #2E3D34;
    --mist: #8A8578;
    --line: rgba(15, 20, 25, 0.12);
    --line-on-ink: rgba(239, 233, 221, 0.14);

    --font-display: Georgia, 'Times New Roman', Times, serif;
    --font-body: Georgia, 'Times New Roman', Times, serif;
    --font-mono: Georgia, 'Times New Roman', Times, serif;

    --max: 1240px;
    --pad: clamp(20px, 4vw, 48px);
    --radius: 4px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  /* Deep-link target for the "Book a call" CTAs. The header is sticky, so the
     scroll stop needs an offset or the heading lands underneath it. */
  #book,
  .service-block[id] {
    scroll-margin-top: calc(var(--header-h, 70px) + 26px);
  }
  @media (max-width: 900px) {
    #book,
    .service-block[id] { scroll-margin-top: calc(var(--header-h, 70px) + 20px); }
  }
  /* Respect users who ask the OS to reduce motion. */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }

  body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  ::selection { background: var(--ink); color: var(--paper); }

  /* Focus states — accessibility */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* Skip link */
  .skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    z-index: 200;
    font-size: 13px;
    border-radius: 3px;
  }
  .skip-link:focus { top: 12px; }

  h1, h2, h3, h4, .h-display { overflow-wrap: break-word; }

  /* --------- Typography --------- */
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
  }
  .eyebrow--mist { color: var(--mist); }

  .h-display {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144;
  }

  .h1 { font-size: clamp(44px, 6.8vw, 96px); }
  .h2 { font-size: clamp(32px, 4.5vw, 60px); }
  .h3 { font-size: clamp(24px, 2.8vw, 36px); }
  .h4 { font-size: clamp(20px, 2vw, 26px); }

  .italic-em {
    font-style: italic;
    font-weight: 400;
  }

  .lead {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 60ch;
  }

  /* --------- Layout --------- */
  .container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
  }

  section { padding: clamp(70px, 10vw, 140px) 0; }

  .rule {
    height: 1px;
    background: var(--line);
    width: 100%;
  }

  /* --------- Header --------- */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(239, 233, 221, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s;
  }
  .header.scrolled {
    box-shadow: 0 4px 24px rgba(15, 20, 25, 0.06);
    background: rgba(239, 233, 221, 0.92);
  }
  .header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .logo-mark {
    width: 28px;
    height: 28px;
    position: relative;
    align-self: center;
  }
  .logo-mark::before,
  .logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
  }
  .logo-mark::after {
    inset: 6px;
    background: var(--brass);
    border-color: var(--brass);
  }
  .logo em { font-style: italic; color: var(--brass); font-weight: 300; }
  .nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }
  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--brass); }
  .nav-links a.active {
    color: var(--ink);
  }
  .nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--brass);
  }

  /* --------- Buttons --------- */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
  }
  .btn--primary {
    background: var(--ink);
    color: var(--paper);
  }
  .btn--primary:hover {
    background: var(--brass);
    color: var(--ink);
  }
  .btn--outline {
    border: 1px solid var(--ink);
    color: var(--ink);
  }
  .btn--outline:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .btn--ghost {
    padding: 8px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
  }
  .btn--ghost:hover { color: var(--brass); border-color: var(--brass); }
  .btn .arrow { transition: transform 0.25s; }
  .btn:hover .arrow { transform: translateX(4px); }

  /* --------- Mobile nav --------- */
  .menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brass);
    border-radius: var(--radius);
  }
  .menu-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--brass);
    position: relative;
  }
  .menu-toggle span::before,
  .menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: var(--brass);
    transition: transform 0.25s;
  }
  .menu-toggle span::before { top: -5px; }
  .menu-toggle span::after { top: 5px; }
  .menu-toggle.open span { background: transparent; }
  .menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle.open span::after { top: 0; transform: rotate(-45deg); }

  /* Mobile menu is hidden on desktop by default */
  .mobile-menu { display: none; }

  /* Page-switching rules removed.
     WordPress body_class() outputs "page" on every Page, so `.page { display:none }`
     matched <body> itself and hid the whole document. Navigation is server-side now,
     so these rules are obsolete. */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* --------- HERO --------- */
  .hero {
    padding-top: clamp(70px, 10vw, 120px);
    padding-bottom: clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: end;
  }
  .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
  }
  .hero-eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 0 4px rgba(165, 121, 60, 0.18);
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(165, 121, 60, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(165, 121, 60, 0.06); }
  }
  .hero h1 { margin-bottom: 32px; }
  .hero h1 .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--brass);
    font-variation-settings: "opsz" 144, "SOFT" 30;
  }
  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
  }

  .hero-side {
    padding-bottom: 12px;
  }
  .hero-meta {
    border-top: 1px solid var(--ink);
    padding-top: 24px;
  }
  .hero-meta-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
  }
  .hero-meta-row:last-child { border-bottom: none; }
  .hero-meta-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--mist);
    text-transform: uppercase;
  }
  .hero-meta-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
  }
  .hero-meta-value small {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist);
    letter-spacing: 0.05em;
    margin-left: 8px;
  }

  /* --------- Trust strip: cross-border markets --------- */
  .markets {
    background: var(--ink);
    color: var(--paper);
    padding: 44px 0;
    position: relative;
    overflow: hidden;
  }
  .markets-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-on-ink);
    flex-wrap: wrap;
    gap: 16px;
  }
  .markets-header .eyebrow { color: var(--brass); }
  .markets-header p {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    font-style: italic;
    color: var(--paper);
    opacity: 0.85;
  }
  .markets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding-top: 28px;
  }
  .market {
    padding: 8px 16px 8px 0;
    border-right: 1px solid var(--line-on-ink);
  }
  .market:last-child { border-right: none; }
  .market-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brass);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  .market-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .market-tz {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--mist);
    margin-top: 4px;
    letter-spacing: 0.05em;
  }

  /* --------- Benefits --------- */
  .section-head {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 72px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .section-head .col-left { display: flex; flex-direction: column; gap: 12px; }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .benefit {
    padding: 40px 32px 40px 0;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
  }
  .benefit:last-child { border-right: none; padding-right: 0; }
  .benefit:not(:first-child) { padding-left: 32px; }
  .benefit-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brass);
    letter-spacing: 0.1em;
  }
  .benefit h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .benefit p {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.6;
  }

  /* --------- Services preview --------- */
  .services-preview {
    background: var(--paper-warm);
  }
  .service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .service-card {
    background: var(--paper);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: background 0.3s;
  }
  .service-card:hover { background: var(--paper-warm); }
  .service-card:hover .service-arrow { transform: translate(4px, -4px); color: var(--brass); }
  .service-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brass);
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .service-arrow {
    font-size: 18px;
    color: var(--ink);
    transition: all 0.25s;
    line-height: 1;
  }
  .service-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
  .service-card p {
    color: var(--ink-soft);
    font-size: 15.5px;
    max-width: 42ch;
  }
  .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }
  .tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    background: rgba(15, 20, 25, 0.06);
    border-radius: 3px;
    color: var(--ink-soft);
  }

  /* --------- Testimonials --------- */
  .testimonials {
    background: var(--ink);
    color: var(--paper);
  }
  .testimonials .section-head {
    border-bottom-color: var(--line-on-ink);
  }
  .testimonials .eyebrow { color: var(--brass); }
  .testimonials h2 { color: var(--paper); }
  .testimonials-lead { color: rgba(239, 233, 221, 0.7); }

  .quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
  .quote {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--line-on-ink);
  }
  .quote-mark {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 0.6;
    color: var(--brass);
    height: 24px;
  }
  .quote blockquote {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--paper);
    font-style: italic;
  }
  .quote-attribution {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
  }
  .quote-attribution img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
  }
  .quote-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--paper);
  }
  .quote-role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist);
    letter-spacing: 0.04em;
    margin-top: 2px;
  }

  /* --------- About preview --------- */
  .about-preview {
    padding: clamp(90px, 12vw, 160px) 0;
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }
  .about-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
  }
  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.02);
  }
  .about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0) 60%, rgba(15, 20, 25, 0.35) 100%);
  }
  .about-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    color: var(--paper);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .about-content h2 { margin-bottom: 24px; }
  .about-content p { margin-bottom: 20px; color: var(--ink-soft); font-size: 16.5px; }

  /* --------- Final CTA --------- */
  .final-cta {
    background: var(--sage);
    color: var(--paper);
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
    overflow: hidden;
  }
  .final-cta-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: end;
    position: relative;
    z-index: 2;
  }
  .final-cta h2 { color: var(--paper); max-width: 15ch; }
  .final-cta h2 .accent { color: #C9A66B; font-style: italic; font-weight: 400; }
  .final-cta .lead { color: rgba(239, 233, 221, 0.75); margin-bottom: 32px; }
  .final-cta .btn--primary {
    background: var(--paper);
    color: var(--ink);
  }
  .final-cta .btn--primary:hover {
    background: #C9A66B;
    color: var(--ink);
  }
  .final-cta-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 8px;
  }
  .cta-stat {
    padding: 16px 0;
    border-top: 1px solid rgba(239, 233, 221, 0.2);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 12px;
  }
  .cta-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(239, 233, 221, 0.6);
    text-transform: uppercase;
  }
  .cta-stat-value {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 32px;
    color: var(--paper);
  }

  /* --------- Footer --------- */
  .footer {
    background: var(--ink);
    color: var(--paper);
    padding: 80px 0 32px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line-on-ink);
  }
  .footer-brand p {
    color: rgba(239, 233, 221, 0.6);
    margin-top: 20px;
    font-size: 14.5px;
    max-width: 32ch;
  }
  .footer h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 20px;
    font-weight: 500;
  }
  .footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer ul a {
    color: rgba(239, 233, 221, 0.8);
    font-size: 14.5px;
    transition: color 0.2s;
  }
  .footer ul a:hover { color: var(--brass); }
  .footer .logo { color: var(--paper); }
  .footer .logo em { color: var(--brass); }
  .footer .logo-mark::before { border-color: var(--paper); }
  .footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: rgba(239, 233, 221, 0.5);
    letter-spacing: 0.05em;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bottom-links { display: flex; gap: 20px; }

  /* --------- Social icons ---------
     Plain brand-coloured glyphs. No filled circle: a background shape can sit
     over the mark on hover and hide it, so hover only shifts opacity. */
  .social-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 0;
    padding: 0;
  }
  .social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    line-height: 1;
    font-size: 0;
    opacity: 1;
    transition: opacity 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .social-row a svg {
    width: 20px;
    height: 20px;
    display: block;
  }
  /* Official brand colours */
  .social-row a.s-linkedin  svg { fill: #0A66C2; }
  .social-row a.s-facebook  svg { fill: #1877F2; }
  .social-row a.s-instagram svg { fill: #E4405F; }

  /* Hover: never covers the glyph — only a lift and slight fade. */
  @media (hover: hover) {
    .social-row a:hover {
      opacity: 0.75;
      transform: translateY(-2px);
      background: none;
    }
  }
  .social-row a:focus { outline: none; }
  .social-row a:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
  }

  /* Contact page — beat .contact-block a { display: block } */
  .contact-block .social-row a {
    display: inline-flex;
    width: auto;
    height: auto;
    margin-top: 0;
    font-size: 0;
    border: none;
    background: none;
  }
  .contact-block .social-row a + a { margin-top: 0; }

  /* Footer — every column flush left, icons flush with the text above them. */
  .footer-grid > div { text-align: left; }
  .footer ul { align-items: flex-start; padding-left: 0; margin-left: 0; }
  .footer .social-row {
    margin-top: 16px;
    margin-left: 0;
    padding-left: 0;
    justify-content: flex-start;
    gap: 16px;
  }
  .footer .social-row a svg { width: 20px; height: 20px; }
  /* ============ ABOUT PAGE ============ */
  .page-hero {
    padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 6vw, 90px);
  }
  .page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: end;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }
  .page-hero .breadcrumb {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--mist);
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .page-hero .breadcrumb span { color: var(--ink); }

  .story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    padding-top: clamp(70px, 8vw, 100px);
    padding-bottom: clamp(70px, 8vw, 100px);
    align-items: start;
  }
  .story-text p {
    margin-bottom: 20px;
    color: var(--ink-soft);
    font-size: 16.5px;
    line-height: 1.65;
  }
  .story-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    position: sticky;
    top: 100px;
  }
  .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
  }

  .principles {
    background: var(--paper-warm);
  }
  .principles .section-head { border-bottom: none; margin-bottom: 40px; }
  .principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .principle {
    background: var(--paper-warm);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .principle-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brass);
    letter-spacing: 0.1em;
  }
  .principle h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .principle p {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.6;
  }

  .differentiator {
    padding: clamp(80px, 10vw, 140px) 0;
  }
  .diff-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
  }
  .diff-list {
    list-style: none;
    display: flex;
    flex-direction: column;
  }
  .diff-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: baseline;
  }
  .diff-item:first-child { border-top: 1px solid var(--line); }
  .diff-item .num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brass);
    letter-spacing: 0.1em;
  }
  .diff-item h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
  .diff-item p { color: var(--ink-soft); font-size: 15.5px; }

  /* ============ SERVICES PAGE ============ */
  .services-detail {
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(70px, 10vw, 140px);
  }
  .service-block {
    display: grid;
    grid-template-columns: 100px 1fr 1.2fr;
    gap: clamp(24px, 4vw, 60px);
    padding: 56px 0;
    border-top: 1px solid var(--line);
    align-items: start;
  }
  .service-block:last-child { border-bottom: 1px solid var(--line); }
  .service-block .num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brass);
    letter-spacing: 0.1em;
    padding-top: 12px;
  }
  .service-block h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
  }
  .service-block .service-desc {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .service-features li {
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: var(--ink-soft);
  }
  .service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 1px;
    background: var(--brass);
  }

  /* Sub-heading inside a service block (e.g. "Benefits to clients") */
  .service-sublabel {
    display: block;
    margin: 26px 0 12px;
  }
  .service-features + .service-sublabel {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  /* How it works */
  .how {
    background: var(--paper-warm);
  }
  .how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 60px;
  }
  .step {
    background: var(--paper-warm);
    padding: 40px 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 240px;
    position: relative;
  }
  .step-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--brass);
    line-height: 1;
    font-style: italic;
    letter-spacing: -0.02em;
  }
  .step h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.15;
  }
  .step p {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.55;
  }

  /* FAQ */
  .faq {
    padding: clamp(80px, 10vw, 140px) 0;
  }
  .faq-list {
    border-top: 1px solid var(--line);
  }
  .faq-item {
    border-bottom: 1px solid var(--line);
  }
  .faq-question {
    width: 100%;
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.005em;
    transition: color 0.2s;
  }
  .faq-question:hover { color: var(--brass); }
  .faq-icon {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--brass);
    transition: transform 0.3s;
    flex-shrink: 0;
  }
  .faq-item.open .faq-icon { transform: rotate(45deg); }
  .faq-item.open .faq-question { color: var(--brass); }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.65;
  }
  .faq-answer-inner {
    padding: 0 0 28px 0;
    max-width: 70ch;
  }

  /* ============ LISTINGS / CASE STUDIES ============ */
  .filter-bar {
    display: flex;
    gap: 8px;
    padding: 24px 0 32px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    align-items: center;
  }
  .filter-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 12px;
  }
  .filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.2s;
    background: transparent;
  }
  .filter-btn:hover { border-color: var(--ink); }
  .filter-btn.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  .case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    padding: 48px 0;
  }
  .case-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s;
    color: var(--ink);
  }
  .case-card:hover { transform: translateY(-4px); }
  .case-card:hover .case-image img { transform: scale(1.04); }
  .case-card:hover h3 { color: var(--brass); }
  .case-card h3 { transition: color 0.2s; }
  .case-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-warm);
    position: relative;
  }
  .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(15%) contrast(1.02);
  }
  .case-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(239, 233, 221, 0.95);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--ink);
    border-radius: 3px;
    text-transform: uppercase;
  }
  .case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mist);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .case-meta .region { color: var(--brass); }
  .case-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .case-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
  }
  .case-stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 300;
    color: var(--brass);
    font-style: italic;
  }
  .case-stat-label {
    font-size: 13px;
    color: var(--ink-soft);
  }

  /* ============ CONTACT ============ */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    padding: clamp(50px, 6vw, 80px) 0;
    align-items: start;
  }
  .contact-info {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .contact-block {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-block:last-child { border-bottom: none; }
  .contact-block h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .contact-block p, .contact-block a {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
  }
  .contact-block a { display: block; transition: color 0.2s; }
  .contact-block a:hover { color: var(--brass); }
  .contact-block a + a { margin-top: 6px; }
  .contact-block .sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--mist);
    margin-top: 6px;
  }

  .contact-form {
    background: var(--paper-warm);
    padding: clamp(32px, 4vw, 48px);
    border-radius: var(--radius);
  }
  .form-eyebrow { margin-bottom: 8px; }
  .contact-form h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .form-field label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mist);
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(15, 20, 25, 0.25);
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
  }
  .form-field input:focus,
  .form-field textarea:focus,
  .form-field select:focus {
    border-bottom-color: var(--brass);
  }
  .form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230F1419' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
    cursor: pointer;
  }
  .form-field textarea {
    resize: vertical;
    min-height: 100px;
  }
  .form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 24px 0;
    font-size: 13px;
    color: var(--ink-soft);
  }
  .form-consent input { margin-top: 4px; }
  .form-status {
    margin-top: 16px;
    font-size: 14px;
    font-family: var(--font-mono);
    padding: 12px 0;
    display: none;
  }
  .form-status.success { color: var(--sage); display: block; }
  .form-status.error { color: #A83636; display: block; }

  /* Map */
  /* --------- Leadership --------- */
  .leadership {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(70px, 8vw, 110px) 0;
  }
  .leader-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(40px, 6vw, 84px);
    align-items: start;
  }
  /* Second and subsequent leaders sit below, divided by a hairline. */
  .leader-grid + .leader-grid {
    margin-top: clamp(48px, 6vw, 76px);
    padding-top: clamp(48px, 6vw, 76px);
    border-top: 1px solid var(--line);
  }
  .leader-portrait {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    aspect-ratio: 4 / 5;
  }
  .leader-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Placeholder shown until a real portrait is supplied */
  .leader-portrait--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--ink) 0%, var(--sage) 100%);
  }
  .leader-portrait--empty span {
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 84px);
    color: var(--brass);
    letter-spacing: 0.02em;
  }
  .leader-credential {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .leader-credential span {
    font-family: var(--font-mono);
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mist);
    /* Georgia defaults to old-style figures, which render digits shorter
       than the surrounding capitals. Force lining figures so "20+" and
       "10+" match the height of the words beside them. */
    font-variant-numeric: lining-nums;
    -moz-font-feature-settings: "lnum";
    -webkit-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
  }
  .leader-name {
    margin: 14px 0 6px;
  }
  .leader-role {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
    display: block;
    margin-bottom: 26px;
  }
  .leader-bio p {
    margin-bottom: 20px;
    color: var(--ink-soft);
    font-size: 16.5px;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .leader-exp-label {
    display: block;
    margin: 34px 0 20px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }
  .leader-exp {
    list-style: none;
    display: grid;
    gap: 16px;
  }
  .leader-exp li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    align-items: start;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .leader-exp li::before {
    content: counter(leader-item, decimal-leading-zero);
    counter-increment: leader-item;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brass);
    padding-top: 4px;
    letter-spacing: 0.06em;
  }
  .leader-exp {
    counter-reset: leader-item;
  }
  /* --------- Floating WhatsApp button --------- */
  .wa-float {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(112px, calc(3vw + 96px), 124px);
    z-index: 80;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(15, 20, 25, 0.22);
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .wa-float svg {
    width: 30px;
    height: 30px;
    fill: #FFFFFF;
    display: block;
  }
  @media (hover: hover) {
    .wa-float:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 26px rgba(15, 20, 25, 0.3);
    }
  }
  .wa-float:focus { outline: none; }
  .wa-float:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
  }
  @media (max-width: 640px) {
    .wa-float {
      width: 52px;
      height: 52px;
      right: 16px;
      bottom: 112px;
    }
    .wa-float svg { width: 27px; height: 27px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .wa-float { transition: none; }
  }
  /* ============ Responsive ============ */

  /* Mobile navigation kicks in below 900px so tablets get the menu too */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-desktop-cta { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu {
      position: fixed;
      top: var(--header-h, 70px);
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--paper);
      z-index: 95;
      transform: translateY(-105%);
      transition: transform 0.3s ease;
      padding: 28px var(--pad) 48px;
      display: flex;
      flex-direction: column;
      gap: 0;
      border-top: 1px solid var(--line);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      visibility: hidden;
    }
    .mobile-menu.open { visibility: visible; }
    .mobile-menu.open { transform: translateY(0); }
    .mobile-menu a:not(.btn) {
      font-family: var(--font-display);
      font-size: clamp(28px, 4.5vw, 36px);
      font-weight: 400;
      padding: 16px 0;
      border-bottom: 1px solid var(--line);
      color: var(--ink);
      letter-spacing: -0.01em;
    }
    .mobile-menu .btn {
      display: flex;
      width: 100%;
      margin-top: 28px;
      justify-content: center;
      padding: 16px 22px;
    }
  }

  /* Layout adjustments at tablet-ish sizes */
  @media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .diff-grid,
    .contact-grid,
    .story-grid,
    .final-cta-inner,
    .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-head { grid-template-columns: 1fr; gap: 20px; }
    .story-image, .contact-info { position: static; }
    .markets-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 0; }
    .market { border-bottom: 1px solid var(--line-on-ink); padding-bottom: 16px; }
    .market:nth-child(3n) { border-right: none; }
    .service-cards { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
    .benefit:last-child { border-bottom: none; }
    .benefit:not(:first-child) { padding-left: 0; }
    .quotes { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .how-steps { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .principles-grid { grid-template-columns: 1fr; }
    .service-block { grid-template-columns: 1fr; gap: 20px; }
    .service-block .num { padding-top: 0; }
    .leader-grid { grid-template-columns: 1fr; gap: 34px; }
    /* Second and subsequent leaders sit below, divided by a hairline. */
  .leader-grid + .leader-grid {
    margin-top: clamp(48px, 6vw, 76px);
    padding-top: clamp(48px, 6vw, 76px);
    border-top: 1px solid var(--line);
  }
  .leader-portrait { max-width: 340px; }
    .leader-bio p, .leader-exp li { text-align: left; hyphens: none; -webkit-hyphens: none; }
  }

  /* Small mobile */
  @media (max-width: 640px) {
    .markets-grid { grid-template-columns: repeat(2, 1fr); }
    .market:nth-child(3n) { border-right: 1px solid var(--line-on-ink); }
    .market:nth-child(2n) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .how-steps { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 6px 12px; font-size: 12px; }
    .hero-meta-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
    .hero-meta-value { font-size: 17px; }
    .final-cta-inner { gap: 40px; }
    .service-block { padding: 40px 0; }
  }

  /* Extra small — filter label wraps to its own row so filter buttons breathe */
  @media (max-width: 480px) {
    .filter-label {
      width: 100%;
      margin-right: 0;
      margin-bottom: 6px;
    }
    .hero .h1 br { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
  }
