:root {
  --bg: #6fb4e6;
  --sky: #8fd3ff;
  --cloud: #eaf8ff;
  --grass: #4f9a35;
  --grass-dark: #2f6f24;
  --dirt: #8a5a35;
  --dirt-dark: #5b3823;
  --stone: #8b8f8f;
  --stone-dark: #55595a;
  --wood: #8b5a2b;
  --wood-dark: #4f3118;
  --diamond: #50d7d8;
  --redstone: #d8362f;
  --gold: #f2c84b;
  --ink: #1f1b16;
  --muted: #564636;
  --cream: #fff4cf;
  --line: #2b2119;
  --shadow: 8px 8px 0 rgba(32, 24, 18, 0.35);
  --pixel-font: "Courier New", Courier, monospace;
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: auto;
}

body {
  height: 100%;
  margin: 0;
  background:
    linear-gradient(to bottom, rgba(143, 211, 255, 0.92) 0 34rem, transparent 34rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--ink);
  cursor: url("assets/pickaxe-cursor.svg") 18 18, crosshair;
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
}

main {
  height: 100vh;
  overflow: hidden;
}

a,
button {
  cursor: url("assets/pickaxe-cursor.svg") 18 18, pointer;
}

body.is-mining,
body.is-pickaxe-down,
body.is-mining a,
body.is-pickaxe-down a,
body.is-mining button,
body.is-pickaxe-down button {
  cursor: url("assets/pickaxe-cursor-swing.svg") 18 18, crosshair;
}

a {
  color: inherit;
}

.skip-link,
.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 30;
  background: var(--ink);
  color: white;
}

.site-header {
  background: transparent;
  background-size: auto;
  border-bottom: 0;
  box-shadow: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

body:not([data-view]) .site-header,
body[data-view=""] .site-header {
  background: transparent;
  background-size: auto;
  border-bottom: 0;
  box-shadow: none;
}

body[data-day-phase="morning"]:not([data-view]) .site-header,
body[data-day-phase="morning"][data-view=""] .site-header {
  background: transparent;
}

body[data-day-phase="evening"]:not([data-view]) .site-header,
body[data-day-phase="evening"][data-view=""] .site-header {
  background: transparent;
}

body[data-day-phase="night"]:not([data-view]) .site-header,
body[data-day-phase="night"][data-view=""] .site-header {
  background: transparent;
}

.nav {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 1160px;
  min-height: 82px;
  padding: 0.55rem 1.5rem 0;
}

.nav-links {
  align-items: center;
  display: flex;
}

.nav-links {
  gap: 0.65rem;
}

.mine-link {
  --hold-progress: 0;
  --crack-opacity: 0;
  align-items: center;
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 rgba(31, 27, 22, 0.35);
  color: var(--cream);
  display: grid;
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  font-weight: 900;
  justify-items: center;
  line-height: 1.1;
  min-height: 48px;
  min-width: 112px;
  overflow: hidden;
  padding: 0.42rem 0.7rem;
  position: relative;
  text-decoration: none;
  text-shadow:
    2px 2px 0 #000,
    -1px 0 0 rgba(0, 0, 0, 0.85),
    0 -1px 0 rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
  transition: transform 80ms steps(2), filter 120ms ease;
}

.mine-link span {
  position: relative;
  z-index: 2;
}

.mine-link span {
  background: rgba(22, 15, 10, 0.64);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.42);
  padding: 0.1rem 0.28rem;
}

.mine-link::before,
.mine-link::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.nav-hint {
  background: rgba(22, 15, 10, 0.66);
  border: 2px solid rgba(255, 244, 207, 0.45);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  color: #fff4cf;
  font-family: var(--pixel-font);
  font-size: 0.62rem;
  line-height: 1.2;
  margin: 0.42rem 0 0;
  padding: 0.22rem 0.45rem;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
}

body[data-view="about"] .nav-hint,
body[data-view="experience"] .nav-hint,
body[data-view="projects"] .nav-hint {
  display: none;
}

.mine-link::before {
  background:
    linear-gradient(90deg, rgba(255, 244, 207, 0.2) calc(var(--hold-progress) * 100%), transparent 0),
    linear-gradient(135deg, transparent 0 26%, rgba(25, 18, 12, 0.86) 26% 30%, transparent 30%),
    linear-gradient(45deg, transparent 0 46%, rgba(25, 18, 12, 0.82) 46% 50%, transparent 50%),
    linear-gradient(115deg, transparent 0 58%, rgba(25, 18, 12, 0.78) 58% 62%, transparent 62%),
    linear-gradient(70deg, transparent 0 68%, rgba(255, 244, 207, 0.5) 68% 70%, transparent 70%);
  background-position:
    0 0,
    14px 6px,
    -10px 12px,
    24px -7px,
    -18px 3px;
  background-size:
    100% 100%,
    72px 54px,
    58px 46px,
    88px 58px,
    64px 48px;
  opacity: var(--crack-opacity);
}

.mine-link::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 50%, rgba(0, 0, 0, 0.08) 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 50%, rgba(0, 0, 0, 0.08) 50%);
  background-size: 18px 18px;
  mix-blend-mode: soft-light;
}

.mine-link:hover,
.mine-link:focus-visible {
  filter: brightness(1.08);
  outline: 4px solid var(--cream);
  outline-offset: 3px;
  transform: translate(-2px, -2px);
}

.mine-link.is-holding {
  animation: hold-pulse 520ms steps(2) infinite;
}

.mine-link.crack-stage-1 {
  --crack-opacity: 0.34;
}

.mine-link.crack-stage-2 {
  --crack-opacity: 0.58;
}

.mine-link.crack-stage-3 {
  --crack-opacity: 0.82;
}

.mine-link.crack-stage-4 {
  --crack-opacity: 1;
}

