/* ============================================================
   abflows.com - "Light Rhythm"
   A light, airy, premium re-skin: deep navy + soft lavender + white,
   rounded white cards, soft diffuse shadows, minimalist line icons,
   big confident type, generous whitespace. Clean top nav.
   Zero external runtime deps - system font stacks only.
   Punctuation rule for ALL copy and comments: hyphens only.
   ============================================================ */

:root {
  /* base */
  --white: #ffffff;
  --card: #ffffff;
  --bg: #ffffff;
  /* soft lavender / periwinkle washes (alternate with white) */
  --lav: #eef0fb;
  --lav-2: #f5f6fd;
  --lav-3: #e6e9f8;
  --lav-line: #dfe3f5;
  /* primary deep navy */
  --navy: #1c3a5b;
  --navy-deep: #14293f;
  /* periwinkle - interactive / links / active */
  --peri: #5766c6;
  --peri-soft: #8b95df;
  --peri-tint: #edeefb;
  /* one restrained warm-neutral accent (used sparingly) */
  --sand: #bf9469;
  /* ink */
  --ink: #1e3149;
  --ink-dim: #566a7e;
  --ink-faint: #93a2b3;
  /* hairlines */
  --line: #e8ebf5;
  --line-2: #dce1f0;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1080px;
  --maxw-wide: 1260px;
  --nav-h: 66px;
  --r: 18px;
  --r-sm: 12px;
  --r-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(28,58,91,.05), 0 6px 16px -10px rgba(28,58,91,.14);
  --shadow: 0 2px 5px rgba(28,58,91,.05), 0 22px 44px -26px rgba(28,58,91,.22);
  --shadow-lg: 0 30px 70px -30px rgba(28,58,91,.30);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px);
  /* Contain the off-canvas mobile drawer so it never adds horizontal scroll.
     'clip' does not create a scroll container, so sticky nav + scrolling are
     unaffected; 'hidden' is the fallback for older engines. */
  overflow-x: hidden;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Clip the off-canvas mobile drawer's off-screen width (it is contained by
     .nav due to backdrop-filter, so its overflow reaches body). clip keeps
     sticky nav and vertical scrolling working. */
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 { line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-dim); }
a { color: var(--peri); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 650; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

/* reusable line-icon */
.ic { width: 24px; height: 24px; display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 30px; height: 30px; }

/* eyebrow / kicker */
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--peri); margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: 10px;
}

/* ---------- a11y ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-family: var(--mono); font-size: 0.85rem;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   TOP NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 4px var(--peri-tint); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.9rem; color: var(--ink-dim); font-weight: 550;
  padding: 8px 13px; border-radius: 9px; position: relative;
}
.nav-links a:hover { color: var(--navy); background: var(--lav); text-decoration: none; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  background: var(--peri); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--navy);
  width: 44px; height: 40px; border-radius: 11px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-scrim { display: none; }

/* theme toggle (top-right) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line-2); color: var(--navy);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--peri); color: var(--peri); }
.theme-toggle .ic { width: 20px; height: 20px; }
/* show the icon for the theme you can switch TO: moon in light, sun in dark */
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  /* The drawer. NOTE: .nav uses backdrop-filter, which makes it the containing
     block for this fixed child - so a top + bottom pair collapses to the nav's
     own height. We pin the top and give an explicit height instead, and force a
     fully opaque background so the panel is always solid and readable. */
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; width: min(300px, 86vw);
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto;
    background-color: #ffffff; border-left: 1px solid var(--line-2); padding: 18px 16px;
    transform: translateX(100%); transition: transform 0.25s ease; z-index: 200;
    box-shadow: -18px 0 48px -18px rgba(20,30,50,0.45);
  }
  .nav-links a { padding: 14px 14px; font-size: 1.02rem; border-radius: 11px; color: var(--ink); font-weight: 600; }
  .nav-links a:hover { background: var(--lav); color: var(--navy); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--lav); color: var(--navy); }
  body.nav-open .nav-links { transform: translateX(0); }
  /* The scrim must sit BELOW the nav's stacking context (nav has
     backdrop-filter, so its z-index:100 traps the drawer inside it). Keeping
     the scrim under z-index 100 lets it dim the page while the drawer, painted
     within the nav subtree, stays fully opaque above it. */
  body.nav-open .nav-scrim {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0;
    background: rgba(15,24,40,0.42); z-index: 90;
  }
  /* Dark theme: the drawer must stay opaque, just dark instead of white. */
  :root[data-theme="dark"] .nav-links { background-color: #16273f; }
}

