/* Glass layer: rounded, translucent surfaces over a slow ambient light.
   Loaded last in core.css, so it restyles the shared components everywhere.
   Blur is only applied to a handful of surfaces (header, hero panel, chips);
   the cards are translucent without backdrop-filter, which keeps scrolling
   cheap. All motion is transform or opacity and stops with motion off. */
:root {
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 11px;
  --glass: var(--surface);
  --glass-strong: color-mix(in srgb, var(--surface) 88%, var(--text));
  --glass-line: color-mix(in srgb, var(--text) 13%, transparent);
  --glass-hi: inset 0 1px 0 color-mix(in srgb, var(--text) 9%, transparent);
  --lift: 0 0 0 0 transparent;
  --grad: linear-gradient(120deg, var(--cyan), var(--accent));
}
:root[data-theme="light"] {
  --glass: var(--surface);
  --glass-strong: color-mix(in srgb, var(--surface) 92%, var(--text));
  --glass-line: color-mix(in srgb, var(--text) 16%, transparent);
  --glass-hi: inset 0 1px 0 #fffc;
  --lift: 0 0 0 0 transparent;
}

/* Header: a floating glass bar. */
.site-header {
  top: 12px;
  margin: 12px clamp(10px, calc(var(--gutter) - 18px), 90px) 0;
  padding: 9px 12px 9px 18px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: none;
  transition:
    padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s;
}
:root[data-scrolled] .site-header {
  padding-block: 5px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.desktop-nav {
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.desktop-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  transition:
    background 0.25s,
    color 0.25s;
}
.desktop-nav a::after {
  display: none;
}
.desktop-nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.desktop-nav a.active {
  color: var(--bg);
  background: var(--text);
}
.header-cta {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--bg);
  font-weight: 600;
  background: var(--text);
}
.header-cta:hover {
  color: var(--bg);
  background: var(--cyan);
}
.icon-button,
.locale-link {
  border-radius: 50%;
}
.icon-button:hover,
.locale-link:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

/* Controls. */
button,
input,
select {
  border-radius: var(--r-sm);
}
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  color: var(--bg);
  font-weight: 600;
  background: var(--text);
  box-shadow: none;
}
.button:hover {
  color: var(--bg);
  background: var(--cyan);
}
.actions .text-link,
.proposal-cta,
.footer-chip,
.replay-control,
.document-tools button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  transition:
    border-color 0.25s,
    background 0.25s,
    color 0.25s,
    translate 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.actions .text-link:hover,
