/* ==========================================================================
   $SGI - styles. Mobile first. No framework.

   Tilts use the individual `rotate` property and reveals use `translate`,
   so a reveal never wipes out a card's tilt. Keep it that way: setting
   `transform` on a tilted card will silently straighten it.
   ========================================================================== */

@font-face { font-family: 'Titan One'; src: url(../assets/fonts/titan-one-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../assets/fonts/nunito-var.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url(../assets/fonts/dm-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url(../assets/fonts/dm-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --sky: #8FD3FF;
  --sky-lite: #C4E9FF;
  --sky-soft: #E4F5FF;
  --ink: #0E0F1A;
  --ink-2: #3A3C52;
  --pink: #FF8FC0;
  --pink-2: #FF6FB1;
  --pink-deep: #C2306F;
  --pink-soft: #FFD6E8;
  --cream: #FFF6E6;
  --paper: #FBF7EE;
  --dough: #E9B872;
  --sun: #FFD43B;
  --lime: #D8F34A;
  --grass: #3DAA4F;
  --red: #E23B3B;
  --lab: #12131F;
  --lab-2: #1A1C2B;
  --lab-line: #2C2F45;
  --lab-text: #E9ECF5;
  --lab-muted: #A3AAC2;
  --chart-sgi: #E8559A;
  --chart-you: #2F9BE6;

  --display: 'Titan One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --line: 3px;
  --pop: 4px 4px 0 var(--ink);
  --pop-lg: 8px 8px 0 var(--ink);
  --outline: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink);
  --outline-lg: -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink), 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), 4px 6px 0 var(--ink);

  --sprinkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg%3E%3Crect x='14' y='18' width='16' height='6' rx='3' fill='%23FFD43B' transform='rotate(-30 22 21)'/%3E%3Crect x='78' y='10' width='16' height='6' rx='3' fill='%234FA3FF' transform='rotate(25 86 13)'/%3E%3Crect x='124' y='40' width='16' height='6' rx='3' fill='%23ffffff' transform='rotate(70 132 43)'/%3E%3Crect x='44' y='62' width='16' height='6' rx='3' fill='%237ED957' transform='rotate(-15 52 65)'/%3E%3Crect x='98' y='84' width='16' height='6' rx='3' fill='%23FF7A2E' transform='rotate(40 106 87)'/%3E%3Crect x='10' y='104' width='16' height='6' rx='3' fill='%23ffffff' transform='rotate(10 18 107)'/%3E%3Crect x='60' y='126' width='16' height='6' rx='3' fill='%23FFD43B' transform='rotate(-55 68 129)'/%3E%3Crect x='130' y='132' width='16' height='6' rx='3' fill='%234FA3FF' transform='rotate(-20 138 135)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .offscreen {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 400; font-size: 1.1rem; line-height: 1;
  letter-spacing: .01em;
  padding: .85em 1.35em;
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--pop);
  text-decoration: none; cursor: pointer;
  transition: translate .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn > svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; translate: none; box-shadow: var(--pop); }
