:root {
  --primary: #f7c948;
  --primary-deep: #e5a900;
  --primary-soft: #fff1b8;
  --canvas: #ffffff;
  --canvas-warm: #fff7df;
  --surface-soft: #fbf5e6;
  --surface-card: #fffdf4;
  --ink: #4a2608;
  --ink-soft: #6f451d;
  --ink-muted: #9b7445;
  --hairline: #e9d7a8;
  --mint: #c8e6cd;
  --lime: #dceeaf;
  --coral: #f3c9b6;
  --lilac: #cdb7f6;
  --sky: #bfe6ff;
  --red: #f45b5b;
  --blue: #4b8cff;
  --green: #67c96b;
  --orange: #ff9f2e;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --anchor-offset: 68px;
  --font-display: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(247, 201, 72, 0.2) 0 8px, transparent 9px),
    var(--canvas-warm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--canvas);
  padding: 10px 16px;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 16px var(--gutter) 0;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(var(--max), 100%);
  min-height: 72px;
  margin: 0 auto;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 0 var(--primary-deep);
  padding: 10px 18px;
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.brand-trio {
  color: #5a2c0b;
}

.brand-cheese {
  color: #f6b91f;
}

.brand img,
.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 14px;
}

.nav-links a:hover {
  background: var(--primary-soft);
}

.nav-links .nav-cta {
  margin-left: 8px;
  border: 3px solid var(--ink);
  background: var(--primary);
  box-shadow: 0 5px 0 var(--primary-deep);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--surface-card);
  place-items: center;
  cursor: pointer;
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 20px;
  height: 3px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--ink);
}

.section-shell {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

main > section[id],
.contact-strip[id] {
  scroll-margin-top: var(--anchor-offset);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: 760px;
  padding: clamp(56px, 7vw, 88px) 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--primary);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.hero-copy p,
.about-block p,
.soon-block p,
.contact-strip p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(3px);
}

.button-primary {
  background: var(--primary);
  box-shadow: 0 7px 0 var(--primary-deep);
  color: var(--ink);
}

.button-secondary {
  background: var(--canvas);
  box-shadow: 0 7px 0 var(--hairline);
  color: var(--ink);
}

.hero-stage {
  position: relative;
  min-height: 580px;
  max-width: 100%;
}

.hero-stage-art {
  display: grid;
  place-items: center;
}

.hero-all-art {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  filter: drop-shadow(0 20px 0 rgba(229, 169, 0, 0.3));
  animation: mascot-float 3.4s ease-in-out infinite;
}

.peek {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 10px 0 rgba(74, 38, 8, 0.12));
  animation: mascot-float 3s ease-in-out infinite;
}

.peek-dog {
  right: -10px;
  top: 4px;
  width: 220px;
}

.peek-bird {
  left: -22px;
  bottom: 6px;
  width: 190px;
  animation-delay: 400ms;
}

.peek-mouse {
  right: 20px;
  bottom: -8px;
  width: 150px;
  animation-delay: 800ms;
}

.about-block,
.vision-block,
.content-block,
.soon-block,
.contact-strip {
  margin-top: clamp(56px, 8vw, 88px);
  border: 4px solid var(--ink);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 48px);
}

.about-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.55fr);
  align-items: center;
  gap: 28px;
  background: var(--surface-soft);
}

.about-mascot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  perspective: 900px;
}

.about-mascot img {
  width: min(92%, 380px);
  filter: drop-shadow(0 10px 0 rgba(74, 38, 8, 0.08));
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(0) scale(1);
  transition: transform 180ms ease, filter 180ms ease;
  will-change: transform;
}

.about-mascot:hover img {
  filter: drop-shadow(0 18px 0 rgba(74, 38, 8, 0.1));
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(-8px) scale(1.04);
}

.vision-block {
  background: var(--mint);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading-wide {
  max-width: 900px;
}

.pillar-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card,
.feature-card,
.teaser-card {
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--surface-card);
  padding: 24px;
  box-shadow: 0 8px 0 var(--hairline);
}

.pillar-card p,
.feature-card p,
.character-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.pillar-icon,
.feature-icon,
.lock {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--primary);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.red {
  background: var(--red);
  color: white;
}

.green {
  background: var(--green);
}

.blue {
  background: var(--blue);
  color: white;
}

.orange {
  background: var(--orange);
}

.characters {
  margin-top: clamp(64px, 9vw, 104px);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.character-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 452px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--surface-card);
  padding: 16px;
  box-shadow: 0 10px 0 var(--hairline);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.character-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.character-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 240px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--primary-soft);
}

.character-stage img {
  position: relative;
  z-index: 1;
  width: 92%;
  max-height: 208px;
  object-fit: contain;
}

.character-stage.mint {
  background: var(--lime);
}

.character-stage.sky {
  background: var(--sky);
}

.character-stage.coral {
  background: var(--coral);
}

.character-stage.lilac {
  background: var(--lilac);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 6px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.content-block {
  background: var(--primary);
}

.feature-card {
  min-height: 250px;
  background: var(--canvas);
}

.soon-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  background: var(--lilac);
}

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

.teaser-card {
  min-height: 160px;
  background: var(--surface-card);
}

.teaser-card:first-child {
  grid-column: span 2;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background: #4a2608;
  color: white;
}

.contact-strip .eyebrow,
.contact-strip p {
  color: white;
}

.contact-strip .eyebrow::before {
  background: var(--primary);
}

.contact-strip img {
  width: min(100%, 520px);
  transform: translateY(18px);
  justify-self: end;
}

.footer {
  margin-top: 80px;
  border-top: 4px solid var(--ink);
  background: var(--canvas);
  padding: 36px var(--gutter);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-stage {
    min-height: 520px;
  }

  .pillar-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --anchor-offset: 60px;
  }

  body {
    font-size: 16px;
  }

  .top-nav {
    position: relative;
    grid-template-columns: auto auto;
    min-height: 66px;
    border-radius: 32px;
  }

  .brand span {
    font-size: 20px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 4px solid var(--ink);
    border-radius: 24px;
    background: var(--canvas);
    padding: 12px;
    box-shadow: 0 8px 0 var(--primary-deep);
  }

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

  .nav-links a {
    text-align: center;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .about-block,
  .soon-block,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .about-mascot {
    min-height: 260px;
  }

  .contact-strip img {
    width: min(100%, 460px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  :root {
    --anchor-offset: 52px;
  }

  .site-header {
    top: 8px;
    padding-top: 8px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .top-nav {
    display: flex;
    justify-content: space-between;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    gap: 10px;
    padding: 8px 10px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .section-shell {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero {
    padding-top: 54px;
    overflow: hidden;
  }

  h1 {
    max-width: 340px;
    font-size: 38px;
    line-height: 1.04;
  }

  .hero-copy p {
    max-width: 340px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stage {
    min-height: 420px;
  }

  .hero-all-art {
    width: min(112%, 430px);
  }

  .peek-dog {
    right: -12px;
    top: 18px;
    width: 140px;
  }

  .peek-bird {
    left: -18px;
    bottom: 2px;
    width: 132px;
  }

  .peek-mouse {
    right: 12px;
    bottom: -10px;
    width: 122px;
  }

  .about-block,
  .vision-block,
  .content-block,
  .soon-block,
  .contact-strip {
    border-radius: 24px;
    padding: 28px;
  }

  .pillar-grid,
  .feature-grid,
  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .teaser-card:first-child {
    grid-column: auto;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 31px;
  }

  .brand span {
    display: none;
  }

  .hero-stage {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
