/* TypeSafe-inspired scale, desktop windows, and bright editorial space. */
:root {
  --paper: #fff;
  --ink: #202020;
  --muted: #505050;
  --line: #b6b6b6;
  --lilac: #c0d2e5;
  --sans: Arial, Helvetica, sans-serif;
}
body {
  background: #fff;
  color: #202020;
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: auto;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  border: 0;
  max-width: none;
}
.site-header .wordmark {
  font:
    18px/1.3 Arial,
    sans-serif;
  letter-spacing: -0.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  height: 70px;
  padding: 8px 9px;
  background: white;
}
.site-header .pm-header-logo {
  display: block;
  width: 68px;
  height: auto;
  transform: skewX(-12deg);
}
.site-header nav {
  gap: 5px;
}
.site-header nav a,
.header-email {
  font:
    18px/1.3 Arial,
    sans-serif;
  background: white;
  padding: 8px 9px;
  border: 0;
  white-space: nowrap;
}
.site-header nav a span {
  display: none;
}
.header-email {
  background: #202020;
  color: #fff;
  margin: 0;
}
.header-email span {
  margin-left: 10px;
}
.site-header a:hover {
  background: #d5e2ee;
  color: #202020;
}
.system-bar {
  position: absolute;
  z-index: 4;
  right: 24px;
  top: 72px;
  width: auto;
  height: auto;
  display: block;
  padding: 0;
  border: 1px solid #222;
  box-shadow:
    inset 0 0 0 2px #fff,
    2px 2px 0 #0002;
  font: 12px var(--mono);
  letter-spacing: 0;
  background: #e7e7e7;
}
.system-bar > span:first-child {
  display: block;
  background: #222;
  color: #fff;
  padding: 5px 9px;
  font-size: 10px;
}
.system-bar > span:last-child {
  padding: 8px 11px;
  gap: 13px;
}
.sky-banner {
  height: 220px;
  position: relative;
  background: #d3e8f8 url(assets/cloud-banner.jpg) center/cover no-repeat;
  background-blend-mode: luminosity;
  isolation: isolate;
  background-size: cover;
  background-position: center 45%;
}
.sky-banner::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #fff);
  z-index: -1;
}
.launch-window {
  position: absolute;
  bottom: 22px;
  left: 5%;
  width: 360px;
  max-width: calc(100% - 40px);
  border: 1px solid #202020;
  padding: 2px;
  background: #e2e2e2;
  box-shadow:
    1px 1px #fff inset,
    -1px -1px #777 inset;
  font: 13px/1.45 var(--mono);
}
.window-title {
  background: #202020;
  color: #fff;
  padding: 4px 7px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.launch-window > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 7px;
  border: 1px solid #8b8b8b;
  margin-top: 2px;
}
.launch-link {
  text-decoration: underline;
  white-space: nowrap;
}
.launch-window > a:hover {
  background: #eee;
}
/* Keep the introduction and its evidence on one shared editorial grid. */
.hero {
  display: block;
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 42px 48px 24px;
  background: #fff;
}
.hero-copy {
  text-align: center;
}
.hero .eyebrow {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
  font: 11px/1.5 var(--mono);
  letter-spacing: 0;
}
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-role::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #526f8d;
}
.hero-location {
  color: var(--muted);
  border-left: 1px solid #d0d2d4;
  padding-left: 18px;
}
.hero h1 {
  font:
    600 clamp(52px, 7vw, 96px)/1.05 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: -0.075em;
  margin: 0 0 28px;
  text-shadow: none;
}
.hero h1 span {
  color: inherit;
}
.hero-intro {
  display: block;
}
.hero-intro p {
  font:
    20px/1.6 Arial,
    sans-serif;
  letter-spacing: -0.4px;
  max-width: 660px;
  margin: 0 auto;
  color: #505457;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 22px;
  font:
    500 15px/1.4 Arial,
    sans-serif;
  border: 1px solid #cdd0d4;
  border-radius: 6px;
  background: #fff;
  transition:
    background 160ms,
    border-color 160ms;
}
.hero-actions a:first-child {
  background: #212427;
  border-color: #212427;
  color: #fff;
}
.hero-actions a span {
  font-size: 21px;
  line-height: 1;
}
.hero-actions a:hover {
  background: #dee8f1;
  color: #212427;
  border-color: #899eb3;
}
.orbit-section {
  background-color: #b2c8df;
  background-image: radial-gradient(#3c4a582f 0.7px, transparent 0.8px);
  background-size: 5px 5px;
  padding-top: 50px;
  padding-bottom: 50px;
  border-top: 1px solid #778ba0;
  border-bottom: 1px solid #778ba0;
}
.orbit-heading {
  margin-bottom: 27px;
}
.orbit-heading .eyebrow {
  display: inline-block;
  background: #202020;
  color: white;
  padding: 5px 8px;
  font-size: 11px;
  letter-spacing: 0;
}
.orbit-heading h2 {
  font:
    600 63px/0.98 Arial,
    sans-serif;
  letter-spacing: -0.055em;
  font-style: normal;
}
.orbit-heading h2 > span {
  border: 0;
  border-radius: 0;
  background: #e7e7e7;
  font: 15px var(--mono);
  padding: 6px 10px;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #777;
}
.orbit-heading > p {
  color: #242a30;
  font-size: 16px;
}
.game-shell {
  background: #ddd;
  border: 1px solid #222;
  border-radius: 0;
  box-shadow:
    inset 1px 1px #fff,
    inset -1px -1px #777,
    5px 5px 0 #21252a22;
  padding: 4px;
}
.player-title {
  background: #222;
  color: #fff;
  padding: 4px 9px;
  min-height: 31px;
  font: 12px var(--mono);
  margin-bottom: 4px;
}
.player-title i {
  font-size: 15px;
}
.player-title button {
  border: 1px solid #fff;
  background: #ddd;
  color: #222;
  border-radius: 0;
  box-shadow: inset -1px -1px #777;
  padding: 3px 7px;
  font-size: 11px;
}
.game-stage {
  border-radius: 0;
  background: linear-gradient(155deg, #9cb5c2, #b1caca 60%, #b8c6d4);
}
.game-stage::after {
  opacity: 0.025;
}
.game-hud {
  text-shadow: 0 1px 3px #23434b;
}
.start-screen h3 {
  font:
    600 75px/0.95 Arial,
    sans-serif;
  letter-spacing: -0.065em;
}
.start-screen h3 em {
  font-style: normal;
}
.intro-loading,
.start-hint {
  background: #223a424f;
  padding: 4px 6px;
  display: inline-block;
}
.gel-button {
  border-radius: 2px;
  background: linear-gradient(#c3fff2, #84d3c9);
  box-shadow:
    inset 2px 2px #f6fffc,
    inset -2px -2px #518881,
    2px 2px #223c4555;
  border: 1px solid #294b55;
  font-weight: normal;
}
.race-controls button {
  border-radius: 0;
  backdrop-filter: none;
}
.media-panel {
  border-radius: 0;
  border: 1px solid #777;
  background: #dcdcdc;
  box-shadow: inset 1px 1px #fff;
  margin-top: 4px;
}
.track-info strong {
  font-size: 15px;
}
.track-info > div > span {
  font-size: 10px;
}
.layer {
  font-size: 10px;
}
.layer small {
  font-size: 9px;
}
.layer.active .eq i {
  background: linear-gradient(#d3ffd9, #98bca3);
  box-shadow: none;
  border: 1px solid #77927e;
  border-bottom: 0;
}
.eq i {
  border-radius: 0;
  background: #b9b9b9;
}
.streak-display > span {
  font-size: 9px;
}
.game-notes {
  color: #252b32;
}
.game-notes p:first-child {
  font-size: 14px;
}
.game-notes p:last-child {
  font-size: 11px;
}
.section {
  padding-top: 95px;
  padding-bottom: 95px;
}
.work.section {
  padding-top: 40px;
}
.section-heading {
  align-items: start;
  margin-bottom: 60px;
}
.section-heading .eyebrow {
  font: 12px var(--mono);
  margin-bottom: 27px;
  letter-spacing: 0;
}
h2 {
  font:
    600 clamp(36px, 4.5vw, 64px)/1.05 Arial,
    sans-serif;
  letter-spacing: -0.055em;
}
.section-heading > p {
  font-size: 18px;
  padding-top: 45px;
  color: #333;
}
.project-list {
  border-top: 1px solid #222;
}
.project {
  padding: 20px 0 18px;
}
.project-top,
.project-bottom {
  font-size: 11px;
  letter-spacing: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.project-body {
  padding: 32px 0 38px;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
}
.project h3 {
  font:
    500 54px/1.04 Arial,
    sans-serif;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}
.project:hover h3 {
  color: #202020;
}
.project h3 a,
.experience > div h3 a,
.experience-link,
.workbench-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.project h3 a:hover,
.experience > div h3 a:hover,
.experience-link:hover,
.workbench-link:hover {
  color: #567493;
}
.workbench-link {
  display: inline-block;
  margin-top: 16px;
  font: 11px/1.6 var(--mono);
}
.project-body > div:first-child > p {
  font-size: 22px;
  letter-spacing: -0.4px;
}
.project-body > div:last-child > p {
  font-size: 18px;
  line-height: 1.5;
  color: #444;
}
.project-stats strong {
  font:
    500 44px Arial,
    sans-serif;
  letter-spacing: -2px;
}
.project-stats {
  flex-wrap: wrap;
}
.project-stats span {
  font-size: 12px;
}
.project-tags span {
  border-radius: 0;
  background: #eee;
  border: 1px solid #ccc;
  font-size: 12px;
}
.details-toggle {
  font-size: 13px;
  text-decoration: underline;
}
.project-details {
  background: #eee;
  border: 1px solid #888;
  padding: 25px;
  font-size: 16px;
  box-shadow: inset 2px 2px #fff;
}
.project-contribution {
  margin: 0;
}
.project-contribution > div + div {
  margin-top: 18px;
}
.project-contribution dt {
  font: 10px/1.5 var(--mono);
  text-transform: uppercase;
  color: #59728b;
  margin-bottom: 5px;
}
.project-contribution dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #43464a;
  max-width: 560px;
}
.project > .recommendation {
  max-width: 720px;
  margin: 0 0 28px auto;
}
.offclock {
  background: #f4f7fa;
  border-top: 1px solid #d7dce0;
}
.offclock .section-heading {
  margin-bottom: 32px;
}
.offclock .small-projects {
  margin-top: 0;
  padding-top: 24px;
}
.offclock .small-projects > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 8%;
}
@media (max-width: 700px) {
  .project-contribution dd {
    font-size: 15px;
  }
  .offclock .small-projects > div {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.project-media {
  margin-bottom: 24px;
}
.project-media > summary {
  width: fit-content;
  cursor: pointer;
  padding: 12px 0;
  font: 12px/1.6 var(--mono);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-media > summary:hover {
  color: #567493;
}
.project-media > summary:focus-visible {
  outline: 3px solid #445dcc;
  outline-offset: 5px;
}
.project-media[open] > summary {
  margin-bottom: 16px;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 840px;
  margin: 0 auto 24px;
}
.project-gallery figure {
  margin: 0;
  min-width: 0;
}
.project-gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #08172a;
}
.project-gallery figcaption {
  margin-top: 10px;
  color: #5d6165;
  font: 9px/1.6 var(--mono);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 0 0 24px;
}
.project-links a {
  font: 12px/1.6 var(--mono);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-gallery:focus-visible {
  outline: 3px solid #445dcc;
  outline-offset: 5px;
}
@media (max-width: 700px) {
  .project-gallery {
    grid-template-columns: repeat(3, 76%);
    max-width: 100%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 5px 5px 14px;
  }
  .project-gallery figure {
    scroll-snap-align: start;
  }
}
.about {
  background: #f8f9fa;
  border-color: #dfe2e5;
}
.about-heading {
  margin-bottom: 52px;
}
.about-heading .eyebrow {
  margin-bottom: 30px;
  font: 12px var(--mono);
}
.about-lead {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 7%;
  align-items: center;
}
.about h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -3px;
}
.about h2 span {
  color: #59728b;
}
.about-opening {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.6px;
  color: #24272a;
}
.about-narrative {
  margin: 18px 0 22px;
  font-size: 15px;
  line-height: 1.75;
  color: #5b5e62;
}
.about-contact {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid #59728b;
  color: #3d5063;
  font: 12px/1.5 var(--mono);
  text-decoration: none;
}
.about-contact:hover {
  color: #24272a;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 7%;
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid #cbd2d9;
}
.about .about-label {
  margin: 0 0 15px;
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.8px;
  color: #616b76;
}
.about-perspectives {
  margin: 0;
}
.about-perspectives > div {
  padding: 26px 0;
  border-bottom: 1px solid #d5d9dd;
}
.about-perspectives dt {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.6px;
}
.about-perspectives dt span {
  flex-shrink: 0;
  font: 11px var(--mono);
  color: #59728b;
}
.about-perspectives dd {
  max-width: 390px;
  margin: 12px 0 0 32px;
  font-size: 15px;
  line-height: 1.7;
  color: #5b5e62;
}
.about-background {
  margin: 26px 0 0;
  max-width: 430px;
  font-size: 14px;
  line-height: 1.7;
  color: #5b5e62;
}
.about-notebook {
  padding: 24px 28px;
  background: #e8ecf1;
  border: 1px solid #d4dce3;
  border-radius: 2px;
}
.about-notebook-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  color: #616b76;
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.4px;
}
.about-notebook-content {
  padding: 0;
}
.about-globe-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.about-globe-heading h3 {
  margin: 0;
  color: #24272a;
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.about-globe-heading h3 span {
  display: inline-block;
  margin-top: 7px;
  color: #59728b;
  font-size: 0.65em;
  letter-spacing: -0.3px;
}
.about-world-copy {
  max-width: 440px;
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5b5e62;
}
.globe-motion {
  flex-shrink: 0;
  padding: 6px 8px;
  border: 1px solid #95a4b3;
  background: transparent;
  color: #464f59;
  font: 10px var(--mono);
  cursor: pointer;
}
.about-globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3;
  margin: 8px 0 12px;
  background: radial-gradient(ellipse, #fbfcfd 0%, #fbfcfd00 68%);
}
.about-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
.globe-ready canvas {
  visibility: visible;
}
.globe-pin-label {
  position: absolute;
  transform: translateY(-50%);
  padding: 6px 9px;
  border: 1px solid #cbd2d9;
  background: #fbfcfe;
  color: #2f3c49;
  font: 12px var(--mono);
  pointer-events: none;
  display: none;
}
.globe-pin-label.globe-label-home {
  border-color: #ead79b;
  background: #fff4ca;
}
.globe-ready .globe-pin-label:not([hidden]) {
  display: block;
}
.globe-pin-label small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.6px;
}
.globe-fallback {
  position: absolute;
  inset: 25% 10%;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}
.globe-ready .globe-fallback {
  display: none;
}
.flight-progress {
  height: 2px;
  margin-bottom: 20px;
  background: #d4dce3;
}
.flight-progress span {
  display: block;
  height: 100%;
  width: var(--flight-progress, 0%);
  background: #a66f22;
}
.globe-flight {
  padding-top: 20px;
  border-top: 1px solid #cbd2d9;
}
.globe-flight > .about-label {
  margin: 0 0 8px;
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: #677078;
}
.globe-flight > .flight-destination {
  margin: 0;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: -0.8px;
  color: #2f3c49;
}
.flight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: #677078;
  font: 10px var(--mono);
}
.flight-controls {
  display: flex;
  gap: 8px;
}
.flight-controls button {
  width: 56px;
  height: 44px;
  border: 1px solid #95a4b3;
  background: transparent;
  color: #2f3c49;
  font: 12px var(--mono);
  cursor: pointer;
}
.flight-controls button:hover {
  background: #dce2e9;
}
.flight-controls button:focus-visible {
  outline: 2px solid #2f3c49;
  outline-offset: 3px;
}
.globe-motion:focus-visible {
  outline: 2px solid #2f3c49;
  outline-offset: 3px;
}
.about-foundations {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  margin-top: 44px;
  padding: 28px 30px;
  background: #24272a;
  color: #fff;
}
.about-foundations .about-label {
  color: #cbd2d9;
}
.about-foundations p {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.5px;
}
.about-tools {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.about-tools li {
  padding: 7px 10px;
  border: 1px solid #525b65;
  color: #eef2f6;
  font: 11px/1.4 var(--mono);
}
.experience {
  background: #fff;
  border: 1px solid #d5d9dd;
  border-radius: 10px;
  padding: 0 26px;
  box-shadow: 0 8px 30px #232b3306;
  overflow: hidden;
}
.experience .experience-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 -26px;
  padding: 18px 26px;
  background: #e7ebee;
  font: 12px/1.5 var(--mono);
  letter-spacing: 0;
}
.experience-title span {
  font-size: 9px;
  color: #616b76;
}
.experience > div {
  position: relative;
  border-left: 0;
  padding: 16px 0 16px 19px;
}
.experience > div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 21px;
  width: 6px;
  height: 6px;
  background: #aeb3b8;
  border-radius: 50%;
}
.experience > div:nth-child(2)::before,
.experience > div:nth-child(3)::before {
  background: #59728b;
  box-shadow: 0 0 0 4px #edf2f6;
}
.experience > div + div {
  border-top: 1px solid #e8ebee;
  padding-top: 16px;
}
.experience > div > span {
  color: #6a6f74;
  font-size: 9px;
}
.experience h3 {
  font-size: 21px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin-top: 9px;
}
.experience p {
  font-size: 14px;
  line-height: 1.5;
  color: #5c6065;
}
.skills-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.skills-line span {
  padding: 6px 10px;
  border: 1px solid #d7dce0;
  border-radius: 4px;
  background: #fff9;
  color: #525b65;
  font: 10px/1.5 var(--mono);
}
.community-note .eyebrow {
  font-size: 10px;
  color: #616b76;
}
.community-note h3 {
  margin: 14px 0;
  font-size: 25px;
  letter-spacing: -0.7px;
}
.community-note > p:not(.eyebrow) {
  color: #5b5e62;
  font-size: 15px;
  line-height: 1.7;
}
.community-note > a,
.recommendation a {
  display: inline-block;
  margin-top: 16px;
  font: 10px/1.6 var(--mono);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.recommendation {
  margin: 0;
  padding: 24px 28px;
  background: #e7ebee;
  border-radius: 8px;
}
.recommendation blockquote {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.4px;
}
.recommendation figcaption {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}
.recommendation figcaption > span {
  font-size: 13px;
}
.recommendation a {
  margin: 0;
}
@media (max-width: 700px) {
  .recommendation {
    padding: 22px;
  }
  .recommendation blockquote {
    font-size: 20px;
  }
}
.small-projects {
  border-color: #aaa;
}
.small-projects h3 {
  font:
    500 27px/1.1 Arial,
    sans-serif;
  letter-spacing: -1px;
}
.small-projects p {
  font-size: 16px;
}
.small-projects article > span {
  font-size: 11px;
}
.contact {
  background: #fff;
}
.contact h2 {
  font:
    600 clamp(40px, 5vw, 72px)/1.05 Arial,
    sans-serif;
  letter-spacing: -0.065em;
  margin: 30px 0 37px;
}
.contact-link {
  font-size: clamp(29px, 5.6vw, 82px);
  line-height: 1.15;
  letter-spacing: -0.055em;
  border-bottom: 3px solid #222;
}
.contact > p:last-child {
  font-size: 18px;
  line-height: 1.5;
  color: #444;
}
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  font: 14px var(--mono);
}
.contact-socials a {
  border-bottom: 1px solid #aaa;
  padding-bottom: 4px;
}
.contact-socials a:hover {
  color: #567493;
  border-color: #567493;
}
footer {
  border-top: 1px solid #aaa;
  font-size: 11px;
}
footer .wordmark {
  font:
    600 30px Arial,
    sans-serif;
  letter-spacing: -2px;
  transform: skewX(-12deg);
}
@media (min-width: 1600px) {
  .hero h1 {
    font-size: 96px;
  }
  .hero {
    max-width: 1320px;
    margin: 0 auto;
  }
}
@media (max-width: 1000px) {
  .site-header .wordmark,
  .site-header nav a,
  .header-email {
    font-size: 15px;
    padding: 7px;
  }
  .hero h1 {
    font-size: 7vw;
  }
  .hero .eyebrow {
    font-size: 14px;
  }
  .hero-intro p {
    font-size: 21px;
  }
  .orbit-heading h2 {
    font-size: 45px;
  }
  .orbit-heading h2 > span {
    font-size: 12px;
    margin-left: 10px;
  }
  .start-screen h3 {
    font-size: 65px;
  }
  .section-heading > p {
    font-size: 16px;
  }
  .project h3 {
    font-size: 42px;
  }
  .project-body > div:last-child > p {
    font-size: 16px;
  }
  .project-body > div:first-child > p {
    font-size: 20px;
  }
  .layer {
    font-size: 8px;
  }
  .track-info strong {
    font-size: 13px;
  }
  .track-info > div > span {
    font-size: 8px;
  }
}
@media (max-width: 700px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
  }
  .site-header .wordmark {
    font-size: 13px;
    padding: 8px 5px;
    letter-spacing: -0.3px;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 3px;
  }
  .site-header nav a {
    font-size: 12px;
    padding: 12px 7px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .header-email {
    display: none;
  }
  .system-bar {
    top: 96px;
    right: 13px;
    transform: scale(0.75);
    transform-origin: top right;
  }
  .sky-banner {
    height: 225px;
    background-position: 50% 25%;
  }
  .launch-window {
    bottom: 12px;
    width: min(325px, 92%);
    font-size: 10px;
  }
  .window-title {
    font-size: 10px;
  }
  .launch-window > a {
    padding: 9px 5px;
    gap: 8px;
  }
  .hero {
    margin: 0 6%;
    padding: 30px 0 24px;
  }
  .hero .eyebrow {
    font-size: 9px;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .hero-location {
    padding-left: 12px;
  }
  .hero h1 {
    font-size: clamp(44px, 11vw, 64px);
    line-height: 0.98;
    margin-bottom: 24px;
  }
  .hero h1 span {
    display: block;
  }
  .hero-intro p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 440px;
  }
  .hero-actions {
    gap: 10px;
    margin: 24px 0 0;
  }
  .hero-actions a {
    padding: 12px 16px;
    font-size: 13px;
    gap: 18px;
  }
  .about h2 {
    font-size: clamp(36px, 8vw, 52px);
  }
  .about-heading {
    margin-bottom: 32px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-opening {
    font-size: 23px;
  }
  .about-narrative {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .about-notebook {
    padding: 24px;
  }
  .about-lead {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-foundations {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
  }
  .about-perspectives > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 16px 0;
  }
  .orbit-section {
    padding: 31px 4%;
  }
  .orbit-heading h2 {
    font-size: 37px;
  }
  .orbit-heading h2 > span {
    font-size: 11px;
    padding: 5px 6px;
  }
  .orbit-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 12px;
  }
  .orbit-heading > p {
    font-size: 14px;
    margin-top: 14px;
  }
  .orbit-heading {
    margin-bottom: 20px;
  }
  .player-title {
    font-size: 10px;
    min-height: 30px;
  }
  .game-stage {
    height: 530px;
  }
  .start-screen h3 {
    font-size: 56px;
  }
  .start-screen {
    padding-left: 23px;
    padding-bottom: 44px;
  }
  .start-screen > p:not(.start-hint):not(.intro-loading) {
    font-size: 15px;
  }
  .start-screen .gel-button {
    font-size: 15px;
  }
  .intro-loading {
    font-size: 8px;
  }
  .track-info strong {
    font-size: 13px;
  }
  .track-info > div > span {
    font-size: 8px;
  }
  .layer {
    font-size: 9px;
  }
  .layer small {
    font-size: 8px;
  }
  .streak-display > span {
    font-size: 7px;
  }
  .game-notes p:first-child {
    font-size: 13px;
  }
  .game-notes p:last-child {
    font-size: 10px;
  }
  .section {
    padding: 55px 5%;
  }
  .section-heading {
    margin-bottom: 35px;
  }
  .section-heading > p {
    padding-top: 0;
    margin-top: 23px;
    font-size: 16px;
  }
  .section-heading .eyebrow {
    font-size: 11px;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 46px;
  }
  .project-body {
    padding: 25px 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-top,
  .project-bottom {
    font-size: 9px;
  }
  .project h3 {
    font-size: 43px;
  }
  .project-body > div:first-child > p {
    font-size: 20px;
  }
  .project-body > div:last-child > p {
    font-size: 16px;
  }
  .project-stats strong {
    font-size: 35px;
  }
  .project-stats span {
    font-size: 10px;
  }
  .project-tags span {
    font-size: 11px;
  }
  .details-toggle {
    font-size: 12px;
  }
  .experience p {
    font-size: 15px;
  }
  .contact h2 {
    font-size: 42px;
  }
  .contact-link {
    font-size: 37px;
    gap: 20px;
    letter-spacing: -2px;
  }
  .contact > p:last-child {
    font-size: 16px;
  }
  footer {
    font-size: 9px;
  }
  .small-projects h3 {
    font-size: 25px;
  }
}
@media (max-width: 370px) {
  .site-header .wordmark {
    font-size: 12px;
  }
  .site-header nav a {
    font-size: 11px;
    padding: 9px 4px;
  }
  .contact-link {
    font-size: 32px;
  }
  .orbit-heading h2 {
    font-size: 32px;
  }
  .orbit-heading h2 > span {
    font-size: 10px;
  }
}

.game-hud {
  color: #263e48;
  text-shadow: none;
}
.beat-guide {
  color: #243e47;
}
.race-feedback {
  color: #233e47;
  text-shadow: 0 1px 12px #fff9;
}
.hero h1 {
  word-spacing: 0.05em;
}

/* Simple solo game: one obvious cue and a generous hit window. */
.beat-target {
  left: 25%;
  width: 50%;
  background: #b5ffcf44;
}
.race-controls .tap-button {
  min-width: 180px;
  padding: 16px 20px;
  font-size: 15px;
  background: #e9eeeb;
  color: #233e36;
  transition:
    background 0.08s,
    box-shadow 0.08s;
}
.race-controls .tap-button.ready {
  background: #91ffb7;
  color: #103c24;
  box-shadow: 0 0 32px #7cffb0;
  border-color: #fff;
}
.race-controls {
  color: #233e36;
}
.race-feedback {
  font-size: 30px;
}
.game-stage {
  background: #9ab3bf;
}
.beat-guide {
  bottom: 105px;
}
.game-notes p:last-child {
  white-space: normal;
}
.game-hud .hud-middle {
  font-size: 10px;
}
@media (max-width: 700px) {
  .race-controls .tap-button {
    min-width: 155px;
    font-size: 13px;
  }
  .beat-guide {
    bottom: 127px;
  }
  .race-controls > span {
    bottom: 67px;
  }
  .race-feedback {
    font-size: 24px;
  }
}
/* Cosmic Session: a luminous three-lane highway. */
.game-stage {
  height: 660px;
  background: #080e24;
}
.game-hud {
  color: #e9e7ff;
}
.hud-middle > span:last-child {
  background: #ffffff10;
}
.game-stage::after {
  display: none;
}
.start-screen {
  background: linear-gradient(90deg, #080e24dd, #080e2477);
  color: #fff;
}
.start-screen h3 {
  font-family: Arial, sans-serif;
  font-size: 72px;
  letter-spacing: -4px;
}
.start-screen h3 em {
  color: #b7a5ff;
}
.race-feedback {
  top: 29%;
  font: 700 24px var(--mono);
  color: #fff;
  text-shadow: 0 0 20px #bda8ff;
}
.race-controls {
  inset: auto 0 0;
  display: block;
  height: 108px;
  background: linear-gradient(transparent, #080e24);
  padding: 0 20px 14px;
}
.race-controls > #pause-race {
  position: absolute;
  right: 16px;
  top: -450px;
  font-size: 10px;
  padding: 7px 10px;
}
.fret-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  height: 76px;
}
.fret-buttons button {
  width: 100px;
  border: 2px solid var(--fret);
  background: #121a30;
  color: var(--fret);
  border-radius: 12px;
  touch-action: none;
  padding: 8px;
  transition:
    background 0.08s,
    box-shadow 0.08s;
}
.fret-buttons button:nth-child(1) {
  --fret: #68ffc8;
}
.fret-buttons button:nth-child(2) {
  --fret: #b49aff;
}
.fret-buttons button:nth-child(3) {
  --fret: #ffbb70;
}
.fret-buttons b {
  font: 700 27px Arial;
  display: block;
}
.fret-buttons span {
  font: 9px var(--mono);
}

.finish-screen {
  background: #0e163bd9;
}
.pause-screen {
  background: #0b132cdb;
}
.game-hud strong {
  font-family: Arial;
  font-size: 30px;
}
.game-hud {
  top: 20px;
}
.start-screen .gel-button {
  background: #baa8ff;
  color: #16112d;
  border-color: #ddd2ff;
}
.finish-actions {
  color: #fff;
}
@media (max-width: 700px) {
  .game-stage {
    --mobile-stage-height: clamp(400px, calc(100svh - 90px), 590px);
    height: var(--mobile-stage-height);
  }
  .game-shell {
    scroll-margin-top: 8px;
  }
  .player-title button,
  .race-controls > #pause-race,
  .contact-socials a,
  .finish-actions > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .start-screen h3 {
    font-size: clamp(38px, 12vw, 55px);
    letter-spacing: -2px;
  }
  .start-screen {
    padding: 72px 20px 24px;
  }
  .fret-buttons {
    gap: 12px;
  }
  .fret-buttons button {
    width: min(80px, 28%);
    min-height: 64px;
  }
  .race-controls > #pause-race {
    top: calc(180px - var(--mobile-stage-height));
  }
  .game-hud {
    left: 12px;
    right: 12px;
  }
  .game-hud strong {
    font-size: 24px;
  }
  .hud-middle {
    max-width: 120px;
  }
  .finish-screen {
    padding: 20px 15px;
    gap: 12px;
    overflow-y: auto;
  }
  .polaroid {
    width: min(215px, 50svh);
    flex-shrink: 0;
  }
  .race-feedback {
    font-size: 18px;
    top: 30%;
  }
}

/* A press is acknowledged immediately, even when no note is in the timing window. */
.fret-buttons button {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.fret-buttons button:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}
.fret-buttons button:active {
  transform: translateY(3px);
}
.fret-buttons button.pressed {
  background: #fff;
  color: #080e24;
  box-shadow: 0 0 24px var(--fret);
}
.race-feedback[data-kind='hit'] {
  color: #98ffda;
  text-shadow: 0 0 24px #68ffc880;
}
.race-feedback[data-kind='miss'] {
  color: #b9cde2;
  text-shadow: 0 0 20px #85a9cd80;
}
.race-feedback.visible[data-kind='hit'] {
  animation: judgement-hit 0.45s ease-out;
}
.race-feedback.visible[data-kind='miss'] {
  animation: judgement-miss 0.35s ease-out;
}
@keyframes judgement-hit {
  from {
    transform: translateX(-50%) scale(0.8);
  }
  35% {
    transform: translateX(-50%) scale(1.12);
  }
  to {
    transform: translateX(-50%) scale(1);
  }
}
@keyframes judgement-miss {
  0%,
  100% {
    transform: translateX(-50%);
  }
  25% {
    transform: translateX(calc(-50% - 7px));
  }
  65% {
    transform: translateX(calc(-50% + 7px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .fret-buttons button:active {
    transform: none;
  }
}

/* Setlist controls live above the highway so they never obscure approaching notes. */
.setlist-controls {
  margin: 0;
  padding: 22px 26px;
  border: 0;
  border-bottom: 1px solid #ffffff26;
  background: #10182c;
  color: #e9e7ff;
  font-family: var(--mono);
  min-width: 0;
}
.setlist-controls legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #baa8ff;
}
.setlist-row {
  clear: both;
  display: flex;
  align-items: start;
  gap: 28px;
}
.setlist-row .song-picker,
.difficulty-picker {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  letter-spacing: 1px;
}
.setlist-row select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #baa8ff77;
  border-radius: 5px;
  background: #18213a;
  color: #fff;
  font: 13px var(--mono);
}
.difficulty-picker > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.difficulty-picker button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #baa8ff77;
  border-radius: 5px;
  background: #18213a;
  color: #e9e7ff;
  font: 13px var(--mono);
  cursor: pointer;
}
.difficulty-picker button[aria-pressed='true'] {
  background: #baa8ff;
  color: #16112d;
}
.setlist-controls:disabled select,
.setlist-controls:disabled button {
  opacity: 0.65;
  cursor: default;
}
.setlist-controls p {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
}
#track-best {
  margin-top: 5px;
  color: #68ffc8;
}
.setlist-controls :focus-visible {
  outline: 3px solid #68ffc8;
  outline-offset: 3px;
}
#accuracy-value {
  margin-top: 4px;
  font-size: 9px;
  color: #68ffc8;
}
.fret-buttons button.pressed {
  background: var(--fret);
  color: #080e24;
  box-shadow: 0 0 22px color-mix(in srgb, var(--fret) 65%, transparent);
}
#finish-details {
  font: 11px/1.5 var(--mono);
  margin: 10px 0 0;
}
#finish-rating {
  font-size: 24px;
}
.finish-actions #choose-song {
  display: block;
  color: #e9e7ff;
  min-height: 44px;
  margin: 8px 0;
}
@media (max-width: 700px) {
  .setlist-controls {
    padding: 18px 16px;
  }
  .setlist-row {
    flex-direction: column;
    gap: 16px;
  }
  .setlist-row .song-picker,
  .difficulty-picker {
    width: 100%;
  }
  .setlist-controls p {
    font-size: 10px;
  }
  .start-screen #play-instructions {
    font-size: 13px;
    line-height: 1.5;
  }
  .start-screen #session-hint {
    font-size: 9px;
  }
  #finish-rating {
    font-size: 19px;
  }
}
@media (max-width: 700px) {
  .game-stage {
    scroll-margin-top: 8px;
  }
  .finish-screen {
    justify-content: flex-start;
  }
  .finish-actions {
    gap: 10px;
  }
  .finish-actions > #finish-message {
    display: block;
    max-width: 280px;
    font: 11px/1.5 var(--mono);
    text-align: center;
    margin: 0;
  }
  .finish-actions #choose-song {
    margin: 0;
  }
}