.btn--pink { background: var(--pink); color: var(--ink); }
.btn--pink:hover { background: var(--pink-2); }
.btn--white { background: #fff; color: var(--ink); }
.btn--sm { font-size: .95rem; padding: .65em 1.1em; box-shadow: 3px 3px 0 var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-row > .btn { flex: 1 1 auto; }
.btn-row--center { justify-content: center; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: var(--line) solid var(--ink); border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: translate .15s ease, box-shadow .15s ease;
}
.icon-btn > svg { width: 20px; height: 20px; }
.icon-btn:hover { translate: -1px -1px; box-shadow: 4px 4px 0 var(--ink); }
.icon-btn--light { background: var(--lab-2); color: var(--lab-text); border-color: var(--lab-text); box-shadow: 3px 3px 0 var(--pink-2); }

/* A link with no URL yet. Dashed, still clickable, explains itself. */
.is-soon { border-style: dashed !important; cursor: help; }
/* Titan One's dollar sign looks like an S. Nunito's has clear strokes above and below. */
.usd { font-family: var(--body); font-weight: 900; }
/* A buy or chart link before launch. It works, but keeps the dashed border. */
.is-prelaunch { border-style: dashed !important; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0;
  width: min(1180px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 10px;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--pop);
  transition: box-shadow .2s ease;
}
.nav.is-scrolled { box-shadow: 5px 6px 0 var(--ink); }
.nav__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav__mark { width: 44px; height: 44px; flex: none; }
.nav__name { font-family: var(--display); font-size: 1.35rem; letter-spacing: .01em; }
.nav__links { display: none; gap: 4px; }
.nav__links a {
  font-family: var(--display); font-size: .98rem; text-decoration: none;
  padding: .5em .8em; border-radius: 999px;
  transition: background-color .15s ease;
}
.nav__links a:hover { background: var(--sky-soft); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__end .icon-btn { width: 40px; height: 40px; box-shadow: 2px 2px 0 var(--ink); }
.nav__end .icon-btn > svg { width: 18px; height: 18px; }

@media (max-width: 340px) {
  .nav__end .icon-btn { display: none; }
}
@media (min-width: 980px) {
  .nav__links { display: flex; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  padding: 108px 0 40px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-lite) 100%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; left: 0; height: auto; animation: drift linear infinite; }
.cloud--1 { top: 12%; width: 190px; animation-duration: 80s; animation-delay: -12s; }
.cloud--2 { top: 38%; width: 130px; animation-duration: 95s; animation-delay: -60s; opacity: .9; }
.cloud--3 { top: 64%; width: 220px; animation-duration: 110s; animation-delay: -35s; }
.cloud--4 { top: 22%; width: 110px; animation-duration: 70s; animation-delay: -48s; opacity: .85; }
.cloud--5 { top: 82%; width: 160px; animation-duration: 90s; animation-delay: -80s; }
@keyframes drift { from { translate: -260px 0; } to { translate: calc(100vw + 40px) 0; } }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 36px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 999px;
  padding: .45em .95em;
  box-shadow: 3px 3px 0 var(--ink);
  rotate: -2deg;
}
.eyebrow > svg { width: 1.2em; height: 1.2em; color: var(--pink-deep); }

.wordmark { width: min(100%, 540px); margin: -6px 0 -10px; line-height: 0; }
.wordmark svg { width: 100%; height: auto; overflow: visible; }
.wordmark__text { font-family: var(--display); }

.ribbon { position: relative; display: inline-block; rotate: -2.5deg; margin-left: 4px; }
.ribbon::before,
.ribbon > span {
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
}
.ribbon::before {
  content: ''; position: absolute; inset: 0;
  translate: 7px 7px;
  background: var(--pink-2);
}
.ribbon > span {
  position: relative; display: block;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-size: clamp(1.7rem, 5.4vw, 2.6rem); line-height: 1;
  padding: .32em 1.05em .38em;
  letter-spacing: .01em;
}

.hero__sub { max-width: 38ch; font-size: 1.12rem; line-height: 1.55; }
.hero__sub em { font-style: italic; font-weight: 900; }

.hero__actions { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 540px; }

.ca {
  display: flex; align-items: center; gap: .7em;
  width: 100%;
  padding: .45em .8em .45em .45em;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 16px;
  box-shadow: var(--pop);
  cursor: pointer; text-align: left;
  transition: translate .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ca:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.ca.is-copied { background: var(--lime); }
.ca__tag {
  flex: none;
  font-family: var(--display); font-size: .95rem; line-height: 1;
  background: var(--ink); color: #fff;
  padding: .45em .6em; border-radius: 10px;
}
.ca__value {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-weight: 500; font-size: .95rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca__icon { width: 22px; height: 22px; flex: none; }

.hero__art { --art-top: 96px; position: relative; width: min(100%, 580px); justify-self: center; padding: var(--art-top) 18px 40px; }

.polaroid {
  position: relative;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 10px;
  padding: 20px 20px 0;
  box-shadow: 10px 10px 0 var(--ink);
  rotate: 2.5deg;
  transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1);
}
.polaroid:hover { rotate: 0.5deg; }
.polaroid.is-wiggle { animation: wiggle .5s ease; }
@keyframes wiggle {
  0%, 100% { rotate: 2.5deg; }
  25% { rotate: -1.5deg; }
  50% { rotate: 4deg; }
  75% { rotate: 1deg; }
}
.polaroid__photo {
  display: block; width: 100%; padding: 0;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--ink);
  cursor: pointer; line-height: 0;
}
/* Shown at its natural 700:467 ratio. No crop (object-fit: cover),
   filter or overlay goes on the photo. */
.polaroid__photo img { display: block; width: 100%; height: auto; aspect-ratio: 700 / 467; }
.polaroid figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  padding: 12px 0 16px;
}
.polaroid__name { font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }
.polaroid__credit { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }

.tape {
  position: absolute; z-index: 2; top: -16px;
  width: 104px; height: 28px;
  background: repeating-linear-gradient(90deg, rgb(255 212 59 / .85) 0 10px, rgb(255 226 120 / .85) 10px 20px);
  border: 2px solid rgb(14 15 26 / .25);
}
.tape--l { left: 22px; rotate: -6deg; }
.tape--r { right: 22px; rotate: 5deg; background: repeating-linear-gradient(90deg, rgb(255 143 192 / .85) 0 10px, rgb(255 182 214 / .85) 10px 20px); }
.tape--c { left: 50%; translate: -50% 0; rotate: -3deg; }

.overheard {
  position: absolute; z-index: 3; top: 0; left: 0;
  display: flex; flex-direction: column; gap: 2px;
  max-width: min(260px, 72%);
  padding: .55em .95em .6em;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: var(--pop);
  rotate: -4deg;
}
.overheard::after {
  content: ''; position: absolute; left: 34px; bottom: -15px;
  width: 22px; height: 22px;
  background: #fff;
  border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
  rotate: 45deg; scale: .8 1.2;
}
.overheard.is-pop { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { from { scale: .82; } to { scale: 1; } }
.overheard__label { font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); }
.overheard__line { font-family: var(--display); font-size: 1.22rem; line-height: 1.15; }

/* The toys sit on the frame or outside it, never on the photo. The frame
   is 20px of padding plus the border, so no toy may reach further in. */
.float { position: absolute; z-index: 2; width: 52px; height: 52px; animation: bob 5s ease-in-out infinite; pointer-events: none; }
.float--donut { left: -16px; top: 46%; animation-delay: -1s; }
.float--ball { right: 0; top: calc(var(--art-top) - 30px); animation-delay: -2.5s; }
.float--bone { right: -16px; bottom: 32%; animation-delay: -.5s; }
.float--star { right: 30%; top: calc(var(--art-top) - 34px); animation-delay: -3.5s; }
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: -6deg; }
  50% { translate: 0 -12px; rotate: 6deg; }
}