/* ============================================================
   SECTIONS + BANDS
   ============================================================ */
section { padding: 88px 0; position: relative; }
.band-lav { background: var(--lav); }
.band-lav-soft { background: var(--lav-2); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head p { font-size: 1.05rem; }
.sec-num {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 20px;
}
.sec-num .badge {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--lav-line); color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.band-lav .sec-num .badge { background: var(--white); }
.sec-num .badge .ic { width: 20px; height: 20px; }
.sec-num b { color: var(--peri); font-weight: 600; }
.sec-num .rule { width: 60px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 70px 0 64px; position: relative; overflow: hidden; background: var(--lav-2); }
.hero::before {
  content: ""; position: absolute; z-index: 0; top: -180px; right: -140px;
  width: 560px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(87,102,198,0.14), transparent 70%);
  border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

.hero-kicker {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--peri); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px;
}
.hero-kicker::before { content: ""; width: 26px; height: 1px; background: var(--peri); }
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem); letter-spacing: -0.03em; line-height: 1.08;
  max-width: 18ch; margin: 0 0 22px;
}
.hero h1 .accent { color: var(--peri); }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-dim); max-width: 44ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-photo-wrap { display: flex; justify-content: center; }
.hero-photo {
  position: relative; width: min(300px, 74vw); aspect-ratio: 1;
}
.hero-photo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--white); box-shadow: var(--shadow-lg);
}
.hero-photo::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed var(--lav-line); z-index: -1;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 600;
  padding: 12px 20px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--peri); color: var(--peri); text-decoration: none; }

/* ---------- What I do: feature-row of line-icon tiles ---------- */
.dorow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 860px) { .dorow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .dorow { grid-template-columns: 1fr; } }
.dotile {
  background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--r);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dotile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dotile .ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--peri-tint); color: var(--navy);
}
.dotile h3 { font-size: 1rem; margin-bottom: 6px; }
.dotile p { font-size: 0.9rem; margin: 0; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--r);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.stat .num .unit { color: var(--peri); font-size: 0.46em; font-weight: 700; margin-left: 5px; letter-spacing: 0; }
.stat .lbl { font-size: 0.86rem; color: var(--ink-dim); margin-top: 5px; }

/* ============================================================
   CAREER ARC (full 24-year timeline)
   ============================================================ */
.arc-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; position: relative; }
.arc-track::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 19px; height: 2px;
  background: linear-gradient(90deg, var(--peri-soft), var(--peri) 55%, var(--sand));
  border-radius: 2px;
}
.arc-stop { position: relative; padding-top: 46px; }
.arc-node {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--peri); color: var(--peri);
  display: inline-flex; align-items: center; justify-content: center; z-index: 1;
  box-shadow: 0 0 0 5px var(--lav);
}
.band-lav .arc-node { box-shadow: 0 0 0 5px var(--lav); }
.arc-node .ic { width: 13px; height: 13px; }
.arc-stop.is-now .arc-node { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 5px var(--lav), 0 6px 16px -6px rgba(28,58,91,.5); }
.arc-card {
  background: var(--white); border: 1px solid var(--lav-line); border-radius: 14px;
  padding: 16px 15px; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.arc-stop.is-now .arc-card { border-color: var(--peri-soft); }
.arc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.arc-card .yr { font-family: var(--mono); font-size: 0.66rem; color: var(--peri); letter-spacing: 0.04em; }
.arc-card .org { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin: 2px 0 2px; line-height: 1.2; }
.arc-card .role { font-size: 0.76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 9px; }
.arc-card .did { font-size: 0.83rem; color: var(--ink-dim); margin: 0 0 8px; line-height: 1.45; }
.arc-card .prob { font-size: 0.8rem; color: var(--ink); margin: 0; line-height: 1.45; }
.arc-card .prob b { color: var(--sand); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 2px; }
.arc-through {
  margin-top: 34px; text-align: center; font-size: 1.02rem; color: var(--ink-dim);
  max-width: 60ch; margin-left: auto; margin-right: auto;
}
.arc-through b { color: var(--navy); font-weight: 650; }

/* mid widths: horizontal filmstrip */
@media (max-width: 1080px) {
  .arc-track { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 12px; scroll-snap-type: x proximity; }
  .arc-track::before { left: 24px; right: auto; width: max(1400px, 100%); }
  .arc-stop { min-width: 210px; scroll-snap-align: start; }
}
/* mobile: vertical timeline */
@media (max-width: 680px) {
  .arc-track { display: block; overflow: visible; position: relative; padding-left: 8px; }
  .arc-track::before { left: 19px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--peri-soft), var(--peri) 55%, var(--sand)); }
  .arc-stop { min-width: 0; padding: 0 0 18px 52px; }
  .arc-stop:last-child { padding-bottom: 0; }
  .arc-node { top: 2px; left: 8px; transform: none; }
}

