
  /* ========== Reset + Root ========== */
  :root {
    --bg: #0a0a0a;
    --ink: #f1f1f1;
    --ink-muted: #79818a;
    --hairline: rgba(234, 237, 245, 0.12);
    --accent: #71A1D2;
    --accent-hover: #4075A7;
    --nav-bg: rgba(10, 10, 10, 0.7);
    --nav-bg-scrolled: rgba(10, 10, 10, 0.88);
    --nav-cta: #0a0a0a;
    --mobile-nav-bg: rgba(10, 10, 10, 0.97);
    --card-hover-bg: rgba(234, 237, 245, 0.02);
    --btn-secondary-hover-bg: rgba(237, 234, 245, 0.03);
    --nav-height: 68px;
  }

  [data-theme="light"] {
    --bg: #f1f1f1;
    --ink: #12151a;
    --ink-muted: #59606b;
    --hairline: rgba(18, 20, 26, 0.14);
    --accent: #4075A7;
    --accent-hover: #71A1D2;
    --nav-bg: rgba(241, 241, 241, 0.7);
    --nav-bg-scrolled: rgba(241, 241, 241, 0.88);
    --nav-cta: #f1f1f1;
    --mobile-nav-bg: rgba(241, 241, 241, 0.97);
    --card-hover-bg: rgba(245, 241, 234, 0.7);
    --btn-secondary-hover-bg: rgba(245, 241, 234, 0.7);
  }
  
 /* Services section as an inverted "intermission" — flips relative to page theme */
  .services {
    --bg: #101116;
    --ink: #f1f1f1;
    ---accent: #748cd4;
    background-color: var(--bg);
    color: var(--ink);
  }
 
  [data-theme="light"] .services {
    --bg: #E7E4DE;
    --ink: #12151a;
    --ink-muted: #59606b;
    --hairline: rgba(18, 20, 26, 0.14);
    ---accent: #748cd4;
    background-color: var(--bg);
    color: var(--ink);
  }


  /* Smooth theme transitions */
  body, .nav, .nav-link, .nav-cta, .btn, .service-card, .quote-card,
  .logo-img, .footer-bar, .nav-toggle span, .theme-toggle, .theme-toggle svg,
  .stat-bar, .quotes-grid, .services-grid, .meta-strip, .expectations,
  .hero-quote, .capability, .col-right-label, .attribution-tag,
  .email-fallback a {
    transition-property: background-color, color, border-color, fill, stroke;
    transition-duration: 0.4s;
    transition-timing-function: ease;
  }

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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
  }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Geist', system-ui, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
  }

  /* ========== Shared ========== */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  section {
    padding: 5.5rem 0;
    scroll-margin-top: var(--nav-height);
  }

  .eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .eyebrow::before {
    content: '';
    width: 28px;
    height: 4px;
    background: var(--accent);
  }

  .headline {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.018em;
  }

  .headline em {
    font-style: italic;
    color: var(--accent);
  }

  /* ========== Navigation ========== */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .nav.scrolled {
    background: var(--nav-bg-scrolled);
    border-bottom-color: var(--hairline);
  }

  .nav-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--ink);
  }

  .nav-brand-mark {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
  }

  .nav-brand-text {
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
  }

  .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }

  .nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
  }

  .nav-link:hover {
    color: var(--ink);
  }

  .nav-link.active {
    color: var(--ink);
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-cta);
    background: var(--accent);
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid var(--accent);
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  .nav-cta:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }

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

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  }

  .nav-toggle span:nth-child(2) { width: 16px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { width: 22px; transform: translateY(-6px) rotate(-45deg); }

  /* Theme toggle */
  .theme-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 2px;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .theme-toggle:hover {
    border-color: var(--ink-muted);
    background: var(--btn-secondary-hover-bg);
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .theme-toggle:hover svg { transform: rotate(20deg); }

  .theme-toggle .icon-moon { display: none; }
  [data-theme="light"] .theme-toggle .icon-sun { display: none; }
  [data-theme="light"] .theme-toggle .icon-moon { display: block; }

  /* ========== Hero ========== */
  .hero {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 5rem;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 5.5vw, 4.75rem);
    max-width: 18ch;
    margin-bottom: 1.75rem;
  }

  .hero-subhead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 52ch;
    margin-bottom: 0;
  }

  /* Hero two-column: text + portrait */
  .hero-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 5rem;
  }

  .hero-text { min-width: 0; }

  .hero-portrait {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .hero-portrait img {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: border-color 0.4s ease;
  }

  .stat-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 2.5rem 0;
    margin-bottom: 3.5rem;
  }

  .stat {
    padding: 0 2rem;
    border-right: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: none; padding-right: 0; }

  .stat-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    font-weight: 400;
  }
  .stat-number .unit {
    font-size: 0.55em;
    color: var(--ink-muted);
    margin-left: 0.1em;
  }
  .stat-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
  }
  .stat-context {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-muted);
    max-width: 24ch;
  }

  .logo-wall-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.75rem;
  }

  .logo-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem 2.5rem;
  }

  .logo-img {
    height: 20px;
    width: auto;
    display: block;
    opacity: 0.62;
    /* Dark mode: white logos (the source SVGs already render in white/light) */
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, filter 0.4s ease;
  }

  /* Light mode: dark logos */
  [data-theme="light"] .logo-img {
    filter: brightness(0);
    opacity: 0.72;
  }

  /* ========== About ========== */
  .about-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .about-headline {
    font-size: clamp(2rem, 4.25vw, 3.5rem);
    margin-bottom: 2rem;
  }

  .about-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 1.25rem;
    max-width: 56ch;
  }
  .about-body p.muted { color: var(--ink-muted); }
  .about-body p:last-child { margin-bottom: 0; }

  .col-right-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--hairline);
  }

  .capability-list { list-style: none; }

  .capability {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 0.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--hairline);
    align-items: baseline;
  }
  .capability:last-child { border-bottom: none; }

  .capability-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
  }
  .capability-text {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink);
  }

  .meta-strip {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hairline);
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
  }
  .meta-item { display: flex; flex-direction: column; gap: 0.4rem; }
  .meta-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  .meta-value { font-size: 0.9375rem; color: var(--ink); }

  /* ========== Services ========== */
  .services-header,
  .testimonials-header {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 4.5rem;
  }

  .services .headline,
  .testimonials .headline {
    font-size: clamp(2rem, 4.25vw, 3.5rem);
  }

  .lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 44ch;
    padding-top: 0.75rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hairline);
    border-left: 1px solid var(--hairline);
  }

  .service-card {
    padding: 2.5rem 2.25rem;
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: background 0.3s ease;
  }
  .service-card:hover { background: var(--card-hover-bg); }

  .service-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
  }
  .service-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-top: 0.25rem;
  }
  .service-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink-muted);
  }

  /* ========== Testimonials ========== */
  .hero-quote {
    padding: 0 0 5rem;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 5rem;
  }

  .quote-glyph {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 7rem;
    color: var(--accent);
    line-height: 0.8;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.85;
  }

  .hero-quote-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.5rem, 2.75vw, 2.25rem);
    line-height: 1.3;
    letter-spacing: -0.012em;
    color: var(--ink);
    max-width: 28ch;
    margin-bottom: 2.5rem;
  }

  .hero-attribution {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .attribution-bar {
    width: 28px;
    height: 3px;
    background: var(--accent);
  }
  .attribution-text {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--ink-muted);
  }
  .attribution-text strong { color: var(--ink); font-weight: 500; }
  .attribution-tag {
    display: inline-block;
    margin-left: 0.75rem;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--hairline);
    padding: 3px 8px;
    border-radius: 2px;
    vertical-align: 2px;
  }

  .quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hairline);
    border-left: 1px solid var(--hairline);
  }

  .quote-card {
    padding: 2.5rem 2.25rem;
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }
  .quote-card-text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink);
    flex: 1;
  }
  .quote-card-attribution {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
  }
  .quote-card-name { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
  .quote-card-role { font-size: 0.75rem; color: var(--ink-muted); }
  .quote-card-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    align-self: flex-start;
    border: 1px solid var(--hairline);
    padding: 3px 8px;
    border-radius: 2px;
    vertical-align: 2px;
  }

  /* ========== CTA ========== */
  .cta-section .headline {
    font-size: clamp(2.5rem, 5.5vw, 4.75rem);
    margin-bottom: 1.75rem;
    max-width: 24ch;
  }

  .cta-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-muted);
    max-width: 52ch;
    margin-bottom: 3.5rem;
  }

  .expectations {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
    margin-bottom: 3.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

  .expectation { display: flex; align-items: baseline; gap: 0.75rem; }
  .expectation-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
  }
  .expectation-text { font-size: 0.9375rem; color: var(--ink); }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.75rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.75rem;
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s ease;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--accent);
    color: var(--nav-cta);
    border: 1px solid var(--accent);
  }
  .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
  }
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--hairline);
  }
  .btn-secondary:hover {
    border-color: var(--ink-muted);
    background: var(--btn-secondary-hover-bg);
  }
  .btn-arrow { font-size: 1rem; line-height: 1; transition: transform 0.25s ease; }
  .btn-primary:hover .btn-arrow { transform: translateX(3px); }
  .btn-secondary:hover .btn-arrow { transform: translate(2px, -2px); }

  .btn-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }
  .btn-secondary:hover .btn-icon { transform: scale(1.08); }

  .email-fallback { font-size: 0.875rem; color: var(--ink-muted); }
  .email-fallback a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--hairline);
    transition: border-color 0.25s ease;
  }
  .email-fallback a:hover { border-color: var(--accent); }

  /* ========== Footer bar ========== */
  .footer-bar {
    border-top: 1px solid var(--hairline);
    padding: 2rem 0;
  }
  .footer-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .colophon {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: var(--ink-muted);
  }
  .colophon .sep { color: var(--hairline); }
  .availability {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--ink-muted);
  }
  .availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ec491;
    box-shadow: 0 0 0 3px rgba(110, 196, 145, 0.15);
    animation: pulse 2.5s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
  }

  /* ========== Responsive ========== */
  @media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
      display: flex;
      position: absolute;
      top: var(--nav-height);
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: var(--mobile-nav-bg);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--hairline);
      padding: 1rem 2rem 2rem;
    }
    .nav-links.open li { width: 100%; }
    .nav-links.open .nav-link {
      display: block;
      padding: 1rem 0;
      font-size: 1.0625rem;
      border-bottom: 1px solid var(--hairline);
    }

    .stat-bar { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
    .stat {
      padding: 0;
      border-right: none;
      border-bottom: 1px solid var(--hairline);
      padding-bottom: 2rem;
    }
    .stat:last-child { border-bottom: none; padding-bottom: 0; }
    .logo-wall { gap: 1.5rem 2rem; }

    .hero-top {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      margin-bottom: 3.5rem;
    }
    .hero-portrait {
      justify-content: flex-start;
      order: -1;
    }
    .hero-portrait img {
      max-width: 220px;
    }

    .about-grid,
    .services-header,
    .testimonials-header {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
    .lead { padding-top: 0; }

    .services-grid,
    .quotes-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .meta-strip { gap: 2rem; }
    .footer-bar-inner { flex-direction: column; align-items: flex-start; }
  }

  @media (max-width: 600px) {
    .container { padding: 0 1.5rem; }
    .services-grid,
    .quotes-grid { grid-template-columns: 1fr; }
    .service-card, .quote-card { padding: 2rem 1.5rem; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .quote-glyph { font-size: 5rem; }
    section { padding: 3.5rem 0; }
    .hero { padding-top: calc(var(--nav-height) + 3rem); }
  }