/* Falnan Silue — executive portal
   Palette: atlas ink (deep international blue), cool porcelain paper, maple red reserved for the home base and the essentials.
   Type: Spectral for voice, Public Sans for reading and interface. */

:root {
  --ink: #0e1726;
  --ink-soft: #2a3547;
  --slate: #4d5b6e;
  --line: #d8dee6;
  --paper: #f5f6f8;
  --white: #ffffff;
  --mal: #14406e;
  --mal-deep: #0c2c52;
  --mal-night: #071a31;
  --mal-tint: #e6edf6;
  --brass: #c8102e;
  --brass-light: #f0646d;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --wrap: 72rem;
  --measure: 38rem;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: 'kern', 'liga';
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--mal-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); font-weight: 400; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.375rem; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.measure { max-width: var(--measure); }
.lede { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.5; color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--slate); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: var(--s3) var(--s4); z-index: 99; }
.skip:focus { left: var(--s4); top: var(--s4); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 248, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head.on-dark { background: rgba(7, 26, 49, .92); border-bottom-color: rgba(255,255,255,.08); }
.head-row { display: flex; align-items: center; gap: var(--s5); min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: var(--s3); color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.01em; }
.brand:hover { color: inherit; }
.brand svg { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.nav a { color: inherit; text-decoration: none; font-size: .9375rem; padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--brass); color: inherit; }
.nav .lang { font-size: .875rem; color: var(--slate); }
.on-dark, .on-dark .nav .lang { color: #e9eef6; }
.on-dark .nav .lang { color: #b6c4d8; }
.btn { display: inline-flex; align-items: center; gap: var(--s2); padding: .7rem 1.15rem; border-radius: var(--radius); background: var(--mal); color: var(--white); text-decoration: none; font: 600 .9375rem/1.2 var(--sans); border: 1px solid var(--mal); cursor: pointer; }
.btn:hover { background: var(--mal-deep); color: var(--white); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--mal); }
.btn.ghost:hover { background: var(--mal-tint); color: var(--mal-deep); }
.on-dark .btn.ghost, .hero .btn.ghost { color: #e9eef6; border-color: rgba(232,239,235,.5); }
.on-dark .btn.ghost:hover, .hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.nav .btn { padding: .55rem .9rem; border-bottom: 1px solid var(--mal); color: var(--white); }
.nav .btn:hover { color: var(--white); }
.nav .btn:hover { border-bottom-color: var(--mal-deep); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--radius); padding: .45rem .7rem; font: 600 .875rem var(--sans); }
@media (max-width: 880px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: var(--s3) var(--s5) var(--s5); background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); }
  .on-dark .nav { background: var(--mal-night); color: #e9eef6; }
  .nav.open { display: flex; }
  .nav a { padding: var(--s3) 0; width: 100%; }
  .nav .btn { margin-top: var(--s3); width: auto; }
}

/* Hero: rooted in Ottawa, a globe of results */
.hero { background: radial-gradient(90% 120% at 78% 45%, #12345e 0%, var(--mal-night) 62%); color: #e9eef6; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s6); align-items: center; min-height: min(88vh, 50rem); padding-top: var(--s7); padding-bottom: var(--s7); }
.hero > .wrap { width: 100%; }
.hero .kicker { color: var(--brass-light); font-size: .9375rem; margin-bottom: var(--s5); display: flex; align-items: center; gap: var(--s3); }
.hero .kicker::before { content: ''; width: 1.75rem; height: 2px; background: var(--brass-light); }
.hero h1 { color: var(--white); font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem); line-height: 1; margin-bottom: var(--s5); }
.hero-id { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s5); }
.hero-id h1 { margin-bottom: 0; }
.portrait { flex: none; display: block; width: clamp(5.5rem, 4rem + 4vw, 7.5rem); aspect-ratio: 1; border-radius: 50%; padding: 3px; background: linear-gradient(140deg, var(--brass-light), rgba(255,255,255,.15)); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero .statement { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1.45; color: #dbe3ee; margin-bottom: var(--s5); max-width: 36rem; }
.hero .sub { color: #a6b6cb; max-width: 34rem; margin-bottom: var(--s6); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero .btn { background: var(--brass); border-color: var(--brass); }
.hero .btn:hover { background: #a10d25; }
.hero .btn.ghost { background: transparent; }
.globe { position: relative; margin: 0; aspect-ratio: 1; width: 100%; max-width: 40rem; justify-self: end; cursor: grab; touch-action: pan-y; }
.globe.grabbing { cursor: grabbing; }
.globe::before { content: ''; position: absolute; inset: 4%; background: url('/graticule.svg') center / contain no-repeat; opacity: .6; transition: opacity .8s; }
.globe.live::before { opacity: 0; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe figcaption { position: absolute; left: 0; right: 0; bottom: -.5rem; text-align: center; font-size: .8125rem; color: #8ea1ba; }
.places { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.places li { display: none; }
.globe.live .places li { display: block; position: absolute; left: 0; top: 0; padding-left: .9rem; white-space: nowrap; transition: opacity .4s; will-change: transform; }
.globe.live .places li::before { content: ''; position: absolute; left: 0; top: .5rem; width: .5rem; height: 1px; background: #dbe3ee; }
.places li.left { padding-left: 0; padding-right: .9rem; translate: -100% 0; text-align: right; }
.places li.left::before { left: auto; right: 0; }
.places li.away { opacity: 0; }
.places b { display: block; font: 500 .9375rem/1.2 var(--serif); color: var(--white); text-shadow: 0 1px 8px rgba(7,26,49,.9); }
.places li:not(.home) span { display: none; }
.places span { display: block; font-size: .75rem; color: #b6c4d8; text-shadow: 0 1px 8px rgba(7,26,49,.9); }
.places li.home b { color: var(--brass-light); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: var(--s4); padding-bottom: var(--s6); }
  .globe { justify-self: center; max-width: 26rem; }
  .places span { display: none; }
}

/* Proof ledger */
.ledger { background: var(--mal-deep); color: #e9eef6; }
.ledger ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger li { padding: var(--s6) var(--s5) var(--s6) 0; border-top: 1px solid rgba(255,255,255,.12); }
.ledger li:nth-child(-n+3) { border-top: 0; }
.ledger b { display: block; font: 400 2.25rem/1 var(--serif); color: var(--white); margin-bottom: var(--s3); letter-spacing: -.02em; }
.ledger span { font-size: .9375rem; color: #b6c4d8; display: block; max-width: 22rem; }
@media (max-width: 880px) { .ledger ul { grid-template-columns: 1fr 1fr; } .ledger li:nth-child(3) { border-top: 1px solid rgba(255,255,255,.12); } }
@media (max-width: 520px) { .ledger ul { grid-template-columns: 1fr; } .ledger li:nth-child(2) { border-top: 1px solid rgba(255,255,255,.12); } }

/* Sections */
.section { padding: var(--s9) 0; }
.section.tight { padding: var(--s8) 0; }
.section.tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: end; margin-bottom: var(--s7); }
.section-head p { color: var(--slate); margin: 0; max-width: 32rem; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: var(--s4); } .section { padding: var(--s8) 0; } }

/* Lenses */
.lens-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s7); overflow-x: auto; }
.lens-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: var(--s4) var(--s5) var(--s4) 0; margin-right: var(--s5); font: 500 1.0625rem var(--sans); color: var(--slate); cursor: pointer; white-space: nowrap; }
.lens-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--mal); }
.lens-tabs button:hover { color: var(--ink); }
.lens-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); }
.lens-panel[hidden] { display: none; }
.lens-panel h3 { font-size: 1.875rem; font-weight: 400; margin-bottom: var(--s5); }
.lens-panel > div > p { color: var(--ink-soft); }
.pillars { list-style: none; }
.pillars li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars h4 { font-family: var(--serif); font-weight: 500; font-size: 1.125rem; }
.pillars p { margin: 0 0 var(--s2); }
.pillars .links { font-size: .875rem; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
@media (max-width: 880px) { .lens-panel { grid-template-columns: 1fr; gap: var(--s5); } .pillars li { grid-template-columns: 1fr; gap: var(--s2); } }

/* Mission index rows */
.dossiers { list-style: none; border-top: 1px solid var(--ink); }
.dossier-row { border-bottom: 1px solid var(--line); }
.dossier-row a { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 14rem; gap: var(--s6); padding: var(--s6) 0; color: inherit; text-decoration: none; align-items: start; }
.dossier-row a:hover { background: linear-gradient(90deg, var(--mal-tint), transparent 70%); }
.dossier-row a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.dossier-row .fig { font: 400 2rem/1 var(--serif); color: var(--mal); letter-spacing: -.02em; }
.dossier-row .fig small { display: block; font: 400 .8125rem/1.4 var(--sans); color: var(--slate); margin-top: var(--s2); letter-spacing: 0; }
.dossier-row h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: var(--s3); }
.dossier-row p { color: var(--ink-soft); margin: 0; max-width: 40rem; }
.dossier-row .meta { font-size: .875rem; color: var(--slate); }
.dossier-row .meta em { display: block; font-style: normal; color: var(--mal); margin-top: var(--s3); font-weight: 600; }
@media (max-width: 880px) { .dossier-row a { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s5) 0; } .dossier-row .fig { font-size: 1.625rem; } }

.domain-block { margin-bottom: var(--s8); }
.domain-block > h2 { font-size: 1.625rem; margin-bottom: var(--s5); }

/* Method — a real sequence, so it is numbered */
.method { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
.method li { counter-increment: step; border-top: 2px solid var(--mal); padding-top: var(--s4); }
.method li::before { content: counter(step); font: 400 1.75rem/1 var(--serif); color: var(--brass); display: block; margin-bottom: var(--s3); }
.method h4 { margin-bottom: var(--s2); }
.method p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 880px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

/* Roles + quote */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }
.roles { list-style: none; }
.roles li { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; padding: var(--s4) 0; border-top: 1px solid var(--line); }
blockquote { margin: 0; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.35 var(--serif); color: var(--mal-deep); border-left: 3px solid var(--brass); padding-left: var(--s5); }
blockquote cite { display: block; font: 400 .9375rem var(--sans); color: var(--slate); margin-top: var(--s4); font-style: normal; }

/* CTA band */
.cta { background: var(--mal); color: var(--white); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s5); padding-top: var(--s8); padding-bottom: var(--s8); }
.cta h2 { color: var(--white); margin-bottom: var(--s3); }
.cta p { color: #cdd9ea; margin: 0; max-width: 34rem; }
.cta .btn { background: var(--white); color: var(--mal-deep); border-color: var(--white); }
.cta .btn:hover { background: var(--mal-tint); }

/* Page header (inner pages) */
.page-head { padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; margin-bottom: var(--s5); }
.crumb { font-size: .9375rem; margin-bottom: var(--s5); display: inline-block; }

/* Mission dossier */
.dossier-head { background: var(--mal-night); color: #e9eef6; padding: var(--s8) 0 var(--s7); position: relative; overflow: hidden; }
.dossier-head::before { content: ''; position: absolute; inset: 0; background: url('/graticule.svg') right -10rem top -14rem / 44rem auto no-repeat; opacity: .5; pointer-events: none; }
.dossier-head .wrap { position: relative; }
.dossier-head .crumb { color: #b6c4d8; }
.dossier-head .crumb:hover { color: var(--white); }
.dossier-head .domain { color: var(--brass-light); font-size: .9375rem; margin-bottom: var(--s4); }
.dossier-head h1 { color: var(--white); max-width: 24ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin-bottom: var(--s5); }
.dossier-head .lede { color: #d3dcea; }
.dossier-head .period { color: #a6b6cb; font-size: .9375rem; margin: 0; }
.figures { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s6) var(--s7); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid rgba(255,255,255,.14); }
.figures b { display: block; font: 400 2rem/1 var(--serif); color: var(--white); margin-bottom: var(--s2); letter-spacing: -.02em; }
.figures span { font-size: .875rem; color: #b6c4d8; display: block; max-width: 15rem; }

.dossier-body { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s8); padding-top: var(--s8); padding-bottom: var(--s9); }
.alt-nav { position: sticky; top: 6rem; align-self: start; }
.alt-nav p { font-size: .875rem; color: var(--slate); margin-bottom: var(--s4); }
.alt-nav ol { list-style: none; position: relative; padding-left: 2rem; }
.alt-nav ol::before { content: ''; position: absolute; left: .45rem; top: .55rem; bottom: .55rem; width: 1px; background: var(--line); }
.alt-nav li { position: relative; margin-bottom: var(--s5); }
.alt-nav li::before { content: ''; position: absolute; left: -1.85rem; top: .4rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--slate); transition: background .2s, border-color .2s; }
.alt-nav li.active::before { background: var(--brass); border-color: var(--brass); }
.alt-nav button, .alt-nav a { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: 500 1.0625rem var(--serif); color: var(--ink); text-decoration: none; display: block; }
.alt-nav li.active button, .alt-nav li.active a { color: var(--mal); }
.alt-nav small { display: block; font: 400 .8125rem var(--sans); color: var(--slate); }
.altitude { scroll-margin-top: 6rem; }
.js .altitude[hidden] { display: none; }
.altitude > h2 { font-size: 1.75rem; margin-bottom: var(--s5); }
.altitude .prose p { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.65; max-width: 40rem; }
.facts { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s4) var(--s6); margin: 0 0 var(--s6); }
.facts dt { font-weight: 650; font-size: .9375rem; padding-top: .1rem; }
.facts dd { margin: 0; max-width: 40rem; }
.steps { list-style: none; counter-reset: s; max-width: 42rem; }
.steps li { counter-increment: s; position: relative; padding: var(--s3) 0 var(--s3) 2.5rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .7rem; font: 500 1rem var(--serif); color: var(--brass); }
.stack-list { list-style: none; max-width: 44rem; border-left: 2px solid var(--mal); }
.stack-list li { padding: var(--s3) 0 var(--s3) var(--s5); position: relative; }
.stack-list li + li { border-top: 1px dashed var(--line); }
.proves { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--ink); }
.proves h2 { font-size: 1.5rem; margin-bottom: var(--s5); }
.proves ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.proves li h4 { color: var(--slate); font-weight: 600; font-size: .875rem; margin-bottom: var(--s2); }
.proves li p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.45; margin: 0; }
.next { margin-top: var(--s7); display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; font-size: .9375rem; }
@media (max-width: 880px) {
  .dossier-body { grid-template-columns: 1fr; gap: var(--s5); padding-top: 0; }
  .alt-nav { position: sticky; top: 4.25rem; z-index: 5; background: var(--paper); margin: 0 calc(var(--s5) * -1); padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
  .alt-nav p { display: none; }
  .alt-nav ol { display: flex; gap: var(--s5); padding-left: 0; overflow-x: auto; }
  .alt-nav ol::before, .alt-nav li::before { display: none; }
  .alt-nav li { margin: 0; white-space: nowrap; padding-bottom: .2rem; border-bottom: 2px solid transparent; }
  .alt-nav li.active { border-bottom-color: var(--brass); }
  .alt-nav small { display: none; }
  .facts { grid-template-columns: 1fr; gap: var(--s1); }
  .facts dd { margin-bottom: var(--s3); }
  .proves ul { grid-template-columns: 1fr; }
}

/* Career timeline */
.timeline { list-style: none; position: relative; }
.timeline > li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s6); padding: var(--s6) 0; border-top: 1px solid var(--line); }
.timeline .yrs { font: 400 1.125rem var(--serif); color: var(--mal); }
.timeline h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: var(--s1); }
.timeline .org { font-weight: 600; margin-bottom: var(--s1); }
.timeline .place { color: var(--slate); font-size: .9375rem; margin-bottom: var(--s4); }
.aka { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; margin-bottom: var(--s4); font-size: .875rem; }
.aka span:first-child { color: var(--slate); margin-right: var(--s1); }
.aka .t { background: var(--mal-tint); color: var(--mal-deep); padding: .15rem .5rem; border-radius: var(--radius); }
.timeline dl { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s2) var(--s4); margin: 0 0 var(--s3); max-width: 46rem; }
.timeline dt { font-weight: 600; font-size: .9375rem; color: var(--slate); }
.timeline dd { margin: 0; }
.timeline .links { font-size: .9375rem; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
@media (max-width: 880px) { .timeline > li { grid-template-columns: 1fr; gap: var(--s2); } .timeline dl { grid-template-columns: 1fr; gap: 0; } .timeline dd { margin-bottom: var(--s2); } }
.facts-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7); }
.facts-band h3 { margin-bottom: var(--s4); }
.facts-band ul { list-style: none; }
.facts-band li { padding: var(--s2) 0; border-top: 1px solid var(--line); font-size: .9375rem; }
@media (max-width: 880px) { .facts-band { grid-template-columns: 1fr; gap: var(--s6); } }

