:root {
  color-scheme: dark;
  --bg: #0e1013;
  --surface: #161a1f;
  --surface-2: #1d2229;
  --ink: #eeeae4;
  --muted: #a7a39c;
  --line: #2a3038;
  --accent: #e8925f;
  --accent-ink: #1a0f08;
  --accent-soft: rgba(232, 146, 95, .14);
  --teal: #7ccfc1;
  --teal-soft: rgba(124, 207, 193, .12);
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
em { color: var(--accent); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(14, 16, 19, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .93rem; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
.voice-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.voice-bars i { width: 3px; height: 5px; background: currentColor; border-radius: 2px; }
.speaking .voice-bars i { animation: bar .9s ease-in-out infinite; }
.speaking .voice-bars i:nth-child(2) { animation-delay: .15s; }
.speaking .voice-bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { 50% { height: 14px; } }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero.compact { padding: 64px 0 40px; }
.hero.compact .wrap { grid-template-columns: 1fr; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 44ch; }
.hero.compact .lede { max-width: 62ch; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.portrait picture { display: block; width: 100%; height: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait .initials { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--serif); font-size: 5rem; color: var(--accent); }
.portrait.no-photo .initials { display: grid; }
.portrait figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(14, 16, 19, .8); color: var(--ink); font-size: .84rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--surface); padding: 22px 24px; }
.stats b { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--accent); line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--muted); }
.stats.three { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.band .card { background: var(--bg); }
.card p { color: var(--muted); font-size: .96rem; }
.card > :last-child { margin-bottom: 0; }
a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .more { margin-top: auto; color: var(--accent); font-size: .92rem; }
.tags { margin-bottom: 14px; }
.tag { display: inline-block; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin: 0 6px 6px 0; }
.tag.teal { background: var(--teal-soft); color: var(--teal); }

/* Tracks (home) */
.track h3 { font-size: 1.5rem; }
.track ul { margin: 0 0 20px; padding: 0; list-style: none; }
.track li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.track li:last-child { border-bottom: 0; }

/* Case studies */
.case { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-meta { font-size: .9rem; }
.case-meta dl { margin: 0; }
.case-meta dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-top: 16px; }
.case-meta dt:first-child { margin-top: 0; }
.case-meta dd { margin: 4px 0 0; }
.case-body h3 { font-size: 1.05rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin: 28px 0 10px; }
.case-body h3:first-of-type { margin-top: 20px; }
.case-body > h2 { margin-bottom: .4em; }
.case-body p, .case-body li { color: var(--muted); }
.case-body strong { color: var(--ink); }
.case-body ul { padding-left: 20px; margin: 0; }
.case-body li { margin-bottom: 8px; }
.case-body .stats { margin: 24px 0 8px; }

/* Crisp comparison table */
.map { width: 100%; border-collapse: collapse; }
.map th, .map td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.map thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; }
.map thead th:nth-child(1) { color: var(--muted); }
.map thead th:nth-child(2) { color: var(--ink); }
.map thead th:nth-child(3) { color: var(--accent); }
.map thead th:nth-child(4) { color: var(--teal); }
.map tbody th { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.map td { color: var(--muted); }

.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline > li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 3px 0 0; }
.timeline h3 { font-size: 1.12rem; margin: 0 0 4px; }
.timeline p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Quotes */
.quote { margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.quote .translation { font-size: .92rem; }
.quote figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }
.quote.wide blockquote { font-size: clamp(1.3rem, 2.4vw, 1.7rem); max-width: 40ch; }

code { font-size: .86em; background: var(--surface-2); color: var(--ink); padding: 1px 6px; border-radius: 6px; }

/* CTA + footer */
.cta { text-align: center; }
.cta .lede { margin: 0 auto; }
.cta .actions { justify-content: center; }
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 340px; }
  .stats, .stats.three { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 20px; }
  .timeline > li { grid-template-columns: 1fr; gap: 4px; }
  .map thead { display: none; }
  .map, .map tbody, .map tr, .map th, .map td { display: block; width: 100%; }
  .map tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .map th, .map td { border: 0; padding: 4px 0; }
  .map td::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--teal); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .speaking .voice-bars i { animation: none; height: 10px; }
  a.card:hover { transform: none; }
}

