/* Layout: one 1120px reading column, left-aligned editorial type, a geological cross-section as the recurring brand device. */
:root {
  --paper: #FAF8F4;
  --surface: #F0EBE3;
  --ink: #1F2A30;
  --ink-2: #4A555C;
  --rule: #D8D0C3;
  --accent: #9E4630;
  --accent-strong: #B5553A;
  --on-accent: #FFFFFF;
  --sky: #E9E3D8;
  --s1: #DE9A6E;
  --s2: #C9744F;
  --s3: #B5553A;
  --g1: #5B6670;
  --g2: #7D8A93;
  --ring: #1F2A30;
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Jost", "Futura", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --measure: 64ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #172025; --surface: #1F2A30; --ink: #F1EEE8; --ink-2: #B4BDC2; --rule: #34434C;
    --accent: #E29A73; --accent-strong: #D9875F; --on-accent: #172025; --sky: #2A363D; --ring: #F1EEE8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #172025; --surface: #1F2A30; --ink: #F1EEE8; --ink-2: #B4BDC2; --rule: #34434C;
  --accent: #E29A73; --accent-strong: #D9875F; --on-accent: #172025; --sky: #2A363D; --ring: #F1EEE8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 2px; }

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

/* Type scale */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.eyebrow {
  font-family: var(--body); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.1em; }
.prose h2 { margin-top: 0.6em; }
.muted { color: var(--ink-2); }
.ph { background: var(--surface); color: var(--ink); padding: 0 0.25em; border-radius: 3px; border: 1px dashed var(--rule); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1; }
.brand-tag { display: block; font-family: var(--body); font-size: 0.625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); margin-top: 5px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding-block: 10px; text-decoration: none; color: var(--ink);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent-strong); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 52rem; }
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.hero h1 { max-width: 15ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 2px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border: 0; cursor: pointer;
  font-family: var(--body);
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Cross-section figure */
.section-figure { margin: 0; }
.section-figure svg { display: block; width: 100%; height: clamp(150px, 22vw, 280px); }
.figure-key {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px;
  padding-block: 18px 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2);
}
.figure-key li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.figure-key ul { display: contents; }
.key-swatch { flex: none; width: 22px; height: 12px; margin-top: 4px; border-radius: 1px; }
.key-sand { background: var(--s3); }
.key-grey { background: repeating-linear-gradient(100deg, var(--g1) 0 4px, var(--g2) 4px 8px); }
.key-line { height: 0; border-top: 2px solid var(--ink); margin-top: 9px; }
.figure-credit { padding-block: 10px 0; font-size: 0.875rem; color: var(--ink-2); font-style: italic; font-family: var(--display); }

/* Service grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service { display: flex; flex-direction: column; gap: 12px; padding-block: 28px; border-top: 1px solid var(--rule); min-width: 0; }
.service h3 { font-size: 1.6rem; }
.service p { color: var(--ink-2); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--accent-strong); margin-top: 0.8em; }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.audience { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.audience h3 { font-size: 1.25rem; }
.audience p { font-size: 0.975rem; color: var(--ink-2); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step); font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--accent);
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--ink-2); font-size: 0.99rem; }

/* Story band */
.story { background: var(--surface); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; padding-block: clamp(56px, 8vw, 104px); }
.story blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; }
.story cite { display: block; margin-top: 14px; font-family: var(--body); font-style: normal; font-size: 0.875rem; color: var(--ink-2); letter-spacing: 0.04em; }

/* Contact band */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta h2 { max-width: 18ch; }
.email-line { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 2rem); overflow-wrap: anywhere; }

/* Talks list */
.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.talk { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 8px 32px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.talk time { font-size: 0.875rem; letter-spacing: 0.06em; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 4px; }
.talk h3 { font-size: 1.3rem; }
.talk p { color: var(--ink-2); margin-top: 6px; }
.talk .where { font-size: 0.875rem; letter-spacing: 0.04em; color: var(--ink-2); margin-top: 8px; }

/* Article */
.article { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.15em; font-size: 1.125rem; }
.article .dropcap::first-letter { font-family: var(--display); float: left; font-size: 3.6em; line-height: 0.85; padding: 0.06em 0.1em 0 0; color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 72px; align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 100%; background: var(--surface); border: 1px dashed var(--rule);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  color: var(--ink-2); font-size: 0.875rem;
}
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: 0.975rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }


/* Team */
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.person { display: flex; flex-direction: column; gap: 4px; padding-block: 22px; border-top: 2px solid var(--accent-strong); min-width: 0; }
.person h3 { font-size: 1.4rem; }
.person h3 a { color: var(--ink); text-decoration: none; }
.person h3 a:hover { color: var(--accent); }
.person p { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.portrait-img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.talk .speaker { color: var(--ink); font-weight: 500; font-size: 0.95rem; margin-top: 8px; }
.talk .speaker + .where { margin-top: 2px; }
.talk h3 a { color: var(--ink); text-decoration: none; }

/* Form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-bottom: 2px solid var(--ink-2); border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent-strong); box-shadow: 0 2px 0 0 var(--accent-strong); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.9rem; color: var(--ink-2); }
.form-status { font-size: 0.95rem; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--accent-strong); }
.side-card { display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--surface); }
.side-card h3 { font-size: 1.25rem; }
.side-card .label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.copy-btn { font: inherit; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; background: none; border: 1px solid var(--rule); color: var(--ink); padding: 6px 10px; min-height: 36px; cursor: pointer; border-radius: 2px; }
.copy-btn:hover { border-color: var(--accent-strong); color: var(--accent); }

/* Footer */
.site-footer { margin-top: 0; }
.strata-band { display: flex; flex-direction: column; }
.strata-band span { display: block; }
.strata-band span:nth-child(1) { height: 4px; background: var(--s1); }
.strata-band span:nth-child(2) { height: 6px; background: var(--s2); }
.strata-band span:nth-child(3) { height: 10px; background: var(--s3); }
.strata-band span:nth-child(4) { height: 16px; background: repeating-linear-gradient(100deg, var(--g1) 0 10px, var(--g2) 10px 20px); }
.footer-inner { background: var(--surface); }
.footer-inner .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-block: 36px 40px; font-size: 0.9rem; color: var(--ink-2); }
.footer-inner a { color: var(--ink); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.footer-cols div { display: flex; flex-direction: column; gap: 4px; }
.legal { flex-basis: 100%; font-size: 0.8125rem; border-top: 1px solid var(--rule); padding-top: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story .wrap, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait, .portrait-img { max-width: 360px; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-2, .steps, .figure-key { grid-template-columns: minmax(0, 1fr); }
  .talk { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0 18px; }
  body { font-size: 1rem; }
}
@media (max-width: 480px) {
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .brand-tag { display: none; }
  .nav { gap: 0 14px; }
  .nav a { font-size: 0.75rem; letter-spacing: 0.1em; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .hero > *:nth-child(2) { animation-delay: 0.08s; }
  .hero > *:nth-child(3) { animation-delay: 0.16s; }
  .hero > *:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}

/* Illustration fills (token-driven so the drawing follows the theme) */
.x-s1 { fill: var(--s1); } .x-s2 { fill: var(--s2); } .x-s3 { fill: var(--s3); }
.x-g1 { fill: var(--g1); } .x-g2 { fill: var(--g2); }
.x-line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.x-ring { fill: none; stroke: var(--ring); }

/* Portrait placeholder (no photo yet) */
.portrait-empty {
  aspect-ratio: 4 / 5; width: 100%; max-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); border-bottom: 12px solid var(--s3); color: var(--ink-2);
}
.portrait-empty span { font-family: var(--display); font-size: clamp(3rem, 7vw, 5rem); color: var(--ink); line-height: 1; }
.portrait-empty small { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.profile .prose h2 { margin-top: 0; }
@media (max-width: 900px) { .portrait-empty { max-width: 360px; } }

/* Graphics */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center; }
.graphic { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.graphic img { display: block; width: 100%; height: auto; max-width: 100%; border: 1px solid var(--rule); background: #FAF8F4; }
.graphic a:hover img { border-color: var(--accent-strong); }
.graphic figcaption { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.graphic figcaption a { white-space: nowrap; margin-left: 4px; }
.graphic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
@media (max-width: 900px) { .feature, .graphic-grid { grid-template-columns: minmax(0, 1fr); } }

/* Insights: reading sequence */
.pathway { display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: 40px; counter-reset: stage; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.pathway li { display: flex; align-items: center; counter-increment: stage; }
.pathway li::before { content: counter(stage); font-family: var(--display); font-size: 1rem; letter-spacing: 0; color: var(--accent); margin-right: 6px; }
.pathway li + li::after { content: none; }
.pathway li:not(:last-child)::after { content: "\2192"; margin: 0 12px; color: var(--rule); letter-spacing: 0; }
.essays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; counter-reset: essay; }
.essay { display: flex; flex-direction: column; gap: 8px; padding-block: 24px 28px; border-top: 1px solid var(--rule); counter-increment: essay; min-width: 0; }
.essay-stage { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.essay-stage::before { content: counter(essay) "  \00B7  "; white-space: pre; font-family: var(--display); letter-spacing: 0; font-size: 0.95rem; }
.essay h3 { font-size: 1.3rem; line-height: 1.25; }
.essay h3 a, .talk h3 a { color: var(--ink); text-decoration: none; }
.essay h3 a:hover, .talk h3 a:hover { color: var(--accent); }
.essay-stand { color: var(--ink-2); font-size: 0.975rem; font-style: italic; font-family: var(--display); font-size: 1.05rem; line-height: 1.45; }
.essay-meta { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--ink-2); margin-top: auto; padding-top: 4px; }
.essay-link { font-size: 0.875rem; font-weight: 500; text-decoration: none; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 1px; margin-top: 4px; }
.talk .essay-link { display: inline-block; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.chip:hover { border-color: var(--accent-strong); color: var(--accent); }
@media (max-width: 1000px) { .essays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .essays { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Scope note on Services */
.scope-note { margin-top: 48px; padding: 24px 28px; background: var(--surface); border-left: 3px solid var(--g1); max-width: 62rem; display: flex; flex-direction: column; gap: 8px; }
.scope-note h3 { font-size: 1.2rem; }
.scope-note p { color: var(--ink-2); font-size: 0.975rem; }
