/* FLORKCZ — visual system */
:root {
  --black: #0a0a0a;
  --near-black: #121212;
  --ink: #1a1a1a;
  --yellow: #f0b90b;
  --yellow-hot: #ffc61a;
  --yellow-dim: #c99400;
  --white: #ffffff;
  --paper: #f7f3e8;
  --muted: #b8b0a0;
  --border: 3px solid var(--black);
  --shadow-stamp: 4px 4px 0 var(--black);
  --radius-rough: 3px 8px 4px 10px / 8px 3px 10px 4px;
  --font-display: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive, system-ui, sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(240, 185, 11, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(240, 185, 11, 0.06), transparent 45%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px
    ),
    var(--near-black);
  background-attachment: fixed;
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--yellow);
  color: var(--black);
  padding: 0.5rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.section-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  color: var(--yellow);
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 0.75rem;
  border-bottom: 2px dashed var(--yellow);
  padding-bottom: 0.15rem;
}

/* Buttons — rough meme UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: var(--border);
  border-radius: var(--radius-rough);
  box-shadow: var(--shadow-stamp);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-1px, -1px) rotate(-0.8deg);
  box-shadow: 5px 5px 0 var(--black);
}

.btn:active {
  transform: translate(2px, 2px) rotate(0.4deg);
  box-shadow: 1px 1px 0 var(--black);
}

.btn-buy {
  background: var(--yellow);
  color: var(--black);
}

.btn-buy:hover {
  background: var(--yellow-hot);
}

.btn-chart {
  background: var(--paper);
  color: var(--black);
}

.btn-x {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--yellow);
  min-width: 3rem;
  font-size: 1.05rem;
}

.btn-x:hover {
  background: #1a1a1a;
  color: var(--yellow-hot);
}

.btn-lg {
  min-height: 3.1rem;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
}

.btn-xl {
  min-height: 4rem;
  min-width: 5.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.75rem;
}

.btn-sub {
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.btn-copy {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--black);
  box-shadow: 3px 3px 0 #000;
  min-height: 2.4rem;
}

.btn-copy:disabled {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--muted);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 3px solid var(--yellow);
  backdrop-filter: blur(6px);
}

.header-inner {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border: 2px solid var(--yellow);
  border-radius: 40% 50% 45% 55% / 50% 40% 55% 45%;
  background: var(--white);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000, -1px 0 0 var(--black);
}

.hero-hook {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  max-width: 28ch;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  margin: 0 0 0.85rem;
  color: var(--paper);
}

.hero-deadpan {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 36ch;
  font-size: 1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

/* CA box */
.ca-box {
  border: var(--border);
  border-radius: var(--radius-rough);
  background: #161616;
  padding: 0.85rem 1rem;
  max-width: 100%;
  box-shadow: 5px 5px 0 var(--yellow);
}

.ca-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.55rem;
}

.ca-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 2px solid var(--black);
  transform: rotate(-1.5deg);
}

.ca-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ca-value {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--paper);
  background: #0a0a0a;
  border: 2px dashed var(--muted);
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  overflow-wrap: anywhere;
  word-break: break-all;
  flex: 1 1 auto;
  min-width: 0;
}

.ca-feedback {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--yellow);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: min(52vw, 420px);
}

.hero-panel {
  position: absolute;
  inset: 8% 6% 4% 10%;
  background: var(--yellow);
  border: 4px solid var(--black);
  border-radius: 18% 28% 22% 32% / 28% 18% 34% 22%;
  transform: rotate(3deg);
  z-index: 0;
  box-shadow: 8px 10px 0 #000;
}

.hero-mascot {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: contain;
  animation: mascot-float 4.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.35));
}

.doodle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  color: var(--paper);
}

.doodle-arrow {
  top: 12%;
  left: 2%;
  width: 48px;
  height: 48px;
  border-left: 4px solid var(--paper);
  border-bottom: 4px solid var(--paper);
  animation: doodle-wobble-arrow 3.4s ease-in-out infinite;
}

.doodle-arrow::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-left: 4px solid var(--paper);
  border-bottom: 4px solid var(--paper);
  transform: rotate(45deg);
}

.doodle-circle {
  right: 4%;
  bottom: 18%;
  width: 56px;
  height: 56px;
  border: 3px dashed var(--black);
  border-radius: 50%;
  animation: doodle-wobble 2.8s ease-in-out infinite reverse;
}

.doodle-q {
  top: 6%;
  right: 10%;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  animation: doodle-wobble 3.8s ease-in-out infinite;
}

.stamp-who {
  position: absolute;
  z-index: 4;
  left: 4%;
  bottom: 8%;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--paper);
  border: 3px solid var(--black);
  padding: 0.35rem 0.65rem;
  transform: rotate(-8deg) scale(0);
  box-shadow: 3px 3px 0 var(--black);
  animation: stamp-pop 0.55s var(--ease) 0.85s forwards;
}

