/* Engineering project review board: pale-blue board, near-white sheets, dark teal type, restrained orange. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --hero: #d6ebed;
  --page: #e8f3f4;
  --sheet: #f8fbfa;
  --ink: #132a3a;
  --body: #3d5b70;
  --muted: #526d80;
  --line: #cfdee0;
  --line-strong: #b3c9cc;
  --orange: #dc622e;
  --action: #c45227;
  --action-hover: #ab461f;
  --action-ink: #ffffff;
  --link: #b7471c;
  --link-hero: #a03e17;
  --resume: #193944;
  --resume-hover: #0e2b35;
  --resume-ink: #ffffff;
  --hover: #edf5f5;
  --tint: #deeced;
  --field: #ffffff;
  --focus: #bd4c20;
  --selection: #ffd7bc;
  --selection-ink: #132a3a;
  --scrollbar: #8aa6ab;
  --hero-edge: transparent;
  --header-edge: #c2d9dc;
  --sheet-edge: #d3e3e5;
  --sheet-lift: inset 0 0 0 transparent;
  --shadow-rgb: 19 42 58;
  --shadow-a: .16;
  --code-bg: #e3eff0;
  --code-ink: #132a3a;
  --figure-bg: #eef6f6;
  --uline: #2a73a8;
  --tone-green: #5e8c22;
  --tone-purple: #6f3eda;
  --tone-ink: #142b38;
  --tone-orange: #d9531a;
  --tone-blue: #075ba6;
  --tone-red: #c7292d;

  /* article marks and callouts */
  --hl-green: #d5efd9; --hl-green-ink: #11331b;
  --hl-red: #fbd9d6; --hl-red-ink: #5c1512;
  --hl-blue: #d6e8f7; --hl-blue-ink: #0f3553;
  --hl-orange: #fde0cc; --hl-orange-ink: #5a2a0c;
  --hl-yellow: #fbeeb8; --hl-yellow-ink: #4a3a05;
  --hl-cyan: #d2eff2; --hl-cyan-ink: #0e3a40;
  --hl-pink: #f9d8e8; --hl-pink-ink: #561433;
  --hl-violet: #e5dcfb; --hl-violet-ink: #33196e;
  --ul-blue: #2a73a8; --ul-green: #3f8a52; --ul-orange: #dc622e; --ul-red: #c7292d;
  --ul-yellow: #c98a0e; --ul-cyan: #1f8a95; --ul-pink: #c2427e; --ul-violet: #6f3eda;
  --co-note: #3e8a8e; --co-note-ink: #1d5b60;
  --co-info: #2a73a8; --co-info-ink: #1d5480;
  --co-risk: #c7292d; --co-risk-ink: #9a1f22;
  --co-success: #3f8a52; --co-success-ink: #2a6a3b;
  --co-warning: #c98a0e; --co-warning-ink: #6f4a04;
  --co-research: #6f3eda; --co-research-ink: #5530a8;
  --co-quote: #7b999e; --co-quote-ink: #132a3a;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 3vw, 48px);
  --header-h: 64px;
  --display: 'Rethink Sans', 'Roboto', system-ui, sans-serif;
  --text: 'Roboto', system-ui, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --hero: #10272e; --page: #0e2027; --sheet: #193139;
    --ink: #e4f0f0; --body: #bdced2; --muted: #9fb8c0;
    --line: #36515a; --line-strong: #4b6b75;
    --orange: #f09161; --action: #c45227; --action-hover: #ab461f; --action-ink: #ffffff;
    --link: #ffb489; --link-hero: #ffb489;
    --resume: #dfeded; --resume-hover: #ffffff; --resume-ink: #17353f;
    --hover: #1f3a43; --tint: #21414b; --field: #10272e;
    --focus: #ffb489; --selection: #73462f; --selection-ink: #fff5eb; --scrollbar: #4f6f78;
    --hero-edge: #27464f; --header-edge: #29484f; --sheet-edge: #2e4c55; --sheet-lift: inset 0 1px 0 rgb(255 255 255 / .045);
    --shadow-rgb: 0 0 0; --shadow-a: .5;
    --code-bg: #0f252c; --code-ink: #d8e8ea; --figure-bg: #152b32; --uline: #7cc0e6;
    --tone-green: #a3c759; --tone-purple: #b49cff; --tone-ink: #e4f0f0; --tone-orange: #ffab71; --tone-blue: #70b6e5; --tone-red: #ff8585;
    --hl-green: #1d4a30; --hl-green-ink: #dcf5e3; --hl-red: #4f2220; --hl-red-ink: #ffe0dd;
    --hl-blue: #183e5c; --hl-blue-ink: #dcecfa; --hl-orange: #4f2c17; --hl-orange-ink: #ffe6d3;
    --hl-yellow: #4a3d12; --hl-yellow-ink: #fbf0c9; --hl-cyan: #15454b; --hl-cyan-ink: #d6f4f7;
    --hl-pink: #4d1f36; --hl-pink-ink: #fbe0ec; --hl-violet: #33285c; --hl-violet-ink: #e8e0ff;
    --ul-blue: #7cc0e6; --ul-green: #6cc28a; --ul-orange: #f09161; --ul-red: #ff8585;
    --ul-yellow: #e8b04b; --ul-cyan: #5fcbd6; --ul-pink: #f08bbb; --ul-violet: #b49cff;
    --co-note: #6fb5b8; --co-note-ink: #a9dde0; --co-info: #70b6e5; --co-info-ink: #a8d4f2;
    --co-risk: #ff8585; --co-risk-ink: #ffb8b8; --co-success: #6cc28a; --co-success-ink: #a6e3bb;
    --co-warning: #e8b04b; --co-warning-ink: #f3d08e; --co-research: #b49cff; --co-research-ink: #d4c6ff;
    --co-quote: #9fb8c0; --co-quote-ink: #e4f0f0;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --hero: #10272e; --page: #0e2027; --sheet: #193139;
  --ink: #e4f0f0; --body: #bdced2; --muted: #9fb8c0;
  --line: #36515a; --line-strong: #4b6b75;
  --orange: #f09161; --action: #c45227; --action-hover: #ab461f; --action-ink: #ffffff;
  --link: #ffb489; --link-hero: #ffb489;
  --resume: #dfeded; --resume-hover: #ffffff; --resume-ink: #17353f;
  --hover: #1f3a43; --tint: #21414b; --field: #10272e;
  --focus: #ffb489; --selection: #73462f; --selection-ink: #fff5eb; --scrollbar: #4f6f78;
  --hero-edge: #27464f; --header-edge: #29484f; --sheet-edge: #2e4c55; --sheet-lift: inset 0 1px 0 rgb(255 255 255 / .045);
  --shadow-rgb: 0 0 0; --shadow-a: .5;
  --code-bg: #0f252c; --code-ink: #d8e8ea; --figure-bg: #152b32; --uline: #7cc0e6;
  --tone-green: #a3c759; --tone-purple: #b49cff; --tone-ink: #e4f0f0; --tone-orange: #ffab71; --tone-blue: #70b6e5; --tone-red: #ff8585;
  --hl-green: #1d4a30; --hl-green-ink: #dcf5e3; --hl-red: #4f2220; --hl-red-ink: #ffe0dd;
  --hl-blue: #183e5c; --hl-blue-ink: #dcecfa; --hl-orange: #4f2c17; --hl-orange-ink: #ffe6d3;
  --hl-yellow: #4a3d12; --hl-yellow-ink: #fbf0c9; --hl-cyan: #15454b; --hl-cyan-ink: #d6f4f7;
  --hl-pink: #4d1f36; --hl-pink-ink: #fbe0ec; --hl-violet: #33285c; --hl-violet-ink: #e8e0ff;
  --ul-blue: #7cc0e6; --ul-green: #6cc28a; --ul-orange: #f09161; --ul-red: #ff8585;
  --ul-yellow: #e8b04b; --ul-cyan: #5fcbd6; --ul-pink: #f08bbb; --ul-violet: #b49cff;
  --co-note: #6fb5b8; --co-note-ink: #a9dde0; --co-info: #70b6e5; --co-info-ink: #a8d4f2;
  --co-risk: #ff8585; --co-risk-ink: #ffb8b8; --co-success: #6cc28a; --co-success-ink: #a6e3bb;
  --co-warning: #e8b04b; --co-warning-ink: #f3d08e; --co-research: #b49cff; --co-research-ink: #d4c6ff;
  --co-quote: #9fb8c0; --co-quote-ink: #e4f0f0;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--scrollbar) var(--page);
  background: var(--page);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
#main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg { flex-shrink: 0; }
::selection { background: var(--selection); color: var(--selection-ink); }
input { caret-color: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.nums { font-variant-numeric: tabular-nums; }
.date-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px 0 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--tint); color: var(--ink); font: 500 13.5px/1 var(--text); white-space: nowrap; vertical-align: middle; }
.date-tag .lu { width: 14px; height: 14px; flex: none; color: var(--body); }
.note-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 12px 18px; border-radius: 6px; background: var(--resume); color: var(--resume-ink); font-weight: 500; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: 1540px; margin-inline: auto; padding-inline: var(--gutter); }
.lu, .si { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
#main:focus { outline: none; }
.sheet { background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px; box-shadow: var(--sheet-lift); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 6px;
  font: 500 16px/1.2 var(--text); text-decoration: none; text-align: center; white-space: nowrap;
}
.btn .lu { width: 20px; height: 20px; }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action-hover); }
.btn-resume { background: var(--resume); color: var(--resume-ink); }
.btn-resume:hover { background: var(--resume-hover); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--link); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .lu { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.back-link:hover { color: var(--link-hero); text-decoration: underline; }
.back-link .lu { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--hero);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 300ms ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--header-edge); box-shadow: 0 6px 18px -10px rgb(var(--shadow-rgb) / var(--shadow-a)); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); position: relative; }
.wordmark { font: 700 19px/1 var(--display); letter-spacing: -.025em; text-decoration: none; margin-right: auto; white-space: nowrap; padding: 14px 0; }
.header-controls { display: flex; align-items: center; gap: 8px; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform-origin: left; transform: scaleX(var(--progress, 0)); pointer-events: none; }

.theme-toggle {
  position: relative; width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--sheet); color: var(--ink);
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { position: absolute; width: 21px; height: 21px; transition: transform 460ms var(--ease-out), opacity 260ms ease; }
.tt-sun { transform: rotate(-90deg) scale(.3); opacity: 0; }
.tt-moon { transform: none; opacity: 1; }
.theme-toggle[aria-pressed="true"] .tt-sun { transform: none; opacity: 1; }
.theme-toggle[aria-pressed="true"] .tt-moon { transform: rotate(90deg) scale(.3); opacity: 0; }
.theme-toggle:active { transform: scale(.94); }

