/* Layout: "Dawn on the line". A night-sky hero where a sunrise lifts behind the name on entry, then a release-train page: proof metrics as a PI board, career as stations on one track. Dark-first. */
:root {
  --bg: #0A0E1F;
  --surface: #121935;
  --ink: #F4F2EC;
  --muted: #9CA5C6;
  --line: #242D52;
  --accent: var(--accent-dark);
  --signal: var(--signal-dark);
  --accent-soft: #2A2140;
  --sun: linear-gradient(100deg, var(--glow-1) 0%, var(--glow-2) 45%, var(--glow-3) 100%);
  --star: #F4F2EC;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F5FB; --surface: #FFFFFF; --ink: #0B1024; --muted: #545D7C;
    --line: #D9DDEC; --accent: var(--accent-light); --signal: var(--signal-light); --accent-soft: #FFE8D9;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F5FB; --surface: #FFFFFF; --ink: #0B1024; --muted: #545D7C;
  --line: #D9DDEC; --accent: var(--accent-light); --signal: var(--signal-light); --accent-soft: #FFE8D9;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

/* nav */
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.mark span { color: var(--signal); }
nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav ul a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
nav ul a:hover { color: var(--ink); }
@media (max-width: 640px) { nav ul { display: none; } }

/* hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #1FB36B; box-shadow: 0 0 0 4px color-mix(in srgb, #1FB36B 22%, transparent); }
h1 { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(44px, 9.5vw, 128px); line-height: 0.9; letter-spacing: -0.035em; margin: 20px 0 0; text-wrap: balance; }
h1 .last { color: var(--accent); display: block; }
.role { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; margin: 28px 0 0; max-width: 26ch; text-wrap: balance; }
.role em { font-style: normal; color: var(--signal); }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 62ch; margin: 18px 0 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--body); padding: 15px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.hire-for { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); }

/* PI board */
.board { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 26px 20px 24px; border-right: 1px solid var(--line); min-width: 0; }
.metric:last-child { border-right: 0; }
.metric .n { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 900; font-size: clamp(34px, 4.4vw, 54px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric .n small { font-size: 0.5em; color: var(--signal); }
.metric p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.metric .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) { .board { grid-template-columns: repeat(2, 1fr); } .metric:nth-child(2) { border-right: 0; } .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 420px) { .board { grid-template-columns: 1fr; } .metric { border-right: 0; border-bottom: 1px solid var(--line); } .metric:last-child { border-bottom: 0; } }

/* sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; margin-bottom: 40px; }
.sec-head .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }
h2 { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 10px; } }

/* about */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.about .copy { max-width: 66ch; min-width: 0; }
.about .copy p { margin: 0 0 18px; font-size: 18px; }
.about .copy p:first-child { font-size: 22px; line-height: 1.45; font-weight: 500; }
.clients { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.clients h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.clients li { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: 19px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about > .spacer { display: none; } }

/* track */
.track { position: relative; list-style: none; margin: 0; padding: 0 0 0 220px; }
.track::before { content: ""; position: absolute; left: 228px; top: 10px; bottom: 10px; width: 4px; background: repeating-linear-gradient(to bottom, var(--ink) 0 14px, transparent 14px 22px); opacity: .9; }
.stop { position: relative; padding: 0 0 44px 48px; min-width: 0; }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 4px solid var(--ink); }
.stop.now::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 22%, transparent); }
.when { position: absolute; left: -220px; top: 4px; width: 196px; font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stop h3 { font-family: var(--display); font-variation-settings: "wdth" 105; font-weight: 800; font-size: 23px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.org { font-weight: 600; color: var(--accent); margin: 4px 0 0; font-size: 15px; }
.org span { color: var(--muted); font-weight: 400; }
.stop ul { margin: 12px 0 0; padding-left: 18px; max-width: 70ch; }
.stop li { margin-bottom: 6px; }
.stop li::marker { color: var(--signal); }
@media (max-width: 760px) {
  .track { padding-left: 0; }
  .track::before { left: 8px; }
  .when { position: static; width: auto; display: block; margin-bottom: 4px; }
}

/* training */
.train { background: var(--ink); color: var(--bg); }
.train h2, .train .sec-head .label { color: inherit; }
.train .sec-head .label { color: var(--signal); }
.train-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.train-grid > * { min-width: 0; }
.train p.big { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; margin: 0 0 22px; max-width: 34ch; }
.train .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.train .facts div { border-top: 2px solid var(--signal); padding-top: 10px; }
.train .facts b { display: block; font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 900; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.train .facts span { font-size: 13.5px; opacity: .75; }
.topics { list-style: none; margin: 0; padding: 0; }
.topics li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); }
.topics li:first-child { border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); }
.topics b { font-weight: 600; }
.topics span { font-family: var(--mono); font-size: 12.5px; opacity: .7; text-align: right; }
@media (max-width: 860px) { .train-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .train .facts { grid-template-columns: 1fr; } }

