  :root {
    --paper:      #F1F2F4;
    --surface:    #F8F9FB;
    --surface-2:  #E4E6EA;
    --ink:        #14171C;
    --ink-soft:   #454B55;
    --ink-faint:  #676D78;
    --rule:       #D7DADF;
    --rule-soft:  #E4E6EB;
    --pine:       #3A5A4C;
    --pine-ink:   #2B4739;
    --pine-dim:   #E1E9E5;
    --shadow: 0 1px 2px rgba(17,21,28,.05), 0 12px 28px -12px rgba(17,21,28,.17);

    --f-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper:      #121417;
      --surface:    #191C21;
      --surface-2:  #212429;
      --ink:        #E7EAEE;
      --ink-soft:   #A7AEB9;
      --ink-faint:  #828A96;
      --rule:       #2B3038;
      --rule-soft:  #22262C;
      --pine:       #8FB8A4;
      --pine-ink:   #A8CBB8;
      --pine-dim:   #19241F;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 40px -16px rgba(0,0,0,.55);
    }
  }
  :root[data-theme="dark"] {
    --paper:      #121417; --surface: #191C21; --surface-2: #212429;
    --ink:        #E7EAEE; --ink-soft: #A7AEB9; --ink-faint: #828A96;
    --rule:       #2B3038; --rule-soft: #22262C;
    --pine:       #8FB8A4; --pine-ink: #A8CBB8; --pine-dim: #19241F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 40px -16px rgba(0,0,0,.55);
  }

  * { box-sizing: border-box; }
  html { color-scheme: light dark; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background:
      radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--pine) 7%, transparent), transparent 60%),
      var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 980px; margin: 0 auto; padding-inline: 24px; }
  a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 2px; }
  a:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }

  /* ---- scroll progress ---- */
  .progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: var(--pine); z-index: 60; transition: width .1s linear;
  }

  /* ---- sticky nav ---- */
  header.masthead {
    position: sticky; top: 0; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
  }
  header.masthead.scrolled { border-bottom-color: var(--rule); box-shadow: 0 8px 24px -20px rgba(0,0,0,.4); }
  .wordmark { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
  nav.top { display: flex; gap: 26px; }
  nav.top a { color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none; position: relative; }
  nav.top a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
    background: var(--pine); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  nav.top a:hover::after { transform: scaleX(1); }
  nav.top a:hover { color: var(--ink); }

  /* ---- hero ---- */
  .hero {
    position: relative;
    padding-block: 108px 76px;
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
  }
  .hero-photo {
    position: absolute; inset: 0;
    background-image: url("assets/pavilion.jpg");
    background-size: cover;
    background-position: 62% 45%;
    filter: brightness(1.12) saturate(.88);
    opacity: .46;
    pointer-events: none;
  }
  .hero-photo::after {
    content: "";
    position: absolute; inset: 0;
    background:
      linear-gradient(102deg,
        var(--paper) 0%,
        var(--paper) 17%,
        color-mix(in srgb, var(--paper) 48%, transparent) 41%,
        color-mix(in srgb, var(--paper) 8%, transparent) 70%,
        color-mix(in srgb, var(--paper) 28%, transparent) 100%),
      linear-gradient(to bottom,
        color-mix(in srgb, var(--paper) 30%, transparent) 0%,
        transparent 38%,
        var(--paper) 100%);
  }
  @media (prefers-color-scheme: dark) { .hero-photo { opacity: .26; } }
  :root[data-theme="dark"] .hero-photo { opacity: .26; }
  :root[data-theme="light"] .hero-photo { opacity: .46; }
  @media (max-width: 720px) { .hero-photo { opacity: .34; background-position: 70% 40%; } }
  .hero-motif {
    position: absolute; inset: -20% -10% auto auto; width: 62%; aspect-ratio: 1;
    opacity: .32; pointer-events: none;
  }
  @media (prefers-color-scheme: dark) { .hero-motif { opacity: .2; } }
  :root[data-theme="dark"] .hero-motif { opacity: .2; }
  .hero-inner { position: relative; }
  .hero .eyebrow {
    font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.08em;
    color: var(--pine-ink); margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
  }
  .hero .eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--pine); display: inline-block; }
  h1 {
    font-family: var(--f-display); font-weight: 600; font-style: normal;
    font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.0; letter-spacing: -0.035em;
    margin: 0 0 28px; text-wrap: balance; max-width: 15ch;
  }
  .hero p.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 54ch; margin: 0 0 34px; }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 14.5px;
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
  }
  .btn.primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
  .btn.primary:hover { transform: translateY(-1px); }
  .btn.ghost { color: var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; padding: 13px 2px; }
  .btn.ghost:hover { border-color: var(--ink); }

  /* ---- reveal ---- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

  section { padding-block: 68px; border-bottom: 1px solid var(--rule); }
  section:last-of-type { border-bottom: none; }
  .kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
  .kicker .n { color: var(--pine-ink); }
  h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 22px; text-wrap: balance; }

  /* ---- practice: hover-expand cards ---- */
  .practices {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  }
  @media (max-width: 640px) { .practices { grid-template-columns: 1fr; } }
  .practice {
    background: var(--surface); padding: 30px 28px;
    display: flex; flex-direction: column; gap: 12px;
    transition: background .25s ease;
  }
  .practice:hover { background: var(--surface-2); }
  .practice .num { font-family: var(--f-mono); font-size: 12px; color: var(--pine-ink); }
  .practice .name { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); line-height: 1.25; }
  .practice .desc { color: var(--ink-soft); max-width: 42ch; font-size: 15px; }

  /* ---- pull quote ---- */
  .context p, #philosophy p { max-width: 62ch; color: var(--ink-soft); }
  .context p + p { margin-top: 1em; }
  .context strong { color: var(--ink); font-weight: 600; }

  .contact-block { display: flex; flex-direction: column; gap: 20px; }
  .contact-block p { max-width: 52ch; color: var(--ink-soft); }
  .contact-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .contact-row a.big {
    font-family: var(--f-mono); font-size: 1.1rem; color: var(--ink);
    background: var(--surface-2); padding: 14px 22px; border-radius: 5px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
    transition: background .2s ease, transform .2s ease; box-shadow: var(--shadow);
  }
  .contact-row a.big:hover { background: var(--pine-dim); color: var(--pine); transform: translateY(-1px); }

  footer {
    padding-block: 44px 56px; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-faint);
  }
  footer .fmark { font-family: var(--f-display); font-style: italic; color: var(--ink-soft); }
  footer .entity { font-family: var(--f-mono); font-size: 12px; letter-spacing: .01em; }

  @media (max-width: 520px) {
    .hero { padding-block: 76px 52px; }
    section { padding-block: 48px; }
    .practice { padding: 24px 22px; }
  }
