/* Anu Kaur, PharmD — portfolio
   Colors and type live in :root. Edit there to restyle every page. */

:root {
  --paper: #f5f5f6;
  --card: #ffffff;
  --ink: #1a1c21;
  --muted: #555a63;
  --line: #dfe1e5;
  --teal: #b91c2e;
  --teal-b: #e5484d;
  --teal-soft: #fbe9ea;
  --violet: #4b5563;
  --violet-b: #6b7280;
  --violet-soft: #eceef2;
  --amber: #9b1522;
  --navy: #16181d;
  --navy-2: #23262d;
  --focus: #111827;
  --shadow: 0 1px 2px rgba(11,23,48,.06), 0 8px 24px -8px rgba(11,23,48,.14);
  --shadow-up: 0 2px 4px rgba(11,23,48,.06), 0 24px 48px -16px rgba(11,23,48,.28);

  --serif: 'Sora', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.8rem, 3.6vw, 2.4rem);
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121316;
    --card: #1c1e23;
    --ink: #eceef1;
    --muted: #aeb3bc;
    --line: #32353c;
    --teal: #ff7b80;
    --teal-soft: #3a1a1e;
    --violet: #cbd5e1;
    --violet-soft: #272b33;
    --amber: #ff8a8f;
    --focus: #e5e7eb;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-up: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.stage :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .band :focus-visible { outline-color: #fca5a5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- icons ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; flex: none;
  background: linear-gradient(145deg, #ef6a6f 0%, #b91c2e 100%);
  box-shadow: 0 10px 20px -8px rgba(185,28,46,.7), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.14); }
