/* Fonts are self-hosted (SIL Open Font License; see fonts/) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
:root {
  /* Layout: a quiet one-column page with a left-aligned measure, results set like a ledger, experience as a dated timeline.
     Palette: deep blue-teal, sage, and gold sampled from the nautilus cover image. */
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #141c2b;
  --muted: #55627a;
  --rule: #d9dfe8;
  --accent: #14534c;
  --accent-soft: #e3efe9;
  --band: #022433;
  --sage: #84be9a;
  --gold: #e9d9a0;
  --mark-opacity: 0.16;
  --tint: #eaf2f0;
  --font-display: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 76px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--paper); padding: 10px 16px; border-radius: 6px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Header theme: light by default; dark from the system setting or the visitor's toggle choice.
   Both versions share one layout: the cover as a quiet texture, and a drawn nautilus spiral around the portrait. */
:root {
  --hdr-bg: #f2f7f5;
  --hdr-cover: url("images/cover-light.jpg");
  --hdr-cover-set: image-set(url("images/cover-light.webp") type("image/webp"), url("images/cover-light.jpg") type("image/jpeg"));
  --hdr-cover-opacity: 0.16;
  --hdr-heading: #141c2b;
  --hdr-text: #3b475c;
  --hdr-nav: #26334a;
  --hdr-nav-hover: #14534c;
  --hdr-role: #14534c;
  --hdr-icon: #14534c;
  --hdr-spiral: #14534c;
  --hdr-spiral-opacity: 0.75;
  --hdr-ring: #c9ab5c;
  --hdr-focus: #14534c;
  --hdr-btn-bg: #14534c;
  --hdr-btn-fg: #ffffff;
  --hdr-btn-hover: #1b6a61;
  --hdr-btn2-fg: #14534c;
  --hdr-btn2-bg: rgba(255,255,255,0.6);
  --hdr-btn2-border: #14534c;
  --hdr-btn2-hover: rgba(20,83,76,0.08);
  --hdr-link: #14534c;
  --hdr-control-fg: #141c2b;
  --hdr-control-border: rgba(20,83,76,0.55);
  --bar-bg: rgba(246,249,248,0.97);
  --bar-border: #d9dfe8;
  --bar-shadow: 0 6px 20px rgba(2,36,51,0.08);
  --bar-fg: #141c2b;
  --bar-link: #26334a;
  --bar-current: #14534c;
  --bar-underline: #14534c;
  --bar-cta-bg: #14534c;
  --bar-cta-fg: #ffffff;
  --bar-cta-hover: #1b6a61;
}
/* Dark theme: follows the visitor's system setting unless they pick a theme with the toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #071821;
    --surface: #0d2230;
    --ink: #e6edf0;
    --muted: #a2b4bd;
    --rule: #1f3a47;
    --accent: #84be9a;
    --accent-soft: #12302f;
    --mark-opacity: 0.2;
    --tint: #0b1f2b;
    --hdr-bg: #022433;
    --hdr-cover: url("images/cover.jpg");
    --hdr-cover-set: image-set(url("images/cover.webp") type("image/webp"), url("images/cover.jpg") type("image/jpeg"));
    --hdr-cover-opacity: 0.2;
    --hdr-heading: #ffffff;
    --hdr-text: #e2eaef;
    --hdr-nav: #dfe8ee;
    --hdr-nav-hover: #ffffff;
    --hdr-role: #84be9a;
    --hdr-icon: #84be9a;
    --hdr-spiral: #e9d9a0;
    --hdr-spiral-opacity: 0.6;
    --hdr-ring: #e9d9a0;
    --hdr-focus: #ffffff;
    --hdr-btn-bg: #ffffff;
    --hdr-btn-fg: #022433;
    --hdr-btn-hover: #e3efe9;
    --hdr-btn2-fg: #ffffff;
    --hdr-btn2-bg: transparent;
    --hdr-btn2-border: rgba(255,255,255,0.7);
    --hdr-btn2-hover: rgba(255,255,255,0.1);
    --hdr-link: #dfe8ee;
    --hdr-control-fg: #ffffff;
    --hdr-control-border: rgba(255,255,255,0.75);
    --bar-bg: rgba(2,36,51,0.97);
    --bar-border: transparent;
    --bar-shadow: 0 6px 20px rgba(2,36,51,0.25);
    --bar-fg: #ffffff;
    --bar-link: #dfe8ee;
    --bar-current: #ffffff;
    --bar-underline: #84be9a;
    --bar-cta-bg: #ffffff;
    --bar-cta-fg: #022433;
    --bar-cta-hover: #e3efe9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #071821;
  --surface: #0d2230;
  --ink: #e6edf0;
  --muted: #a2b4bd;
  --rule: #1f3a47;
  --accent: #84be9a;
  --accent-soft: #12302f;
  --mark-opacity: 0.2;
  --tint: #0b1f2b;
  --hdr-bg: #022433;
  --hdr-cover: url("images/cover.jpg");
  --hdr-cover-set: image-set(url("images/cover.webp") type("image/webp"), url("images/cover.jpg") type("image/jpeg"));
  --hdr-cover-opacity: 0.2;
  --hdr-heading: #ffffff;
  --hdr-text: #e2eaef;
  --hdr-nav: #dfe8ee;
  --hdr-nav-hover: #ffffff;
  --hdr-role: #84be9a;
  --hdr-icon: #84be9a;
  --hdr-spiral: #e9d9a0;
  --hdr-spiral-opacity: 0.6;
  --hdr-ring: #e9d9a0;
  --hdr-focus: #ffffff;
  --hdr-btn-bg: #ffffff;
  --hdr-btn-fg: #022433;
  --hdr-btn-hover: #e3efe9;
  --hdr-btn2-fg: #ffffff;
  --hdr-btn2-bg: transparent;
  --hdr-btn2-border: rgba(255,255,255,0.7);
  --hdr-btn2-hover: rgba(255,255,255,0.1);
  --hdr-link: #dfe8ee;
  --hdr-control-fg: #ffffff;
  --hdr-control-border: rgba(255,255,255,0.75);
  --bar-bg: rgba(2,36,51,0.97);
  --bar-border: transparent;
  --bar-shadow: 0 6px 20px rgba(2,36,51,0.25);
  --bar-fg: #ffffff;
  --bar-link: #dfe8ee;
  --bar-current: #ffffff;
  --bar-underline: #84be9a;
  --bar-cta-bg: #ffffff;
  --bar-cta-fg: #022433;
  --bar-cta-hover: #e3efe9;
  color-scheme: dark;
}

/* Theme toggle icons: a moon offers dark mode, a sun offers light mode */
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.top { background: var(--hdr-bg); color: var(--hdr-heading); position: relative; overflow: hidden; isolation: isolate; }
.top-cover {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hdr-cover) 78% center / cover no-repeat;
  background-image: var(--hdr-cover-set);
  opacity: var(--hdr-cover-opacity);
}
.top a:focus-visible, .top button:focus-visible, .top summary:focus-visible { outline-color: var(--hdr-focus); }
.bar .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 28px;
  padding-top: 16px; padding-bottom: 16px; position: relative;
}
.brand { display: inline-flex; align-items: center; flex: none; padding: 2px; border-radius: 6px; }
.brand svg { width: 36px; height: 36px; display: block; stroke: var(--hdr-icon); }

