/* ───────────────────────────────────────────────────────────────
   Eli Schafer — portfolio design system
   Matches gethearhim.com: parchment / teal / amber, Cormorant + DM Sans
   ─────────────────────────────────────────────────────────────── */
:root {
  --parchment: #FBF4E6; --parchment-2: #F6EDDA; --card: #FFFFFF; --elevated: #FFFDF7;
  --divider: #D8CFBF; --divider-2: #E9E0CF;
  --ink: #0A3840; --muted: #2D555E; --faint: #66625B;
  --teal-2: #0E4A54; --teal-3: #5B8A92; --teal-4: #A9C4C8;
  --amber: #B45309; --amber-2: #D97706; --amber-soft: rgba(180,83,9,.12); --gold: #FBBF24;
  --sage: #475C42; --sage-2: #7C9275; --sage-soft: rgba(71,92,66,.14); --crimson: #9B1C28;
  --serif: 'Cormorant Garamond', Newsreader, Georgia, serif;
  --sans: 'DM Sans', Inter, system-ui, -apple-system, sans-serif;
  --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(10,56,64,.06);
  --shadow-md: 0 4px 12px -2px rgba(10,56,64,.10), 0 1px 3px rgba(10,56,64,.06);
  --shadow-lg: 0 20px 40px -16px rgba(10,56,64,.22), 0 2px 6px rgba(10,56,64,.06);
  --shadow-xl: 0 32px 64px -24px rgba(10,56,64,.30);
  --ease: cubic-bezier(.2,.7,.2,1);
}
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--parchment); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; z-index: 200; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1152px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
section.block { padding: 64px 0; }
@media (min-width: 768px) { section.block { padding: 88px 0; } }

