:root {
    --ink: #14213d;
    --ink-soft: #3d4a63;
    --paper: #faf8f3;
    --paper-dim: #f1eee5;
    --line: #dcd6c6;
    --brass: #a97418;
    --brass-deep: #8a5e14;
    --moss: #445c46;
    --card: #ffffff;
    --shadow: 0 1px 2px rgba(20,33,61,0.06), 0 8px 24px -12px rgba(20,33,61,0.18);
    color-scheme: light dark;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #f3efe4;
      --ink-soft: #c7c2b3;
      --paper: #14181f;
      --paper-dim: #1b2029;
      --line: #333a47;
      --brass: #d9a13c;
      --brass-deep: #e8b558;
      --moss: #8fae8f;
      --card: #1c222c;
      --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 30px -12px rgba(0,0,0,0.5);
    }
  }
  :root[data-theme="dark"] {
    --ink: #f3efe4;
    --ink-soft: #c7c2b3;
    --paper: #14181f;
    --paper-dim: #1b2029;
    --line: #333a47;
    --brass: #d9a13c;
    --brass-deep: #e8b558;
    --moss: #8fae8f;
    --card: #1c222c;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 30px -12px rgba(0,0,0,0.5);
  }

  * { box-sizing: border-box; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-inline: 0;
    padding-block: 0;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, .display {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-weight: 560;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--ink);
  }

  .eyebrow {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-deep);
    display: flex;
    align-items: center;
    gap: 0.6em;
  }
  .eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--brass-deep);
    display: inline-block;
  }

  a { color: inherit; }

  .wrap {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: max(20px, env(safe-area-inset-left, 0px));
  }

  /* ---------- Nav ---------- */
  nav.top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  nav.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 0.4em;
  }
  .wordmark .mark {
    color: var(--brass-deep);
  }
  nav.top .links {
    display: flex;
    gap: 28px;
    font-size: 0.88rem;
    color: var(--ink-soft);
  }
  nav.top .links a:hover { color: var(--ink); }
  .cta-btn {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: opacity 0.15s ease;
  }
  .cta-btn:hover { opacity: 0.82; }

  /* ---------- Hero ---------- */
  header.hero {
    padding-block: 84px 64px;
    border-bottom: 1px solid var(--line);
  }
  header.hero .wrap {
    display: grid;
    gap: 28px;
    max-width: 820px;
  }
  header.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.08;
  }
  header.hero .lede {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 56ch;
  }
  .hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .ghost-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--brass-deep);
    padding-bottom: 2px;
  }

  .stat-band {
    margin-top: 36px;
    display: flex;
    align-items: baseline;
    gap: 28px;
    padding-block: 18px;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
  }
  .stat-band .stat-num {
    font-family: "Fraunces", serif;
    font-size: 1.5rem;
    font-weight: 560;
    color: var(--brass-deep);
    white-space: nowrap;
  }
  .stat-band .stat-detail {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.55;
  }
  .stat-band .stat-detail strong { color: var(--ink); font-weight: 600; }

  /* ---------- Sections ---------- */
  section { padding-block: 72px; border-bottom: 1px solid var(--line); }
  section:last-of-type { border-bottom: none; }
  section .head {
    max-width: 620px;
    margin-bottom: 44px;
  }
  section .head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 10px;
    line-height: 1.15;
  }
  section .head p {
    color: var(--ink-soft);
    font-size: 1.02rem;
    margin-top: 12px;
    line-height: 1.6;
  }

  /* About */
  .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
  }
  .about-grid p {
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--ink-soft);
    margin: 0 0 16px;
  }
  .about-grid p strong { color: var(--ink); font-weight: 600; }

  /* Approach */
  .copy-block { max-width: 640px; }
  .copy-block h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin: 0 0 22px;
  }
  .copy-block p {
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--ink-soft);
    margin: 0 0 16px;
  }
  .diff-row {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .diff-item {
    border-top: 2px solid var(--brass);
    padding: 16px 28px 0 0;
  }
  .diff-item:not(:first-child) {
    border-left: 1px solid var(--line);
    padding-left: 28px;
    margin-left: -1px;
  }
  .diff-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin-bottom: 8px;
  }
  .diff-item p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
  }

  /* Photo band */
  .photo-band {
    position: relative;
    width: 100%;
    height: clamp(220px, 32vw, 360px);
    overflow: hidden;
  }
  .photo-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.75) contrast(1.05);
  }
  .photo-band-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent) 0%, color-mix(in srgb, var(--ink) 62%, transparent) 100%);
    mix-blend-mode: multiply;
  }
  .photo-band-cap {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 100%;
    color: #fdfbf5;
    font-family: "Fraunces", serif;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 560;
    letter-spacing: -0.01em;
  }

  /* Portrait */
  .portrait-frame {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
  }
  .portrait-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: var(--paper-dim);
  }
  .portrait-fallback {
    display: none;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    font-family: "Fraunces", serif;
    font-size: 3rem;
    font-weight: 560;
    color: var(--brass-deep);
    background: var(--paper-dim);
    border: 1px dashed var(--line);
  }
  .portrait-frame.no-photo .portrait-photo { display: none; }
  .portrait-frame.no-photo .portrait-fallback { display: flex; }
  .portrait-cap { margin-top: 14px; }
  .portrait-name { font-weight: 600; font-size: 0.95rem; }
  .portrait-role { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }

  /* Contact */
  .contact-panel {
    background: var(--ink);
    color: var(--paper);
    border-radius: 8px;
    padding: 48px;
    display: grid;
    gap: 22px;
    max-width: 780px;
  }
  .contact-panel h2 {
    color: var(--paper);
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
  .contact-panel p {
    color: color-mix(in srgb, var(--paper) 75%, transparent);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 52ch;
  }
  .contact-panel .email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brass);
    color: #1b1204;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 3px;
    width: fit-content;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
  }
  .contact-panel .email-btn:hover { background: var(--brass-deep); }
  .contact-panel .email-btn { border: none; cursor: pointer; font-family: inherit; }

  .contact-panel form { display: grid; gap: 16px; margin-top: 4px; }
  .contact-panel form[hidden] { display: none; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field { display: grid; gap: 6px; }
  .field label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--paper) 70%, transparent);
  }
  .field input, .field textarea {
    background: color-mix(in srgb, var(--paper) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
    border-radius: 3px;
    padding: 11px 12px;
    color: var(--paper);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
  }
  .field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--paper) 45%, transparent); }
  .field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brass);
  }
  .contact-success {
    background: color-mix(in srgb, var(--paper) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
    border-radius: 4px;
    padding: 16px 18px;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  footer {
    padding-block: 32px 48px;
  }
  footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--ink-soft);
  }
  footer .footer-links {
    display: flex;
    gap: 18px;
  }
  footer .wrap a {
    color: var(--ink-soft);
    text-decoration: none;
  }
  footer .wrap a:hover {
    color: var(--brass);
  }

  /* ---------- Page header (Services / Insights) ---------- */
  header.page-header {
    padding-block: 64px 48px;
    border-bottom: 1px solid var(--line);
  }
  header.page-header .wrap {
    display: grid;
    gap: 18px;
    max-width: 760px;
  }
  header.page-header h1 {
    font-size: clamp(1.9rem, 4.4vw, 2.8rem);
    line-height: 1.12;
  }
  header.page-header .lede {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 60ch;
  }
  .article-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  /* ---------- Prose (article/service content blocks) ---------- */
  .prose { max-width: 700px; }
  .prose-block + .prose-block { margin-top: 44px; }
  .prose-block h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    line-height: 1.22;
    margin: 0 0 14px;
  }
  .prose-block p {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--ink-soft);
    margin: 0 0 16px;
  }
  .prose-block p:last-child { margin-bottom: 0; }
  .prose-block p strong { color: var(--ink); font-weight: 600; }
  .prose-intro {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 680px;
    margin-bottom: 48px;
  }
  .prose-intro strong { color: var(--ink); font-weight: 600; }

  .back-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
  }
  .back-link:hover { color: var(--ink); }

  @media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-grid .portrait-frame { max-width: 220px; margin-inline: auto; }
    .stat-band { flex-direction: column; align-items: flex-start; gap: 6px; }
    .diff-row { grid-template-columns: 1fr; gap: 24px; }
    .diff-item:not(:first-child) { border-left: none; padding-left: 0; margin-left: 0; }
    nav.top .links { display: none; }
    .contact-panel { padding: 32px 24px; }
    .field-row { grid-template-columns: 1fr; }
  }