.menu-toggle {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--sheet); color: var(--ink); padding: 0;
}
.menu-bars { position: relative; width: 20px; height: 14px; display: block; }
.menu-bars span { position: absolute; left: 0; right: 0; height: 2.25px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease-out), opacity 160ms ease; }
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 6px; }
.menu-bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile navigation panel */
.site-nav {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin-inline: var(--gutter);
  display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 14px;
  max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 10px;
  box-shadow: 0 22px 40px -22px rgb(var(--shadow-rgb) / calc(var(--shadow-a) + .1));
  visibility: hidden; clip-path: inset(0 0 100% 0 round 10px); transform: translateY(-6px);
  transition: clip-path 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.site-nav.is-open { visibility: visible; clip-path: inset(0 0 0 0 round 10px); transform: none; transition: clip-path 340ms var(--ease-out), transform 340ms var(--ease-out), visibility 0s; }
.nav-links a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 6px; font-size: 18px; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a:active { background: var(--hover); }
.nav-links li + li { border-top: 1px solid var(--line); }
.nav-links a[aria-current] { color: var(--link); }
.nav-links a.nav-resume { gap: 8px; }
.nav-links a.nav-sessions { gap: 6px; color: var(--link); font-weight: 600; }
.nav-sessions .nav-spark { width: 16px; height: 16px; flex: none; color: var(--orange); }
.nav-resume .lu { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
.nav-resume:hover .lu { transform: translateY(2px); }
.nav-cta { margin: 8px 6px 0; min-height: 52px; font-size: 17px; }
.nav-social { padding: 4px 6px 0; }
.socials.socials-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.socials.socials-menu a { display: flex; width: 100%; justify-content: center; border: 1px solid var(--line); border-radius: 6px; min-height: 48px; }
.menu-scrim { position: fixed; inset: 0; z-index: 90; background: rgb(var(--shadow-rgb) / .28); opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms; }
.menu-scrim.is-on { opacity: 1; visibility: visible; transition: opacity 260ms ease, visibility 0s; }
:root[data-theme="dark"] .menu-scrim { background: rgb(0 0 0 / .5); }
:root[data-theme="dark"] .site-header { border-bottom-color: var(--header-edge); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .menu-scrim { background: rgb(0 0 0 / .5); } :root:not([data-theme]) .site-header { border-bottom-color: var(--header-edge); } }

/* ---------- announcement strip (above the sticky header; scrolls away, can be closed) ---------- */
/* it borrows the resume role: deep teal in light mode, pale with dark ink in dark mode */
.notice { --notice-link: #ffb489; --notice-mark: #f09161; background: var(--resume); color: var(--resume-ink); overflow: hidden; }
:root[data-theme="dark"] .notice { --notice-link: #a03e17; --notice-mark: #c45227; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .notice { --notice-link: #a03e17; --notice-mark: #c45227; } }
:root[data-notice="off"] .notice { display: none; }
.notice-inner { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.notice-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; line-height: 1.3; text-decoration: none; }
.notice-mark { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; background: var(--notice-mark); }
.notice-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-copy strong { font-weight: 700; }
.notice-short, .notice-long { display: none; }
.notice-cta { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--notice-link); font-weight: 500; }
.notice-cta .lu { width: 17px; height: 17px; transition: transform 240ms var(--ease-out); }
.notice-link:hover .notice-cta { text-decoration: underline; }
.notice-link:hover .notice-cta .lu { transform: translateX(3px); }
.notice-link:focus-visible, .notice-close:focus-visible { outline-color: var(--notice-link); outline-offset: -3px; }
.notice-close { width: 44px; height: 44px; flex: 0 0 44px; margin-right: -12px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: inherit; }
.notice-close:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.notice-close .lu { width: 18px; height: 18px; }
@media (min-width: 480px) { .notice-short { display: inline; } }
@media (min-width: 900px) {
  .notice-short { display: none; }
  .notice-long { display: inline; }
  .notice-link { font-size: 15.5px; }
}

/* ---------- social links ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.socials a:hover span:first-of-type { text-decoration: underline; }
.socials .si { width: 22px; height: 22px; }

/* ---------- opening: intro + board ---------- */
/* on the deeper hero ground, secondary text steps up to the body tone so it keeps 4.5:1 */
:root:not([data-theme="dark"]) .opening, :root:not([data-theme="dark"]) .article-band { --muted: var(--body); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .opening, :root:not([data-theme]) .article-band { --muted: #9fb8c0; } }
.opening .board, .opening .contact-strip, .opening .blog-tag-browser, .opening .flow-sheet { --muted: #526d80; }
:root[data-theme="dark"] .opening .board, :root[data-theme="dark"] .opening .contact-strip, :root[data-theme="dark"] .opening .blog-tag-browser, :root[data-theme="dark"] .opening .flow-sheet { --muted: #9fb8c0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .opening .board, :root:not([data-theme]) .opening .contact-strip, :root:not([data-theme]) .opening .blog-tag-browser, :root:not([data-theme]) .opening .flow-sheet { --muted: #9fb8c0; } }
.opening { background: var(--hero); padding: 26px 0 40px; border-bottom: 1px solid var(--hero-edge); overflow-x: clip; }
.opening-grid { display: grid; gap: 28px; }
.intro { min-width: 0; }
.greeting { font: 800 clamp(42px, 12.4vw, 50px)/1.02 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.role-line { font: 600 clamp(20px, 5.6vw, 23px)/1.25 var(--display); letter-spacing: -.02em; margin-top: 8px; }
.accent-bar { display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--orange); margin-top: 16px; transform-origin: left; }
.statement { font-size: 18px; line-height: 1.5; color: var(--body); margin-top: 18px; max-width: 36ch; }
.location { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 16px; color: var(--body); }
.location .lu { width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.intro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.intro-actions:has(> :only-child) { grid-template-columns: 1fr; }
.intro-actions .btn { min-height: 52px; padding-inline: 12px; font-size: 17px; }
.lg-only { display: none; }
.lg-break { display: none; }
.socials-intro { margin-top: 8px; }
.roles { display: none; }

.board-wrap { min-width: 0; }
.board-select {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px; padding-left: 16px; margin-bottom: 12px;
}
.board-select label { font-size: 17px; font-weight: 600; color: var(--ink); }
.board-select select {
  appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; min-height: 56px;
  border: 0; background: transparent; color: var(--link); font-weight: 700; font-size: 18px;
  padding: 0 48px 0 4px; cursor: pointer; text-overflow: ellipsis;
}
.board-select select:focus-visible { outline: none; }
.board-select:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.select-chev { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; pointer-events: none; color: var(--ink); }

.board {
  position: relative; background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px;
  box-shadow: var(--sheet-lift), 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 24px 48px -30px rgb(var(--shadow-rgb) / var(--shadow-a));
  transform-origin: left center;
}
.board-tabs { display: none; }
.panel { outline-offset: -3px; }
.panel-inner { padding: 24px 18px 18px; transform-origin: left 30%; }
.project-title { font: 800 clamp(40px, 13.4vw, 54px)/1 var(--display); letter-spacing: -.016em; }
.project-subtitle { font: 600 21px/1.25 var(--display); letter-spacing: -.015em; margin-top: 8px; }
.project-meta { font-size: 16px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.meta-role { display: block; text-wrap: balance; }
.meta-where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.meta-sep { display: none; }
.project-summary { font-size: 17px; line-height: 1.55; color: var(--body); margin-top: 14px; max-width: 64ch; }
.built-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.columns { margin-top: 20px; }
.col { border-top: 1px solid var(--line); }
.col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; cursor: pointer; }
.col summary::-webkit-details-marker { display: none; }
.col-title { font: 700 20px/1.2 var(--display); letter-spacing: -.015em; margin: 0; }
.col-chev { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.col-chev .lu { width: 22px; height: 22px; transition: transform 300ms var(--ease-out); }
.col[open] .col-chev .lu { transform: rotate(180deg); }
.col-body { padding-bottom: 20px; }
.col-desc { font-size: 16px; color: var(--muted); line-height: 1.4; }
.tech-list { display: grid; gap: 14px; margin-top: 14px; }
.tech { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; }
.tech-icon { width: 40px; height: 40px; display: grid; place-items: center; }
.tech-icon .si { width: 34px; height: 34px; }
.tech-line .lu { width: 32px; height: 32px; stroke-width: 1.75; }
.tech-pair { grid-template-columns: 1fr 1fr; gap: 2px; }
.tech-pair .si { width: 19px; height: 19px; }
.tech-text { display: grid; gap: 2px; min-width: 0; }
.tech-name { font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.tech-detail { font-size: 16px; line-height: 1.35; color: var(--muted); }
.tone-green { color: var(--tone-green); } .tone-purple { color: var(--tone-purple); } .tone-ink { color: var(--tone-ink); }
.tone-orange { color: var(--tone-orange); } .tone-blue { color: var(--tone-blue); } .tone-red { color: var(--tone-red); }
.board-foot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.evidence-label { font-size: 16px; color: var(--muted); }
.evidence { display: grid; gap: 8px; }
.evidence li { font: 600 18px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); display: flex; gap: 10px; align-items: baseline; text-wrap: balance; }
.evidence li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); flex: 0 0 8px; transform: translateY(-2px); }
.details-link { order: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--link); font-size: 17px; font-weight: 500; text-decoration: none; }
.details-link:hover { text-decoration: underline; }
.details-link .lu { width: 20px; height: 20px; }

/* ---------- page openings (inner pages) ---------- */
.page-head { display: grid; gap: 28px; }
.page-intro { min-width: 0; }
.page-title { font: 800 clamp(40px, 11vw, 52px)/1.04 var(--display); letter-spacing: -.02em; }
.page-title.is-archive, .page-title.is-book { font-size: clamp(32px, 8.6vw, 42px); line-height: 1.08; }
.page-lead { font-size: 18px; line-height: 1.5; color: var(--body); margin-top: 18px; max-width: 48ch; }
.page-intro .back-link { margin: -6px 0 10px; }
.page-intro .location { margin-top: 16px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.page-actions .btn { min-height: 52px; }
.archive-count { margin-top: 14px; font-size: 16px; font-weight: 500; color: var(--ink); }
.page-aside { min-width: 0; }

/* ---------- sections ---------- */
.sections { padding-bottom: 24px; }
.section { padding: 52px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.section.is-first { border-top: 0; padding-top: 56px; }
.section-intro { margin-bottom: 26px; }
.section-intro h2 { font: 700 32px/1.1 var(--display); letter-spacing: -.018em; }
.section-intro p { font-size: 17px; color: var(--body); margin-top: 12px; max-width: 34ch; line-height: 1.5; }
.section-more { margin-top: 8px; }
.section-body { min-width: 0; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px 0 8px; border: 1px solid var(--line-strong); border-radius: 99px; background: color-mix(in srgb, var(--sheet) 55%, transparent); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2; max-width: 100%; padding-block: 4px; }
.chip-ic { display: grid; place-items: center; width: 16px; height: 16px; flex: none; }
.chip-ic svg { width: 16px; height: 16px; }
.stack-line { font-size: 16px; color: var(--muted); line-height: 1.65; margin-top: 14px; }
.ticks { display: grid; gap: 8px; margin-top: 14px; }
.ticks li { position: relative; padding-left: 20px; color: var(--body); line-height: 1.55; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 9px; height: 2px; border-radius: 2px; background: var(--orange); }
.prose-block { display: grid; gap: 18px; max-width: 68ch; color: var(--body); font-size: 18px; line-height: 1.65; }
.prose-block strong { color: var(--ink); font-weight: 600; }

/* project notes: one sheet, ruled disclosure rows */
.notes { padding: 0 18px; }
.note + .note { border-top: 1px solid var(--line); }
/* the flagship project sits on its own tinted card inside the notes sheet */
.note.is-featured { margin: 6px -12px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--orange) 40%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--orange) 5%, var(--sheet)); box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 20px 40px -30px rgb(var(--shadow-rgb) / var(--shadow-a)); }
.note.is-featured .note-name { font-size: 22px; }
.note-flag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px 0 9px; border-radius: 99px; background: var(--action); color: var(--action-ink); font-size: 14px; font-weight: 600; }
.note-flag .lu { width: 14px; height: 14px; fill: currentColor; }
.project-meta .note-flag { margin: 0 10px 6px 0; }
@media (min-width: 640px) { .note.is-featured { margin-inline: -18px; padding-inline: 18px; } }
.note { scroll-margin-top: calc(var(--header-h) + 20px); }
.note summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 18px 0; min-height: 72px; cursor: pointer; }
.note summary::-webkit-details-marker { display: none; }
.note-name { grid-column: 1; grid-row: 1; min-width: 0; font: 700 19px/1.25 var(--display); letter-spacing: -.015em; }
.note-badge { grid-column: 1; grid-row: 2; font-size: 16px; color: var(--muted); }
.note-chev { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background-color 180ms ease, border-color 180ms ease; }
.note-chev .lu { width: 20px; height: 20px; transition: transform 320ms var(--ease-out); }
.note[open] .note-chev .lu { transform: rotate(180deg); }
.note summary:hover .note-chev { border-color: var(--line-strong); background: var(--hover); }
.note summary:hover .note-name { color: var(--link); }
.note-body { padding: 0 0 22px; }
.note-desc { color: var(--body); line-height: 1.55; }

/* experience: flat ruled record, no surfaces */
.xp-list { display: grid; }
.xp { display: grid; gap: 4px; padding: 26px 0; border-top: 1px solid var(--line); }
.xp:first-child { border-top: 0; padding-top: 0; }
.xp-period { font-size: 16px; color: var(--muted); font-weight: 500; }
.xp-role { font: 700 20px/1.25 var(--display); letter-spacing: -.015em; }
.xp-org { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; font-size: 17px; }
.xp-project { color: var(--link); font-weight: 500; }
.xp .ticks { max-width: 70ch; }
.xp-list.is-compact .xp { padding: 20px 0; }
.xp-list.is-compact .xp:first-child { padding-top: 0; }

/* expertise: compact definition grid */
.expertise { display: grid; gap: 0 40px; }
.expertise > div { padding: 16px 0; border-top: 1px solid var(--line); }
.expertise > div:first-child { border-top: 0; padding-top: 0; }
.expertise dt { font: 700 18px/1.3 var(--display); letter-spacing: -.01em; }
.expertise dd { margin-top: 6px; color: var(--body); font-size: 16px; line-height: 1.65; }

/* about */
.about-grid { display: grid; gap: 32px; }
.profile-card { display: grid; padding: 20px 20px 8px; background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px; box-shadow: var(--sheet-lift), 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 24px 48px -30px rgb(var(--shadow-rgb) / var(--shadow-a)); }
.pc-loc dd { display: flex; align-items: center; gap: 8px; font: 700 21px/1.2 var(--display); letter-spacing: -.015em; color: var(--ink); }
.pc-loc .lu { width: 20px; height: 20px; color: var(--orange); flex: none; }
.pc-status { margin-top: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pc-status dd { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px 0 10px; border: 1px solid color-mix(in srgb, var(--tone-green) 45%, transparent); border-radius: 99px; background: color-mix(in srgb, var(--tone-green) 10%, transparent); color: var(--ink); font-size: 14px; font-weight: 500; }
.pc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-green); }
.pc-line { display: grid; gap: 6px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pc-line:last-child { border-bottom: 0; }
.pc-line dt { font-size: 13px; color: var(--muted); }
.pc-line dd { color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.4; }
.pc-line strong { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.socials-inline { gap: 4px 20px; }

/* writing */
.writing { display: grid; gap: 32px; }
.series { padding: 22px 18px 12px; }
.series + .series { margin-top: 24px; }
.series-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; font-size: 16px; color: var(--muted); font-weight: 500; }
.series-count { color: var(--ink); }
.series-fav { display: inline-flex; align-items: center; gap: 7px; color: var(--link); }
.series-fav .lu { width: 17px; height: 17px; fill: var(--orange); stroke: var(--orange); }
.series-title { font: 800 28px/1.12 var(--display); letter-spacing: -.016em; }
.series-title a { text-decoration: none; }
.series-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.series-desc { color: var(--body); margin-top: 12px; max-width: 62ch; line-height: 1.55; }
.series-list { margin-top: 18px; border-top: 1px solid var(--line); }
.series-list li + li { border-top: 1px solid var(--line); }
.series-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding: 13px 8px; margin: 0 -8px; border-radius: 6px; text-decoration: none; }
.series-list a:hover { background: var(--hover); }
.series-list a:hover .sl-title { color: var(--link); }
.sl-n { font: 700 17px/1.4 var(--display); color: var(--muted); }
.sl-title { font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.sl-date { grid-column: 2; font-size: 15px; color: var(--muted); }
.sl-latest { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 99px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--link); border: 1px solid currentColor; vertical-align: 2px; }
.series .tags { margin-top: 16px; }
.series-more { margin-top: 6px; }
.writing-side { display: grid; gap: 28px; align-content: start; }
.newsletter h3, .book h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.015em; }
.newsletter > p, .book > p { color: var(--body); margin-top: 8px; line-height: 1.55; }
.newsletter .btn { margin-top: 16px; }
.book { border-top: 1px solid var(--line); padding-top: 24px; }
.book-status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.book-status .lu { width: 18px; height: 18px; color: var(--ink); }
.book .text-link { margin-top: 6px; }
.page-intro .book-status { margin-top: 16px; font-size: 16px; color: var(--ink); }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 15px; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--sheet) 45%, transparent); }
.tags a:hover { border-color: var(--ink); background: var(--sheet); }
.tags a[aria-current], .tags a[aria-current]:hover { background: var(--resume); color: var(--resume-ink); border-color: transparent; font-weight: 500; }

