/* ─────────────────────────────────────────────
   FROGO — Small jobs. Full biscuit.
   Palette pulled from the artwork: coral wall, lime halftone,
   hot magenta letters, frog yellow, belly orange, rainy night.
   ───────────────────────────────────────────── */
:root {
  --coral: #f8727d;
  --coral-deep: #e2525f;
  --lime: #9ed13a;
  --lime-lite: #dbf56d;
  --magenta: #e63088;
  --magenta-deep: #a8195f;
  --plum: #5b1438;
  --yellow: #ffe94d;
  --orange: #fca016;
  --night: #0d1417;
  --night-2: #16222e;
  --night-3: #253546;
  --lamp: #f5d24a;
  --ink: #1a0f14;
  --cream: #fff6e3;
  --paper: #fffaf0;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
  --f-hand: "Caveat", cursive;

  --space-xs: .25rem; --space-sm: .5rem; --space-md: 1rem; --space-lg: 1.5rem;
  --space-xl: 2rem; --space-2xl: 3rem; --space-3xl: 4rem; --space-4xl: 6rem;

  --radius: 18px;
  --shadow-hard: 5px 5px 0 var(--ink);

  /* the squiggly "brain coral" fill from the FROGO banner letters */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='90' height='90' fill='%23e63088'/%3E%3Cg fill='none' stroke='%23fb6b5e' stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M4 8c8-6 14 6 22 0s12-8 18 2'/%3E%3Cpath d='M52 6c6 8 16-4 22 4s10 6 12 0'/%3E%3Cpath d='M8 26c4 8 14 2 12 12s8 10 14 4'/%3E%3Cpath d='M40 22c8 2 6 12 16 10s10 8 18 4'/%3E%3Cpath d='M78 22c-4 8 6 12 4 20'/%3E%3Cpath d='M4 52c10-4 10 8 20 4s8-12 16-6'/%3E%3Cpath d='M46 48c2 10 14 8 14 16s10 6 14 0'/%3E%3Cpath d='M62 42c8-6 16 2 24-2'/%3E%3Cpath d='M10 70c6 6 12-4 18 4s4 12 12 12'/%3E%3Cpath d='M36 64c6 4 2 12 10 14'/%3E%3Cpath d='M58 80c8-6 14 4 22-2s6-10 8-4'/%3E%3Cpath d='M82 58c-6 4-2 12 4 14'/%3E%3C/g%3E%3C/svg%3E");
  --halftone: radial-gradient(rgba(219,245,109,.75) 1.6px, transparent 1.9px) 0 0 / 7px 7px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; }
body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--magenta); color: var(--cream); }

.page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.section { padding-block: clamp(4rem, 10vw, 8rem); position: relative; }

.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.hand { font-family: var(--f-hand); }
.eyebrow { margin: 0 0 var(--space-md); opacity: .8; }

.h2 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 var(--space-lg); max-width: 18ch;
}
.h3 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1;
  margin: 0 0 var(--space-md);
}
p { max-width: 62ch; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  border: 2.5px solid var(--ink);
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { box-shadow: 4px 4px 0 var(--magenta); }
.btn--magenta { background: var(--magenta); color: var(--cream); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .35; pointer-events: none; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: .75rem clamp(1rem, 4vw, 3rem);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(255, 246, 227, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 0 var(--ink);
}
.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 900; font-size: 1.35rem;
  font-variation-settings: "SOFT" 100, "WONK" 1; text-decoration: none;
}
.nav__badge { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--ink); background: var(--coral); }
.nav__badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.9) translateY(14%); }
.nav__links { display: flex; gap: .2rem; background: rgba(255,246,227,.5); border: 2px solid var(--ink); border-radius: 999px; padding: .2rem; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: .35rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--ink); color: var(--cream); }

/* ─── Hero ─── */
.hero { background: var(--coral); position: relative; overflow: hidden; padding-top: clamp(5.5rem, 10vw, 7rem); }

.hero__inner {
  position: relative; max-width: 1320px; margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr; align-items: end; gap: var(--space-xl);
}
.hero__copy { padding-top: var(--space-lg); position: relative; z-index: 2; min-width: 0; }