.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 18px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  padding: 14px 8px 12px;
  background: var(--cream);
  border: var(--line) solid var(--ink); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
}
.stat:nth-child(1) { rotate: -2.5deg; }
.stat:nth-child(2) { rotate: 1.5deg; }
.stat:nth-child(3) { rotate: -1deg; }
.stat__num { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 6vw, 2.6rem); line-height: 1; color: var(--pink); text-shadow: var(--outline); }
.stat__label { font-size: .74rem; font-weight: 800; line-height: 1.25; text-transform: uppercase; letter-spacing: .03em; }

@media (min-width: 720px) {
  .stats { gap: 24px; margin-top: 30px; }
  .stat { padding: 20px 16px 16px; }
  .stat__label { font-size: .85rem; }
  .hero__art { --art-top: 108px; }
  .float { width: 76px; height: 76px; }
  .float--ball, .float--star { width: 62px; height: 62px; }
  .float--donut { left: -40px; }
  .float--bone { right: -40px; }
  .float--ball { right: -6px; top: calc(var(--art-top) - 40px); }
  .float--star { top: calc(var(--art-top) - 42px); }
}
@media (min-width: 980px) {
  .hero { padding: 132px 0 56px; min-height: 100svh; }
  .hero__inner { grid-template-columns: 1.02fr 1fr; gap: 40px; }
  .hero__copy { align-items: flex-start; text-align: left; }
  .wordmark { margin-left: -8px; }
  .hero__art { --art-top: 108px; padding: var(--art-top) 26px 48px; }
  .hero__sub { font-size: 1.2rem; }
}

/* ----------------------------------------------------------- section edges
   Each edge is one SVG: its fill is the section above (currentColor), its
   background is the section below. `slice` crops the 2880-wide path to the
   viewport instead of stretching it, so drips keep their shape at any width. */

.edge { display: block; width: 100%; margin: -1px 0; position: relative; z-index: 2; }
.edge--drip { height: 90px; }
.edge--wave { height: 44px; }
.edge--sky-pink { color: var(--sky-lite); background: var(--pink); }
.edge--pink-cream { color: var(--pink); background: var(--cream); }
.edge--cream-lab { color: var(--cream); background: var(--lab); }
.edge--lab-sky { color: var(--lab); background: var(--sky); }
.edge--cream-sky { color: var(--cream); background: var(--sky); }
.edge--sky-ink { color: var(--sky); background: var(--ink); }
.test + .edge--sky-pink { color: var(--sky); }

/* --------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden;
  background: var(--pink) var(--sprinkles);
  padding: 10px 0 4px;
}
.marquee__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee var(--dur, 60s) linear infinite;
}
.marquee__track > span {
  font-family: var(--display); font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1;
  color: #fff; text-shadow: var(--outline);
  white-space: nowrap; padding: 0 20px;
}
.marquee__mark { width: 50px; height: 50px; flex: none; }
@keyframes marquee { to { translate: -50% 0; } }

/* ------------------------------------------------------------ shared type */

.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.3rem, 7.4vw, 4.6rem); line-height: 1;
  text-align: center;
  color: #fff; text-shadow: var(--outline-lg);
  margin-bottom: 18px;
}
.title__hl { color: var(--pink); white-space: nowrap; }
.section-sub { max-width: 58ch; margin: 0 auto 40px; text-align: center; font-size: 1.1rem; }

section { position: relative; }

/* ------------------------------------------------------------------ lore */

.lore { background: var(--cream); padding: 56px 0 88px; }
.lore .title { margin-bottom: 44px; }
.lore__grid { display: grid; gap: 44px; align-items: start; }

.clip {
  position: relative;
  background: var(--paper);
  border: var(--line) solid var(--ink); border-radius: 6px;
  padding: 34px 26px 26px;
  box-shadow: var(--pop-lg);
  rotate: -1.5deg;
  font-family: Georgia, 'Times New Roman', serif;
}
.clip__kicker { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); }
.clip__head { font-size: clamp(1.4rem, 3.4vw, 1.85rem); font-weight: 700; line-height: 1.2; margin: 10px 0 12px; }
.clip__meta { font-family: var(--mono); font-size: .78rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.clip__body { font-size: 1.06rem; font-weight: 400; font-style: italic; line-height: 1.55; margin: 14px 0 18px; }
.clip__link {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--display); font-size: 1.05rem; color: var(--pink-deep);
}
.clip__link > svg { width: 1.1em; height: 1.1em; }

