:root {
  --ink: #171411;
  --muted: #6f5947;
  --paper: #fff5e5;
  --panel: #fffdf7;
  --line: #35211222;
  --coral: #ff7b42;
  --teal: #39c8bd;
  --yellow: #ffd75f;
  --green: #86b94f;
  --blue: #4f8edb;
  --wood: #9c653d;
  --rug: #e96b4d;
  --cream: #fff1d2;
  --shadow: 0 22px 50px #5a321f24;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 9% 16%, #ffd75f4d 0 11.5rem, transparent 11.7rem),
    radial-gradient(circle at 92% 4%, #39c8bd4d 0 12.5rem, transparent 12.7rem),
    linear-gradient(90deg, #6f3d1f10 0 1px, transparent 1px 4.5rem),
    linear-gradient(180deg, #fff7ea 0 58%, #e5bd84 58% 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  background:
    repeating-linear-gradient(90deg, #7a4a2812 0 1px, transparent 1px 5.5rem),
    linear-gradient(180deg, #d7a66f 0%, #c88d5c 100%);
}

body::after {
  right: clamp(1rem, 8vw, 7rem);
  top: 4.5rem;
  width: clamp(7rem, 14vw, 12rem);
  height: clamp(7rem, 14vw, 12rem);
  border-radius: .8rem;
  border: 3px solid #171411;
  background:
    linear-gradient(90deg, #17141118 0 4px, transparent 4px),
    linear-gradient(#f7dca7 0 22%, #9c653d 22% 100%);
  opacity: .18;
  box-shadow: 7px 7px 0 #171411;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand {
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: clamp(8rem, 16vw, 12rem);
  height: auto;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--ink);
  border-radius: .5rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 #000;
}

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

.nav-links {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

.nav-links a {
  padding: .55rem .2rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.home-hero,
.feature-band,
.quiz-promo,
.sister-projects,
.social-band,
.quiz-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 5rem;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #00000018;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
  text-shadow: 2px 2px 0 #ffffff, 4px 4px 0 #00000012;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 8vw, 6.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.45rem;
}

.lead {
  max-width: 43rem;
  color: #4d4943;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.intro-actions {
  align-items: flex-start;
  flex-direction: column;
  gap: .65rem;
}

.compact-home-button {
  min-height: 2.35rem;
  padding: .48rem .8rem;
  font-size: .86rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: .6rem;
  padding: .75rem 1.05rem;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  background: linear-gradient(180deg, #ff9b57 0%, var(--coral) 100%);
}

.button.secondary {
  background: #fffdf7;
}

.hero-stage,
.quiz-panel,
.project-card,
.quiz-promo,
.sister-card,
.social-band {
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stage {
  position: relative;
  min-height: 25rem;
  display: grid;
  place-items: end center;
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(transparent 66%, #6f3d1f24 66% 67%, transparent 67%),
    repeating-linear-gradient(90deg, #5d3b1f18 0 1px, transparent 1px 4rem),
    linear-gradient(180deg, #fff5df 0 66%, #e5b982 66% 100%);
}

.sprite-pedestal {
  position: relative;
  width: min(100%, 34rem);
  height: 21rem;
  z-index: 2;
}

.sprite,
.cat-orbit .sprite {
  display: block;
  width: 205px;
  height: 205px;
  image-rendering: auto;
  object-fit: contain;
  transform-origin: center bottom;
}

.moving-cat {
  --travel: 1.6rem;
  animation: cat-roam 4.8s ease-in-out infinite;
}

.running-cat {
  --travel: 2.25rem;
  animation-duration: 3.25s;
}

@keyframes cat-roam {
  0% {
    translate: calc(var(--travel) * -1) 0;
    scale: 1 1;
  }
  48% {
    translate: var(--travel) 0;
    scale: 1 1;
  }
  50% {
    translate: var(--travel) 0;
    scale: -1 1;
  }
  98% {
    translate: calc(var(--travel) * -1) 0;
    scale: -1 1;
  }
  100% {
    translate: calc(var(--travel) * -1) 0;
    scale: 1 1;
  }
}

.result-sprite {
  width: 256px;
  height: 256px;
}

.delay-one {
  animation-delay: -.25s;
}

.delay-two {
  animation-delay: -.5s;
}

.sprite-pedestal .sprite {
  position: absolute;
}

.sprite-pedestal .orange-cat {
  left: 13.4rem;
  bottom: -.25rem;
  z-index: 3;
  transform: scale(.86);
}

.sprite-pedestal .orange-cat.moving-cat {
  --travel: 8.2rem;
  animation-duration: 7.2s;
}

.sprite-pedestal .tuxedo {
  left: 2.1rem;
  bottom: 2.15rem;
  z-index: 2;
  transform: scale(.64);
}

.sprite-pedestal .ragdoll {
  right: 1.9rem;
  bottom: 2.35rem;
  z-index: 1;
  transform: scale(.6);
}

.stage-prop {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.cat-tree-prop {
  right: 1.45rem;
  bottom: 4.4rem;
  width: 122px;
  opacity: .72;
  z-index: 0;
}

.wool-ball-prop {
  left: 4rem;
  bottom: 2.2rem;
  width: 35px;
  z-index: 4;
}

.feature-band {
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  border-radius: .75rem;
  padding: 1.2rem;
}

.project-art {
  width: 100%;
  aspect-ratio: 616 / 353;
  margin-bottom: 1rem;
  border: 2px solid var(--ink);
  border-radius: .55rem;
  background: #fff8ea;
  box-shadow: 4px 4px 0 #000;
  object-fit: cover;
}

.project-card p {
  color: #504c45;
  line-height: 1.55;
}

.project-points {
  display: grid;
  gap: .45rem;
  margin: .25rem 0 1rem;
  padding-left: 1.1rem;
  color: #4d3e32;
  font-weight: 700;
  line-height: 1.4;
}

.project-points li::marker {
  color: var(--coral);
}

.project-type {
  display: inline-flex;
  margin: 0 0 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .35rem .6rem;
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.accent-yellow {
  background:
    radial-gradient(circle at 96% 6%, #ffec8e 0 5.5rem, transparent 5.7rem),
    linear-gradient(180deg, #ffe291 0%, #ffc857 100%);
}

.accent-mint {
  background:
    radial-gradient(circle at 94% 8%, #fff8ea 0 5rem, transparent 5.2rem),
    linear-gradient(180deg, #bdf2e8 0%, #39c8bd 100%);
}

.accent-coral {
  background:
    radial-gradient(circle at 94% 8%, #ffd75f77 0 5rem, transparent 5.2rem),
    linear-gradient(180deg, #ffc08f 0%, #ff7b42 100%);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: auto;
}

.text-link,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .45rem .7rem;
  background: #fffdf7;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 3px 3px 0 #000;
}

.text-link:hover,
.text-link:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #000;
}

.quiz-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  border-radius: .9rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fffdf7 0%, #fff0d1 100%);
}

.social-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  border-radius: .9rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 94% 10%, #39c8bd2e 0 8rem, transparent 8.2rem),
    linear-gradient(135deg, #fffaf0 0%, #ffe291 100%);
}

.social-band h2 {
  max-width: 16ch;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
}

.quiz-promo p:not(.eyebrow) {
  max-width: 48rem;
  color: #504c45;
  line-height: 1.55;
}

.sister-projects {
  margin-bottom: 4rem;
}

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

.sister-card {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  border-radius: .75rem;
  padding: 1.25rem;
}

.sister-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border: 2px solid var(--ink);
  border-radius: .55rem;
  background: #111;
  box-shadow: 4px 4px 0 #000;
  object-fit: cover;
}

.sister-card p:not(.project-type) {
  color: #4d3e32;
  line-height: 1.55;
}

.sister-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.tiger-card {
  background:
    radial-gradient(circle at 95% 12%, #ff9b5740 0 5.5rem, transparent 5.7rem),
    linear-gradient(135deg, #fff4c7 0%, #ffc857 100%);
}

.mystic-card {
  background:
    radial-gradient(circle at 94% 10%, #ffd75f66 0 5.5rem, transparent 5.7rem),
    linear-gradient(135deg, #e7dcff 0%, #39c8bd 100%);
}

.quiz-shell {
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
  padding: 1.2rem 0 4rem;
}

.quiz-panel {
  width: 100%;
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 94% 2%, #39c8bd24 0 9rem, transparent 9.2rem),
    radial-gradient(circle at 4% 10%, #ffd75f2e 0 8rem, transparent 8.2rem),
    var(--panel);
}

.quiz-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid var(--line);
  padding-bottom: 1rem;
}

.quiz-topbar h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
}

.language-picker {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}

.language-picker select {
  min-width: 8rem;
  border: 2px solid var(--ink);
  border-radius: .55rem;
  padding: .5rem .65rem;
  background: #fff9ec;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 3px 3px 0 #000;
}

.screen {
  display: none;
  padding-top: 1.5rem;
}

.screen.active {
  display: block;
}

.intro-layout,
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  align-items: center;
  gap: 2rem;
}

.cat-orbit {
  position: relative;
  min-height: 17rem;
  border: 2px dashed #17141145;
  border-radius: .9rem;
  background:
    linear-gradient(transparent 68%, #6f3d1f20 68% 69%, transparent 69%),
    repeating-linear-gradient(90deg, #5d3b1f14 0 1px, transparent 1px 3.5rem),
    linear-gradient(180deg, #fff7ea 0 68%, #dfb176 68% 100%);
  overflow: hidden;
}

.cat-orbit .sprite {
  position: absolute;
}

.cat-orbit .black-cat {
  left: 50%;
  bottom: .05rem;
  transform: translateX(-50%) scale(.66);
  z-index: 3;
}

.cat-orbit .calico {
  left: 1.2rem;
  bottom: .65rem;
  transform: scale(.62);
  z-index: 2;
}

.cat-orbit .british-shorthair {
  right: 1.15rem;
  bottom: .55rem;
  transform: scale(.64);
  z-index: 1;
}

.orbit-ball-prop {
  left: 1.5rem;
  bottom: 1rem;
  width: 32px;
  z-index: 5;
}

.orbit-robot-prop {
  right: 2rem;
  bottom: 1.1rem;
  width: 35px;
  z-index: 5;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
  font-weight: 900;
}

.progress-track {
  height: .75rem;
  flex: 1;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff8e9;
  overflow: hidden;
}

#progress-bar {
  display: block;
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #ff9b57);
  transition: width .2s ease;
}

#question-title {
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.answer-button {
  min-height: 5rem;
  border: 2px solid var(--ink);
  border-radius: .7rem;
  padding: 1rem;
  background: #fffaf0;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.answer-button:hover,
.answer-button:focus-visible {
  background: #ffe291;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.result-art {
  position: relative;
  min-height: 21rem;
  display: grid;
  place-items: center;
  border-radius: .9rem;
  background:
    linear-gradient(transparent 68%, #6f3d1f24 68% 69%, transparent 69%),
    repeating-linear-gradient(90deg, #5d3b1f14 0 1px, transparent 1px 3.75rem),
    linear-gradient(180deg, #fff4d8 0 68%, #dfb176 68% 100%);
}

.result-puzzle-prop {
  right: 1.8rem;
  bottom: 1.25rem;
  width: 124px;
  z-index: 1;
}

.result-ball-prop {
  left: 2.25rem;
  bottom: 1.9rem;
  width: 35px;
  z-index: 3;
}

.result-art .result-sprite {
  position: relative;
  z-index: 2;
}

.result-copy h2 {
  margin-bottom: .8rem;
}

.adopt-line {
  border-left: 6px solid var(--coral);
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  background: #fff0cc;
  color: #3c3833;
  font-weight: 850;
  line-height: 1.45;
}

.share-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header,
  .quiz-topbar,
  .quiz-promo,
  .social-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero,
  .intro-layout,
  .result-layout,
  .project-grid,
  .sister-grid,
  .social-band {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: flex-start;
  }

  .home-hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-stage {
    min-height: 19rem;
  }

  .sprite-pedestal {
    width: min(100%, 26rem);
    height: 17rem;
  }

  .sprite-pedestal .orange-cat {
    left: 45%;
    bottom: -.15rem;
    transform: translateX(-50%) scale(.78);
  }

  .sprite-pedestal .tuxedo {
    left: 1rem;
    bottom: 1.65rem;
    transform: scale(.58);
  }

  .sprite-pedestal .ragdoll {
    right: .5rem;
    bottom: 1.85rem;
    transform: scale(.56);
  }

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

  .result-sprite {
    width: 205px;
    height: 205px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.8rem;
  }

  .button {
    width: 100%;
  }

  .hero-stage,
  .cat-orbit {
    transform: none;
    transform-origin: top center;
    width: 100%;
    margin-left: 0;
  }
}