/* Big banner-style letters: squiggle fill, ink outline, 3D magenta extrusion */
.mega {
  display: flex; margin: 0 0 var(--space-lg);
  font-family: var(--f-display); font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  font-size: clamp(4.6rem, 16vw, 12.5rem); line-height: .85; letter-spacing: -.03em;
}
.mega span { position: relative; display: inline-block; color: transparent; animation: bob 3.4s ease-in-out infinite; }
.mega span::before, .mega span::after { content: attr(data-t); position: absolute; left: 0; top: 0; -webkit-text-stroke: 3px var(--ink); }
.mega span::before { /* extrusion layer */
  color: var(--magenta-deep);
  text-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--magenta-deep), 3px 3px 0 var(--magenta-deep), 4px 4px 0 var(--magenta-deep),
    5px 5px 0 var(--magenta-deep), 6px 6px 0 var(--magenta-deep), 7px 7px 0 var(--magenta-deep), 8px 8px 0 var(--magenta-deep),
    9px 9px 0 var(--ink), 10px 10px 0 var(--ink);
}
.mega span::after { /* squiggle face */
  background: var(--squiggle) 0 0 / 70px 70px;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mega span:nth-child(1) { animation-delay: 0s; --r: -3deg; }
.mega span:nth-child(2) { animation-delay: -.5s; --r: 2deg; }
.mega span:nth-child(3) { animation-delay: -1s; --r: -1deg; }
.mega span:nth-child(4) { animation-delay: -1.5s; --r: 3deg; }
.mega span:nth-child(5) { animation-delay: -2s; --r: -2deg; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0)); } 50% { transform: translateY(-7px) rotate(calc(var(--r, 0) * -1)); } }

.hero__tagline {
  font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.1; margin: 0 0 var(--space-sm);
}
.hero__tagline em { font-style: italic; color: var(--yellow); -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.hero__lede { font-size: 1.15rem; margin: 0 0 var(--space-lg); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-md); padding-bottom: var(--space-2xl); }

/* CA pill */
.ca {
  display: flex; align-items: center; gap: .6rem;
  max-width: 100%; width: fit-content;
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: .35rem .4rem .35rem .9rem; margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-hard);
}
.ca__label { background: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; padding: .15rem .5rem; font-size: .68rem; flex-shrink: 0; }
.ca__addr { font-family: var(--f-mono); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca__copy {
  flex-shrink: 0; background: var(--ink); color: var(--cream); border: 0; border-radius: 999px;
  padding: .45rem .95rem; font-weight: 700; font-size: .85rem; transition: background .2s, transform .15s;
}
.ca__copy:hover { background: var(--magenta); transform: scale(1.04); }
.ca__copy.done { background: var(--lime); color: var(--ink); }

.hero__art { position: relative; justify-self: center; width: min(100%, 640px); }
.frogo { position: relative; transform-origin: 50% 92%; animation: breathe 4.5s ease-in-out infinite; margin-bottom: -2px; cursor: pointer; }
.frogo__base { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
.frogo.poked { animation: squish .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.008, 1.018); } }
/* toes: cut-out feet layered on the painting, pivoting at the heel */
.foot { position: absolute; height: auto; pointer-events: none; }
.foot--l { left: 14%; top: 76.14%; width: 13.64%; transform-origin: 85% 89%; animation: wiggle-l 4.2s ease-in-out infinite; }
.foot--r { left: 72.93%; top: 76.86%; width: 12.21%; transform-origin: 22% 89%; animation: wiggle-r 4.2s ease-in-out infinite; animation-delay: -1.3s; }
@keyframes wiggle-l {
  0%, 62%, 100% { transform: rotate(0); }
  68% { transform: rotate(7deg); } 74% { transform: rotate(-3deg); }
  80% { transform: rotate(6deg); }  86% { transform: rotate(-2deg); } 92% { transform: rotate(1deg); }
}
@keyframes wiggle-r {
  0%, 62%, 100% { transform: rotate(0); }
  68% { transform: rotate(-7deg); } 74% { transform: rotate(3deg); }
  80% { transform: rotate(-6deg); } 86% { transform: rotate(2deg); } 92% { transform: rotate(-1deg); }
}
.frogo:hover .foot, .frogo.poked .foot { animation-duration: .9s; }
@keyframes squish { 30% { transform: scale(1.06, .92); } 60% { transform: scale(.97, 1.04); } }