/* Marquee */
.marquee {
  border-block: 3px solid var(--black);
  background: var(--yellow);
  color: var(--black);
  overflow: hidden;
  padding: 0.65rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track span::after {
  content: "★";
  margin-left: 2.5rem;
  opacity: 0.55;
}

/* WHO DIS dossier */
.who-dis {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  border: var(--border);
  background:
    linear-gradient(180deg, rgba(247, 243, 232, 0.05), transparent 40%),
    #151515;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 8px 8px 0 var(--yellow);
  border-radius: 2px 12px 4px 10px / 10px 2px 12px 4px;
}

.who-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.85;
  margin: 0 0 0.75rem;
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.who-stamp-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
  transform: rotate(-2deg);
}

.who-traits {
  list-style: none;
  margin-bottom: 1.25rem;
}

.who-traits li {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.35;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(240, 185, 11, 0.35);
}

.who-narrative {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  max-width: 40ch;
}

.who-extra {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42ch;
}

/* Banner moment */
.banner-moment {
  padding: 0.5rem 0 clamp(2.5rem, 5vw, 4rem);
}

.banner-frame {
  position: relative;
  border: 4px solid var(--black);
  background: var(--paper);
  padding: 0.65rem;
  box-shadow: 6px 6px 0 var(--yellow);
  transform: rotate(-0.4deg);
  transition: transform 0.35s var(--ease);
}

.banner-frame:hover {
  transform: rotate(0.4deg) translateY(-3px);
}

.banner-img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  background: #eee;
}

.tape {
  position: absolute;
  width: 64px;
  height: 22px;
  background: rgba(240, 185, 11, 0.75);
  border: 2px solid rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.tape-tl {
  top: -8px;
  left: 18px;
  transform: rotate(-12deg);
}

.tape-tr {
  top: -6px;
  right: 24px;
  transform: rotate(8deg);
}

.banner-note {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--black);
  margin: 0;
  background: var(--yellow);
  border: 2px solid var(--black);
  padding: 0.15rem 0.45rem;
  z-index: 2;
}

.banner-note-l {
  left: 0.75rem;
  bottom: -0.65rem;
  transform: rotate(-4deg);
}

.banner-note-r {
  right: 0.75rem;
  bottom: -0.55rem;
  transform: rotate(3deg);
}

/* Formula */
.formula {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.formula-eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.formula-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 7rem;
  padding: 0.85rem 1rem;
  border: 3px solid var(--black);
  background: #181818;
  border-radius: var(--radius-rough);
  box-shadow: 4px 4px 0 var(--yellow);
}

.formula-art {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 40% 50% 45% 55%;
}

.formula-art-lg {
  width: 6rem;
  height: 6rem;
}

.formula-word {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.formula-word-result {
  color: var(--yellow);
  font-size: 1.15rem;
}

.formula-op {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.formula-doodle {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border: 2px dashed var(--yellow);
  border-radius: 50%;
}

.formula-doodle.hair::before {
  content: "";
  width: 2.4rem;
  height: 1.1rem;
  background: #1a1a1a;
  border-radius: 60% 60% 10% 10%;
  box-shadow: 0 0.35rem 0 #111;
}

.formula-doodle.bnb {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--black);
  background: var(--yellow);
  border-style: solid;
  border-color: var(--black);
}

.formula-result {
  background: #1c1600;
  border-color: var(--yellow);
}

/* How to buy */
.how-buy {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.buy-steps {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.buy-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border: 3px solid var(--black);
  background: #141414;
  border-radius: var(--radius-rough);
  box-shadow: 4px 4px 0 rgba(240, 185, 11, 0.55);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid var(--black);
  transform: rotate(-3deg);
}

.buy-step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.buy-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.buy-step code {
  font-family: var(--font-mono);
  color: var(--yellow);
  font-size: 0.9em;
}

.how-cta {
  display: flex;
  justify-content: flex-start;
}

/* Meme wall */
.meme-wall {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.wall-item {
  margin: 0;
  border: 4px solid var(--black);
  background: var(--paper);
  padding: 0.55rem;
  box-shadow: 5px 5px 0 var(--yellow);
  transition: transform 0.25s var(--ease);
  min-width: 0;
}

.wall-item:hover {
  transform: rotate(-1.5deg);
}

.wall-item:nth-child(2):hover {
  transform: rotate(1.8deg);
}

.wall-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ece8dc;
}

.wall-wide {
  grid-column: span 4;
}

.wall-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.wall-item:not(.wall-wide):not(.wall-tall) {
  grid-column: span 4;
}

.wall-tall img {
  aspect-ratio: 1;
  object-fit: contain;
}

.wall-cap {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--black);
  margin-top: 0.45rem;
  transform: rotate(-1deg);
}

/* Community */
.community {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.community-inner {
  text-align: center;
  border: 4px solid var(--yellow);
  background: #101010;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  box-shadow: 0 0 0 6px var(--black), 10px 10px 0 var(--yellow);
}

.community-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0.35rem 0 1.5rem;
  line-height: 1;
}

/* Final CTA */
.final-cta {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: end;
  border: var(--border);
  background:
    linear-gradient(135deg, rgba(240, 185, 11, 0.18), transparent 55%),
    #121212;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--yellow);
}

.final-who {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: 0.85;
  margin: 0;
  color: var(--yellow);
  letter-spacing: -0.03em;
}

.final-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0.35rem 0 1.25rem;
  letter-spacing: 0.06em;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.final-peek {
  display: flex;
  justify-content: center;
}

.final-mascot {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  transform: translateY(8%) rotate(4deg);
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.4));
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--yellow);
  padding: 1.5rem 0 2rem;
  background: #0a0a0a;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--yellow);
  margin: 0;
  letter-spacing: 0.05em;
}