/* ============================================================
   TABBED MODULE - Approach (Spectrum + Observations)
   ============================================================ */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--white);
  border: 1px solid var(--lav-line); border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.tab {
  font-size: 0.9rem; font-weight: 600; color: var(--ink-dim); background: none; border: 0;
  padding: 10px 18px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
}
.tab .ic { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.tab:not([aria-selected="true"]):hover { color: var(--navy); background: var(--lav); }
.tabpanel[hidden] { display: none; }

.spectrum-head { max-width: 720px; margin-bottom: 40px; }
.spectrum-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.spectrum-head p { font-size: 1.02rem; }

/* the spectrum line label */
.spec-ends { display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 16px; }
.spec-ends .from { color: var(--sand); }
.spec-ends .to { color: var(--peri); }
.spec-ends .flow { flex: 1; height: 1px; margin: 0 16px; background: repeating-linear-gradient(90deg, var(--line-2) 0 7px, transparent 7px 14px); }

.spectrum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.spectrum::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 26px; height: 2px;
  background: linear-gradient(90deg, var(--sand), var(--peri)); border-radius: 2px; opacity: 0.55;
}
.stage { position: relative; text-align: left; }
.stage-btn {
  width: 100%; text-align: left; cursor: pointer; background: var(--white);
  border: 1px solid var(--lav-line); border-radius: var(--r); padding: 18px 16px 16px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: block; position: relative;
}
.stage-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--peri-soft); }
.stage.active .stage-btn { border-color: var(--peri); box-shadow: var(--shadow); }
.stage-ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--peri-tint); color: var(--navy);
}
.stage.active .stage-ico { background: var(--navy); color: #fff; }
.stage-n { font-family: var(--mono); font-size: 0.66rem; color: var(--peri); letter-spacing: 0.1em; }
.stage-label { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 3px 0 8px; letter-spacing: -0.01em; }
.stage-line { font-size: 0.86rem; color: var(--ink-dim); margin: 0; line-height: 1.5; }
/* reveal detail on hover / focus / active */
.stage-detail {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, margin .35s ease; margin-top: 0;
}
.stage-btn:hover .stage-detail, .stage-btn:focus-visible .stage-detail,
.stage.active .stage-detail { max-height: 340px; opacity: 1; margin-top: 14px; }
.stage-detail dl { margin: 0; border-top: 1px dashed var(--lav-line); padding-top: 12px; }
.stage-detail dt {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--peri); margin-bottom: 2px;
}
.stage-detail dd { margin: 0 0 10px; font-size: 0.83rem; color: var(--ink); line-height: 1.45; }
.stage-detail dd:last-child { margin-bottom: 0; }
.stage-detail .changes { color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
  .spectrum { grid-template-columns: 1fr; gap: 14px; }
  .spectrum::before { left: 27px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--sand), var(--peri)); }
  .stage-detail { max-height: 340px; opacity: 1; margin-top: 14px; }  /* always open on mobile */
  .spec-ends .flow { display: none; }
}