/* blog tag search */
.blog-tag-browser { display: grid; gap: 14px; padding: 20px 18px; }
.page-aside .blog-tag-browser { background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px; box-shadow: var(--sheet-lift); }
.blog-tag-search { display: grid; gap: 8px; }
.blog-tag-search label { font: 700 18px/1.3 var(--display); color: var(--ink); }
.blog-tag-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.blog-tag-search input { min-height: 50px; width: 100%; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--field); color: var(--ink); font-size: 17px; }
.blog-tag-search input::placeholder { color: var(--muted); opacity: 1; }
.blog-tag-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.blog-tag-search input[aria-invalid="true"] { border-color: var(--link); }
.blog-tag-search .btn { min-height: 50px; padding-inline: 18px; }
.blog-tag-search-error { color: var(--link); font-size: 15px; font-weight: 500; }
.blog-tag-browser .tags { margin-top: 0; }

/* archive entries */
.entries { padding: 0 18px; }
.entry { padding: 22px 0; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry-meta { font-size: 15px; color: var(--muted); font-weight: 500; }
.entry-meta a { color: var(--link); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }
.entry-title { font: 700 22px/1.25 var(--display); letter-spacing: -.018em; margin-top: 8px; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.entry-desc { color: var(--body); margin-top: 8px; max-width: 66ch; line-height: 1.55; }

/* pagination */
.blog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.blog-pagination a, .blog-pagination-disabled, .blog-pagination-current { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 6px; font-weight: 500; text-decoration: none; }
.blog-pagination a { color: var(--link); border: 1px solid var(--line); }
.blog-pagination a:hover { background: var(--sheet); border-color: var(--line-strong); }
.blog-pagination-disabled { color: var(--muted); opacity: .7; }
.blog-pagination-current { background: var(--resume); color: var(--resume-ink); }
.blog-pagination-pages { display: flex; gap: 6px; align-items: center; }
.blog-pagination-gap { color: var(--muted); padding: 0 4px; }
.blog-pagination .lu { width: 18px; height: 18px; }

/* newsletter (Kit embed, themed to the board) */
.newsletter-embed { min-height: 60px; }
.kit-embed .formkit-form[data-uid] { max-width: 100% !important; background: var(--sheet) !important; border: 1px solid var(--sheet-edge) !important; border-radius: 8px !important; box-shadow: var(--sheet-lift) !important; font-family: var(--text) !important; }
.kit-embed .formkit-form[data-uid] .formkit-background { display: none !important; }
.kit-embed .formkit-form[data-uid] [data-style="minimal"] { padding: 24px 20px !important; }
.kit-embed .formkit-form[data-uid] .formkit-header, .kit-embed .formkit-form[data-uid] .formkit-header h2 { color: var(--ink) !important; font-family: var(--display) !important; font-size: 26px !important; font-weight: 700 !important; letter-spacing: -.02em !important; line-height: 1.2 !important; margin: 0 0 8px !important; text-align: left !important; }
.kit-embed .formkit-form[data-uid] .formkit-subheader, .kit-embed .formkit-form[data-uid] .formkit-subheader p { color: var(--body) !important; font-size: 17px !important; line-height: 1.55 !important; margin: 0 0 16px !important; text-align: left !important; }
.kit-embed .formkit-form[data-uid] .formkit-input { background: var(--field) !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important; border-radius: 6px !important; font-size: 17px !important; min-height: 50px !important; }
.kit-embed .formkit-form[data-uid] .formkit-input::placeholder { color: var(--muted) !important; opacity: 1 !important; }
.kit-embed .formkit-form[data-uid] .formkit-input:focus { box-shadow: none !important; outline: 3px solid var(--focus) !important; outline-offset: 1px !important; border-color: var(--line-strong) !important; }
.kit-embed .formkit-form[data-uid] .formkit-submit { background-color: var(--action) !important; color: #fff !important; border-radius: 6px !important; font-family: var(--text) !important; font-weight: 500 !important; font-size: 16px !important; min-height: 50px !important; }
.kit-embed .formkit-form[data-uid] .formkit-submit:hover > span { background-color: rgb(0 0 0 / .08) !important; }
.kit-embed .formkit-form[data-uid] .formkit-guarantee, .kit-embed .formkit-form[data-uid] .formkit-guarantee p { color: var(--muted) !important; font-size: 15px !important; text-align: left !important; }
.kit-embed .formkit-form[data-uid] .formkit-powered-by, .kit-embed .formkit-form[data-uid] .formkit-powered-by * { color: var(--muted) !important; }
/* Kit's light badge is a white logo image: give it a dark plate in both themes */
.kit-embed .formkit-form[data-uid] .formkit-powered-by-convertkit[data-variant="light"] { background-color: #193944 !important; }
:root[data-theme="dark"] .kit-embed .formkit-form[data-uid] .formkit-powered-by-convertkit[data-variant="light"] { background-color: #0e2027 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .kit-embed .formkit-form[data-uid] .formkit-powered-by-convertkit[data-variant="light"] { background-color: #0e2027 !important; } }
.kit-embed .formkit-form[data-uid] .formkit-alert-error { background: var(--hl-red) !important; color: var(--hl-red-ink) !important; border-color: transparent !important; }
.newsletter-embed-fallback { display: grid; gap: 14px; padding: 22px 20px; background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px; }
.newsletter-embed-fallback p { color: var(--body); line-height: 1.55; }
.newsletter-embed-fallback .btn { justify-self: start; }

/* AI sessions (Kit "pine" form: a header column beside the fields column, themed to the board) */
.event-facts { display: grid; max-width: 520px; margin-top: 22px; border-top: 1px solid var(--line-strong); }
.event-facts div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-strong); }
.event-facts dt { font-size: 16px; font-weight: 500; color: var(--muted); }
.event-facts dd { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink); }
/* key facts read like the page's links: rust and bold */
.fact-em { color: var(--link-hero); font-weight: 700; }
.prose-block .fact-em { color: var(--link); font-weight: 700; }
.fact-underline { text-decoration: underline; text-decoration-color: var(--ul-orange); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.event-facts div:has(.fact-line) { align-items: center; }
.host-pill.is-static { cursor: default; }
.host-pill.is-static:hover { background: color-mix(in srgb, var(--sheet) 55%, transparent); border-color: var(--line-strong); }
.host-pill .si.meet-icon { width: 17px; height: 17px; color: #00897b; }
:root[data-theme="dark"] .host-pill .meet-icon { color: #4db6ac; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .host-pill .meet-icon { color: #4db6ac; } }
/* hosts: the row spans the whole list; one pill per host (name to LinkedIn, end segment to GitHub), role and company below */
.event-facts .is-hosts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.event-facts .is-hosts dd { display: grid; gap: 10px; }
.host-names { display: grid; grid-template-columns: max-content; gap: 8px; }
.host-role { display: flex; flex-wrap: wrap; align-items: center; }
.host-split { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 99px; background: color-mix(in srgb, var(--sheet) 55%, transparent); }
.host-split a { display: inline-flex; align-items: center; min-height: 42px; color: var(--ink); text-decoration: none; transition: background-color 160ms ease; }
.host-split a:hover { background: var(--sheet); }
.host-split-main { flex: 1 1 auto; justify-content: center; gap: 7px; padding: 0 14px 0 12px; border-radius: 99px 0 0 99px; font-size: 16px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.host-split-main .si { width: 17px; height: 17px; color: var(--tone-blue); }
.host-split-icon { justify-content: center; width: 46px; border-left: 1px solid var(--line-strong); }
.host-split-icon:last-child { border-radius: 0 99px 99px 0; }
.host-split-icon:last-child .si, .host-split-icon:last-child .lu { margin-left: -2px; }
.host-split-icon .si { width: 19px; height: 19px; }
.host-split-icon .lu { width: 18px; height: 18px; }
.host-role { gap: 8px; color: var(--body); }
.host-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 9px; border: 1px solid var(--line-strong); border-radius: 99px; background: color-mix(in srgb, var(--sheet) 55%, transparent); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
.host-pill:hover { background: var(--sheet); border-color: var(--muted); }
.host-pill .si { width: 16px; height: 16px; color: var(--tone-blue); }
.host-logo { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; }
/* org pills and tech chips wrap inside narrow columns instead of overflowing */
.host-pill.org-pill { min-height: 30px; max-width: 100%; gap: 6px; padding: 4px 11px 4px 8px; font-size: 14px; white-space: normal; text-wrap: balance; }
.org-pill .host-logo { width: 17px; height: 17px; flex-basis: 17px; }
.org-pill .host-logo.is-tile { border-radius: 4px; }
.host-logo.logo-dark { display: none; }
:root[data-theme="dark"] .host-logo.logo-light { display: none; }
:root[data-theme="dark"] .host-logo.logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .host-logo.logo-light { display: none; }
  :root:not([data-theme]) .host-logo.logo-dark { display: block; }
}
/* small phones: slightly smaller pills and role text so the names, and the role with the company, each keep one line */
@media (max-width: 399px) {
  .host-pill { gap: 5px; padding: 0 8px; font-size: 15px; }
  .host-role { font-size: 15px; }
}
@media (min-width: 640px) {
  .host-pill { gap: 7px; padding: 0 13px 0 11px; }
  .host-pill .si { width: 17px; height: 17px; }
  .host-logo { width: 19px; height: 19px; flex-basis: 19px; }
}
@media (min-width: 900px) {
  .host-pill { min-height: 40px; }
  .host-split a { min-height: 38px; }
}
@media (min-width: 1200px) { .host-pill, .host-role, .host-split-main { font-size: 15px; } }
.page-sessions .page-actions .si { width: 20px; height: 20px; }
.sessions-embed { padding: 20px 18px 16px; background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px; box-shadow: var(--sheet-lift), 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 24px 48px -30px rgb(var(--shadow-rgb) / var(--shadow-a)); scroll-margin-top: calc(var(--header-h) + 16px); }
.sessions-embed:not(:has(.formkit-form)) { min-height: 620px; }
.sessions-embed-head { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.sessions-embed-head h2 { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; }
.sessions-embed-head p { margin-top: 8px; color: var(--body); font-size: 17px; line-height: 1.5; }
/* the page carries the title and dates, so Kit's header column (and its stock photo) is not shown */
/* Kit clips the form (overflow: hidden); with no inner padding that cuts focus rings at the edges */
.sessions-embed .formkit-form[data-uid] { overflow: visible !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.sessions-embed .formkit-form[data-uid] [data-style="full"] { display: block !important; }
.sessions-embed .formkit-form[data-uid] .formkit-column:first-child { display: none !important; }
.sessions-embed .formkit-form[data-uid] .formkit-column { padding: 0 !important; border: 0 !important; background: transparent !important; }
.sessions-embed .formkit-form[data-uid] .formkit-fields { display: grid; gap: 18px; }
.sessions-embed .formkit-form[data-uid] .formkit-field { margin: 0 !important; }
.sessions-embed .kit-label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.35; }
.sessions-embed .kit-note { color: var(--muted); font-weight: 400; }
.sessions-embed .kit-label .kit-note::before, .sessions-embed legend .kit-note::before { content: '· '; }
.sessions-embed .formkit-form[data-uid] [data-group="dropdown"] { position: relative; }
.sessions-embed .formkit-form[data-uid] [data-group="dropdown"]::before { display: none !important; }
.sessions-embed .formkit-form[data-uid] [data-group="dropdown"]::after { content: ''; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--muted); pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.sessions-embed .kit-label + [data-group="dropdown"]::after { margin-top: -8px; }
.sessions-embed .formkit-form[data-uid] [data-group="dropdown"] select { min-height: 50px !important; margin: 0 !important; padding: 0 44px 0 14px !important; background: var(--field) !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important; border-radius: 6px !important; font-size: 17px !important; }
.sessions-embed .formkit-form[data-uid] [data-group="dropdown"] select:focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 1px !important; }
.sessions-embed .formkit-form[data-uid] [data-group="dropdown"] option { background: var(--field); color: var(--ink); }
.sessions-embed .formkit-form[data-uid] [data-group="checkboxes"] { display: grid; column-gap: 20px; padding: 12px 16px 4px !important; border: 1px solid var(--line-strong) !important; border-radius: 6px !important; background: var(--field) !important; }
/* the legend sits in the top border, which stops just around its text */
.sessions-embed .formkit-form[data-uid] [data-group="checkboxes"] legend { float: none; width: auto; margin: 0 0 0 -6px !important; padding: 0 6px !important; color: var(--ink) !important; font-size: 16px !important; font-weight: 500 !important; }
.sessions-embed .formkit-form[data-uid] [data-group="checkboxes"] [data-group="checkbox"] { position: relative; margin: 0 !important; color: var(--ink) !important; border-top: 1px solid var(--line) !important; }
.sessions-embed .formkit-form[data-uid] [data-group="checkboxes"] legend + [data-group="checkbox"] { border-top: 0 !important; }
/* Kit hides the real checkbox with display:none; keep it focusable but invisible so the form works from the keyboard */
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] input[type="checkbox"] { display: block !important; position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] label { display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-height: 52px; padding: 14px 0 12px 34px !important; font-size: 17px !important; font-weight: 500 !important; line-height: 1.35; }
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] label .kit-note { font-size: 15px; font-weight: 400; }
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] label::before { top: 50% !important; width: 20px !important; height: 20px !important; margin-top: -10px; border: 1px solid var(--line-strong) !important; border-radius: 5px !important; background: var(--field) !important; transition: background-color 160ms ease, border-color 160ms ease; }
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] label::after { left: 6px !important; top: 50% !important; width: 9px !important; height: 5px !important; margin-top: -4px; border-color: var(--action-ink) !important; }
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] input[type="checkbox"]:checked + label::before { background: var(--action) !important; border-color: var(--action) !important; }
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] input[type="checkbox"]:focus-visible + label::before { outline: 3px solid var(--focus); outline-offset: 2px; }
.sessions-embed .formkit-form[data-uid] [data-group="checkbox"] label:hover::before { border-color: var(--muted) !important; }
.sessions-embed .formkit-form[data-uid] [data-group="checkboxes"][data-invalid] { border-color: var(--link) !important; }
.sessions-embed .kit-error { grid-column: 1 / -1; margin: 0; padding: 4px 0 12px; color: var(--link); font-size: 16px; font-weight: 500; }
.sessions-embed .kit-error[hidden] { display: none; }
.sessions-embed .formkit-form[data-uid] .formkit-submit { align-self: end; width: 100% !important; margin: 0 !important; font-size: 17px !important; min-height: 52px !important; }
.sessions-embed .formkit-form[data-uid] .formkit-guarantee { margin: 14px 0 12px !important; }
.sessions-embed .formkit-form[data-uid] .formkit-guarantee, .sessions-embed .formkit-form[data-uid] .formkit-guarantee p { font-size: 16px !important; }
/* registered (after submit or on a return visit): the note and Kit's repeated thank-you line go */
.sessions-embed[data-done] .sessions-embed-head p, .sessions-embed[data-done] .formkit-guarantee { display: none !important; }
/* Kit's return-visit text is white with mix-blend-mode: difference; it gets the success panel instead */
.sessions-embed .formkit-form[data-uid] .seva-custom-content { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 14px 16px !important; border: 1px solid color-mix(in srgb, var(--tone-green) 38%, transparent); border-radius: 6px; background: var(--hl-green); color: var(--hl-green-ink) !important; mix-blend-mode: normal !important; font-size: 17px !important; line-height: 1.5; }
/* after submit: Kit's mint alerts, recoloured to the board */
.sessions-embed .formkit-form[data-uid] .formkit-alert { margin: 0 0 16px !important; padding: 14px 16px !important; border-radius: 6px !important; font-size: 17px !important; line-height: 1.5 !important; text-align: left !important; }
.sessions-embed .formkit-form[data-uid] .formkit-alert-success:not(:empty) { display: flex; gap: 12px; align-items: flex-start; background: var(--hl-green) !important; border: 1px solid color-mix(in srgb, var(--tone-green) 38%, transparent) !important; color: var(--hl-green-ink) !important; }
.sessions-embed .formkit-form[data-uid] .formkit-alert-success::before, .sessions-embed .formkit-form[data-uid] .seva-custom-content::before { content: ''; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; background: var(--tone-green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.sessions-embed .formkit-form[data-uid] .formkit-alert-error { border: 1px solid color-mix(in srgb, var(--co-risk) 38%, transparent) !important; }
.sessions-embed .formkit-form[data-uid] .formkit-alert-error li { margin: 0 !important; }
@media (min-width: 640px) {
  .sessions-embed { padding: 28px 30px 20px; }
  .sessions-embed .formkit-form[data-uid] .formkit-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 18px; }
  .sessions-embed .formkit-form[data-uid] .formkit-field:has([data-group="checkboxes"]) { grid-column: 1 / -1; }
  .sessions-embed .formkit-form[data-uid] [data-group="checkboxes"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sessions-embed .formkit-form[data-uid] [data-group="checkboxes"] legend + [data-group="checkbox"] + [data-group="checkbox"] { border-top: 0 !important; }
}
/* this form's Kit badge is the dark logo: it needs the light plate in both themes */
.kit-embed .formkit-form[data-uid] .formkit-powered-by-convertkit[data-variant="dark"] { background-color: #e4f0f0 !important; }
/* the four sessions: one orange thread (context) runs through the numbered nodes of both parts */
.session-part + .session-part { position: relative; padding-top: 34px; }
.session-part + .session-part .session-part-title::before { content: ''; position: absolute; left: 21px; top: -34px; bottom: 0; width: 2px; background: var(--orange); opacity: .5; }
.session-part-title { position: relative; padding: 0 0 12px 60px; border-bottom: 1px solid var(--line); color: var(--body); font: 600 17px/1.3 var(--text); }
.session { --pad: 22px; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: var(--pad) 0; border-bottom: 1px solid var(--line); }
.session::before { content: ''; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--orange); opacity: .5; }
.session-part:first-child .session:first-child::before { top: calc(var(--pad) + 22px); }
.session-part:last-child .session:last-child::before { bottom: auto; height: calc(var(--pad) + 22px); }
.session .session-n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--orange); border-radius: 50%; background: var(--page); color: var(--ink); font-size: 16px; }
.session-body { min-width: 0; padding-top: 8px; }
.session-name { font: 700 clamp(21px, 5.4vw, 24px)/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); }
.session-summary { margin-top: 8px; max-width: 62ch; color: var(--body); font-size: 17px; line-height: 1.55; }
.session-thread { position: relative; margin-top: 10px; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.session-thread::before { content: ''; position: absolute; left: 2px; top: .72em; width: 9px; height: 2px; border-radius: 2px; background: var(--orange); }
.session-thread span { color: var(--ink); font-weight: 600; }
.session-format li { position: relative; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); color: var(--body); font-size: 18px; line-height: 1.55; }
.session-format li:first-child { border-top: 1px solid var(--line); }
.session-format li::before { content: ''; position: absolute; left: 2px; top: calc(16px + .78em); width: 9px; height: 2px; border-radius: 2px; background: var(--orange); }
.session-format strong { color: var(--ink); font-weight: 600; }
.session-steps { border-top: 1px solid var(--line); }
.session-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 18px; line-height: 1.5; }
.session-n { font: 700 17px/1 var(--display); color: var(--muted); }
.sessions-back { margin-top: 14px; }