.beats { display: grid; gap: 22px; }
.beat { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.beat__n {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  font-family: var(--display); font-size: 1.3rem;
  background: var(--pink);
  border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}
.beat:nth-child(2) .beat__n { background: var(--sun); }
.beat:nth-child(3) .beat__n { background: var(--sky); }
.beat:nth-child(4) .beat__n { background: var(--lime); }
.beat p { font-size: 1.1rem; padding-top: 6px; }
.beat a { color: var(--pink-deep); }

.lore__kicker {
  max-width: 30ch; margin: 64px auto 0;
  text-align: center;
  font-family: var(--display); font-size: clamp(1.45rem, 3.6vw, 2.3rem); line-height: 1.2;
}

@media (min-width: 900px) {
  .lore { padding: 72px 0 110px; }
  .lore__grid { grid-template-columns: 1fr 1.08fr; gap: 64px; }
  .clip { padding: 40px 36px 32px; margin-top: 10px; }
}

/* ------------------------------------------------------------------- lab */

.lab { background: var(--lab); color: var(--lab-text); padding: 64px 0 96px; }
.lab__eyebrow {
  display: flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lab-muted);
}
.lab__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(216 243 74 / .18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(216 243 74 / 0); } }
.lab__title { font-family: var(--body); font-weight: 900; font-size: clamp(2.8rem, 9vw, 5.6rem); line-height: .98; letter-spacing: -.035em; margin: 14px 0 14px; }
.lab__lede { max-width: 40ch; font-weight: 600; font-size: 1.2rem; color: var(--lab-muted); margin-bottom: 44px; }

.lab__grid { display: grid; gap: 24px; align-items: start; }

.modelcard, .bench {
  background: var(--lab-2);
  border: 1px solid var(--lab-line); border-radius: 20px;
  padding: 22px 22px 16px;
}
.modelcard__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.modelcard__head svg { width: 60px; height: 60px; flex: none; background: var(--sky); border-radius: 50%; padding: 2px; }
.modelcard__name { font-weight: 900; font-size: 1.3rem; line-height: 1.2; }
.modelcard__tag { font-family: var(--mono); font-size: .78rem; color: var(--lab-muted); }
.modelcard__rows > div {
  display: grid; grid-template-columns: 124px 1fr; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--lab-line);
}
.modelcard__rows dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lab-muted); padding-top: 2px; }
.modelcard__rows dd { font-weight: 700; }