/* ── Type ── */
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.012em; line-height: 1.1; }
h1.serif { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.04; }
h2.serif { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3.serif { font-size: 1.5rem; line-height: 1.18; }
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.lead { font-size: 1.02rem; color: var(--muted); line-height: 1.7; }
@media (min-width: 640px) { .lead { font-size: 1.12rem; } }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.sec-head { max-width: 44rem; margin: 0 auto 44px; text-align: center; display: grid; gap: 12px; }
.sec-head.left { margin-inline: 0; text-align: left; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(180,83,9,.28); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn-teal { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.btn-teal:hover { background: var(--teal-2); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--divider); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }

/* ── Nav ── */
.nav { position: sticky; top: 8px; z-index: 60; padding: 0 12px; }
@media (min-width: 640px) { .nav { top: 14px; padding: 0 24px; } }
.nav-in { position: relative; max-width: 1152px; margin-inline: auto; height: 58px; padding: 0 12px 0 16px; display: flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(231,229,228,.9); box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.nav.is-scrolled .nav-in, .nav-in:hover { box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .nav-in { height: 64px; padding: 0 14px 0 22px; } }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 6px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .04em; box-shadow: 0 0 0 1px rgba(180,83,9,.4); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand:hover .brand-name { color: var(--amber); }
.nav-links { display: none; align-items: center; gap: 2px; list-style: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links > li > a, .nav-links > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: #57534E; border: 0; background: none; transition: background .2s, color .2s; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > button[aria-expanded="true"] { color: var(--ink); background: rgba(10,56,64,.06); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(10,56,64,.08); }
.nav-links svg { width: 12px; height: 12px; transition: transform .25s; }
.nav-links button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link-quiet { display: none; padding: 8px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: #57534E; }
.nav-link-quiet:hover { background: rgba(10,56,64,.06); color: var(--ink); }
@media (min-width: 1000px) { .nav-link-quiet { display: inline-flex; } }
.menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: #57534E; }
.menu-btn:hover { background: rgba(10,56,64,.06); }
@media (min-width: 900px) { .menu-btn { display: none; } }

.mega { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: rgba(255,255,255,.97); backdrop-filter: blur(24px); border: 1px solid var(--divider-2); border-radius: 28px; padding: 26px; box-shadow: var(--shadow-xl); }
.mega.is-open { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
.mega h4 { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin-bottom: 10px; }
.mega ul { list-style: none; display: grid; gap: 2px; }
.mega a { display: block; padding: 9px 12px; margin: 0 -12px; border-radius: 12px; transition: background .15s; }
.mega a:hover { background: var(--parchment); }
.mega a b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.mega a span { display: block; font-size: .78rem; color: var(--faint); line-height: 1.4; margin-top: 2px; }
.mega-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--divider-2); font-size: .85rem; color: var(--faint); }
.mega-foot a { font-weight: 700; color: var(--amber); }

.drawer { display: none; max-width: 1152px; margin: 8px auto 0; background: rgba(255,255,255,.97); backdrop-filter: blur(24px); border: 1px solid var(--divider-2); border-radius: 24px; padding: 10px 14px 14px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 100px); overflow-y: auto; }
.drawer.is-open { display: block; }
.drawer h4 { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin: 14px 12px 4px; }
.drawer a { display: block; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.drawer a:hover { background: var(--parchment); }
.drawer .btn { width: 100%; margin-top: 10px; }

/* ── Reveal ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(1) { transition-delay: 0s; } .stagger.in > :nth-child(2) { transition-delay: .08s; } .stagger.in > :nth-child(3) { transition-delay: .16s; } .stagger.in > :nth-child(4) { transition-delay: .24s; } .stagger.in > :nth-child(5) { transition-delay: .32s; } .stagger.in > :nth-child(6) { transition-delay: .40s; } .stagger.in > :nth-child(7) { transition-delay: .48s; } .stagger.in > :nth-child(8) { transition-delay: .56s; } .stagger.in > :nth-child(n+9) { transition-delay: .6s; }
.rise { animation: rise .8s var(--ease) both; animation-delay: var(--t, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ── Breadcrumbs, tags ── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--faint); margin-bottom: 22px; }
.crumbs a { font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--amber); }
.crumbs i { font-style: normal; opacity: .5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(180,83,9,.25); }
.tag.alt { background: rgba(10,56,64,.07); color: var(--ink); border-color: rgba(10,56,64,.14); }
.tag.sage { background: var(--sage-soft); color: var(--sage); border-color: rgba(71,92,66,.25); }

/* ── Case hero ── */
.case-hero { padding: 40px 0 36px; }
@media (min-width: 768px) { .case-hero { padding: 60px 0 44px; } }
.case-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .case-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.case-hero .lead { margin-top: 18px; max-width: 38rem; }
.case-hero h1 { margin: 14px 0 0; }
.meta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--divider); }
.meta-row dt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.meta-row dd { margin: 3px 0 0; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.hero-art { border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-art img { width: 100%; height: auto; }
.hero-art.pad { padding: 14px; }
.hero-art.pad img { border-radius: 14px; }
.hero-art.tint { display: grid; place-items: center; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 4px; }
.kpi { padding: 20px 22px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); }
.kpi b { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi > span { display: block; font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.kpi.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi.dark span { color: rgba(255,255,255,.72); }
.kpi.dark b { color: var(--gold); }

/* ── Case layout with rail ── */
.case-body { display: grid; gap: 0; }
@media (min-width: 1100px) { .case-body { grid-template-columns: 210px minmax(0, 1fr); gap: 56px; } }
.rail { display: none; }
@media (min-width: 1100px) { .rail { display: block; position: sticky; top: 104px; align-self: start; } }
.rail p { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 12px; }
.rail ol { list-style: none; border-left: 2px solid var(--divider-2); }
.rail a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: .86rem; font-weight: 600; color: var(--faint); line-height: 1.35; transition: color .2s, border-color .2s; }
.rail a:hover { color: var(--ink); }
.rail a.is-on { color: var(--ink); border-left-color: var(--amber); }
.article { min-width: 0; }
.article > section { padding: 34px 0; border-top: 1px solid var(--divider-2); scroll-margin-top: 90px; }
.article > section:first-child { border-top: 0; padding-top: 8px; }
.article h2.serif { margin: 8px 0 18px; }
.article h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 8px; }
.prose { max-width: 42rem; }
.prose p { color: var(--muted); line-height: 1.75; font-size: 1.02rem; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--amber); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(180,83,9,.35); }
.prose a:hover { text-decoration-color: var(--amber); }
.checks { list-style: none; display: grid; gap: 9px; margin-top: 14px; max-width: 42rem; }
.checks li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.65; font-size: .98rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg) translateY(-3px); }
.checks.dots li::before { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--amber); transform: none; top: .62em; }
.checks li strong { color: var(--ink); font-weight: 600; }
.two { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; gap: 32px; } }