/* Where I Enter */
.enter-head { margin: 60px 0 26px; max-width: 720px; }
.enter-head h3 { font-size: 1.3rem; font-weight: 750; margin-bottom: 8px; }
.enter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .enter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .enter-grid { grid-template-columns: 1fr; } }
.enter-card {
  background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.enter-card:hover { box-shadow: var(--shadow); border-color: var(--peri-soft); }
.enter-card.open { border-color: var(--peri); box-shadow: var(--shadow); }
.enter-btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: start; font-family: inherit;
}
.enter-btn .ico { color: var(--peri); display: inline-flex; align-items: center; }
.enter-btn .ico .ic { width: 24px; height: 24px; }
.enter-text { min-width: 0; }
.enter-h { display: block; font-size: 0.98rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; }
.enter-sub { display: block; font-size: 0.85rem; color: var(--ink-dim); line-height: 1.5; margin-top: 5px; }
.enter-chev { width: 20px; height: 20px; color: var(--ink-faint); flex-shrink: 0; margin-top: 2px;
  transition: transform .22s ease, color .18s ease; }
.enter-card.open .enter-chev { transform: rotate(180deg); color: var(--peri); }
.enter-btn:hover .enter-chev { color: var(--peri); }
.enter-more { padding: 0 18px 20px; }
.enter-more[hidden] { display: none; }
.enter-more p { font-size: 0.9rem; color: var(--ink); line-height: 1.58; margin: 0;
  padding-top: 14px; border-top: 1px dashed var(--lav-line); }

/* ---------- Industry Observations (clean dated list) ---------- */
.obs-list { position: relative; max-width: 840px; padding-left: 6px; }
.obs-list::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--peri), var(--peri-soft) 40%, var(--lav-line));
  transform-origin: top; transform: scaleY(0); transition: transform 1s cubic-bezier(.4,0,.1,1);
}
.obs-list.drawn::before { transform: scaleY(1); }
.obs { position: relative; padding: 0 0 26px 40px; }
.obs:last-child { padding-bottom: 2px; }
.obs .omark {
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--peri-soft); box-shadow: 0 0 0 5px var(--lav); z-index: 1;
  transition: border-color .2s ease;
}
.band-lav .obs .omark { box-shadow: 0 0 0 5px var(--lav); }
.obs:first-child .omark { border-color: var(--peri); }
.obs-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.obs .odate { font-family: var(--mono); font-size: 0.75rem; color: var(--peri); letter-spacing: 0.03em; }
.obs .osrc { font-family: var(--mono); font-size: 0.62rem; color: var(--navy);
  background: var(--peri-tint); border: 1px solid var(--lav-line); padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.obs .otext { font-size: 1.02rem; color: var(--ink); line-height: 1.5; max-width: 64ch; }
.obs:first-child .otext { font-weight: 550; }
.obs { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.obs.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .obs { opacity: 1; transform: none; transition: none; }
  .obs-list::before { transform: scaleY(1); transition: none; }
}
.obs-updated { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 10px; padding-left: 40px; }

/* ============================================================
   WORK / PROOF GRID
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter {
  font-size: 0.82rem; font-weight: 550; color: var(--ink-dim); background: var(--white);
  border: 1px solid var(--line-2); padding: 8px 15px; border-radius: 22px; cursor: pointer; transition: all .15s ease;
}
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter:hover:not([aria-pressed="true"]) { border-color: var(--peri); color: var(--navy); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--r);
  padding: 26px 24px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--peri-soft); }
.card .cat {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--peri); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.01em; }
.card .ctx { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); margin-bottom: 15px; }
.card .out { font-size: 0.92rem; color: var(--ink-dim); flex: 1; }
.card .link { margin-top: 16px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card .link.muted { color: var(--ink-faint); cursor: default; font-weight: 550; }
.card .link.muted:hover { text-decoration: none; }
.card .todo { color: var(--sand); }

.star { flex: 1; }
.star p { font-size: 0.89rem; color: var(--ink-dim); margin: 0 0 11px; line-height: 1.55; }
.star p:last-child { margin-bottom: 0; }
.star-k {
  display: inline-block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--peri); margin-right: 8px; vertical-align: 1px;
  background: var(--peri-tint); padding: 2px 7px; border-radius: 5px;
}

/* ============================================================
   PLAYBOOKS
   ============================================================ */
.essays { display: flex; flex-direction: column; gap: 20px; max-width: 940px; }
.essay {
  background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--r);
  padding: 32px 36px; position: relative; box-shadow: var(--shadow-sm);
}
.essay-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.essay-ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; background: var(--peri-tint); color: var(--navy); }
.essay-idx { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); }
.essay-kind { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peri); }
.essay h3 { font-size: 1.4rem; margin: 4px 0 16px; font-weight: 750; letter-spacing: -0.02em; }
.essay-body { columns: 2; column-gap: 40px; }
.essay-body p { break-inside: avoid; font-size: 0.93rem; line-height: 1.62; }
@media (max-width: 720px) { .essay { padding: 24px 22px; } .essay-body { columns: 1; } }