.mine-link.crack-stage-2::before {
  background-position:
    0 0,
    8px 3px,
    -16px 9px,
    18px -12px,
    -22px 8px;
}

.mine-link.crack-stage-3::before,
.mine-link.crack-stage-4::before {
  background-image:
    linear-gradient(90deg, rgba(255, 244, 207, 0.24) calc(var(--hold-progress) * 100%), transparent 0),
    linear-gradient(135deg, transparent 0 20%, rgba(25, 18, 12, 0.9) 20% 24%, transparent 24%),
    linear-gradient(45deg, transparent 0 42%, rgba(25, 18, 12, 0.86) 42% 47%, transparent 47%),
    linear-gradient(115deg, transparent 0 54%, rgba(25, 18, 12, 0.82) 54% 59%, transparent 59%),
    linear-gradient(70deg, transparent 0 66%, rgba(255, 244, 207, 0.5) 66% 69%, transparent 69%),
    linear-gradient(25deg, transparent 0 74%, rgba(25, 18, 12, 0.8) 74% 78%, transparent 78%);
  background-size:
    100% 100%,
    58px 42px,
    48px 38px,
    70px 48px,
    50px 38px,
    62px 42px;
}

.mine-link.crack-stage-4::before {
  filter: contrast(1.3);
}

.mine-link.is-complete {
  animation: hold-complete 220ms steps(3);
}

.grass-block {
  background:
    linear-gradient(#62bb42 0 35%, transparent 35%),
    linear-gradient(135deg, #9a6339 25%, #80502f 25% 50%, #9a6339 50% 75%, #6d4328 75%);
  background-size: auto, 22px 22px;
}

.diamond-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52) 0 14%, transparent 14% 44%, rgba(0, 88, 95, 0.32) 44% 56%, transparent 56%),
    linear-gradient(135deg, #5ce8e3 25%, #27afba 25% 50%, #78ffff 50% 75%, #15919f 75%);
  background-size: auto, 22px 22px;
}

