  :root {
    --paper: #EEF2EE;
    --paper-2: #E3EAE4;
    --ink: #17221F;
    --muted: #46584F;
    --rule: #BFCCC3;
    --contour: #9DB3A7;
    --brass: #85600F;
    --brass-line: #A47A14;
    --btn-bg: #1E3A33;
    --btn-ink: #F1F6F2;
    --band-bg: #1E3A33;
    --band-ink: #EAF1EC;
    --band-muted: #B6C8BE;
    --band-rule: #3F5E54;
    --band-accent: #E2BC5A;
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #0F1916;
      --paper-2: #15231F;
      --ink: #E6EEE9;
      --muted: #A5B7AE;
      --rule: #2C403A;
      --contour: #2F4A42;
      --brass: #D8AE45;
      --brass-line: #D8AE45;
      --btn-bg: #D8AE45;
      --btn-ink: #14201C;
      --band-bg: #1A3029;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #0F1916;
    --paper-2: #15231F;
    --ink: #E6EEE9;
    --muted: #A5B7AE;
    --rule: #2C403A;
    --contour: #2F4A42;
    --brass: #D8AE45;
    --brass-line: #D8AE45;
    --btn-bg: #D8AE45;
    --btn-ink: #14201C;
    --band-bg: #1A3029;
    color-scheme: dark;
  }

  *, *::before, *::after { box-sizing: inherit; }
  html { height: 100%; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem); scroll-behavior: smooth; }
  body {
    margin: 0;
    min-height: 100%;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--paper);
    z-index: 10;
  }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--brass-line); outline-offset: 3px; border-radius: 2px; }

  .wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }

  /* Header */
  header.site {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; }
  .mark {
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-weight: 650;
    font-size: 1.05rem;
    letter-spacing: -0.005em;
    text-decoration: none;
  }
  nav.main { display: flex; gap: 1.75rem; font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; font-size: 0.95rem; }
  nav.main a { text-decoration: none; color: var(--muted); padding-block: 0.25rem; border-bottom: 1px solid transparent; }
  nav.main a:hover { color: var(--ink); border-bottom-color: var(--brass-line); }
  @media (max-width: 760px) { nav.main a:not(.keep) { display: none; } }

  /* Hero */
  .hero { position: relative; overflow: hidden; min-height: min(46rem, 82vh); display: flex; align-items: center; border-bottom: 1px solid var(--rule); }
  #terrain { position: absolute; top: 0; right: 0; width: 78%; height: 100%; opacity: 1; }
  @media (max-width: 860px) { #terrain { width: 100%; opacity: 0.55; } }
  #lines path { fill: none; stroke: var(--contour); stroke-linecap: round; stroke-linejoin: round; }
  #lines .minor { stroke-width: 1; opacity: 0.8; }
  #lines .major { stroke-width: 1.7; }
  #route { fill: none; stroke: var(--brass-line); stroke-width: 2.4; stroke-linecap: round; }
  #summit { fill: var(--brass-line); }
  .js #route { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js #summit { opacity: 0; }
  .js.go #route { stroke-dashoffset: 0; transition: stroke-dashoffset 4.5s cubic-bezier(.4,.1,.3,1) 0.7s; }
  .js.go #summit { opacity: 1; transition: opacity 0.6s ease 5.2s; }

  .hero .wrap { position: relative; z-index: 1; padding-block: 5rem; }
  h1 {
    margin: 0 0 1.5rem;
    max-width: 16ch;
    text-wrap: balance;
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 7.4vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
  }
  .lede { max-width: 34rem; margin: 0 0 2.25rem; font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
  .actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; align-items: center; font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; }
  .btn {
    display: inline-block;
    padding: 0.8rem 1.35rem;
    background: var(--btn-bg);
    color: var(--btn-ink);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 3px;
  }
  .btn:hover { filter: brightness(1.12); }
  .text-link { font-weight: 500; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: 0.3em; text-decoration-thickness: 1.5px; }

  /* Sections */
  section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
  h2 {
    margin: 0 0 1rem;
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
  h3 {
    margin: 0 0 0.35rem;
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  p { margin: 0 0 1rem; max-width: 40rem; }
  .muted { color: var(--muted); }

  .rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
  .rows li { padding: 1.35rem 0 1.4rem; border-bottom: 1px solid var(--rule); }
  .rows p { margin: 0; color: var(--muted); font-size: 1rem; }

  /* Approach band */
  .band { background: var(--band-bg); color: var(--band-ink); }
  .band .muted, .band p { color: var(--band-muted); }
  .band .big {
    margin: 0 0 3rem;
    max-width: 24ch;
    color: var(--band-ink);
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
  }
  .band .big em { font-family: inherit; font-style: italic; font-weight: 500; }
  .principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--band-rule); }
  @media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
  .principles div { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--band-rule); }
  .principles h3 { color: var(--band-accent); }
  .principles p { margin: 0; font-size: 1rem; }

  /* Principal */
  .facts { margin: 0; padding: 0; border-top: 1px solid var(--rule); }
  .facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.5rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
  @media (max-width: 560px) { .facts div { grid-template-columns: 1fr; } }
  .facts dt { font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 1rem; }
  .facts dd { margin: 0; color: var(--muted); font-size: 1rem; }
  .facts dd strong { color: var(--ink); font-weight: 500; }

  /* Writing */
  .writing { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
  .writing li { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
  @media (max-width: 640px) { .writing li { grid-template-columns: 1fr; } }
  .writing a { font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 1.1rem; line-height: 1.3; text-decoration: none; background-image: linear-gradient(var(--brass-line), var(--brass-line)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.2s ease; }
  .writing a:hover { background-size: 100% 1.5px; }
  .writing .meta { color: var(--muted); font-size: 0.95rem; }
  .writing .when { color: var(--muted); font-size: 0.95rem; white-space: nowrap; text-align: right; }
  @media (max-width: 640px) { .writing .when { text-align: left; } }
  .media-note { margin-top: 1.75rem; color: var(--muted); font-size: 1rem; max-width: 46rem; }

  /* Contact */
  .contact { background: var(--paper-2); border-top: 1px solid var(--rule); }
  .contact h2 { max-width: 16ch; }
  .email { font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: -0.01em; text-underline-offset: 0.25em; text-decoration-color: var(--brass-line); text-decoration-thickness: 2px; }

  footer.site { padding-block: 2rem 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
  footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
  footer.site p { margin: 0; max-width: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js.go #route, .js.go #summit { transition: none; }
  }

  #terrain { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
  @media (max-width: 860px) { #terrain { -webkit-mask-image: none; mask-image: none; } }
  nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass-line); }
  .more { margin-top: 2rem; font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; font-weight: 500; }
  .more a { text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: 0.3em; text-decoration-thickness: 1.5px; }

  /* Writing page */
  .page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
  .page-head h1 { max-width: none; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1rem; }
  .page-head p { max-width: 38rem; font-size: 1.2rem; line-height: 1.55; margin: 0; }
  .group { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
  .group h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1.1rem; }
  .group .writing li:first-child { border-top: 0; }

  /* Photos */
  .photo { margin: 2rem 0 0; }
  .photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
  .headshot { margin: 1.75rem auto 0; width: min(15rem, 100%); }
  .headshot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; mix-blend-mode: multiply; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .headshot img { mix-blend-mode: normal; } }
  :root[data-theme="dark"] .headshot img { mix-blend-mode: normal; }
  @media (min-width: 861px) {
    #services .split > div:first-child { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); }
  }
