:root {
  color-scheme: dark;
  --night: #090d14;
  --surface: #151a22;
  --surface-raised: #202630;
  --paper: #f4efe8;
  --muted: #c2c6ce;
  --pink: #ff687f;
  --mint: #8de2d1;
  --line: #66717e;
  --pixel: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  padding-bottom: calc(114px + env(safe-area-inset-bottom, 0px));
  cursor: url("/cursor.png") 11 10, auto;
}

a,
button,
[role="button"] {
  cursor: url("/cursor.png") 11 10, pointer;
}

p,
h1,
h2,
h3,
li,
small,
strong {
  cursor: text;
}

a *,
button * {
  cursor: inherit;
}

input,
textarea,
select,
[contenteditable="true"] {
  cursor: text;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-color: var(--night);
  background-image:
    linear-gradient(90deg, rgba(8, 11, 17, 0.87) 0%, rgba(8, 11, 17, 0.66) 52%, rgba(8, 11, 17, 0.48) 100%),
    linear-gradient(180deg, rgba(8, 11, 17, 0.3) 0%, rgba(8, 11, 17, 0.78) 100%),
    url("/cityscape.png");
  background-position: center, center, center 42%;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, cover;
  content: "";
  pointer-events: none;
  animation: city-breathe 24s ease-out 1 both;
}

a {
  color: inherit;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:focus-visible,
.pet-trigger:focus-visible,
.voxel-object:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--night);
  font-weight: 700;
}

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

