:root {
  color-scheme: dark;
  --ink: #dadadb;
  --muted: #9a9b9f;
  --soft: #b7b8bc;
  --line: #383a3e;
  --paper: #1d1e20;
  --surface: #252629;
  --surface-hover: #2d2f33;
  --header-surface: #292b2f;
  --toggle-surface: #303238;
  --accent: #f2f2f3;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #202124;
  --muted: #6c6e73;
  --soft: #52545a;
  --line: #dedfe2;
  --paper: #f8f8f7;
  --surface: #eeeeec;
  --surface-hover: #e5e5e2;
  --header-surface: #f0f0ed;
  --toggle-surface: #e5e5e1;
  --accent: #111214;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.motion-ready .reveal-target {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.motion-ready .reveal-target.is-visible {
  opacity: 1;
  transform: none;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.012em;
  transition: background-color .2s ease, color .2s ease;
}
.audience-engineer-only { display: block; }
.audience-human-only { display: none; }
html[data-audience="human"] .audience-engineer-only { display: none !important; }
html[data-audience="human"] .audience-human-only { display: block; }
html[data-audience="human"] .technical-section,
html[data-audience="human"] .audience-technical { display: none !important; }
@keyframes audience-mode-swap {
  from { opacity: .28; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
html.audience-switching #top { animation: audience-mode-swap .42s cubic-bezier(.22, 1, .36, 1) both; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.content-width { width: min(900px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: sticky; top: 10px; z-index: 10; background: transparent; }
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--header-surface);
  box-shadow: 0 12px 30px color-mix(in srgb, #000 16%, transparent);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 26px;
  transition: width 1.14s cubic-bezier(.22, 1, .36, 1), min-height 1.14s cubic-bezier(.22, 1, .36, 1), padding 1.14s cubic-bezier(.22, 1, .36, 1), border-radius 1.14s ease, box-shadow .84s ease;
}
html.header-scrolled .header-inner { width: min(900px, calc(100% - 240px)); min-height: 46px; padding-right: 22px; padding-left: 22px; border-radius: 14px; box-shadow: 0 12px 28px color-mix(in srgb, #000 22%, transparent); }
.brand { font-size: 15px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.site-nav { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.site-nav a, .footer-links a { position: relative; transition: color .18s ease; }
.footer-links a { transform-origin: center bottom; transition: color .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.site-nav a:hover, .footer-links a:hover { color: var(--ink); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.theme-toggle:hover { background: var(--surface-hover); transform: translateY(-1px); }
.theme-icon { display: inline-grid; width: 16px; height: 16px; place-items: center; font-size: 14px; line-height: 1; }

.hero {
  padding-top: 150px;
  padding-bottom: 108px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.kicker, .section-title, .tools-label {
  margin: 0;
  color: var(--muted);
  font: 500 11px/1.25 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(58px, 10vw, 112px);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: .98;
}
.hero-lede {
  max-width: 660px;
  margin: 0 auto 14px;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.34;
  letter-spacing: -.04em;
}
.hero-note { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.hero-location { margin: 28px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.profile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.profile-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transform-origin: center bottom;
  transition: background-color .18s ease, border-color .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.profile-link::before { position: absolute; bottom: calc(100% + 2px); left: 50%; z-index: 4; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 5px 14px color-mix(in srgb, #000 20%, transparent); color: var(--ink); content: attr(aria-label); font: 10px/1.2 var(--mono); letter-spacing: 0; opacity: 0; pointer-events: none; white-space: nowrap; transform: translate(-50%, 4px) scale(.94); transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.profile-link:hover, .profile-link:focus-visible { z-index: 3; background: transparent; border-color: transparent; color: var(--ink); transform: translateY(-2px) scale(2); }
.profile-link:hover::before, .profile-link:focus-visible::before { opacity: 1; transform: translate(-50%, 0) scale(.5); }
.profile-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.profile-svg { display: block; width: 21px; height: 21px; fill: currentColor; }
.profile-svg[stroke] { fill: none; }
.content-section { padding: 84px 0 88px; border-bottom: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: 165px 1fr; gap: 34px; }
.section-title { padding-top: 5px; }
.section-body { max-width: 640px; color: var(--soft); font-size: 17px; line-height: 1.7; }
.section-body p { margin: 0 0 20px; }
.section-body p:last-child { margin-bottom: 0; }
.about-lede { color: var(--ink); font-size: 21px; line-height: 1.45; letter-spacing: -.035em; }
.human-tools-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.human-tool-mark { position: relative; z-index: 1; display: inline-grid; width: 34px; height: 34px; place-items: center; overflow: visible; border: 1px solid var(--line); border-radius: 8px; }
.human-tool-mark img { display: block; width: 100%; height: 100%; padding: 5px; object-fit: contain; cursor: help; transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.human-tool-mark:hover, .human-tool-mark:focus-within, .tool-mark:hover, .tool-mark:focus-within, .brand-chip:hover, .brand-chip:focus-within { z-index: 20; }
.human-tool-mark:hover img, .human-tool-mark:focus-within img { transform: scale(2.5); }

.tools-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tools-label { margin-bottom: 16px; color: var(--muted); font-size: 10px; }
.tool-list { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.tool-list > span { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; font-weight: 600; }
.tool-list > span { font-size: 0; cursor: help; }
.tool-text { min-height: 24px; align-items: center; }
.tool-mark { position: relative; display: inline-grid; width: 24px; height: 24px; place-items: center; overflow: visible; border-radius: 6px; background: transparent; color: transparent; font: 700 9px/1 var(--mono); font-size: 0; font-style: normal; letter-spacing: -.07em; }
.tool-mark img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 3px; background: transparent; object-fit: contain; cursor: help; transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.tool-mark:hover img, .tool-mark:focus-within img, .tool-list > span:hover .tool-mark img, .tool-list > span:focus-visible .tool-mark img { z-index: 3; transform: scale(2.5); background: var(--surface); border-radius: 6px; box-shadow: 0 8px 18px color-mix(in srgb, #000 20%, transparent); }

.history-list, .project-list { min-width: 0; }
.history-item { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.history-item:first-child { padding-top: 0; border-top: 0; }
.history-heading, .history-role { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.history-heading { font-size: 17px; }.history-heading span, .history-role span:last-child { color: var(--muted); font: 12px var(--mono); }
.company-brands { display: flex; flex-wrap: wrap; gap: 9px 11px; margin: 16px 0 13px; }
.brand-chip { position: relative; display: inline-flex; align-items: center; }
.brand-chip img { width: auto; min-width: 30px; max-width: 140px; height: 30px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; cursor: help; transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .22s ease, background-color .22s ease; }
.brand-chip:hover img, .brand-chip:focus-within img { transform: scale(2); border-color: var(--soft); background: var(--surface); box-shadow: 0 8px 18px color-mix(in srgb, #000 20%, transparent); }
.brand-chip:hover img[src*="deoxide"], .brand-chip:focus-within img[src*="deoxide"], .brand-chip:hover img[src*="glamera"], .brand-chip:focus-within img[src*="glamera"] { transform: scale(1.5); }
.human-tool-mark::after, .tool-mark::after, .brand-chip::after { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 4; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 5px 14px color-mix(in srgb, #000 20%, transparent); color: var(--ink); content: attr(data-image-title); font: 10px/1.2 var(--mono); letter-spacing: 0; opacity: 0; pointer-events: none; white-space: nowrap; transform: translate(-50%, 4px) scale(.94); transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.human-tool-mark:hover::after, .human-tool-mark:focus-within::after, .tool-mark:hover::after, .tool-mark:focus-within::after, .brand-chip:hover::after, .brand-chip:focus-within::after { opacity: 1; transform: translate(-50%, 0) scale(1); }
.earlier-role .company-brands { margin: 0 0 13px; }
.history-role { margin-top: 4px; color: var(--muted); font-size: 14px; }
.history-role span:first-child { color: var(--ink); font-weight: 650; }
.history-summary { margin: 17px 0 0; color: var(--soft); font-size: 15px; line-height: 1.65; }
.history-item ul { margin: 17px 0 0; padding-left: 19px; color: var(--soft); font-size: 15px; }
.history-item li { margin: 7px 0; padding-left: 3px; }
.section-body strong, .history-summary strong, .history-item li strong, .education-list p strong, .education-list li strong { color: var(--ink); font-weight: 650; }
.earlier-history { padding-bottom: 0; }
.earlier-history summary { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; list-style: none; }
.earlier-history summary::-webkit-details-marker { display: none; }
.earlier-history summary span { color: var(--muted); font: 12px var(--mono); }
.earlier-history summary b { margin-left: 11px; color: var(--ink); font-size: 18px; font-weight: 400; }
.earlier-history[open] > summary b { transform: rotate(45deg); }
.earlier-list { padding-top: 15px; color: var(--soft); font-size: 14px; }
.earlier-list p { display: flex; justify-content: space-between; gap: 15px; margin: 8px 0; }
.earlier-list p span:last-child { color: var(--muted); font: 12px var(--mono); }
.earlier-role { border-top: 1px solid var(--line); }
.earlier-role summary { padding: 17px 0; }
.earlier-role summary > span { display: grid; gap: 3px; }
.earlier-role summary strong { color: var(--ink); font: 600 15px/1.3 var(--sans); }
.earlier-role summary small { color: var(--muted); font: 12px/1.3 var(--mono); }
.earlier-role summary b { transition: transform .18s ease; }
.earlier-role[open] summary b { transform: rotate(45deg); }
.earlier-role ul { margin: 0 0 20px; padding-left: 19px; }

.human-history-item { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.human-history-item:first-child { padding-top: 0; border-top: 0; }
.human-history-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: 17px; }
.human-history-heading span, .human-history-meta { color: var(--muted); font: 12px var(--mono); }
.human-history-meta { margin: 4px 0 0; }
.human-brands { margin: 14px 0 0; }
.human-brands .brand-chip img { height: 28px; }
.human-history-summary { margin: 17px 0 0; color: var(--soft); font-size: 15px; line-height: 1.65; }
.human-history-item ul { margin: 17px 0 0; padding-left: 19px; color: var(--soft); font-size: 15px; }
.human-history-item li { margin: 7px 0; padding-left: 3px; }
.human-earlier-history { padding: 24px 0 0; border-top: 1px solid var(--line); }
.human-earlier-history summary { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; list-style: none; }
.human-earlier-history summary::-webkit-details-marker { display: none; }
.human-earlier-history summary span { color: var(--muted); font: 12px var(--mono); }
.human-earlier-history summary b { margin-left: 11px; color: var(--ink); font-size: 18px; font-weight: 400; transition: transform .18s ease; }
.human-earlier-history[open] > summary b { transform: rotate(45deg); }
.human-earlier-list { padding-top: 15px; }

.human-project-item { display: block; padding: 24px 0 28px; border-top: 1px solid var(--line); }
.human-project-item:first-child { padding-top: 0; border-top: 0; }
.human-project-item { transition: transform .22s cubic-bezier(.22, 1, .36, 1), color .18s ease; }
.human-project-item:hover, .human-project-item:focus-within { transform: translateY(-3px); }
.human-project-item strong { font-size: 17px; font-weight: 650; }
.human-project-item p { margin: 6px 0 0; color: var(--soft); font-size: 15px; line-height: 1.65; }
.human-project-item ul { margin: 14px 0 0; padding-left: 19px; color: var(--soft); font-size: 14px; }
.human-project-item li { margin: 7px 0; padding-left: 3px; }

.project-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 26px; padding: 24px 0 28px; border-top: 1px solid var(--line); transition: color .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.project-item:first-child { padding-top: 0; border-top: 0; }
.project-item strong { position: relative; display: inline-block; font-size: 17px; font-weight: 650; }
.project-item strong::after, .credential-item strong::after, .site-nav a::after, .footer-links a::after { position: absolute; right: 0; bottom: -.18em; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right center; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.footer-links a::before { position: absolute; bottom: calc(100% + 9px); left: 50%; z-index: 4; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 5px 14px color-mix(in srgb, #000 20%, transparent); color: var(--ink); content: attr(data-link-title); font: 10px/1.2 var(--mono); letter-spacing: 0; opacity: 0; pointer-events: none; white-space: nowrap; transform: translate(-50%, 4px) scale(.94); transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.footer-links a:hover, .footer-links a:focus-visible { z-index: 3; transform: scale(2); }
.footer-links a:hover::before, .footer-links a:focus-visible::before { opacity: 1; transform: translate(-50%, 0) scale(.5); }
.project-item p { margin: 5px 0 0; color: var(--muted); font: 12px var(--mono); }
.project-item > span:not(.project-preview) { color: var(--muted); font: 12px var(--mono); white-space: nowrap; }
.project-item small { grid-column: 1 / -1; color: var(--soft); font-size: 14px; }
.project-item:hover, .project-item:focus-visible { transform: translateY(-3px); }
.project-item:hover strong::after, .project-item:focus-visible strong::after, .credential-item:hover strong::after, .credential-item:focus-visible strong::after, .site-nav a:hover::after, .site-nav a:focus-visible::after, .footer-links a:hover::after, .footer-links a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.project-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; }
.project-list:has(.project-item:hover) .project-item:not(:hover) { opacity: .56; }
.project-preview { position: absolute; top: 50%; right: 88px; display: grid; width: 148px; height: 88px; padding: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 32px color-mix(in srgb, #000 18%, transparent); color: var(--muted); font: 9px var(--mono); letter-spacing: .04em; opacity: 0; pointer-events: none; transform: translate(10px, -50%) scale(.96); transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.project-preview b { position: relative; z-index: 1; font: inherit; }
.project-item:hover .project-preview, .project-item:focus-visible .project-preview { opacity: 1; transform: translate(0, -50%) scale(1); }
.preview-pipeline { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, #79a9ff), var(--surface)); }
.preview-chart { display: flex; align-items: end; gap: 5px; height: 38px; margin-top: 7px; }
.preview-chart i, .preview-bars i { display: block; width: 17px; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--ink) 76%, transparent); }
.preview-chart i:nth-child(1) { height: 42%; }.preview-chart i:nth-child(2) { height: 68%; }.preview-chart i:nth-child(3) { height: 53%; }.preview-chart i:nth-child(4) { height: 90%; }
.preview-migration { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, #d8a96b), var(--surface)); }
.preview-flow { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.preview-flow i { position: relative; display: block; width: 27px; height: 18px; border: 1px solid var(--soft); border-radius: 4px; }
.preview-flow i:not(:last-child)::after { position: absolute; top: 7px; right: -9px; width: 7px; height: 1px; background: var(--soft); content: ""; }
.preview-dashboard { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, #a78bfa), var(--surface)); }
.preview-donut { position: absolute; bottom: 12px; left: 13px; width: 32px; height: 32px; border: 8px solid color-mix(in srgb, var(--ink) 72%, transparent); border-right-color: transparent; border-radius: 50%; transform: rotate(-34deg); }
.preview-bars { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: end; gap: 4px; height: 30px; }.preview-bars i { width: 10px; }.preview-bars i:nth-child(1) { height: 40%; }.preview-bars i:nth-child(2) { height: 72%; }.preview-bars i:nth-child(3) { height: 55%; }
.preview-vision { background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, #75c7a3), var(--surface)); }
.preview-scan { position: absolute; right: 14px; bottom: 12px; left: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 35px; }.preview-scan i { border: 1px solid color-mix(in srgb, var(--ink) 68%, transparent); border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); }.preview-scan i:nth-child(2), .preview-scan i:nth-child(4) { transform: translateY(7px); }
.project-section-body { min-width: 0; max-width: 640px; }

.education-list > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; padding: 0 0 24px; }.education-list > div + div { padding-top: 24px; border-top: 1px solid var(--line); }.education-list strong { font-size: 17px; }.education-list span { color: var(--muted); font: 12px var(--mono); }.education-list .company-brands { grid-column: 1 / -1; margin: 10px 0 2px; }.education-list p { grid-column: 1 / -1; margin: 0; color: var(--soft); font-size: 14px; }.education-details span { display: block; color: inherit; font: inherit; }.education-list ul { grid-column: 1 / -1; margin: 6px 0 0; padding-left: 19px; color: var(--soft); font-size: 14px; }.education-list li { margin: 5px 0; }.human-education-description { margin-top: 10px !important; color: var(--soft); font-size: 14px !important; line-height: 1.6; }

.credential-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 26px; align-items: start; padding: 18px 0 21px; border-top: 1px solid var(--line); transition: color .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }.credential-item:first-child { padding-top: 0; border-top: 0; }.credential-item strong { position: relative; display: inline-block; font-size: 16px; font-weight: 600; }.credential-item p { margin: 5px 0 0; color: var(--muted); font: 12px var(--mono); }.credential-item > span { color: var(--muted); font: 12px var(--mono); white-space: nowrap; }.credential-item:hover { transform: translateY(-2px); }.credential-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; }

.site-footer { padding: 70px 0 118px; }.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 36px 50px; font-size: 14px; }.footer-links { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }.footer-links span:last-child { margin-left: auto; }

.audience-switcher { position: fixed !important; left: 50%; bottom: 18px; z-index: 20; transform: translateX(-50%); }
.back-to-top { position: fixed; right: 22px; bottom: 20px; z-index: 19; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--soft) 42%, var(--line)); border-radius: 50%; background: var(--toggle-surface); color: var(--ink); box-shadow: 0 8px 24px color-mix(in srgb, #000 20%, transparent); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1); }
.back-to-top:hover, .back-to-top:focus-visible { border-color: var(--soft); background: var(--surface-hover); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.back-to-top svg { width: 18px; height: 18px; }
.audience-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; min-width: 166px; padding: 8px 13px 8px 9px; border: 1px solid color-mix(in srgb, var(--soft) 42%, var(--line)); border-radius: 999px; appearance: none; -webkit-appearance: none; background: var(--toggle-surface); color: var(--ink); box-shadow: 0 8px 24px color-mix(in srgb, #000 18%, transparent); cursor: pointer; font-size: 12px; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.audience-toggle { background: color-mix(in srgb, var(--toggle-surface) 94%, transparent); }
.audience-toggle:hover { background: var(--surface-hover); border-color: var(--soft); transform: translateY(-1px); }
.audience-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.audience-toggle-track { width: 30px; height: 18px; padding: 2px; border-radius: 999px; background: var(--muted); flex: none; }
.audience-toggle-thumb { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: transform .18s ease; }
html[data-audience="human"] .audience-toggle-thumb { transform: translateX(12px); }
.audience-tooltip { position: absolute; left: 50%; bottom: calc(100% + 10px); width: 230px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--soft); text-align: center; line-height: 1.35; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .18s ease, transform .18s ease; }
.audience-toggle:hover .audience-tooltip, .audience-toggle:focus-visible .audience-tooltip { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 8px 18px; padding: 8px 14px; }
  html.header-scrolled .header-inner { width: calc(100% - 28px); min-height: 52px; padding: 8px 12px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .site-nav { display: none; }
  .hero { padding-top: 110px; padding-bottom: 82px; }
  .hero h1 { font-size: clamp(56px, 14vw, 92px); }
  .section-grid { grid-template-columns: 1fr; gap: 26px; }
  .section-title { padding-top: 0; }
  .tools-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .content-width { width: min(100% - 36px, 520px); }
  .header-inner { width: calc(100% - 28px); }
  .theme-toggle { padding: 7px; }.theme-toggle [data-theme-label] { display: none; }
  .hero { padding-top: 88px; }
  .hero-lede { font-size: 20px; }
  .profile-links { align-items: center; flex-direction: row; max-width: 300px; margin-right: auto; margin-left: auto; }
  .content-section { padding: 64px 0 68px; }
  .section-body { font-size: 16px; }
  .tools-groups { grid-template-columns: 1fr; gap: 28px; }
  .history-heading, .history-role { align-items: flex-start; flex-direction: column; gap: 4px; }
  .human-history-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .project-item { grid-template-columns: 1fr; gap: 8px; }.project-item > span { order: 3; }.project-item small { grid-column: 1; }
  .project-preview { top: 18px; right: 0; width: 128px; height: 76px; padding: 10px; transform: translate(0, -4px) scale(.96); }
  .project-item:hover .project-preview, .project-item:focus-visible .project-preview { transform: translate(0, 0) scale(1); }
  .credential-item { grid-template-columns: 1fr; gap: 8px; }.credential-item > span { order: 3; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }.footer-links { grid-column: 1; flex-wrap: wrap; }.footer-links span:last-child { margin-left: 0; width: 100%; }
  .audience-switcher { bottom: 12px; width: calc(100% - 36px); }
  .audience-toggle { justify-content: center; width: 100%; }
  .audience-tooltip { width: min(230px, calc(100vw - 44px)); }
  .back-to-top { right: 18px; bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
