/* Kidbys landing — white base, primary-colour rounded panels, paint-stroke intro. */
:root {
  --yellow: #FDDB6A;   /* Artist — sampled from the Ar-* character clips */
  --red: #EA514E;      /* Agent  — sampled from the Ag-* clips */
  --blue: #5060E8;     /* Collector — sampled from the C-* clips */
  --indigo: #2B2F8F;
  /* the backdrops exactly as the clips render, only where a block meets a clip. Browsers colour-manage video
     differently, so each gets its own measured value: Chrome (sampled 2026-10-04) here, Safari below. */
  --clip-yellow: #FBDF74;
  --clip-red: #E95D55;
  --clip-blue: #566AE8;
  --clip-blue-join: #5972F0;
  --cream: #FFF6DC;
  --paper: #FFFDF8;
  --ink: #121212;
  --ink-dim: rgba(18, 18, 18, .66);
  --line: rgba(18, 18, 18, .12);
  --r-lg: clamp(24px, 3vw, 44px);
  --r-md: 22px;
  --gut: clamp(16px, 2.6vw, 40px);
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Safari renders the same clips more saturated (owner-sampled 2026-10-04) */
html.safari { --clip-yellow: #FFDF5D; --clip-red: #FC504D; --clip-blue: #536CF2; --clip-blue-join: #536CF2; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.loading, html.loading body { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 clamp(16px, 1.15vw, 19px)/1.5 var(--body);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; }

.display {
  font-family: var(--display); font-weight: 800; font-variation-settings: 'opsz' 96;
  letter-spacing: -.045em; line-height: .9; margin: 0; text-wrap: balance;
  font-size: clamp(44px, 6.4vw, 118px);
}
.kicker {
  margin: 0 0 18px; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 22px; height: 10px; border-radius: 5px; background: currentColor; opacity: .85; }
.lede { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.45; max-width: 34ch; margin: 22px 0 0; }
.hand { font: 700 clamp(24px, 2vw, 36px)/1 var(--hand); color: var(--indigo); margin: 0; }

/* ---------------------------------------------------------------- buttons: two-part pill like the reference */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: stretch; gap: 3px; font: 700 16px/1 var(--body); color: var(--fg);
  border: 0; padding: 0; background: none; cursor: pointer; white-space: nowrap;
}
.btn > span, .btn > b {
  background: var(--bg); border-radius: 14px; display: grid; place-items: center;
  transition: transform .45s var(--ease), border-radius .45s var(--ease);
}
.btn > span { padding: 15px 22px; }
.btn > b { padding: 0 16px; font-weight: 700; }
.btn:hover > b { transform: translateX(4px) rotate(-8deg); border-radius: 50%; }
.btn:hover > span { transform: translateX(-2px); }
.btn-red { --bg: var(--red); }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn-ghost > span { background: rgba(255, 255, 255, .55); color: var(--ink); }
.btn-lg { font-size: 18px; }
.btn-lg > span { padding: 19px 28px; }
.btn-lg > b { padding: 0 20px; }
/* one-piece pill: the arrow rides inside the label */
.btn-one > span { display: inline-flex; align-items: center; gap: 14px; }
.btn-one > span b { display: inline-block; transition: transform .45s var(--ease); }
.btn-one:hover > span { transform: none; }
.btn-one:hover > span b { transform: translateX(5px); }

/* ---------------------------------------------------------------- intro: shapes field → Grok clip floods it yellow → hero */
#intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: #252982; }
html.loading #intro { pointer-events: auto; }
.intro-bg, .intro-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-vid { opacity: 0; }
.intro-vid.on { opacity: 1; }
.intro-field { position: absolute; inset: 0; display: grid; place-items: center; }
.intro-logo { width: min(46vw, 420px); height: auto; }
.intro-count {
  position: absolute; right: var(--gut); bottom: var(--gut); color: rgba(255, 255, 255, .7);
  font: 800 clamp(40px, 6vw, 88px)/1 var(--display); letter-spacing: -.04em; display: flex; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.intro-count i { font-style: normal; font-size: .45em; margin-top: .2em; }
html.no-intro #intro { display: none; }

/* ---------------------------------------------------------------- nav */
#nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gut) 14px;
}
#nav { transition: translate .5s var(--ease); }
#nav.hide { translate: 0 -130%; }
#nav .brand img { width: clamp(108px, 9vw, 150px); height: auto; }
.pills { display: flex; gap: 8px; margin-inline: auto; }
.pills a {
  padding: 12px 18px; border-radius: 999px; background: rgba(255, 246, 214, .78); font-weight: 600; font-size: 15px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s, transform .3s var(--ease);
}
.pills a:hover { background: #fff; transform: translateY(-2px); }
@media (max-width: 900px) { .pills { display: none; } #nav { justify-content: space-between; } #nav .btn > span { padding: 12px 16px; } }

/* ---------------------------------------------------------------- hero */
#hero {
  position: relative; min-height: 100svh; background: var(--yellow); overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
/* no isolation here: the boy has to rise above the fixed 3D frames (z 6) and their tags (z 7) */
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.waves .w { transform-box: fill-box; transform-origin: 50% 100%; }
/* the hero frames live on a fixed layer so they can fly out of the hero into the showcase phone */
#gl-hero { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 6; pointer-events: none; }
#gl-hero.off { visibility: hidden; }
/* the trio greeting: one cut-out clip (first frame = last frame), replays on click */
.hero-cast {
  --h: min(74svh, 54vw);
  all: unset; position: absolute; z-index: 8; left: calc(clamp(260px, 26vw, 540px) + 30px); bottom: -20px; height: var(--h);
  aspect-ratio: 834 / 1112; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hero-cast img, .hero-cast canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 20px 30px rgba(110, 70, 0, .22)); }
/* the clip is a stacked colour+mask H.264 that js/alphavid.js composites into the canvas; the video itself stays invisible */
.hero-cast video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hero-cast canvas { opacity: 0; }
.hero-cast.playing canvas { opacity: 1; }
.hero-cast.playing img { opacity: 0; }
.hero-cast:focus-visible { outline: 3px solid var(--ink); outline-offset: -20px; border-radius: 40px; }
.hero-copy {
  position: relative; z-index: 2; padding: clamp(160px, calc(20svh + 20px), 230px) var(--gut) 60px clamp(28px, 5vw, 96px); max-width: 960px;
}
#hero h1 { font-size: clamp(58px, 7.8vw, 152px); line-height: .86; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* name tags ride their frames on a fixed layer just above the 3D canvas */
.tags { position: fixed; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.tags.off { visibility: hidden; }
.tag {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px;
  background: #fff; border-radius: 999px; box-shadow: 0 12px 30px -12px rgba(60, 40, 0, .35); opacity: 0; will-change: transform;
}
.tag img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.tag p { margin: 0; display: grid; font-size: 14px; line-height: 1.15; }
.tag b { font-weight: 700; }
.tag span { color: var(--ink-dim); font-weight: 600; }
.tag:first-child span { color: #1d9a55; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 2px solid var(--ink);
  border-radius: 14px; translate: -50% 0; opacity: .7;
}
.scroll-cue { display: none; }   /* the boy stands where it used to be */
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.6s infinite var(--ease); }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) {
  #hero { min-height: max(100svh, 760px); }   /* short phones keep a band for the frames and the boy under the copy */
  .hero-copy { padding-top: 104px; padding-left: var(--gut); }
  .hero-cast { --h: 36svh; left: 2%; bottom: -8px; translate: none; }
  .tag { padding: 5px 12px 5px 5px; } .tag img { width: 32px; height: 32px; } .tag p { font-size: 12px; }
  .scroll-cue { display: none; }
}

/* ---------------------------------------------------------------- marquee band */
.band { background: var(--blue); color: #fff; margin: -24px 0 0; padding: 26px 0; rotate: -2deg; width: 104%; margin-left: -2%; position: relative; z-index: 4; overflow: hidden; }
.band-track { display: flex; width: max-content; }
.band p { margin: 0; padding-right: .5em; font: 800 clamp(40px, 6vw, 96px)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.band i { font-style: normal; color: var(--yellow); font-size: .6em; vertical-align: .2em; margin: 0 .25em; }

/* ---------------------------------------------------------------- statement: the fridge door fills up as you scroll */
#statement {
  position: relative; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 80px);
  min-height: 170svh; padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(40px, 6vw, 100px);
}
.st-copy { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-left: clamp(0px, 5vw, 110px); }
.fridge { position: sticky; top: 7svh; height: 86svh; aspect-ratio: 760 / 1665; justify-self: center; max-width: 100%; }
.fridge-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fridge-art {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); translate: -50% 0; rotate: var(--r);
  background: #fff; padding: 3.5% 3.5% 3.5%; box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 10px 18px -8px rgba(60, 40, 0, .35);
  transform-origin: 50% 0; visibility: hidden;
}
.fridge-art > img:first-child { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fridge-art .mag { position: absolute; left: 50%; top: -14%; width: 34%; translate: -50% 0; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); }
@media (max-width: 860px) {
  #statement { grid-template-columns: 1fr; min-height: 0; }
  .st-copy { position: relative; height: auto; padding-left: 0; }
  .fridge { position: relative; top: 0; height: 64svh; }
}
.statement {
  font: 700 clamp(30px, 4.2vw, 76px)/1.06 var(--display); letter-spacing: -.035em; margin: 0; max-width: 22ch;
}
.statement em { font-style: normal; color: var(--red); }
.statement .word { opacity: .14; transition: none; }