.tile .ic { width: 26px; height: 26px; }
.tile.violet { background: linear-gradient(145deg, #9ca3af 0%, #4b5563 100%); box-shadow: 0 10px 20px -8px rgba(75,85,99,.7), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.14); }
.tile.amber { background: linear-gradient(145deg, #6b7280 0%, #1f2937 100%); box-shadow: 0 10px 20px -8px rgba(31,41,55,.7), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.14); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(22,24,29,.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,.08); transition: background .3s, box-shadow .3s; view-transition-name: site-header; }
.site-header.scrolled { background: rgba(22,24,29,.94); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.wordmark:hover { color: #fff; }
.wordmark b { font-size: 1.15rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-style: italic; font-weight: 700; font-size: 1.05rem; background: linear-gradient(145deg, #ef6a6f, #b91c2e); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px -4px rgba(229,72,77,.6); }
.wordmark .nm span { color: #b4b8c0; font-weight: 400; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: #cfd2d8; text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.nav a.nav-cta { margin-left: 6px; background: linear-gradient(135deg, #ef6a6f, #e5484d); color: #2a0509; font-weight: 600; }
.nav a.nav-cta:hover { background: #fca5a5; color: #2a0509; }
.nav a.nav-cta[aria-current="page"] { box-shadow: 0 0 0 2px #fff inset; }
.menu-btn { display: none; font: 600 0.95rem var(--sans); color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 16px; cursor: pointer; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }

main { padding: 0 0 clamp(56px, 8vw, 96px); }
section { margin-top: clamp(56px, 8vw, 96px); }
.stage + section { margin-top: clamp(40px, 6vw, 72px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.section-head a:hover .ic { transform: translateX(3px); }
.section-head .ic { transition: transform .2s; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.975rem; text-decoration: none; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer; }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #b91c2e, #c8102e); color: #fff; box-shadow: 0 10px 22px -8px rgba(185,28,46,.7); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 28px -8px rgba(185,28,46,.8); }
.btn-quiet { color: var(--teal); border-color: currentColor; background: transparent; }
.btn-quiet:hover { background: var(--teal-soft); color: var(--ink); }
.stage .btn-primary { background: linear-gradient(135deg, #fca5a5, #e5484d); color: #2a0509; box-shadow: 0 12px 28px -8px rgba(229,72,77,.7); }
.stage .btn-primary:hover, .band .btn-primary:hover { color: #2a0509; }
.band .btn-primary { background: linear-gradient(135deg, #fca5a5, #e5484d); color: #2a0509; box-shadow: 0 12px 28px -8px rgba(229,72,77,.5); }
.stage .btn-quiet, .band .btn-quiet { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.stage .btn-quiet:hover, .band .btn-quiet:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- stage (dark hero, also used for page heads) ---------- */
.stage { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #16181d 0%, #23262d 55%, #3a1318 100%); padding: clamp(48px, 8vw, 96px) 0 clamp(88px, 11vw, 140px); }
.stage p { color: #d4d6db; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aurora .b1 { width: 520px; height: 520px; background: #c8102e; left: -140px; top: -180px; animation: drift1 18s ease-in-out infinite alternate; }
.aurora .b2 { width: 460px; height: 460px; background: #4b5563; right: -120px; top: 10%; opacity: .5; animation: drift2 22s ease-in-out infinite alternate; }
.aurora .b3 { width: 380px; height: 380px; background: #7f1d1d; left: 38%; bottom: -200px; opacity: .4; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 84px); display: block; }
.wave path { fill: var(--paper); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff1f1 !important; font-size: 0.9rem; font-weight: 500; margin-bottom: 22px; backdrop-filter: blur(6px); }
.pill .ic { color: #fca5a5; width: 1.2em; height: 1.2em; }
.hero h1 { color: #fff; margin-bottom: 0.25em; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.tagline { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.35; color: #ffb3b6 !important; font-weight: 500; max-width: 30ch; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 30px 0 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #e5e7eb; padding: 8px 14px 8px 10px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.trust .ic { color: #fca5a5; }

/* 3D scene */
.scene { perspective: 1400px; position: relative; padding: 18px 0 30px; }
.tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -12deg)); transition: transform .25s ease-out; will-change: transform; }
.sheet { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.22); }
.sheet.s1 { transform: translateZ(-36px) translate(16px, 18px); }
.sheet.s2 { transform: translateZ(-72px) translate(32px, 36px); opacity: .6; }
.rx-label { position: relative; background: var(--card); color: #1a1c21; border-radius: 20px; overflow: hidden; box-shadow: 0 50px 80px -28px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.4) inset; }
.rx-label::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 48%, transparent 60%); transform: translateX(-120%); animation: sheen 5.5s 1.6s ease-in-out infinite; mix-blend-mode: soft-light; }
.rx-top { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: linear-gradient(120deg, #b91c2e, #9b1522 60%, #7a1019); color: #fff; }
.rx-mark { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 2.9rem; line-height: 1; color: #fff; text-shadow: 0 4px 14px rgba(0,0,0,.35); }
.rx-name { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.rx-name small { display: block; color: #ffd5d7; font-weight: 400; font-size: 0.88rem; }
.rx-fields { margin: 0; padding: 6px 22px 8px; }
.rx-fields div { display: grid; grid-template-columns: 6.6rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e6e7ea; }
.rx-fields div:last-child { border-bottom: 0; }
.rx-fields dt { color: #5d626b; font-size: 0.86rem; font-weight: 500; }
.rx-fields dd { margin: 0; font-size: 0.93rem; line-height: 1.4; color: #1a1c21; }
.rx-perf { height: 40px; position: relative; background: #f1f2f4; border-top: 2px dashed #c9ccd2; display: flex; align-items: center; padding: 0 22px; gap: 3px; overflow: hidden; }
.rx-perf i { display: block; width: 3px; height: 22px; background: #1a1c21; opacity: .75; border-radius: 1px; flex: none; }
.rx-perf i:nth-child(3n) { width: 2px; opacity: .5; } .rx-perf i:nth-child(5n) { width: 5px; }
.chip3d { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 14px; font-weight: 600; font-size: 0.9rem; color: #fff; background: rgba(30,32,38,.72); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 40px -14px rgba(0,0,0,.6); transform: translateZ(80px); }
.chip3d .ic { color: #fca5a5; }
.chip3d.c1 { top: -4px; right: -14px; animation: bob 6s ease-in-out infinite; }
.chip3d.c2 { bottom: -16px; left: 14px; animation: bob 7s -2s ease-in-out infinite; }
.chip3d.c3 { bottom: -16px; right: 14px; animation: bob 8s -4s ease-in-out infinite; }
.chip3d.c2 .ic { color: #d1d5db; } .chip3d.c3 .ic { color: #fecaca; }

/* page head variant */
.stage.small { padding: clamp(36px, 6vw, 64px) 0 clamp(72px, 9vw, 112px); }
.page-head .wrap { display: flex; gap: 22px; align-items: center; }
.page-head .tile { width: 68px; height: 68px; border-radius: 20px; }
.page-head .tile .ic { width: 34px; height: 34px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .15em; color: #fff; }
.page-head p { margin: 0; font-size: var(--step-1); }
.page-head .actions { margin-top: 20px; }
.page-head .tx { min-width: 0; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(229,72,77,.14), transparent 60%); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--teal-b) 55%, var(--line)); }
.card:hover::before { opacity: 1; }

/* flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: f; }
.flow li { padding: 28px 26px 26px; counter-increment: f; overflow: visible; }
.flow li::after { content: counter(f, decimal-leading-zero); position: absolute; right: 20px; top: 12px; font-family: var(--serif); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--teal); opacity: .1; }
.flow .tile { margin-bottom: 18px; }
.flow h3 { margin-bottom: .3em; }
.flow p { margin: 0; color: var(--muted); font-size: .98rem; }
.flow li:not(:last-child) .link { position: absolute; right: -28px; top: 50%; width: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-b) 0 6px, transparent 6px 10px); z-index: 2; }
.flow li:not(:last-child) .link::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--teal-b); }

/* stats */
.statband .panel { list-style: none; margin: 0; padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-radius: 26px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, #16181d, #2a2d35 60%, #4a1219); box-shadow: var(--shadow-up); }
.statband .panel::before { content: ''; position: absolute; width: 380px; height: 380px; right: -100px; top: -200px; background: radial-gradient(circle, rgba(156,163,175,.5), transparent 70%); }
.stat { position: relative; display: flex; gap: 14px; align-items: center; padding: 10px 18px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
.stat .tile { width: 46px; height: 46px; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat div > span { display: block; color: #c0c4cc; font-size: .88rem; line-height: 1.35; margin-top: 3px; }

/* ---------- projects ---------- */
.project-list { display: grid; gap: 28px; }
.project { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 44px); align-items: center; padding: clamp(16px, 2.5vw, 26px); }
.project[hidden] { display: none; }
.project figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.project h3 { font-size: var(--step-2); margin-bottom: .4em; }
.proj-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.proj-top .tile { width: 42px; height: 42px; border-radius: 12px; }
.proj-top .tile .ic { width: 21px; height: 21px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--violet); background: var(--violet-soft); border-radius: 999px; padding: 4px 12px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--teal); background: var(--teal-soft); }
.status.live::before { animation: pulse 1.8s infinite; }
.project ul { margin: 0 0 1em; padding-left: 1.2em; max-width: var(--measure); }
.project ul li { margin-bottom: .35em; color: var(--muted); }
.project ul li::marker { color: var(--teal-b); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 !important; list-style: none; }
.tags li { font-size: .82rem; font-weight: 500; color: var(--teal) !important; background: var(--teal-soft); border-radius: 999px; padding: 3px 11px; margin: 0 !important; }

.mark-panel { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 24px; text-align: center; position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, #23262d, #b91c2e); }
.mark-panel.violet { background: linear-gradient(145deg, #20232a, #4b5563); }
.mark-panel::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 78%); mask-image: radial-gradient(circle, #000 20%, transparent 78%); }
.mark-panel .big-ic { position: absolute; right: -24px; bottom: -34px; width: 190px; height: 190px; opacity: .14; stroke-width: 1.2; }
.mark-panel > div { position: relative; }
.mark-panel span { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; text-shadow: 0 6px 24px rgba(0,0,0,.4); }
.mark-panel small { display: block; font-family: var(--sans); font-weight: 500; font-size: .95rem; color: #e5e7eb; margin-top: 10px; }
.mark-panel .tile { margin: 0 auto 16px; width: 60px; height: 60px; animation: bobflat 6s ease-in-out infinite; }
.mark-panel .tile .ic { width: 30px; height: 30px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 600 .95rem var(--sans); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--ink); border-color: var(--teal-b); }
.filters button[aria-pressed="true"] { background: linear-gradient(135deg, #b91c2e, #c8102e); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(185,28,46,.7); }

/* live timeline */
.tl { padding: 22px 22px 16px; background: var(--card); }
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.tl-title { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); margin: 0; }
.tl-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.tl-stats p { margin: 0; font-size: .88rem; color: var(--muted); }
.tl-stats strong { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; color: var(--teal); font-variant-numeric: tabular-nums; }
.tl-stats p + p strong { color: var(--violet); }
.tl-list { list-style: none; margin: 0 !important; padding: 0 !important; position: relative; }
.tl-list li { display: grid; grid-template-columns: 8.2rem 1fr; column-gap: 16px; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); position: relative; margin: 0 !important; color: var(--ink) !important; }
.tl-list li:last-child { border-bottom: 0; }
.tl-list li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-b); box-shadow: 0 0 0 4px var(--teal-soft); }
.tl-list li.future::before { background: var(--card); border: 2px solid var(--violet-b); box-shadow: 0 0 0 4px var(--violet-soft); }
.tl-list li.pending::before { background: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.25); animation: pulse 1.8s infinite; }
.tl-date { font-weight: 600; font-size: .93rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.tl-rel { grid-column: 1; font-size: .83rem; color: var(--muted); }
.tl-text { grid-column: 2; grid-row: 1 / span 2; font-size: .93rem; line-height: 1.45; color: var(--ink); }
.tl-list li.pending .tl-date { color: var(--amber); }
.tl-foot { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- speaking ---------- */
.talks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.talk { padding: 26px; display: flex; flex-direction: column; gap: 4px; }
.talk .top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.talk .kind { font-weight: 600; color: var(--teal); margin: 0; line-height: 1.3; }
.talk .kind small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.talk h3 { margin-bottom: .35em; font-size: 1.18rem; }
.talk p { margin: 0 0 .6em; color: var(--muted); font-size: .96rem; }
.talk .venue { font-size: .9rem; color: var(--ink); opacity: .8; }
.talk .btn { margin-top: auto; align-self: flex-start; }
.talk .body { flex: 1; }
.talks.full { grid-template-columns: 1fr; }
.talks.full .talk { display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; gap: 12px 30px; align-items: start; }
.talks.full .talk .top { margin: 0; }
.talks.full .talk .btn { margin: 0; }

/* ---------- journey ---------- */
.journey { list-style: none; margin: 0; padding: 0; position: relative; }
.journey::before { content: ''; position: absolute; left: calc(7.5rem + 16px + 21px); top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: linear-gradient(var(--teal-b), var(--violet-b)); opacity: .45; }
.journey > li { display: grid; grid-template-columns: 7.5rem 44px minmax(0, 1fr); gap: 16px; padding: 0 0 28px; position: relative; align-items: start; }
.journey .when { font-weight: 700; font-size: .93rem; margin: 10px 0 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.journey .node { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; z-index: 1; background: linear-gradient(145deg, #ef6a6f, #b91c2e); box-shadow: 0 0 0 6px var(--paper), 0 10px 18px -6px rgba(185,28,46,.6); }
.journey .node .ic { width: 21px; height: 21px; }
.journey li.milestone .node { background: linear-gradient(145deg, #9ca3af, #4b5563); box-shadow: 0 0 0 6px var(--paper), 0 10px 18px -6px rgba(75,85,99,.6); }
.journey .what { padding: 22px 26px; }
.journey .chapter { color: var(--teal); font-size: .85rem; font-weight: 600; margin: 0 0 2px; }
.journey li.milestone .chapter { color: var(--violet); }
.journey h3 { margin-bottom: .15em; }
.journey .org { color: var(--muted); margin-bottom: .6em; font-size: .97rem; }
.journey ul { margin: 0; padding-left: 1.2em; max-width: var(--measure); }
.journey ul li { margin-bottom: .3em; font-size: .96rem; }
.journey ul li::marker { color: var(--teal-b); }

/* ---------- lists and grids ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.two-col h2 { margin-bottom: .6em; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stack li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 16px 18px; }
.stack strong { display: block; font-weight: 600; line-height: 1.3; }
.stack span.d { color: var(--muted); font-size: .94rem; display: block; margin-top: 2px; }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cert-grid li { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cert-grid strong { line-height: 1.3; }
.cert-grid span.d { color: var(--muted); font-size: .9rem; margin-top: -6px; }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.skills > div { padding: 22px; }
.skills .sk-h { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.skills .tile { width: 40px; height: 40px; border-radius: 12px; }
.skills .tile .ic { width: 20px; height: 20px; }
.skills h3 { font-size: 1.05rem; margin: 0; }
.skills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.skills li { font-size: .84rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 11px; }

/* ---------- connect ---------- */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.way { display: grid; grid-template-columns: 56px 1fr 24px; column-gap: 18px; align-items: center; padding: 24px; text-decoration: none; color: var(--ink); }
.way:hover { color: var(--ink); }
.way .go { color: var(--teal); transition: transform .25s; }
.way:hover .go { transform: translate(3px, -3px); }
.way strong { font-size: 1.1rem; display: block; }
.way span.d { color: var(--muted); font-size: .94rem; display: block; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.areas li { padding: 22px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.areas strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.areas span.d { color: var(--muted); font-size: .96rem; }

/* ---------- bands ---------- */
.bands { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.band { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(28px, 4.5vw, 46px); color: #fff; background: linear-gradient(135deg, #16181d, #2a2d35 60%, #4a1219); box-shadow: var(--shadow-up); }
.band.violet { background: linear-gradient(135deg, #1c1f24, #343942 70%, #4b5563); }
.band::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -110px; top: -130px; border: 2px solid rgba(255,255,255,.14); box-shadow: 0 0 0 36px rgba(255,255,255,.04), 0 0 0 78px rgba(255,255,255,.03); }
.band > * { position: relative; }
.band .tile { margin-bottom: 18px; }
.band h2 { margin-bottom: .3em; color: #fff; }
.band p { margin-bottom: 0; color: #d6d8de; }

.note { font-size: .925rem; color: var(--muted); border-left: 3px solid var(--teal-b); padding-left: 14px; max-width: var(--measure); }

/* ---------- footer ---------- */
.site-footer { color: #b4b8c0; font-size: .9rem; padding: 36px 0 44px; background: linear-gradient(180deg, #16181d, #0e0f12); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; align-items: center; }
.site-footer p { margin: 0; max-width: none; }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer a { color: #ffc9cb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .talks { grid-template-columns: 1fr; }
  .talks.full .talk { grid-template-columns: 1fr; }
  .cert-grid, .skills { grid-template-columns: 1fr 1fr; }
  .statband .panel { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 64px; flex-direction: column; align-items: stretch; padding: 10px; border-radius: 18px; background: rgba(22,24,29,.97); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 48px -12px rgba(0,0,0,.6); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 12px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .hero, .project, .two-col, .ways, .areas, .bands { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow li:not(:last-child) .link { display: none; }
  .scene { margin: 6px 14px 0 4px; }
  .chip3d.c1 { right: -6px; } .chip3d.c2 { left: -8px; }
  .page-head .wrap { align-items: flex-start; }
}
@media (max-width: 680px) {
  .journey::before { left: 21px; }
  .journey > li { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; }
  .journey .node { grid-row: 1 / span 2; }
  .journey .when { text-align: left; margin: 0; grid-column: 2; grid-row: 1; }
  .journey .what { grid-column: 2; grid-row: 2; padding: 18px; }
}
@media (max-width: 520px) {
  .rx-fields div { grid-template-columns: 1fr; gap: 2px; }
  .cert-grid, .skills { grid-template-columns: 1fr; }
  .statband .panel { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .tl-list li { grid-template-columns: 1fr; }
  .tl-text { grid-column: 1; grid-row: auto; margin-top: 4px; }
  .page-head .tile { width: 52px; height: 52px; }
  .tilt { --ry: -6deg; }
  .chip3d { font-size: .8rem; padding: 8px 11px; }
  .chip3d.c3 { right: 6px; }
}

/* ---------- motion ---------- */
@keyframes drift1 { to { transform: translate(90px, 70px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-80px, 90px) scale(.9); } }
@keyframes bob { 0%, 100% { transform: translateZ(80px) translateY(0); } 50% { transform: translateZ(80px) translateY(-12px); } }
@keyframes bobflat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.55); } 70% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes flyin { from { opacity: 0; transform: translateX(60px) rotateY(-38deg) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2,.7,.2,1) both; }
::view-transition-group(site-header) { animation-duration: 0s; }

@media (prefers-reduced-motion: no-preference) {
  .stage .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
  .scene { animation: flyin 1.2s .35s cubic-bezier(.2,.7,.2,1) both; }
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .card.reveal.in { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; transition-delay: 0s; }
  .js .card.reveal.in:hover { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .tilt { transform: rotateX(4deg) rotateY(-8deg); }
}
@media print { .site-header, .aurora, .grid-bg { display: none; } .stage { background: none; color: #000; } }

.page-head .wrap > span { display: flex; }
.journey > li:last-child { padding-bottom: 0; }
.journey::before { bottom: 22px; }
@media (max-width: 520px) { .chip3d.c1 { top: -30px; } .scene { padding-top: 34px; } }


.rx-fields a { color: #b91c2e; font-weight: 600; }
.rx-fields div { grid-template-columns: 7.4rem 1fr; }
.wordmark .nm { font-weight: 700; letter-spacing: -0.01em; }
.scene { padding-top: 40px; }
.chip3d.c1 { top: -22px; right: -8px; }
@media (max-width: 520px) { .rx-fields div { grid-template-columns: 1fr; gap: 2px; } }

/* logo */
.wordmark .logo { width: 36px; height: 36px; border-radius: 10px; flex: none; filter: drop-shadow(0 6px 10px rgba(229,72,77,.35)); }
.statband .panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat:nth-child(3) { border-left: 1px solid rgba(255,255,255,.14); }
@media (max-width: 980px) { .statband .panel { grid-template-columns: 1fr; } .stat + .stat, .stat:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); } }
/* hero type */
h1 { font-weight: 800; letter-spacing: -0.035em; }
.hero h1 { line-height: 1.04; }
.tagline { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
body { font-feature-settings: 'ss01', 'cv11'; }
/* Rx box typography: prescription-label feel */
.rx-label { font-family: var(--sans); }
.rx-mark { font-family: var(--serif); font-weight: 800; font-style: italic; letter-spacing: -0.04em; }
.rx-name { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; font-size: 1.12rem; }
.rx-fields dt { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #8a1220; padding-top: 3px; }
.rx-fields dd { font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1.45; color: #1a1c21; }
.rx-fields div { grid-template-columns: 8rem 1fr; }
@media (max-width: 520px) { .rx-fields div { grid-template-columns: 1fr; gap: 2px; } }

/* new logo (no tile, transparent) */
.wordmark .logo { width: 46px; height: 46px; border-radius: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); object-fit: contain; }
.site-header .wrap { min-height: 72px; }
/* SPACE nav item with LinkedIn group logo */
.nav a.nav-space { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.nav a.nav-space img { width: 26px; height: 26px; border-radius: 7px; flex: none; object-fit: cover; }
.nav a.nav-space span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 600; }
.nav a.nav-space small { font-size: .66rem; font-weight: 500; color: #ffb3b6; letter-spacing: .02em; }
.nav a.nav-space .ic { width: .95em; height: .95em; opacity: .8; }
.nav a.nav-space:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
/* 4-tile stat strip, SPACE nav tile */
.statband .panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat:nth-child(3), .stat:nth-child(4) { border-left: 1px solid rgba(255,255,255,.14); }
.stat-link { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; border-radius: 14px; margin: -10px -18px; padding: 10px 18px; }
.stat-link .tile { width: 46px; height: 46px; flex: none; }
.stat-link:hover strong, .stat-link:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
.stat-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav a.nav-space { padding: 5px 10px 5px 6px; gap: 7px; }
.nav a.nav-space .li { width: 20px; height: 20px; flex: none; border-radius: 4px; }
.nav a.nav-space .nm-m { display: none; }
@media (max-width: 1100px) { .statband .panel { grid-template-columns: 1fr 1fr; row-gap: 14px; } .stat:nth-child(odd) { border-left: 0; } .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 520px) { .statband .panel { grid-template-columns: 1fr; } .stat + .stat, .stat:nth-child(even) { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 860px) { .nav a.nav-space .nm-m { display: inline; font-weight: 600; } .nav a.nav-space { justify-content: flex-start; } }

/* Rx card header: italic name over a credential line */
.rx-top { gap: 14px; padding: 16px 20px; align-items: center; }
.rx-mark { font-size: 2.4rem; }
.rx-name { display: block; font-size: inherit; }
.rx-name .rx-nm { display: block; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.1; }
.rx-name small { display: block; margin-top: 5px; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: .715rem; line-height: 1.4; color: #ffd9db; }
.rx-name small sup { font-size: .68em; line-height: 0; }
.btn .li-ic { width: 1.25em; height: 1.25em; border-radius: 4px; }
.btn:hover .li-ic { transform: none; }

/* Desktop: the whole hero, down to the wave, fits the first screen */
@media (min-width: 981px) {
  .stage { padding: clamp(24px, 3.9vh, 72px) 0 clamp(70px, 9.1vh, 128px); }
  .hero { gap: clamp(28px, 4vw, 56px); }
  .hero h1 { font-size: min(clamp(2.3rem, 5.6vw, 4.1rem), 7.1vh); }
  .tagline { font-size: min(clamp(1.2rem, 2.4vw, 1.6rem), 3vh); }
  .hero-copy > p { font-size: min(.98rem, 2.05vh); line-height: 1.55; }
  .trust { margin-top: min(26px, 2.6vh); gap: min(10px, 1.1vh); }
  .trust li { font-size: min(.9rem, 1.9vh); padding: min(8px, 1vh) 14px min(8px, 1vh) 10px; }
  .hero .actions { margin-top: min(26px, 2.8vh); gap: min(12px, 1.4vh); }
  .hero .btn { padding: min(13px, 1.55vh) 16px; font-size: min(.975rem, 2vh); }
  .hero .actions .btn { white-space: nowrap; }
  .scene { padding: min(40px, 3vh) 0 min(30px, 2.4vh); }
  .rx-top { padding: min(16px, 1.9vh) 20px; }
  .rx-mark { font-size: min(2.4rem, 4.6vh); }
  .rx-name .rx-nm { font-size: min(1.5rem, 3vh); }
  .rx-name small { font-size: min(.715rem, 1.45vh); }
  .rx-fields { padding: min(6px, .7vh) 22px min(8px, .9vh); }
  .rx-fields div { padding: min(9px, 1.05vh) 0; }
  .rx-fields dt { font-size: min(.72rem, 1.45vh); }
  .rx-fields dd { font-size: min(.95rem, 1.9vh); }
  .rx-perf { height: min(40px, 4vh); }
}

@media (min-width: 1280px) { .hero .actions { flex-wrap: nowrap; } }
@media (min-width: 981px) and (max-width: 1279px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rx-fields div { grid-template-columns: 6.1rem 1fr; gap: 10px; }
  .rx-fields dt { font-size: min(.66rem, 1.35vh); }
  .rx-fields dd { font-size: min(.86rem, 1.8vh); }
  .rx-name .rx-nm { font-size: min(1.3rem, 2.7vh); }
  .rx-name small { font-size: min(.66rem, 1.35vh); }
}

/* ---------- self-hosted fonts (no third-party request) ---------- */
@font-face { font-family: 'Sora'; src: url('assets/fonts/sora-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('assets/fonts/sora-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('assets/fonts/sora-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/fonts/manrope-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/fonts/manrope-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/fonts/manrope-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('assets/fonts/manrope-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
:root { --rxfont: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; }

/* ---------- Rx card: modern typeface throughout, Rx mark made prominent ---------- */
.rx-label, .rx-label * { font-family: var(--rxfont); }
.rx-label { box-shadow: 0 60px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.5) inset, 0 0 0 6px rgba(255,255,255,.1); }
.rx-top { gap: 15px; padding: 17px 20px; }
.rx-mark { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none;
  font-family: var(--rxfont); font-style: normal; font-weight: 700; font-size: 1.85rem; letter-spacing: -0.03em;
  color: #9b1522; background: #fff; border-radius: 16px; text-shadow: none;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.55), inset 0 -3px 0 rgba(0,0,0,.08); }
.rx-name .rx-nm { font-family: var(--rxfont); font-style: italic; font-weight: 700; letter-spacing: -0.02em; }
.rx-name small { font-weight: 500; letter-spacing: .002em; }
.rx-fields dt { font-family: var(--rxfont); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rx-fields dd { font-family: var(--rxfont); font-weight: 500; }
@media (min-width: 981px) { .rx-mark { width: min(60px, 6.2vh); height: min(60px, 6.2vh); font-size: min(1.85rem, 3.6vh); border-radius: min(16px, 1.7vh); } }

/* ---------- LinkedIn follow button (supplied embed) ---------- */
.li-follow-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #0A66C2; color: #ffffff;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; border-radius: 999px;
  border: 2px solid transparent; transition: background .2s ease, transform .2s ease; white-space: nowrap; }
.li-follow-btn:hover, .li-follow-btn:focus-visible { background: #004182; color: #fff; transform: translateY(-2px); }
.li-follow-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.hero .actions .li-follow-btn { padding: min(12px, 1.5vh) 18px; font-size: min(.975rem, 2vh); }

/* ---------- nav: switch to the Menu button earlier ---------- */
@media (max-width: 1080px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 64px; flex-direction: column; align-items: stretch; padding: 10px; border-radius: 18px; background: rgba(22,24,29,.97); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 48px -12px rgba(0,0,0,.6); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 12px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .nav a.nav-space .nm-m { display: inline; font-weight: 600; }
  .nav a.nav-space { justify-content: flex-start; }
}

/* ---------- verify links ---------- */
.verify { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: .8rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); text-decoration: none; }
.verify:hover, .verify:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.verify .ic { width: .95em; height: .95em; }
.verify[data-soon] { cursor: default; }
.verify.said { color: var(--teal); }

/* ---------- contact form ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-up); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal-b); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 128px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }
.copy-mail { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.copy-mail code { font-family: var(--mono); font-size: .9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }

/* ---------- speaking cards: equal rows, buttons aligned ---------- */
.talks.full .talk { align-items: stretch; }
.talks.full .talk .btn { margin-top: auto; align-self: flex-start; }
/* ---------- certifications: 4-up so seven items break 4 + 3 ---------- */
@media (min-width: 981px) { .cert-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* ---------- skills: cap the chip list with a toggle ---------- */
.sk-more { margin-top: 10px; font: 600 .82rem var(--sans); color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer; }
.sk-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.skills .card ul li.sk-hide { display: none; }
/* ---------- 404 quick links ---------- */
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* ---------- engagement list ---------- */
.engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .engage { grid-template-columns: 1fr; } }
.engage .card { display: flex; flex-direction: column; gap: 8px; }
.engage strong { font-family: var(--serif); font-size: 1.05rem; }
.engage .d { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.soon { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ---------- footer ---------- */
.site-footer .legal { display: block; }
.site-footer .legal small { display: block; margin-top: 4px; opacity: .8; }
.tile.li-tile { background: linear-gradient(145deg, #2a84dd 0%, #0A66C2 100%); box-shadow: 0 10px 20px -8px rgba(10,102,194,.7), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.14); }
.site-footer .li-sm { width: .95em; height: .95em; fill: currentColor; vertical-align: -2px; margin-right: 6px; }
.verify { margin-top: 8px; }
.stack .card > div, .cert-grid .card, .engage .card { min-width: 0; }

.two-col .engage { grid-template-columns: 1fr; gap: 14px; }
.two-col .engage .card { flex-direction: row; align-items: flex-start; gap: 14px; }
.two-col .engage .card .tile { flex: none; }
.two-col .engage .card > div { min-width: 0; }
.copy-mail code[hidden] { display: none; }
.engage .card > div strong { display: block; margin-bottom: 5px; }
.engage .card > div .d { display: block; }
p.soon { width: fit-content; margin: 0; align-self: start; justify-self: start; }
.talks .soon { margin-top: 4px; }
.band .soon { color: #e5e7eb; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); }

/* ---------- Rx mark: curvy serif monogram, no backing tile ---------- */
.rx-mark { display: inline; width: auto; height: auto; background: none; box-shadow: none; border-radius: 0;
  font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 2.9rem; line-height: 1;
  letter-spacing: -0.04em; color: #fff; text-shadow: 0 4px 14px rgba(0,0,0,.35); }
.rx-name .rx-nm { font-style: normal; }
@media (min-width: 981px) { .rx-mark { width: auto; height: auto; font-size: min(2.9rem, 5.6vh); border-radius: 0; } }
.project figure { display: flex; flex-direction: column; gap: 14px; }
.project figure figcaption { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.proj-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.55; color: var(--muted); }

/* ================= CV flipbook (cv.html) ================= */
@font-face { font-family: 'Hanken Grotesk'; src: url('assets/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('assets/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('assets/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('assets/fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

.cv-top { background: linear-gradient(160deg, #16181d 0%, #23262d 55%, #3a1318 100%); color: #fff; padding: clamp(26px, 4vh, 54px) 0 clamp(30px, 4.5vh, 58px); }
.cv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cv-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 .25em; }
.cv-head p { color: #d4d6db; margin: 0; max-width: 56ch; font-size: .98rem; }
.cv-top .btn-quiet { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.cv-top .btn-quiet:hover { background: rgba(255,255,255,.16); }

.cv-wrap { padding-top: clamp(22px, 3vw, 38px); }
.cv-stage { position: relative; perspective: 2200px; overflow: hidden; border-radius: 18px; outline-offset: 4px; }
.cv-page { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(7%) rotateY(-10deg) scale(.97); transform-origin: left center;
  transition: opacity .42s ease, transform .42s cubic-bezier(.2,.7,.2,1); }
.cv-page.is-prev { transform: translateX(-7%) rotateY(10deg) scale(.97); transform-origin: right center; }
.cv-page.is-current { opacity: 1; pointer-events: auto; transform: none; position: relative; }
.cv-paper { width: 816px; height: 1056px; transform-origin: top left; transform: scale(var(--cvs, 1)); box-shadow: 0 30px 60px -22px rgba(0,0,0,.45), 0 0 0 1px rgba(15,26,36,.1); border-radius: 4px; overflow: hidden; background: #F4F6F5; }
.cv-paper a { color: #0F1A24; }
.cv-paper a:hover { color: #0A6A66; }
.cv-mail { font-family: inherit; color: #0A6A66; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cv-mail:hover { color: #0F1A24; }

.cv-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.cv-nav { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--sans); color: var(--teal); background: transparent;
  border: 2px solid currentColor; border-radius: 999px; padding: 11px 20px; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.cv-nav:hover:not(:disabled) { background: var(--teal-soft); color: var(--ink); }
.cv-nav:disabled { opacity: .38; cursor: default; }
.cv-nav.primary { background: linear-gradient(135deg, #b91c2e, #c8102e); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -8px rgba(185,28,46,.7); }
.cv-nav.primary:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, #a3182a, #b50e29); }
.cv-nav .ic { width: 1.05em; height: 1.05em; }
.cv-dots { display: flex; gap: 8px; }
.cv-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--teal); background: transparent; padding: 0; cursor: pointer; }
.cv-dots button[aria-selected="true"] { background: var(--teal); }
.cv-count { margin: 0 auto 0 0; font: 500 .9rem var(--mono); color: var(--muted); }
.cv-hint { margin-top: 14px; }
@media (max-width: 560px) {
  .cv-bar { gap: 10px; }
  .cv-count { order: 3; margin: 0; width: 100%; text-align: center; }
  .cv-nav { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cv-page { transition: opacity .2s ease; transform: none !important; } }

@media print {
  .site-header, .site-footer, .cv-top, .cv-bar, .cv-hint, .skip { display: none !important; }
  .cv-wrap, .cv-wrap .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .cv-stage { overflow: visible; perspective: none; border-radius: 0; }
  .cv-page { position: static !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; break-after: page; page-break-after: always; }
  .cv-page:last-child { break-after: auto; page-break-after: auto; }
  .cv-paper { transform: none !important; box-shadow: none; border-radius: 0; }
  @page { size: letter; margin: 0; }
}
.cv-wrap { padding: 30px 0 0; }
.cv-stage { width: calc(816px * var(--cvs, 1)); max-width: 100%; margin-inline: auto; }
.cv-paper { box-shadow: 0 30px 60px -22px rgba(0,0,0,.45), 0 0 0 1px rgba(15,26,36,.18); }
.cv-bar, .cv-hint { max-width: calc(816px * var(--cvs, 1)); margin-inline: auto; }
section.cv-wrap { margin-top: 0; padding: clamp(24px, 3vw, 38px) 0 0; }
.project-compact { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.project-compact figure { margin: 0; }
.cv-bar { margin: 0 auto 18px; }
.cv-hint { margin: 0 auto 18px; }
.cv-stage.can-turn .cv-page.is-current { cursor: pointer; }
.cv-stage.can-turn .cv-page.is-current:hover .cv-paper { box-shadow: 0 34px 66px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(185,28,46,.35); }
.cv-paper { transition: box-shadow .2s ease; }