/* ============================================================
   TOOLS (live embeds)
   ============================================================ */
.tool-block { margin-bottom: 40px; }
.tool-block:last-child { margin-bottom: 0; }
.tool-block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.tool-block-head h3 { font-size: 1.3rem; margin-bottom: 4px; font-weight: 750; letter-spacing: -0.02em; }
.tool-block-head p { margin: 0; max-width: 52ch; font-size: 0.93rem; }
.tool-block-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tlink { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); }
.tlink:hover { color: var(--peri); }
.tool-frame-wrap {
  border: 1px solid var(--lav-line); border-radius: var(--r); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
}
.tool-frame-wrap iframe { width: 100%; height: 78vh; min-height: 560px; border: 0; display: block; background: #fff; }
.tool-note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 14px; }

/* ============================================================
   WRITING
   ============================================================ */
.writing-list { border-top: 1px solid var(--line); max-width: 940px; }
.wr { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.wr .date { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-faint); }
.wr h3 { font-size: 1.08rem; margin: 0 0 4px; font-weight: 700; }
.wr p { margin: 0; font-size: 0.89rem; }
.wr .tag { font-family: var(--mono); font-size: 0.64rem; color: var(--navy); background: var(--peri-tint);
  border: 1px solid var(--lav-line); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
@media (max-width: 640px) { .wr { grid-template-columns: 1fr; gap: 6px; } .wr .tag { justify-self: start; } }
.writing-channels { font-size: 1rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-portrait { display: flex; flex-direction: column; gap: 20px; }
.about-portrait img {
  width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg);
  border: 5px solid var(--white); box-shadow: var(--shadow);
}
.about-body p { font-size: 1.0rem; }
.cred-block { margin-top: 28px; }
.cred-block h4, .belief h4, .anchor h4 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--peri); margin-bottom: 12px;
}
.principles { list-style: none; padding: 0; margin: 12px 0 0; }
.principles li { padding: 11px 0 11px 26px; position: relative; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.93rem; }
.principles li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 12px;
  border: 2px solid var(--peri); border-radius: 4px; transform: rotate(45deg);
}
.beliefs { display: grid; gap: 16px; }
.belief { background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.belief h4 { color: var(--navy); }
.belief p { font-size: 0.95rem; margin-bottom: 0; }

.anchors { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 40px; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .anchors { grid-template-columns: 1fr; gap: 34px; } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 20px 24px; position: relative; border-left: 1px solid var(--line-2); }
.timeline li:last-child { border-left: 1px solid transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; background: var(--peri); border-radius: 50%; box-shadow: 0 0 0 4px var(--lav); }
.band-lav .timeline li::before { box-shadow: 0 0 0 4px var(--lav); }
.timeline .role { font-weight: 650; color: var(--ink); font-size: 0.94rem; }
.timeline .org { font-size: 0.88rem; color: var(--ink-dim); }
.timeline .yr { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); background: var(--white); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 8px; }
.foot-note { font-family: var(--mono); font-size: 0.73rem; color: var(--ink-faint); }