.proposal-cta:hover,
.footer-chip:hover,
.replay-control:hover,
.document-tools button:hover {
  border-color: var(--text);
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.replay-control {
  min-height: 34px;
  padding: 0 14px;
}

/* Shared glass card. */
.rack,
.datasheet,
.spotlight,
.case-card,
.proposal,
.also-strip,
.reasons li,
.plan li,
.home-index article,
.plate,
.timing,
.sim-panel,
.contents,
.lib-stats,
.lib-shelf,
.lib-card a,
.availability,
.callout,
.domain-tile,
.skill-row,
.contribution-map article,
.priorities article,
.delivered-grid article,
.cv-options article {
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  background-color: var(--glass);
  box-shadow: var(--glass-hi), var(--lift);
}
.rack,
.datasheet,
.spotlight,
.lib-shelf {
  border-radius: var(--r-xl);
}
.datasheet,
.spotlight,
.case-card,
.plate,
.timing,
.sim-panel,
.lib-stats {
  overflow: hidden;
}
.spotlight::before {
  inset: 0 0 auto;
}
.contribution-map article,
.priorities article,
.delivered-grid article,
.cv-options article {
  padding: clamp(20px, 2.2vw, 30px);
}
.callout {
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
}
.readout {
  border-radius: var(--r-md);
  border-color: var(--glass-line);
}
.ro-screen {
  border-radius: var(--r-sm);
}
.rack-screw {
  opacity: 0.5;
}
.photo-slot {
  border-radius: var(--r-md);
}
.case-visual {
  border-radius: 0;
}
.case-badge,
.plate-tag {
  border-radius: 999px;
  padding-inline: 10px;
}
.light-figure img,
.document-section figure img,
.gallery-trigger {
  border-radius: var(--r-md);
}
.formula,
pre {
  border-radius: var(--r-md);
}
dialog {
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
}
.lib-search,
.skill-search {
  border-radius: 999px;
  padding-inline: 18px;
}
.lib-search input,
.skill-search input {
  border: 0;
  background: none;
}

/* Hover: the border sharpens and the card lifts a little. Nothing glows. */
.case-card,
.proposal,
.reasons li,
.plan li,
.home-index article,
.lib-card a {
  transition:
    border-color 0.3s,
    background-color 0.3s,
    translate 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-card:hover,
.proposal:hover,
.reasons li:hover,
.plan li:hover {
  translate: 0 -4px;
  border-color: color-mix(in srgb, var(--text) 34%, transparent);
  background-color: var(--glass-strong);
}

/* Hero. */
.hero {
  border-bottom: 0;
  background: none;
}
.hero-grid {
  padding-block: clamp(56px, 7vw, 120px) clamp(36px, 4vw, 64px);
}
.hero-overline {
  display: inline-flex;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--glass-hi);
}
.hero h1 {
  margin-top: 30px;
}
.hero-pitch .hl {
  background: none;
  color: var(--cyan);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin-top: 40px;
  border-top: 0;
}
.hero-meta li {
  padding: 16px 18px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  background: var(--glass);
  box-shadow: var(--glass-hi);
}
.hero-stage {
  position: relative;
  min-width: 0;
}
.grid-panel {
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: none;
  box-shadow: none;
}
.panel-bar,
.grid-panel figcaption {
  border-color: var(--glass-line);
}
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 18px 40px -22px #000c;
  text-decoration: none;
  animation: chip-bob 7s ease-in-out infinite alternate;
}
.float-chip:hover {
  color: var(--text);
  border-color: var(--cyan);
}
.float-chip .icon {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 11px;
  color: var(--bg);
  background: var(--text);
}
.float-chip .live-dot {
  margin: 0 6px;
}
.float-chip strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.float-chip small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.chip-a {
  top: -58px;
  left: clamp(-40px, -2.6vw, -12px);
}
.chip-b {
  right: clamp(-26px, -1.6vw, -8px);
  bottom: -58px;
  animation-delay: -3.5s;
}
@keyframes chip-bob {
  from {
    transform: translateY(-7px);
  }
  to {
    transform: translateY(7px);
  }
}

.hero-meta li,
.reasons li,
.plan li,
.spot-points li,
.marquee li {
  margin: 0;
}
.hero-stage {
  margin-block: 30px;
}

/* Tools ticker under the hero. */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee ul {
  display: flex;
  flex: none;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0 6px;
}
.marquee li {
  padding: 7px 18px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  font:
    600 12px/1.5 Consolas,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  background: var(--glass);
}
.marquee li:nth-child(3n + 1) {
  color: var(--cyan);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Bench. */
.bench-band {
  border-bottom: 0;
}

/* Why me, plan, index: rows become cards. */
.reasons {
  gap: 16px;
  border-top: 0;
}
.reasons li,
.reasons li:nth-child(even) {
  padding: clamp(24px, 2.6vw, 38px);
}
.plan {
  gap: 16px;
}
.plan::before {
  display: none;
}
.plan li {
  padding: clamp(20px, 2vw, 28px);
}
.plan li::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.7;
}
.plan-node {
  background: transparent;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}
.home-index {
  gap: 16px;
}
.home-index article {
  padding: clamp(24px, 3vw, 44px);
}
.section + .section {
  border-top: 0;
}
.section-heading h2 {
  text-wrap: balance;
}
.also-strip {
  padding: 18px 24px;
}

