:root {
  --retro-border: #8a8f6e;
  --retro-shadow: #555d3d;
  --retro-font: 'Courier New', Consolas, monospace;
}
.hero {
  background-image:
    radial-gradient(#555d3d16 1px, transparent 1px),
    linear-gradient(115deg, #ded8d0 0%, #d8d0c5 45%, #cbbbac 100%);
  background-size:
    6px 6px,
    auto;
}
.eyebrow,
.project-number,
.project-tech,
.language-switch button,
.text-link,
.contact-icon > span:last-child,
.code-symbol,
.floating-braces,
.floating-terminal {
  font-family: var(--retro-font);
}
.eyebrow {
  letter-spacing: 0.06em;
}
.portrait-placeholder {
  border: 3px solid var(--retro-border);
  border-radius: 2px;
  box-shadow: 6px 6px 0 #8a8f6e66;
}
.portrait-placeholder img {
  border-radius: 0;
}
.text-link {
  border: 2px solid var(--retro-shadow);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--retro-shadow);
}
.text-link:hover {
  box-shadow: 2px 2px 0 var(--retro-shadow);
}
.language-switch,
.language-switch button,
.work details,
.project-tech span,
.infrastructure-overview,
.case-study figure a,
.icon-circle,
.expand {
  border-radius: 2px;
}
.language-switch {
  border: 2px solid var(--retro-border);
}
.work details {
  border: 2px solid #b7bea8;
  box-shadow: 4px 4px 0 #8a8f6e33;
}
.work details[open] {
  border-color: var(--retro-border);
}
.project-tech span {
  border-style: dashed;
}
.icon-circle {
  border: 2px solid var(--retro-border);
  box-shadow: 3px 3px 0 #8a8f6e55;
}
.orbital-art::before,
.orbital-art::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  color: #8a8f6e;
  background: currentColor;
  box-shadow:
    0 -5px currentColor,
    0 5px currentColor,
    -5px 0 currentColor,
    5px 0 currentColor;
  opacity: 0.65;
}
.orbital-art::before {
  left: 7%;
  top: 55%;
}
.orbital-art::after {
  right: 8%;
  bottom: 16%;
}
@media (max-width: 600px) {
  .portrait-placeholder {
    box-shadow: 4px 4px 0 #8a8f6e66;
  }
  .eyebrow {
    font-size: 12px;
  }
  .orbital-art::before {
    left: 6%;
    top: 40%;
  }
  .orbital-art::after {
    right: 6%;
    bottom: 9%;
  }
}
.hero .pixel-object {
  opacity: 0.9;
  rotate: 0deg;
  overflow: visible;
  filter: drop-shadow(3px 4px 0 #555d3d18);
}
.pixel-pc {
  width: 128px;
  left: 10%;
  top: 40px;
}
.pixel-plant {
  width: 76px;
  right: 12%;
  top: 52px;
  animation-delay: -5s;
}
.pixel-mug {
  width: 68px;
  right: 15%;
  bottom: 38px;
  animation-delay: -9s;
}
.pixel-star {
  width: 34px;
  left: 11%;
  bottom: 55px;
  animation-delay: -3s;
}
@media (max-width: 700px) {
  .pixel-pc {
    width: 96px;
    left: 10%;
    top: 45px;
  }
  .pixel-plant {
    width: 56px;
    right: 13%;
    top: 55px;
  }
  .pixel-mug {
    width: 48px;
    right: 12%;
    bottom: 25px;
  }
  .pixel-star {
    width: 24px;
    left: 12%;
    bottom: 35px;
  }
}
:root {
  --retro-font: 'IBM Plex Mono', 'Courier New', monospace;
}
h1,
h2,
.wordmark,
.work summary strong,
.case-study h3,
.infrastructure-overview h4,
nav a,
.project-repo {
  font-family: var(--retro-font);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}
h1 em,
h2 em {
  font-style: normal;
}
.hero-copy h1.personal-intro {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}
h2,
.contact h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}
.work summary strong {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
}
.case-study h3 {
  font-size: 30px;
}
.infrastructure-overview h4 {
  font-size: 26px;
}
.wordmark {
  font-size: 36px;
}
nav a {
  font-size: 19px;
}
.eyebrow {
  font-size: 15px;
  letter-spacing: 0.04em;
}
.text-link,
.project-repo {
  font-size: 19px;
}
.language-switch button {
  font-size: 17px;
}
.project-tech span {
  font-size: 16px;
}
@media (max-width: 600px) {
  nav a {
    font-size: 17px;
  }
  .hero-copy h1.personal-intro {
    font-size: 32px;
  }
  .eyebrow {
    font-size: 14px;
  }
}
nav a,
.eyebrow,
.text-link,
.project-repo,
.language-switch button,
.project-tech,
.contact-icon > span:last-child {
  font-family: 'Source Sans 3', system-ui, sans-serif;
}
.cozy-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cozy-lights span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff0c8;
  box-shadow:
    0 0 7px 3px #edd49c99,
    0 0 22px 9px #edd49c33;
  animation: cozy-drift 9s ease-in-out infinite alternate;
}
.cozy-lights span:nth-child(1) {
  left: 5%;
  top: 24%;
}
.cozy-lights span:nth-child(2) {
  left: 8%;
  top: 72%;
  animation-delay: -4s;
}
.cozy-lights span:nth-child(3) {
  left: 20%;
  top: 88%;
  animation-delay: -7s;
}
.cozy-lights span:nth-child(4) {
  left: 36%;
  top: 14%;
  animation-delay: -2s;
}
.cozy-lights span:nth-child(5) {
  right: 6%;
  top: 32%;
  animation-delay: -6s;
}
.cozy-lights span:nth-child(6) {
  right: 5%;
  top: 68%;
  animation-delay: -1s;
}
.cozy-lights span:nth-child(7) {
  right: 26%;
  bottom: 10%;
  animation-delay: -5s;
}
.cozy-lights span:nth-child(8) {
  right: 30%;
  top: 17%;
  animation-delay: -8s;
}
.cozy-lights span:nth-child(9) {
  left: 44%;
  bottom: 9%;
  animation-delay: -3s;
}
.cozy-lights span:nth-child(10) {
  right: 13%;
  top: 49%;
  animation-delay: -6s;
}
.fairy-string {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  pointer-events: none;
}
.fairy-string g {
  filter: drop-shadow(0 0 5px #e8c77e);
}
@keyframes cozy-drift {
  from {
    transform: translate(0, 4px);
    opacity: 0.45;
  }
  to {
    transform: translate(7px, -12px);
    opacity: 0.95;
  }
}
@media (max-width: 700px) {
  .fairy-string {
    height: 45px;
  }
  .cozy-lights span:nth-child(3),
  .cozy-lights span:nth-child(4),
  .cozy-lights span:nth-child(7),
  .cozy-lights span:nth-child(8) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cozy-lights span {
    animation: none;
    opacity: 0.7;
  }
}
.cat-path {
  position: relative;
  height: 96px;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.running-cat {
  position: absolute;
  bottom: 7px;
  width: 60px;
}
.running-cat svg {
  display: block;
  width: 100%;
  height: auto;
}
.cat-body {
  animation: cat-bounce 0.28s steps(2, end) infinite;
}
.cat-legs-a {
  animation: cat-stride 0.28s steps(1, end) infinite;
}
.cat-legs-b {
  animation: cat-stride 0.28s steps(1, end) -0.14s infinite;
}
@keyframes cat-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}
@keyframes cat-stride {
  0%,
  49.99% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .running-cat,
  .cat-body,
  .cat-legs-a,
  .cat-legs-b {
    animation: none;
  }
  .running-cat {
    left: 8%;
  }
  .cat-legs-b {
    display: none;
  }
}
.cat-path {
  overflow: visible;
  z-index: 2;
}
.running-cat {
  animation: none;
  left: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 50% 70%;
}
.running-cat.is-tumbling .cat-body,
.running-cat.is-tumbling .cat-legs-a,
.running-cat.is-tumbling .cat-legs-b {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .running-cat {
    left: 8%;
    visibility: visible;
    transform: none;
  }
}
.cat-impact {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cat-impact i {
  position: absolute;
  display: none;
}
.cat-impact.is-active i {
  display: block;
}
.pixel-dust {
  width: 12px;
  height: 10px;
  background: #d5cfc7;
  box-shadow:
    -6px 0 #d5cfc7,
    4px -6px #e9e5db,
    10px 0 #e9e5db,
    4px 6px #bfad9c;
}
.dust-left {
  --puff-x: -48px;
  left: -20px;
  top: -7px;
}
.dust-right {
  --puff-x: 48px;
  left: 10px;
  top: -7px;
}
.is-active .pixel-dust {
  animation: landing-dust 1s steps(6, end) both;
}
.impact-star {
  width: 4px;
  height: 4px;
  background: #d9bd7f;
  box-shadow:
    0 -4px #d9bd7f,
    0 4px #d9bd7f,
    -4px 0 #d9bd7f,
    4px 0 #d9bd7f;
}
.star-left {
  left: -30px;
  top: -28px;
  --star-x: -18px;
}
.star-top {
  left: 0;
  top: -42px;
  --star-x: 0px;
}
.star-right {
  left: 30px;
  top: -25px;
  --star-x: 18px;
}
.is-active .impact-star {
  animation: landing-stars 1.4s steps(8, end) both;
}
.running-cat.is-belly-flop .cat-legs-a,
.running-cat.is-belly-flop .cat-legs-b {
  visibility: hidden;
}
@keyframes landing-dust {
  from {
    transform: translate(0, 0) scale(0.5);
    opacity: 0.9;
  }
  to {
    transform: translate(var(--puff-x), -20px) scale(1.4);
    opacity: 0;
  }
}
@keyframes landing-stars {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--star-x), -24px) rotate(90deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cat-impact {
    display: none;
  }
}

.running-cat .cat-falling-pose,
.running-cat .cat-landed-pose {
  display: none;
}
.running-cat.is-falling > svg:first-child,
.running-cat.is-belly-flop > svg:first-child {
  display: none;
}
.running-cat.is-falling .cat-falling-pose,
.running-cat.is-belly-flop .cat-landed-pose {
  display: block;
}

.text-link .link-label { margin-left: 0; transform: none; }