.bench { position: relative; }
.bench__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bench__title { font-weight: 900; font-size: 1.3rem; }
.bench__legend { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .8rem; color: var(--lab-text); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw--sgi { background: var(--chart-sgi); }
.sw--rival { background: var(--chart-you); margin-left: 10px; }

.bench__table { display: block; width: 100%; }
.bench__table tbody { display: grid; gap: 2px; }
.bench__table tr {
  display: grid; grid-template-columns: minmax(118px, 36%) 1fr; grid-template-rows: auto auto;
  column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--lab-line);
}
.bench__table th { grid-row: span 2; text-align: left; font-weight: 400; }
.bench__table th b { display: block; font-weight: 900; font-size: 1rem; }
.bench__table th span { display: block; font-family: var(--mono); font-size: .72rem; line-height: 1.35; color: var(--lab-muted); }
.bench__table td { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.bar { flex: 1; height: 14px; border-radius: 4px; background: #23263A; overflow: hidden; }
.bar__fill {
  display: block; height: 100%; width: 0;
  border-radius: 0 4px 4px 0;
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}
.bench.is-in .bar__fill { width: calc(var(--v) * 1%); }
.bar--sgi .bar__fill { background: var(--chart-sgi); }
.bar--rival .bar__fill { background: var(--chart-you); }
.bar__val { width: 3ch; flex: none; text-align: right; font-family: var(--mono); font-size: .8rem; color: var(--lab-text); }
.bench__tip {
  position: absolute; z-index: 5; left: var(--tx, 0); top: var(--ty, 0);
  translate: 14px -130%;
  pointer-events: none;
  background: #fff; color: var(--ink);
  font-family: var(--mono); font-size: .78rem; white-space: nowrap;
  padding: 6px 9px; border-radius: 8px;
  box-shadow: 0 6px 18px rgb(0 0 0 / .35);
}
.bench__note { font-family: var(--mono); font-size: .74rem; line-height: 1.5; color: var(--lab-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lab-line); }

@media (min-width: 940px) {
  .lab { padding: 72px 0 110px; }
  .lab__grid { grid-template-columns: .92fr 1.08fr; gap: 28px; }
  .modelcard, .bench { padding: 26px 28px 18px; }
}

/* ------------------------------------------------------------------ test */

.test { background: var(--sky); padding: 56px 0 96px; }

.game {
  position: relative;
  display: flex; flex-direction: column;
  max-width: 900px; min-height: 540px; margin: 0 auto;
  padding: 16px;
  background: var(--cream);
  border: var(--line) solid var(--ink); border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
}
.game__hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.game__round {
  font-family: var(--display); font-size: 1rem; line-height: 1;
  background: var(--ink); color: #fff;
  padding: .5em .9em; border-radius: 999px;
}
.game__paws { display: flex; gap: 6px; }
.paw { width: 28px; height: 28px; color: #E3D5BA; }
.paw.is-hit { color: var(--pink-2); }
.paw.is-miss { color: var(--ink-2); opacity: .45; }

.game__screen { display: none; flex: 1; flex-direction: column; }
.game__screen.is-on { display: flex; animation: screen-in .35s ease; }
@keyframes screen-in { from { opacity: 0; translate: 0 10px; } }

.game__screen[data-screen="intro"],
.game__screen[data-screen="end"] { align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 16px 8px 24px; }
.game__hero-mark { width: 150px; height: 150px; animation: bob 4s ease-in-out infinite; }
.game__big { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.05; }
.game__small { max-width: 44ch; font-size: 1.05rem; margin-bottom: 10px; }
.game__score { font-family: var(--display); font-size: clamp(4rem, 14vw, 6rem); line-height: 1; color: var(--pink); text-shadow: var(--outline-lg); }

.chat { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 6px 2px 14px; }
.msg { display: flex; align-items: flex-end; gap: 10px; animation: msg-in .35s cubic-bezier(.3, 1.4, .5, 1); }
.msg--b { flex-direction: row-reverse; }
@keyframes msg-in { from { opacity: 0; translate: 0 12px; scale: .96; } }
.msg__face { width: 44px; height: 44px; flex: none; }
.msg__bubble {
  max-width: 80%;
  padding: .6em .95em;
  font-weight: 800; font-size: 1.04rem; line-height: 1.35;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 18px 18px 18px 4px;
  box-shadow: 3px 3px 0 var(--ink);
}
.msg--b .msg__bubble { background: var(--sky-soft); border-radius: 18px 18px 4px 18px; }
.msg__bubble b { background: var(--sun); padding: 0 .3em; border-radius: 6px; font-weight: 900; }
.msg__toy { display: inline-block; vertical-align: middle; margin: -10px 0 -8px .35em; }
.msg__toy svg { display: block; width: 46px; height: 46px; animation: toy-in .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes toy-in { from { scale: .3; rotate: -40deg; } }

.game__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 2px dashed rgb(14 15 26 / .2);
}
.game__you { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.game__you svg { width: 36px; height: 36px; flex: none; }
.game__say { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; min-height: 1.2em; }

.game__ask { text-align: center; font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; margin: 4px 0 16px; }
.game__ask b { font-weight: 400; color: var(--pink); text-shadow: var(--outline); }

.rug {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 18px 14px;
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .18) 0 12px, transparent 12px 24px),
    var(--pink);
  border: var(--line) solid var(--ink); border-radius: 36px;
  outline: 3px dashed rgb(255 255 255 / .8); outline-offset: -14px;
  margin-bottom: 4px;
}
.toy {
  display: grid; place-items: center;
  aspect-ratio: 1; padding: 6px;
  background: none; border: 0; border-radius: 50%;
  cursor: pointer;
  rotate: var(--tilt, 0deg); translate: 0 var(--nudge, 0);
  transition: rotate .2s ease, scale .2s ease, opacity .2s ease, background-color .2s ease;
}
.toy svg { width: 100%; height: 100%; max-width: 84px; max-height: 84px; }
.toy:hover:not(:disabled) { rotate: 0deg; scale: 1.14; }
.toy:focus-visible { outline: 3px dashed var(--ink); outline-offset: 0; }
.toy:disabled { cursor: default; opacity: .4; }
.toy.is-hit, .toy.is-answer { opacity: 1; background: rgb(255 255 255 / .92); box-shadow: 0 0 0 4px var(--grass); rotate: 0deg; }
.toy.is-hit svg { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1); }
.toy.is-miss { opacity: 1; background: rgb(255 255 255 / .92); box-shadow: 0 0 0 4px var(--red); animation: shake .4s ease; }
@keyframes hop { 40% { translate: 0 -14px; } }
@keyframes shake { 25% { translate: -6px var(--nudge, 0); } 75% { translate: 6px var(--nudge, 0); } }

@media (min-width: 720px) {
  .game { padding: 22px 26px 22px; }
  .rug { grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 26px 26px; }
  .msg__face { width: 52px; height: 52px; }
  .msg__bubble { font-size: 1.1rem; }
}

/* ------------------------------------------------------------- statement */

.statement {
  overflow: hidden;
  background: var(--pink) var(--sprinkles);
  padding: 72px 0 44px;
  text-align: center;
}
.statement__text {
  max-width: 13ch; margin: 0 auto;
  font-family: var(--display); font-size: clamp(2.5rem, 9.6vw, 6.6rem); line-height: .98;
  color: #fff; text-shadow: var(--outline-lg);
  text-transform: uppercase;
}
.statement__perk { display: inline-block; cursor: help; transition: rotate .2s ease, color .2s ease; }
.statement__perk:hover { rotate: -5deg; color: var(--sun); }
.statement__sub { max-width: 40ch; margin: 26px auto 0; font-size: 1.2rem; font-weight: 800; }

.whisper { display: flex; gap: 10px; max-width: 560px; margin: 30px auto 0; }
.whisper input {
  flex: 1; min-width: 0;
  font: inherit; font-weight: 800; font-size: 1rem; color: var(--ink);
  padding: .8em 1.15em;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--pop);
}
.whisper input::placeholder { color: #8A8CA0; }
.whisper input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.whisper .btn { flex: none; padding-inline: 1.2em; }
@media (max-width: 480px) {
  .whisper input { font-size: .95rem; padding: .8em 1em; }
  .whisper .btn { font-size: 1rem; padding-inline: 1em; }
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2A2C44; }

/* The eavesdropper. The dog lives behind a kitchen counter, so the counter
   is what hides him, never the edge of the section. Poses move .sd-dog,
   moods animate .sd-head, and the two never share a transform. */
.scene { position: relative; width: min(700px, 100%); aspect-ratio: 640 / 400; margin: 34px auto 0; }
.scene__art { display: block; width: 100%; height: 100%; overflow: visible; }

.scene__talk {
  position: absolute; z-index: 2; left: 0; top: 0;
  width: 57%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  pointer-events: none; text-align: left;
}
.bub {
  max-width: 100%;
  padding: .45em .85em;
  font-weight: 800; font-size: clamp(.78rem, 2.3vw, 1.02rem); line-height: 1.3;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 16px 16px 16px 4px;
  box-shadow: 3px 3px 0 var(--ink);
  animation: bub-in .32s cubic-bezier(.3, 1.6, .5, 1);
}
.bub--b { background: var(--sky-soft); margin-left: 8%; }
.bub--dog { align-self: flex-end; background: var(--sun); border-radius: 16px 16px 4px 16px; font-family: var(--display); font-weight: 400; }
.bub.is-out { animation: bub-out .26s ease forwards; }
@keyframes bub-in { from { opacity: 0; scale: .6; translate: 0 8px; } }
@keyframes bub-out { to { opacity: 0; scale: .8; translate: 0 -6px; } }

.sd-dog { cursor: pointer; transform: translateY(62px); transition: transform .55s cubic-bezier(.3, 1.5, .5, 1); }
.scene.is-up .sd-dog { transform: translateY(0); }
.scene.is-alert .sd-dog { transform: translateY(-14px); transition-duration: .32s; }
.scene.is-duck .sd-dog { transform: translateY(152px); transition: transform .2s cubic-bezier(.6, 0, .9, .5); }

.sd-head { transform-box: fill-box; transform-origin: 50% 85%; transition: rotate .3s cubic-bezier(.3, 1.6, .5, 1); }
.scene.is-tilt .sd-head { rotate: 14deg; }
.scene.is-growl .sd-head { animation: sd-shake .45s ease-in-out 3; }
.scene.is-happy .sd-head { animation: sd-hop .5s cubic-bezier(.3, 1.6, .5, 1) 3; }
@keyframes sd-shake { 25% { rotate: -9deg; } 75% { rotate: 9deg; } }
@keyframes sd-hop { 50% { translate: 0 -12px; } }

.sd-ear { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--ear, 1)); transition: transform .4s cubic-bezier(.3, 1.8, .5, 1); }
.scene.is-alert .sd-ear { transform: scaleY(2.2); animation: sd-boing .7s cubic-bezier(.3, 1.4, .5, 1); }
.scene.is-growl .sd-ear--l { transform: rotate(-32deg) scaleY(.75); }
.scene.is-growl .sd-ear--r { transform: rotate(32deg) scaleY(.75); }
@keyframes sd-boing {
  0% { transform: scaleY(1); }
  40% { transform: scaleY(2.6); }
  62% { transform: scaleY(1.9); }
  82% { transform: scaleY(2.35); }
  100% { transform: scaleY(2.2); }
}