/* Expertise stack: drawn as layers, ground at the bottom */
.stack { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.stack li { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 16rem; gap: var(--s6); padding: var(--s5) var(--s5); background: var(--white); border-left: 4px solid var(--mal); align-items: start; }
.stack li:nth-child(n+4) { border-left-color: #2b5a8c; }
.stack li:nth-child(n+7) { border-left-color: #5d80ab; }
.stack li:nth-child(n+9) { border-left-color: var(--brass); background: #fcf4f5; }
.stack h3 { font-size: 1.25rem; }
.stack p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.stack .used { font-size: .875rem; }
.stack .used span { color: var(--slate); display: block; margin-bottom: var(--s1); }
.stack .used a { display: block; }
@media (max-width: 880px) { .stack li { grid-template-columns: 1fr; gap: var(--s2); } }

/* Insights */
.briefs { list-style: none; border-top: 1px solid var(--ink); }
.briefs li { border-bottom: 1px solid var(--line); }
.briefs a { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: var(--s6); padding: var(--s6) 0; color: inherit; text-decoration: none; }
.briefs a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.briefs h2 { font-size: 1.875rem; margin-bottom: var(--s3); }
.briefs p { color: var(--ink-soft); margin: 0; }
.briefs .min { color: var(--slate); font-size: .9375rem; text-align: right; }
.article { padding: var(--s8) 0 var(--s9); }
.article .body { max-width: 40rem; }
.article .body p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; }
.article .body h2 { font-size: 1.625rem; margin: var(--s7) 0 var(--s4); }
.test { margin: var(--s7) 0; padding: var(--s6); background: var(--white); border-top: 3px solid var(--mal); max-width: 44rem; }
.test h2 { margin-top: 0 !important; font-size: 1.375rem !important; }
.test dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s3) var(--s5); margin: var(--s5) 0 0; }
.test dt { font-weight: 650; }
.test dd { margin: 0; }
@media (max-width: 520px) { .test dl { grid-template-columns: 1fr; gap: 0; } .test dd { margin-bottom: var(--s3); } .briefs a { grid-template-columns: 1fr; } .briefs .min { text-align: left; } }

/* Engage */
.mandates { list-style: none; }
.mandates li { display: grid; grid-template-columns: 14rem minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.mandates h3 { font-size: 1.25rem; }
.mandates p { margin: 0; }
.mandates .out { color: var(--slate); font-size: .9375rem; }
@media (max-width: 880px) { .mandates li { grid-template-columns: 1fr; gap: var(--s2); } }
.plain-list { list-style: none; }
.plain-list li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.form { background: var(--white); border: 1px solid var(--line); padding: var(--s6); border-radius: var(--radius); }
.form h2 { font-size: 1.75rem; margin-bottom: var(--s5); }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: var(--s2); }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); padding: .7rem .8rem; border: 1px solid #aab6c6; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--mal); outline-offset: 0; border-color: var(--mal); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; gap: 0; } .form { padding: var(--s5); } }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: .9375rem; margin-bottom: var(--s5); }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--mal); }
.hp { position: absolute; left: -9999px; }
.status { margin-top: var(--s4); font-size: .9375rem; }
.status.ok { color: var(--mal); }
.status.err { color: #9b2c1f; }

/* Footer */
.site-foot { background: var(--mal-night); color: #b6c4d8; padding: var(--s7) 0; font-size: .9375rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; align-items: flex-start; }
.site-foot a { color: #e9eef6; }
.site-foot .brand { color: var(--white); margin-bottom: var(--s3); }
.site-foot p { max-width: 26rem; margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }

/* Print: the portal doubles as a portfolio */
@media print {
  .site-head, .site-foot, .cta, .menu-toggle, .alt-nav, .lens-tabs, .form, .hero::before, .dossier-head::before { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  .hero, .ledger, .dossier-head { background: #fff !important; color: #000 !important; }
  .hero *, .ledger *, .dossier-head * { color: #000 !important; }
  .altitude[hidden], .lens-panel[hidden] { display: block !important; }
  .section { padding: 1.5rem 0; }
  a { color: #000; text-decoration: none; }
}

/* App layer: page transitions, search, explorer */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

.search-btn { display: inline-flex; align-items: center; gap: var(--s3); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .55rem .45rem .75rem; font: 500 .875rem var(--sans); color: var(--slate); cursor: pointer; }
.search-btn:hover { border-color: var(--mal); color: var(--ink); }
.search-btn kbd { font: 500 .75rem var(--sans); border: 1px solid var(--line); border-radius: 2px; padding: .05rem .3rem; }
.on-dark .search-btn { border-color: rgba(255,255,255,.22); color: #d3dcea; }
.on-dark .search-btn kbd { border-color: rgba(255,255,255,.22); }
.on-dark .search-btn:hover { border-color: var(--brass-light); color: var(--white); }
@media (max-width: 880px) { .search-btn { margin-top: var(--s2); } }

.palette { width: min(40rem, calc(100vw - 2rem)); max-height: min(34rem, 80vh); padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(7,26,49,.35); margin-top: 12vh; }
.palette::backdrop { background: rgba(7,26,49,.55); backdrop-filter: blur(3px); }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 1.1rem 1.25rem; font: 400 1.125rem var(--sans); color: var(--ink); background: transparent; }
.palette input:focus { outline: none; }
.palette ul { list-style: none; overflow-y: auto; max-height: 24rem; padding: var(--s2); }
.palette li a { display: block; padding: .65rem .8rem; border-radius: 4px; color: inherit; text-decoration: none; }
.palette li[aria-selected='true'] a, .palette li a:hover { background: var(--mal-tint); }
.palette small { display: block; font-size: .75rem; color: var(--mal); font-weight: 600; }
.palette b { display: block; font: 500 1.0625rem/1.3 var(--serif); }
.palette span { display: block; font-size: .875rem; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette .empty { padding: 1rem .8rem; color: var(--slate); }
.palette-hint { margin: 0; padding: .6rem 1.25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--slate); }

.explorer { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s6); }
.filter { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.filter span { font-size: .875rem; color: var(--slate); margin-right: var(--s2); }
.filter button { font: 500 .875rem var(--sans); padding: .5rem .85rem; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); border-radius: 999px; cursor: pointer; }
.filter button:hover { border-color: var(--mal); }
.filter button[aria-pressed='true'] { background: var(--mal); border-color: var(--mal); color: var(--white); }
.count { font-size: .875rem; color: var(--slate); margin: 0; }
.dossier-row[hidden] { display: none; }
.lens-proof { display: none; margin-top: var(--s3) !important; padding-left: var(--s4); border-left: 2px solid var(--brass); font-family: var(--serif); font-size: 1.0625rem; color: var(--mal-deep) !important; }
.lens-proof span { display: block; font: 600 .8125rem var(--sans); color: var(--slate); }
.dossiers[data-lens='minister'] .lens-proof[data-lens='minister'],
.dossiers[data-lens='ceo'] .lens-proof[data-lens='ceo'],
.dossiers[data-lens='cto'] .lens-proof[data-lens='cto'] { display: block; }
.colophon li { grid-template-columns: 16rem minmax(0, 1fr); }
@media (max-width: 880px) { .colophon li { grid-template-columns: 1fr; } }

/* Transformation: before and after */
.shifts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.shifts li { background: var(--white); padding: var(--s5) var(--s5) var(--s6); display: flex; flex-direction: column; }
.shifts h3 { font-size: 1.3125rem; margin-bottom: var(--s4); }
.shifts dl { margin: 0 0 var(--s4); display: grid; gap: var(--s3); flex: 1; }
.shifts dt { font: 600 .75rem var(--sans); color: var(--slate); margin-bottom: -.4rem; }
.shifts dd { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.shifts dd:last-of-type { color: var(--ink); font-weight: 500; padding-left: var(--s3); border-left: 2px solid var(--brass); }
.shifts a { font-size: .875rem; font-weight: 600; }
@media (max-width: 980px) { .shifts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .shifts { grid-template-columns: 1fr; } }
.shift { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 var(--s6); max-width: 44rem; }
.shift > div { background: var(--white); padding: var(--s4) var(--s5); }
.shift dt { font: 600 .75rem var(--sans); color: var(--slate); margin-bottom: var(--s1); }
.shift dd { margin: 0; font-size: .9375rem; }
.shift > div:last-child { border-top: 3px solid var(--brass); }
.shift > div:first-child { border-top: 3px solid #aab6c6; }
@media (max-width: 600px) { .shift { grid-template-columns: 1fr; } }

/* Ask my portfolio */
.ask-band { background: var(--mal-night); color: #e9eef6; }
.ask-band h2 { color: var(--white); margin-bottom: var(--s4); }
.ask-band p { color: #b6c4d8; }
.ask-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
@media (max-width: 880px) { .ask-grid { grid-template-columns: 1fr; gap: var(--s5); } }
.ask-row { display: flex; gap: var(--s2); }
.ask-row input { flex: 1; min-width: 0; font: 400 1.0625rem var(--sans); padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--white); }
.ask-row input::placeholder { color: #8ea1ba; }
.ask-row input:focus { outline: 2px solid var(--brass-light); outline-offset: 1px; }
.ask .btn { background: var(--brass); border-color: var(--brass); }
.ask .btn:hover { background: #a10d25; }
.ask-examples { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.ask-examples button { font: 500 .8125rem var(--sans); padding: .45rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #d3dcea; cursor: pointer; }
.ask-examples button:hover { border-color: var(--brass-light); color: var(--white); }
.ask-out:not(:empty) { margin-top: var(--s5); padding: var(--s5); background: rgba(255,255,255,.05); border-left: 3px solid var(--brass-light); }
.ask-q { margin: 0 0 var(--s3); font: 400 .9375rem var(--sans); color: #8ea1ba; border: 0; padding: 0; }
.ask-a { font: 400 1.1875rem/1.6 var(--serif); color: var(--white) !important; margin: 0; }
.ask-src { margin: var(--s4) 0 0; font-size: .875rem; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.ask-src span { color: #8ea1ba; width: 100%; }
.ask-src a { color: #d3dcea; }
.ask-wait { margin: 0; color: #b6c4d8; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.ask-err { color: #f3b2b6 !important; margin: 0; }
.ask-note { font-size: .8125rem; margin: var(--s4) 0 0; color: #8ea1ba !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Leadership page */
.lead-head h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); max-width: 16ch; }
.kicker-dark { color: var(--brass); font-size: .9375rem; margin-bottom: var(--s4); }
.rhythm li { grid-template-columns: 1fr; gap: var(--s2); }
.days { list-style: none; counter-reset: d; }
.days li { counter-increment: d; position: relative; padding: var(--s4) 0 var(--s4) 3rem; border-top: 1px solid var(--line); }
.days li::before { content: counter(d); position: absolute; left: 0; top: var(--s4); width: 2rem; height: 2rem; border-radius: 50%; background: var(--mal); color: var(--white); display: grid; place-items: center; font: 500 1rem var(--serif); }
.days h3 { font-size: 1.25rem; margin-bottom: var(--s2); }
.days p { margin: 0; color: var(--ink-soft); }