/* ---------------------------------------------------------------- sticky runways */
#heroes, #journey, #app { height: calc(var(--len) * 1svh); position: relative; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* ---------------------------------------------------------------- three heroes */
#heroes .sticky { padding: var(--gut); }
.panel { border-radius: var(--r-lg); position: relative; overflow: hidden; }
#role-panel { height: 100%; background: var(--clip-yellow); }
.role-layer {
  position: absolute; inset: 0; background: var(--bg); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  clip-path: circle(var(--reveal, 150%) at 28% 62%);
}
.role-layer[data-tone="dark"] { color: #fff; }
.role-media { position: relative; height: 100%; }
/* sized to the clip itself so the feathered edge sits on the picture edge */
.role-vid { position: absolute; left: 50%; bottom: 0; translate: -50% 0; height: 100%; width: auto; max-width: none; aspect-ratio: 720 / 964; }
.role-vid, .join-char {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%);
  mask-composite: intersect;
}
.role { padding: clamp(28px, 5vw, 80px) clamp(56px, 6vw, 110px) clamp(28px, 5vw, 80px) 0; }
.role .num { font: 800 clamp(70px, 9vw, 160px)/.8 var(--display); letter-spacing: -.05em; opacity: .18; display: block; margin: 8px 0 -.1em; }
.role h2 { font-size: clamp(48px, 6.6vw, 124px); }
.role p:not(.kicker) { font-size: clamp(17px, 1.4vw, 23px); max-width: 30ch; margin: 22px 0 0; }
.role ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.role li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .5); font-weight: 600; font-size: 15px; }
.role-layer[data-tone="dark"] .role li { background: rgba(255, 255, 255, .18); }
.role-dots { position: absolute; z-index: 5; right: clamp(20px, 2.4vw, 40px); top: 50%; translate: 0 -50%; display: grid; gap: 10px; }
.role-dots i { width: 10px; height: 10px; border-radius: 5px; background: var(--ink); opacity: .25; transition: height .4s var(--ease), opacity .4s, background .4s; }
.role-dots i.on { height: 34px; opacity: .9; }
#role-panel[data-tone="dark"] .role-dots i { background: #fff; }
@media (max-width: 860px) {
  .role-layer { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; clip-path: circle(var(--reveal, 150%) at 50% 80%); }
  .role-media { order: 2; height: 100%; }
  .role { padding: 28px 24px 0; }
  .role .num, .role ul { display: none; }
  .role h2 { font-size: clamp(44px, 12vw, 64px); }
  .role p:not(.kicker) { font-size: 16px; margin-top: 12px; }
  .role-dots { top: 30px; right: 24px; translate: 0 0; display: flex; }
  .role-dots i.on { width: 30px; height: 10px; }
}