/* certs */
.cert-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cg { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.cg h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.cg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cg li { font-weight: 500; line-height: 1.35; padding-left: 16px; position: relative; }
.cg li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--signal); }
.cg.featured { background: var(--accent); border-color: var(--accent); color: #fff; }
.cg.featured h3 { color: #fff; opacity: .8; }
.cg.featured li::before { background: #fff; }
@media (max-width: 900px) { .cert-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cert-groups { grid-template-columns: 1fr; } }

/* edu & awards */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two > div { min-width: 0; }
.two h3 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: 24px; margin: 0 0 16px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 14px 0; border-top: 1px solid var(--line); }
.rows li b { display: block; }
.rows li span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* contact */
.contact { padding-block: clamp(64px, 9vw, 112px); border-top: 2px solid var(--ink); }
.contact h2 { font-size: clamp(38px, 7vw, 92px); font-variation-settings: "wdth" 125; font-weight: 900; line-height: .95; max-width: 14ch; }
.contact h2 span { color: var(--signal); }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 260px; }
.card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card .v { font-weight: 600; font-size: 18px; word-break: break-word; user-select: all; }
.card .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.copy-btn { font: 500 13px/1 var(--mono); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
.note { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 70ch; }
footer { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero > *:nth-child(2) { animation-delay: .06s; }
  .hero > *:nth-child(3) { animation-delay: .12s; }
  .hero > *:nth-child(4) { animation-delay: .18s; }
  .hero > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}

/* --- site additions --- */
section.flush-top { padding-top: 0; }
.photo { width: 200px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 2px solid var(--ink); }
.yr { font-family: var(--mono); font-size: 12px; opacity: .7; margin-left: 4px; font-weight: 400; }
.train-note { opacity: .8; max-width: 56ch; margin: 0; }
.hero-sm { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.page-title { font-size: clamp(38px, 7vw, 88px); }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.post-card b { font-family: var(--display); font-variation-settings: "wdth" 105; font-weight: 800; font-size: 21px; line-height: 1.2; }
.post-card .s { color: var(--muted); font-size: 15px; }
.more { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 20px; }
@media (max-width: 860px) { .post-list { grid-template-columns: 1fr; } }

.post { padding-block: clamp(40px, 6vw, 72px); max-width: 760px; }
.back { font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--muted); }
.post header { margin: 24px 0 32px; }
.post-title { font-size: clamp(34px, 5.5vw, 60px); line-height: 1; font-variation-settings: "wdth" 115; margin-top: 12px; }
.cover { width: 100%; border-radius: 14px; margin-bottom: 32px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 12px; }
.prose h3 { font-family: var(--display); font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--signal); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--signal); font-size: 20px; color: var(--muted); }
.prose img { border-radius: 12px; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: 10px; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-cta { margin-top: 48px; padding: 22px; border: 2px solid var(--ink); border-radius: 14px; }
.post-cta p { margin: 0; }
.sel { user-select: all; font-weight: 600; }

/* certification year + status */
.cg li { display: flex; flex-direction: column; gap: 3px; }
.cg li .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cg li .yr { margin-left: 0; font-family: var(--mono); font-size: 12px; opacity: .7; font-weight: 400; font-variant-numeric: tabular-nums; }
.live { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, #1FB36B 18%, transparent); color: #128a50; font-weight: 500; }
.cg.featured .live { background: rgba(255,255,255,.2); color: #fff; }
:root[data-theme="dark"] .live { color: #5fd69a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .live { color: #5fd69a; } }


/* ===== Dawn stage (hero). Always night-sky, in both themes. ===== */
.stage { position: relative; overflow: hidden; isolation: isolate; color: #F4F2EC; background: linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 100%); border-bottom: 1px solid rgba(255,255,255,.08); }
.stage .hero { position: relative; z-index: 2; padding-bottom: clamp(56px, 9vw, 120px); }
.dawn { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dawn .sky { position: absolute; inset: 0; background:
  radial-gradient(90% 60% at 72% 112%, color-mix(in srgb, var(--glow-2) 55%, transparent) 0%, color-mix(in srgb, var(--glow-3) 32%, transparent) 32%, color-mix(in srgb, var(--night-2) 60%, transparent) 58%, transparent 76%),
  radial-gradient(50% 40% at 15% 0%, rgba(80,110,255,.18), transparent 70%); }
.dawn .sun { position: absolute; left: 72%; bottom: -34%; width: min(70vw, 820px); aspect-ratio: 1; max-width: 100%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow-1) 90%, transparent) 0%, color-mix(in srgb, var(--glow-2) 55%, transparent) 28%, color-mix(in srgb, var(--glow-3) 22%, transparent) 52%, transparent 70%); filter: blur(6px); }
.dawn .grid { 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: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); }
.dawn .horizon { position: absolute; left: 0; right: 0; bottom: 22%; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--glow-1) 45%, var(--glow-3) 70%, transparent 100%); transform-origin: 72% 50%; box-shadow: 0 0 24px color-mix(in srgb, var(--glow-2) 60%, transparent); }
.dawn .stars { position: absolute; inset: 0 0 45% 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 22%, var(--star) 50%, transparent 51%), radial-gradient(1px 1px at 28% 12%, var(--star) 50%, transparent 51%),
  radial-gradient(1.2px 1.2px at 46% 30%, var(--star) 50%, transparent 51%), radial-gradient(1px 1px at 63% 9%, var(--star) 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 84% 24%, var(--star) 50%, transparent 51%), radial-gradient(1px 1px at 92% 7%, var(--star) 50%, transparent 51%),
  radial-gradient(1px 1px at 6% 40%, var(--star) 50%, transparent 51%), radial-gradient(1.2px 1.2px at 38% 4%, var(--star) 50%, transparent 51%); opacity: .55; }