.footer-chain {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-x {
  font-weight: 800;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-rough);
}

.footer-x:hover {
  background: var(--yellow);
  color: var(--black);
}

.footer-joke {
  margin: 0;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-copy .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.28s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.36s; }
.hero-copy .reveal:nth-child(6) { transition-delay: 0.44s; }
.hero-copy .reveal:nth-child(7) { transition-delay: 0.52s; }

.formula-eq .reveal:nth-child(1) { transition-delay: 0.05s; }
.formula-eq .reveal:nth-child(2) { transition-delay: 0.12s; }
.formula-eq .reveal:nth-child(3) { transition-delay: 0.2s; }
.formula-eq .reveal:nth-child(4) { transition-delay: 0.28s; }
.formula-eq .reveal:nth-child(5) { transition-delay: 0.36s; }
.formula-eq .reveal:nth-child(6) { transition-delay: 0.44s; }
.formula-eq .reveal:nth-child(7) { transition-delay: 0.52s; }

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

@keyframes doodle-wobble {
  0%, 100% { transform: rotate(0deg); }
  33% { transform: rotate(4deg); }
  66% { transform: rotate(-3deg); }
}

@keyframes doodle-wobble-arrow {
  0%, 100% { transform: rotate(35deg); }
  33% { transform: rotate(39deg); }
  66% { transform: rotate(32deg); }
}

@keyframes stamp-pop {
  0% { transform: rotate(-8deg) scale(0); opacity: 0; }
  70% { transform: rotate(-10deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(-8deg) scale(1); opacity: 1; }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes texture-drift {
  0%, 100% { background-position: 0 0, 100% 20%, 0 0, 0 0; }
  50% { background-position: 2% 3%, 98% 18%, 0 6px, 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: texture-drift 28s ease-in-out infinite;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-mascot,
  .doodle-arrow,
  .doodle-circle,
  .doodle-q,
  .marquee-track,
  body {
    animation: none !important;
  }

  .stamp-who {
    animation: none;
    transform: rotate(-8deg) scale(1);
    opacity: 1;
  }

  .banner-frame:hover,
  .wall-item:hover,
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ===== Responsive breakpoints ===== */

@media (max-width: 1200px) {
  .hero-mascot {
    width: min(100%, 380px);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    gap: 1.5rem;
  }

  .wall-wide {
    grid-column: span 6;
  }

  .wall-tall {
    grid-column: span 3;
    grid-row: auto;
  }

  .wall-item:not(.wall-wide):not(.wall-tall) {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .header-nav .btn {
    min-height: 2.45rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

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

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .hero-mascot {
    width: min(78vw, 320px);
  }

  .doodle-arrow,
  .doodle-circle {
    display: none;
  }

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

  .final-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .final-actions {
    justify-content: center;
  }

  .final-mascot {
    width: min(70vw, 260px);
    transform: translateY(0) rotate(2deg);
  }

  .footer-joke {
    margin-left: 0;
    width: 100%;
  }

  .banner-note {
    font-size: 0.8rem;
  }
}

@media (max-width: 430px) {
  .header-inner {
    width: min(100% - 0.85rem, var(--max));
  }

  .brand-logo {
    width: 2.15rem;
    height: 2.15rem;
  }

  .header-nav {
    gap: 0.3rem;
  }

  .header-nav .btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
    box-shadow: 3px 3px 0 var(--black);
  }

  .hero-ctas .btn,
  .final-actions .btn {
    flex: 1 1 auto;
  }

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

  .wall-wide,
  .wall-tall,
  .wall-item:not(.wall-wide):not(.wall-tall) {
    grid-column: span 1;
  }

  .formula-part {
    min-width: 5.5rem;
    padding: 0.65rem 0.75rem;
  }

  .formula-art,
  .formula-doodle {
    width: 4rem;
    height: 4rem;
  }

  .formula-art-lg {
    width: 4.5rem;
    height: 4.5rem;
  }
}

@media (max-width: 360px) {
  .section-inner,
  .hero-grid {
    width: min(100% - 1rem, var(--max));
  }

  .brand-name {
    max-width: 7.5ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-nav .btn-chart {
    padding-inline: 0.45rem;
  }

  .ca-box {
    padding: 0.7rem;
    box-shadow: 3px 3px 0 var(--yellow);
  }

  .btn-xl {
    min-width: 4.5rem;
    font-size: 1.45rem;
  }
}

/* JS-enhanced parallax decorations (transform only) */
.parallax-layer {
  will-change: transform;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}
