/* David Kalb, California Contractor Licensing Consultant */

@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-display-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-display-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/libre-franklin-var.woff2") format("woff2");
}

:root {
  --stone: #f4f5f2;
  --stone-2: #e9ece7;
  --white: #ffffff;
  --ink: #16201d;
  --ink-2: #46534f;
  --spruce: #16352f;
  --spruce-2: #1d443c;
  --spruce-3: #0f2622;
  --link: #1f5e52;
  --on-dark: #eef2ef;
  --on-dark-2: #b9ccc5;
  --rule: rgba(22, 53, 47, 0.16);
  --rule-strong: rgba(22, 53, 47, 0.42);
  --rule-dark: rgba(238, 242, 239, 0.22);
  --error: #9b2b1f;

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --sans: "Libre Franklin", "Franklin Gothic Book", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  --step-3: clamp(2rem, 1.45rem + 1.9vw, 3.05rem);
  --step-4: clamp(2.7rem, 1.6rem + 3.6vw, 4.6rem);

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 76rem;
  --section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--spruce);
  scrollbar-color: var(--spruce-2) var(--stone-2);
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
::selection { background: var(--spruce); color: var(--on-dark); }
.dark ::selection { background: var(--on-dark); color: var(--spruce); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

h1, h2, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); line-height: 1.08; }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
.dark a { color: var(--on-dark); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--on-dark); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--white); color: var(--spruce); padding: 0.75rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 66ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Dark spruce regions */
.dark { background: var(--spruce); color: var(--on-dark); }
.dark .muted, .dark p.lede { color: var(--on-dark-2); }
.muted { color: var(--ink-2); }

/* Header */
.site-head { position: relative; z-index: 3; }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-top: 1.4rem; padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule-dark);
}
.brand { display: grid; gap: 0.1rem; text-decoration: none; color: var(--on-dark); line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -0.01em; }
.brand-desc { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--on-dark-2); }
.dark .brand { color: var(--on-dark); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; }
.nav a {
  color: var(--on-dark); text-decoration: none; font-size: 0.975rem; font-weight: 500;
  padding: 0.35rem 0; border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.nav a:hover { border-bottom-color: var(--on-dark-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--on-dark); }
.nav .tel {
  font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap;
  border: 1px solid var(--rule-dark); padding: 0.55rem 0.9rem;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav .tel:hover { background: var(--spruce-2); border-color: var(--on-dark-2); }
.menu-btn {
  display: none; align-items: center; gap: 0.6rem;
  background: none; color: var(--on-dark); border: 1px solid var(--rule-dark);
  font: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.55rem 0.9rem; cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .js .menu-btn { display: inline-flex; }
  .nav { gap: 1rem; }
  .js .nav-panel { display: none; }
  .js .nav-panel.open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--spruce-3); padding: 1rem var(--gutter) 1.75rem;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  }
  .nav-panel ul { flex-direction: column; gap: 0; }
  .nav-panel li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--rule-dark); font-size: 1.1rem; }
  .nav-panel li a[aria-current="page"] { border-bottom-color: var(--rule-dark); text-decoration: underline; text-underline-offset: 0.3em; }
  html:not(.js) .nav { flex-wrap: wrap; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 1.2rem; }
}
@media (max-width: 560px) {
  .nav .tel { display: none; }
  .brand-name { font-size: 1.5rem; }
}

/* Hero (home) */
.hero { padding-bottom: clamp(3.5rem, 6vw, 6rem); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5.5rem); align-items: end;
  padding-top: clamp(2.5rem, 5vw, 5rem);
}
.hero h1 { max-width: 13em; }
.hero .lede { font-size: var(--step-1); line-height: 1.55; margin-top: 1.6rem; max-width: 34em; }
.scope {
  margin-top: 2rem; padding: 1.05rem 0;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  font-weight: 600; font-size: 1.0625rem; max-width: 36em;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; margin-top: 2.2rem; }
