:root {
  color-scheme: dark;
  --bg: #0b1017;
  --panel: #121b25;
  --panel-raised: #17222d;
  --text: #f0f3ee;
  --muted: #9ba8ad;
  --quiet: #86949a;
  --accent: #c1f36b;
  --line: #27333b;
  --glow: #183b35;
  --signal: #6fc3ff;
  --warn: #f0a35e;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
  --font-mono: "DM Mono", monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="arctic"] {
  color-scheme: light;
  --bg: #f3f6f7;
  --panel: #fff;
  --panel-raised: #e9f0f2;
  --text: #15252b;
  --muted: #52646b;
  --quiet: #55676e;
  --accent: #006d63;
  --line: #cdd9dc;
  --glow: #d7eeea;
  --signal: #1d5fa8;
  --warn: #9a4f12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 75% 4%, color-mix(in srgb, var(--glow) 65%, transparent), transparent 34rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font-body);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 1.1%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.1%) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button,
select,
input {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
select,
input {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
}

button:hover,
button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--bg);
}

.skip:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
  line-height: 1.1;
}

.brand:hover {
  text-decoration: none;
}

.brand strong {
  font: 800 1.125rem/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--accent);
  font-size: 0.75rem;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(17px, 3vw, 35px);
}

.navlinks a {
  color: var(--muted);
  font-size: 0.9375rem;
}

.navlinks a:hover {
  color: var(--accent);
}

.labtop select {
  padding: 8px 27px 8px 10px;
  font-size: 0.875rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font: 0.8125rem/1.5 var(--font-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2,
h3 {
  font-family: var(--font-display);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, white);
  color: var(--bg);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 35px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}

.stat {
  min-height: 125px;
  padding: 21px 20px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font: 700 clamp(20px, 2.8vw, 32px)/1.15 var(--font-display);
  letter-spacing: -0.06em;
}

.stat strong i {
  color: var(--text);
  font-size: 0.75em;
  font-style: normal;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  column-gap: 42px;
  margin-bottom: 28px;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section-intro > .muted {
  max-width: 460px;
  justify-self: end;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 28px 0 16px;
}

.filters button,
.quick button {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.project[hidden] {
  display: none !important;
}

.project {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--panel) 70%, var(--bg)));
  transition: transform 180ms ease, border-color 180ms ease;
}

.project:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.project-featured {
  background:
    radial-gradient(ellipse at 95% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    var(--panel);
}

.project .eyebrow {
  margin-bottom: 9px;
  font-size: 0.75rem;
}

.project .eyebrow span {
  color: var(--quiet);
}

.project h3 {
  margin-bottom: 9px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.project-summary {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.8;
}

details {
  width: 100%;
  margin: 5px 0 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

summary {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

details p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.project-link {
  margin-top: auto;
  margin-bottom: 14px;
  font: 0.8125rem var(--font-mono);
}

.project-link span {
  padding-left: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.project-outcome {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}

.project-outcome strong {
  color: var(--accent);
  font: 700 24px var(--font-display);
}

.project-outcome span {
  color: var(--quiet);
  font-size: 0.8125rem;
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 0.75rem;
}

.lab {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.labtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.labtop label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.labtop button,
#command button {
  padding: 9px 12px;
  color: var(--accent);
  font-size: 0.8125rem;
}

.labtop button span {
  padding-left: 4px;
  font-size: 0.6875rem;
}

.diagram {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 23px 0 12px;
}

.stage {
  min-height: 40px;
  flex: 1 1 0;
  padding: 8px 7px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.stage.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--glow) 75%, transparent);
  color: var(--accent);
}

.arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font: 0.9375rem var(--font-mono);
}

.explanation {
  min-height: 24px;
  margin: 4px 0 7px;
  color: var(--accent);
  font: 0.8125rem/1.6 var(--font-mono);
}

.small {
  font-size: 0.75rem;
}

.muted {
  color: var(--muted);
}

.lab > .small {
  margin: 0;
}

.terminal {
  margin-top: 13px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, var(--panel));
  font-family: var(--font-mono);
}

.terminalbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.75rem;
}

.terminal-lights {
  color: var(--accent);
  letter-spacing: 0.1em;
}

.terminal-caption {
  color: var(--quiet);
}

