@font-face {
  font-family: "Grozzo Display";
  src: url("fonts/lacquer.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Grozzo Hand";
  src: url("fonts/kristenitc.ttf") format("truetype");
  font-display: swap;
}

:root {
  --orange: #e9682d;
  --orange-light: #f4813f;
  --cream: #f2ead5;
  --paper: #fffaf0;
  --ink: #1d1b19;
  --blue: #7890c5;
  --blue-dark: #34405f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--orange);
  color: var(--ink);
  font-family: "Grozzo Hand", Arial, sans-serif;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--orange);
  border-bottom: 4px solid var(--ink);
}

.corner-nav {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.corner-link {
  position: absolute;
  pointer-events: auto;
  font-size: clamp(1.1rem, 2.5vw, 2.8rem);
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.06em;
  border-bottom: 3px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease;
}

.corner-link:hover,
.corner-link:focus-visible {
  transform: rotate(-2deg) scale(1.04);
  border-color: var(--ink);
  outline: none;
}

.corner-link-tl {
  left: clamp(1rem, 3vw, 3rem);
  top: clamp(1rem, 3vw, 2.5rem);
}

.corner-link-tr {
  right: clamp(1rem, 3vw, 3rem);
  top: clamp(1rem, 3vw, 2.5rem);
  text-align: right;
}

.corner-link-bl {
  left: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
}

.corner-link-br {
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  text-align: right;
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 6rem 1rem 5rem;
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(72vw, 920px);
  height: min(78vh, 760px);
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 46% 54% 49% 51% / 56% 42% 58% 44%;
  transform: rotate(-1deg);
}

.hero-kicker,
.hero-line,
.scroll-note,
.section-label,
.contract {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-kicker {
  position: relative;
  z-index: 4;
  font-size: clamp(0.75rem, 1.3vw, 1.1rem);
  text-align: center;
}

.hero h1 {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--orange-light);
  font-family: "Grozzo Display", sans-serif;
  font-size: clamp(7rem, 23vw, 23rem);
  line-height: 0.78;
  letter-spacing: -0.07em;
  white-space: nowrap;
  -webkit-text-stroke: clamp(3px, 0.45vw, 8px) var(--ink);
  paint-order: stroke fill;
}

.hero-bear {
  position: relative;
  z-index: 3;
  width: min(58vw, 620px);
  margin-top: -1rem;
  mix-blend-mode: multiply;
  animation: sleepy-bob 4.8s ease-in-out infinite;
}

.hero-line {
  position: relative;
  z-index: 4;
  margin-top: -1.7rem;
  max-width: 34rem;
  font-size: clamp(0.75rem, 1.4vw, 1.2rem);
  text-align: center;
}

.scroll-note {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  font-size: 0.65rem;
  white-space: nowrap;
  opacity: 0.72;
}

.gallery-intro {
  position: relative;
  padding: clamp(6rem, 12vw, 11rem) clamp(1rem, 5vw, 6rem) clamp(7rem, 12vw, 12rem);
  background: var(--orange);
  text-align: center;
}

.section-label {
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 700;
}

.gallery-intro h2,
.story-section h2,
.roadmap-section h2,
.dex-section h2,
.forest-footer h2 {
  margin: 0.2em 0;
  font-family: "Grozzo Display", sans-serif;
  font-weight: 400;
  line-height: 0.95;
}

.gallery-intro h2 {
  color: var(--cream);
  font-size: clamp(5rem, 14vw, 12rem);
  letter-spacing: 0.02em;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.contract {
  margin-bottom: 4rem;
  font-size: clamp(0.68rem, 1.4vw, 1rem);
  overflow-wrap: anywhere;
}

.gallery-shell {
  position: relative;
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.gallery-window {
  position: relative;
  z-index: 2;
  height: min(82vh, 820px);
  overflow: hidden;
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 48px;
  outline: 18px solid var(--orange);
  box-shadow: 0 0 0 22px var(--ink);
}

.gallery-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 2vw, 2rem);
  height: 100%;
  padding: clamp(1rem, 2vw, 2rem);
}

.art-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 2rem);
  animation: art-up 28s linear infinite;
}

.art-column-reverse {
  animation-name: art-down;
  animation-duration: 33s;
}

.gallery-window:hover .art-column {
  animation-play-state: paused;
}