.sd-pupil { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .14s ease-out; }
.sd-lid { transform-box: fill-box; transform-origin: 50% 0; transition: transform .16s ease; }
.scene.is-alert .sd-lid { transform: scaleY(0); }
.scene.is-blink .sd-lid { transform: scaleY(1.95); transition-duration: .07s; }
.sd-happy { opacity: 0; }
.scene.is-happy .sd-happy { opacity: 1; }
.scene.is-happy .sd-open { opacity: 0; }
.sd-brow { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .2s ease; }
.scene.is-alert .sd-brow { transform: translateY(-7px); }
.scene.is-growl .sd-brow--l { transform: translateY(3px) rotate(20deg); }
.scene.is-growl .sd-brow--r { transform: translateY(3px) rotate(-20deg); }

.sd-mouth { opacity: 0; }
.scene.is-dropped .sd-mouth { opacity: 1; }
.scene.is-dropped .sd-donut { opacity: 0; }
.sd-cdonut { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.scene.is-dropped .sd-cdonut { opacity: 1; animation: sd-drop .8s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes sd-drop {
  0% { opacity: 0; transform: translate(-30px, -44px) rotate(-40deg); }
  15% { opacity: 1; }
  55% { transform: translate(0, 0) rotate(12deg); }
  72% { transform: translate(0, -12px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.sd-shades { opacity: 0; transform: translateY(-70px); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease; }
.scene.is-cool .sd-shades { opacity: 1; transform: translateY(0); }

.sd-paws { opacity: 0; transform: translateY(14px); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), opacity .2s ease; }
.scene.is-up .sd-paws, .scene.is-alert .sd-paws { opacity: 1; transform: translateY(0); }

.sd-bang { opacity: 0; transform-box: fill-box; transform-origin: 30% 100%; transform: scale(.2) rotate(-30deg); transition: transform .3s cubic-bezier(.3, 2, .5, 1), opacity .15s ease; }
.scene.is-alert .sd-bang { opacity: 1; transform: scale(1) rotate(0deg); }
.sd-bang-text { font-family: var(--display); font-size: 40px; fill: var(--ink); }

.sd-note { opacity: 0; transform: translateY(24px); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), opacity .2s ease; }
.scene.is-writing .sd-note { opacity: 1; transform: translateY(0); }
.sd-scribble { stroke-dasharray: 44; stroke-dashoffset: 44; }
.scene.is-writing .sd-scribble { animation: sd-scribble .35s linear forwards; }
.scene.is-writing .sd-scribble:nth-child(2) { animation-delay: .35s; }
.scene.is-writing .sd-scribble:nth-child(3) { animation-delay: .7s; }
.scene.is-writing .sd-scribble:nth-child(4) { animation-delay: 1.05s; }
@keyframes sd-scribble { to { stroke-dashoffset: 0; } }
.scene.is-writing .sd-pencil { animation: sd-pencil .35s ease-in-out infinite; }
@keyframes sd-pencil { 25% { transform: translate(-8px, 3px); } 50% { transform: translate(-16px, 0); } 75% { transform: translate(-8px, -3px); } }

.sd-n { opacity: 0; transform-box: fill-box; }
.scene.is-whistle .sd-n { animation: sd-note 1.4s ease-out infinite; }
.scene.is-whistle .sd-n2 { animation-delay: .45s; }
.scene.is-whistle .sd-n3 { animation-delay: .9s; }
@keyframes sd-note {
  0% { opacity: 0; transform: translate(0, 8px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(18px, -30px) rotate(14deg); }
}

.sd-dot { transform-box: fill-box; transform-origin: 50% 50%; animation: sd-dot 1.2s ease-in-out infinite; }
.sd-dot:nth-of-type(2) { animation-delay: .15s; }
.sd-dot:nth-of-type(3) { animation-delay: .3s; }
@keyframes sd-dot { 30% { translate: 0 -4px; opacity: 1; } 0%, 60%, 100% { opacity: .45; } }
.sd-steam { stroke-dasharray: 8 7; animation: sd-steam 1.4s linear infinite; opacity: .9; }
.sd-steam--2 { animation-delay: -.7s; }
@keyframes sd-steam { to { stroke-dashoffset: -30; } }

.sd-vocab-label { font-family: var(--body); font-weight: 900; font-size: 9px; letter-spacing: .06em; fill: var(--ink); }
.sd-vocab-num { font-family: var(--display); font-size: 30px; fill: var(--ink); }
.sd-vocab { transform-box: fill-box; transform-origin: 50% 50%; }
.sd-vocab.is-bump { animation: sd-bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes sd-bump { 40% { scale: 1.3; } }

.flyword {
  position: fixed; z-index: 95; left: 0; top: 0;
  pointer-events: none; white-space: nowrap;
  font-family: var(--display); font-size: 1.2rem; color: var(--ink);
  background: var(--sun);
  border: var(--line) solid var(--ink); border-radius: 999px;
  padding: .2em .7em;
  box-shadow: 3px 3px 0 var(--ink);
}

@media (min-width: 900px) {
  .statement { padding: 96px 0 56px; }
}

/* ------------------------------------------------------------------- buy */

.buy { background: var(--cream); padding: 56px 0 40px; }
.buy .title { margin-bottom: 62px; }
.steps { display: grid; gap: 50px 24px; counter-reset: step; }
.step {
  position: relative;
  padding: 44px 22px 24px;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}
.step:nth-child(1) { rotate: -1.5deg; }
.step:nth-child(2) { rotate: 1.2deg; background: var(--sky-soft); }
.step:nth-child(3) { rotate: -.8deg; background: var(--pink-soft); }
.step:nth-child(4) { rotate: 1.6deg; background: #F4FBD0; }
.step__n {
  position: absolute; top: -28px; left: 20px;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  font-family: var(--display); font-size: 1.6rem;
  background: var(--pink);
  border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}
.step h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; }
.step p { font-size: 1.02rem; }
.step a { color: var(--ink); text-decoration-color: var(--pink-deep); text-decoration-thickness: 3px; text-underline-offset: 3px; }

@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------ tokenomics */

.tokenomics { background: var(--cream); padding: 56px 0 96px; }
.tok {
  display: grid; gap: 24px;
  max-width: 940px; margin: 0 auto;
  padding: 30px 18px;
  background: var(--pink-soft) var(--sprinkles);
  border: var(--line) solid var(--ink); border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
}
.tok__supply { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tok__label { font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.tok__big { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 9vw, 5.2rem); line-height: 1; color: #fff; text-shadow: var(--outline-lg); }
.tok__chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tok__chips li:last-child { grid-column: 1 / -1; }
.tok__chips li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ink);
}
.tok__chips span { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tok__chips b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
.ca--wide { max-width: 720px; margin: 0 auto; }

@media (min-width: 760px) {
  .tok { padding: 40px 40px; }
  .tok__chips { grid-template-columns: repeat(3, 1fr); }
  .tok__chips li:last-child { grid-column: auto; }
}

/* ----------------------------------------------------------------- memes */

.memes { background: var(--sky); padding: 48px 0 96px; }
.lineup {
  max-width: 940px; margin: 0 auto 44px;
  padding: 10px 10px 12px;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  rotate: -1deg;
}
.lineup img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 14px; border: 2px solid var(--ink); }
.lineup figcaption { font-family: var(--display); font-size: 1.1rem; text-align: center; padding-top: 10px; }
/* Flex, not grid, so a short last row sits centred instead of leaving holes. */
.meme-grid { --cols: 2; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.meme-grid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.meme {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; height: 100%;
  padding: 8px 8px 12px;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: zoom-in;
  transition: rotate .2s ease, translate .2s ease;
}
.meme-grid li:nth-child(4n+1) .meme { rotate: -1.4deg; }
.meme-grid li:nth-child(4n+2) .meme { rotate: 1deg; }
.meme-grid li:nth-child(4n+3) .meme { rotate: -.6deg; }
.meme-grid li:nth-child(4n+4) .meme { rotate: 1.6deg; }
.meme:not(.is-empty):hover { rotate: 0deg; translate: 0 -4px; }
.meme img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
.meme.is-empty { cursor: default; }
.meme__slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 1;
  background: var(--sky-soft);
  border: 3px dashed #93C8EA; border-radius: 10px;
  font-family: var(--mono); font-size: .75rem; color: #5C8FB3;
}
.meme__mark { width: 56px; height: 56px; opacity: .55; }
.meme__cap { font-weight: 900; font-size: .92rem; line-height: 1.25; text-align: center; padding: 0 4px; }

@media (min-width: 720px) { .meme-grid { --cols: 3; --gap: 22px; } }
@media (min-width: 1040px) { .meme-grid { --cols: 5; } }

/* ---------------------------------------------------------------- footer */

.foot { background: var(--ink); color: var(--lab-text); padding: 40px 0 44px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--lab-line); }
.foot__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.foot__brand svg { width: 60px; height: 60px; flex: none; }
.foot__brand b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.foot__brand span span { font-family: var(--display); font-size: 1.1rem; color: var(--pink); margin-left: 6px; }
.foot__links { display: flex; gap: 10px; }
.foot__legal { display: grid; gap: 10px; padding-top: 22px; max-width: 92ch; font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: var(--lab-muted); }

/* -------------------------------------------------------- toast, lightbox */

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 22px;
  translate: -50% 24px; opacity: 0; visibility: hidden;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: var(--ink); color: #fff;
  border: var(--line) solid #fff; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pink-2);
  font-weight: 800; text-align: center;
  transition: translate .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s ease, visibility 0s linear .3s;
  pointer-events: none;
}
.toast.is-on { translate: -50% 0; opacity: 1; visibility: visible; transition-delay: 0s; }

.lightbox {
  width: min(92vw, 720px); max-height: 92vh; overflow: visible;
  padding: 14px;
  background: #fff;
  border: var(--line) solid var(--ink); border-radius: 22px;
  box-shadow: var(--pop-lg);
}
.lightbox::backdrop { background: rgb(14 15 26 / .78); }
.lightbox img { display: block; width: 100%; height: auto; border-radius: 12px; }
.lightbox figcaption { font-family: var(--display); font-size: 1.2rem; text-align: center; padding: 12px 8px 4px; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  width: 42px; height: 42px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-size: 1.5rem; line-height: 1;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 50%;
  cursor: pointer;
}

.confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -20px; left: var(--x);
  width: 14px; height: 5px; border-radius: 3px;
  background: var(--c);
  animation: fall var(--d) var(--delay) cubic-bezier(.25, .6, .45, 1) forwards;
}
@keyframes fall { to { translate: var(--drift) 110vh; rotate: var(--r); } }

/* ------------------------------------------------------ load and reveals */

.load { opacity: 0; animation: rise .8s cubic-bezier(.2, .9, .3, 1.15) forwards; }
.load--1 { animation-delay: .05s; }
.load--2 { animation-delay: .15s; }
.load--3 { animation-delay: .3s; }
.load--4 { animation-delay: .42s; }
.load--5 { animation-delay: .54s; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .9, .3, 1.1); }
.reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .load, .reveal { opacity: 1; translate: none; }
  .bar__fill { width: calc(var(--v) * 1%); }
  .cloud { translate: calc(var(--i, 1) * 18vw) 0; }
  .cloud--1 { --i: 0.2; } .cloud--2 { --i: 3.6; } .cloud--3 { --i: 1.6; } .cloud--4 { --i: 4.4; } .cloud--5 { --i: 2.8; }
}
