/* ============ Tokens — black & gold (from the book cover) ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0e;
  --surface: #141412;
  --surface-2: #1b1a17;
  --ink: #f6f4ee;
  --ink-2: #c9c6bd;
  --muted: #8d8a82;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .14);
  --gold: #ffc81e;
  --gold-2: #ffde6b;
  --gold-3: #ff9d0a;
  --gold-ink: #121008;
  --gold-soft: rgb(255 200 30 / .1);
  --gold-glow: rgb(255 200 30 / .35);
  --grad-gold: linear-gradient(135deg, #ffe680 0%, #ffc81e 45%, #ff9d0a 100%);
  --grad-text: linear-gradient(100deg, #fff0b0 0%, #ffc81e 40%, #ff9d0a 100%);
  --grad-surface: linear-gradient(160deg, #1c1b18 0%, #121210 60%, #0e0e0d 100%);
  --grad-border: linear-gradient(140deg, rgb(255 200 30 / .55), rgb(255 255 255 / .06) 35%, rgb(255 255 255 / .04) 65%, rgb(255 157 10 / .35));
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --radius: 18px;
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 100% 30%, rgb(255 200 30 / .05), transparent 60%),
    radial-gradient(900px 500px at 0% 70%, rgb(255 157 10 / .04), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.i-sm { width: .95em; height: .95em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 16px; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; z-index: 100; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

.grad-text, .hero h1 em, .metric-grid strong, .case-result strong {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--sans);
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .03);
  color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s, color .25s, background .25s;
}
.btn .i { transition: transform .25s; }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn-gold {
  border: 0;
  background: var(--grad-gold);
  color: var(--gold-ink);
  box-shadow: 0 10px 30px -10px var(--gold-glow), inset 0 1px 0 rgb(255 255 255 / .5);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgb(255 200 30 / .55), inset 0 1px 0 rgb(255 255 255 / .5); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { padding: 11px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 76px; padding: 0 var(--gutter);
  background: rgb(10 10 10 / .6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgb(10 10 10 / .82); }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .02); }
.nav-links a { font-size: 14px; text-decoration: none; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgb(255 255 255 / .05); }
.nav-links a.active { color: var(--gold-ink); background: var(--grad-gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; align-items: center; padding: 4px 4px 4px 10px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .02); }
.lang-icon { color: var(--gold); margin-right: 4px; width: 15px; height: 15px; }
.lang { display: inline-block; text-decoration: none; border: 0; background: transparent; color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .04em; padding: 7px 9px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang:hover { color: var(--ink); }
.lang[aria-current="true"] { background: var(--grad-gold); color: var(--gold-ink); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.g1 { width: 620px; height: 620px; right: -120px; top: -120px; background: radial-gradient(circle, rgb(255 200 30 / .28), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.g2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgb(255 157 10 / .16), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(64px, 8vw, 110px);
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12.5px/1.4 var(--mono); color: var(--ink-2);
  padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid rgb(255 200 30 / .25);
  background: linear-gradient(90deg, rgb(255 200 30 / .12), rgb(255 200 30 / .02));
  margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; position: relative; box-shadow: 0 0 12px var(--gold); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.hero h1 {
  font: 800 clamp(40px, 5.4vw, 76px)/1.0 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 em { font: italic 400 1.1em/1 var(--serif); letter-spacing: -.01em; padding-right: .06em; }
.lead { margin-top: 26px; max-width: 580px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 7px;
  font: 400 12px/1 var(--mono); color: var(--ink-2);
  padding: 9px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(255 255 255 / .025);
}
.hero-tags .i { color: var(--gold); width: 14px; height: 14px; }

.hero-portrait { margin: 0; position: relative; }
.portrait-frame {
  position: relative; padding: 1.5px; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(150deg, #ffe680, #ffc81e 30%, rgb(255 200 30 / .1) 60%, #ff9d0a);
  box-shadow: 0 40px 100px -30px rgb(255 180 20 / .35);
}
.portrait-frame::after { content: ""; position: absolute; inset: 1.5px; border-radius: calc(var(--radius) + 3px); background: linear-gradient(180deg, transparent 55%, rgb(10 10 10 / .75)); pointer-events: none; }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: calc(var(--radius) + 3px); }
.hero-portrait figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); z-index: 1; }
.hero-portrait figcaption b { color: var(--ink); font-weight: 600; font-size: 15px; }

.float-chip {
  position: absolute; z-index: 2;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgb(20 20 18 / .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(255 200 30 / .25);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / .8);
  animation: bob 6s ease-in-out infinite;
}
.float-chip .i { grid-row: 1 / 3; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--grad-gold); color: var(--gold-ink); stroke-width: 2; }
.float-chip b { font: 700 18px/1.1 var(--display); color: var(--ink); }
.float-chip span { font: 400 11px/1.2 var(--mono); color: var(--muted); }
.chip-a { left: -36px; top: 16%; }
.chip-b { right: -28px; top: 52%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Hero entrance (CSS-only so it runs before JS) */
.hero-copy > *, .hero-portrait { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-portrait { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hazard stripe — nod to the book cover */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 14px, var(--bg) 14px 28px);
  opacity: .9;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ============ Metrics ============ */
.metrics { position: relative; padding: clamp(56px, 7vw, 96px) var(--gutter); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.metric-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric-grid li {
  position: relative; padding: 28px;
  border-radius: var(--radius);
  background: var(--grad-surface) padding-box, var(--grad-border) border-box;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .3s;
}
.metric-grid li::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgb(255 200 30 / .14), transparent 70%); pointer-events: none; }
.metric-grid li:hover { transform: translateY(-4px); }
.m-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgb(255 200 30 / .22); color: var(--gold); margin-bottom: 22px; }
.m-icon .i { width: 22px; height: 22px; }
.metric-grid strong { display: block; font: 800 clamp(44px, 4.8vw, 68px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-grid p { margin-top: 12px; max-width: 32ch; font-size: 15px; color: var(--muted); }

/* ============ Sections ============ */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter) 0; }
.section-head { display: grid; gap: 18px; max-width: 840px; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow-n { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--grad-gold); color: var(--gold-ink); font-weight: 600; letter-spacing: .02em; }
.section-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font: 800 clamp(30px, 3.4vw, 46px)/1.05 var(--display); letter-spacing: -.035em; }
.section-title .eyebrow-n { height: 28px; min-width: 44px; padding: 0 10px; font: 600 13px/1 var(--mono); letter-spacing: .02em; transform: translateY(2px); }
.section-title > span:last-child { background: linear-gradient(100deg, #fff 0%, #fff 55%, #ffe680 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.section-sub { font: 500 clamp(18px, 1.6vw, 22px)/1.4 var(--display); letter-spacing: -.015em; color: var(--ink-2); max-width: 760px; text-wrap: balance; }
.section-head > p:last-child:not(.section-sub) { color: var(--muted); max-width: 640px; font-size: 17px; }

/* ============ Cases ============ */
.cases { display: grid; gap: 18px; }
.case {
  position: relative;
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 270px; gap: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius);
  background: var(--grad-surface) padding-box, var(--grad-border) border-box;
  border: 1px solid transparent;
  transition: transform .3s, box-shadow .3s;
}
.case:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgb(255 200 30 / .25); }
.case-meta { display: grid; align-content: start; gap: 16px; }
.case-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-gold); color: var(--gold-ink); box-shadow: 0 10px 24px -10px var(--gold-glow); }
.case-icon .i { width: 24px; height: 24px; stroke-width: 2; }
.case-meta p { font: 400 12px/1.6 var(--mono); color: var(--muted); }
.case-body h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.18 var(--display); letter-spacing: -.02em; margin-bottom: 14px; text-wrap: balance; }
.case-body > p { color: var(--ink-2); margin-bottom: 18px; }
.case-body ul { display: grid; gap: 11px; }
.case-body li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.case-body li .i { width: 20px; height: 20px; padding: 3px; margin-top: 2px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); stroke-width: 2.4; }
.case-result {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 24px; border-radius: 14px;
  background: radial-gradient(120% 90% at 100% 0%, rgb(255 200 30 / .22), transparent 60%), linear-gradient(160deg, #22201a, #15140f);
  border: 1px solid rgb(255 200 30 / .2);
}
.case-result > .i { position: absolute; top: 20px; right: 20px; width: 26px; height: 26px; color: var(--gold); opacity: .9; }
.case-result strong { font: 800 clamp(44px, 4.2vw, 60px)/1 var(--display); letter-spacing: -.04em; }
.case-result span { font-size: 14.5px; color: var(--ink-2); }

/* ============ Approach ============ */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50px; height: 1px; background: linear-gradient(90deg, var(--gold), rgb(255 200 30 / .1)); z-index: -1; }
.flow li { padding: 24px 20px 26px; border-radius: var(--radius); background: rgb(20 20 18 / .7); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.flow li:hover { border-color: rgb(255 200 30 / .4); transform: translateY(-3px); }
.flow-top { display: flex; align-items: center; justify-content: space-between; }
.flow-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad-gold); color: var(--gold-ink); box-shadow: 0 0 0 6px var(--bg), 0 10px 24px -8px var(--gold-glow); }
.flow-icon .i { width: 22px; height: 22px; stroke-width: 2; }
.flow-n { font: 500 12px/1 var(--mono); color: var(--muted); }
.flow h3 { font: 700 19px/1.2 var(--display); letter-spacing: -.015em; margin: 22px 0 10px; }
.flow p { font-size: 14.5px; color: var(--muted); }