.phone-line { display: grid; line-height: 1.25; }
.phone-line small { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--on-dark-2); }
.phone-line a { font-size: 1.375rem; font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.phone-line a:hover { text-decoration: underline; }

.portrait { margin: 0; }
.portrait .frame { position: relative; }
.portrait img {
  width: 100%; aspect-ratio: 33 / 40; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.portrait .frame::after {
  content: ""; position: absolute; inset: 0.9rem; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.portrait figcaption { margin-top: 0.9rem; font-size: 0.875rem; color: var(--on-dark-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--spruce); color: var(--on-dark);
  border: 1px solid var(--spruce); font: inherit; font-weight: 650; font-size: 1.0625rem;
  padding: 0.95rem 1.5rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), gap 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--spruce-2); gap: 1rem; text-decoration: none; }
.dark .btn { background: var(--on-dark); color: var(--spruce); border-color: var(--on-dark); }
.dark .btn:hover { background: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Page header (inner pages) */
.page-head { padding-bottom: clamp(3rem, 5vw, 5rem); }
.page-head .inner { padding-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: 1.4rem; }
.page-head .inner.has-aside { grid-template-columns: minmax(0, 1fr) 19rem; column-gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.page-head .inner.has-aside > :not(.head-call) { grid-column: 1; }
.head-call { grid-column: 2; grid-row: 1 / span 4; align-self: end; border: 1px solid var(--rule-dark); padding: 1.4rem 1.5rem; display: grid; gap: 0.35rem; }
.head-call small { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--on-dark-2); }
.head-call a { font-size: 1.5rem; font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.head-call a:hover { text-decoration: underline; }
.head-call p { font-size: 0.95rem; color: var(--on-dark-2); }
@media (max-width: 860px) {
  .page-head .inner.has-aside { grid-template-columns: 1fr; }
  .head-call { grid-column: 1; grid-row: auto; }
}
.page-head h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.1rem); max-width: 16em; }
.page-head .lede { font-size: var(--step-1); line-height: 1.55; max-width: 38em; }
.crumbs { font-size: 0.875rem; color: var(--on-dark-2); }
.crumbs a { color: var(--on-dark-2); }
.updated { font-size: 0.875rem; color: var(--on-dark-2); }

/* Sections */
.section { padding: var(--section) 0; }
.section.rule-top { border-top: 1px solid var(--rule); }
.section.rule-top + .section.rule-top, .section:not(.band-white):not(.dark) + .section.rule-top { padding-top: var(--section); }
.band-white { background: var(--white); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head p { max-width: 40em; color: var(--ink-2); font-size: 1.125rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.split .section-head { margin-bottom: 0; align-content: start; position: sticky; top: 2rem; }

/* Career timeline */
.timeline-wrap { padding: var(--section) 0; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; padding-top: 2.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0.55rem; height: 1px;
  background: var(--rule-strong); transform-origin: left center;
}
.timeline li { position: relative; padding-right: 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; top: -2.15rem; left: 0;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--white); border: 1px solid var(--spruce);
}
.timeline li.now::before { background: var(--spruce); }
.timeline .year { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 1.5rem + 2.2vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--spruce); }
.timeline .what { display: block; margin-top: 0.85rem; font-weight: 650; line-height: 1.35; }
.timeline .detail { display: block; margin-top: 0.4rem; font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }

/* Signature moment: the rule, markers and years are complete at rest. As the timeline enters view,
   a darker stroke runs along the rule and each marker fills in order. Nothing is ever hidden. */
.timeline::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(0.55rem - 0.5px); height: 2px;
  background: var(--spruce); transform: scaleX(1); transform-origin: left center;
}
.js .timeline.will-reveal::after { transform: scaleX(0); transition: transform 2s var(--ease); }
.js .timeline.will-reveal.in::after { transform: scaleX(1); }
.js .timeline.will-reveal li::before { transition: background-color 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.js .timeline.will-reveal.in li::before { box-shadow: 0 0 0 5px rgba(22, 53, 47, 0.1); }
.js .timeline.will-reveal.in li.now::before { box-shadow: 0 0 0 6px rgba(22, 53, 47, 0.16); }
.timeline.in li:nth-child(2)::before, .timeline.in li:nth-child(2) .year { transition-delay: 0.25s; }
.timeline.in li:nth-child(3)::before, .timeline.in li:nth-child(3) .year { transition-delay: 0.5s; }
.timeline.in li:nth-child(4)::before, .timeline.in li:nth-child(4) .year { transition-delay: 0.75s; }
.timeline.in li:nth-child(5)::before, .timeline.in li:nth-child(5) .year { transition-delay: 1s; }
.timeline.in li:nth-child(6)::before, .timeline.in li:nth-child(6) .year { transition-delay: 1.25s; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 2rem; gap: 2rem; }
  .timeline::before { left: 0.35rem; right: auto; top: 0.3rem; bottom: 0.3rem; width: 1px; height: auto; transform-origin: center top; }
  .timeline::after { left: calc(0.35rem - 0.5px); right: auto; top: 0.3rem; bottom: 0.3rem; width: 2px; height: auto; transform-origin: center top; }
  .js .timeline.will-reveal::after { transform: scaleY(0); }
  .js .timeline.will-reveal.in::after { transform: scaleY(1); }
  .timeline li { padding-right: 0; }
  .timeline li::before { top: 0.75rem; left: -2rem; }
  .timeline .year { display: inline; }
}