.page-frame {
  width: min(100% - 64px, 1328px);
  margin-inline: auto;
  animation: page-arrive 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
  animation: settle-down 650ms 80ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.wordmark,
.footer-mark {
  width: fit-content;
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover,
.footer-mark:hover {
  color: var(--mint);
}

.wordmark span,
.footer-mark span {
  color: var(--pink);
}

.wordmark i {
  display: inline-block;
  margin-left: 3px;
  color: var(--mint);
  font-size: 0.8rem;
  font-style: normal;
  vertical-align: top;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: grid;
  min-width: 88px;
  min-height: 46px;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px 4px 9px 4px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(141, 226, 209, 0.3);
  background: linear-gradient(180deg, #27313c, var(--surface-raised));
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(244, 239, 232, 0.12), 0 3px 0 #111720;
}

.site-nav a:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--pink), inset 0 1px 0 rgba(244, 239, 232, 0.12), 0 3px 0 #111720;
}

.eyebrow-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--pink);
  color: var(--night);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 640px;
  padding: 102px 12% 94px 4.4%;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy > * {
  animation: rise-in 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-copy > :nth-child(1) { animation-delay: 150ms; }
.hero-copy > :nth-child(2) { animation-delay: 230ms; }
.hero-copy > :nth-child(3) { animation-delay: 310ms; }
.hero-copy > :nth-child(4) { animation-delay: 390ms; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-mark {
  color: var(--night);
  font-size: 0.72rem;
  letter-spacing: 0;
}

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

h1,
h2,
h3 {
  font-weight: 600;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: var(--pixel);
  font-size: clamp(3.3rem, 7.2vw, 6.8rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 span,
h1 em {
  color: var(--pink);
  font-style: normal;
}

.hero-intro {
  max-width: 570px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.17rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 19px;
  border: 2px solid transparent;
  border-radius: 12px 5px 12px 5px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.25, 1), background-color 160ms ease, box-shadow 160ms ease;
}

.button::after {
  position: absolute;
  z-index: -1;
  inset: 4px 7px auto;
  height: 42%;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px 3px 0 0;
  content: "";
  pointer-events: none;
}

.button:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.button:active {
  transform: translateY(2px) scale(0.99);
}

.button-primary {
  background: var(--pink);
  color: var(--night);
  box-shadow: 0 4px 0 #9b3f54, 0 8px 15px rgba(3, 5, 8, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button-primary:hover {
  background: #ffa0bf;
  box-shadow: 0 6px 0 #9b3f54, 0 12px 18px rgba(3, 5, 8, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button-primary:active {
  box-shadow: 0 1px 0 #9b3f54, 0 3px 7px rgba(3, 5, 8, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button-secondary {
  border-color: var(--mint);
  color: var(--paper);
  box-shadow: 0 4px 0 #315f5d, 0 8px 15px rgba(3, 5, 8, 0.24), inset 0 1px 0 rgba(244, 239, 232, 0.16);
}

.button-secondary:hover {
  background: var(--surface-raised);
  box-shadow: 0 6px 0 #315f5d, 0 12px 18px rgba(3, 5, 8, 0.28), inset 0 1px 0 rgba(244, 239, 232, 0.2);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 180ms ease, gap 180ms ease, transform 180ms ease;
}

.text-link:hover {
  gap: 13px;
  color: var(--mint);
  transform: translateX(2px);
}

.voxel-stage {
  position: absolute;
  top: 50%;
  right: 2%;
  width: 318px;
  height: 278px;
  perspective: 880px;
  transform: translateY(-50%);
}

.voxel-stage::before {
  position: absolute;
  right: 41px;
  bottom: 28px;
  left: 54px;
  height: 32px;
  border: 1px solid rgba(255, 104, 127, 0.24);
  background: radial-gradient(ellipse, rgba(255, 104, 127, 0.16), rgba(9, 13, 20, 0) 72%);
  content: "";
  filter: blur(3px);
  pointer-events: none;
}

.voxel-block {
  --voxel-size: 118px;
  --voxel-half: 59px;
  --voxel-front: #bd4d67;
  --voxel-back: #633247;
  --voxel-right: #78364e;
  --voxel-left: #4e2b42;
  --voxel-top: #ffa0b0;
  --voxel-bottom: #2b2332;
  position: absolute;
  display: block;
  width: var(--voxel-size);
  height: var(--voxel-size);
  transform-style: preserve-3d;
  animation: voxel-drift 3.2s ease-in-out 1 both;
}

.voxel-block-main {
  top: 58px;
  left: 101px;
  z-index: 2;
}

.voxel-block-small {
  --voxel-size: 70px;
  --voxel-half: 35px;
  --voxel-front: #397d79;
  --voxel-back: #243e49;
  --voxel-right: #284e58;
  --voxel-left: #1d3942;
  --voxel-top: #a4ead8;
  --voxel-bottom: #172c35;
  top: 149px;
  left: 27px;
  z-index: 0;
  transform: rotateX(-28deg) rotateY(38deg) rotateZ(-8deg);
  animation-delay: 180ms;
}

.voxel-block-tiny {
  --voxel-size: 48px;
  --voxel-half: 24px;
  --voxel-front: #944055;
  --voxel-back: #4c2c40;
  --voxel-right: #592c42;
  --voxel-left: #39263a;
  --voxel-top: #ff899d;
  --voxel-bottom: #211e2b;
  top: 27px;
  left: 244px;
  z-index: 1;
  transform: rotateX(-28deg) rotateY(38deg) rotateZ(7deg);
  animation-delay: 320ms;
}

.voxel-object {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  touch-action: none;
  user-select: none;
  transform: rotateX(var(--voxel-pitch, -26deg)) rotateY(var(--voxel-yaw, 34deg));
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

.voxel-object:focus-visible {
  outline-offset: 12px;
}

.voxel-object[data-dragging="true"] {
  transition: none;
}

.voxel-face {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(244, 239, 232, 0.56);
  box-shadow: inset 1px 1px 0 rgba(244, 239, 232, 0.16), inset -2px -2px 0 rgba(6, 9, 14, 0.2);
  backface-visibility: hidden;
  box-sizing: border-box;
  transition: filter 180ms ease;
}

.voxel-object:hover .voxel-face {
  filter: brightness(1.06);
}

.voxel-object[data-dragging="true"] .voxel-face {
  filter: brightness(1.08);
}

.voxel-front {
  background-color: var(--voxel-front);
  background-image:
    linear-gradient(90deg, rgba(244, 239, 232, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(244, 239, 232, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: translateZ(var(--voxel-half));
}

.voxel-back {
  background-color: var(--voxel-back);
  background-image:
    linear-gradient(90deg, rgba(244, 239, 232, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(244, 239, 232, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotateY(180deg) translateZ(var(--voxel-half));
}

.voxel-right {
  background-color: var(--voxel-right);
  background-image:
    linear-gradient(90deg, rgba(244, 239, 232, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(244, 239, 232, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotateY(90deg) translateZ(var(--voxel-half));
}

.voxel-left {
  background-color: var(--voxel-left);
  background-image:
    linear-gradient(90deg, rgba(244, 239, 232, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(244, 239, 232, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotateY(-90deg) translateZ(var(--voxel-half));
}

.voxel-top {
  background-color: var(--voxel-top);
  background-image:
    linear-gradient(90deg, rgba(9, 13, 20, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(9, 13, 20, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotateX(90deg) translateZ(var(--voxel-half));
}

.voxel-bottom {
  background-color: var(--voxel-bottom);
  background-image:
    linear-gradient(90deg, rgba(244, 239, 232, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(244, 239, 232, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotateX(-90deg) translateZ(var(--voxel-half));
}

.mascot-pet {
  position: fixed;
  z-index: 20;
  right: max(12px, calc((100vw - 1328px) / 2));
  bottom: env(safe-area-inset-bottom, 0px);
  width: 184px;
  height: 114px;
  animation: mascot-arrive 850ms 430ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.pet-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
}

.pet-peek {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.pet-peek img {
  position: absolute;
  bottom: -13px;
  right: 0;
  display: block;
  width: 184px;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 3px 8px rgba(3, 5, 8, 0.72));
  opacity: 1;
  transform: translateY(0);
  transform-origin: center bottom;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.25, 1), opacity 120ms ease;
}

.pet-trigger:hover .pet-peek img,
.pet-trigger:focus-visible .pet-peek img {
  transform: translateY(-2px);
}

.pet-trigger:active .pet-peek img {
  transform: translateY(-1px) scale(0.995);
}

.mascot-pet.is-switching .pet-peek img {
  opacity: 0.35;
}

.pet-quote {
  position: absolute;
  right: 0;
  bottom: calc(100% - 8px);
  width: min(248px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #a5eedf;
  border-radius: 12px 12px 4px 12px;
  background: linear-gradient(160deg, #202a35, #131a24);
  box-shadow: 0 4px 0 #315f5d, 0 8px 18px rgba(3, 5, 8, 0.46), inset 0 1px 0 rgba(244, 239, 232, 0.12);
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 0.95rem;
  line-height: 1.4;
}

.pet-quote::after {
  position: absolute;
  right: 18px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid #a5eedf;
  border-bottom: 1px solid #a5eedf;
  background: #151d27;
  content: "";
  transform: skewY(35deg) rotate(45deg);
}

.pet-quote[hidden] {
  display: none;
}

.pet-quote:not([hidden]) {
  animation: bubble-pop 220ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.doors {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 70px;
  padding: 62px 4.4% 68px;
  border-bottom: 1px solid var(--line);
  animation: rise-in 700ms 180ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.section-heading .eyebrow {
  margin-bottom: 13px;
}

.section-heading h2,
.about-prose h2,
.empty-copy h2 {
  margin-bottom: 0;
  font-family: var(--pixel);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

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

.door {
  --door-edge: #623342;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 138px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 21px 20px 19px;
  border: 1px solid #74808d;
  border-radius: 12px 5px 12px 5px;
  background: linear-gradient(150deg, #202834, #141a23 74%);
  box-shadow: 0 5px 0 var(--door-edge), 0 10px 18px rgba(3, 5, 8, 0.3), inset 0 1px 0 rgba(244, 239, 232, 0.13);
  text-decoration: none;
  transform: perspective(850px) rotateY(-2deg) rotateX(1deg);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.door-about {
  --door-edge: #794153;
}

.door-journal {
  --door-edge: #32655e;
  transform: perspective(850px) rotateY(2deg) rotateX(1deg) rotateZ(0.4deg);
}

.door:hover {
  border-color: var(--pink);
  background-image: linear-gradient(150deg, #2b3541, #171e28 74%);
  box-shadow: 0 8px 0 var(--door-edge), 0 14px 20px rgba(3, 5, 8, 0.34), inset 0 1px 0 rgba(244, 239, 232, 0.18);
  transform: perspective(850px) translateY(-4px) rotateY(0deg) rotateX(2deg);
}

.door:active {
  box-shadow: 0 2px 0 var(--door-edge), 0 4px 8px rgba(3, 5, 8, 0.28), inset 0 1px 0 rgba(244, 239, 232, 0.12);
  transform: perspective(850px) translateY(2px) rotateY(0deg);
}

.door:nth-child(1) { animation: rise-in 560ms 320ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.door:nth-child(2) { animation: rise-in 560ms 420ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }

.door-index {
  align-self: start;
  padding: 4px 6px;
  border: 1px solid rgba(141, 226, 209, 0.38);
  border-radius: 5px 2px 5px 2px;
  background: #17242b;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.69rem;
  box-shadow: inset 0 1px 0 rgba(244, 239, 232, 0.08), 0 2px 0 #10171e;
}

.door-copy {
  display: grid;
  gap: 8px;
}

.door-copy strong {
  font-family: var(--pixel);
  font-size: 1.45rem;
  font-weight: 600;
}

.door-copy small {
  color: var(--muted);
  font-size: 0.83rem;
}

.door-arrow {
  align-self: end;
  color: var(--pink);
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.door:hover .door-arrow {
  transform: translate(2px, -2px);
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  animation: rise-in 650ms 520ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.footer-mark {
  font-size: 1.2rem;
}

.back-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.inner-page {
  min-height: 70vh;
  padding: 34px 4.4% 80px;
}

.inner-page > * {
  animation: rise-in 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.inner-page > :nth-child(1) { animation-delay: 130ms; }
.inner-page > :nth-child(2) { animation-delay: 240ms; }
.inner-page > :nth-child(3) { animation-delay: 350ms; }
.inner-page > :nth-child(4) { animation-delay: 460ms; }

.page-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.page-kicker a {
  color: var(--mint);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.about-intro,
.journal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.46fr);
  align-items: center;
  gap: clamp(48px, 10vw, 140px);
  padding: 10px 0 72px;
  border-bottom: 1px solid var(--line);
}

.about-heading h1,
.journal-heading h1,
.not-found h1 {
  font-size: clamp(3.4rem, 7vw, 6.2rem);
}

.about-mascot-gallery {
  position: relative;
  isolation: isolate;
  height: 440px;
  width: min(100%, 370px);
  justify-self: end;
}

.about-mascot-gallery::before {
  position: absolute;
  z-index: -1;
  inset: 36px 22px 34px;
  border: 1px solid rgba(141, 226, 209, 0.34);
  border-radius: 44% 8% 40% 10% / 12% 8% 14% 9%;
  background: radial-gradient(ellipse, rgba(141, 226, 209, 0.12), rgba(21, 26, 34, 0.36) 72%);
  box-shadow: inset 0 0 0 8px rgba(21, 26, 34, 0.16);
  content: "";
  transform: rotate(4deg);
}

.about-mascot-portrait {
  position: absolute;
  inset: 0;
  margin: 0;
}

.about-mascot-portrait img {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(3, 5, 8, 0.35));
  transform: translateX(-50%) rotate(-1deg);
  transition: transform 260ms ease;
}

.about-mascot-gallery:hover .about-mascot-portrait img {
  transform: translateX(-50%) rotate(0deg) translateY(-3px);
}

.about-mascot-working {
  position: absolute;
  right: -10px;
  bottom: 22px;
  width: 138px;
  margin: 0;
  padding: 6px 6px 8px;
  border: 1px solid rgba(244, 239, 232, 0.44);
  border-radius: 9px 3px 8px 3px;
  background: #171b24;
  box-shadow: 0 5px 0 #422d3e, 0 11px 19px rgba(3, 5, 8, 0.35);
  transform: rotate(5deg);
  transition: transform 240ms ease;
}

.about-mascot-working img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: radial-gradient(ellipse, #363144, #151a22 72%);
}

.about-mascot-gallery:hover .about-mascot-working {
  transform: rotate(2deg) translateY(-3px);
}

.about-body {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(0, 1.2fr);
  gap: 7vw;
  padding: 69px 0;
  border-bottom: 1px solid var(--line);
}

.margin-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--pink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.about-prose {
  max-width: 720px;
}

.about-prose h2 {
  max-width: 630px;
  margin-bottom: 23px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.prompt-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-list li {
  display: grid;
  min-height: 62px;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  padding: 0 14px;
  border: 1px solid rgba(102, 113, 126, 0.85);
  border-radius: 9px 3px 9px 3px;
  background: linear-gradient(120deg, rgba(32, 38, 48, 0.96), rgba(18, 24, 33, 0.96));
  color: var(--muted);
  font-size: 0.88rem;
  box-shadow: 0 3px 0 #10161e, inset 0 1px 0 rgba(244, 239, 232, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.prompt-list li:hover {
  border-color: rgba(141, 226, 209, 0.65);
  box-shadow: 0 5px 0 #10161e, inset 0 1px 0 rgba(244, 239, 232, 0.12);
  transform: translateY(-2px) translateX(3px);
}

.prompt-list li span:first-child {
  display: grid;
  width: 32px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(141, 226, 209, 0.38);
  border-radius: 6px 2px 6px 2px;
  background: #17242b;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.73rem;
  box-shadow: 0 2px 0 #10171e;
}

.page-end-link {
  margin: 25px 0 0;
  text-align: right;
}

.journal-page {
  min-height: 72vh;
}

.journal-heading {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-bottom: 68px;
}

.journal-heading .hero-intro {
  max-width: 640px;
  margin-bottom: 0;
}

.empty-shelf {
  --shelf-edge: #32655e;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 760px;
  margin: 52px 0 32px;
  padding: 34px;
  border: 1px solid #71808e;
  border-radius: 15px 5px 15px 5px;
  background: linear-gradient(145deg, #222b37, #141a23 78%);
  box-shadow: 0 6px 0 var(--shelf-edge), 0 14px 24px rgba(3, 5, 8, 0.34), inset 0 1px 0 rgba(244, 239, 232, 0.15);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.empty-shelf::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--mint), #49877e 72%, #345f5d);
  box-shadow: 2px 0 0 rgba(9, 13, 20, 0.4);
  content: "";
  opacity: 0.82;
  pointer-events: none;
}

.empty-shelf::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(225deg, #3c4b58 0 49%, rgba(9, 13, 20, 0) 50%);
  content: "";
  pointer-events: none;
}

.empty-shelf:hover {
  border-color: var(--mint);
  box-shadow: 0 9px 0 var(--shelf-edge), 0 18px 28px rgba(3, 5, 8, 0.38), inset 0 1px 0 rgba(244, 239, 232, 0.18);
  transform: translateY(-4px) rotateX(1deg);
}

.empty-copy {
  max-width: 590px;
}

.empty-copy .eyebrow {
  margin-bottom: 12px;
}

.empty-copy h2 {
  max-width: 540px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.empty-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.not-found {
  display: flex;
  min-height: 72vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
}

.not-found .hero-intro {
  margin-bottom: 26px;
}

.about-heading > *,
.journal-heading > *,
.not-found > * {
  animation: rise-in 580ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.about-heading > :nth-child(1),
.journal-heading > :nth-child(1),
.not-found > :nth-child(1) { animation-delay: 180ms; }
.about-heading > :nth-child(2),
.journal-heading > :nth-child(2),
.not-found > :nth-child(2) { animation-delay: 270ms; }
.about-heading > :nth-child(3),
.journal-heading > :nth-child(3),
.not-found > :nth-child(3) { animation-delay: 360ms; }

.prompt-list li {
  animation: rise-in 460ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.prompt-list li:nth-child(1) { animation-delay: 340ms; }
.prompt-list li:nth-child(2) { animation-delay: 440ms; }
.prompt-list li:nth-child(3) { animation-delay: 540ms; }

.margin-note,
.about-prose h2,
.empty-shelf,
.about-mascot-gallery {
  animation: rise-in 620ms 360ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.page-end-link {
  animation: rise-in 560ms 500ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes city-breathe {
  from { background-position: center, center, 49% 40%; }
  to { background-position: center, center, 52% 44%; }
}

@keyframes page-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes settle-down {
  from { opacity: 0; transform: translateY(-9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes voxel-drift {
  0% { translate: 0 0; }
  48% { translate: 0 -10px; }
  100% { translate: 0 0; }
}

@keyframes mascot-arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bubble-pop {
  from { opacity: 0; transform: translateY(7px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1020px) {
  .page-frame {
    width: min(100% - 44px, 920px);
  }

  .site-header {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .site-nav {
    justify-self: end;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-right: min(32vw, 250px);
    padding-left: 2%;
  }

  .hero-copy {
    max-width: 570px;
  }

  .voxel-stage {
    right: 0;
    transform: translateY(-50%) scale(0.72);
    transform-origin: right center;
  }

  .doors {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .door-list {
    max-width: 720px;
  }

  .about-intro {
    gap: 48px;
  }
}

@media (max-width: 740px) {
  .page-frame {
    width: min(100% - 32px, 600px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    min-height: 0;
    padding: 19px 0 12px;
  }

  .wordmark {
    font-size: 1.35rem;
  }

  .site-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    justify-self: stretch;
    gap: 5px;
  }

  .site-nav a {
    min-width: 0;
    min-height: 46px;
    padding-inline: 8px;
  }

  .hero {
    gap: 0;
    min-height: 0;
    padding: 62px 0 68px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(3.4rem, 14vw, 5.5rem);
  }

  .mascot-pet {
    right: 4px;
    width: 180px;
    height: 112px;
  }

  .voxel-stage {
    position: relative;
    top: auto;
    right: auto;
    width: min(318px, 100%);
    height: 248px;
    margin: 4px auto -30px;
    transform: scale(0.86);
    transform-origin: top center;
  }

  .pet-peek img {
    bottom: -13px;
    width: 180px;
  }

  .pet-quote {
    font-size: 0.84rem;
  }

  .doors {
    gap: 25px;
    padding: 43px 0;
  }

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

  .door {
    min-height: 104px;
  }

  .site-footer {
    flex-wrap: wrap;
    row-gap: 5px;
    padding: 16px 0;
  }

  .inner-page {
    padding: 24px 0 57px;
  }

  .page-kicker {
    margin-bottom: 37px;
  }

  .about-intro,
  .journal-heading {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 49px;
  }

  .about-heading h1,
  .journal-heading h1,
  .not-found h1 {
    font-size: clamp(3.4rem, 14vw, 5.3rem);
  }

  .about-mascot-gallery {
    justify-self: center;
    height: 360px;
    width: min(100%, 360px);
  }

  .about-mascot-working {
    right: 0;
    bottom: 15px;
    width: 116px;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 42px 0;
  }

  .empty-shelf {
    margin: 36px 0 20px;
    padding: 27px 23px;
  }
}

@media (min-width: 741px) and (max-width: 1100px) {
  .hero {
    padding-right: min(32vw, 250px);
  }

  .voxel-stage {
    right: 0;
    transform: translateY(-50%) scale(0.72);
    transform-origin: right center;
  }
}

@media (max-width: 420px) {
  .page-frame {
    width: min(100% - 26px, 600px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .door {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    padding-inline: 13px;
  }

  .mascot-pet {
    width: 156px;
    height: 97px;
  }

  .pet-peek img {
    bottom: -11px;
    width: 156px;
  }

  .voxel-stage {
    height: 230px;
    margin-top: 0;
    transform: scale(0.76);
  }

  .pet-quote {
    width: min(210px, calc(100vw - 32px));
  }

  .site-footer {
    column-gap: 8px;
  }

  .back-top {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::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;
  }

  .pet-trigger:hover .pet-peek img,
  .pet-trigger:focus-visible .pet-peek img {
    transform: none !important;
  }

}