#output {
  min-height: 68px;
  max-height: 190px;
  overflow: auto;
  padding: 15px 0;
  color: var(--accent);
  font-size: 0.8125rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

#output code {
  color: var(--text);
  font: inherit;
}

#command {
  display: flex;
  align-items: center;
  gap: 9px;
}

#command label {
  color: var(--accent);
  font-size: 0.9375rem;
}

#cmd {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  font: 0.8125rem var(--font-mono);
}

#cmd::placeholder {
  color: var(--quiet);
}

.quick {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.quick button {
  padding: 5px 8px;
  font: 0.75rem var(--font-mono);
}

.credential-note) {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.credential-note {
  margin-top: 22px;
  padding: 12px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
  color: var(--muted);
  font-size: 0.8125rem;
}

.credential-note span {
  color: var(--accent);
}

.journey h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.journey {
  display: grid;
  gap: 8px;
}

.journey p {
  margin: 0;
  font-size: 0.8125rem;
}

.journey strong,
.journey span {
  display: block;
}

.journey strong {
  color: var(--text);
  font-weight: 600;
}

.journey span {
  margin-top: 3px;
  color: var(--quiet);
  line-height: 1.5;
}

.journey ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.journey li::marker {
  color: var(--accent);
}

.footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--quiet);
}

.footer p {
  margin: 0;
  font: 0.75rem var(--font-mono);
  letter-spacing: 0.06em;
}

.footer p span {
  color: var(--accent);
}

.footer > a:last-child {
  color: var(--muted);
  font: 0.75rem var(--font-mono);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.project.reveal.visible:hover {
  transform: translateY(-3px);
}

/* Running platform diagram */
.infra {
  margin: 0 0 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.infra[hidden] {
  display: none;
}

.infra-controls,
.infra-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.infra-controls {
  justify-content: space-between;
}

.infra-controls button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.875rem;
}

.infra-events button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
}

.infra-log {
  min-height: 3.4em;
  margin: 14px 0 6px;
  color: var(--text);
  font-size: 0.9375rem;
}

.infra-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

.infra-svg.is-narrow {
  max-width: 440px;
  margin-inline: auto;
}

.infra-cluster {
  fill: color-mix(in srgb, var(--bg) 55%, var(--panel));
  stroke: var(--line);
}

.infra-cluster-label {
  fill: var(--muted);
  font-size: 13px;
  text-anchor: end;
}

.infra-link {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 45%, var(--line));
  stroke-width: 1.5;
  transition: opacity 300ms ease;
}

.link-git,
.link-sync,
.link-scale,
.link-heal,
.link-lag,
.link-metrics {
  stroke-dasharray: 4 5;
}

.infra-link.is-down {
  opacity: 0.2;
}

.infra-box > rect:first-child {
  fill: var(--panel-raised);
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke 250ms ease, fill 250ms ease;
}

.infra-box.is-active > rect:first-child {
  fill: color-mix(in srgb, var(--accent) 12%, var(--panel-raised));
  stroke: var(--accent);
}

.infra-box[data-status="failed"] > rect:first-child {
  fill: color-mix(in srgb, var(--warn) 14%, var(--panel-raised));
  stroke: var(--warn);
}

.infra-box[data-status="joining"] > rect:first-child {
  stroke: var(--accent);
  stroke-dasharray: 6 5;
  animation: infra-march 700ms linear infinite;
}

.infra-box[data-status="off"] > rect:first-child {
  fill: transparent;
  stroke-dasharray: 4 5;
}

.infra-title {
  fill: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}

.infra-caption {
  fill: var(--muted);
  font-size: 12px;
  text-anchor: middle;
}

.infra-title.is-start {
  text-anchor: start;
}

.infra-caption.is-end {
  text-anchor: end;
}

[data-status="failed"] .infra-caption {
  fill: var(--warn);
}

.infra-pod {
  fill: transparent;
  stroke: var(--line);
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 300ms ease, stroke 300ms ease, transform 300ms ease;
}

.infra-pod[data-pod="v1"] {
  fill: var(--accent);
  stroke: var(--accent);
}

.infra-pod[data-pod="v2"] {
  fill: var(--signal);
  stroke: var(--signal);
}