/* certifications: ruled rows on the page */
.certs { border-top: 1px solid var(--line); }
.cert { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "badge main act" "badge code act"; gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
/* every badge sits on the same light plate at the same size, whatever its own shape */
.cert-badge { position: relative; grid-area: badge; width: 64px; height: 64px; display: grid; place-items: center; padding: 6px; border-radius: 12px; background: #f4f9f9; border: 1px solid var(--line); }
.cert-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cert-badge-mark { display: grid; place-items: center; width: 100%; height: 100%; color: #141413; }
.cert-badge-mark .si { width: 60%; height: 60%; }
:root[data-theme="dark"] .cert-badge { background: #e4f0f0; border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .cert-badge { background: #e4f0f0; border-color: transparent; } }
.cert-main { grid-area: main; }
.cert-code { grid-area: code; justify-self: start; font-size: 15px; font-weight: 700; color: var(--link); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cert-verify, .cert-nolink { grid-area: act; }
.cert-main h3 { font: 600 18px/1.3 var(--text); }
.cert-main p { font-size: 16px; color: var(--muted); margin-top: 6px; }
.cert-verify { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 6px; color: var(--link); font-weight: 500; text-decoration: none; border: 1px solid var(--line); }
.cert-verify:hover { background: var(--sheet); border-color: var(--line-strong); }
.cert-verify .lu { width: 18px; height: 18px; }
.cert-nolink { font-size: 15px; color: var(--muted); padding: 0 4px; }

/* teaching & education */
.teach { display: grid; gap: 28px; }
.teach-block h3 { font: 700 20px/1.25 var(--display); letter-spacing: -.015em; }
.teach-org { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink); font-weight: 500; margin-top: 8px; }
.teach-subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.teach-subjects li { padding: 6px 12px; border-radius: 6px; background: var(--tint); color: var(--ink); font-size: 16px; font-weight: 500; }
.teach-mentor { color: var(--body); margin-top: 14px; max-width: 60ch; line-height: 1.55; }
.edu { display: grid; margin-top: 10px; }
.edu li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.edu li:first-child { border-top: 0; padding-top: 4px; }
.edu-degree { font-weight: 600; color: var(--ink); line-height: 1.35; }
.edu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.section-body > .edu { margin-top: 0; }

/* book timeline */
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl-n { font: 700 17px/1 var(--display); color: var(--muted); }
.tl-step { font: 600 19px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.tl-status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.tl-status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); }
.timeline .is-active .tl-status { color: var(--link); }
.timeline .is-active .tl-status::before { background: var(--orange); border-color: var(--orange); }
.timeline .is-active .tl-n { color: var(--link); }
.timeline .is-done .tl-status { color: var(--ink); }
.timeline .is-done .tl-status::before { background: var(--ink); border-color: var(--ink); }

/* contact: one compact, content-sized strip */
.contact-strip { padding: 18px; display: grid; gap: 16px; box-shadow: var(--sheet-lift), 0 18px 40px -32px rgb(var(--shadow-rgb) / var(--shadow-a)); }
.contact-email-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; min-width: 0; color: var(--link); text-decoration: none; font: 700 clamp(16px, 4.7vw, 26px)/1.2 var(--display); letter-spacing: -.02em; }
.contact-email .lu { display: none; width: 22px; height: 22px; color: var(--ink); }
.contact-email:hover span { text-decoration: underline; text-decoration-thickness: 2px; }
.copy-btn { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); }
.copy-btn:hover { background: var(--hover); }
.copy-btn svg, .code-copy svg { position: absolute; width: 18px; height: 18px; transition: transform 240ms var(--ease-out), opacity 160ms ease; }
.copy-btn .i-check, .code-copy .i-check { opacity: 0; transform: scale(.5); }
.is-copied .i-copy { opacity: 0; transform: scale(.5); }
.is-copied .i-check { opacity: 1; transform: none; color: var(--tone-green); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.contact-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-links a:hover span:first-of-type { text-decoration: underline; }
.contact-links .si, .contact-links .lu { width: 19px; height: 19px; }
.contact-actions { display: grid; gap: 10px; }
.contact-actions .btn { min-height: 52px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 22px 12px; }
.footer-id { display: grid; gap: 2px; font-size: 15px; color: var(--body); }
.footer-name { font: 700 17px/1.3 var(--display); color: var(--ink); }
.footer-links, .footer-pages { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a, .footer-pages a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 16px; color: var(--body); text-decoration: none; }
.footer-links a:hover, .footer-pages a:hover { color: var(--link); text-decoration: underline; }
.footer-links .lu, .footer-links .si { width: 17px; height: 17px; }
.footer-pages .lu { width: 17px; height: 17px; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding-block: 0 20px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 15px; color: var(--muted); }
.footer-pages a { font-size: 15px; color: var(--muted); }

@media (max-width: 599px) {
  .footer-links, .footer-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 100%; }
  .footer-meta { gap: 4px 24px; }
}

/* ---------- tablet+ ---------- */
@media (min-width: 640px) {
  .intro { max-width: 640px; }
  .intro-actions { display: flex; flex-wrap: wrap; }
  .intro-actions .btn { padding-inline: 22px; }
  .contact-strip { padding: 24px 28px; }
  .contact-links { gap: 0 28px; }
  .contact-email .lu { display: inline-block; }
  .contact-email { font-size: clamp(20px, 1.8vw, 25px); }
  .notes, .entries { padding: 0 28px; }
  .series { padding: 26px 28px 14px; }
  .blog-tag-browser { padding: 24px 26px; }
  .expertise { grid-template-columns: 1fr 1fr; }
  .expertise > div:nth-child(2) { border-top: 0; padding-top: 0; }
  .teach { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .teach.is-single { grid-template-columns: minmax(0, 1fr); }
  .cert { grid-template-columns: 88px 96px minmax(0, 1fr) auto; grid-template-areas: "badge code main act"; column-gap: 20px; }
  .cert-badge { width: 88px; height: 88px; padding: 8px; }
  .xp { grid-template-columns: 170px minmax(0, 1fr); column-gap: 24px; row-gap: 0; }
  .xp > * { grid-column: 2; }
  .xp > .xp-period { grid-column: 1; grid-row: 1 / span 4; align-self: start; padding-top: 3px; }
  .xp-org { margin-top: 6px; }
  .series-list a { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .sl-date { grid-column: auto; }
  .contact-actions { grid-template-columns: auto auto; justify-content: start; }
  .page-title { font-size: clamp(48px, 7vw, 60px); }
  .page-title.is-archive, .page-title.is-book { font-size: clamp(38px, 5vw, 48px); }
  .page-lead { font-size: 19px; }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 48px; align-items: start; }
  .footer-meta { padding-bottom: 16px; }
}

@media (min-width: 640px) and (max-width: 1199px) {
  .greeting { font-size: clamp(52px, 6.4vw, 66px); }
  .role-line { font-size: clamp(22px, 2.6vw, 27px); }
  .statement { font-size: 19px; max-width: 42ch; }
}

/* ---------- desktop header (>= 1080: the page links fit on one line) ---------- */
@media (min-width: 1080px) {
  :root { --header-h: 76px; }
  .wordmark { font-size: 24px; }
  .menu-toggle, .nav-social, .menu-scrim { display: none; }
  .site-nav, .site-nav.is-open {
    position: static; visibility: visible; clip-path: none; transform: none; transition: none; margin: 0; max-height: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 22px; padding: 0; background: transparent; border: 0; box-shadow: none;
  }
  .nav-links { display: flex; align-items: center; gap: 22px; }
  .nav-links li + li { border: 0; }
  .nav-links a { min-height: 44px; padding: 0; font-size: 15.5px; border-radius: 0; background: none !important; position: relative; }
  .nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease-out); }
  .nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
  .nav-links a[aria-current] { color: var(--ink); }
  .nav-cta { margin: 0 0 0 4px; min-height: 46px; padding: 10px 24px; font-size: 16px; }
  .nav-cta[aria-current] { background: var(--action-hover); }
  .header-controls { margin-left: 6px; }
}