.figure { margin: 26px 0 6px; }
.figure img { width: 100%; height: auto; border-radius: var(--r-xl); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); background: #fff; }
.figure figcaption, .cap { font-size: .8rem; color: var(--faint); margin-top: 10px; line-height: 1.5; }
.callout { display: flex; gap: 14px; margin: 24px 0 4px; padding: 20px 24px; border-radius: var(--r-xl); background: var(--ink); color: #fff; max-width: 46rem; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--gold); }
.callout p { color: rgba(255,255,255,.88); font-size: .98rem; line-height: 1.65; }
.callout b { color: #fff; font-weight: 600; }
.callout.light { background: var(--card); color: var(--ink); border: 1px solid var(--divider); }
.callout.light p { color: var(--muted); } .callout.light b { color: var(--ink); } .callout.light svg { color: var(--amber); }
.quote { margin: 26px 0 6px; padding: 6px 0 6px 22px; border-left: 3px solid var(--amber); max-width: 40rem; }
.quote p { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.3; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; color: var(--faint); margin-top: 8px; }

/* ── Cards / grids ── */
.grid-3 { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.mini { padding: 22px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); display: grid; gap: 8px; align-content: start; }
.mini h3 { margin: 0; font-size: 1rem; }
.mini p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.mini .ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(10,56,64,.08); color: var(--ink); display: grid; place-items: center; }
.mini .ic svg { width: 19px; height: 19px; }
.mini .ic.amber { background: var(--amber-soft); color: var(--amber); }
.mini .ic.sage { background: var(--sage-soft); color: var(--sage); }
.mini .big { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* ── Bars ── */
.bars { display: grid; gap: 14px; margin: 18px 0 4px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; }
.bar-label { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.bar-label small { display: block; font-size: .76rem; font-weight: 400; color: var(--faint); }
.bar-val { font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 12px; border-radius: 999px; background: var(--divider-2); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--ink); transition: width 1s var(--ease); transition-delay: var(--d, 0s); }
.in .bar-fill, .bar.in .bar-fill { width: var(--w); }
.bar-fill.amber { background: var(--amber); } .bar-fill.sage { background: var(--sage); } .bar-fill.teal3 { background: var(--teal-3); } .bar-fill.crimson { background: var(--crimson); }
.chart-card { padding: 26px; border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); margin-top: 22px; }
.chart-card h3 { margin: 0 0 4px; font-size: 1rem; }
.chart-card > p { font-size: .84rem; color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 2px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* versus bars (two series) */
.vs { display: grid; gap: 18px; margin: 18px 0 0; }
.vs-row b { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; margin-bottom: 7px; }
.vs-row b span { font-weight: 400; color: var(--faint); font-size: .78rem; }
.vs-pair { display: grid; gap: 5px; }
.vs-line { display: grid; grid-template-columns: 74px 1fr 64px; gap: 10px; align-items: center; font-size: .8rem; }
.vs-line em { font-style: normal; color: var(--faint); font-weight: 600; }
.vs-line .bar-track { height: 10px; grid-column: auto; }
.vs-line strong { text-align: right; font-variant-numeric: tabular-nums; font-size: .86rem; }

/* donut + gauge */
.donut-wrap { display: grid; gap: 22px; align-items: center; margin-top: 16px; }
@media (min-width: 640px) { .donut-wrap { grid-template-columns: 200px 1fr; } }
.donut { width: 190px; height: 190px; margin-inline: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 26; transition: stroke-dasharray 1.1s var(--ease); }
.donut-center { text-align: center; margin-top: -122px; margin-bottom: 70px; pointer-events: none; }
.donut-center b { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1; }
.donut-center span { font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px; margin-top: 18px; }
.gauge { text-align: center; }
.gauge svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.gauge .trk { fill: none; stroke: var(--divider-2); stroke-width: 8; }
.gauge .val { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 300; transition: stroke-dasharray 1.2s var(--ease); }
.gauge .score { margin-top: -74px; margin-bottom: 40px; font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge p { font-size: .8rem; font-weight: 600; }
.gauge small { display: block; font-size: .72rem; color: var(--faint); font-weight: 400; }

/* ── Tables ── */
.tbl-wrap { overflow-x: auto; margin-top: 18px; border-radius: var(--r-xl); border: 1px solid var(--divider); background: var(--card); box-shadow: var(--shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.tbl th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; padding: 13px 16px; background: var(--elevated); border-bottom: 1px solid var(--divider); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--divider-2); vertical-align: top; color: var(--muted); line-height: 1.5; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; color: var(--ink); }
.tbl .good { color: var(--sage); font-weight: 700; } .tbl .bad { color: var(--crimson); font-weight: 700; }
.tbl tr.hi td { background: rgba(251,191,36,.12); }
.num-r { text-align: right !important; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.chip.imm { background: rgba(155,28,40,.12); color: var(--crimson); }
.chip.high { background: var(--amber-soft); color: var(--amber); }
.chip.med { background: rgba(10,56,64,.09); color: var(--ink); }

/* ── Tabs (personas etc.) ── */
.tabs { margin-top: 20px; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--divider); background: var(--card); font-weight: 600; font-size: .86rem; color: #57534E; transition: all .18s; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabpanel { margin-top: 16px; }
.js .tabpanel[hidden] { display: none; }
.persona { overflow: hidden; border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); overflow: hidden; }
.persona-head { padding: 24px 26px; background: linear-gradient(135deg, var(--ink), var(--teal-2)); color: #fff; }
.persona-head small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.persona-head h3 { margin: 6px 0 4px; font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.persona-head p { color: rgba(255,255,255,.75); font-size: .9rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--elevated); border-bottom: 1px solid var(--divider-2); margin: 0; }
.facts div { padding: 14px 18px; border-right: 1px solid var(--divider-2); border-bottom: 1px solid var(--divider-2); margin-bottom: -1px; margin-right: -1px; }
.facts dt { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.facts dd { margin: 3px 0 0; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.persona-cols { display: grid; gap: 22px; padding: 24px 26px 26px; }
@media (min-width: 760px) { .persona-cols { grid-template-columns: repeat(3, 1fr); } }
.persona-cols h4 { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin-bottom: 8px; }
.persona-cols ul { list-style: none; display: grid; gap: 7px; }
.persona-cols li { font-size: .88rem; color: var(--muted); line-height: 1.5; padding-left: 16px; position: relative; }
.persona-cols li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--divider); }

/* ── Swatches, steps ── */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.swatch { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--divider); background: var(--card); }
.swatch i { display: block; height: 84px; }
.swatch div { padding: 11px 14px; }
.swatch b { display: block; font-size: .88rem; } .swatch span { font-size: .76rem; color: var(--faint); font-family: ui-monospace, Menlo, monospace; }
.flow { display: grid; gap: 12px; margin-top: 20px; counter-reset: step; }
@media (min-width: 760px) { .flow.cols-5 { grid-template-columns: repeat(5, 1fr); } .flow.cols-4 { grid-template-columns: repeat(4, 1fr); } .flow.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.flow > div { position: relative; padding: 20px 18px 18px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); counter-increment: step; }
.flow > div::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font-weight: 700; font-size: .82rem; margin-bottom: 12px; }
.flow b { display: block; font-size: .95rem; margin-bottom: 5px; }
.flow p { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.steps { list-style: none; margin-top: 18px; position: relative; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px 54px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; z-index: 1; }
.steps li::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--divider); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 1rem; margin: 5px 0 4px; }
.steps p { color: var(--muted); font-size: .94rem; line-height: 1.65; max-width: 40rem; }

/* ── Product gallery ── */
.products { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.product { border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; aspect-ratio: 1 / 1; background: var(--parchment-2); overflow: hidden; }
.product-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.product h3 { margin: 0; font-size: 1.02rem; }
.product dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 0; font-size: .84rem; }
.product dt { color: var(--faint); white-space: nowrap; } .product dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.product .margin { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--faint); font-weight: 600; }
.product .margin .bar-track { height: 8px; flex: 1; }