.redstone-block {
  background:
    radial-gradient(circle at 30% 30%, #ff7068 0 10%, transparent 11%),
    radial-gradient(circle at 72% 68%, #ff8b84 0 9%, transparent 10%),
    linear-gradient(135deg, #d83a35 25%, #99211f 25% 50%, #e34d43 50% 75%, #7a1917 75%);
  background-size: auto, auto, 22px 22px;
}

.gold-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 18%, transparent 18%),
    linear-gradient(135deg, #f6d85c 25%, #bd8426 25% 50%, #ffed83 50% 75%, #a96e1e 75%);
  background-size: auto, 22px 22px;
}

.stone-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 16%, transparent 16%),
    linear-gradient(135deg, #9fa5a5 25%, #686d6e 25% 50%, #b8bdbd 50% 75%, #55595a 75%);
  background-size: auto, 22px 22px;
}

.nav-toggle {
  display: none;
}

.hero {
  display: block;
  height: 100vh;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.hero-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero::after {
  background:
    linear-gradient(#59b846 0 18px, transparent 18px),
    linear-gradient(135deg, #9a6339 25%, #80502f 25% 50%, #9a6339 50% 75%, #6d4328 75%);
  background-size: auto, 36px 36px;
  border-top: 5px solid var(--line);
  bottom: 0;
  content: "";
  height: 72px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 1;
}

.biome-layer {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.distant-hill {
  background:
    linear-gradient(#63b84a 0 22px, transparent 22px),
    linear-gradient(135deg, #9a6339 25%, #80502f 25% 50%, #9a6339 50% 75%, #6d4328 75%);
  background-size: auto, 32px 32px;
  border: 4px solid rgba(43, 33, 25, 0.32);
  bottom: 68px;
  height: 96px;
  opacity: 0.72;
  position: absolute;
  transform: skewX(-10deg);
  width: 210px;
}

.hill-left {
  left: max(1rem, calc((100vw - 1160px) / 2 - 4rem));
}

.hill-right {
  right: max(2rem, calc((100vw - 1160px) / 2 + 3rem));
  transform: skewX(9deg);
  width: 260px;
}

.block-tree {
  bottom: 70px;
  height: 360px;
  position: absolute;
  width: 220px;
}

.tree-left {
  left: max(-1rem, calc((100vw - 1160px) / 2 - 8rem));
}

.tree-right {
  bottom: 72px;
  right: max(-1rem, calc((100vw - 1160px) / 2 - 7rem));
  transform: scale(0.88);
  transform-origin: bottom right;
}

.tree-trunk {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 16px, transparent 16px),
    linear-gradient(135deg, #87502c 25%, #6d3f22 25% 50%, #9a6339 50% 75%, #5f361f 75%);
  background-size: auto, 30px 30px;
  bottom: 0;
  height: 220px;
  left: 88px;
  position: absolute;
  width: 46px;
}

.tree-leaves {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #2f8b2e 25%, #236d25 25% 50%, #3aa43b 50% 75%, #1d5e1f 75%);
  background-size: 24px 24px, 24px 24px, 32px 32px;
  border: 4px solid rgba(43, 33, 25, 0.32);
  box-shadow:
    -36px 40px 0 #2f8b2e,
    36px 40px 0 #236d25,
    0 82px 0 #2d862f;
  height: 120px;
  left: 42px;
  position: absolute;
  top: 8px;
  width: 140px;
}

.flower,
.tall-grass {
  bottom: 73px;
  position: absolute;
}

.flower {
  --flower-color: #f4dc3b;
  height: 54px;
  width: 34px;
}

.flower::before {
  background: #2f8b2e;
  bottom: 0;
  content: "";
  height: 34px;
  left: 15px;
  position: absolute;
  width: 5px;
}

.flower::after {
  background:
    linear-gradient(var(--flower-color), var(--flower-color)) 50% 0 / 12px 12px no-repeat,
    linear-gradient(var(--flower-color), var(--flower-color)) 50% 100% / 12px 12px no-repeat,
    linear-gradient(var(--flower-color), var(--flower-color)) 0 50% / 12px 12px no-repeat,
    linear-gradient(var(--flower-color), var(--flower-color)) 100% 50% / 12px 12px no-repeat,
    linear-gradient(#5b3a15, #5b3a15) 50% 50% / 10px 10px no-repeat;
  content: "";
  height: 34px;
  left: 0;
  position: absolute;
  top: 0;
  width: 34px;
}

.flower-one {
  left: 12%;
}

.flower-two {
  --flower-color: #ffffff;
  left: 31%;
  transform: scale(0.8);
}

.flower-three {
  left: 65%;
  transform: scale(0.9);
}

.flower-four {
  --flower-color: #e54834;
  left: 85%;
  transform: scale(0.75);
}

.tall-grass {
  background:
    linear-gradient(100deg, transparent 0 44%, #2f8b2e 44% 56%, transparent 56%),
    linear-gradient(75deg, transparent 0 45%, #3aa43b 45% 55%, transparent 55%),
    linear-gradient(110deg, transparent 0 48%, #236d25 48% 58%, transparent 58%);
  height: 48px;
  width: 52px;
}

.tuft-one {
  left: 19%;
}

.tuft-two {
  left: 73%;
  transform: scale(0.75);
}

.tuft-three {
  left: 91%;
  transform: scale(0.95);
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  margin: 0 auto;
  max-width: 1160px;
  min-height: 100%;
  padding: 5rem 1.5rem 7rem;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.project-type {
  color: #244b1f;
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

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

h1 {
  color: var(--cream);
  filter: drop-shadow(6px 6px 0 var(--line));
  font-family: var(--pixel-font);
  font-size: 6.2rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 1.35rem;
  max-width: 760px;
  text-transform: uppercase;
}

.hero-name {
  display: block;
  filter: drop-shadow(6px 6px 0 rgba(31, 27, 22, 0.5));
  margin-bottom: 0.35rem;
  max-width: min(680px, 100%);
}

.hero-name img {
  display: block;
  height: auto;
  image-rendering: auto;
  max-width: 100%;
}

.hero-name-gif {
  width: min(58vw, 640px);
}

h2 {
  color: #302014;
  font-family: var(--pixel-font);
  font-size: 3rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 1rem;
}

h3 {
  color: #2d2118;
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.hero-lede {
  margin: 0 0 1.35rem;
  max-width: min(650px, 100%);
}

.minecraft-sign {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sign-board {
  background-color: #8a5a32;
  background-image:
    linear-gradient(90deg, rgba(62, 34, 16, 0.3) 0 4px, transparent 4px 34px, rgba(255, 219, 157, 0.12) 34px 38px, transparent 38px 78px),
    linear-gradient(180deg, rgba(255, 230, 170, 0.18) 0 18%, rgba(95, 52, 23, 0.2) 18% 24%, transparent 24% 52%, rgba(45, 25, 14, 0.18) 52% 58%, rgba(255, 216, 146, 0.12) 58% 100%),
    linear-gradient(180deg, #9b6738 0%, #82512c 48%, #704322 100%);
  background-size: 96px 100%, 100% 32px, auto;
  border: 4px solid #543313;
  border-radius: 4px;
  box-shadow:
    inset 3px 0 0 rgba(255, 255, 255, 0.1),
    inset -3px 0 0 rgba(0, 0, 0, 0.28),
    6px 8px 0 rgba(31, 27, 22, 0.34);
  box-sizing: border-box;
  padding: 18px 22px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.sign-text {
  color: #f0e6d2;
  display: block;
  font-family: var(--pixel-font);
  font-size: clamp(0.62rem, 1.05vw, 0.9rem);
  font-weight: 900;
  line-height: 1.65;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 #000;
  text-decoration: none;
  white-space: nowrap;
}

.listening-link {
  cursor: default;
  pointer-events: none;
}

.listening-link.has-song-link {
  cursor: pointer;
  pointer-events: auto;
}

.listening-link.has-song-link:hover {
  color: #ffffff;
}

.home-social-logos {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.05rem;
}

.home-social-logo {
  --logo-color: #f0e6d2;
  align-items: center;
  background:
    linear-gradient(135deg, #c7bba4 25%, #a59b89 25% 50%, #dfd2b7 50% 75%, #8f8575 75%);
  background-size: 16px 16px;
  border: 4px solid #2d2118;
  box-shadow: 5px 5px 0 rgba(31, 27, 22, 0.34);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  position: relative;
  transition: filter 120ms ease, transform 90ms steps(2);
  width: 52px;
}

.home-social-logo::before {
  background: rgba(255, 244, 207, 0.72);
  border: 2px solid rgba(45, 33, 24, 0.28);
  content: "";
  inset: 6px;
  position: absolute;
}

.home-social-logo span {
  background: var(--logo-color);
  display: block;
  height: 26px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  position: relative;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  width: 26px;
  z-index: 1;
}

.home-social-logo:hover,
.home-social-logo:focus-visible {
  filter: brightness(1.08);
  transform: translate(-2px, -2px);
}

.linkedin-logo {
  --logo-color: #0a66c2;
}

.linkedin-logo span {
  mask-image: url("assets/logo-linkedin.svg");
  -webkit-mask-image: url("assets/logo-linkedin.svg");
}

.github-logo {
  --logo-color: #181717;
}

.github-logo span {
  mask-image: url("assets/logo-github.svg");
  -webkit-mask-image: url("assets/logo-github.svg");
}

.email-logo {
  --logo-color: #0078d4;
}

.email-logo span {
  mask-image: url("assets/logo-email.svg");
  -webkit-mask-image: url("assets/logo-email.svg");
}

.spotify-logo {
  --logo-color: #1ed760;
}

.spotify-logo span {
  mask-image: url("assets/logo-spotify.svg");
  -webkit-mask-image: url("assets/logo-spotify.svg");
}

.button {
  align-items: center;
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(31, 27, 22, 0.32);
  display: inline-flex;
  font-family: var(--pixel-font);
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 90ms steps(2), filter 120ms ease;
}

.button:hover {
  filter: brightness(1.08);
  transform: translate(-2px, -2px);
}

.button.primary {
  background: var(--grass);
  color: var(--cream);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.button.secondary {
  background: var(--cream);
  color: var(--ink);
}

.character-scene {
  align-self: stretch;
  min-height: 620px;
  overflow: visible;
  position: relative;
}

.character-scene::before,
.character-scene::after {
  background: rgba(255, 255, 255, 0.9);
  content: "";
  height: 34px;
  position: absolute;
  width: 78px;
}

.character-scene::before {
  right: 18%;
  top: 13%;
}

.character-scene::after {
  right: 42%;
  top: 23%;
  width: 54px;
}

.pixel-character {
  bottom: -64px;
  filter: drop-shadow(9px 9px 0 rgba(31, 27, 22, 0.22));
  height: min(74vh, 580px);
  image-rendering: pixelated;
  left: 50%;
  object-fit: contain;
  position: absolute;
  transform: translateX(-50%);
  width: auto;
  z-index: 2;
}

.music-notes {
  height: 230px;
  left: calc(50% + 70px);
  pointer-events: none;
  position: absolute;
  top: 72px;
  width: 190px;
  z-index: 4;
}

.music-note {
  animation: music-float 2.8s steps(14) infinite;
  color: #d51f2a;
  filter: drop-shadow(3px 3px 0 #330306);
  font-family: var(--pixel-font);
  font-size: 2rem;
  font-weight: 900;
  left: 0;
  line-height: 1;
  opacity: 0;
  position: absolute;
  text-shadow:
    2px 0 0 #fff3d8,
    0 2px 0 #fff3d8,
    -2px 0 0 #fff3d8,
    0 -2px 0 #fff3d8;
  top: 116px;
}

.note-two {
  animation-delay: 0.55s;
  font-size: 2.35rem;
  left: 20px;
  top: 88px;
}

.note-three {
  animation-delay: 1.1s;
  font-size: 1.85rem;
  left: 44px;
  top: 132px;
}

.note-four {
  animation-delay: 1.65s;
  font-size: 2.15rem;
  left: 12px;
  top: 104px;
}

.section {
  display: none;
  height: 100vh;
  margin: 0 auto;
  max-width: 1160px;
  overflow: hidden;
  padding: calc(82px + 1rem) 1.5rem 3rem;
  position: relative;
}

.intro-section {
  border-top: 0;
}

body[data-view="about"] #about {
  align-items: flex-start;
  display: none;
  justify-content: center;
  padding-bottom: 8.25rem;
  padding-left: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  padding-top: 5.4rem;
}

body[data-view="about"] #about::before,
body[data-view="about"] #about::after {
  display: block;
}

body[data-view="about"] #about {
  color: #17110c;
}

body[data-view="about"] #about.view-section {
  max-width: none;
}

body[data-view="about"] #about .book-about {
  align-items: flex-start;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  height: auto;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-photo-rail {
  display: grid;
  gap: clamp(0.9rem, 2vh, 1.4rem);
  width: clamp(150px, 16vw, 230px);
}

.about-photo-frame {
  background:
    linear-gradient(135deg, #c6bd79 0 14%, #8e8d76 14% 24%, #ded49a 24% 36%, #9f935c 36% 50%, #d4c789 50% 64%, #817967 64% 76%, #c6bd79 76% 100%);
  border: 5px solid #6d321e;
  box-shadow: 8px 8px 0 rgba(14, 8, 6, 0.32);
  display: block;
  margin: 0;
  padding: 12px;
  position: relative;
}

.about-photo-frame::before {
  background:
    linear-gradient(135deg, #b46b38 0 18%, #7a3f21 18% 38%, #c07743 38% 62%, #874825 62% 82%, #5f321b 82% 100%);
  border: 4px solid #4c2816;
  box-shadow:
    inset 5px 5px 0 rgba(255, 190, 120, 0.16),
    inset -5px -5px 0 rgba(45, 20, 10, 0.34);
  content: "";
  inset: 13px;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.about-photo-frame::after {
  background:
    linear-gradient(#8b8a7f, #c8c5b4);
  box-shadow:
    calc(100% - 16px) 0 0 #8b8a7f,
    0 calc(100% - 16px) 0 #8b8a7f,
    calc(100% - 16px) calc(100% - 16px) 0 #c8c5b4;
  content: "";
  height: 16px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 16px;
  z-index: 3;
}

.about-photo-frame img {
  border: 4px solid #5f321b;
  box-shadow:
    inset 0 0 0 4px rgba(92, 45, 21, 0.35),
    4px 4px 0 rgba(0, 0, 0, 0.22);
  display: block;
  height: auto;
  max-height: min(31vh, 320px);
  object-fit: contain;
  position: relative;
  width: 100%;
  z-index: 2;
}

.book-page {
  background:
    radial-gradient(circle at 84% 9%, rgba(107, 74, 38, 0.16) 0 1.2rem, transparent 1.25rem),
    radial-gradient(circle at 90% 91%, rgba(107, 74, 38, 0.15) 0 1.8rem, transparent 1.85rem),
    linear-gradient(90deg, rgba(174, 35, 25, 0.9) 0 8px, transparent 8px 20px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 13%, transparent 88%, rgba(98, 62, 35, 0.18)),
    linear-gradient(180deg, #fff4cf 0%, #f8e9be 48%, #eedba8 100%);
  border: 12px solid #6d321e;
  box-shadow:
    inset 0 0 0 5px #9b5230,
    inset 18px 0 0 rgba(119, 52, 31, 0.18),
    inset -18px 0 0 rgba(119, 52, 31, 0.16),
    12px 12px 0 rgba(14, 8, 6, 0.34);
  min-height: min(680px, calc(100vh - 150px));
  padding: 2.15rem 2.6rem 2.25rem 3.2rem;
  position: relative;
  width: min(640px, calc(100vw - 3rem));
}

.book-page::before {
  background:
    linear-gradient(#b91f18 0 18px, transparent 18px 44px);
  background-size: 100% 44px;
  content: "";
  height: calc(100% - 4.4rem);
  left: 1.35rem;
  position: absolute;
  top: 2.2rem;
  width: 10px;
}

.book-page::after {
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(81, 55, 34, 0.42) 42% 47%, transparent 47%),
    linear-gradient(45deg, transparent 0 58%, rgba(81, 55, 34, 0.32) 58% 62%, transparent 62%);
  background-size: 46px 54px;
  bottom: 1rem;
  content: "";
  opacity: 0.55;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 72px;
}

.book-page-number {
  color: #0f0f0f;
  font-family: var(--pixel-font);
  font-size: clamp(1rem, 2.3vw, 1.7rem);
  line-height: 1;
  margin: 0 0 1.35rem;
  text-align: right;
}

.book-copy {
  color: #0f0f0f;
  font-family: var(--pixel-font);
  font-size: clamp(0.82rem, 1.38vw, 1.14rem);
  font-weight: 400;
  line-height: 1.45;
  position: relative;
  text-shadow: none;
  z-index: 1;
}

.book-copy p {
  color: #0f0f0f;
  margin: 0 0 1.25rem;
  max-width: none;
}

.book-copy strong {
  font-weight: 900;
}

body[data-view="about"] .hero,
body[data-view="projects"] .hero,
body[data-view="experience"] .hero {
  display: none;
}

body[data-view="about"] #about,
body[data-view="projects"] #projects {
  display: block;
}

body[data-view="about"] #about {
  display: flex;
}

.view-section {
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(23, 8, 9, 0.62) 7% 11%, transparent 11% 28%, rgba(21, 7, 8, 0.56) 28% 31%, transparent 31% 64%, rgba(18, 6, 7, 0.58) 64% 68%, transparent 68%),
    linear-gradient(180deg, transparent 0 32%, rgba(24, 8, 8, 0.7) 32% 38%, transparent 38% 58%, rgba(18, 6, 7, 0.62) 58% 63%, transparent 63%),
    linear-gradient(90deg, transparent 0 18%, rgba(255, 167, 22, 0.34) 18% 18.45%, transparent 18.45% 49%, rgba(255, 104, 8, 0.28) 49% 49.42%, transparent 49.42% 83%, rgba(255, 184, 35, 0.32) 83% 83.45%, transparent 83.45%),
    linear-gradient(90deg, transparent 0 4%, rgba(255, 184, 35, 0.2) 4% 4.8%, transparent 4.8% 36%, rgba(255, 112, 10, 0.18) 36% 37%, transparent 37% 72%, rgba(255, 184, 35, 0.2) 72% 73%, transparent 73%),
    linear-gradient(180deg, rgba(19, 6, 9, 0.28), rgba(5, 2, 4, 0.68)),
    linear-gradient(90deg, transparent 0 12%, rgba(19, 15, 18, 0.58) 12% 14%, transparent 14% 40%, rgba(34, 28, 30, 0.5) 40% 43%, transparent 43%),
    linear-gradient(135deg, #5b171d 25%, #3a0e13 25% 50%, #6b2022 50% 75%, #26080d 75%);
  background-size: auto, auto, auto, auto, auto, 150px 100%, 42px 42px;
  color: var(--cream);
  max-width: none;
  padding-left: max(6.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
}

.view-section::before {
  animation: lava-drip 12s linear infinite;
  background:
    radial-gradient(circle at 14px 12px, #ffd96a 0 2px, transparent 3px),
    radial-gradient(circle at 38px 30px, #ffb13b 0 2px, transparent 3px),
    radial-gradient(circle at 62px 8px, #fff07a 0 1.5px, transparent 3px),
    radial-gradient(circle at 76px 48px, #ffcf54 0 2px, transparent 3px),
    radial-gradient(circle at 24px 58px, #f47b18 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255, 210, 60, 0.22) 0 12%, transparent 12% 28%, rgba(140, 22, 4, 0.26) 28% 38%, transparent 38% 60%, rgba(255, 171, 26, 0.18) 60% 72%, transparent 72%),
    linear-gradient(180deg, #f06a0a 0%, #cf3d08 52%, #ff7a0d 100%),
    linear-gradient(90deg, #2a090c 0 10px, transparent 10px 76px, #2a090c 76px 100%),
    linear-gradient(135deg, #361016 25%, #190509 25% 50%, #4f1518 50% 75%, #26070a 75%);
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;
  background-size:
    32px 32px,
    42px 42px,
    36px 36px,
    48px 48px,
    40px 40px,
    72px 72px,
    100% 100%,
    100% 100%,
    38px 38px;
  box-shadow:
    0 0 24px rgba(255, 95, 0, 0.85),
    22px 0 24px rgba(255, 110, 0, 0.34);
  content: "";
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 92px;
  z-index: 0;
}

.view-section::after {
  animation: lava-ground-flow 12s linear infinite;
  background:
    radial-gradient(circle at 12px 18px, #ffd96a 0 2px, transparent 3px),
    radial-gradient(circle at 38px 12px, #fff07a 0 1.5px, transparent 3px),
    radial-gradient(circle at 66px 34px, #ffb13b 0 2px, transparent 3px),
    radial-gradient(circle at 92px 22px, #f47b18 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(255, 210, 60, 0.22) 0 12%, transparent 12% 28%, rgba(140, 22, 4, 0.24) 28% 38%, transparent 38% 60%, rgba(255, 171, 26, 0.18) 60% 72%, transparent 72%),
    linear-gradient(180deg, #f47a0d 0%, #d64608 52%, #ff850f 100%),
    linear-gradient(#21191b 0 22px, transparent 22px),
    linear-gradient(135deg, #4f4648 25%, #2d2729 25% 50%, #5b5051 50% 75%, #181214 75%);
  background-position:
    0 30px,
    0 30px,
    0 30px,
    0 30px,
    0 30px,
    0 30px,
    0 0,
    0 0;
  background-size:
    30px 30px,
    42px 42px,
    54px 54px,
    62px 62px,
    84px 84px,
    100% 74px,
    auto,
    34px 34px;
  bottom: 0;
  box-shadow:
    0 -18px 32px rgba(255, 89, 0, 0.74),
    0 -42px 52px rgba(255, 125, 0, 0.28),
    inset 0 10px 18px rgba(255, 225, 78, 0.38);
  content: "";
  height: 96px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 0;
}

.lava-pops {
  bottom: 42px;
  height: 130px;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.view-section > * {
  position: relative;
  z-index: 2;
}

.view-section .lava-pops {
  z-index: 5;
}

.nether-ghast {
  --ghast-x: 0px;
  --ghast-y: 0px;
  animation: ghast-float 5.5s ease-in-out infinite;
  filter: drop-shadow(10px 12px 0 rgba(0, 0, 0, 0.22));
  image-rendering: pixelated;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  right: 8%;
  top: 14%;
  transform: translate(var(--ghast-x), var(--ghast-y));
  width: clamp(74px, 8vw, 128px);
  z-index: 4;
}

#projects .nether-ghast {
  animation-delay: -6s;
  right: 74%;
  top: 18%;
}

#experience .nether-ghast {
  animation-delay: -11s;
  right: 12%;
  top: 52%;
}

.lava-pops span {
  animation: lava-pop 3.8s ease-in-out infinite;
  background: #ffb300;
  box-shadow:
    0 0 0 4px #ff6b00,
    0 0 24px rgba(255, 181, 0, 0.95),
    0 0 42px rgba(255, 75, 0, 0.68);
  height: 10px;
  left: 18%;
  opacity: 0;
  position: absolute;
  top: 84px;
  width: 10px;
}

.lava-pops span:nth-child(2) {
  animation-delay: 1.25s;
  height: 8px;
  left: 51%;
  top: 78px;
  width: 8px;
}

.lava-pops span:nth-child(3) {
  animation-delay: 2.35s;
  height: 12px;
  left: 78%;
  top: 92px;
  width: 12px;
}

.section-grid,
.section-heading,
.project-list {
  position: relative;
  z-index: 1;
}

.section-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(160px, 0.25fr) minmax(0, 0.75fr);
}

.section-kicker {
  color: #ffbd45;
}

.view-section h2 {
  color: var(--cream);
  text-shadow: 4px 4px 0 #120609;
}

.section-content p {
  color: rgba(255, 244, 207, 0.82);
  font-size: 1.08rem;
  max-width: 720px;
}

.section-heading {
  align-items: end;
  border-top: 0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-top: 0;
}

.project-card {
  background:
    linear-gradient(rgba(255, 244, 207, 0.93), rgba(255, 244, 207, 0.93)),
    linear-gradient(135deg, #53191e 25%, #351015 25% 50%, #641f22 50% 75%, #2b0d12 75%);
  border: 5px solid #120609;
  box-shadow: 8px 8px 0 rgba(255, 82, 18, 0.2);
}

.project-card p {
  color: var(--muted);
}

.projects-section {
  align-items: flex-start;
  display: none;
  justify-content: center;
  max-width: none;
  padding-bottom: 8.25rem;
  padding-left: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  padding-top: 5.4rem;
}

.experience-section {
  align-items: flex-start;
  display: none;
  justify-content: center;
  max-width: none;
  padding-bottom: 8.25rem;
  padding-left: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  padding-top: 5.4rem;
}

body[data-view="projects"] #projects {
  display: flex;
}

body[data-view="experience"] #experience {
  display: flex;
}

.projects-book,
.experience-book {
  min-height: min(610px, calc(100vh - 230px));
  padding-bottom: 1.75rem;
  padding-top: 1.8rem;
  width: min(900px, calc(100vw - 3rem));
}

.projects-book .book-page-number,
.experience-book .book-page-number {
  margin-bottom: 0.8rem;
}

.projects-book .section-heading {
  align-items: baseline;
  border-bottom: 3px solid rgba(107, 74, 38, 0.26);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
}

.projects-book .section-kicker {
  color: #9b2a1a;
}

.projects-book h2 {
  color: #0f0f0f;
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 0;
  text-shadow: none;
}

.project-list {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

.project-card {
  background: rgba(255, 247, 214, 0.38);
  border: 3px solid rgba(107, 74, 38, 0.28);
  box-shadow: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 0.3fr) 1fr;
  min-height: 0;
  padding: 0.85rem 1rem;
}

.project-card h3,
.project-card p {
  margin-bottom: 0.45rem;
}

.projects-book .project-card h3 {
  color: #0f0f0f;
  font-family: var(--pixel-font);
  font-size: clamp(0.86rem, 1.38vw, 1.14rem);
  line-height: 1.35;
}

.projects-book .project-card p {
  color: #0f0f0f;
  font-family: var(--pixel-font);
  font-size: clamp(0.82rem, 1.38vw, 1.14rem);
  line-height: 1.45;
}

.projects-book .project-type,
.projects-book .project-tech {
  color: #9b2a1a;
  font-weight: 900;
}

.project-tech {
  align-content: start;
  border-right: 3px solid rgba(107, 74, 38, 0.26);
  display: grid;
  font-family: var(--pixel-font);
  font-size: clamp(0.58rem, 0.86vw, 0.76rem);
  gap: 0.32rem;
  line-height: 1.25;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0.85rem 0.15rem 0;
  text-transform: uppercase;
}

.project-tech li {
  overflow-wrap: anywhere;
}

.project-details {
  min-width: 0;
}

.projects-book .project-card a {
  font-family: var(--pixel-font);
  font-size: clamp(0.82rem, 1.38vw, 1.14rem);
  line-height: 1.45;
}

.project-card a,
.experience-list a,
.site-footer a {
  color: #1f6c25;
  font-weight: 900;
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.2em;
}

.project-media {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, #909797 25%, #777d7e 25% 50%, #9fa5a5 50% 75%, #686d6e 75%);
  background-size: 28px 28px;
  border: 4px solid var(--line);
  display: grid;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.analytics-media {
  align-items: end;
  gap: 0.7rem;
  grid-template-columns: repeat(3, 1fr);
}

.analytics-media span {
  background: var(--diamond);
  border: 4px solid var(--line);
  display: block;
}

.analytics-media span:nth-child(1) {
  height: 48%;
}

.analytics-media span:nth-child(2) {
  background: var(--redstone);
  height: 74%;
}

.analytics-media span:nth-child(3) {
  background: var(--gold);
  height: 58%;
}

.workflow-media {
  align-content: center;
  gap: 0.8rem;
}

.workflow-media span {
  background: var(--cream);
  border: 4px solid var(--line);
  display: block;
  height: 34px;
}

.workflow-media span:nth-child(2) {
  margin-left: 18%;
}

.workflow-media span:nth-child(3) {
  margin-left: 36%;
}

.workflow-media span:nth-child(4) {
  background: var(--diamond);
  margin-left: 54%;
}

.site-media {
  grid-template-columns: 0.42fr 1fr;
  gap: 0.8rem;
}

.site-media span {
  background: var(--cream);
  border: 4px solid var(--line);
}

.site-media span:nth-child(2) {
  background:
    linear-gradient(var(--redstone), var(--redstone)) 1rem 1rem / 42% 1rem no-repeat,
    linear-gradient(var(--grass), var(--grass)) 1rem 3rem / 68% 0.8rem no-repeat,
    var(--cream);
}

.experience-list {
  display: grid;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.experience-list article {
  background: rgba(255, 247, 214, 0.38);
  border: 3px solid rgba(107, 74, 38, 0.28);
  box-shadow: none;
  margin: 0;
  padding: 0.7rem 1rem;
}

.experience-list h3,
.experience-list p {
  margin-bottom: 0.25rem;
}

.experience-heading {
  margin-bottom: 0;
}

.experience-title-row {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.experience-heading h3 {
  color: #0f0f0f;
  font-family: var(--pixel-font);
  font-size: clamp(0.86rem, 1.38vw, 1.14rem);
  line-height: 1.25;
}

.experience-heading p {
  color: #0f0f0f;
  font-family: var(--pixel-font);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  line-height: 1.35;
}

.experience-list time {
  color: #9b2a1a;
  display: block;
  font-family: var(--pixel-font);
  font-size: clamp(0.62rem, 0.86vw, 0.76rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: none;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 1.5rem 2rem;
}

.site-footer p {
  margin: 0;
}

.tab-transition {
  align-items: center;
  background: #050203;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 480ms steps(8);
  z-index: 100;
}

.tab-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tab-transition.is-fading-out {
  opacity: 0;
}

.tab-transition::before,
.tab-transition::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.tab-transition::before {
  background:
    radial-gradient(circle at center, transparent 0 46%, rgba(5, 2, 3, 0.55) 72%, rgba(5, 2, 3, 0.95) 100%),
    linear-gradient(90deg, rgba(5, 2, 3, 0.82), transparent 18%, transparent 82%, rgba(5, 2, 3, 0.82));
}

.tab-transition::after {
  background: linear-gradient(180deg, rgba(5, 2, 3, 0.78), transparent 24%, transparent 76%, rgba(5, 2, 3, 0.78));
  mix-blend-mode: multiply;
}

.tab-transition video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.loading-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 50%;
  max-width: min(88vw, 720px);
  position: absolute;
  top: 10%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

.loading-title-image {
  display: block;
  filter: drop-shadow(5px 5px 0 #111) drop-shadow(0 8px 0 rgba(0, 0, 0, 0.42));
  image-rendering: pixelated;
  margin-bottom: 1.45rem;
  max-width: min(88vw, 685px);
  width: 100%;
}

.loading-panel {
  background: #17100f;
  border: 5px solid #d7d7d7;
  box-shadow:
    inset 0 0 0 4px #5d5d5d,
    5px 5px 0 rgba(0, 0, 0, 0.55);
  color: #f3f3f3;
  font-family: var(--pixel-font);
  min-height: 116px;
  padding: 0.35rem 1rem 1rem;
  text-align: center;
  width: min(88vw, 420px);
}

.loading-panel p {
  color: #bdbdbd;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.loading-panel strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
}

.loading-bar {
  background: rgba(255, 255, 255, 0.22);
  height: 4px;
  margin-top: 5.4rem;
  overflow: hidden;
  width: min(56vw, 320px);
}

.loading-bar span {
  background: #d8d0c7;
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

.tab-transition.is-loading .loading-bar span {
  animation: loading-progress 2s linear forwards;
}

@keyframes loading-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes music-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.82);
  }

  14% {
    opacity: 1;
  }

  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(118px, -132px) scale(1.08);
  }
}

@keyframes lava-drip {
  0% {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
    filter: brightness(0.94);
  }

  50% {
    background-position:
      0 18px,
      0 24px,
      0 14px,
      0 30px,
      0 20px,
      0 32px,
      0 0,
      0 0,
      0 0;
    filter: brightness(1.16) saturate(1.18);
  }

  100% {
    background-position:
      0 32px,
      0 42px,
      0 36px,
      0 48px,
      0 40px,
      0 72px,
      0 0,
      0 0,
      0 0;
    filter: brightness(0.98);
  }
}

@keyframes lava-ground-flow {
  0% {
    background-position:
      0 30px,
      0 30px,
      0 30px,
      0 30px,
      0 30px,
      0 30px,
      0 0,
      0 0;
    filter: brightness(0.96);
  }

  50% {
    background-position:
      15px 30px,
      21px 30px,
      27px 30px,
      31px 30px,
      42px 30px,
      0 30px,
      0 0,
      0 0;
    filter: brightness(1.14) saturate(1.2);
  }

  100% {
    background-position:
      30px 30px,
      42px 30px,
      54px 30px,
      62px 30px,
      84px 30px,
      100% 30px,
      0 0,
      0 0;
    filter: brightness(1);
  }
}

@keyframes lava-pop {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 28px) scale(0.55);
  }

  18% {
    opacity: 0.95;
  }

  46% {
    opacity: 0.9;
    transform: translate(12px, -46px) scale(1.15);
  }

  72% {
    opacity: 0;
    transform: translate(24px, 4px) scale(0.68);
  }
}

@keyframes ghast-float {
  0%,
  100% {
    transform: translate(var(--ghast-x), var(--ghast-y)) scale(1);
  }

  24% {
    transform: translate(calc(var(--ghast-x) - 18px), calc(var(--ghast-y) + 10px)) scale(1.04);
  }

  50% {
    transform: translate(calc(var(--ghast-x) - 34px), calc(var(--ghast-y) - 8px)) scale(0.98);
  }

  76% {
    transform: translate(calc(var(--ghast-x) - 10px), calc(var(--ghast-y) - 18px)) scale(1.02);
  }
}

@keyframes hold-pulse {
  0%,
  100% {
    transform: translate(0, 0);
  }
  40% {
    transform: translate(-1px, 1px);
  }
  70% {
    transform: translate(1px, -1px);
  }
}

@keyframes hold-complete {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.96);
  }
}

@media (pointer: coarse) {
  body,
  a,
  button {
    cursor: pointer;
  }
}

@media (max-width: 860px) {
  body[data-view="about"] #about .book-about {
    gap: 0.75rem;
  }

  .about-photo-rail {
    width: 120px;
  }

  .book-page {
    padding-left: 2.65rem;
    padding-right: 1.8rem;
    width: min(540px, calc(100vw - 2rem));
  }

  .hill-left,
  .tree-left,
  .flower-one,
  .tuft-one {
    display: none;
  }

  .hill-right {
    right: -2rem;
    width: 210px;
  }

  .tree-right {
    right: -2rem;
    transform: scale(0.78);
  }

  .flower-three {
    left: 68%;
  }

  .tuft-two {
    left: 82%;
  }

  .nav-toggle {
    align-items: center;
    background:
      linear-gradient(135deg, #909797 25%, #777d7e 25% 50%, #9fa5a5 50% 75%, #686d6e 75%);
    background-size: 20px 20px;
    border: 4px solid var(--line);
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    height: 46px;
    justify-content: center;
    width: 46px;
  }

  .nav-toggle span:not(.sr-only) {
    background: var(--cream);
    border: 1px solid var(--line);
    display: block;
    height: 5px;
    width: 22px;
  }

  .nav-hint {
    font-size: 0.55rem;
    margin-top: 0.3rem;
    max-width: calc(100vw - 2rem);
  }

  .nav-links {
    background:
      linear-gradient(135deg, #9b6840 25%, #8c5a35 25% 50%, #9b6840 50% 75%, #7d4d2d 75%);
    background-size: 34px 34px;
    border-bottom: 5px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    left: 0;
    padding: 1rem 1.5rem 1.2rem;
    position: absolute;
    right: 0;
    top: 82px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .mine-link {
    width: 100%;
  }

  .hero-inner,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .view-section {
    padding-left: 5.5rem;
  }

  .hero-inner {
    padding-top: 3.5rem;
  }

  .character-scene {
    min-height: 500px;
  }

  .pixel-character {
    transform: translateX(-50%) scale(0.82);
    transform-origin: bottom center;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-tech {
    border-right: 0;
    border-bottom: 3px solid rgba(107, 74, 38, 0.26);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 0 0.65rem;
  }

  .experience-title-row {
    display: block;
  }

  .experience-list time {
    margin-top: 0.2rem;
    text-align: left;
  }

  .project-media {
    aspect-ratio: 1.7;
  }

  h1 {
    font-size: 4.9rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-lede {
    font-size: 1.12rem;
  }
}

@media (max-width: 560px) {
  .about-photo-rail {
    display: none;
  }

  .hill-right,
  .tree-right,
  .flower-two,
  .flower-four,
  .tuft-three {
    display: none;
  }

  .nav,
  .hero-inner,
  .section,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .view-section {
    padding-left: 4.75rem;
  }

  .view-section::before {
    width: 42px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .character-scene {
    min-height: 430px;
  }

  .pixel-character {
    transform: translateX(-50%) scale(0.62);
  }

  .section-heading,
  .site-footer,
  .experience-list article {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }

  .button {
    width: 100%;
  }
}