/* ---------- desktop board (>= 900) ---------- */
@media (min-width: 900px) {
  .board-select { display: none; }
  .board { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  /* tabs share the full row; each carries its project's mark */
  .board-tabs { display: flex; grid-column: 1; grid-row: 1; position: relative; gap: 4px; padding: 0 16px; height: 54px; }
  .tab {
    position: relative; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; background: none; padding: 0 6px 2px; min-width: 64px;
    font-size: 16px; font-weight: 500; color: var(--muted); white-space: nowrap;
  }
  .tab-star { display: inline-grid; place-items: center; color: var(--orange); }
  .tab-star .lu { width: 13px; height: 13px; fill: currentColor; }
  .tab-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
  .tab-ic .si, .tab-ic .lu, .tab-ic .host-logo { width: 18px; height: 18px; }
  .tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line-strong); transform: scaleX(0); transition: transform 220ms var(--ease-out); }
  .tab:hover { color: var(--ink); }
  .tab:hover::after { transform: scaleX(1); }
  .tab[aria-selected="true"] { color: var(--link); font-weight: 600; }
  .tab[aria-selected="true"]::after { transform: scaleX(0); }
  .tab:focus-visible { outline-offset: -2px; }
  .tab-indicator { position: absolute; bottom: 0; left: 0; width: 1px; height: 3px; background: var(--orange); transform-origin: left center; transform: scaleX(0); transition: transform 420ms var(--ease-out); }
  .board-panels { grid-column: 1; grid-row: 2; border-top: 1px solid var(--line); min-width: 0; display: grid; }
  .panel { grid-area: 1 / 1; display: flex; }
  .panel[hidden] { display: flex; visibility: hidden; pointer-events: none; }
  .panel-inner { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 26px 44px 22px; container-type: inline-size; }
  .project-title { font-size: clamp(60px, 5.6vw, 80px); }
  .project-title.is-long { font-size: min(80px, max(52px, 10cqi)); }
  .project-subtitle { font-size: clamp(22px, 1.8vw, 27px); margin-top: 6px; }
  .project-meta { font-size: 15px; margin-top: 8px; }
  .project-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
  .meta-where { margin-top: 0; }
  .meta-sep { display: inline; margin: 0 8px; }
  .project-summary { font-size: 18px; line-height: 1.5; margin-top: 12px; max-width: none; }
  .built-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: block; margin-top: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 700 19px/1.2 var(--display); letter-spacing: -.012em; color: var(--ink); }
  .columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 18px; }
  .col { border-top: 0; padding-right: 22px; }
  .col + .col { border-left: 1px solid var(--line); padding-left: 26px; }
  .col summary { pointer-events: none; min-height: 0; display: block; cursor: default; }
  .col-chev { display: none; }
  .col-title { font-size: 21px; }
  .col-body { padding-bottom: 4px; }
  .col-desc { font-size: 15px; line-height: 1.35; margin-top: 6px; min-height: 2.7em; }
  .tech-list { gap: 12px; margin-top: 14px; }
  .tech-name { font-size: 16px; }
  .tech-detail { font-size: 15px; }
  .board-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: auto; padding-top: 10px; align-items: center; }
  .evidence-label { grid-column: 1 / 3; font-size: 15px; }
  .details-link { order: 0; grid-column: 3; justify-self: end; min-height: 40px; font-size: 16px; }
  .evidence { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 4px; }
  .evidence li { font-size: 18px; line-height: 1.28; padding-right: 22px; }
  .evidence li:last-child { padding-right: 0; }
  .evidence li + li { border-left: 1px solid var(--line); padding-left: 26px; }
  .evidence li::before { display: none; }
}