/* ── Image deck (page flipper) ── */
.deck { margin-top: 26px; border-radius: var(--r-2xl); background: var(--ink); color: #fff; box-shadow: var(--shadow-xl); overflow: hidden; }
.deck-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.deck-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.deck-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.deck-chapters button { padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 600; transition: all .15s; }
.deck-chapters button:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.deck-chapters button.is-on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.deck-main { display: grid; }
@media (min-width: 900px) { .deck-main { grid-template-columns: 1fr 112px; } }
.deck-stage { position: relative; display: grid; place-items: center; padding: 22px 56px; min-height: 420px; background: radial-gradient(circle at 50% 30%, #12535f, #0A3840 70%); touch-action: pan-y; }
.deck-stage img { max-height: min(78vh, 880px); width: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.45); background: #fff; transition: opacity .18s; }
.deck-stage.landscape img { max-height: none; width: 100%; }
.deck-stage.is-loading img { opacity: .35; }
.deck-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,56,64,.7); color: #fff; display: grid; place-items: center; transition: all .15s; }
.deck-nav:hover:not(:disabled) { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.deck-nav:disabled { opacity: .3; cursor: default; }
.deck-nav.prev { left: 10px; } .deck-nav.next { right: 10px; }
.deck-nav svg { width: 18px; height: 18px; }
.deck-thumbs { display: none; }
@media (min-width: 900px) { .deck-thumbs { display: block; max-height: 640px; overflow-y: auto; padding: 14px 12px; border-left: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); } }
.deck-thumbs button { display: block; width: 100%; margin-bottom: 9px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; overflow: hidden; opacity: .6; transition: opacity .15s, border-color .15s; position: relative; }
.deck-thumbs button:hover { opacity: 1; }
.deck-thumbs button.is-on { opacity: 1; border-color: var(--gold); }
.deck-thumbs img { width: 100%; height: auto; }
.deck-thumbs button.landscape img { aspect-ratio: 16/9; object-fit: cover; }
.deck-thumbs button span { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; font-weight: 700; background: rgba(10,56,64,.85); color: #fff; padding: 1px 6px; border-radius: 999px; }
.deck-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.75); }
.deck-bottom a { color: var(--gold); font-weight: 600; }
.deck-count { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }

/* ── Interactive chart ── */
.ichart { margin-top: 22px; padding: 22px 22px 18px; border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-md); }
.ichart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.ichart-head h3 { margin: 0; font-size: 1.02rem; }
.ichart-head p { font-size: .82rem; color: var(--faint); margin-top: 2px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--parchment-2); border: 1px solid var(--divider-2); }
.seg button { padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; font-size: .8rem; font-weight: 600; color: var(--faint); transition: all .18s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.ichart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.ichart .gridl { stroke: var(--divider-2); stroke-width: 1; }
.ichart .axis { font-size: 11px; fill: var(--faint); font-family: var(--sans); }
.ichart .area { fill: url(#areaGrad); }
.ichart .line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ichart .band { fill: var(--gold); opacity: .22; }
.ichart .bandlbl { font-size: 11px; font-weight: 700; fill: var(--amber); font-family: var(--sans); }
.ichart .peak-dot { fill: var(--amber); stroke: #fff; stroke-width: 2; }
.ichart .peak-lbl { font-size: 11px; font-weight: 700; fill: var(--ink); font-family: var(--sans); }
.ichart .cross { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ichart .hov-dot { fill: var(--amber); stroke: #fff; stroke-width: 2.5; }
.ichart .bars rect { fill: var(--ink); opacity: .85; }
.ichart-tip { position: absolute; pointer-events: none; z-index: 5; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.35; box-shadow: var(--shadow-lg); transform: translate(-50%, -110%); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.ichart-tip.on { opacity: 1; } .ichart-tip b { display: block; font-size: 1rem; } .ichart-tip span { color: rgba(255,255,255,.7); }
.ichart-wrap { position: relative; }
details.data { margin-top: 12px; font-size: .84rem; }
details.data summary { cursor: pointer; font-weight: 600; color: var(--amber); list-style: none; }
details.data summary::-webkit-details-marker { display: none; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 4px 12px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.data-grid span { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--divider-2); }
.data-grid b { font-weight: 700; }

/* ── Phone screenshots ── */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 22px; }
.phone { border-radius: 26px; overflow: hidden; border: 1px solid var(--divider); box-shadow: var(--shadow-md); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.phone:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.phone img { width: 100%; height: auto; }
.screens-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; margin-top: 18px; }
.screens-row .phone { flex: 0 0 min(46%, 210px); scroll-snap-align: start; }

/* ── Hub ── */
.hub-hero { padding: 40px 0 34px; }
@media (min-width: 768px) { .hub-hero { padding: 70px 0 50px; } }
.hub-hero-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hub-hero-grid { grid-template-columns: 330px 1fr; gap: 60px; } }
.portrait { width: 100%; max-width: 330px; aspect-ratio: 4 / 5; border-radius: var(--r-2xl); background: var(--parchment-2); border: 1px solid var(--divider); box-shadow: var(--shadow-lg); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 70%; }
.hub-hero h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); line-height: .98; }
.hub-role { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--amber); margin: 14px 0 18px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--divider); background: #fff; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: all .2s; }
.links a:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.links svg { width: 15px; height: 15px; }
.statband { background: var(--ink); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 30px 22px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.12); } .stat:last-child { border-right: 0; } }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 8px; font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.45; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -14px 0 32px; }
.filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--divider); background: var(--card); font-weight: 600; font-size: .85rem; color: #57534E; transition: all .18s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button em { font-style: normal; opacity: .6; margin-left: 5px; font-weight: 500; }
.pgrid { display: grid; gap: 20px; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: flex; flex-direction: column; border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: rgba(180,83,9,.4); }
.pcard[hidden] { display: none; }
.pthumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--parchment-2); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pthumb img { transform: scale(1.04); }
.pthumb .art { position: absolute; inset: 0; display: grid; place-items: center; }
.pbody { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pbody h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.pbody .client { font-size: .78rem; font-weight: 600; color: var(--faint); }
.pbody p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.pmetrics { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--divider-2); }
.pmetrics div { font-size: .76rem; color: var(--faint); } .pmetrics b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pgo { font-size: .85rem; font-weight: 700; color: var(--amber); display: inline-flex; align-items: center; gap: 6px; }
.pcard.feature { grid-column: 1 / -1; }
@media (min-width: 900px) { .pcard.feature { flex-direction: row; } .pcard.feature .pthumb { flex: 0 0 56%; aspect-ratio: 1200 / 630; min-height: 0; background: #F4ECDC; } .pcard.feature .pthumb img { object-fit: contain; } .pcard.feature:hover .pthumb img { transform: none; } .pcard.feature .pbody { flex: 1; padding: 34px; justify-content: center; } .pcard.feature h3 { font-size: 2.2rem; } }
.also { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 760px) { .also { grid-template-columns: repeat(3, 1fr); } }
.also a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.also a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.also img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; border: 1px solid var(--divider); }
.also b { display: block; font-size: .95rem; } .also span { font-size: .8rem; color: var(--faint); line-height: 1.4; display: block; }
.band-teal { background: var(--ink); color: #fff; }
.band-teal .eyebrow { color: var(--gold); } .band-teal .lead { color: rgba(255,255,255,.75); }
.skillgrid { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 760px) { .skillgrid { grid-template-columns: repeat(3, 1fr); } }
.skillbox { padding: 22px; border-radius: var(--r-xl); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.skillbox h3 { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 12px; }
.skillbox ul { list-style: none; display: grid; gap: 7px; font-size: .92rem; color: rgba(255,255,255,.88); }
.skillbox li::before { content: '→'; color: var(--gold); margin-right: 8px; }

/* ── Résumé ── */
.tenure { display: grid; gap: 22px; padding: 30px; border-radius: var(--r-2xl); background: var(--ink); color: #fff; box-shadow: var(--shadow-xl); margin-top: 10px; }
@media (min-width: 900px) { .tenure { grid-template-columns: 1.1fr 1.9fr; align-items: center; padding: 36px 40px; } }
.tenure-main small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
.tenure-main b { display: block; font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.8rem); line-height: .95; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.tenure-main p { font-size: .86rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.tenure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) { .tenure-grid { grid-template-columns: repeat(4, 1fr); } }
.tenure-grid div { background: rgba(10,56,64,.96); padding: 16px 16px; }
.tenure-grid b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.tenure-grid > div > span { display: block; font-size: .74rem; color: rgba(255,255,255,.72); margin-top: 6px; line-height: 1.4; }
.gantt { margin-top: 26px; padding: 22px 24px 18px; border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); overflow-x: auto; }
.gantt-in { min-width: 640px; }
.gantt-years { position: relative; height: 22px; border-bottom: 1px solid var(--divider); margin-left: 150px; }
.gantt-years span { position: absolute; top: 0; font-size: .72rem; font-weight: 700; color: var(--faint); transform: translateX(-50%); }
.gantt-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; min-height: 40px; border-bottom: 1px dashed var(--divider-2); }
.gantt-row:last-child { border-bottom: 0; }
.gantt-row > b { font-size: .8rem; font-weight: 600; line-height: 1.25; padding-right: 10px; }
.gantt-track { position: relative; height: 40px; background-image: linear-gradient(90deg, var(--divider-2) 1px, transparent 1px); background-size: calc(100% / var(--years)) 100%; }
.gantt-bar { position: absolute; top: 9px; height: 22px; border-radius: 999px; background: var(--ink); left: var(--l); width: 0; transition: width 1.1s var(--ease); transition-delay: var(--d, 0s); display: flex; align-items: center; padding-left: 10px; font-size: .68rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.in .gantt-bar { width: var(--w); }
.gantt-bar.amber { background: var(--amber); } .gantt-bar.sage { background: var(--sage); } .gantt-bar.teal3 { background: var(--teal-2); }
.gantt-bar.now::after { content: ''; position: absolute; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(251,191,36,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(251,191,36,0); } 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); } }
@keyframes ping2 { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.box { padding: 26px; border-radius: var(--r-2xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); }
.box h3 { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin: 0 0 14px; }
.box .deg { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills span { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--parchment); border: 1px solid var(--divider); color: var(--muted); }
.kv { display: grid; gap: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--divider-2); font-size: .92rem; }
.kv div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv span { color: var(--faint); } .kv b { text-align: right; font-weight: 600; }

/* ── Flip nav (prev/next) + pager ── */
.flipnav { display: grid; gap: 14px; padding: 8px 0 24px; }
@media (min-width: 760px) { .flipnav { grid-template-columns: 1fr 1fr; } }
.flip { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; min-width: 0; }
.flip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(180,83,9,.4); }
.flip.next { flex-direction: row-reverse; text-align: right; }
.flip img { width: 82px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; border: 1px solid var(--divider); background: var(--parchment-2); }
.flip small { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.flip b { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.flip .arr { width: 22px; height: 22px; flex: none; color: var(--amber); }
.flip-hint { text-align: center; font-size: .78rem; color: var(--faint); padding-bottom: 28px; }
.flip-hint kbd { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--divider); background: #fff; font-family: var(--sans); font-size: .74rem; box-shadow: 0 1px 0 var(--divider); }
.pager { position: fixed; left: 50%; bottom: 16px; z-index: 55; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(10,56,64,.94); backdrop-filter: blur(12px); color: #fff; box-shadow: var(--shadow-xl); transition: transform .4s var(--ease); }
.pager.is-on { transform: translate(-50%, 0); }
.pager a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; transition: background .15s, color .15s; }
.pager a:hover { background: var(--gold); color: var(--ink); }
.pager a[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.pager svg { width: 16px; height: 16px; }
.pager span { padding: 0 12px; font-size: .78rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pager span b { color: var(--gold); }

/* ── Footer ── */
footer { background: rgba(251,244,230,.9); border-top: 1px solid var(--divider); padding: 40px 0 46px; }
.foot { display: grid; gap: 26px; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.foot p, .foot li { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.foot h4 { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin-bottom: 10px; }
.foot ul { list-style: none; }
.foot a:hover { color: var(--amber); }
.foot-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--divider-2); font-size: .8rem; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(6,28,32,.88); padding: 24px; cursor: zoom-out; }
.lightbox.on { display: grid; }
.lightbox img { max-height: 92vh; max-width: 94vw; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .stagger > *, .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .bar-fill, .gantt-bar { transition: none; }
  .gauge .val, .donut circle { transition: none; }
  @view-transition { navigation: none; }
}

/* ── Résumé layout ── */
.cv-head { padding: 38px 0 8px; }
.cv-top { display: grid; gap: 22px; align-items: stretch; }
@media (min-width: 1000px) { .cv-top { grid-template-columns: 1.15fr 1fr; gap: 28px; } }
.cv-id { display: flex; flex-direction: column; justify-content: center; }
.cv-id h1 { margin: 6px 0 0; }
.cv-id .lead { margin-top: 8px; }
.cv-sum { margin-top: 16px; font-size: 1rem; line-height: 1.7; color: var(--muted); max-width: 40rem; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cv-chips span, .cv-chips a { font-size: .82rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--divider); color: var(--muted); }
.cv-chips a { color: var(--ink); } .cv-chips a:hover { border-color: var(--amber); color: var(--amber); }
.cv-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.cv-actions a.solid { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.cv-actions a.solid:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cv-actions button { all: unset; display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--divider); background: var(--card); font-size: .85rem; font-weight: 600; cursor: pointer; }
.cv-actions button:hover { border-color: var(--amber); color: var(--amber); }
.cv-actions button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.cv-top .tenure { margin: 0; padding: 28px; grid-template-columns: 1fr; align-content: center; }
.cv-top .tenure-grid { grid-template-columns: repeat(2, 1fr); }
.gantt { margin-top: 18px; padding: 14px 20px 10px; }
.gantt-row { min-height: 34px; } .gantt-track { height: 34px; } .gantt-bar { top: 6px; }
.cv-body { padding: 34px 0 8px; }
.cv-grid { display: grid; gap: 30px; align-items: start; }
@media (min-width: 1000px) { .cv-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; } }
.cv-main .sec-head, .cv-ventures .sec-head { margin-bottom: 20px; }
.timeline { position: relative; display: grid; gap: 14px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: linear-gradient(var(--amber), var(--divider) 70%); }
.job { position: relative; padding: 22px 24px 20px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.job:hover { box-shadow: var(--shadow-lg); border-color: rgba(180,83,9,.35); }
.job-dot { position: absolute; left: -26px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--parchment); border: 3px solid var(--amber); }
.job.current .job-dot { background: var(--sage); border-color: var(--sage); box-shadow: 0 0 0 0 rgba(21,128,61,.45); animation: ping2 1.8s infinite; }
.job > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.job h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; margin: 0; }
.job .org { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.job-when { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.job-when .when { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); }
.job-when .dur { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.job-when small { font-size: .76rem; color: var(--faint); }
.job-when .live { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-size: .72rem; font-weight: 700; }
.job-when .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: ping2 1.8s infinite; }
.job .checks { margin-top: 0; max-width: none; gap: 7px; }
.job .checks li { font-size: .94rem; line-height: 1.6; }
.job-foot { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--divider); }
.job-foot a.lk { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--divider); color: var(--ink); }
.job-foot a.lk:hover { border-color: var(--amber); color: var(--amber); }
.job-foot span { font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--parchment); border: 1px solid var(--divider); color: var(--muted); }
.cv-aside { display: grid; gap: 14px; }
.cv-aside .box { padding: 22px; border-radius: var(--r-xl); }
.cv-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--r-lg); overflow: hidden; }
.cv-results div { background: var(--card); padding: 14px 14px 13px; }
.cv-results b { display: block; font-family: var(--serif); font-size: 1.75rem; line-height: 1; font-weight: 700; color: var(--ink); font-feature-settings: "lnum" 1, "tnum" 1; }
.cv-results span { display: block; margin-top: 6px; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.deg-sub { font-weight: 600; font-size: .92rem; margin: 6px 0 8px; }
.deg-note { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-bottom: 12px; }
.cv-aside .pills { gap: 5px; }
.cv-aside .pills span { font-size: .75rem; padding: 4px 10px; }
.sk + .sk { margin-top: 11px; }
.deg-lang { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--divider); gap: 9px; }
.deg-lang div { font-size: .85rem; padding-bottom: 9px; }
.sk h4 { font-size: .8rem; font-weight: 700; color: var(--ink); margin: 0 0 7px; }
.cv-ventures { padding: 30px 0 72px; }
.vgrid { display: grid; gap: 14px; }
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(3, 1fr); } .vgrid .venture.wide { grid-column: span 2; } }
.venture { padding: 20px 22px; display: flex; flex-direction: column; }
.venture h3 { font-size: 1.35rem; }
.venture > header { margin-bottom: 10px; }
.venture .job-foot { margin-top: auto; }
.venture .checks { margin-bottom: 4px; }
@media (max-width: 560px) { .job { padding: 18px 18px 16px; } .job-when { align-items: flex-start; text-align: left; } .timeline { padding-left: 18px; } .job-dot { left: -17px; width: 10px; height: 10px; } .timeline::before { left: 3px; } .job .checks li { padding-left: 20px; font-size: .92rem; } .job h3 { font-size: 1.4rem; } }