.lid {
  position: absolute; border-radius: 50%;
  background: linear-gradient(#f6d647, #f2c94e);
  border-bottom: 2px solid rgba(26,15,20,.8);
  transform: scaleY(0); transform-origin: 50% 0; pointer-events: none;
}
.lid--l { left: 28.3%; top: 14.8%; width: 7.4%; height: 9%; }
.lid--r { left: 68%; top: 19.3%; width: 5.3%; height: 5.4%; }
.frogo.blink .lid { animation: blink .22s ease-in-out; }
@keyframes blink { 0%, 100% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } }

.bubble {
  position: absolute; z-index: 3; top: -4%; right: -4%; max-width: 250px;
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 22px;
  padding: .9rem 1.1rem;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.02rem; line-height: 1.3;
  box-shadow: var(--shadow-hard); transform: rotate(3deg);
  animation: floaty 5s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; left: 18%; bottom: -16px; width: 26px; height: 26px; background: var(--cream);
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(35deg) skew(12deg);
}
@keyframes floaty { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-8px); } }

.note {
  background: var(--yellow); border: 2px solid var(--ink); padding: .9rem 1rem 1rem;
  font-family: var(--f-hand); font-size: 1.45rem; line-height: 1.1; font-weight: 700;
  box-shadow: var(--shadow-hard); max-width: 220px;
}
.note .mono { display: block; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; margin-bottom: .35rem; }
.note--hero { position: absolute; left: -4%; bottom: 22%; transform: rotate(-5deg); z-index: 3; }
.note--hero::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px;
  transform: translateX(-50%) rotate(3deg); background: rgba(255,255,255,.55); border: 1px solid rgba(26,15,20,.15);
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; min-height: min(86vh, 820px); }
  .hero__copy { align-self: center; padding-top: 0; }
  .hero__ctas { padding-bottom: 0; }
}
@media (max-width: 959px) {
  .nav__links { display: none; }
  .bubble { right: 0; top: -2%; max-width: 200px; font-size: .92rem; }
  .note--hero { left: 0; bottom: 14%; font-size: 1.2rem; max-width: 170px; }
}
@media (max-width: 520px) {
  .mega span::before, .mega span::after { -webkit-text-stroke-width: 2px; }
  .ca__addr { font-size: .74rem; }
}