/* ============================================================
   PERSONAL
   ============================================================ */
.personal-lead { max-width: 720px; }
.personal-lead p { font-size: 1.06rem; color: var(--ink-dim); }
.personal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 820px) { .personal-grid { grid-template-columns: 1fr; } }
.pcard {
  background: var(--white); border: 1px solid var(--lav-line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .pico { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--peri-tint); color: var(--navy); }
.pcard h3 { font-size: 1.12rem; margin-bottom: 8px; font-weight: 700; }
.pcard p { font-size: 0.93rem; margin-bottom: 0; }

/* ============================================================
   DIGITAL TWIN
   ============================================================ */
.twin { max-width: 800px; }
.twin-card { border: 1px solid var(--lav-line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.twin-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--lav-2); }
.twin-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--lav-line); }
.twin-head .t { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.twin-head .s { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-faint); }
.twin-head .status { width: 8px; height: 8px; border-radius: 50%; background: #3f9d6a; margin-left: auto; box-shadow: 0 0 0 4px rgba(63,157,106,.14); }
.twin-log { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 420px; overflow-y: auto; }
.msg { display: flex; gap: 10px; max-width: 92%; }
.msg .bubble { padding: 12px 16px; border-radius: 15px; font-size: 0.93rem; line-height: 1.55; }
.msg.bot .bubble { background: var(--lav); border: 1px solid var(--lav-line); color: var(--ink); border-top-left-radius: 4px; }
.msg.user { align-self: flex-end; }
.msg.user .bubble { background: var(--navy); color: #fff; border-top-right-radius: 4px; }
.msg.bot .bubble a { color: var(--peri); }
.twin-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.chip-q { font-size: 0.8rem; color: var(--ink-dim); background: var(--lav); border: 1px solid var(--lav-line); padding: 8px 13px; border-radius: 20px; cursor: pointer; transition: all .15s ease; }
.chip-q:hover { border-color: var(--peri); color: var(--peri); }
.twin-form { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--lav-2); }
.twin-form input { flex: 1; background: var(--white); border: 1px solid var(--line-2); color: var(--ink); padding: 12px 15px; border-radius: 11px; font-family: var(--sans); font-size: 0.94rem; }
.twin-form input::placeholder { color: var(--ink-faint); }
.twin-form button { background: var(--navy); color: #fff; border: 0; border-radius: 11px; padding: 0 22px; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.twin-form button:hover { background: var(--navy-deep); }
.twin-guard { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-faint); margin-top: 14px; line-height: 1.6; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); margin: 0 1px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 48px 0 60px; background: var(--lav-2); }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 0.82rem; align-items: flex-start; }
.foot-links a { color: var(--ink-dim); }
.foot-links a:hover { color: var(--peri); }
.foot-contact { font-family: var(--mono); font-size: 0.84rem; margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.foot-contact span { color: var(--ink-faint); }

/* ---------- Reveal on scroll ---------- */
.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; } }

/* ---------- At a glance band ---------- */
.stats-band { padding: 56px 0; }

/* ============================================================
   SHOW MORE (mobile-only collapse for long blocks)
   Desktop always shows everything; the nth-child hide lives inside the
   mobile media query only, so the .is-collapsed class is inert on desktop.
   ============================================================ */
.show-more-btn { display: none; }

@media (max-width: 680px) {
  .show-more-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 16px 0 0; padding: 11px 20px; border-radius: 24px;
    background: var(--white); border: 1px solid var(--line-2); color: var(--navy);
    font-family: var(--sans); font-size: 0.88rem; font-weight: 600; cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .show-more-btn .ic { width: 16px; height: 16px; transition: transform .2s ease; }
  .show-more-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .arc-track.is-collapsed .arc-stop:nth-child(n+4) { display: none; }
  .obs-list.is-collapsed .obs:nth-child(n+4) { display: none; }
}