/* Question index */
.questions { list-style: none; border-top: 1px solid var(--rule-strong); }
.questions li { border-bottom: 1px solid var(--rule); }
.questions a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 2rem; align-items: start;
  padding: 1.5rem 0; text-decoration: none; color: var(--ink);
}
.questions .q { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.01em; }
.questions .topic { grid-column: 1; font-size: 0.95rem; color: var(--ink-2); }
.questions .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--rule-strong); color: var(--spruce); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.questions .arrow svg { width: 18px; height: 18px; }
.questions a:hover .q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.questions a:hover .arrow { background: var(--spruce); color: var(--on-dark); transform: translateX(4px); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--spruce); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--spruce); margin-bottom: 1rem; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Reasons to retain */
.points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--rule-strong); }
.points li { padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--rule); }
.points h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.points p { color: var(--ink-2); max-width: 34em; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* Does / does not */
.role { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.role h3 { padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule-strong); margin-bottom: 0.4rem; }
.role ul { list-style: none; }
.role li { padding: 0.9rem 0 0.9rem 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.role li svg { position: absolute; left: 0; top: 1.15rem; width: 18px; height: 18px; color: var(--spruce); }
.role .not li svg { color: var(--ink-2); }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; } }

/* Statement band */
.statement { background: var(--stone-2); padding: var(--section) 0; }
.statement blockquote { font-family: var(--serif); font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.012em; max-width: 22em; text-wrap: balance; }
.statement p { margin-top: 1.5rem; color: var(--ink-2); max-width: 40em; font-size: 1.125rem; }
.statement.dark { background: var(--spruce-2); }
.statement.dark p { color: var(--on-dark-2); }
.statement.dark blockquote { padding-top: 1.75rem; border-top: 1px solid var(--rule-dark); }

/* Bibliography */
.works { list-style: none; border-top: 1px solid var(--rule-strong); }
.works li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.works .when { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--spruce); }
.works cite { font-style: italic; }
.works .title { font-weight: 650; }
@media (max-width: 560px) { .works li { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Prose (issue pages, FAQ, privacy) */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.4rem); margin-top: 3.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2.25rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--spruce); }
.prose .key {
  border-top: 2px solid var(--spruce); border-bottom: 1px solid var(--rule-strong);
  padding: 1.25rem 0; font-size: 1.125rem; font-weight: 550;
}
.aside { position: sticky; top: 2rem; display: grid; gap: 2rem; font-size: 0.975rem; }
.aside h2 a { color: inherit; }
.aside h2 { font-family: var(--sans); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.75rem; }
.aside ul { list-style: none; border-top: 1px solid var(--rule-strong); }
.aside li { border-bottom: 1px solid var(--rule); }
.aside li a { display: block; padding: 0.7rem 0; text-decoration: none; color: var(--ink); }
.aside li a:hover { color: var(--link); text-decoration: underline; }
.aside li a[aria-current="page"] { font-weight: 650; color: var(--spruce); }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } .aside { position: static; } }

.note { font-size: 0.9375rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.5rem; }
.reach + .note { border-top: 0; padding-top: 0; margin-top: 1.5rem; }

/* FAQ */
.faq { list-style: none; border-top: 1px solid var(--rule-strong); }
.faq > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 5vw, 5rem); padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.faq h2 { font-size: var(--step-2); line-height: 1.2; }
.faq .a > * + * { margin-top: 0.9rem; }
@media (max-width: 760px) { .faq > li { grid-template-columns: 1fr; } }

/* About */
.about-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-intro .prose p:first-child { font-size: var(--step-1); line-height: 1.55; }
.about-intro .portrait figcaption { color: var(--ink-2); }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } .about-intro .portrait { max-width: 24rem; } }

.career { list-style: none; border-top: 1px solid var(--rule-strong); }
.career li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem 2.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.career .when { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--spruce); font-variant-numeric: lining-nums; }
.career h3 { margin-bottom: 0.4rem; }
.career p { color: var(--ink-2); }
@media (max-width: 640px) { .career li { grid-template-columns: 1fr; gap: 0.4rem; } }