/* ─── Marquee ─── */
.marquee {
  background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap;
  padding-block: .9rem; transform: rotate(-1.2deg); margin-block: -1rem;
  position: relative; z-index: 4; width: 104%; margin-left: -2%;
}
.marquee__track { display: inline-flex; gap: 1.5rem; animation: marquee 42s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.marquee i { font-style: normal; color: var(--lime); font-size: 1.2rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Banner ─── */
.banner { background: var(--lime); background-image: var(--halftone); padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.banner__frame { max-width: 1200px; margin: 0 auto; border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); transform: rotate(-.6deg); }
.banner__frame img { width: 100%; height: auto; }

/* ─── Meet ─── */
.meet { background: var(--lime); background-image: var(--halftone); padding-top: clamp(1rem, 3vw, 2rem); }
.meet__grid { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .meet__grid { grid-template-columns: 1.3fr 1fr; } }
.meet__text p { font-size: 1.15rem; }
.meet .h2 { background: var(--cream); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .2em; line-height: 1.25; border-radius: 6px; }
.meet .h2 + p { margin-top: var(--space-xl); }

.scale { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--space-xl) 0; }
.scale::before { content: ""; position: absolute; inset: 8% 6%; background: var(--coral); border-radius: 50%; border: 3px solid var(--ink); z-index: 0; }
.scale__frogo {
  position: relative; z-index: 2; width: 58%; aspect-ratio: 1; margin-bottom: -14%;
  -webkit-mask-image: radial-gradient(ellipse 48% 52% at 50% 52%, #000 72%, transparent 74%);
          mask-image: radial-gradient(ellipse 48% 52% at 50% 52%, #000 72%, transparent 74%);
}
.scale__frogo img { width: 100%; height: 100%; object-fit: cover; }
.scale__saucer { position: relative; z-index: 1; width: 78%; }
.scale__label { position: relative; z-index: 2; margin: .25rem 0 0; font-size: 1.6rem; font-weight: 700; transform: rotate(-3deg); }

.cards { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg) var(--space-lg); box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--tilt, 0)); transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.card--yellow { background: var(--yellow); }
.card--magenta { background: var(--squiggle) 0 0 / 90px 90px; color: var(--cream); }
.card--magenta .card__v { text-shadow: 2px 2px 0 var(--ink); }
.card--coral { background: var(--coral); }
.card__k { display: block; margin-bottom: var(--space-sm); }
.card__v { font-family: var(--f-display); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: 1.6rem; line-height: 1.12; margin: 0; max-width: 16ch; }
.card__icon { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; opacity: .85; }

/* ─── Story (rainy night) ─── */
.story {
  background: var(--night); color: var(--cream);
  background-image:
    radial-gradient(ellipse at 70% 20%, rgba(245,210,74,.10), transparent 50%),
    linear-gradient(var(--night-2), var(--night) 40%);
}
.story .eyebrow { color: var(--lamp); opacity: 1; }
.story__head { margin-bottom: var(--space-2xl); }

.scene {
  position: relative; margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 22px; overflow: hidden; border: 3px solid #000;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(245,210,74,.15);
}
.scene img { width: 100%; height: auto; }
.scene__glow {
  position: absolute; left: 44%; top: 10%; width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,210,74,.35), transparent 65%);
  mix-blend-mode: screen; animation: lamp 4s ease-in-out infinite; pointer-events: none;
}
@keyframes lamp { 0%, 100% { opacity: .7; } 45% { opacity: 1; } 50% { opacity: .55; } 55% { opacity: 1; } }
.scene__rain {
  position: absolute; inset: -20% 0 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(100deg, transparent 0 18px, rgba(200,220,255,.35) 18px 19px, transparent 19px 46px),
    repeating-linear-gradient(98deg, transparent 0 31px, rgba(200,220,255,.22) 31px 32px, transparent 32px 70px);
  background-size: 100% 90px, 100% 140px;
  animation: rain .6s linear infinite;
  -webkit-mask-image: linear-gradient(transparent, #000 20%);
          mask-image: linear-gradient(transparent, #000 20%);
}
@keyframes rain { to { background-position: -12px 90px, -20px 140px; } }
.scene figcaption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 700; color: var(--lamp);
  text-shadow: 0 2px 12px rgba(0,0,0,.9); max-width: 32ch;
}
@media (max-width: 600px) { .scene figcaption { position: static; padding: .8rem 1rem; background: var(--night-2); } }

.reader { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 900px) { .reader { grid-template-columns: 300px 1fr; align-items: start; } }
.reader__toc { list-style: none; margin: 0; padding: 0 0 .25rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.reader__toc::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .reader__toc { flex-direction: column; position: sticky; top: 6rem; overflow: visible; } }
.reader__toc button {
  width: 100%; text-align: left; display: flex; gap: .75rem; align-items: baseline;
  background: rgba(255,255,255,.02); color: var(--cream);
  border: 1.5px solid rgba(255,246,227,.16); border-radius: 12px; padding: .7rem .9rem; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}
@media (min-width: 900px) { .reader__toc button { white-space: normal; } }
.reader__toc button .mono { color: var(--lamp); font-size: .72rem; }
.reader__toc button:hover { border-color: var(--lamp); transform: translateX(3px); }
.reader__toc button[aria-selected="true"] { background: var(--lamp); color: var(--ink); border-color: var(--lamp); box-shadow: 0 0 30px rgba(245,210,74,.35); }
.reader__toc button[aria-selected="true"] .mono { color: var(--ink); }

.reader__page {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 6px 22px 22px 6px; padding: clamp(1.75rem, 5vw, 3.5rem);
  box-shadow: 0 0 80px -10px rgba(245,210,74,.25), -8px 0 0 var(--coral), -12px 0 0 #000;
  min-height: 460px; display: flex; flex-direction: column;
}
.reader__page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .35;
  background: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(91,20,56,.12) 33px 34px);
}
.reader__progress { height: 6px; background: rgba(26,15,20,.1); border-radius: 99px; overflow: hidden; margin-bottom: var(--space-xl); }
.reader__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--magenta)); border-radius: inherit; transition: width .45s cubic-bezier(.4,1.4,.5,1); }
.reader__num { margin: 0 0 .5rem; color: var(--magenta); }
.reader__title { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 var(--space-lg); }
.reader__body { flex: 1; position: relative; z-index: 1; }
.reader__body p { font-family: var(--f-display); font-variation-settings: "opsz" 14; font-size: 1.14rem; line-height: 1.75; }
.reader__body p:first-child::first-letter { float: left; font-weight: 900; font-size: 3.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--magenta); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.reader__body.enter { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.reader__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); position: relative; z-index: 1; }
.reader__count { opacity: .6; }
@media (max-width: 480px) { .reader__count { display: none; } .reader__nav .btn { padding: .7rem 1rem; } }