/* ---------- wide: 1/3 intro + 2/3 board; left-title / right-content sections ---------- */
@media (min-width: 1200px) {
  .opening { padding: 12px 0 52px; }
  .opening-grid, .page-opening.has-aside .page-head { grid-template-columns: minmax(0, 31fr) minmax(0, 67fr); column-gap: 2.2%; align-items: start; }
  .intro { padding-top: 58px; max-width: none; }
  .greeting { font-size: clamp(56px, 5.2vw, 78px); }
  .role-line { font-size: clamp(22px, 2vw, 30px); margin-top: 4px; }
  .accent-bar { width: 68px; height: 6px; margin-top: 14px; }
  .statement { font-size: clamp(18px, 1.39vw, 20px); line-height: 1.45; margin-top: 18px; max-width: none; }
  .location { margin-top: 18px; }
  .intro-actions { display: flex; flex-direction: column; align-items: flex-start; margin-top: 24px; }
  .intro-actions .btn { min-width: 240px; font-size: 16px; }
  .intro-contact { display: none !important; }
  .lg-only, .lg-break { display: inline; }
  .sm-only { display: none; }
  .socials-intro { margin-top: 10px; }
  .roles { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
  .roles-label { font-size: 15px; font-weight: 500; color: var(--body); }
  .roles-list { display: grid; gap: 12px; margin-top: 12px; }
  .roles-list li { display: grid; gap: 1px; }
  .role-name { font-size: 17px; font-weight: 600; color: var(--ink); }
  .role-org { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 15px; color: var(--body); }

  .page-opening { padding: 44px 0 60px; }
  .page-opening.has-aside { padding-top: 40px; }
  .page-opening.has-aside .page-intro { padding-top: 18px; }
  .page-title { font-size: clamp(56px, 4.6vw, 72px); }
  .page-title.is-archive, .page-title.is-book { font-size: clamp(40px, 3.2vw, 50px); }
  .page-opening:not(.has-aside) .page-intro { max-width: 980px; }
  .page-opening:not(.has-aside) .page-lead { font-size: 21px; max-width: 56ch; }
  .page-intro .page-title + .accent-bar { width: 68px; height: 6px; margin-top: 16px; }

  .sections { padding-top: 24px; }
  .section { display: grid; grid-template-columns: minmax(0, 31fr) minmax(0, 67fr); column-gap: 2.2%; padding: 80px 0; }
  .section.is-first { padding-top: 72px; }
  .section.is-compact { padding: 64px 0; }
  .section-intro { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; margin: 0; padding-right: 40px; }
  .section-intro h2 { font-size: 40px; }
  .notes, .entries { padding: 0 36px; }
  .note summary { padding: 20px 0; min-height: 80px; }
  .note-name { font-size: 21px; }
  .note-body { padding-bottom: 26px; }
  .writing { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .series { padding: 30px 34px 16px; }
  .series-title { font-size: 32px; }
  .entry { padding: 26px 0; }
  .entry-title { font-size: 25px; }
  .contact-strip { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 36px; padding: 26px 32px; }
  .contact-actions { grid-template-columns: 1fr; border-left: 1px solid var(--line); padding-left: 36px; }
  .contact-actions .btn { min-width: 220px; }
  .page-aside .contact-strip { margin-top: 18px; }
  .page-aside .sessions-embed { margin-top: 18px; }
  .sessions-jump { display: none !important; }
  .session-name { font-size: 26px; }
  .session { --pad: 26px; }
  .page-aside .blog-tag-browser { margin-top: 18px; padding: 28px 32px; }
  .footer-inner { padding-block: 26px 14px; }
}

/* 1200-1399: narrower board padding leaves room for the project title */
@media (min-width: 1200px) and (max-width: 1399px) {
  .panel-inner { padding-inline: 28px; }
  .board-tabs { padding-inline: 8px; gap: 0; }
  .tab { font-size: 15px; gap: 6px; }
  .tab-ic, .tab-ic .si, .tab-ic .lu, .tab-ic .host-logo { width: 16px; height: 16px; }
}

/* short desktop viewports (e.g. 1280x800, 1366x768): tighten the sheet so its evidence row stays in the first screen */
@media (min-width: 1200px) and (max-height: 860px) {
  .opening { padding: 6px 0 36px; }
  .intro { padding-top: 34px; }
  .roles { margin-top: 16px; padding-top: 14px; }
  .roles-list { gap: 8px; }
  .board-tabs { height: 46px; }
  .panel-inner { padding: 16px 34px 16px; }
  .project-subtitle { margin-top: 4px; }
  .project-meta { margin-top: 4px; }
  .project-summary { font-size: 17px; line-height: 1.45; margin-top: 8px; }
  .built-label { margin-top: 12px; padding-bottom: 8px; font-size: 18px; }
  .columns { margin: 12px 0 12px; }
  .col-desc { min-height: 0; }
  .tech-list { gap: 8px; margin-top: 10px; }
  .tech { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .tech-icon { width: 34px; height: 34px; }
  .tech-icon .si { width: 29px; height: 29px; }
  .tech-pair .si { width: 16px; height: 16px; }
  .tech-line .lu { width: 28px; height: 28px; }
  .board-foot { padding-top: 8px; }
  .evidence li { font-size: 17px; }
}

/* ---------- article ---------- */
.page-article { font-size: 18px; }
.article-band { background: var(--hero); border-bottom: 1px solid var(--hero-edge); padding: 8px 0 32px; }
.article-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 18px; }
.theme-switch { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--sheet-edge); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-size: 15px; font-weight: 500; color: var(--body); transition: background-color 200ms ease, color 200ms ease; }
.theme-switch button .lu { width: 17px; height: 17px; }
.theme-switch button[aria-pressed="true"] { background: var(--resume); color: var(--resume-ink); }
.theme-switch button:not([aria-pressed="true"]):hover { background: var(--hover); color: var(--ink); }
.article-head { display: grid; }
.series-label { margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.series-label a { display: inline-flex; align-items: flex-start; gap: 8px; min-height: 44px; padding-top: 10px; text-decoration: none; }
.series-label .lu { width: 18px; height: 18px; margin-top: 2px; color: var(--link-hero); }
.series-label a:hover span { color: var(--link-hero); text-decoration: underline; }
.article-title { font: 800 clamp(32px, 8.9vw, 42px)/1.08 var(--display); letter-spacing: -.018em; max-width: 22ch; }
.article-desc { font-size: 18px; line-height: 1.5; color: var(--body); margin-top: 16px; max-width: 60ch; }
.article-meta { font-size: 16px; color: var(--body); margin-top: 14px; font-variant-numeric: tabular-nums; }
.article-grid { display: grid; padding-top: 0; padding-bottom: 40px; }
.series-aside { display: none; }
.article-col { min-width: 0; }
.reading-sheet {
  background: var(--sheet); border-bottom: 1px solid var(--sheet-edge);
  margin-inline: calc(var(--gutter) * -1); padding: 8px 20px 12px;
}
.series-nav { display: grid; gap: 0; margin: 28px -20px -12px; border-top: 1px solid var(--line); }
.series-nav a { display: grid; gap: 4px; align-content: start; padding: 18px 20px; text-decoration: none; min-height: 48px; }
.series-nav a + a { border-top: 1px solid var(--line); }
.series-nav a:hover { background: var(--hover); }
.series-nav a:hover .sn-title { color: var(--link); }
.sn-label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); font-weight: 500; }
.sn-label .lu { width: 16px; height: 16px; }
.sn-title { display: block; font: 700 19px/1.3 var(--display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.sn-title .lu { width: 18px; height: 18px; margin-left: 6px; vertical-align: -2px; }
.series-mobile { margin: 24px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.series-mobile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font: 700 18px/1.2 var(--display); cursor: pointer; color: var(--ink); }
.series-mobile summary::-webkit-details-marker { display: none; }
.series-mobile summary .lu { width: 22px; height: 22px; transition: transform 300ms var(--ease-out); }
.series-mobile[open] summary .lu { transform: rotate(180deg); }
.series-index-list { display: grid; padding-bottom: 12px; }
.series-index-list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 8px; margin: 0 -8px; border-radius: 6px; font-size: 16px; line-height: 1.4; color: var(--body); text-decoration: none; }
.series-index-list a:hover { background: var(--hover); color: var(--ink); }
.si-n { font: 700 16px/1.4 var(--display); color: var(--muted); }
.series-index-list a[aria-current] { color: var(--ink); font-weight: 600; background: var(--sheet); }
.series-index-list a[aria-current] .si-n { color: var(--link); }
.article-newsletter { margin-top: 36px; }
.series-mobile + .article-newsletter { margin-top: 24px; }

/* article prose */
.article-prose { font-size: 18px; line-height: 1.7; color: var(--body); }
.article-prose > * { max-width: 66ch; }
.article-prose > * + * { margin-top: 1.05em; }
.article-prose h2 { font: 700 26px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-prose > h2:first-child { margin-top: 28px; }
.article-prose h3 { font: 700 21px/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-prose h2 + *, .article-prose h3 + * { margin-top: .7em; }
.article-prose strong { color: var(--ink); font-weight: 600; }
.article-prose em { font-style: italic; }
.article-prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.article-prose a:hover { text-decoration-thickness: 2px; }
.article-prose ul { display: grid; gap: .45em; padding-left: 0; }
.article-prose ul li { position: relative; padding-left: 22px; }
.article-prose ul li::before { content: ''; position: absolute; left: 3px; top: .8em; width: 9px; height: 2px; border-radius: 2px; background: var(--orange); }
.article-prose code { font-family: var(--mono); font-size: .86em; padding: .12em .38em; border-radius: 4px; background: var(--code-bg); color: var(--code-ink); overflow-wrap: anywhere; }
.article-prose mark.article-highlight { --hl: var(--hl-yellow); --hl-ink: var(--hl-yellow-ink); background: var(--hl); color: var(--hl-ink); padding: .1em .28em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.article-prose mark.article-highlight code { background: color-mix(in srgb, var(--hl-ink) 12%, transparent); color: inherit; }
.article-prose mark.article-highlight-green { --hl: var(--hl-green); --hl-ink: var(--hl-green-ink); }
.article-prose mark.article-highlight-red { --hl: var(--hl-red); --hl-ink: var(--hl-red-ink); }
.article-prose mark.article-highlight-blue { --hl: var(--hl-blue); --hl-ink: var(--hl-blue-ink); }
.article-prose mark.article-highlight-orange { --hl: var(--hl-orange); --hl-ink: var(--hl-orange-ink); }
.article-prose mark.article-highlight-yellow { --hl: var(--hl-yellow); --hl-ink: var(--hl-yellow-ink); }
.article-prose mark.article-highlight-cyan { --hl: var(--hl-cyan); --hl-ink: var(--hl-cyan-ink); }
.article-prose mark.article-highlight-pink { --hl: var(--hl-pink); --hl-ink: var(--hl-pink-ink); }
.article-prose mark.article-highlight-violet, .article-prose mark.article-highlight-purple { --hl: var(--hl-violet); --hl-ink: var(--hl-violet-ink); }
.article-prose u { text-decoration-thickness: 2px; text-underline-offset: .28em; }
.article-prose u.article-underline { --ul: var(--ul-orange); color: var(--ink); text-decoration-color: var(--ul); }
.article-prose u.article-underline-blue { --ul: var(--ul-blue); }
.article-prose u.article-underline-green { --ul: var(--ul-green); }
.article-prose u.article-underline-orange { --ul: var(--ul-orange); }
.article-prose u.article-underline-red { --ul: var(--ul-red); }
.article-prose u.article-underline-yellow { --ul: var(--ul-yellow); }
.article-prose u.article-underline-cyan { --ul: var(--ul-cyan); }
.article-prose u.article-underline-pink { --ul: var(--ul-pink); }
.article-prose u.article-underline-violet, .article-prose u.article-underline-purple { --ul: var(--ul-violet); }
.article-prose .article-heading-letter-blue { color: var(--uline); }
.article-prose .article-separator { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; max-width: none; }

/* callouts: tinted panels, never a thick side bar */
.article-prose .article-callout { --co: var(--co-quote); --co-ink: var(--co-quote-ink); margin-inline: 0; padding: 16px 18px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--co) 38%, transparent); background: color-mix(in srgb, var(--co) 9%, var(--sheet)); color: var(--ink); }
.article-prose .article-callout p { margin: 0; }
.article-prose .article-callout strong:first-child { display: block; margin-bottom: 4px; font: 700 16px/1.3 var(--display); letter-spacing: -.005em; color: var(--co-ink); }
.article-prose .article-callout-note { --co: var(--co-note); --co-ink: var(--co-note-ink); }
.article-prose .article-callout-info { --co: var(--co-info); --co-ink: var(--co-info-ink); }
.article-prose .article-callout-risk { --co: var(--co-risk); --co-ink: var(--co-risk-ink); }
.article-prose .article-callout-success { --co: var(--co-success); --co-ink: var(--co-success-ink); }
.article-prose .article-callout-warning { --co: var(--co-warning); --co-ink: var(--co-warning-ink); }
.article-prose .article-callout-research { --co: var(--co-research); --co-ink: var(--co-research-ink); }
.article-prose .article-callout-quote strong:first-child { color: var(--ink); }

/* code */
.code-block { position: relative; max-width: 66ch; }
.article-prose .code-block { margin-top: 1.05em; }
.article-prose .article-code { position: relative; margin: 0; padding: 16px 18px; border-radius: 6px; background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--line); overflow-x: auto; max-width: 66ch; }
.article-prose .article-code[data-language]::before { content: attr(data-language); display: block; margin-bottom: 8px; font: 500 14px/1.2 var(--text); color: var(--muted); }
.article-prose .code-block .article-code { padding-right: 58px; }
.article-prose .article-code code { display: block; padding: 0; border-radius: 0; background: none; color: inherit; font: 400 15.5px/1.65 var(--mono); overflow-wrap: normal; white-space: pre; }
.code-copy { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink); }
.code-copy:hover { background: var(--hover); }

/* collapsible */
.article-prose .article-collapsible { border: 1px solid var(--line); border-radius: 8px; background: var(--figure-bg); overflow: hidden; }
.article-prose .article-collapsible summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; font: 600 17px/1.3 var(--display); color: var(--ink); cursor: pointer; }
.article-prose .article-collapsible summary::-webkit-details-marker { display: none; }
.article-prose .article-collapsible summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 240ms var(--ease-out); flex: 0 0 8px; }
.article-prose .article-collapsible[open] summary::before { transform: rotate(45deg); }
.article-prose .article-collapsible summary:hover { background: var(--hover); }
.article-prose .article-collapsible .article-code, .article-prose .article-collapsible .code-block { margin: 0 12px 12px; max-width: none; }

/* figures and images */
.article-prose figure { display: grid; gap: 10px; }
.article-prose figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--figure-bg); }
.article-prose figcaption { font-size: 15px; line-height: 1.45; color: var(--muted); text-align: center; }

/* Mermaid */
.article-prose .article-mermaid { position: relative; max-width: none; padding: 12px 8px 14px; border-radius: 8px; background: var(--figure-bg); border: 1px solid var(--line); }
.article-mermaid-zoom { display: flex; margin: 0 0 8px auto; min-height: 44px; padding: 0 14px; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--sheet); color: var(--ink); font-size: 16px; font-weight: 500; }
.article-mermaid-zoom[aria-pressed="true"] { background: var(--resume); color: var(--resume-ink); border-color: transparent; }
.article-mermaid-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.article-mermaid-canvas { display: flex; justify-content: center; min-height: 160px; transition: opacity 200ms ease; }
.article-mermaid[data-mermaid-state="loading"] .article-mermaid-canvas { opacity: .45; }
.article-mermaid-canvas svg { max-width: 100%; height: auto; }
.article-mermaid.is-zoomed .article-mermaid-canvas { display: block; width: var(--natural-w, 720px); }
.article-mermaid.is-zoomed .article-mermaid-canvas svg { max-width: none !important; width: 100%; }
.article-prose .article-mermaid-status { margin: 8px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.article-prose .article-mermaid[data-mermaid-state="ready"] .article-mermaid-status { display: none; }
.article-prose .article-mermaid[data-mermaid-state="error"] .article-mermaid-canvas { display: none; }
.article-prose .article-mermaid[data-mermaid-state="error"] .article-mermaid-status { color: var(--link); font-weight: 500; }
.article-prose .article-mermaid-source { margin-top: 10px; border-top: 1px solid var(--line); }
.article-prose .article-mermaid-source summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-size: 15px; font-weight: 500; color: var(--body); cursor: pointer; }
.article-prose .article-mermaid-source summary::-webkit-details-marker { display: none; }
.article-prose .article-mermaid-source summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 240ms var(--ease-out); }
.article-prose .article-mermaid-source[open] summary::before { transform: rotate(45deg); }
.article-prose .article-mermaid-source .article-code { margin-top: 6px; max-width: none; }