.infra-pod[data-pod="starting"] {
  stroke: var(--accent);
  stroke-width: 2;
  transform: scale(0.72);
  animation: infra-blink 800ms ease-in-out infinite alternate;
}

.infra-pod[data-pod="failed"] {
  fill: var(--warn);
  stroke: var(--warn);
  transform: scale(0.8);
}

.infra-packet {
  fill: var(--accent);
}

.infra-packet.is-event {
  fill: var(--signal);
}

.infra-packet.is-control {
  fill: var(--text);
}

.infra-packet.is-metric {
  fill: var(--muted);
}

.infra.is-paused * {
  animation-play-state: paused !important;
}

.infra-readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 16px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.infra-readouts dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.infra-readouts dd {
  margin: 0;
  color: var(--text);
  font: 700 1.375rem var(--font-display);
  font-variant-numeric: tabular-nums;
}

.infra figcaption {
  color: var(--quiet);
  font-size: 0.8125rem;
}

@keyframes infra-march {
  to {
    stroke-dashoffset: -22;
  }
}

@keyframes infra-blink {
  from {
    opacity: 0.35;
  }
}

/* Page load: the headline rises into place, then the portrait settles. */

@keyframes rise {
  from {
    transform: translateY(110%);
  }
}

/* Motion that answers an action */
.arrow {
  transition: opacity 160ms ease;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 260ms ease, content-visibility 260ms allow-discrete;
  }

  details[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 850px) {
  .shell {
    width: min(100% - 48px, 720px);
  }

  .section {
    padding: 75px 0;
  }

  .stat {
    padding-inline: 13px;
  }

}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 125px;
  }

  .shell {
    width: calc(100% - 36px);
  }

  .nav {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 10px;
  }

  .navlinks {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0 2px;
  }

  .navlinks a {
    font-size: 0.8125rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    min-height: 110px;
    padding: 17px;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:nth-child(even) {
    border-right: 0;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .stat strong {
    font-size: clamp(21px, 6vw, 29px);
  }

  .section {
    padding: 62px 0;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .section-intro .eyebrow {
    grid-column: auto;
  }

  .section-intro > .muted {
    justify-self: start;
    margin-top: 2px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: 360px;
    padding: 18px;
  }

  .lab {
    padding: 15px;
  }

  .infra {
    padding: 12px;
  }

  .infra-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .infra-events {
    display: contents;
  }

  .infra-controls button {
    padding-inline: 10px;
  }

  .infra-log {
    min-height: 5em;
  }

  .diagram {
    flex-direction: column;
    gap: 6px;
    padding: 18px 0;
  }

  .stage {
    width: 100%;
    flex: none;
    min-height: 36px;
  }

  .arrow {
    transform: rotate(90deg);
  }

  .terminal {
    padding: 15px;
  }

  .terminalbar {
    flex-wrap: wrap;
  }

  .terminal-caption {
    width: 100%;
  }

  .footer {
    min-height: 82px;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-block: 15px;
  }

  .footer p {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 380px) {

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 0;
    border-right: 0 !important;
  }

  .stat:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions button,
.nav-contact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* Hero: who I am, beside a platform that is running */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 40px;
  padding: 34px 0 48px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 75%, transparent);
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(56px, 7.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.role {
  margin-bottom: 18px;
  color: var(--accent);
  font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--font-display);
  letter-spacing: -0.03em;
}

.lead {
  max-width: 480px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-credential {
  margin: 0 0 14px;
  font-size: 0.9375rem;
}

.hero-credential span {
  color: var(--accent);
}

.hero-socials {
  display: flex;
  gap: 22px;
  font-size: 0.9375rem;
}

.hero .infra {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
}

.hero .infra-log {
  margin-block: 10px 4px;
}

.hero .infra-readouts {
  margin: 10px 0 8px;
  padding-top: 10px;
}

/* Larger, roomier sections */
.section-intro h2,
.about h2 {
  margin-bottom: 0;
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.stats,
.project,
.lab,
.terminal {
  border-radius: 14px;
}

.stats {
  overflow: hidden;
}

/* Project scenes: a small picture of what each project does */
.scene {
  display: flex;
  min-width: 0;
  width: 100%;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.8125rem;
  text-align: center;
}

.scene-row {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 8px;
}

.box {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.box small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.scene-note {
  margin: 0;
  color: var(--muted);
}

.scene-key {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.box small.swap,
.swap {
  display: inline-grid;
  color: var(--accent);
}

.swap i {
  grid-area: 1 / 1;
  font-style: normal;
}

/* The resting state is the finished state; animations start from the beginning. */
.swap i:first-child {
  opacity: 0;
}

.green {
  border-color: var(--accent);
}

.blue {
  opacity: 0.45;
}

.sick {
  border-color: var(--accent);
}

.pod-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.pod-grid i {
  height: 24px;
  border-radius: 5px;
  background: var(--accent);
}

.scene-tenant ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-tenant li {
  padding: 8px;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.scene-tenant li::before {
  margin-right: 6px;
  color: var(--accent);
  content: "✓";
}

.playing .swap i:first-child,
.project:hover .swap i:first-child {
  animation: show-then-hide 3s both;
}

.playing .swap i:last-child,
.project:hover .swap i:last-child,
.playing .green,
.project:hover .green {
  animation: arrive 3s both;
}

.playing .blue,
.project:hover .blue {
  animation: drain 3s both;
}

.playing .sick,
.project:hover .sick {
  animation: recover 3s both;
}

.playing .pod-grid i,
.project:hover .pod-grid i {
  animation: roll 700ms calc(var(--i) * 110ms) both;
}

.playing li,
.project:hover li {
  animation: provision 500ms calc(var(--i) * 550ms + 200ms) both;
}

@keyframes show-then-hide {
  0%, 55% { opacity: 1; }
  65%, 100% { opacity: 0; }
}

@keyframes arrive {
  0%, 45% { opacity: 0; }
  70%, 100% { opacity: 1; }
}

@keyframes drain {
  0%, 55% { opacity: 1; }
  100% { opacity: 0.45; }
}

@keyframes recover {
  0%, 55% { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, var(--panel)); }
  75%, 100% { border-color: var(--accent); background: var(--panel); }
}

@keyframes roll {
  0% { background: var(--accent); }
  45% { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); transform: scale(0.7); }
  100% { background: var(--accent); }
}

@keyframes provision {
  from { opacity: 0.2; transform: translateY(6px); }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.about .portrait {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin-top: 30px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 35%;
}

.about h2 {
  margin-bottom: 22px;
}

.about-copy > p:not(.eyebrow, .credential-note) {
  color: var(--muted);
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 12px;
}

.detail-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.detail-block h3,
.journey h3 {
  margin-bottom: 12px;
  font-size: 1.0625rem;
}

.about-details .journey {
  grid-column: 1 / -1;
  margin-top: 18px;
}

/* Contact */
.contact {
  margin-bottom: 20px;
  padding: 70px 6%;
  border: 0;
  border-radius: 22px;
  background: var(--accent);
  color: var(--bg);
  text-align: center;
}

.contact h2 {
  margin-bottom: 12px;
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--bg);
  font: 700 clamp(1.15rem, 3.6vw, 2.4rem)/1.3 var(--font-display);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.contact .actions {
  justify-content: center;
  margin: 30px 0 0;
}

.contact .button-primary {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--text);
}

.contact .button-secondary {
  border-color: var(--bg);
  color: var(--bg);
}

.contact button.button-secondary {
  background: transparent;
}

.contact .button:hover,
.contact button.button-secondary:hover {
  color: var(--accent);
  background: var(--bg);
}

.contact .button-primary:hover {
  color: var(--text);
}

.contact :focus-visible {
  outline-color: var(--bg);
}

#copy-status {
  min-height: 1.7em;
  margin: 14px 0 0;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .infra {
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .nav-actions {
    margin-left: auto;
    padding-left: 10px;
    gap: 6px;
  }

  .nav-actions button,
  .nav-contact {
    padding-inline: 10px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero .infra {
    padding: 12px;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 46px 16px;
  }
}

@media (max-width: 440px) {
  .brand small {
    display: none;
  }
}

@media (max-width: 350px) {
  .brand strong {
    font-size: 1rem;
  }

  .nav-actions {
    padding-left: 4px;
    gap: 4px;
  }

  .nav-actions button,
  .nav-contact {
    padding-inline: 7px;
    font-size: 0.75rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