/* Coordinator positioning */
.h1-sub { display: block; font-size: .5em; font-weight: 500; color: var(--muted); margin-top: .35em; letter-spacing: 0; }
.case-body h3 + p, .case-body h3 + ul { margin-top: 0; }
.case-index { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { font-size: .88rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.toc a:hover { color: var(--ink); border-color: var(--muted); }
.map.two-col thead th:nth-child(2) { color: var(--muted); }
.map.two-col thead th:nth-child(3) { color: var(--accent); }

/* Case study visuals */
.visual { margin: 22px 0 8px; padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.visual figcaption { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.matrix { display: grid; grid-template-columns: auto 1fr 1fr; grid-template-rows: 1fr 1fr auto; gap: 8px; }
.matrix .axis-y { grid-row: 1 / 3; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .78rem; color: var(--muted); }
.matrix .axis-x { grid-column: 2 / 4; text-align: center; font-size: .78rem; color: var(--muted); }
.matrix .cell { padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; color: var(--ink); background: var(--surface); min-height: 78px; }
.matrix .cell span { color: var(--muted); font-size: .84rem; }
.matrix .cell.hot { border-color: var(--accent); background: var(--accent-soft); grid-column: 3; grid-row: 1; }
.matrix .cell:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.matrix .cell:nth-of-type(3) { grid-column: 3; grid-row: 2; }
.matrix .cell:nth-of-type(4) { grid-column: 2; grid-row: 2; }
.matrix .cell b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .74rem; margin-right: 4px; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.flow li { position: relative; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9rem; }
.flow li + li::before { content: "→"; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.flow.status li.bad { border-color: #b4553a; color: #f0a58c; }
.flow.status li.good { border-color: var(--teal); color: var(--teal); }
.case-body h3 + p strong { color: var(--ink); }
.gap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gap-grid div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .88rem; color: var(--muted); }
.gap-grid b { display: block; color: var(--ink); font-size: .92rem; margin-bottom: 2px; }
.gap-out { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; font-size: .92rem; color: var(--ink); text-align: center; }
@media (max-width: 860px) { .gap-grid { grid-template-columns: 1fr 1fr; } }
.small-note { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
/* Flow diagrams: one even row on desktop, a vertical list on phones */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 26px; }
.flow li { text-align: center; border-radius: 10px; display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: .86rem; }
.flow.status { grid-auto-columns: max-content; }
@media (max-width: 700px) {
  .flow, .flow.status { grid-auto-flow: row; grid-auto-columns: auto; gap: 22px; }
  .flow li + li::before { content: "↓"; left: 50%; top: -19px; transform: translateX(-50%); }
}
/* Before/after matrix */
.ba { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ba th, .ba td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ba thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ba tbody th { color: var(--ink); font-weight: 600; }
.ba td.no { color: #f0a58c; }
.ba td.yes { color: var(--teal); }
.ba tr:last-child th, .ba tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .ba th, .ba td { padding: 8px 6px; font-size: .84rem; } }
.map.methods tbody th { white-space: normal; font-size: 1rem; }
.map.methods thead th:nth-child(2) { color: var(--muted); }
.map.methods thead th:nth-child(3) { color: var(--accent); }

/* Simulations */
.notice { max-width: 62ch; margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--teal); background: var(--teal-soft); border-radius: 10px; font-size: .94rem; color: var(--muted); }
.notice strong { color: var(--ink); }
.eyebrow a { color: inherit; }
.case.long .case-meta dl { position: sticky; top: 96px; }
.case.long .case-body > .case-index { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.case.long .case-body > .case-index:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.principle { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--ink) !important; }
.case-body ol.kpis { padding-left: 22px; margin: 0; }
.case-body ol.kpis li::marker { color: var(--accent); font-weight: 600; }
.case-body ul.pairs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.case-body ul.pairs li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--ink); }
.case-body ul.pairs span { color: var(--accent); }
.gap-grid.two { grid-template-columns: repeat(2, 1fr); }
.gap-grid.three { grid-template-columns: repeat(3, 1fr); }
.ba td { color: var(--muted); }
.ba.num td { font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .case.long .case-meta dl { position: static; }
  .gap-grid.two, .gap-grid.three { grid-template-columns: 1fr; }
}

/* Project documentation tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ba.wide { min-width: 720px; }
.ba th, .ba td { vertical-align: top; }
.statement { margin: 0 0 16px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; background: var(--bg); }
.statement p { margin: 0; font-style: italic; }
.case-body, .case-meta { min-width: 0; }
.ba.wide tbody th { white-space: nowrap; }

/* Home: focus line under the job title, and the five PM skills with evidence links */
.focus { margin: -4px 0 18px; font-size: 1.05rem; font-weight: 600; color: var(--teal); }
.grid.skills { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid.skills .card { display: flex; flex-direction: column; padding: 22px; }
.grid.skills h3 { color: var(--accent); }
.evidence { margin-top: auto; padding-top: 10px; font-size: .84rem; font-weight: 600; text-decoration: none; }
.evidence::after { content: " →"; }
@media (max-width: 1000px) { .grid.skills { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid.skills { grid-template-columns: 1fr; } }
/* Documentation pack: each section is a formal document */
.wrap.pack { display: grid; gap: 40px; }
.doc { padding: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 84px; min-width: 0; }
.doc-head { padding: 24px 28px 22px; border-bottom: 2px solid var(--accent); }
.doc-no { margin: 0 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.doc-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.doc-control { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 18px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doc-control div { padding: 10px 14px; background: var(--surface); }
.doc-control dt { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc-control dd { margin: 2px 0 0; font-size: .92rem; color: var(--ink); }
.doc-body { padding: 8px 28px 28px; }
.doc-body h3 { margin: 26px 0 10px; font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.doc-body .table-scroll { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.doc-body > .table-scroll:first-child { margin-top: 20px; }
.doc-body .visual { margin: 0 0 16px; }
.doc-body ul { margin: 0; padding-left: 18px; }
.doc-body li { margin-bottom: 4px; }
.doc-body .statement { margin-bottom: 16px; }
.doc-body .statement p { color: var(--muted); }
.ba.form tbody th { width: 28%; min-width: 140px; background: var(--surface); }
.doc .ba thead th { background: var(--surface); }
@media (max-width: 560px) {
  .doc-head { padding: 18px 16px; }
  .doc-body { padding: 4px 16px 20px; }
  .ba.form tbody th { min-width: 110px; }
}

/* Case study steps: numbered project phases */
.case-body ol.phases { padding-left: 24px; margin: 0; }
.case-body ol.phases li { margin-bottom: 10px; padding-left: 4px; }
.case-body ol.phases li::marker { color: var(--accent); font-weight: 600; }

/* Collapsible extra lessons in case studies */
.more-lessons { margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.more-lessons summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--accent); }
.more-lessons[open] { padding-bottom: 16px; }
.more-lessons h4 { margin: 18px 0 8px; font-family: var(--sans); font-size: 1rem; color: var(--ink); }

/* Project appreciation quote in case studies */
.case-body .appreciation { margin: 0 0 8px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.case-body .appreciation blockquote { font-size: 1.1rem; }
.case-body .appreciation figcaption { border-top: 0; padding-top: 0; }
