:root {
  --bg: #14161a;
  --bg-panel: #1c1f24;
  --bg-panel-2: #23262c;
  --border: #33363c;
  --text: #eceae6;
  --text-dim: #a3a099;
  --accent: #e0a458;
  --accent-2: #f0c48a;
  --accent-ink: #201503;
  --radius: 10px;
  --max: 1280px;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf8f5;
    --bg-panel: #ffffff;
    --bg-panel-2: #f3efe8;
    --border: #e3ddd2;
    --text: #1c1a17;
    --text-dim: #6b665d;
    --accent: #b5762e;
    --accent-2: #8f5a1e;
    --accent-ink: #ffffff;
  }
}
:root[data-theme="light"] {
  --bg: #faf8f5;
  --bg-panel: #ffffff;
  --bg-panel-2: #f3efe8;
  --border: #e3ddd2;
  --text: #1c1a17;
  --text-dim: #6b665d;
  --accent: #b5762e;
  --accent-2: #8f5a1e;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav .name { font-weight: 700; letter-spacing: .2px; text-decoration: none; color: var(--text); }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: .95rem; transition: color .15s ease; }
.nav a:hover, .nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  padding: 84px 0 56px;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.avatar {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; display: block; margin-bottom: 24px;
  border: 3px solid var(--accent);
}
@media (max-width: 480px) {
  .avatar { width: 140px; height: 140px; }
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.hero .role {
  color: var(--accent); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.hero p.lede { color: var(--text-dim); max-width: 62ch; margin-top: 16px; font-size: 1.05rem; }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px; max-width: 560px; margin-top: 40px;
}
.hero-stats .stat { border-left: 2px solid var(--accent); padding-left: 12px; }
.hero-stats .stat .num { font-size: 1.6rem; font-weight: 700; display: block; }
.hero-stats .stat .lbl { color: var(--text-dim); font-size: .8rem; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-size: .95rem; font-weight: 600; border: 1px solid var(--border);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transition: transform .15s ease, box-shadow .15s ease; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { color: var(--text); transition: border-color .15s ease, color .15s ease; }
.btn.ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

section { padding: 52px 0; border-top: 1px solid var(--border); }
section h2 { font-size: 1.5rem; margin: 0 0 22px; }
section h2 .idx { color: var(--text-dim); font-weight: 400; margin-right: 8px; }

.about-text { color: var(--text-dim); max-width: 68ch; font-size: 1rem; margin: 0 0 16px; }
.about-text:last-child { margin-bottom: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.skill-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; transition: border-color .15s ease, transform .15s ease;
}
.skill-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.skill-card h3 { margin: 0 0 8px; font-size: .95rem; color: var(--accent-2); }
.skill-card p { margin: 0; color: var(--text-dim); font-size: .9rem; }

.job { position: relative; padding: 0 0 30px 26px; border-left: 2px solid var(--border); margin-left: 6px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
}
.job h3 { margin: 0; font-size: 1.05rem; }
.job .meta { color: var(--text-dim); font-size: .88rem; margin: 4px 0 10px; }
.job ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: .93rem; }
.job li { margin-bottom: 6px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cert-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.cert-card h3 { margin: 0 0 4px; font-size: .95rem; }
.cert-card p { margin: 0; color: var(--text-dim); font-size: .85rem; }
.badge {
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge.current { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.badge.lapsed { background: color-mix(in srgb, var(--text-dim) 22%, transparent); color: var(--text-dim); }
.badge.progress { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: var(--accent-2); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.project-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.project-card h3 { margin: 0; font-size: 1.02rem; }
.project-card p { margin: 0; color: var(--text-dim); font-size: .9rem; flex-grow: 1; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .72rem; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.project-card a { color: var(--accent-2); font-size: .88rem; text-decoration: none; font-weight: 600; }

.edu-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.edu-card h3 { margin: 0 0 4px; }
.edu-card p { margin: 2px 0; color: var(--text-dim); font-size: .92rem; }

footer { padding: 40px 0 60px; text-align: center; color: var(--text-dim); font-size: .85rem; }
footer .links { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav ul.is-open { max-height: 420px; }
  .nav ul li { width: 100%; }
  .nav ul a {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-size: .95rem;
  }
}

/* Case study page */
.case-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
}
.case-hero { padding: 64px 0 36px; }
.case-hero .back { color: var(--accent-2); text-decoration: none; font-size: .9rem; }
.case-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; margin: 20px 0 0; }
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px; margin: 32px 0 0;
}
.case-meta .m { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.case-meta .m .k { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.case-meta .m .v { font-size: .92rem; margin-top: 5px; line-height: 1.4; }
.case-body { padding-bottom: 72px; }
.case-body h2 {
  font-size: 1.15rem; margin: 44px 0 14px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.case-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.case-body p { color: var(--text-dim); line-height: 1.7; margin: 0 0 16px; }
.case-body ul { color: var(--text-dim); line-height: 1.7; padding-left: 22px; margin: 0 0 16px; }
.case-body li { margin-bottom: 10px; }
.case-body strong { color: var(--text); }
.callout {
  background: var(--bg-panel); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; font-size: .92rem; line-height: 1.6; color: var(--text-dim);
}
.note { font-size: .8rem; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 20px; margin-top: 48px; }
@media (max-width: 480px) {
  .case-wrap { padding: 0 20px; }
}

/* Decorative gutter pattern — fills dead space on very wide screens only,
   never appears when the viewport is narrower than content + gutters. */
body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(160px, max(0px, calc((100vw - var(--max)) / 2 - 24px)));
  pointer-events: none;
  z-index: 0;
  opacity: .6;
  background-size: 100% 900px;
  background-position: center top;
  background-repeat: repeat-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}
body::before {
  left: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='900'><g fill='none' stroke='%23e0a458' stroke-width='1'><line x1='46.9' y1='108.8' x2='93.4' y2='145.9' stroke-opacity='0.29'/><line x1='3.1' y1='812.9' x2='52.6' y2='864.1' stroke-opacity='0.25'/><line x1='51.8' y1='535.3' x2='82.3' y2='574.1' stroke-opacity='0.33'/><line x1='51.0' y1='519.8' x2='51.8' y2='535.3' stroke-opacity='0.45'/><line x1='5.9' y1='894.0' x2='52.6' y2='864.1' stroke-opacity='0.31'/><line x1='22.5' y1='64.3' x2='75.3' y2='59.2' stroke-opacity='0.31'/><line x1='43.6' y1='321.8' x2='92.0' y2='360.9' stroke-opacity='0.28'/><line x1='82.3' y1='574.1' x2='66.4' y2='667.5' stroke-opacity='0.17'/><line x1='67.7' y1='722.1' x2='56.6' y2='775.5' stroke-opacity='0.31'/><line x1='55.3' y1='437.6' x2='51.0' y2='519.8' stroke-opacity='0.21'/><line x1='26.3' y1='384.9' x2='94.9' y2='382.7' stroke-opacity='0.26'/><line x1='12.5' y1='463.9' x2='51.0' y2='519.8' stroke-opacity='0.26'/><line x1='32.1' y1='271.2' x2='43.6' y2='321.8' stroke-opacity='0.32'/><line x1='95.1' y1='496.8' x2='82.3' y2='574.1' stroke-opacity='0.23'/><line x1='14.0' y1='304.0' x2='26.3' y2='384.9' stroke-opacity='0.21'/><line x1='66.4' y1='667.5' x2='67.7' y2='722.1' stroke-opacity='0.31'/><line x1='93.4' y1='145.9' x2='76.3' y2='188.5' stroke-opacity='0.34'/><line x1='76.3' y1='188.5' x2='32.1' y2='271.2' stroke-opacity='0.17'/><line x1='56.6' y1='775.5' x2='86.5' y2='868.6' stroke-opacity='0.16'/><line x1='3.1' y1='812.9' x2='5.9' y2='894.0' stroke-opacity='0.22'/><line x1='52.6' y1='864.1' x2='86.5' y2='868.6' stroke-opacity='0.38'/><line x1='51.0' y1='519.8' x2='95.1' y2='496.8' stroke-opacity='0.33'/><line x1='22.5' y1='64.3' x2='45.9' y2='24.0' stroke-opacity='0.34'/><line x1='75.3' y1='59.2' x2='93.4' y2='145.9' stroke-opacity='0.19'/><line x1='45.9' y1='24.0' x2='75.3' y2='59.2' stroke-opacity='0.34'/><line x1='92.0' y1='360.9' x2='26.3' y2='384.9' stroke-opacity='0.26'/><line x1='26.3' y1='384.9' x2='55.3' y2='437.6' stroke-opacity='0.29'/><line x1='55.3' y1='437.6' x2='12.5' y2='463.9' stroke-opacity='0.32'/><line x1='12.5' y1='463.9' x2='51.8' y2='535.3' stroke-opacity='0.21'/><line x1='32.1' y1='271.2' x2='14.0' y2='304.0' stroke-opacity='0.37'/><line x1='95.1' y1='496.8' x2='51.8' y2='535.3' stroke-opacity='0.30'/><line x1='56.6' y1='775.5' x2='52.6' y2='864.1' stroke-opacity='0.19'/><line x1='3.1' y1='812.9' x2='56.6' y2='775.5' stroke-opacity='0.27'/><line x1='46.9' y1='108.8' x2='76.3' y2='188.5' stroke-opacity='0.20'/><line x1='5.9' y1='894.0' x2='86.5' y2='868.6' stroke-opacity='0.20'/><line x1='22.5' y1='64.3' x2='46.9' y2='108.8' stroke-opacity='0.32'/><line x1='43.6' y1='321.8' x2='26.3' y2='384.9' stroke-opacity='0.27'/><line x1='26.3' y1='384.9' x2='12.5' y2='463.9' stroke-opacity='0.22'/><line x1='75.3' y1='59.2' x2='46.9' y2='108.8' stroke-opacity='0.30'/><line x1='92.0' y1='360.9' x2='94.9' y2='382.7' stroke-opacity='0.42'/><line x1='55.3' y1='437.6' x2='94.9' y2='382.7' stroke-opacity='0.26'/><line x1='55.3' y1='437.6' x2='95.1' y2='496.8' stroke-opacity='0.25'/><line x1='14.0' y1='304.0' x2='43.6' y2='321.8' stroke-opacity='0.38'/></g><g fill='%23e0a458'><circle cx='22.5' cy='64.3' r='1.5'/><circle cx='45.9' cy='24.0' r='2.0'/><circle cx='75.3' cy='59.2' r='1.7'/><circle cx='46.9' cy='108.8' r='2.0'/><circle cx='93.4' cy='145.9' r='2.1'/><circle cx='76.3' cy='188.5' r='1.3'/><circle cx='32.1' cy='271.2' r='1.2'/><circle cx='14.0' cy='304.0' r='2.4'/><circle cx='43.6' cy='321.8' r='1.6'/><circle cx='92.0' cy='360.9' r='1.5'/><circle cx='26.3' cy='384.9' r='2.6'/><circle cx='55.3' cy='437.6' r='1.9'/><circle cx='94.9' cy='382.7' r='2.4'/><circle cx='12.5' cy='463.9' r='1.9'/><circle cx='51.0' cy='519.8' r='2.1'/><circle cx='95.1' cy='496.8' r='1.4'/><circle cx='51.8' cy='535.3' r='2.1'/><circle cx='82.3' cy='574.1' r='2.4'/><circle cx='66.4' cy='667.5' r='1.9'/><circle cx='67.7' cy='722.1' r='2.2'/><circle cx='3.1' cy='812.9' r='2.1'/><circle cx='56.6' cy='775.5' r='1.3'/><circle cx='5.9' cy='894.0' r='2.3'/><circle cx='52.6' cy='864.1' r='2.0'/><circle cx='86.5' cy='868.6' r='1.6'/></g></svg>");
}
body::after {
  right: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='900'><g fill='none' stroke='%23e0a458' stroke-width='1'><line x1='10.7' y1='570.8' x2='56.7' y2='630.6' stroke-opacity='0.24'/><line x1='55.5' y1='779.3' x2='84.4' y2='862.3' stroke-opacity='0.19'/><line x1='86.7' y1='141.9' x2='27.4' y2='156.5' stroke-opacity='0.29'/><line x1='83.6' y1='565.5' x2='56.7' y2='630.6' stroke-opacity='0.25'/><line x1='46.9' y1='834.5' x2='84.4' y2='862.3' stroke-opacity='0.34'/><line x1='56.7' y1='630.6' x2='102.7' y2='709.3' stroke-opacity='0.18'/><line x1='10.7' y1='570.8' x2='46.9' y2='555.6' stroke-opacity='0.36'/><line x1='57.4' y1='427.2' x2='100.6' y2='429.5' stroke-opacity='0.35'/><line x1='17.0' y1='697.0' x2='47.2' y2='740.4' stroke-opacity='0.31'/><line x1='3.1' y1='486.5' x2='10.7' y2='570.8' stroke-opacity='0.20'/><line x1='47.2' y1='740.4' x2='102.7' y2='709.3' stroke-opacity='0.28'/><line x1='61.7' y1='184.3' x2='21.6' y2='273.0' stroke-opacity='0.16'/><line x1='18.5' y1='41.9' x2='84.6' y2='41.2' stroke-opacity='0.27'/><line x1='21.4' y1='326.9' x2='22.2' y2='397.6' stroke-opacity='0.25'/><line x1='46.9' y1='555.6' x2='83.6' y2='565.5' stroke-opacity='0.37'/><line x1='22.2' y1='397.6' x2='3.1' y2='486.5' stroke-opacity='0.18'/><line x1='97.9' y1='342.4' x2='57.4' y2='427.2' stroke-opacity='0.17'/><line x1='34.6' y1='661.4' x2='17.0' y2='697.0' stroke-opacity='0.36'/><line x1='70.6' y1='45.3' x2='86.7' y2='141.9' stroke-opacity='0.16'/><line x1='10.7' y1='570.8' x2='34.6' y2='661.4' stroke-opacity='0.17'/><line x1='55.5' y1='779.3' x2='46.9' y2='834.5' stroke-opacity='0.30'/><line x1='89.5' y1='195.8' x2='78.3' y2='236.4' stroke-opacity='0.35'/><line x1='43.3' y1='506.5' x2='46.9' y2='555.6' stroke-opacity='0.33'/><line x1='27.4' y1='156.5' x2='61.7' y2='184.3' stroke-opacity='0.35'/><line x1='61.7' y1='184.3' x2='89.5' y2='195.8' stroke-opacity='0.39'/><line x1='86.7' y1='141.9' x2='89.5' y2='195.8' stroke-opacity='0.31'/><line x1='57.4' y1='427.2' x2='43.3' y2='506.5' stroke-opacity='0.22'/><line x1='102.7' y1='709.3' x2='55.5' y2='779.3' stroke-opacity='0.20'/><line x1='3.1' y1='486.5' x2='43.3' y2='506.5' stroke-opacity='0.34'/><line x1='21.4' y1='326.9' x2='97.9' y2='342.4' stroke-opacity='0.23'/><line x1='18.5' y1='41.9' x2='70.6' y2='45.3' stroke-opacity='0.32'/><line x1='97.9' y1='342.4' x2='22.2' y2='397.6' stroke-opacity='0.17'/><line x1='70.6' y1='45.3' x2='84.6' y2='41.2' stroke-opacity='0.45'/><line x1='46.9' y1='555.6' x2='56.7' y2='630.6' stroke-opacity='0.24'/><line x1='34.6' y1='661.4' x2='102.7' y2='709.3' stroke-opacity='0.21'/><line x1='34.6' y1='661.4' x2='56.7' y2='630.6' stroke-opacity='0.37'/><line x1='21.6' y1='273.0' x2='21.4' y2='326.9' stroke-opacity='0.31'/><line x1='55.5' y1='779.3' x2='14.3' y2='849.4' stroke-opacity='0.22'/><line x1='43.3' y1='506.5' x2='10.7' y2='570.8' stroke-opacity='0.25'/><line x1='14.3' y1='849.4' x2='84.4' y2='862.3' stroke-opacity='0.25'/><line x1='57.4' y1='427.2' x2='3.1' y2='486.5' stroke-opacity='0.22'/><line x1='86.7' y1='141.9' x2='61.7' y2='184.3' stroke-opacity='0.33'/><line x1='17.0' y1='697.0' x2='102.7' y2='709.3' stroke-opacity='0.20'/><line x1='61.7' y1='184.3' x2='78.3' y2='236.4' stroke-opacity='0.31'/><line x1='47.2' y1='740.4' x2='55.5' y2='779.3' stroke-opacity='0.36'/><line x1='97.9' y1='342.4' x2='100.6' y2='429.5' stroke-opacity='0.19'/><line x1='22.2' y1='397.6' x2='57.4' y2='427.2' stroke-opacity='0.34'/><line x1='21.6' y1='273.0' x2='78.3' y2='236.4' stroke-opacity='0.26'/><line x1='100.6' y1='429.5' x2='43.3' y2='506.5' stroke-opacity='0.16'/><line x1='43.3' y1='506.5' x2='83.6' y2='565.5' stroke-opacity='0.25'/><line x1='14.3' y1='849.4' x2='46.9' y2='834.5' stroke-opacity='0.37'/></g><g fill='%23e0a458'><circle cx='18.5' cy='41.9' r='1.5'/><circle cx='70.6' cy='45.3' r='1.3'/><circle cx='84.6' cy='41.2' r='1.8'/><circle cx='86.7' cy='141.9' r='1.4'/><circle cx='27.4' cy='156.5' r='1.3'/><circle cx='61.7' cy='184.3' r='1.8'/><circle cx='89.5' cy='195.8' r='2.5'/><circle cx='21.6' cy='273.0' r='2.3'/><circle cx='78.3' cy='236.4' r='2.3'/><circle cx='21.4' cy='326.9' r='1.5'/><circle cx='97.9' cy='342.4' r='2.0'/><circle cx='22.2' cy='397.6' r='1.6'/><circle cx='57.4' cy='427.2' r='1.4'/><circle cx='100.6' cy='429.5' r='1.3'/><circle cx='3.1' cy='486.5' r='1.5'/><circle cx='43.3' cy='506.5' r='2.5'/><circle cx='10.7' cy='570.8' r='2.4'/><circle cx='46.9' cy='555.6' r='2.3'/><circle cx='83.6' cy='565.5' r='2.3'/><circle cx='34.6' cy='661.4' r='1.5'/><circle cx='56.7' cy='630.6' r='1.6'/><circle cx='17.0' cy='697.0' r='2.1'/><circle cx='47.2' cy='740.4' r='2.2'/><circle cx='102.7' cy='709.3' r='2.4'/><circle cx='55.5' cy='779.3' r='2.4'/><circle cx='14.3' cy='849.4' r='1.3'/><circle cx='46.9' cy='834.5' r='2.0'/><circle cx='84.4' cy='862.3' r='2.1'/></g></svg>");
}

@media (max-width: 1440px) {
  body::before, body::after { display: none; }
}

/* Subtle parallax — pure CSS scroll-driven animation, no JS, no inline
   styles, so it never runs afoul of the CSP. Browsers without support
   simply skip it; reduced-motion users never get it. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    body::before, body::after {
      animation: drift-c linear;
      animation-timeline: scroll(root);
      animation-range: 0 100%;
    }
  }
}

@keyframes drift-c { from { transform: translateY(0); } to { transform: translateY(-70px); } }

/* Monospace accents for a more "systems engineer" visual language */
section h2 .idx,
.tag,
.badge,
.hero-stats .stat .num,
.case-meta .m .k {
  font-family: var(--mono);
}