/* framework block (e.g. SCOPE) */
.article-prose .article-framework { max-width: none; padding: 24px 18px 20px; border-radius: 10px; background: var(--figure-bg); border: 1px solid var(--line); }
.article-prose .article-framework-header { display: grid; justify-items: center; text-align: center; gap: 6px; }
.article-prose .article-framework-label { font: 600 18px/1.3 var(--display); color: var(--ink); }
.article-prose .article-framework-wordmark { font: 800 clamp(48px, 13vw, 72px)/1 var(--display); letter-spacing: .08em; color: var(--ink); }
.article-prose .article-framework-summary { max-width: 46ch; color: var(--body); font-size: 17px; margin-top: 0; }
.article-prose .article-framework-items { display: grid; gap: 8px; margin-top: 20px; }
.article-prose a.article-framework-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--sheet-edge); color: inherit; text-decoration: none; transition: border-color 180ms ease, transform 200ms var(--ease-out); }
.article-prose a.article-framework-item:hover { border-color: var(--line-strong); }
.article-prose a.article-framework-item:hover .article-framework-copy strong { color: var(--link); }
.article-prose .article-framework-letter { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--resume); color: var(--resume-ink); font: 800 22px/1 var(--display); }
.article-prose .article-framework-copy { display: grid; gap: 4px; min-width: 0; }
.article-prose .article-framework-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.article-prose .article-framework-copy strong { font: 700 17px/1.3 var(--display); color: var(--ink); }
.article-prose .article-framework-responsibility { display: inline-flex; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; color: var(--body); }
.article-prose .article-framework-description { font-size: 16px; line-height: 1.45; color: var(--body); }
.article-prose .article-framework-jump { color: var(--muted); }
.article-prose .article-framework-jump svg { width: 20px; height: 20px; transition: transform 220ms var(--ease-out); }
.article-prose a.article-framework-item:hover .article-framework-jump svg { transform: translateX(3px); color: var(--link); }
.article-prose .article-framework-footer { margin-top: 18px; text-align: center; font-size: 16px; color: var(--body); }
.article-prose .article-framework-footer strong { color: var(--ink); }

@media (min-width: 640px) {
  .reading-sheet { margin-inline: 0; border: 1px solid var(--sheet-edge); border-radius: 8px; padding: 12px 40px 16px; }
  .series-nav { grid-template-columns: 1fr 1fr; margin: 32px -40px -16px; }
  .series-nav a { padding: 20px 40px; }
  .series-nav a + a { border-top: 0; border-left: 1px solid var(--line); text-align: right; justify-items: end; }
  .article-mermaid-zoom { display: none; }
  .article-prose .article-mermaid { padding: 18px 12px; }
  .article-prose .article-framework { padding: 32px 32px 26px; }
}
@media (min-width: 900px) {
  .tags a { min-height: 40px; }
  .article-band { padding: 6px 0 44px; }
  .article-title { font-size: clamp(44px, 4.4vw, 60px); }
  .article-desc { font-size: 20px; }
}
@media (min-width: 1200px) {
  .article-toolbar { display: grid; grid-template-columns: minmax(0, 31fr) minmax(0, 67fr); column-gap: 2.2%; padding-bottom: 26px; }
  .theme-switch { justify-self: end; }
  .article-head { grid-template-columns: minmax(0, 31fr) minmax(0, 67fr); column-gap: 2.2%; align-items: start; }
  .article-head > * { grid-column: 2; padding-left: 64px; }
  .article-head > .series-label { grid-column: 1; grid-row: 1 / span 4; margin: 0; padding: 12px 40px 0 0; font-size: 17px; }
  .article-head > .series-label a { padding-top: 0; }
  .article-head > .series-label .sl-sep { display: none; }
  .article-head > .series-label .sl-part { display: block; margin-top: 2px; font-weight: 400; color: var(--body); }
  .article-head > .tags { margin-top: 16px; }
  .article-head > .article-title { max-width: calc(22ch + 64px); }
  .article-head > .article-desc { max-width: calc(60ch + 64px); }
  .article-grid { grid-template-columns: minmax(0, 31fr) minmax(0, 67fr); column-gap: 2.2%; padding-bottom: 72px; }
  .series-aside { display: block; }
  .series-aside-inner { position: sticky; top: calc(var(--header-h) + 32px); padding: 40px 40px 0 0; }
  .aside-title { font: 700 21px/1.25 var(--display); letter-spacing: -.015em; }
  .aside-title a { text-decoration: none; }
  .aside-title a:hover { text-decoration: underline; }
  .aside-status { font-size: 15px; color: var(--muted); margin: 6px 0 14px; }
  .series-aside .series-index-list { border-top: 1px solid var(--line); padding-top: 8px; }
  .series-mobile { display: none; }
  .reading-sheet { max-width: calc(66ch + 128px); margin-top: -24px; padding: 20px 64px 20px; box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 30px 60px -40px rgb(var(--shadow-rgb) / var(--shadow-a)); }
  .article-prose h2 { font-size: 30px; }
  .article-prose .article-mermaid, .article-prose .article-framework { margin-inline: -36px; }
  .series-nav { margin: 40px -64px -20px; }
  .series-nav a { padding: 22px 64px; }
  .article-newsletter { max-width: calc(66ch + 128px); }
}