/* ─── Finding ─── */
.finding { background: var(--cream); }
.finding__intro { font-size: 1.2rem; margin-bottom: var(--space-3xl); }
.trail { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xl); grid-template-columns: 1fr; position: relative; }
@media (min-width: 900px) {
  .trail { grid-template-columns: repeat(3, 1fr); }
  .trail::before { content: ""; position: absolute; left: 8%; right: 8%; top: 70px; height: 6px; z-index: 0;
    background: radial-gradient(circle, var(--orange) 3px, transparent 3.5px) 0 0 / 22px 6px repeat-x; }
}
.step { position: relative; z-index: 1; background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: var(--space-lg); box-shadow: var(--shadow-hard); }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; margin: var(--space-md) 0 var(--space-sm); font-variation-settings: "SOFT" 100; }
.step p { margin: 0; }
.step__n { position: absolute; top: 1rem; right: 1.1rem; opacity: .5; }
.step__art { width: 84px; height: 84px; }
.step--choice { background: var(--lime); background-image: var(--halftone); }

.door { position: relative; width: 84px; height: 84px; perspective: 300px; }
.door__gap { position: absolute; inset: 4px 10px 0; background: var(--ink); border-radius: 4px 4px 0 0; }
.door__panel { position: absolute; inset: 0 6px; z-index: 1; background: var(--orange); border: 3px solid var(--ink); border-radius: 6px 6px 0 0; transform-origin: left center; transition: transform .6s cubic-bezier(.3,1.3,.5,1); }
.door__knob { position: absolute; right: 8px; top: 48%; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.door__voice { position: absolute; left: 92px; top: 18px; margin: 0; white-space: nowrap; font-size: 1.9rem; font-weight: 700; opacity: 0; transform: translateY(6px) rotate(-4deg); transition: opacity .35s, transform .35s; }
.door.knocked .door__panel { animation: knock .45s ease 2; }
.door.knocked .door__voice { opacity: 1; transform: translateY(0) rotate(-4deg); transition-delay: .9s; }
.door.opened .door__panel { transform: rotateY(-72deg); }
@keyframes knock { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.choice { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--space-md); }
.choice__out { margin-top: var(--space-md) !important; font-weight: 600; min-height: 1.7em; }

.pull {
  margin: clamp(3rem, 7vw, 6rem) auto; max-width: 24ch; text-align: center;
  font-family: var(--f-display); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.12;
}
.pull::before { content: "“"; display: block; font-size: 2.5em; line-height: .5; color: var(--magenta); margin-bottom: .1em; }

.deal {
  display: grid; gap: var(--space-xl); grid-template-columns: 1fr;
  background: var(--coral); border: 3px solid var(--ink); border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
}
@media (min-width: 900px) { .deal { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.deal__opts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--space-lg); }
.chip { background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: .6rem 1.1rem; font-weight: 700; transition: transform .15s, box-shadow .15s, background .2s; }
.chip:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.chip.is-picked { background: var(--ink); color: var(--cream); }
.deal__stage { position: relative; min-height: 320px; display: flex; align-items: flex-end; justify-content: center; }
.deal__frogo { width: min(280px, 70%); transition: transform .5s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 100%; border-radius: 20px; overflow: hidden; border: 2.5px solid var(--ink); }
.deal__frogo img { width: 100%; }
.deal__stage.lift .deal__frogo { transform: translateY(-40px) rotate(-6deg); }
.deal__stage.happy .deal__frogo { animation: hop .6s ease 2; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-26px) scale(1.03, .97); } }
.deal__key { position: absolute; bottom: 6%; left: 0; width: 110px; transition: transform .8s cubic-bezier(.4,1.2,.5,1), opacity .5s; }
.deal__stage.refuse .deal__key { transform: translateX(-70px); opacity: .45; }
.deal__stage.happy .deal__key { transform: translateX(40px) rotate(-12deg); }
.deal__say {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(-2deg); width: min(100%, 340px);
  margin: 0; text-align: center; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: .6rem 1rem; font-size: 1.45rem; font-weight: 700; line-height: 1.15; box-shadow: 4px 4px 0 var(--ink); z-index: 2;
}
.deal__say.pop { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: translateX(-50%) rotate(-2deg) scale(.85); } to { transform: translateX(-50%) rotate(-2deg) scale(1); } }