/* ── Print (résumé → PDF) ── */
@media print {
  @page { size: letter; margin: .5in .55in; }
  html { font-size: 12.4px; }
  body { background: #fff; color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav, .drawer, .pager, .flipnav, .flip-hint, footer, .skip-link, .no-print, .gantt, .mega { display: none !important; }
  .rv, .stagger > * { opacity: 1 !important; transform: none !important; }
  section.block { padding: 14px 0 !important; }
  .wrap { width: 100%; }
    .job, .box, .tenure { box-shadow: none !important; break-inside: avoid; }
  .cv-grid { grid-template-columns: 1fr !important; }
  .timeline { padding-left: 0 !important; } .timeline::before, .job-dot { display: none !important; }
  .vgrid { grid-template-columns: 1fr 1fr !important; }
  .tenure { padding: 14px 18px; }
  .tenure-main b { font-size: 2.6rem; }
  a { text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* activation hooks (set by IntersectionObserver adding .in) */
.in .gauge .val, .gauge.in .val { stroke-dasharray: var(--dash) 300; }
.donut circle { stroke-dasharray: 0 440; }
.in .donut circle, .donut-wrap.in .donut circle { stroke-dasharray: var(--seg) 440; }
.no-js .gauge .val { stroke-dasharray: var(--dash) 300; } .no-js .donut circle { stroke-dasharray: var(--seg) 440; }
.no-js .bar-fill { width: var(--w); } .no-js .gantt-bar { width: var(--w); }

.nav-pdf { display: none; }
@media (min-width: 560px) { .nav-pdf { display: inline-flex; } }

/* HearHim hero: three overlapping phones */
.phones-hero { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 22px; background: radial-gradient(circle at 50% 20%, #1c6573, #0A3840 72%); }
.phones-hero img { flex: 1 1 0; min-width: 0; max-width: 210px; height: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.phones-hero img:nth-child(2) { transform: translateY(-8px) scale(1.04); z-index: 2; }
.art-center { display: grid; place-items: center; min-height: 340px; padding: 26px; }
.shot-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--divider); box-shadow: var(--shadow-lg); background: #fff; }
.shot-frame img { width: 100%; height: auto; }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #1a1d1c; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #444; }

/* lining figures for display numerals */
.kpi b, .stat b, .mini .big, .tenure-main b, .tenure-grid b, .pmetrics b, .job-when .dur, .gauge .score, .donut-center b { font-feature-settings: "lnum" 1, "tnum" 1; }

/* PCC fix list */
.fixgroup { margin-top: 26px; }
.fixgroup > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1rem; }
.fixlist { display: grid; gap: 8px; }
.fixlist details { margin: 0; background: var(--card); border: 1px solid var(--divider); border-radius: 16px; box-shadow: var(--shadow-sm); }
.fixlist summary { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.fixlist summary::-webkit-details-marker { display: none; }
.fixlist summary::after { content: '+'; margin-left: auto; color: var(--amber); font-size: 1.3rem; line-height: 1; transition: transform .25s; flex: none; }
.fixlist details[open] summary::after { transform: rotate(45deg); }
.fixlist summary small { display: block; font-weight: 400; color: var(--faint); font-size: .8rem; margin-top: 2px; }
.fixbody { display: grid; gap: 12px; padding: 0 18px 18px 18px; font-size: .9rem; color: var(--muted); line-height: 1.6; }
@media (min-width: 760px) { .fixbody { grid-template-columns: 1fr 1fr; gap: 24px; } }
.fixbody h4 { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--amber); margin: 0 0 4px; }
.cwv-ok { color: var(--sage); font-weight: 700; } .cwv-mid { color: var(--amber); font-weight: 700; } .cwv-bad { color: var(--crimson); font-weight: 700; }