/* Sticky bar: hidden at the top of the page, slides in once the header scrolls out of view */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; color: var(--bar-fg);
  background: var(--bar-bg); border-bottom: 1px solid var(--bar-border); box-shadow: var(--bar-shadow);
  transform: translateY(-110%); visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .sticky-bar { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .sticky-bar, .sticky-bar.is-visible { transition: none; } }
.sticky-bar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.sticky-bar a:focus-visible, .sticky-bar summary:focus-visible { outline: 2px solid var(--hdr-focus); outline-offset: 3px; }
.sticky-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap;
  color: var(--bar-fg); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem;
}
.sticky-brand svg { width: 28px; height: 28px; flex: none; stroke: var(--hdr-icon); }
.sticky-nav { flex: 1; }
.sticky-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.sticky-nav a { color: var(--bar-link); text-decoration: none; font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
.sticky-nav a:hover { color: var(--bar-current); text-decoration: underline; }
.sticky-nav a.is-current { color: var(--bar-current); text-decoration: underline; text-decoration-color: var(--bar-underline); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sticky-cta {
  flex: none; background: var(--bar-cta-bg); color: var(--bar-cta-fg); border-radius: 6px; padding: 7px 14px;
  font-size: 0.88rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.sticky-cta:hover { background: var(--bar-cta-hover); }
.sticky-menu { display: none; }
.sticky-menu summary {
  list-style: none; cursor: pointer; color: var(--hdr-control-fg); font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--hdr-control-border); border-radius: 6px; padding: 6px 12px;
}
.sticky-menu summary::-webkit-details-marker { display: none; }
.sticky-menu ul {
  position: absolute; right: 20px; top: 100%; margin: 6px 0 0; list-style: none; padding: 10px 18px; min-width: 180px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 10px 28px rgba(2,36,51,0.25);
}
.sticky-menu a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 860px) {
  .sticky-nav, .sticky-cta { display: none; }
  .sticky-menu { display: block; }
  .sticky-bar .wrap { justify-content: space-between; height: 56px; position: relative; }
}
.nav-group { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 1; }
.nav-tools, .sticky-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; cursor: pointer;
  width: 38px; height: 38px; border-radius: 6px; background: transparent;
  color: var(--hdr-control-fg); border: 1px solid var(--hdr-control-border);
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--hdr-btn2-hover); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sticky-bar .theme-toggle { width: 34px; height: 34px; color: var(--bar-fg); }
nav.desk ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 22px; flex-wrap: wrap; }
nav.desk a { color: var(--hdr-nav); text-decoration: none; font-size: 0.93rem; font-weight: 500; display: inline-block; padding: 4px 0; white-space: nowrap; }
nav.desk a:hover { color: var(--hdr-nav-hover); text-decoration: underline; }
details.menu { display: none; }
details.menu summary {
  list-style: none; cursor: pointer; color: var(--hdr-control-fg); font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--hdr-control-border); border-radius: 6px; padding: 6px 12px;
}
details.menu summary::-webkit-details-marker { display: none; }
details.menu ul {
  position: absolute; right: 20px; top: 100%; z-index: 20; margin: 0; list-style: none; padding: 10px 18px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 10px 28px rgba(2,36,51,0.25);
}
details.menu a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.hero .wrap {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
  padding-top: 36px; padding-bottom: 64px;
}
.portrait-wrap { position: relative; width: 200px; height: 200px; --sp: 1100px; }
/* Ring width tracks the spiral's line: the shell stroke is 0.12 of a 100-unit viewBox drawn at --sp,
   so the ring stays the same weight as the nautilus line on desktop and mobile */