/* ============================================================
   MOBILE LENGTH + DENSITY (shorter, cleaner scroll on phones)
   ============================================================ */
@media (max-width: 680px) {
  section { padding: 48px 0; }
  .stats-band { padding: 32px 0; }
  .hero { padding: 30px 0 36px; }
  .hero .eyebrow { margin-top: 30px !important; }
  .hero-grid { gap: 22px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(1.6rem, 7.6vw, 2.05rem); line-height: 1.1; margin-bottom: 14px; }
  .hero-sub { font-size: 1rem; margin-bottom: 20px; }
  .hero-photo { width: min(158px, 44vw); }
  .hero-photo img { border-width: 5px; }
  .dorow { margin-top: 28px; gap: 12px; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 0.98rem; }
  .sec-num { margin-bottom: 16px; }
  /* On the vertical mobile timeline the cards must size to their content;
     height:100% (meant for the equal-height desktop row) stretches them to a
     full screen each and bloats the scroll. */
  .arc-card { height: auto; }
  .arc-through { margin-top: 20px; font-size: 0.96rem; }
  .enter-head { margin: 36px 0 18px; }
  .spectrum-head { margin-bottom: 26px; }
  .anchors { margin-top: 36px; padding-top: 30px; gap: 26px; }
  .essays { gap: 16px; }
  .tool-block { margin-bottom: 28px; }
  .personal-lead p { font-size: 1rem; }
}

/* ============================================================
   DARK THEME
   Everything is driven by CSS custom properties, so the dark variant is
   mostly a remap of the tokens, plus a handful of overrides for elements that
   use the strong navy as a *fill* (buttons, active pills) and need white text
   on a solid accent rather than dark text on a now-light token.
   Theme preference is stored in localStorage; first visit respects the OS.
   ============================================================ */
:root[data-theme="dark"] {
  --white: #172a44;
  --card: #172a44;
  --bg: #0d1a2b;
  --lav: #101d2e;
  --lav-2: #101f30;
  --lav-3: #1d3049;
  --lav-line: #294061;
  --navy: #cdd5f4;       /* used as strong text -> light periwinkle */
  --navy-deep: #4a57b8;
  --peri: #97a1e6;
  --peri-soft: #6f7bd0;
  --peri-tint: #21304f;
  --sand: #d6ac7d;
  --ink: #e8eef8;
  --ink-dim: #aab9ce;
  --ink-faint: #7f92aa;
  --line: #223850;
  --line-2: #2d4767;
  color-scheme: dark;
}
:root[data-theme="dark"] .nav {
  background: rgba(13,26,43,0.85);
  border-bottom-color: var(--line);
}
/* Elements that use navy as a solid fill need a real accent + white text. */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .tab[aria-selected="true"],
:root[data-theme="dark"] .filter[aria-pressed="true"],
:root[data-theme="dark"] .stage.active .stage-ico,
:root[data-theme="dark"] .arc-stop.is-now .arc-node,
:root[data-theme="dark"] .msg.user .bubble,
:root[data-theme="dark"] .twin-form button,
:root[data-theme="dark"] .skip {
  background-color: #5766c6;
  color: #fff;
}
:root[data-theme="dark"] .filter[aria-pressed="true"] { border-color: #5766c6; }
:root[data-theme="dark"] .arc-stop.is-now .arc-node { border-color: #5766c6; }
:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .twin-form button:hover { background-color: #6675d8; }
/* Soften the heavy light-mode drop shadows on dark surfaces. */
:root[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0,0,0,.30), 0 6px 16px -10px rgba(0,0,0,.55);
  --shadow: 0 2px 5px rgba(0,0,0,.35), 0 22px 44px -26px rgba(0,0,0,.70);
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.75);
}

/* ---------- Tool wrapper pages ---------- */
.tool-page { padding: 40px 0 60px; }
.tool-intro { max-width: 760px; margin-bottom: 28px; }
.tool-intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.backlink { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-dim); display: inline-flex; gap: 6px; margin-bottom: 20px; }
.tool-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.76rem; color: var(--ink-dim); flex-wrap: wrap; background: var(--lav-2); }