/* ---------- expertise: delivery flow ---------- */
.flow-sheet {
  padding: 20px 16px 16px; background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 8px;
  box-shadow: var(--sheet-lift), 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 24px 48px -30px rgb(var(--shadow-rgb) / var(--shadow-a));
}
.flow-sheet h2 { font: 700 21px/1.25 var(--display); letter-spacing: -.015em; }
.flow-sheet > p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.flow-wrap { position: relative; margin-top: 16px; }
.flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.flow-wires { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linejoin: round; }
.wire-trail { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.packet { fill: var(--orange); opacity: 0; }
.flow-node {
  display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; align-items: center;
  min-height: 66px; padding: 8px; border-radius: 6px; color: var(--ink); text-decoration: none;
  transition: background-color 180ms ease;
}
.flow-node:hover { background: var(--hover); }
.flow-glyph {
  position: relative; z-index: 2; width: 50px; height: 50px; grid-row: span 2; display: grid; place-items: center;
  border-radius: 50%; background: var(--sheet); border: 1px solid var(--line-strong); color: var(--muted);
  transition: color 320ms ease, border-color 320ms ease;
}
.flow-node:hover .flow-glyph { background: var(--hover); }
.flow-glyph .lx { width: 26px; height: 26px; }
.flow-glyph::after {
  content: ''; position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 2.5px var(--sheet); transform: scale(0); transition: transform 360ms var(--ease-out);
}
.flow-text { min-width: 0; }
.flow-verb { display: block; font: 700 19px/1.2 var(--display); letter-spacing: -.012em; }
.flow-area { display: block; margin-top: 2px; color: var(--muted); font-size: 16px; line-height: 1.35; }
.flow-icons { grid-column: 2; display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.flow-icons .tool-ic { width: 18px; height: 18px; }
.flow-step.is-lit .flow-glyph { color: var(--ink); border-color: var(--ink); }
.flow-step.is-lit .flow-glyph::after { transform: scale(1); }
@media (min-width: 640px) {
  .flow-sheet { padding: 26px 26px 22px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; row-gap: 22px; }
  .flow-step { grid-column: var(--col); grid-row: var(--row); }
  .flow-node { grid-template-columns: minmax(0, 1fr); row-gap: 10px; align-items: start; padding: 10px; }
  .flow-glyph { grid-row: auto; }
  .flow-icons { grid-column: 1; margin-top: 0; }
  .flow-area { font-size: 15px; }
}

/* ---------- expertise: capability sheet ---------- */
.caps {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--sheet-edge); border-radius: 8px; overflow: hidden; box-shadow: var(--sheet-lift);
}
.cap {
  display: flex; flex-direction: column; gap: 18px; padding: 22px 18px 20px; background: var(--sheet);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.cap:target .cap-glyph { border-color: var(--orange); }
.cap-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cap-glyph {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: border-color 240ms ease;
}
.cap-glyph .lx { width: 24px; height: 24px; }
.cap-head h3 { min-width: 0; font: 700 21px/1.2 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.cap-step {
  margin-left: auto; flex: none; padding: 3px 11px; border: 1px solid var(--muted); border-radius: 99px;
  color: var(--muted); font: 500 16px/1.3 var(--text);
}
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  --tool-bg: var(--sheet);
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px 0 11px;
  border: 1px solid var(--line-strong); border-radius: 99px; background: var(--tool-bg);
  color: var(--ink); font: 400 16px/1.25 var(--text); text-align: left; cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.tool:hover { --tool-bg: var(--hover); border-color: var(--ink); }
.tool:active { transform: scale(.97); }
.tool[aria-pressed="true"] { --tool-bg: var(--resume); border-color: transparent; color: var(--resume-ink); font-weight: 500; }
.tool[aria-pressed="true"] .tool-ic { color: currentColor; }
.tool-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.tool-ic svg { width: 100%; height: 100%; overflow: visible; }
.cap-used {
  margin-top: auto; min-height: calc(2 * 1.55em + 15px); padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 16px; line-height: 1.55;
}
.cap-used strong { color: var(--ink); font-weight: 500; }
.cap-used a { color: var(--link); font-weight: 500; text-underline-offset: 3px; }
@media (min-width: 640px) { .cap { padding: 28px 28px 24px; } }
@media (min-width: 900px) {
  .caps { grid-template-columns: 1fr 1fr; }
  .tool { font-size: 15.5px; }
  .cap-step { font-size: 15px; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .tool { min-height: 40px; } }

/* Line icon parts; hover actions below move them. */
.lx .d { stroke-dasharray: 1; stroke-dashoffset: 0; }
.lx .run { stroke-width: 3.4; stroke-dasharray: .001 1; opacity: 0; }
.lx .mag-lens { fill: var(--tool-bg, var(--sheet)); }
.lx .box, .lx .ctx, .lx .a1, .lx .a2, .lx .belt, .lx .br, .lx .spark, .lx .mag, .lx .dot, .lx .st { transform-box: fill-box; transform-origin: center; }
.lx .needle { transform-box: view-box; transform-origin: 12px 17.5px; }
.lx .key { transform-box: view-box; transform-origin: 7.5px 16px; }

@media (prefers-reduced-motion: no-preference) {
  /* Delivery flow: the packet lights each step as it arrives. */
  .flow-step.is-hit .flow-glyph { animation: flow-hit 620ms var(--ease-out); }
  .flow-step.is-hit .flow-glyph .d, .flow-node:hover .flow-glyph .d { animation: draw 700ms var(--ease-out) both; }

  /* Entrance: icons are printed onto the sheet, left to right. */
  .cap.is-armed .tool-ic, .cap.is-armed .cap-glyph .lx { clip-path: inset(0 100% 0 0); }
  .cap.is-printing .tool-ic { animation: print 520ms var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 32ms); }
  .cap.is-printing .cap-glyph .lx { animation: print 560ms var(--ease-out) both; }
  .cap.is-printing .cap-glyph .d, .cap:hover .cap-glyph .d { animation: draw 760ms var(--ease-out) 120ms both; }
  .cap-used.is-swap { animation: used-in 340ms var(--ease-out); }

  /* Each tool does its own job on hover or focus. */
  .tool:is(:hover, :focus-visible) .si { animation: stamp 460ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="kubernetes"] .si { animation: helm 820ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="docker"] .si { animation: float 900ms ease-in-out; }
  .tool:is(:hover, :focus-visible) [data-verb="claude"] .si { animation: spark 900ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="springboot"] .si { animation: power 620ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="githubactions"] .si { animation: slide-r 520ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="terraform"] .si { animation: stack 560ms var(--ease-out); }

  .tool:is(:hover, :focus-visible) :is([data-verb="microservices"], [data-verb="gateway"], [data-verb="appservice"], [data-verb="eventhub"], [data-verb="spec"]) .d { animation: draw 480ms var(--ease-out) both; }
  .tool:is(:hover, :focus-visible) .lx .d2 { animation-delay: 110ms; }
  .tool:is(:hover, :focus-visible) .lx .d3 { animation-delay: 220ms; }
  .tool:is(:hover, :focus-visible) [data-verb="eventhub"] .spoke { animation-delay: calc(var(--s) * 60ms); }
  .tool:is(:hover, :focus-visible) [data-verb="microservices"] .b3 { animation: pop 420ms var(--ease-out) 260ms; }
  .tool:is(:hover, :focus-visible) :is([data-verb="events"], [data-verb="websocket"]) .run { animation: run 760ms cubic-bezier(.45, 0, .25, 1) both; }
  .tool:is(:hover, :focus-visible) :is([data-verb="events"], [data-verb="websocket"]) .r2 { animation-delay: 180ms; }
  .tool:is(:hover, :focus-visible) [data-verb="cosmos"] .orbit { animation: run 1100ms cubic-bezier(.45, 0, .25, 1) both; }
  .tool:is(:hover, :focus-visible) [data-verb="rest"] .a1 { animation: slide-r 520ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="rest"] .a2 { animation: slide-l 520ms var(--ease-out) 140ms; }
  .tool:is(:hover, :focus-visible) [data-verb="ddd"] .l, .tool:is(:hover, :focus-visible) [data-verb="agent"] .l { animation: slide-l 600ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="ddd"] .r, .tool:is(:hover, :focus-visible) [data-verb="agent"] .r { animation: slide-r 600ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="ddd"] .rel { animation: dash-flow 620ms linear; }
  .tool:is(:hover, :focus-visible) [data-verb="servicebus"] .belt { animation: belt 700ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="keyvault"] .key { animation: turn 640ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="gauge"] .needle { animation: needle 1000ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="agent"] .spark { animation: spark 700ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="rag"] .mag { animation: mag-scan 900ms var(--ease-out); }
  .tool:is(:hover, :focus-visible) [data-verb="llm"] .dot { animation: type 720ms ease-in-out; }
  .tool:is(:hover, :focus-visible) [data-verb="llm"] .d2 { animation-delay: 110ms; }
  .tool:is(:hover, :focus-visible) [data-verb="llm"] .d3 { animation-delay: 220ms; }
  :is(.flow-node:hover, .flow-step.is-hit, .cap:hover, .cap.is-printing) .lx .st { animation: stage 900ms ease both; }
  :is(.flow-node:hover, .flow-step.is-hit, .cap:hover, .cap.is-printing) .lx .s2 { animation-delay: 160ms; }
  :is(.flow-node:hover, .flow-step.is-hit, .cap:hover, .cap.is-printing) .lx .s3 { animation-delay: 320ms; }
}
@keyframes flow-hit { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 45%, transparent); } to { box-shadow: 0 0 0 12px transparent; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes run { 0% { stroke-dashoffset: 0; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes print { from { clip-path: inset(0 100% 0 0); transform: translateX(-3px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes used-in { from { clip-path: inset(0 100% 0 0); opacity: .35; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes stamp { 35% { transform: translateY(-2.5px) scale(1.1); } }
@keyframes helm { to { transform: rotate(51.43deg); } }
@keyframes float { 25% { transform: translateY(-2.5px) rotate(-3deg); } 60% { transform: translateY(1px) rotate(2deg); } }
@keyframes spark { from { transform: rotate(0) scale(.9); } to { transform: rotate(180deg) scale(1); } }
@keyframes power { 30% { transform: scale(.82); } 70% { transform: scale(1.12); } }
@keyframes stack { 40% { transform: translateY(-3px) skewY(-6deg); } }
@keyframes pop { 45% { transform: scale(1.16); } }
@keyframes slide-r { 40% { transform: translateX(2.5px); } }
@keyframes slide-l { 40% { transform: translateX(-2.5px); } }
@keyframes dash-flow { to { stroke-dashoffset: -6.8; } }
@keyframes belt { 45% { transform: translateX(6px); opacity: .2; } 46% { transform: translateX(-6px); opacity: .2; } }
@keyframes turn { 45% { transform: rotate(-24deg); } }
@keyframes needle { 0% { transform: rotate(-96deg); } 55% { transform: rotate(26deg); } 75% { transform: rotate(10deg); } }
@keyframes mag-scan { 0% { transform: translate(-5px, -8px); } 45% { transform: translate(-5px, -4.5px); } }
@keyframes type { 35% { transform: translateY(-2px); } }
@keyframes stage { 40%, 70% { fill: currentColor; } }

/* ---------- certifications: credential deck ---------- */
.deck-sheet { --plate: #f4f9f9; container-type: inline-size; }
:root[data-theme="dark"] .deck-sheet { --plate: #e4f0f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .deck-sheet { --plate: #e4f0f0; } }
.deck-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.deck-card { position: relative; }
.deck-card a {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 12px 8px 10px; overflow: hidden;
  background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 10px; text-decoration: none; color: var(--link);
  box-shadow: var(--sheet-lift), 0 1px 2px rgb(var(--shadow-rgb) / .06), 0 14px 26px -20px rgb(var(--shadow-rgb) / var(--shadow-a));
  transition: transform 420ms var(--ease-out), box-shadow 320ms ease, border-color 200ms ease;
}
.deck-card a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.deck-plate { display: grid; place-items: center; width: 72px; aspect-ratio: 1; padding: 6px; border-radius: 12px; background: var(--plate); }
.deck-plate img { width: 100%; height: 100%; object-fit: contain; display: block; }
.deck-plate .cert-badge-mark { color: #141413; }
.deck-code { font: 700 16px/1.2 var(--text); letter-spacing: .01em; }
/* A light sweep across the card, like tilting a printed credential. */
.deck-card a::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgb(255 255 255 / .55) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; opacity: 0;
}
:root[data-theme="dark"] .deck-card a::after { background-image: linear-gradient(112deg, transparent 38%, rgb(255 255 255 / .16) 50%, transparent 62%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .deck-card a::after { background-image: linear-gradient(112deg, transparent 38%, rgb(255 255 255 / .16) 50%, transparent 62%); } }
.deck-caption { margin-top: 14px; min-height: 1.5em; color: var(--body); font-size: 16px; line-height: 1.5; text-align: center; }

/* The fan needs room: below 720px of sheet width the deck stays a grid. */
@container (min-width: 720px) {
  .deck { position: relative; height: 256px; }
  .deck-cards { display: block; height: 100%; }
  .deck-card {
    --step: clamp(96px, calc((100cqw - 150px) / 5.6), 116px);
    position: absolute; left: 50%; bottom: 44px; width: 138px;
    transform: translateX(calc(-50% + var(--k) * var(--step))) translateY(calc(var(--k) * var(--k) * 5px)) rotate(calc(var(--k) * 5.6deg));
    transform-origin: 50% 120%;
    z-index: calc(var(--n) + 1);
  }
  .deck-card a { padding: 16px 10px 14px; gap: 12px; }
  .deck-plate { width: 100px; }
  .deck-code { font-size: 15px; }
  /* The card slots stay put so the pointer never loses them; only the card faces move. */
  .deck:has(.deck-card:is(:hover, :focus-within)) .deck-card a { transform: translateX(calc(var(--k) * var(--step) * .08)); }
  .deck .deck-card:is(:hover, :focus-within) { z-index: 20; }
  .deck:has(.deck-card:is(:hover, :focus-within)) .deck-card:is(:hover, :focus-within) a {
    transform: translateY(-18px) rotate(calc(var(--k) * -4.2deg));
    border-color: var(--line-strong);
    box-shadow: var(--sheet-lift), 0 2px 4px rgb(var(--shadow-rgb) / .06), 0 26px 40px -22px rgb(var(--shadow-rgb) / calc(var(--shadow-a) * 1.6));
  }
  .deck-caption { margin-top: 0; }
}

/* ---------- certifications: verification scan ---------- */
.cert { scroll-margin-top: calc(var(--header-h) + 24px); transition: background-color 400ms ease; }
.cert-badge::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0 42%, color-mix(in srgb, var(--orange) 30%, transparent) 48%, var(--orange) 50%, color-mix(in srgb, var(--orange) 30%, transparent) 52%, transparent 58% 100%);
  background-size: 100% 240%; background-position: 0 100%;
}
.cert-seal {
  position: absolute; right: -7px; top: -7px; width: 24px; height: 24px; opacity: 0; transform: scale(.6);
  fill: var(--resume); stroke: none;
  transition: opacity 200ms ease, transform 320ms var(--ease-out);
}
.cert-seal circle { stroke: var(--page); stroke-width: 2.5; }
.cert-seal path { fill: none; stroke: var(--resume-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cert:has(.cert-verify:is(:hover, :focus-visible)) .cert-seal, .cert.is-arrived .cert-seal { opacity: 1; transform: none; }
.cert:has(.cert-verify:is(:hover, :focus-visible)) .cert-seal path, .cert.is-arrived .cert-seal path { stroke-dashoffset: 0; transition: stroke-dashoffset 360ms var(--ease-out) 380ms; }
.cert.is-arrived { background: color-mix(in srgb, var(--sheet) 70%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .deck.is-dealing .deck-card { animation: deal-grid 760ms var(--ease-out) both; animation-delay: calc(180ms + var(--n) * 85ms); }
  .deck.is-dealing .deck-card a { pointer-events: none; }
  .deck-card:is(:hover, :focus-within) a::after { animation: sheen 900ms var(--ease-out); }
  .deck-caption.is-swap { animation: used-in 320ms var(--ease-out); }
  .cert:has(.cert-verify:is(:hover, :focus-visible)) .cert-badge::before, .cert.is-arrived:has(.cert-verify) .cert-badge::before { animation: verify-scan 760ms cubic-bezier(.45, 0, .25, 1); }
  @container (min-width: 720px) {
    .deck.is-dealing .deck-card { animation-name: deal-fan; }
  }
}
@keyframes deal-grid { from { transform: translateY(24px) scale(.94); opacity: 0; } 30% { opacity: 1; } }
@keyframes deal-fan { from { transform: translateX(-50%) translateY(70px) rotate(0) scale(.94); opacity: 0; } 30% { opacity: 1; } }
@keyframes sheen { from { opacity: 1; background-position: 130% 0; } to { opacity: 1; background-position: -30% 0; } }
@keyframes verify-scan { 0% { opacity: 1; background-position: 0 100%; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .text-link, .details-link, .cert-verify, .socials a, .contact-links a, .tags a { transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); }
  .btn:active, .copy-btn:active, .code-copy:active { transform: scale(.97); }
  .btn .lu, .text-link .lu, .details-link .lu, .cert-verify .lu, .to-top .lu, .back-link .lu, .sn-label .lu, .sn-title .lu { transition: transform 260ms var(--ease-out); }
  .btn-primary:hover .lu { transform: translateX(3px); }
  .btn-resume:hover .lu { transform: translateY(2px); }
  .text-link:hover .lu, .details-link:hover .lu, .series-nav a:hover .sn-title .lu { transform: translateX(4px); }
  .back-link:hover .lu, .series-nav a:hover .sn-label .lu:first-child { transform: translateX(-3px); }
  .cert-verify:hover .lu { transform: translate(2px, -2px); }
  .to-top:hover .lu { transform: translateY(-3px); }
  .board { transition: transform 240ms ease-out, box-shadow 320ms ease-out; }
  .note::details-content, .col::details-content, .series-mobile::details-content, .article-collapsible::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete;
  }
  .note[open]::details-content, .col[open]::details-content, .series-mobile[open]::details-content, .article-collapsible[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .col::details-content { block-size: auto; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .board { transform: none !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
::view-transition-old(root) { z-index: 0; }

/* ---------- phone floor: secondary text never under 16px ---------- */
@media (max-width: 639px) {
  .sl-date, .book-status, .cert-code, .cert-nolink, .date-tag, .note-flag, .pc-line dt, .pc-status dd, .tech-chip, .host-pill.org-pill, .footer-id, .footer-meta, .footer-pages a,
  .theme-switch button, .tags a, .sn-label, .article-mermaid-zoom, .entry-meta, .blog-tag-search-error,
  .article-prose figcaption, .article-prose .article-mermaid-status, .article-prose .article-mermaid-source summary,
  .article-prose .article-code code { font-size: 16px; }
  .article-prose code { font-size: .9em; }
  .article-prose { font-size: 18px; }
}