/* ─── Gallery ─── */
.gallery { background: var(--yellow); border-top: 3px solid var(--ink); }
.gallery__grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: 1fr; margin-top: var(--space-xl); }
@media (min-width: 760px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } .shot--wide { grid-column: span 2; } }
.shot {
  position: relative; padding: .7rem .7rem 2.6rem; background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--tilt, 0)); transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s;
  text-align: left;
}
.shot:hover { transform: rotate(0) scale(1.02); box-shadow: 10px 10px 0 var(--magenta); z-index: 2; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--ink); }
.shot--wide img { aspect-ratio: 16 / 8; }
.shot__cap { position: absolute; left: 1rem; bottom: .4rem; font-size: 1.5rem; font-weight: 700; }

.lightbox { border: 3px solid var(--ink); border-radius: 18px; padding: 1rem; background: var(--paper); max-width: min(92vw, 1100px); box-shadow: 10px 10px 0 var(--ink); }
.lightbox::backdrop { background: rgba(13,20,23,.82); backdrop-filter: blur(4px); }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox p { margin: .6rem 0 0; font-size: 1.6rem; font-weight: 700; text-align: center; max-width: none; }
.lightbox__close { position: absolute; top: .4rem; right: .6rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); font-size: 1.5rem; line-height: 1; }

/* ─── Token ─── */
.token {
  background: var(--plum); color: var(--cream);
  background-image: linear-gradient(rgba(91,20,56,.84), rgba(91,20,56,.92)), var(--squiggle);
  background-size: auto, 110px 110px;
  border-top: 3px solid var(--ink);
}
.token .eyebrow { color: var(--lime-lite); opacity: 1; }
.token__title {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(3rem, 10.5vw, 8rem); line-height: .92; letter-spacing: -.035em; margin: 0 0 var(--space-md);
  color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink);
}
.token__title span { color: var(--lime); }
.token__lede { font-size: 1.25rem; font-weight: 500; margin-bottom: var(--space-xl); }
.ca--big { color: var(--ink); padding: .5rem .5rem .5rem 1rem; box-shadow: 6px 6px 0 var(--lime); margin-bottom: var(--space-xl); }
.ca--big .ca__addr { font-size: clamp(.72rem, 1.6vw, 1.05rem); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: var(--space-xl);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--night); border: 2px solid rgba(255,246,227,.2); border-radius: 16px; padding: 1rem 1.2rem; }
.stat span { display: block; color: var(--lime-lite); opacity: .9; font-size: .7rem; }
.stat b { display: block; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat b.up { color: var(--lime); } .stat b.down { color: var(--coral); }
.stats__note { grid-column: 1 / -1; margin: 0; opacity: .55; font-size: .68rem; }

.chart { border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: var(--night); margin-bottom: var(--space-xl); }
.chart iframe { display: block; width: 100%; height: clamp(360px, 55vw, 560px); border: 0; }

.links { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-3xl); }