.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 56px); }
.skill-group { padding: 24px; border-radius: var(--radius); background: var(--grad-surface) padding-box, var(--grad-border) border-box; border: 1px solid transparent; }
.skill-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--gold-soft); border: 1px solid rgb(255 200 30 / .22); color: var(--gold); margin-bottom: 16px; }
.skill-group h3 { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.skill-group p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

/* ============ Timeline ============ */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, var(--gold), rgb(255 200 30 / .05)); }
.timeline li { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding: 26px 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.when-col { display: flex; align-items: center; gap: 16px; align-self: start; }
.t-dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid rgb(255 200 30 / .35); color: var(--gold); flex: none; box-shadow: 0 0 0 6px var(--bg); }
.t-dot .i { width: 19px; height: 19px; }
.timeline li:first-child .t-dot { background: var(--grad-gold); color: var(--gold-ink); border: 0; box-shadow: 0 0 0 6px var(--bg), 0 0 30px var(--gold-glow); }
.when { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.timeline li:first-child .when { color: var(--gold); }
.timeline h3 { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.where { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
.where .i { width: 13px; height: 13px; color: var(--gold); }
.role { font-weight: 500; margin: 8px 0 10px; color: var(--gold); font-size: 15px; }
.timeline p:not(.when):not(.role) { color: var(--ink-2); max-width: 720px; font-size: 16px; }

/* company "?" tooltip */
.co-tip { position: relative; display: inline-flex; align-self: center; }
.co-q {
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border-radius: 50%; border: 1px solid rgb(255 200 30 / .5); background: var(--gold-soft);
  color: var(--gold); font: 700 13px/1 var(--display); cursor: help;
  transition: background .2s, color .2s, box-shadow .2s;
}
.co-tip:hover .co-q, .co-q:focus-visible { background: var(--grad-gold); color: var(--gold-ink); border-color: transparent; box-shadow: 0 0 16px var(--gold-glow); }
.co-pop {
  position: absolute; z-index: 20; left: 50%; top: 100%;
  width: min(320px, calc(100vw - 40px)); padding-top: 10px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  font: 400 14px/1.5 var(--sans); letter-spacing: 0;
}
.co-pop-card {
  position: relative; display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(160deg, #23211b, #151410); border: 1px solid rgb(255 200 30 / .35);
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / .9), 0 0 30px -12px var(--gold-glow);
}
.co-pop-card::before { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: #23211b; border-left: 1px solid rgb(255 200 30 / .35); border-top: 1px solid rgb(255 200 30 / .35); }
.co-tip:hover .co-pop, .co-tip:focus-within .co-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.co-market { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.co-text { color: var(--ink-2); font-size: 14px; }
.co-link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font: 500 12.5px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 999px; border: 1px solid rgb(255 200 30 / .3); }
.co-link .i { width: 13px; height: 13px; color: var(--gold); }
.co-link:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 560px) {
  .timeline h3 { position: relative; }
  .co-tip { position: static; }
  .co-pop { left: 0; width: 100%; transform: translateY(6px); }
  .co-tip:hover .co-pop, .co-tip:focus-within .co-pop { transform: none; }
  .co-pop-card::before { display: none; }
}

/* ============ Credentials ============ */
.book {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(80% 120% at 0% 0%, rgb(255 200 30 / .18), transparent 55%),
    var(--grad-surface) padding-box,
    linear-gradient(140deg, #ffc81e, rgb(255 255 255 / .06) 40%, rgb(255 157 10 / .5)) border-box;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.book::after { content: ""; position: absolute; right: -40px; top: 22px; width: 260px; height: 14px; background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, transparent 12px 24px); opacity: .5; transform: rotate(0); }
.book-cover img { border-radius: 12px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 200 30 / .25), 0 0 60px -10px rgb(255 200 30 / .25); transform: rotate(-2deg); transition: transform .4s; }
.book:hover .book-cover img { transform: rotate(0) scale(1.02); }
.book-copy { display: grid; gap: 16px; justify-items: start; }
.book h3 { font: 800 clamp(28px, 3vw, 40px)/1.05 var(--display); letter-spacing: -.03em; }
.book-copy > p:not(.label) { font-size: 16px; color: var(--ink-2); max-width: 560px; }
.label { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.label .i { width: 16px; height: 16px; }

.cred-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.cred-list { padding: 26px; border-radius: var(--radius); background: rgb(20 20 18 / .7); border: 1px solid var(--line); }
.cred-list .label { margin-bottom: 8px; }
.cred-list li { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cred-list li:last-child { border-bottom: 0; }
.cred-list b { font-weight: 500; font-size: 15px; }
.cred-list span { font-size: 13.5px; color: var(--muted); }
.cred-list i { font-style: normal; color: var(--gold); }
.lang-bars .bar { display: block; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.lang-bars .bar::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: inherit; background: var(--grad-gold); }

/* ============ Global / world map ============ */
.world {
  position: relative; overflow: hidden;
  padding: clamp(20px, 3vw, 36px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 80% at 30% 70%, rgb(255 200 30 / .1), transparent 60%),
    var(--grad-surface) padding-box,
    var(--grad-border) border-box;
  border: 1px solid transparent;
}
.world-map { position: relative; }
.world-svg { display: block; width: 100%; height: auto; overflow: visible; }
.world-svg .dots { fill: none; stroke: rgb(255 255 255 / .24); stroke-width: 2.7; stroke-linecap: round; }
.world-svg .hl { stroke: var(--gold); stroke-width: 3.1; filter: drop-shadow(0 0 3px rgb(255 200 30 / .7)); transition: stroke .3s, filter .3s; }
.world-svg .c-br { stroke: #ffde6b; }
.world-svg .arc { fill: none; stroke: url(#g-gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 5 7; opacity: .85; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.world-svg .pin-dot { fill: var(--gold); stroke: var(--bg); stroke-width: 2; }
.world-svg .pin-ring { fill: rgb(255 200 30 / .18); stroke: var(--gold); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.world-svg .pin-us .pin-ring { animation-delay: -.5s; } .world-svg .pin-de .pin-ring { animation-delay: -1s; }
.world-svg .pin-my .pin-ring { animation-delay: -1.5s; } .world-svg .pin-au .pin-ring { animation-delay: -2s; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.world-svg .hub .pin-dot { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.world-svg text { font: 600 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; letter-spacing: .01em; }

/* hover a region card → light up its countries */
.global:has(.region[data-c~="de"]:hover) .c-de,
.global:has(.region[data-c~="us"]:hover) .c-us,
.global:has(.region[data-c~="br"]:hover) .c-br,
.global:has(.region[data-c~="au"]:hover) .c-au,
.global:has(.region[data-c~="my"]:hover) .c-my { stroke: #fff; filter: drop-shadow(0 0 6px rgb(255 200 30 / 1)); }

.world-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(16px, 2.5vw, 28px); }
.world-stats li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border-radius: 14px; background: rgb(0 0 0 / .3); border: 1px solid var(--line); }
.world-stats .i { grid-row: 1 / 3; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--gold-soft); border: 1px solid rgb(255 200 30 / .22); color: var(--gold); }
.world-stats strong { font: 800 28px/1 var(--display); letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.world-stats span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.world-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; font: 400 12px/1 var(--mono); color: var(--muted); }
.lg-dot, .lg-hub { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.lg-hub { background: #fff; border: 2px solid var(--gold); margin-left: 12px; box-shadow: none; }

.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.region { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: var(--radius); background: rgb(20 20 18 / .7); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.region:hover { border-color: rgb(255 200 30 / .5); transform: translateY(-3px); }
.region-top { display: flex; align-items: center; justify-content: space-between; }
.region-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad-gold); color: var(--gold-ink); box-shadow: 0 10px 24px -10px var(--gold-glow); }
.region-icon .i { width: 21px; height: 21px; stroke-width: 2; }
.region-code { font: 800 22px/1 var(--display); letter-spacing: -.02em; color: var(--gold); }
.region h3 { font: 700 18px/1.25 var(--display); letter-spacing: -.01em; }
.region p { font-size: 14.5px; color: var(--muted); }
.region-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.region-countries li { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgb(255 200 30 / .25); background: var(--gold-soft); font: 500 12px/1 var(--mono); color: var(--ink); }
.region-countries .i { width: 12px; height: 12px; color: var(--gold); }

@media (max-width: 1080px) {
  .world-stats, .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .world { padding: 14px; }
  .world-svg .dots { stroke-width: 3.4; }
  .world-svg .hl { stroke-width: 4; }
  .world-svg text { font-size: 26px; stroke-width: 6px; }
  .world-svg .pin-dot { r: 7; }
  .regions { grid-template-columns: 1fr; }
  .world-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .world-stats li { grid-template-columns: 1fr; padding: 14px; row-gap: 6px; }
  .world-stats .i { grid-row: auto; width: 32px; height: 32px; padding: 7px; }
}

/* ============ Contact ============ */
.contact-wrap { max-width: var(--max); margin: clamp(80px, 10vw, 140px) auto 0; padding: 0 var(--gutter); }
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(70% 90% at 0% 100%, rgb(255 200 30 / .2), transparent 60%),
    radial-gradient(50% 60% at 100% 0%, rgb(255 157 10 / .12), transparent 60%),
    var(--grad-surface) padding-box,
    var(--grad-border) border-box;
  border: 1px solid transparent;
}
.contact-copy { display: grid; gap: 20px; align-content: start; }
.contact-copy > p:not(.eyebrow):not(.section-sub) { color: var(--ink-2); font-size: 18px; max-width: 460px; }
.social-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.social-cards .primary { grid-column: 1 / -1; }
.social-cards .social-card:not(.primary) { gap: 14px; padding: 14px 16px 14px 14px; }
.social-cards .social-card:not(.primary) .social-icon { width: 46px; height: 46px; }
.social-cards .social-card:not(.primary) .social-text b { font-size: 17px; }
.contact:has(.social-cards) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.social-cards .social-card:not(.primary) { grid-template-columns: auto minmax(0, 1fr); }
.social-cards .social-card:not(.primary) .social-arrow { display: none; }
.social-text em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
@media (max-width: 860px) { .contact:has(.social-cards) { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .social-cards { grid-template-columns: 1fr; } }
.social-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 18px 22px 18px 18px; border-radius: 16px;
  background: rgb(0 0 0 / .35); border: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.social-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 20px 40px -20px var(--gold-glow); }
.social-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgb(255 200 30 / .25); color: var(--gold); }
.social-icon .i { width: 26px; height: 26px; }
.social-text { display: grid; gap: 2px; min-width: 0; }
.social-text b { font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.social-text span { font-size: 14.5px; color: var(--ink-2); }
.social-text em { font: normal 400 12px/1.3 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.social-arrow { width: 22px; height: 22px; color: var(--muted); transition: transform .25s, color .25s; }
.social-card:hover .social-arrow { color: var(--gold); transform: translate(2px, -2px); }
.social-card.primary { background: var(--grad-gold); border: 0; color: var(--gold-ink); box-shadow: 0 16px 40px -16px var(--gold-glow), inset 0 1px 0 rgb(255 255 255 / .5); }
.social-card.primary .social-icon { background: var(--gold-ink); color: var(--gold); border: 0; }
.social-card.primary .social-text span, .social-card.primary .social-text em, .social-card.primary .social-arrow { color: rgb(18 16 8 / .75); }

/* ============ Footer ============ */
.footer { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 48px var(--gutter) 48px; font-size: 14px; color: var(--muted); }
.footer-logo { height: 28px; width: auto; opacity: .9; }
.footer nav { display: flex; gap: 22px; }
.footer a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color .2s; }
.footer a .i { color: var(--gold); }
.footer a:hover { color: var(--gold); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .02); color: var(--ink); text-decoration: none; font-weight: 500; transition: border-color .25s, transform .25s, box-shadow .25s; }
.socials a .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--grad-gold); color: var(--gold-ink); stroke-width: 2; }
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px -14px var(--gold-glow); }
.footer-meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.footer-meta a:hover { color: var(--gold); }
@media (max-width: 860px) { .footer { flex-direction: column; align-items: flex-start; } }

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .case { grid-template-columns: minmax(0, 1fr) 240px; }
  .case-meta { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow::before { display: none; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-grid > :first-child { grid-column: 1 / -1; }
  .chip-a { left: -12px; }
  .chip-b { right: -12px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 440px; width: 100%; order: -1; justify-self: center; }
  .portrait-frame img { aspect-ratio: 1 / 1; object-position: 50% 26%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 12px; }
  .timeline::before { display: none; }
  .book { grid-template-columns: 1fr; }
  .book-cover { max-width: 260px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { height: 64px; gap: 10px; }
  .brand img { height: 26px; }
  .nav-actions .btn-small { display: none; }
  .lang-icon { display: none; }
  .lang-switch { padding: 3px; }
  .float-chip { padding: 9px 12px 9px 9px; }
  .float-chip .i { width: 28px; height: 28px; padding: 6px; }
  .float-chip b { font-size: 15px; }
  .chip-a { left: 8px; top: 8%; }
  .chip-b { right: 8px; top: 46%; }
  .metric-grid, .flow, .skills, .cred-grid { grid-template-columns: 1fr; }
  .metric-grid li { padding: 22px; }
  .timeline h3 { font-size: 23px; }
  .contact-wrap { padding: 0 12px; }
}

/* ============ Privacy page ============ */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); display: grid; gap: 22px; justify-items: start; }
.legal h1 { font: 800 clamp(34px, 5vw, 54px)/1.05 var(--display); letter-spacing: -.035em; }
.legal p:not(.eyebrow) { color: var(--ink-2); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--ink); }