.portrait { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: max(1px, calc(var(--sp) * 0.0012)) solid var(--hdr-ring); display: block; }
/* The spiral's pole sits at the portrait's center and the shell sweeps out behind the headline */
.spiral {
  position: absolute; z-index: -1; pointer-events: none; opacity: var(--hdr-spiral-opacity);
  width: var(--sp); height: var(--sp);
  left: calc(50% - var(--sp) / 2); top: calc(50% - var(--sp) / 2);
}
.spiral path { fill: none; stroke: var(--hdr-spiral); stroke-linecap: round; }
.spiral .shell { stroke-width: 0.12; stroke-dasharray: 1; stroke-dashoffset: 0; }
.spiral .septa { stroke-width: 0.07; opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .spiral .shell { animation: spiral-draw 2.6s cubic-bezier(.33,0,.2,1) 0.2s both; }
  .spiral .septa { animation: spiral-fade 1.2s ease-out 1.8s both; }
}
@keyframes spiral-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes spiral-fade { from { opacity: 0; } to { opacity: 0.55; } }
h1 {
  font-family: var(--font-display); font-weight: 500; color: var(--hdr-heading);
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin: 0 0 10px;
}
.role-line { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--hdr-role); margin: 0 0 16px; }
.lede { font-size: 1.1rem; color: var(--hdr-text); max-width: 58ch; margin: 0 0 26px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 6px; font-weight: 500; font-size: 0.95rem;
  text-decoration: none; border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.secondary { color: var(--accent); background: transparent; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.secondary:hover { background: var(--accent-soft); }
.top .btn.primary { background: var(--hdr-btn-bg); color: var(--hdr-btn-fg); border-color: var(--hdr-btn-bg); }
.top .btn.primary:hover { filter: none; background: var(--hdr-btn-hover); border-color: var(--hdr-btn-hover); }
.top .btn.secondary { color: var(--hdr-btn2-fg); background: var(--hdr-btn2-bg); border-color: var(--hdr-btn2-border); }
.top .btn.secondary:hover { background: var(--hdr-btn2-hover); }
.top .text-link { color: var(--hdr-link); font-size: 0.95rem; font-weight: 500; padding: 11px 4px; text-underline-offset: 4px; }
.top .text-link:hover { color: var(--hdr-nav-hover); }

section { padding: 56px 0; border-top: 1px solid var(--rule); }
section.tinted { background: var(--tint); }
h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.2;
  margin: 0 0 12px; text-wrap: balance;
}
.section-intro { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
h2 + :not(.section-intro) { margin-top: 28px; }
.prose p { max-width: 65ch; margin: 0 0 16px; }
p, dd, li { text-wrap: pretty; }

/* About themes */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; margin: 28px 0; }
.theme { border-top: 2px solid var(--accent); padding-top: 14px; }
.theme h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.theme p { margin: 0; font-size: 0.97rem; }
.aside-note { color: var(--muted); font-size: 0.95rem; }

/* Results ledger */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.result {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px;
}
.kind { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.figure .unit { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.figure { font-family: var(--font-display); font-size: 2.1rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.result .what { font-weight: 600; font-size: 0.98rem; margin: 0; }
.result .context { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 0; }
.result-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.see-how { font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
.result .where { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Case studies */
.cases { display: grid; gap: 20px; }
.case { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 28px 28px 24px; }
.case .meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.case h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.25; margin: 0 0 18px; }
.case dl { display: grid; grid-template-columns: 130px 1fr; gap: 12px 24px; margin: 0; }
.case dt { font-size: 0.85rem; font-weight: 600; color: var(--ink); padding-top: 2px; }
.case dd { margin: 0; max-width: 64ch; font-size: 0.97rem; }
.case dt.outcome, .case dd.outcome { padding-top: 12px; border-top: 1px solid var(--rule); }
.case dt.outcome { color: var(--accent); }
.case dd.outcome { font-weight: 500; color: var(--ink); }
.case .note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.86rem; }

/* AI section */
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.ai-item { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 20px 22px; }
.ai-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.ai-item p { margin: 0; font-size: 0.95rem; }
.ai-tools { color: var(--muted); font-size: 0.95rem; margin: 20px 0 0; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.job:first-child { padding-top: 0; }
.job:last-child { border-bottom: 0; }
.dates { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.job h3 { margin: 0; font-size: 1.12rem; font-weight: 600; }
.job .title { margin: 2px 0 10px; color: var(--muted); font-size: 0.97rem; }
.job .title + .title { margin-top: -8px; }
.job p.summary { margin: 0; max-width: 65ch; }

/* Expertise */
.capabilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.capability { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 20px 20px 18px; }
.capability h3 { font-size: 0.98rem; font-weight: 600; margin: 0 0 10px; }
.capability ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.capability li { font-size: 0.93rem; color: var(--muted); }
.platforms { color: var(--muted); font-size: 0.95rem; margin: 22px 0 0; max-width: 65ch; }

/* Recognition */
.recognition { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 70ch; }
.recognition li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.recognition .yr { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.92rem; padding-top: 1px; }
.ext { white-space: normal; }
.ext-icon { display: inline-block; width: 0.78em; height: 0.78em; margin-left: 0.28em; vertical-align: -0.02em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media print { .ext-icon { display: none; } }
.education { color: var(--muted); font-size: 0.95rem; margin: 26px 0 0; }

/* Contact, with a faint nautilus watermark that echoes the header */
#contact { position: relative; overflow: hidden; isolation: isolate; }
.contact-mark {
  position: absolute; z-index: -1; pointer-events: none;
  width: 600px; height: 600px; right: -40px; top: calc(50% - 300px); opacity: var(--mark-opacity);
}
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.contact-item { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px; }
.contact-item .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item a { overflow-wrap: anywhere; }
.email-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn {
  font: inherit; font-size: 0.8rem; font-weight: 500; color: var(--accent); background: transparent; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 6px; padding: 3px 10px;
}
.copy-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer-id { display: flex; align-items: center; gap: 10px; }
.footer-id svg { width: 22px; height: 22px; flex: none; stroke: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-weight: 500; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  nav.desk { display: none; }
  details.menu { display: block; }
  .nav-group { justify-content: flex-end; gap: 12px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 18px; padding-top: 20px; padding-bottom: 40px; }
  .portrait-wrap { width: 132px; height: 132px; margin: 0 auto; --sp: 720px; }
  .role-line { font-size: 0.72rem; }
  .lede { font-size: 1rem; margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  section { padding: 44px 0; }
  h2 { font-size: 1.65rem; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .case { padding: 22px 20px 20px; }
  .case dl { grid-template-columns: 1fr; gap: 2px; }
  .case dd { margin-bottom: 12px; }
  .case dd.outcome { border-top: 0; padding-top: 0; }
  .recognition li { grid-template-columns: 52px 1fr; gap: 12px; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
  .contact-mark { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media print {
  nav.desk, details.menu, .theme-toggle, .skip-link, .actions, .top-cover, .spiral, .contact-mark, .sticky-bar, .sticky-menu, .brand, .copy-btn, .see-how, .footer-links { display: none; }
  .top { background: none; color: var(--ink); }
  h1, .role-line, .lede { color: var(--ink); }
  section { padding: 24px 0; break-inside: avoid-page; }
  .result, .case, .capability { break-inside: avoid; }
}


/* Case summaries with collapsible detail */
.case h3 { margin-bottom: 10px; }
.case-summary { margin: 0 0 14px; max-width: 66ch; font-size: 1.02rem; }
.case-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 0.92rem; padding: 4px 0; }
.case-more > summary::-webkit-details-marker { display: none; }
.case-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 0.85rem; line-height: 1; }
.case-more[open] > summary::before { content: "\2212"; }
.case-more[open] > summary { margin-bottom: 14px; }
.case-more > summary:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) { .case-more[open] dl { animation: case-in 200ms ease-out; } }
@keyframes case-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* How I lead */
.lead-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.lead-item { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 8px; padding: 20px 22px; }
.lead-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 6px; }
.lead-item p { margin: 0; font-size: 0.95rem; }

/* Recommendations */
.recs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.rec { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; }
.rec p { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.45; }
.rec .rec-by { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); margin: 0; }
.rec.placeholder { border-style: dashed; border-width: 1.5px; }
.rec.placeholder p:first-child { color: var(--muted); font-style: italic; }

/* Roles pursuing */
.pursuing { max-width: 66ch; margin: 0 0 14px; font-size: 1.05rem; }
.pursuing span { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

@media print {
  .case-more > summary, .rec.placeholder, #recommendations { display: none; }
}

/* Writing: home section, index, and article pages */
.writing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 72ch; }
.post-card { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.post-card:first-child { padding-top: 0; }
.post-card h2, .post-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.25; margin: 4px 0 6px; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.post-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.post-topic { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.post-dek { margin: 0; color: var(--muted); font-size: 0.97rem; }
.all-writing { margin: 18px 0 0; font-weight: 500; }

.sub-bar { background: var(--hdr-bg); border-bottom: 1px solid var(--rule); }
.sub-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.sub-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hdr-heading); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }

.sub-brand svg { width: 30px; height: 30px; stroke: var(--hdr-icon); }
.sub-nav { display: flex; align-items: center; gap: 20px; }
.sub-nav a { color: var(--hdr-nav); text-decoration: none; font-weight: 500; font-size: 0.93rem; }
.sub-nav a:hover { color: var(--hdr-nav-hover); text-decoration: underline; }
.subpage main { padding: 48px 0 64px; }
.subpage section { border-top: 0; padding: 0; }
.writing-index h1, .article h1 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 12px; font-size: clamp(2rem, 5vw, 2.8rem); text-wrap: balance; }
.article { max-width: 760px; }
.crumbs { margin: 0 0 22px; font-size: 0.9rem; }
.crumbs a::before { content: "\2190\00a0"; }
.article-head { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.article-head .post-topic { display: block; margin: 0 0 10px; }
.article-dek { font-size: 1.2rem; color: var(--muted); margin: 0 0 14px; max-width: 60ch; }
.article-body { font-size: 1.08rem; line-height: 1.7; }
.article-body p, .article-body ul, .article-body ol { max-width: 66ch; margin: 0 0 20px; }
.article-body h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.article-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); }
.article-foot p { margin: 0 0 10px; }
.more-writing { margin-top: 44px; }
.more-writing h2 { font-size: 1.3rem; margin-bottom: 18px; }
@media (max-width: 640px) {
  .sub-brand span { font-size: 1.05rem; }
  .sub-nav { gap: 14px; }
  .subpage main { padding: 32px 0 48px; }
}
@media print { .sub-nav, .more-writing, .crumbs { display: none; } }
.post-card h2 + .post-dek, .post-card h3 + .post-dek { margin-top: 0; }

/* Hero employer line, About fit list */
.employers { margin: 22px 0 0; font-size: 0.88rem; color: var(--hdr-text); }
.employers span { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.74rem; color: var(--hdr-role); margin-right: 6px; }
.fit-heading { font-size: 1rem; font-weight: 600; margin: 24px 0 10px; }
.fit-list { margin: 0 0 22px; padding-left: 1.1rem; max-width: 66ch; }
.fit-list li { margin-bottom: 8px; }
@media (max-width: 640px) { .employers { text-align: center; } }

/* Recommendation soundbites */
.recs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec { display: flex; flex-direction: column; justify-content: space-between; border-left: 3px solid var(--hdr-ring); }
.rec blockquote { margin: 0 0 14px; }
.rec blockquote p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; color: var(--ink); }
.rec .rec-by strong { color: var(--ink); font-weight: 600; }
.recs-more { margin: 18px 0 0; font-size: 0.93rem; font-weight: 500; }
@media (max-width: 640px) { .recs { grid-template-columns: 1fr; } }
@media print { #recommendations { display: block; } .recs-more { display: none; } }