/* CV */
.cv { background: var(--white); border: 1px solid var(--rule); padding: clamp(1.5rem, 5vw, 4rem); max-width: 54rem; }
.cv header { border-bottom: 2px solid var(--spruce); padding-bottom: 1.25rem; margin-bottom: 1.75rem; }
.cv header h2 { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); }
.cv header p { color: var(--ink-2); margin-top: 0.4rem; }
.cv section + section { margin-top: 2rem; }
.cv h3 { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--spruce); border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.cv .entry + .entry { margin-top: 1.25rem; }
.cv .entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; font-weight: 650; }
.cv .entry-head span { font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cv .entry p, .cv .entry ul { margin-top: 0.4rem; color: var(--ink); }
.cv ul { padding-left: 1.2rem; }
.cv li + li { margin-top: 0.25rem; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-bottom: 2rem; }

/* Contact close and form */
.close { padding: var(--section) 0; }
.close-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.close h2 { max-width: 11em; }
.close .lede { margin-top: 1.25rem; font-size: 1.125rem; max-width: 30em; }
.reach { list-style: none; margin-top: 2.25rem; border-top: 1px solid var(--rule-dark); }
.reach li { padding: 1rem 0; border-bottom: 1px solid var(--rule-dark); display: grid; gap: 0.15rem; }
.reach small { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--on-dark-2); }
.reach a, .reach span { font-size: 1.1875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.reach a { text-decoration: none; overflow-wrap: anywhere; }
.reach a:hover { text-decoration: underline; }
.light .reach { border-top-color: var(--rule-strong); }
.light .reach li { border-bottom-color: var(--rule); }
.light .reach small { color: var(--ink-2); }
.light .reach a { color: var(--ink); }
@media (max-width: 860px) { .close-grid, .split { grid-template-columns: 1fr; } .split .section-head { position: static; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.5rem; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.95rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.dark .field label .opt { color: var(--on-dark-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: 0;
  padding: 0.8rem 0.9rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dark .field input, .dark .field select, .dark .field textarea { border-color: transparent; }
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316352f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.dark .field input:focus-visible, .dark .field select:focus-visible, .dark .field textarea:focus-visible { outline-color: var(--on-dark); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: #5c6965; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field .hint { font-size: 0.875rem; color: var(--ink-2); }
.dark .field .hint { color: var(--on-dark-2); }
.form-note { font-size: 0.9375rem; color: var(--ink-2); }
.dark .form-note { color: var(--on-dark-2); }
.form-error { background: #fbeceA; color: var(--error); border: 1px solid var(--error); padding: 0.9rem 1rem; font-weight: 600; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--spruce-3); color: var(--on-dark-2); padding: 3.5rem 0 2.5rem; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule-dark); }
.site-foot .brand-name { color: var(--on-dark); }
.site-foot ul { list-style: none; display: grid; gap: 0.45rem; align-content: start; }
.site-foot a { color: var(--on-dark); }
.site-foot .disclaimer { margin-top: 1rem; max-width: 34em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.5rem; font-size: 0.875rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Hero entrance: one load moment, content visible without JS */
.js .hero .rise { opacity: 0; transform: translateY(14px); }
.js .hero.ready .rise { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero.ready .rise:nth-child(2) { transition-delay: 0.08s; }
.js .hero.ready .rise:nth-child(3) { transition-delay: 0.16s; }
.js .hero.ready .rise:nth-child(4) { transition-delay: 0.24s; }
.js .hero .portrait img { clip-path: inset(0 0 0 0); }
.js .hero:not(.ready) .portrait img { clip-path: inset(100% 0 0 0); }
.js .hero.ready .portrait img { transition: clip-path 1.4s var(--ease) 0.1s; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; padding-top: 1.75rem; }
  .hero .lede { font-size: 1.0625rem; margin-top: 1.1rem; }
  .hero .scope { margin-top: 1.25rem; padding: 0.8rem 0; font-size: 1rem; }
  .hero .actions { margin-top: 1.4rem; }
  .hero .portrait { max-width: 22rem; grid-row: 1; display: grid; grid-template-columns: 5.25rem 1fr; gap: 1rem; align-items: end; }
  .hero .portrait .frame::after { display: none; }
  .hero .portrait figcaption { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .timeline.will-reveal::after { transform: none; }
  .js .hero .rise { opacity: 1; transform: none; filter: none; }
  .js .hero:not(.ready) .portrait img { clip-path: none; }
}

@media print {
  .site-head, .site-foot, .close, .cv-actions, .skip { display: none !important; }
  body { background: #fff; }
  .dark { background: #fff; color: #000; }
}