/* Footer: a rounded sheet. */
.site-footer {
  margin-inline: clamp(8px, 1.2vw, 18px);
  margin-bottom: clamp(8px, 1.2vw, 18px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  background: var(--glass-strong);
  box-shadow: var(--glass-hi);
  overflow: hidden;
}
.footer-mail {
  border-radius: var(--r-md);
}

@media (max-width: 1080px) {
  .chip-a {
    left: -6px;
    top: -18px;
  }
  .chip-b {
    right: -6px;
    bottom: -18px;
  }
}
@media (max-width: 760px) {
  :root {
    --r-xl: 24px;
    --r-lg: 20px;
  }
  .site-header {
    top: 8px;
    margin: 8px 8px 0;
    padding: 6px 8px 6px 12px;
    border-radius: 22px;
  }
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-meta li:last-child {
    grid-column: 1 / -1;
  }
  .hero-overline {
    border-radius: 18px;
  }
  .hero-stage {
    margin-block: 14px;
  }
  .float-chip {
    padding: 8px 14px 8px 10px;
  }
  .float-chip .icon {
    width: 28px;
    height: 28px;
    padding: 6px;
  }
  .reasons li,
  .reasons li:nth-child(even) {
    border-left: 1px solid var(--glass-line);
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .float-chip,
  .marquee-track {
    animation: none;
  }
}
:root[data-motion="off"] :is(body, .float-chip, .marquee-track),
:root[data-motion="off"] body::before,
:root[data-motion="off"] body::after {
  animation: none;
}
@media print {
  body::before,
  body::after,
  .marquee,
  .float-chip {
    display: none;
  }
}

/* Statement: one sentence that lights up word by word as it crosses the
   screen. Scroll-driven, so it needs no script; where animation-timeline is
   missing, the sentence is simply fully lit. */
.statement {
  padding-block: clamp(90px, 16vw, 240px);
  view-timeline: --statement block;
}
.statement p {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(38px, 6.6vw, 112px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.statement .w-key {
  color: var(--cyan);
}

/* Scroll-driven motion, Chromium and Safari 26. Transform and opacity only. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-motion="off"]) .statement span {
      animation: word-on linear both;
      animation-timeline: --statement;
      animation-range: cover calc(24% + var(--i) * 1.05%)
        cover calc(32% + var(--i) * 1.05%);
    }
    /* The hero recedes as the page takes over. */
    :root:not([data-motion="off"]) .hero-grid {
      animation: hero-recede linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
      transform-origin: 50% 30%;
    }
    /* Large panels grow into place. */
    :root:not([data-motion="off"]) :is(.rack, .datasheet, .spotlight) {
      animation: grow-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    :root:not([data-motion="off"]) .section-heading h2 {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
  }
}
@keyframes word-on {
  from {
    opacity: 0.14;
  }
}
@keyframes hero-recede {
  to {
    opacity: 0;
    transform: scale(0.93) translateY(-4%);
  }
}
@keyframes grow-in {
  from {
    opacity: 0.35;
    transform: scale(0.9);
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(46px);
  }
}

/* The name is set the same way on the profile page as on the homepage. */
.profile-hero h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-size: 1em;
  letter-spacing: inherit;
  color: var(--cyan);
}
.profile-hero figure,
.two-column figure img {
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Simplified showcases: one idea per card, more air, fewer rules. */
.case-grid {
  gap: clamp(16px, 1.6vw, 24px);
}
.case-visual {
  aspect-ratio: 2.1;
  border-bottom: 0;
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}
.case-index {
  display: none;
}
.case-badge {
  border-color: var(--glass-line);
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.case-body {
  gap: 0;
  padding: clamp(24px, 2.6vw, 40px);
}
.case-title :is(h2, h3) {
  font-size: clamp(28px, 2.6vw, 40px);
}
.case-subtitle {
  margin-top: 6px;
  font-size: 14px;
}
.case-summary {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}
.case-metric {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.case-metric strong {
  font:
    500 clamp(46px, 4.6vw, 72px) / 1 Manrope,
    sans-serif;
  letter-spacing: -0.055em;
  color: var(--text);
}
.case-metric strong span {
  margin-left: 8px;
  font-size: 0.38em;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.case-metric small {
  font-size: 13px;
  color: var(--muted);
}
.case-chips,
.spot-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.case-chips li {
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.case-links {
  margin-top: auto;
  padding-top: 28px;
  gap: 22px;
}
.case-links .text-link {
  min-height: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
}
.case-links .text-link:hover {
  translate: none;
  background: none;
  color: var(--cyan);
}

/* Numbers: no boxes, only type and hairlines. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--glass-line);
}
.stat-grid li {
  margin: 0;
  border-bottom: 1px solid var(--glass-line);
}
.stat-grid li:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--glass-line);
}
.stat {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(22px, 2.4vw, 36px) clamp(16px, 2vw, 30px) clamp(20px, 2vw, 30px);
  text-decoration: none;
  transition: background-color 0.3s;
}
.stat:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.stat-value {
  font-size: clamp(40px, 4.8vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.stat-value sup {
  font-size: 0.45em;
  letter-spacing: -0.02em;
  vertical-align: top;
  position: relative;
  top: 0.1em;
}
.stat-value small {
  margin-left: 8px;
  font-size: 0.3em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.stat-label {
  margin-top: 18px;
  font:
    600 10.5px/1.5 Consolas,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.stat-src {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13.5px;
}
.stat-src .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition:
    translate 0.3s,
    color 0.3s;
}
.stat:hover .stat-src .icon {
  color: var(--cyan);
  translate: 2px -2px;
}

/* Spotlight: features as quiet chips. */
.spot-points {
  margin: 0;
  gap: 10px;
}
.spot-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
}
.spot-points .icon {
  width: 17px;
  height: 17px;
  margin: 0;
}
.spot-points strong {
  font-size: 14px;
  font-weight: 500;
}
.spot-stats {
  border-block: 0;
  margin-top: 40px;
}
.spot-stats div,
.spot-stats div + div {
  padding: 0 20px 0 0;
  border: 0;
}
.spot-stats dt {
  font:
    500 clamp(34px, 3.6vw, 56px) / 1 Manrope,
    sans-serif;
  letter-spacing: -0.055em;
}
.spot-copy .actions {
  margin-top: 40px;
}
.spot-head :is(h2, h3) > span {
  font:
    400 clamp(17px, 1.5vw, 22px) / 1.2 Manrope,
    sans-serif;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.spotlight::before {
  display: none;
}

/* Subject cards, short form. */
.proposal-basis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}
.proposal-basis .icon {
  width: 15px;
  height: 15px;
}
.proposal-basis a {
  color: var(--text);
}
.proposal {
  background-image: none;
}
.proposal-cta {
  margin-top: auto;
}
.proposal-basis + .proposal-cta {
  margin-top: 26px;
  align-self: flex-start;
}

@media (max-width: 1000px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid li:not(:nth-child(4n + 1)) {
    border-left: 0;
  }
  .stat-grid li:nth-child(even) {
    border-left: 1px solid var(--glass-line);
  }
}
.spot-copy {
  display: flex;
  flex-direction: column;
}
.spot-copy .face-widget {
  margin-top: auto;
  padding-top: 28px;
}
.spot-copy .actions {
  margin-bottom: 36px;
}
.proposal dl + .proposal-cta {
  margin-top: 22px;
  align-self: flex-start;
}

/* swingbus scene. Static by default: the energized network, in normal flow. */
.sb-scene {
  position: relative;
  border-block: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--bg) 55%, #000);
}
.sb-stage {
  display: grid;
  align-items: center;
  padding-block: clamp(60px, 9vw, 120px);
}
.sb-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  width: 100%;
}
.sb-copy h2 {
  margin: 16px 0 clamp(24px, 3.4vw, 46px);
  font-size: clamp(36px, 4.6vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.sb-steps {
  display: grid;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-step {
  display: flex;
  gap: 18px;
  margin: 0;
}
.sb-step > span {
  flex: none;
  width: 2.2em;
  padding-top: 5px;
  font:
    600 11px/1.5 Consolas,
    monospace;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.sb-step strong {
  display: block;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.sb-step p {
  margin-top: 6px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.sb-progress {
  display: none;
  height: 2px;
  margin-top: 34px;
  background: var(--glass-line);
}
.sb-progress i {
  display: block;
  height: 100%;
  background: var(--text);
  transform-origin: 0 50%;
}
.sb-copy .text-link {
  margin-top: 30px;
}
.sb-net {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  overflow: visible;
  fill: none;
}
.sb-wire {
  stroke: color-mix(in srgb, var(--text) 13%, transparent);
  stroke-width: 3;
}
.sb-live {
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
}
.sb-surge,
.sb-over {
  stroke: var(--cyan);
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0;
}
.sb-over {
  stroke: var(--fault);
}
.sb-win {
  opacity: 0;
}
.sb-breaker rect {
  fill: var(--bg);
  stroke: var(--fault);
  stroke-width: 2;
}
.sb-breaker path,
.sb-flag path {
  stroke: var(--fault);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sb-flag path {
  fill: color-mix(in srgb, var(--fault) 18%, var(--bg));
}
.sb-bus {
  stroke: var(--text);
  stroke-width: 6;
  stroke-linecap: square;
}
.sb-stem,
.sb-load {
  stroke: var(--muted);
  stroke-width: 2;
}
.sb-load {
  fill: var(--muted);
}
.sb-gen circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
}
.sb-gen path {
  stroke: var(--accent);
  stroke-width: 2;
}
.sb-txt {
  font:
    600 13px Consolas,
    monospace;
  letter-spacing: 0.06em;
  fill: var(--muted);
}
.sb-txt.sb-warn {
  fill: var(--fault);
}
.sb-readout rect {
  fill: color-mix(in srgb, var(--bg) 75%, transparent);
  stroke: var(--glass-line);
}
.sb-readout > path {
  stroke: var(--glass-line);
}
.sb-val {
  font:
    italic 30px "Instrument Serif",
    Georgia,
    serif;
  fill: var(--accent);
}
.sb-sup {
  font-size: 17px;
}

/* Kinetic type band. */
.kinetic {
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 110px);
}
.kinetic p {
  display: flex;
  gap: 0.5em;
  width: max-content;
  margin: 0;
  font-size: clamp(64px, 12vw, 210px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.kinetic span::after {
  content: "·";
  margin-left: 0.5em;
  color: var(--cyan);
}
.kinetic .k-b {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 55%, transparent);
  letter-spacing: -0.02em;
  translate: -18% 0;
}
.kinetic .k-b span::after {
  -webkit-text-stroke: 0;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The scene is pinned for two viewport heights of scrolling. Lines and
       outages set their own animation-range inline (home.mjs). */
    :root:not([data-motion="off"]) .sb-scene {
      height: 300vh;
      view-timeline: --sb block;
    }
    :root:not([data-motion="off"]) .sb-stage {
      position: sticky;
      top: 0;
      height: 100vh;
      height: 100svh;
      padding-block: 90px 30px;
    }
    :root:not([data-motion="off"]) .sb-progress {
      display: block;
    }
    :root:not([data-motion="off"])
      :is(.sb-live, .sb-cut, .sb-win, .sb-values, .sb-step, .sb-progress i) {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --sb;
      animation-range: contain 0% contain 100%;
    }
    :root:not([data-motion="off"]) .sb-live {
      animation-name: sb-draw;
    }
    :root:not([data-motion="off"]) .sb-cut {
      animation-name: sb-cut;
    }
    :root:not([data-motion="off"]) .sb-win {
      animation-name: sb-win;
    }
    :root:not([data-motion="off"]) .sb-values {
      animation-name: sb-read;
    }
    :root:not([data-motion="off"]) .sb-s1 {
      animation-name: sb-s1;
    }
    :root:not([data-motion="off"]) .sb-s2 {
      animation-name: sb-s2;
    }
    :root:not([data-motion="off"]) .sb-s3 {
      animation-name: sb-s3;
    }
    :root:not([data-motion="off"]) .sb-progress i {
      animation-name: sb-bar;
    }
    /* The two rows slide in opposite directions as the band crosses. */
    :root:not([data-motion="off"]) .kinetic p {
      animation: k-left linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    :root:not([data-motion="off"]) .kinetic .k-b {
      animation-name: k-right;
    }
    /* Figures and cards arrive one after another. */
    :root:not([data-motion="off"]) .stat-grid li {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    :root:not([data-motion="off"]) .case-visual .project-art {
      animation: art-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
@keyframes sb-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes sb-cut {
  0%,
  100% {
    opacity: 1;
  }
  15%,
  85% {
    opacity: 0.08;
  }
}
@keyframes sb-win {
  0%,
  100% {
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
}
@keyframes sb-read {
  from {
    opacity: 0;
  }
}
@keyframes sb-s1 {
  0%,
  38% {
    opacity: 1;
  }
  44%,
  100% {
    opacity: 0.25;
  }
}
@keyframes sb-s2 {
  0%,
  38% {
    opacity: 0.25;
  }
  44%,
  64% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0.25;
  }
}
@keyframes sb-s3 {
  0%,
  64% {
    opacity: 0.25;
  }
  70%,
  100% {
    opacity: 1;
  }
}
@keyframes sb-bar {
  from {
    transform: scaleX(0);
  }
}
@keyframes k-left {
  from {
    transform: translateX(4%);
  }
  to {
    transform: translateX(-22%);
  }
}
@keyframes k-right {
  from {
    transform: translateX(-12%);
  }
  to {
    transform: translateX(14%);
  }
}
@keyframes art-settle {
  from {
    transform: scale(1.18);
    opacity: 0.4;
  }
}
@media (max-width: 860px) {
  .sb-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .sb-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 8vw, 44px);
  }
  .sb-steps {
    gap: 12px;
  }
  .sb-step p {
    font-size: 13.5px;
  }
  .sb-step strong {
    font-size: 19px;
  }
  .sb-copy .text-link,
  .sb-copy .eyebrow {
    display: none;
  }
  .sb-progress {
    margin-top: 16px;
  }
  .sb-net {
    max-height: 36vh;
  }
}
@media print {
  .kinetic {
    display: none;
  }
}

/* Team fit: tabs choose a kind of team, the panel answers with evidence. */
.fit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.fit-tabs button {
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.fit-tabs .icon {
  width: 17px;
  height: 17px;
}
.fit-tabs button:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 40%, transparent);
}
.fit-tabs button[aria-selected="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
.fit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}
.fit-panel + .fit-panel {
  margin-top: 16px;
}
.fit-panel[hidden] {
  display: none;
}
[data-fit-ready] .fit-panel:not([hidden]) {
  animation: fit-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fit-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.fit-proof,
.fit-side {
  padding: clamp(24px, 3.2vw, 48px);
  min-width: 0;
}
.fit-side {
  border-left: 1px solid var(--glass-line);
}
.fit-proof :is(h2, h3, h4) {
  margin-top: 14px;
  font-size: clamp(26px, 2.4vw, 36px);
  letter-spacing: -0.035em;
}
.fit-proof :is(h2, h3, h4) a {
  text-decoration: none;
}
.fit-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: clamp(18px, 2.4vw, 34px);
}
.fit-metric strong {
  font-size: clamp(64px, 8vw, 132px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}
.fit-metric sup {
  font-size: 0.4em;
  vertical-align: top;
  letter-spacing: -0.02em;
}
.fit-metric span {
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--muted);
}
.fit-caption {
  margin-top: 10px;
  color: var(--muted);
}
.fit-body {
  margin-top: 22px;
  max-width: 44ch;
  font-size: 15px;
  color: var(--muted);
}
.fit-skills {
  list-style: none;
  margin: 14px 0 30px;
  padding: 0;
  border-top: 1px solid var(--glass-line);
}
.fit-skills li {
  margin: 0;
  border-bottom: 1px solid var(--glass-line);
}
.fit-skills a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  text-decoration: none;
  font-size: 15.5px;
}
.fit-skills a::after {
  content: "↗";
  color: var(--muted);
  transition: color 0.2s;
}
.fit-skills a:hover::after {
  color: var(--cyan);
}
.fit-subject {
  margin-top: 12px;
  color: var(--muted);
}
.fit-subject strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.fit-side .actions {
  margin-top: 28px;
  gap: 10px;
}

/* Tools by project. */
.matrix {
  font-size: 14px;
  margin: 24px 0 0;
}
.matrix th,
.matrix td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--glass-line);
}
.matrix thead th {
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}
.matrix thead th:first-child,
.matrix tbody th {
  text-align: left;
  font-weight: 500;
}
.matrix thead a {
  text-decoration: none;
}
.matrix td {
  text-align: center;
}
.matrix td.on::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}
.matrix tbody tr:hover {
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.matrix-scroll table {
  min-width: 640px;
}

/* Markdown pages. */
.doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.doc-tags li {
  margin: 0;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.doc-tags .is-lang {
  color: var(--bg);
  background: var(--cyan);
}
.md-intro {
  border-top: 0;
  padding-top: 8px;
  font-size: 17.5px;
}
.md-doc .document-section li {
  margin-block: 8px;
}
.md-doc .document-section strong {
  color: var(--text);
}
.md-doc code {
  padding: 2px 6px;
  border-radius: 6px;
  font:
    0.88em Consolas,
    monospace;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
}
.md-doc pre {
  position: relative;
  border-left: 0;
  border: 1px solid var(--glass-line);
}
.md-doc pre code {
  padding: 0;
  background: none;
  font-size: 14px;
}
.md-doc blockquote {
  margin: 24px 0;
  padding-left: 22px;
  border-left: 2px solid var(--control-line);
  color: var(--muted);
}
.md-doc hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--glass-line);
}
.copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font:
    600 10.5px/1 Consolas,
    monospace;
  letter-spacing: 0.08em;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
}
pre:hover .copy-code,
.copy-code:focus-visible {
  opacity: 1;
}
.document-nav a.active {
  color: var(--cyan);
}
.lib-new {
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--cyan);
  letter-spacing: 0.08em;
}

/* Every page: the heading arrives, then rows and cards as they are reached. */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="off"]) .page-heading > * {
    animation: head-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  :root:not([data-motion="off"]) .page-heading > :nth-child(2) {
    animation-delay: 0.08s;
  }
  :root:not([data-motion="off"]) .page-heading > :nth-child(3) {
    animation-delay: 0.16s;
  }
}
@keyframes head-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-motion="off"])
      :is(
        .resource-row,
        .skill-row,
        .domain-tile,
        .lib-card,
        .contribution-map article,
        .delivered-grid article,
        .cv-options article,
        .timeline-row,
        .fit,
        .matrix tbody tr,
        .document-section
      ) {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@media (max-width: 860px) {
  .fit-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .fit-side {
    border-left: 0;
    border-top: 1px solid var(--glass-line);
  }
  .fit-tabs button {
    min-height: 44px;
    padding: 0 14px 0 12px;
    font-size: 13.5px;
  }
}
@media print {
  .fit-tabs,
  .copy-code {
    display: none;
  }
}
.matrix {
  width: 100%;
}