/* phones: the three heroes become a swipe gallery (main.js adds .swipe), no pinned runway */
#heroes.swipe { height: auto; }
#heroes.swipe .sticky { position: relative; height: auto; overflow: visible; }
#heroes.swipe #role-panel {
  position: static; height: min(86svh, 740px); display: flex; overflow-x: auto; overflow-y: hidden; background: none;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
#heroes.swipe #role-panel::-webkit-scrollbar { display: none; }
#heroes.swipe .role-layer { position: relative; inset: auto; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; clip-path: none; }
#heroes.swipe .role-dots { top: calc(var(--gut) + 30px); right: calc(var(--gut) + 24px); }
#heroes.swipe .role-dots i { cursor: pointer; }

/* ---------------------------------------------------------------- journey */
/* phones: one screen, no runway: the film autoplays (main.js adds .auto) */
#journey.auto { height: auto; }
#journey.auto .sticky { position: relative; }
#journey .sticky {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 380px); grid-template-rows: auto 1fr;
  gap: 24px clamp(20px, 3vw, 48px); padding: clamp(84px, 11svh, 120px) var(--gut) var(--gut);
}
.journey-head { grid-column: 1 / -1; }
.journey-head .display { font-size: clamp(40px, 5.2vw, 96px); }
.film { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #f3e3b8; min-height: 0; }
.film .seq, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film .seq { z-index: 1; opacity: 0; transition: opacity .5s; }
.film .seq.ready { opacity: 1; }
.film-caption {
  position: absolute; z-index: 2; left: 50%; bottom: 7%; translate: -50% 0; color: #fff; font-size: clamp(30px, 3.4vw, 58px);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)) drop-shadow(0 6px 24px rgba(0, 0, 0, .35)); opacity: 0; white-space: nowrap;
}
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; position: relative; }
.steps li { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-md); transition: background .4s, color .4s; }
.steps b {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream);
  font: 800 20px/1 var(--display); transition: background .4s, color .4s, transform .5s var(--ease);
}
.steps span { display: grid; color: var(--ink-dim); font-size: 15px; line-height: 1.35; }
.steps strong { color: var(--ink); font: 800 clamp(22px, 1.9vw, 32px)/1.05 var(--display); letter-spacing: -.03em; }
.steps li.on { background: var(--cream); }
.steps li.on b { background: var(--red); color: #fff; transform: scale(1.08); }
@media (max-width: 860px) {
  /* the film takes exactly the room between the heading and the steps, so all three fit one screen */
  .film { align-self: stretch; min-height: 0; }
  #journey .sticky { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 18px; padding-top: 84px; padding-bottom: 18px; }
  .journey-head .display { font-size: clamp(34px, 9.6vw, 48px); }
  .steps { flex-direction: row; gap: 6px; }
  .steps li { flex: 1; flex-direction: column; padding: 10px 4px; gap: 6px; text-align: center; }
  .steps span { font-size: 0; } .steps strong { font-size: 15px; }
  .steps b { width: 34px; height: 34px; font-size: 15px; }
}

/* ---------------------------------------------------------------- gallery wall */
#gallery { padding: clamp(100px, 12vw, 200px) 0 clamp(60px, 8vw, 120px); overflow: hidden; }
.gallery-head { position: relative; margin-bottom: clamp(40px, 5vw, 80px); }
.gal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 40px); }
.gal-tabs button {
  border: 0; cursor: pointer; padding: 12px 20px; border-radius: 999px; background: var(--cream); color: var(--ink);
  font: 700 15px/1 var(--body); transition: background .3s, color .3s, transform .3s var(--ease);
}
.gal-tabs button:hover { transform: translateY(-2px); }
.gal-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.gal-tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 760px) { .gal-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; } .gal-tabs button { flex: none; } }
.wall.swap .wall-col { transition: opacity .25s; opacity: 0; }
.wall { display: flex; gap: clamp(14px, 1.6vw, 26px); padding-inline: var(--gut); width: max-content; }
.wall-col { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 26px); width: clamp(150px, 17vw, 300px); will-change: transform; }
.block { border-radius: var(--r-md); aspect-ratio: 1; }
.block.tall { aspect-ratio: .7; }
.art {
  position: relative; margin: 0; border-radius: var(--r-md); transition: transform .5s var(--ease); transform-style: preserve-3d;
}
.art:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.03); }
.art .fr { padding: var(--pad, 12%); border-radius: var(--fr, 6px); background: var(--frame); box-shadow: 0 22px 40px -22px rgba(30, 20, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.art .mat { background: #fff; padding: var(--mat, 0); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18); }
.art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.art figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-dim); line-height: 1.3; }
.art figcaption b { color: var(--ink); }
.sticker {
  position: absolute; top: 6%; right: -6px; padding: 7px 12px; border-radius: 999px; background: var(--red); color: #fff;
  font: 700 13px/1 var(--body); transform: rotate(6deg); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4);
}
.fr-gold { --frame: linear-gradient(135deg, #f6d27a, #b98722 30%, #f3d58a 52%, #a8761a 76%, #e7c169); --pad: 9%; --mat: 9%; --fr: 4px; }
.fr-oak { --frame: linear-gradient(160deg, #d8ab73, #b9844c 60%, #cf9e64); --pad: 6%; --mat: 11%; --fr: 3px; }
.fr-white { --frame: #fff; --pad: 5%; --mat: 13%; --fr: 3px; }
.fr-black { --frame: #1b1b1b; --pad: 5%; --mat: 10%; --fr: 3px; }
.fr-blue { --frame: var(--blue); --pad: 10%; --fr: 26px; }
.fr-red { --frame: var(--red); --pad: 10%; --fr: 26px; }
.fr-yellow { --frame: var(--yellow); --pad: 10%; --fr: 26px; }

/* gallery: clips as colour blocks, artworks as buttons */
.block.vid { overflow: hidden; position: relative; }
.block.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.art-open { all: unset; display: block; cursor: pointer; border-radius: var(--fr, 6px); }
.art-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* lot card */
#lot { border: 0; padding: 0; background: transparent; width: min(1040px, calc(100vw - 2 * var(--gut))); max-height: calc(100svh - 32px); color: var(--ink); overflow: visible; }
#lot::backdrop { background: rgba(43, 47, 143, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lot-card { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 48px); background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 44px); max-height: calc(100svh - 32px); overflow: auto; }
.lot-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream); font: 600 26px/1 var(--body); cursor: pointer; }
.lot-art { background: #f1ece0; border-radius: var(--r-md); display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.lot-art .fr { width: 100%; padding: var(--pad, 9%); border-radius: var(--fr, 6px); background: var(--frame); box-shadow: 0 30px 50px -26px rgba(30, 20, 0, .5); }
.lot-art .mat { background: #fff; padding: var(--mat, 0); }
.lot-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lot-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lot-info .kicker { margin: 0; color: var(--red); }
.lot-title { font-size: clamp(36px, 4vw, 60px); }
.lot-meta { margin: 0; color: var(--ink-dim); font-weight: 600; }
.lot-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 18px 0; border-block: 1px solid var(--line); }
.lot-label { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink-dim); }
.lot-price { margin: 4px 0 0; font: 800 clamp(48px, 5vw, 76px)/.9 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; transform-origin: 0 100%; }
.lot-time { margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--cream); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.lot-bid { align-self: flex-start; }
.lot-bid:disabled { cursor: default; opacity: .9; } .lot-bid:disabled > span { background: var(--ink); } .lot-bid:disabled > b { display: none; }
.lot-note { margin: 0; min-height: 1.4em; font-weight: 600; color: var(--blue); }
.lot-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lot-feed li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: #fff; border-radius: 999px; box-shadow: 0 1px 0 var(--line); }
.lot-feed .ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 12px/1 var(--body); font-style: normal; }
.lot-feed .ini[style*="yellow"] { color: var(--ink); }
.lot-feed span { flex: 1; font-weight: 600; }
.lot-feed b { font-family: var(--display); font-size: 18px; }
.lot-cert { margin: auto 0 0; font: 700 22px/1.1 var(--hand); color: var(--indigo); }
@media (max-width: 760px) { .lot-card { grid-template-columns: 1fr; } .lot-art { padding: 18px; } }

/* ---------------------------------------------------------------- piggy */
#piggy { padding-block: clamp(40px, 6vw, 100px); }
.panel-yellow { background: var(--yellow); }
.piggy-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: min(86svh, 860px); }
.piggy-copy { padding: clamp(32px, 5vw, 90px); align-self: center; position: relative; z-index: 2; }
.piggy-copy > p:not(.kicker) { max-width: 36ch; font-size: clamp(17px, 1.3vw, 21px); margin-top: 22px; }
.sparks { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.spark-num {
  font: 800 clamp(80px, 9vw, 160px)/.8 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; padding: .06em .04em .04em 0;
  background: linear-gradient(100deg, #EA514E 0%, #F28A3C 30%, #C04FD8 64%, #5060E8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spark-label { font-weight: 700; line-height: 1.25; }
.spark-cash { font-weight: 800; }
.piggy-stage { position: relative; padding: clamp(14px, 1.6vw, 26px) clamp(40px, 5.5vw, 100px) clamp(14px, 1.6vw, 26px) 0; margin-left: calc(clamp(40px, 5.5vw, 100px) * -1); display: grid; align-items: center; }
.piggy-loop { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: calc(var(--r-lg) - 10px); box-shadow: 0 40px 70px -40px rgba(80, 50, 0, .55); background: #f6cf5e; }
@media (max-width: 860px) {
  .piggy-panel { grid-template-columns: 1fr; }
  .piggy-stage { padding: 0 14px 14px; margin-left: 0; }
}

/* ---------------------------------------------------------------- app phones */
#app .sticky { display: grid; grid-template-rows: auto 1fr; padding: clamp(80px, 11svh, 120px) var(--gut) 0; }
.app-head { text-align: center; position: relative; z-index: 12; }
.app-head .display { font-size: clamp(40px, 5.4vw, 100px); }
/* big real-screen phones whose feet sink into the black safety panel that follows (no gap: they poke out of it) */
.phones { position: relative; perspective: 1600px; }
.phones .app-phone { --pw: min(25vw, 46svh, 430px); position: absolute; left: 50%; top: clamp(16px, 3svh, 40px); margin-left: calc(var(--pw) / -2); will-change: transform; }
.app-phone .phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (max-width: 760px) { .phones .app-phone { --pw: 56vw; } }

/* ---------------------------------------------------------------- safety */
#safety { padding-block: 0 clamp(40px, 6vw, 100px); position: relative; z-index: 3; margin-top: calc(var(--r-lg) * -1.2); }
.panel-ink { background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 90px); }
.safe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 4vw, 64px); }
.safe { background: rgba(255, 255, 255, .06); border-radius: var(--r-md); padding: 26px; }
.safe .ico { width: 76px; height: 76px; object-fit: contain; margin: -8px 0 0 -6px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.safe-panel { isolation: isolate; }
.safe-deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke-width: 2.5; stroke-linecap: round; opacity: .4; }
.safe { position: relative; backdrop-filter: blur(2px); }
.safe h3 { font: 800 clamp(22px, 1.7vw, 28px)/1.05 var(--display); letter-spacing: -.03em; margin: 14px 0 10px; }
.safe p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 16px; }
@media (max-width: 960px) { .safe-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .safe-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- join */
#join { padding-block: clamp(40px, 6vw, 100px) clamp(60px, 8vw, 120px); }
.panel-blue { background: var(--blue); color: #fff; }
.join-panel { background: var(--clip-blue-join); }
.join-panel { display: grid; grid-template-columns: 1.2fr 1fr; min-height: min(80svh, 780px); }
.join-copy { padding: clamp(32px, 5vw, 90px); align-self: center; position: relative; z-index: 2; }
.join-copy > p:not(.kicker):not(.form-note) { max-width: 38ch; font-size: clamp(17px, 1.3vw, 21px); margin-top: 22px; }
.join-form { display: flex; gap: 8px; margin-top: 30px; max-width: 520px; }
.join-form input {
  flex: 1; min-width: 0; border: 0; border-radius: 14px; padding: 0 20px; font: 600 17px var(--body); color: var(--ink); background: #fff;
}
.join-form input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form-note { min-height: 1.5em; margin-top: 14px; font-weight: 600; }
.join-char { right: 4%; }
@media (max-width: 860px) {
  .join-panel { grid-template-columns: 1fr; }
  .join-char { position: relative; height: 56svh; margin: 0 auto; right: auto; }
  /* in a column, flex: 1 would collapse the field to its text height; give it a real one */
  .join-form { flex-direction: column; } .join-form input { flex: none; height: 56px; }
}

/* ---------------------------------------------------------------- footer: the wordmark, enormous */
.foot { overflow: hidden; padding-top: 20px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding-block: 18px; border-top: 1px solid var(--line); }
.foot-row p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.foot-row a:hover { color: var(--red); }
.foot-docs { border-top: 0; padding-top: 0; font-size: 14px; }
.foot-docs nav { font-weight: 500; gap: 8px 18px; }
.mega { display: flex; align-items: flex-end; justify-content: center; gap: .02em; font: 800 21vw/.8 var(--display); letter-spacing: -.06em; margin: 2vw auto 1.6vw; padding-inline: var(--gut); max-width: 100%; user-select: none; }
/* the clip is the rise-in mask; pad it so the s's overhang and the y's descender are never cut */
.mega-word { overflow: clip; padding: .06em .1em .2em 0; margin-right: -.1em; }
.mega .sq { display: block; width: .13em; height: .13em; margin-bottom: .26em; border-radius: .02em; }
.mega .sq:first-of-type { margin-left: .06em; }

/* ---------------------------------------------------------------- split text masks (SplitText adds the clipping wrapper) */
.line { padding-bottom: .16em; margin-bottom: -.12em; }   /* the mask must clear descenders (g, y) at line-height .9 */

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  #heroes, #journey, #app { height: auto; }
  .fridge-art { visibility: visible; }
  .sticky { position: relative; height: auto; min-height: 100svh; }
  #role-panel { display: grid; gap: var(--gut); background: none; }
  .role-layer { position: relative; clip-path: none; min-height: 90svh; border-radius: var(--r-lg); }
  .statement .word { opacity: 1; }
  .film .seq { display: none; }
  .phones { min-height: 70svh; }
}

/* ---------------------------------------------------------------- closed beta (2026-12-01) */
.beta-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: clamp(18px, 2.4vw, 36px); flex-wrap: wrap; }
.beta-facts li { display: flex; flex-direction: column; gap: 2px; }
.beta-facts b { font: 800 clamp(30px, 3vw, 46px)/1 var(--display); letter-spacing: -.03em; color: var(--yellow); }
.beta-facts span { font-size: 14px; font-weight: 600; opacity: .9; }
#beta { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 2 * var(--gut))); max-height: calc(100svh - 32px); color: var(--ink); overflow: visible; }
#beta::backdrop { background: rgba(43, 47, 143, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.beta-card { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); max-height: calc(100svh - 32px); overflow: auto; }
.beta-step { display: flex; flex-direction: column; gap: 14px; }
.beta-step[hidden] { display: none; }
.beta-card .kicker { margin: 0; color: var(--red); }
.beta-card h3 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; padding-right: 40px; }
.beta-card p { margin: 0; }
.beta-who { display: flex; align-items: center; gap: 6px; padding: 10px 14px 10px 10px; background: var(--cream); border-radius: 999px; font-size: 14px; font-weight: 600; }
.beta-who i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--body); font-style: normal; color: #fff; margin-right: -12px; box-shadow: 0 0 0 3px var(--cream); }
.beta-who i:first-child { color: var(--ink); }
.beta-who span { margin-left: 20px; }
.beta-role { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.beta-role legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.beta-role label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; font-size: 15px; }
.beta-role label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue); background: #eef0ff; }
.beta-role input { accent-color: var(--blue); }
.beta-zip { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.beta-zip small { font-weight: 500; color: var(--ink-dim); }
.beta-zip input { height: 50px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 16px; font: 600 17px var(--body); background: #fff; max-width: 200px; }
.beta-zip input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.beta-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.beta-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--red); }
.beta-check a { color: inherit; }
.beta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.beta-email { font-size: 14px; color: var(--ink-dim); }
.beta-submit { align-self: flex-start; }
.beta-submit:disabled { opacity: .7; cursor: default; }
.beta-note { min-height: 1.4em; font-weight: 600; color: var(--red); font-size: 15px; }
.beta-ok { align-self: flex-start; }
@media (max-width: 760px) { .beta-facts b { font-size: 30px; } }