.token__grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 900px) { .token__grid { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 6px 6px 0 var(--ink); }
.bignum { display: flex; flex-direction: column; background: var(--ink); color: var(--yellow); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: var(--space-lg); }
.bignum span { font-family: var(--f-display); font-weight: 900; font-variation-settings: "SOFT" 100, "opsz" 144; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.bignum small { color: var(--cream); opacity: .8; margin-top: .4rem; font-size: .7rem; }
.status { list-style: none; padding: 0; margin: var(--space-lg) 0 0; }
.status li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 1.5px dashed rgba(26,15,20,.25); font-weight: 500; }
.pill { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.pill--lime { background: var(--lime); } .pill--yellow { background: var(--yellow); } .pill--coral { background: var(--coral); }
.warn { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-top: var(--space-xl); background: var(--night); color: var(--cream); border: 2px solid var(--lime); border-radius: 18px; padding: 1.1rem 1.4rem; }
.warn strong { color: var(--lime); padding-top: .2rem; }
.warn p { margin: 0; flex: 1 1 280px; }

/* ─── Footer ─── */
.footer { background: var(--night); color: var(--cream); padding-block: clamp(3.5rem, 8vw, 6rem) var(--space-xl); }
.footer__quote { font-family: var(--f-display); font-weight: 700; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.12; margin: 0 0 var(--space-md); max-width: 24ch; }
.footer__sub { font-size: 1.8rem; color: var(--coral); margin: 0 0 var(--space-3xl); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1.5px solid rgba(255,246,227,.2); padding-top: var(--space-lg); opacity: .85; }
.footer__links { display: flex; gap: 1.25rem; }
.footer__row a { text-decoration: none; border-bottom: 1.5px solid var(--lime); }

/* ─── Toast ─── */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; transform: translate(-50%, 150%);
  background: var(--lime); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: .7rem 1.2rem; box-shadow: 4px 4px 0 var(--ink); transition: transform .35s cubic-bezier(.3,1.5,.5,1);
}
.toast.show { transform: translate(-50%, 0); }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in, .shot.reveal.in { transform: rotate(var(--tilt, 0)); }
.card.reveal.in:hover { transform: rotate(0) translateY(-6px); }
.shot.reveal.in:hover { transform: rotate(0) scale(1.02); }

/* biscuit crumbs cursor trail */
.crumb { position: fixed; z-index: 100; pointer-events: none; width: 7px; height: 7px; border-radius: 45% 55% 50% 40%; background: var(--orange); border: 1.5px solid var(--ink); animation: crumb 1s ease-out forwards; }
@keyframes crumb { to { opacity: 0; transform: translateY(26px) rotate(90deg) scale(.5); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ─── FRUG links ─── */
.nav__cta { display: flex; gap: .5rem; align-items: center; }
.nav__frug { background: var(--lime); }
@media (max-width: 400px) { .nav__frug { display: none; } }
.eyebrow__link { text-decoration: none; border-bottom: 1.5px solid currentColor; }
.eyebrow__link:hover { color: var(--cream); }
.btn--lime { background: var(--lime); color: var(--ink); }

.home { background: var(--lime); background-image: var(--halftone); border-top: 3px solid var(--ink); }
.home__lede { font-size: 1.2rem; margin-bottom: var(--space-2xl); }
.home__grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
@media (min-width: 900px) { .home__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.home__card {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 22px; padding: var(--space-xl) var(--space-lg) var(--space-lg);
  box-shadow: 6px 6px 0 var(--ink); transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
}
.home__card:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }
.home__card strong { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; }
.home__card .mono { opacity: .7; font-size: .7rem; }
.home__card i { position: absolute; top: 1rem; right: 1.2rem; font-style: normal; font-size: 1.6rem; font-weight: 700; }
.home__card--main { background: var(--squiggle) 0 0 / 90px 90px; color: var(--cream); }
.home__card--main strong { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.home__card--main span:not(.mono) { font-weight: 600; text-shadow: 1px 1px 0 var(--ink); }
.home__card--main .mono { opacity: .9; }

/* ─── Bonding curve ─── */
.stat small { display: block; margin-top: .15rem; font-family: var(--f-mono); font-size: .72rem; opacity: .7; }
.curve {
  background: var(--night); border: 2.5px solid var(--lime); border-radius: 20px;
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 1.8rem) 1.2rem;
  margin-bottom: var(--space-xl); box-shadow: 6px 6px 0 var(--ink);
}
.curve__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.curve__label { color: var(--lime-lite); }
.curve__pct {
  font-family: var(--f-display); font-weight: 900; font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--yellow);
}
.curve__track {
  position: relative; height: 26px; border-radius: 999px;
  background: rgba(255,246,227,.08); border: 2px solid rgba(255,246,227,.25);
  margin: 0 14px;
}
.curve__fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--lime) 0 12px, #b6e04a 12px 24px);
  background-size: 34px 34px; animation: stripes 1.2s linear infinite;
  transition: width 1.2s cubic-bezier(.3,1.2,.5,1);
}
@keyframes stripes { to { background-position: 34px 0; } }
.curve__frogo {
  position: absolute; top: 50%; left: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--coral);
  transform: translate(-50%, -50%); transition: left 1.2s cubic-bezier(.3,1.2,.5,1);
  animation: hopcurve 2.4s ease-in-out infinite;
}
@keyframes hopcurve { 0%, 70%, 100% { transform: translate(-50%, -50%); } 80% { transform: translate(-50%, -85%); } 90% { transform: translate(-50%, -50%) scale(1.06, .94); } }
.curve__raised { margin: 1rem 0 .2rem; font-weight: 700; font-size: 1.1rem; max-width: none; }
.curve__note { margin: 0; opacity: .6; font-size: .68rem; }