.art-card {
  flex: 0 0 auto;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--ink);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.peek {
  position: absolute;
  z-index: 3;
  width: clamp(90px, 14vw, 170px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.peek-left {
  left: -5vw;
  top: 23%;
  transform: rotate(84deg);
}

.peek-right {
  right: -5vw;
  bottom: 18%;
  transform: rotate(-82deg);
}

.story-section {
  position: relative;
  padding: clamp(6rem, 10vw, 10rem) clamp(1rem, 6vw, 7rem);
  background: var(--cream);
  border-block: 4px solid var(--ink);
}

.story-heading {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.story-section h2 {
  max-width: 900px;
  font-size: clamp(4rem, 11vw, 10rem);
}

.story-art-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1rem, 3vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto clamp(5rem, 9vw, 9rem);
  align-items: end;
}

.story-image {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 14px 14px 0 var(--orange);
}

.story-image-low {
  transform: rotate(2deg) translateY(2.5rem);
}

.story-image-tall {
  transform: rotate(-1.5deg);
}

.story-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.story-list {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 3px solid var(--ink);
}

.story-part {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 4rem) 0;
  border-bottom: 3px solid var(--ink);
}

.story-number {
  margin: 0;
  color: var(--orange);
  font-family: "Grozzo Display", sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.85;
}

.story-part h3,
.roadmap-stop h3 {
  margin: 0 0 0.7rem;
  font-family: "Grozzo Display", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.story-part div > p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.roadmap-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(6rem, 10vw, 10rem) clamp(1rem, 6vw, 7rem);
  background: var(--blue);
  border-bottom: 4px solid var(--ink);
}

.roadmap-copy {
  align-self: start;
  position: sticky;
  top: 3rem;
}

.roadmap-section h2 {
  color: var(--cream);
  font-size: clamp(4.5rem, 10vw, 9rem);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

.roadmap-copy > p:last-child {
  max-width: 380px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.roadmap-list {
  border-top: 3px solid var(--ink);
}

.roadmap-stop {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 3px solid var(--ink);
}

.roadmap-stop > p {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.roadmap-stop span {
  display: block;
  max-width: 620px;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

.dex-section {
  padding: clamp(6rem, 10vw, 10rem) clamp(1rem, 5vw, 6rem);
  background: var(--orange);
}

.dex-heading {
  max-width: 1120px;
  margin: 0 auto 3rem;
}

.dex-section h2 {
  color: var(--cream);
  font-size: clamp(4.5rem, 12vw, 11rem);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.dex-heading > p:last-child {
  max-width: 630px;
  line-height: 1.6;
}

.dex-frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.6rem, 1.3vw, 1.1rem);
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 14px 14px 0 var(--cream);
}

.dex-frame iframe {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  background: #0b0d11;
}

.forest-footer {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 8rem);
  background: var(--blue-dark);
  color: var(--cream);
  border-top: 4px solid var(--ink);
}

.footer-copy {
  position: relative;
  z-index: 3;
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.forest-footer h2 {
  max-width: 900px;
  font-size: clamp(4rem, 11vw, 10rem);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

.footer-copy > p:last-child {
  letter-spacing: 0.12em;
}

.forest-footer > img {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 1.8rem;
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
  object-position: bottom center;
}

.forest-footer small {
  position: absolute;
  z-index: 4;
  left: 1rem;
  bottom: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@keyframes sleepy-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.8deg);
  }
}

@keyframes art-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - 0.5rem));
  }
}

@keyframes art-down {
  from {
    transform: translateY(calc(-50% - 0.5rem));
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .hero-stage::before {
    width: 86vw;
    height: 66vh;
  }

  .hero h1 {
    top: 47%;
  }

  .hero-bear {
    width: min(84vw, 520px);
  }

  .hero-line {
    margin-top: -0.7rem;
  }

  .gallery-window {
    height: 72vh;
    border-radius: 28px;
    outline-width: 10px;
    box-shadow: 0 0 0 14px var(--ink);
  }

  .gallery-track {
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .art-column {
    gap: 0.55rem;
  }

  .peek {
    display: none;
  }

  .story-art-grid,
  .roadmap-section {
    grid-template-columns: 1fr;
  }

  .story-image-low {
    transform: rotate(1deg);
  }

  .story-part {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1rem;
  }

  .roadmap-copy {
    position: static;
  }
}

@media (max-width: 520px) {
  .corner-link {
    font-size: 1rem;
  }

  .hero-kicker {
    max-width: 180px;
  }

  .hero h1 {
    font-size: 29vw;
  }

  .scroll-note {
    display: none;
  }

  .gallery-intro {
    padding-inline: 0.8rem;
  }

  .gallery-intro h2,
  .story-section h2,
  .roadmap-section h2,
  .dex-section h2,
  .forest-footer h2 {
    -webkit-text-stroke-width: 2px;
  }

  .story-part {
    grid-template-columns: 1fr;
  }

  .story-number {
    font-size: 3rem;
  }

  .forest-footer {
    min-height: 78vh;
  }
}

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

  .hero-bear,
  .art-column,
  .art-column-reverse {
    animation: none;
  }
}