.stage .eyebrow { color: rgba(244,242,236,.7); }
.stage h1 { color: #F4F2EC; }
.stage h1 .last { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.stage .role { color: #F4F2EC; }
.stage .role em { color: var(--glow-1); }
.stage .lede { color: rgba(244,242,236,.78); }
.stage .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(244,242,236,.85); backdrop-filter: blur(6px); }
.stage .btn { background: #F4F2EC; color: #0A0E1F; border-color: #F4F2EC; }
.stage .btn.ghost { background: transparent; color: #F4F2EC; border-color: rgba(244,242,236,.5); }
.stage .btn.ghost:hover { border-color: #F4F2EC; }
.btn.signal, .stage .btn.signal { background: var(--sun); border-color: transparent; color: var(--on-sun); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--glow-2) 70%, transparent); }
.era { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--glow-1) 45%, transparent); color: var(--glow-1); background: color-mix(in srgb, var(--glow-2) 8%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .dawn .sun { animation: sunrise 2.4s cubic-bezier(.16,.8,.24,1) both; }
  .dawn .sky { animation: skyglow 2.4s ease-out both; }
  .dawn .horizon { animation: horizon 1.6s .5s cubic-bezier(.2,.8,.2,1) both; }
  .stage .hero > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .stage .hero > *:nth-child(1) { animation-delay: .15s; }
  .stage .hero > *:nth-child(2) { animation-delay: .3s; }
  .stage .hero > *:nth-child(3) { animation-delay: .45s; }
  .stage .hero > *:nth-child(4) { animation-delay: .6s; }
  .stage .hero > *:nth-child(5) { animation-delay: .75s; }
  .stage .hero > *:nth-child(6) { animation-delay: .9s; }
  @keyframes sunrise { from { transform: translate(-50%, 28%) scale(.85); } to { transform: translate(-50%, 0) scale(1); } }
  @keyframes skyglow { from { filter: saturate(.4) brightness(.6); } to { filter: none; } }
  @keyframes horizon { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
  @keyframes sunsweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
}

/* re-tone shared pieces for the new palette */
.cg.featured { background: var(--sun); border-color: transparent; color: var(--on-sun); }
.cg.featured h3 { color: var(--on-sun); opacity: .75; }
.cg.featured li::before { background: var(--on-sun); }
.cg.featured .live { background: rgba(22,11,20,.14); color: var(--on-sun); }
.cg.featured .yr { color: var(--on-sun); }
.board { border-top-color: var(--accent); }
.metric .n small { color: var(--accent); }
.metric .tag, .org, .cg h3 { color: var(--accent); }
.sec-head .label { color: var(--signal); }
.stop.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.train { background: linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 45%, var(--band-3) 100%); color: #F4F2EC; }
.train .sec-head .label { color: var(--glow-1); }
.train .facts div { border-top-color: var(--glow-2); }
.contact h2 span { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.train .topics li, .train .topics li:first-child { border-color: rgba(244,242,236,.16); }
.stage + .wrap .board, main > .wrap:first-of-type .board { margin-top: 0; }
.verify { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.verify a { font: 600 14px/1 var(--body); text-decoration: none; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.verify a:hover { border-color: var(--accent); color: var(--accent); }
.cg .cn a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* animation switch from _data/theme.yml */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; }

/* Hero portrait: sits in front of the rising sun */
.portrait { margin: 0; width: 132px; aspect-ratio: 1; max-width: 100%; border-radius: 50%; padding: 4px; background: var(--sun); box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow-2) 18%, transparent), 0 30px 80px -20px color-mix(in srgb, var(--glow-3) 60%, transparent); order: -1; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--night-1); }
.hero.has-photo { display: flex; flex-direction: column; }
.hero.has-photo .portrait { margin-bottom: 20px; }
@media (min-width: 960px) {
  .hero.has-photo { display: block; }
  .hero.has-photo > :not(.portrait) { max-width: calc(100% - 380px); }
  .hero.has-photo .portrait { position: absolute; right: clamp(16px, 4vw, 40px); top: 50%; width: clamp(240px, 26vw, 330px); transform: translateY(-46%); margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage .hero .portrait { animation: portrait-in 1.4s .6s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes portrait-in { from { transform: translateY(-36%) scale(.92); } to { transform: translateY(-46%) scale(1); } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .stage .hero .portrait { animation: none; }
}

/* Expertise tags: bolder and brighter */
.chip { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: .01em; padding: 8px 15px; }
.stage .chip { color: #FFFFFF; background: rgba(255,255,255,.12); border-color: color-mix(in srgb, var(--glow-2) 45%, rgba(255,255,255,.25)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.stage .chip:hover { background: rgba(255,255,255,.18); border-color: var(--glow-2); }

/* Role labels under the name */
.roles { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 18px 0 0; font-family: var(--mono); font-size: clamp(12px, 1.3vw, 14px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #F4F2EC; }
.roles span { display: inline-flex; align-items: center; }
.roles span + span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow-2); margin: 0 14px; box-shadow: 0 0 10px var(--glow-2); }
.stage .role { margin-top: 22px; }

/* Certificates with badges */
.cg li.cert { flex-direction: row; align-items: flex-start; gap: 12px; padding-left: 16px; }
.cg li.cert.has-badge { padding-left: 0; }
.cg li.cert.has-badge::before { display: none; }
.cg .badge { width: 44px; height: 44px; flex: none; object-fit: contain; }
.cg .cbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cg .cn a { text-decoration: none; color: inherit; }
.cg .cn a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.verify-link { font-family: var(--mono); font-size: 11px; opacity: .65; }
.cg li.cert:has(a):hover .verify-link { opacity: 1; color: var(--accent); }
.live, .cg.featured .live { background: #1FB36B; color: #FFFFFF; }
.expired { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 22%, transparent); color: var(--muted); font-weight: 500; }
.cg.muted { opacity: .78; }
.cg.muted .badge { filter: grayscale(1); opacity: .7; }
.cg.featured .verify-link { color: var(--on-sun); }
.group-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--accent); }

/* Awards with certificate pictures */
.rows li.award { display: flex; gap: 14px; align-items: center; }
.rows li.award .abody { display: flex; flex-direction: column; min-width: 0; }
.thumb { position: relative; flex: none; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.thumb .zoom { position: absolute; inset: auto 0 0 0; font: 600 11px/1 var(--body); text-align: center; padding: 5px 0; background: rgba(6,9,24,.72); color: #fff; }
.thumb:hover img { transform: scale(1.06); }
.train-photo { display: flex; gap: 14px; align-items: center; margin-top: 22px; text-decoration: none; color: inherit; max-width: 56ch; }
.train-photo img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); flex: none; }
.train-photo span { font-size: 14px; opacity: .85; }
.train-photo:hover span { opacity: 1; text-decoration: underline; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(4,6,16,.85); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 10px; margin: 0 auto; }
.lb-cap { color: #F4F2EC; text-align: center; margin: 12px 0 0; font-size: 14px; }
.lb-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(6,9,24,.8); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* Uniform badge tiles */
.cg .badge { box-sizing: border-box; width: 46px; height: 46px; padding: 4px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.cg .badge.ph { display: inline-flex; align-items: center; justify-content: center; font: 700 18px/1 var(--body); color: #1FB36B; }
.cg.muted .badge.ph { color: var(--muted); }
.cg li.cert { align-items: center; }

/* Badges: logo only, no tile */
.cg .badge { background: none; box-shadow: none; padding: 0; border-radius: 0; width: 48px; height: 48px; object-fit: contain; }
.cg li.cert:not(:has(.badge)) .cbody { padding-left: 60px; }

/* Role labels: a glowing dot before every role, so wrapped lines stay consistent */
.roles { gap: 8px 22px; }
.roles span::before, .roles span + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow-2); margin: 0 12px 0 0; box-shadow: 0 0 10px var(--glow-2); flex: none; }

/* Fix: include borders in pseudo-element sizes so timeline dots sit centred on the line */
*::before, *::after { box-sizing: border-box; }

/* Contact heading: calmer size */
.contact h2 { font-size: clamp(30px, 4.6vw, 60px); max-width: 20ch; line-height: 1.02; }

/* Remove the empty left column: labels sit above headings, content uses full width */
.sec-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
.about { grid-template-columns: 1fr; }
.about > .spacer { display: none; }
.about .copy { max-width: 72ch; }
@media (min-width: 761px) {
  .track { padding-left: 170px; }
  .track::before { left: 178px; }
  .when { left: -170px; width: 150px; }
}
