/* ================================================================
   SOCIAL SAGA v2 — bold / sticker / multi-page design system
   ================================================================ */
/* ============ DAY MODE (default) — "Sorbet Sticker-book" ============ */
:root{
  --ink:#2A2438; --cream:#FFF9F0; --white:#FFFDF6;
  --pg:#FFD166; --pg-soft:#FFF0CE; --pg-deep:#A66E00; --pg-text:var(--ink);
  --shadow:0 4px 0 var(--ink); --shadow-sm:0 3px 0 var(--ink);
  --radius:18px;
}
/* per-page color worlds (pg-text = readable text color ON the page color) */
body[data-page="home"]    {--pg:#7BDFF2; --pg-soft:#DFF7FC; --pg-deep:#147A91}
body[data-page="work"]    {--pg:#A78BFA; --pg-soft:#EBE3FD; --pg-deep:#6D3FD8}
body[data-page="services"]{--pg:#FFD166; --pg-soft:#FFF0CE; --pg-deep:#A66E00}
body[data-page="team"]    {--pg:#F2B5D4; --pg-soft:#FCE4EF; --pg-deep:#B93A75}
body[data-page="contact"] {--pg:#B5E48C; --pg-soft:#E9F7DA; --pg-deep:#4F7A20}
body[data-page="arcade"]  {--pg:#FFB48F; --pg-soft:#FFE6D8; --pg-deep:#B5501A}
body[data-page="careers"] {--pg:#F2B5D4; --pg-soft:#FCE4EF; --pg-deep:#B93A75}

/* ============ NIGHT MODE — "Neon Nights" (toggle) ============ */
html[data-mode="night"]{
  --ink:#F2EEE2; --cream:#131119; --white:#1E1B29;
  --pg:#FFD84D; --pg-soft:#393012; --pg-deep:#FFD84D; --pg-text:#131119;
}
html[data-mode="night"] body[data-page="home"]    {--pg:#FF6BAA; --pg-soft:#3C1626; --pg-deep:#FF6BAA; --pg-text:#131119}
html[data-mode="night"] body[data-page="work"]    {--pg:#4DE3FF; --pg-soft:#12343C; --pg-deep:#4DE3FF; --pg-text:#131119}
html[data-mode="night"] body[data-page="services"]{--pg:#FFD84D; --pg-soft:#393012; --pg-deep:#FFD84D; --pg-text:#131119}
html[data-mode="night"] body[data-page="team"]    {--pg:#B8F04A; --pg-soft:#2C3A10; --pg-deep:#B8F04A; --pg-text:#131119}
html[data-mode="night"] body[data-page="contact"] {--pg:#C77DFF; --pg-soft:#312044; --pg-deep:#C77DFF; --pg-text:#131119}
html[data-mode="night"] body[data-page="arcade"]  {--pg:#FFA94D; --pg-soft:#3D2A11; --pg-deep:#FFA94D; --pg-text:#131119}
html[data-mode="night"] body[data-page="careers"] {--pg:#B8F04A; --pg-soft:#2C3A10; --pg-deep:#B8F04A; --pg-text:#131119}
/* night heroes: midnight ground, neon type */
html[data-mode="night"] .hero{background:var(--cream); border-bottom-color:var(--pg)}
html[data-mode="night"] .hero h1{color:var(--pg)}
html[data-mode="night"] .hero .sub{color:var(--ink)}
html[data-mode="night"] .hero h1 .out{color:var(--cream); -webkit-text-stroke:2.5px var(--pg); text-shadow:4px 4px 0 var(--pg)}
html[data-mode="night"] .hero .eyebrow{background:var(--white); color:var(--ink); border-color:var(--pg); box-shadow:0 3px 0 var(--pg)}

*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:"Bricolage Grotesque","Segoe UI",Arial,sans-serif;
  font-size:17px; line-height:1.6; overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--ink); color:var(--pg)}
a{color:inherit}
.wrap{max-width:1120px; margin:0 auto; padding:0 clamp(20px,4vw,48px)}
.disp{font-family:"Unbounded","Arial Black",sans-serif}
.stkf{font-family:"Shantell Sans",cursive}

/* ---------------- nav ---------------- */
.nav{position:fixed; top:0; left:0; right:0; z-index:80; background:var(--white);
  border-bottom:3px solid var(--ink)}
.nav-in{display:flex; align-items:center; gap:10px 22px; padding:12px clamp(16px,3vw,32px)}
.logo{font-family:"Unbounded",sans-serif; font-weight:900; font-size:17px; letter-spacing:-.02em;
  text-decoration:none; color:var(--ink); white-space:nowrap; display:flex; align-items:center; gap:8px}
.logo .dot{width:14px; height:14px; border-radius:50%; background:var(--pg); border:2.5px solid var(--ink);
  display:inline-block; transition:background .3s}
.logo img{height:26px; width:auto; display:block}
.nav-links{display:flex; gap:2px 4px; margin-left:auto; overflow-x:auto; scrollbar-width:none}
.nav-links::-webkit-scrollbar{display:none}
.nav-links a{position:relative; text-decoration:none; font-weight:600; font-size:14.5px; color:var(--ink);
  padding:7px 13px; border-radius:999px; border:2.5px solid transparent; white-space:nowrap}
.nav-links a:hover{border-color:var(--ink); background:var(--pg-soft)}
/* active marker: constant-size bar so the menu looks identical on every page */
.nav-links a.active::after{content:""; position:absolute; left:50%; transform:translateX(-50%);
  bottom:1px; width:22px; height:4px; border-radius:99px; background:var(--pg-deep)}
.nav-links a:focus-visible{outline:3px solid var(--pg-deep); outline-offset:2px}
.nav-cta{margin-left:8px; white-space:nowrap; text-decoration:none; font-weight:700; font-size:14px;
  background:var(--ink); color:var(--white); padding:9px 16px; border-radius:999px; border:2.5px solid var(--ink);
  transition:transform .15s}
.nav-cta:hover{transform:rotate(-2deg) scale(1.04); background:var(--pg-deep)}
.nav-cta:focus-visible{outline:3px solid var(--pg-deep); outline-offset:2px}
.mode-btn{cursor:pointer; margin-left:8px; flex-shrink:0; width:38px; height:38px; border-radius:50%;
  border:2.5px solid var(--ink); background:var(--white); font-size:17px; line-height:1;
  box-shadow:var(--shadow-sm); transition:transform .15s}
.mode-btn:hover{transform:rotate(15deg) scale(1.08)}
.mode-btn:focus-visible{outline:3px solid var(--pg-deep); outline-offset:2px}
@media (max-width:840px){
  .nav-in{flex-wrap:wrap; padding:10px 14px 8px; gap:6px 12px}
  .logo img{height:22px}
  .nav-cta{display:none}
  .nav-links{order:3; width:100%; margin-left:0; justify-content:space-between; gap:0}
  .nav-links a{font-size:13.5px; padding:9px 9px}
}
@media (max-width:420px){ .nav-links a{font-size:12px; padding:8px 6px} }
@media (max-width:840px){ input.blank, select.blank{min-height:38px} }

/* ---------------- stickers ---------------- */
.stk{position:absolute; z-index:5; display:inline-flex; align-items:center; gap:6px;
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:15px; line-height:1.15;
  background:var(--white); color:var(--ink); border:2.5px solid var(--ink); border-radius:999px;
  padding:7px 14px; box-shadow:var(--shadow-sm); pointer-events:none; text-align:center}
.stk.on-top{pointer-events:auto; cursor:default}
.stk.on-top:hover{animation:pop .35s ease}
@keyframes pop{50%{transform:scale(1.14) rotate(-4deg)}}
.stk.b-lime{background:#B5E48C; color:#2A2438} .stk.b-coral{background:#F2B5D4; color:#2A2438}
.stk.b-turq{background:#7BDFF2; color:#2A2438} .stk.b-violet{background:#A78BFA; color:#2A2438}
.stk.b-cobalt{background:#FFD166; color:#2A2438}
.stk.b-ink{background:var(--ink); color:var(--cream)}
html[data-mode="night"] .stk.b-lime{background:#B8F04A; color:#131119}
html[data-mode="night"] .stk.b-coral{background:#FF6BAA; color:#131119}
html[data-mode="night"] .stk.b-turq{background:#4DE3FF; color:#131119}
html[data-mode="night"] .stk.b-violet{background:#C77DFF; color:#131119}
html[data-mode="night"] .stk.b-cobalt{background:#FFD84D; color:#131119}
.stk.tape{border-radius:4px; transform:rotate(-4deg); opacity:.97}
.spin-slow{animation:spin 14s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.float1{animation:bob1 4.5s ease-in-out infinite}
.float2{animation:bob2 6s ease-in-out infinite}
.float3{animation:bob1 7.2s ease-in-out infinite reverse}
@keyframes bob1{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-12px) rotate(3deg)}}
@keyframes bob2{0%,100%{transform:translateY(0) rotate(4deg)}50%{transform:translateY(-16px) rotate(-2deg)}}
.burst{position:absolute; z-index:4; width:110px; height:110px; pointer-events:none}
.burst text{font-family:"Shantell Sans",cursive; font-weight:700}
@media (max-width:640px){ .stk,.burst{display:none} }

/* ---------------- hero blocks ---------------- */
.hero{background:var(--pg); border-bottom:3px solid var(--ink); position:relative; overflow:hidden;
  padding:clamp(120px,16vh,170px) 0 clamp(56px,9vh,96px)}
.hero .eyebrow{display:inline-block; font-family:"Shantell Sans",cursive; font-weight:700;
  font-size:clamp(16px,1.9vw,20px); background:var(--white); border:2.5px solid var(--ink);
  border-radius:999px; padding:6px 16px; box-shadow:var(--shadow-sm); transform:rotate(-2deg); margin:0 0 22px}
.hero h1{font-family:"Unbounded",sans-serif; font-weight:900; margin:0; color:var(--pg-text);
  font-size:clamp(24px,7.4vw,76px); line-height:1.06; letter-spacing:-.02em; max-width:16ch; text-wrap:balance}
.split .word{display:inline-block; white-space:nowrap}
.hero h1 .out{color:var(--pg); -webkit-text-stroke:2.5px var(--ink); paint-order:stroke fill;
  text-shadow:4px 4px 0 var(--ink)}
.hero .sub{max-width:56ch; font-size:clamp(16.5px,2vw,19.5px); font-weight:500; margin:24px 0 0;
  color:var(--pg-text)}
.hero-ctas{display:flex; flex-wrap:wrap; gap:14px; margin-top:32px}
.btn{display:inline-block; text-decoration:none; text-align:center; font-weight:700; font-size:16px;
  padding:14px 26px; border-radius:999px; border:3px solid var(--ink); background:var(--white); color:var(--ink);
  box-shadow:var(--shadow); transition:transform .15s, box-shadow .15s; cursor:pointer}
.btn:hover{transform:translate(-2px,-3px) rotate(-1deg); box-shadow:6px 7px 0 var(--ink)}
.btn:active{transform:translate(2px,3px); box-shadow:0 1px 0 var(--ink)}
.btn:focus-visible{outline:3px solid var(--pg-deep); outline-offset:3px}
.btn.solid{background:var(--ink); color:var(--white)}
.btn.loud{background:var(--pg); color:var(--pg-text)}
/* headline letter bounce */
.split .ch{display:inline-block; animation:drop .55s cubic-bezier(.2,1.4,.4,1) both;
  animation-delay:calc(var(--i)*.035s)}
@keyframes drop{from{opacity:0; transform:translateY(-.7em) rotate(-8deg)}to{opacity:1; transform:none}}

/* ---------------- marquee ---------------- */
.marq{background:var(--ink); color:var(--white); border-bottom:3px solid var(--ink); overflow:hidden}
.marq .track{display:flex; white-space:nowrap}
.marq .set{display:inline-flex; align-items:center; padding:11px 0; flex-shrink:0;
  font-family:"Unbounded",sans-serif; font-weight:700; font-size:clamp(13px,1.6vw,17px); letter-spacing:.04em;
  animation:slide 24s linear infinite}
.marq .set span{padding:0 16px}
.marq .set .sep{color:var(--pg)}
.marq.rev .set{animation-direction:reverse; animation-duration:30s}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-100%)}}

/* ---------------- sections ---------------- */
.sect{padding:clamp(56px,9vh,100px) 0 0; position:relative}
.sect:last-of-type{padding-bottom:clamp(56px,9vh,100px)}
.sect-head{display:flex; align-items:baseline; gap:14px 20px; flex-wrap:wrap}
.sect h2, .smash h2{font-family:"Unbounded",sans-serif; font-weight:900; margin:0;
  font-size:clamp(26px,4.4vw,48px); letter-spacing:-.02em; line-height:1.08; text-wrap:balance}
.sect h2 mark{background:linear-gradient(0deg,var(--pg-soft) 0 52%,transparent 52%); color:inherit;
  padding:0 3px; box-shadow:inset 0 -3px 0 var(--pg-deep)}
.sect .lede, .smash .lede{max-width:60ch; font-size:clamp(16px,1.9vw,19px); font-weight:500; margin:16px 0 0}
/* ------- section bands + torn edges (Krina's pick: ideas 01 + 03) ------- */
.band-tint{background:var(--pg-soft)}
.band-tint h2 mark{background:linear-gradient(0deg, color-mix(in srgb, var(--pg) 55%, transparent) 0 52%, transparent 52%)}
.band-ink{background:var(--ink)}
.band-ink h2{color:var(--white)}
.band-ink h2 mark{color:inherit; background:linear-gradient(0deg, color-mix(in srgb, var(--pg) 30%, transparent) 0 52%, transparent 52%); box-shadow:inset 0 -3px 0 var(--pg)}
.band-ink .lede{color:var(--cream); opacity:.85}
.sect.pad-b{padding-bottom:clamp(56px,9vh,100px)}
.tear{display:block; width:100%; height:15px; margin:-1px 0}
.tear.bg-cream{background:var(--cream)} .tear.bg-tint{background:var(--pg-soft)} .tear.bg-ink{background:var(--ink)}
.tear.to-cream path{fill:var(--cream)} .tear.to-tint path{fill:var(--pg-soft)} .tear.to-ink path{fill:var(--ink)}

.pill-link{display:inline-block; font-weight:700; font-size:15px; text-decoration:none; margin-top:22px;
  background:var(--white); border:2.5px solid var(--ink); border-radius:999px; padding:10px 20px;
  box-shadow:var(--shadow-sm); transition:transform .15s}
.pill-link:hover{transform:rotate(-1.5deg) translateY(-2px); background:var(--pg-soft)}

/* ---------------- cards / grids ---------------- */
.grid{display:grid; gap:22px; margin-top:38px}
.g3{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.card{background:var(--white); border:3px solid var(--ink); border-radius:var(--radius);
  padding:24px 22px; box-shadow:var(--shadow); position:relative; transition:transform .18s}
.card:hover{transform:translateY(-6px) rotate(-.8deg)}
.card:nth-child(even):hover{transform:translateY(-6px) rotate(.8deg)}
.card .tag{position:absolute; top:-14px; right:14px; transform:rotate(3deg);
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:13px; color:var(--ink);
  background:var(--pg-soft); border:2.5px solid var(--ink); border-radius:999px; padding:3px 12px;
  box-shadow:var(--shadow-sm)}
.card h3{font-family:"Unbounded",sans-serif; font-weight:700; font-size:19px; margin:0 0 8px; letter-spacing:-.01em}
.card p{margin:0; font-size:15px; font-weight:500}
.icon{width:56px; height:56px; margin-bottom:14px; display:block}
.icon *{fill:none; stroke:var(--ink); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round}
.icon .fillpg{fill:var(--pg); stroke:var(--ink)}
.card:hover .icon{animation:jiggle .5s ease}
@keyframes jiggle{25%{transform:rotate(-7deg) scale(1.06)}70%{transform:rotate(6deg)}}

/* service card flavor */
.svc .aka{display:inline-block; font-family:"Shantell Sans",cursive; font-weight:700; font-size:13.5px;
  color:var(--pg-deep); margin-top:10px}

/* ---------------- stats ---------------- */
.stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; margin-top:38px}
.stat{background:var(--white); border:3px solid var(--ink); border-radius:var(--radius); padding:20px;
  box-shadow:var(--shadow); text-align:center; transform:rotate(-1deg)}
.stat:nth-child(even){transform:rotate(1.2deg)}
.stat b{display:block; font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(24px,3.6vw,40px);
  font-variant-numeric:tabular-nums}
.stat span{font-family:"Shantell Sans",cursive; font-weight:700; font-size:15px}

/* ---------------- client wall ---------------- */
.clients{display:flex; flex-wrap:wrap; gap:14px; margin-top:38px}
.client{font-family:"Unbounded",sans-serif; font-weight:700; font-size:clamp(15px,1.8vw,19px);
  background:var(--white); border:3px solid var(--ink); border-radius:999px; padding:12px 22px;
  box-shadow:var(--shadow-sm); transition:transform .16s; position:relative}
.client:hover{transform:rotate(-2.5deg) scale(1.05); background:var(--pg-soft)}
.client small{display:block; font-family:"Shantell Sans",cursive; font-weight:600; font-size:13px;
  margin-top:2px; color:color-mix(in srgb, var(--pg-deep) 60%, var(--ink))}

/* ---------------- logo wall (home: brands that trust us) ---------------- */
.logo-wall{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; margin-top:38px}
.lgchip{background:#FFFDF6; border:3px solid #2A2438; border-radius:14px; box-shadow:0 3px 0 #2A2438;
  min-height:92px; display:flex; align-items:center; justify-content:center; padding:14px 16px;
  transition:transform .16s}
.lgchip:hover{transform:rotate(-2deg) scale(1.05)}
.lgchip img{max-height:52px; max-width:100%; width:auto; height:auto; object-fit:contain; display:block}
.lgchip.sq img{max-height:64px}
/* shown only when a wall becomes a sideways shelf (phones, work page) */
.swipe-hint{display:none; font-family:"Shantell Sans",cursive; font-weight:700; font-size:15px;
  color:var(--pg-deep); margin:12px 0 0; transform:rotate(-1deg)}
@media (max-width:640px){
  .logo-wall{grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px}
  .lgchip{min-height:76px; padding:10px 12px}
  .lgchip img{max-height:44px} .lgchip.sq img{max-height:54px}
  /* work's 24-logo cast: a 4-row sideways shelf instead of 12 rows of scroll */
  .page[data-page="work"] .logo-wall{grid-template-rows:repeat(4,auto); grid-auto-flow:column;
    grid-auto-columns:150px; overflow-x:auto; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity; padding-bottom:6px; scrollbar-width:none}
  .page[data-page="work"] .logo-wall::-webkit-scrollbar{display:none}
  .page[data-page="work"] .logo-wall .lgchip{scroll-snap-align:start}
  .page[data-page="work"] .swipe-hint{display:block}
}

/* ---------------- two-lane logo ticker (work) ---------------- */
.ltick{background:var(--ink); border-bottom:3px solid var(--ink); padding:24px 0 26px; overflow:hidden}
.lane{display:flex; overflow:hidden}
.lane + .lane{margin-top:12px}
.lrow{display:flex; gap:14px; padding-right:14px; flex-shrink:0; align-items:center;
  animation:slide 38s linear infinite}
.lane.rev .lrow{animation-direction:reverse; animation-duration:44s}
.lane:hover .lrow{animation-play-state:paused}
.lchip{background:#FFFDF6; border:2.5px solid #14101c; border-radius:12px; padding:10px 16px;
  height:58px; display:flex; align-items:center; flex-shrink:0}
.lchip img{height:34px; width:auto; display:block}
.lchip.sq img{height:44px}
@media (max-width:640px){
  .ltick{padding:16px 0 18px}
  .lchip{height:48px; padding:8px 12px; border-radius:10px}
  .lchip img{height:28px} .lchip.sq img{height:36px}
}

/* ---------------- featured sagas: case posters (work) ---------------- */
.posters{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; margin-top:38px}
.poster{background:var(--white); border:3px solid var(--ink); border-radius:var(--radius); overflow:hidden;
  box-shadow:0 5px 0 var(--ink); display:flex; flex-direction:column; transition:transform .15s}
.poster:hover{transform:translateY(-4px) rotate(-.4deg)}
.poster:nth-child(even):hover{transform:translateY(-4px) rotate(.4deg)}
.pimg{border-bottom:3px solid var(--ink); background:var(--pg-soft)}
.pimg img{display:block; width:100%; height:290px; object-fit:cover; object-position:top}
.pmeta{padding:16px 18px 18px; display:flex; flex-direction:column; gap:11px; flex:1}
.pchips{display:flex; gap:8px; flex-wrap:wrap}
.pchip{font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  border-radius:999px; padding:4px 11px}
.pchip.pc-client{background:var(--ink); color:var(--cream)}
.pchip.pc-disc{background:var(--pg-soft); color:var(--pg-deep); border:1.5px solid currentColor}
.pline{margin:0; font-size:15px; font-weight:600}
.nums{display:flex; gap:22px; margin-top:auto}
.nums b{display:block; font-family:"Unbounded",sans-serif; font-weight:900; font-size:24px; color:var(--pg-deep)}
.nums span{font-size:12.5px; font-weight:600}
@media (max-width:640px){ .pimg img{height:240px} }

/* ---------------- camera roll: film strips by service (work) ---------------- */
.rollgrp{margin-top:30px}
.rolltag{display:inline-block; margin:0 0 -8px 10px; position:relative; z-index:2;
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:15.5px;
  background:var(--pg); color:var(--pg-text); border:2.5px solid var(--ink); border-radius:8px;
  padding:5px 15px; transform:rotate(-2deg); box-shadow:var(--shadow-sm)}
.roll{background:#1A1524; border:3px solid var(--ink); border-radius:14px; padding:24px 0; position:relative}
.roll::before, .roll::after{content:""; position:absolute; left:0; right:0; height:14px;
  background-image:radial-gradient(circle at 9px 7px, var(--pg-soft) 4.5px, transparent 5px);
  background-size:26px 14px}
.roll::before{top:5px} .roll::after{bottom:5px}
.roll .track{display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x proximity;
  justify-content:safe center; padding:8px 22px 10px; scrollbar-width:none}
.roll .track::-webkit-scrollbar{display:none}
.frame{flex:0 0 auto; margin:0; scroll-snap-align:center; background:#FFFDF6; border-radius:8px;
  padding:7px 7px 5px; transform:rotate(-.6deg); cursor:zoom-in}
.frame:nth-child(2n){transform:rotate(.7deg)}
.frame img{display:block; height:220px; width:auto; border-radius:4px; background:#EEE9F8}
.frame figcaption{font-family:"Shantell Sans",cursive; font-weight:700; font-size:12px; color:#6D3FD8;
  padding:4px 2px 2px; text-align:center}
.frame:focus-visible{outline:3px solid var(--pg); outline-offset:3px}
.hint{font-family:"Shantell Sans",cursive; font-weight:700; color:var(--pg-deep); font-size:15px;
  margin-top:22px; text-align:center}
@media (max-width:640px){ .frame img{height:176px} .roll{padding:20px 0} }
#lb{position:fixed; inset:0; background:rgba(20,16,28,.93); display:none; align-items:center;
  justify-content:center; z-index:120; cursor:zoom-out; padding:26px}
#lb.on{display:flex}
#lb img{max-width:92vw; max-height:80vh; border-radius:10px; background:#fff; padding:8px}
#lb p{position:absolute; bottom:20px; left:0; right:0; text-align:center; color:#F2EEE2; margin:0;
  font-family:"Shantell Sans",cursive; font-weight:700}

/* ---------------- story-arc case studies (work: featured sagas) ---------------- */
.poster[data-case]{cursor:pointer}
.poster[data-case]:focus-visible{outline:3px solid var(--pg-deep); outline-offset:3px}
.readmore{font-family:"Shantell Sans",cursive; font-weight:700; font-size:14.5px; color:var(--pg-deep); margin-top:4px}
#case-modal{position:fixed; inset:0; z-index:125; background:rgba(20,16,28,.93); display:none;
  align-items:center; justify-content:center; padding:clamp(10px,3vw,30px)}
#case-modal.on{display:flex}
.case-card{position:relative; width:min(96vw,700px); max-height:88vh; overflow-y:auto; overscroll-behavior:contain;
  background:var(--cream); border:3px solid var(--ink); border-radius:20px; box-shadow:0 8px 0 rgba(0,0,0,.45)}
.case-close{position:sticky; top:12px; margin-left:calc(100% - 54px); z-index:3; width:42px; height:42px;
  border-radius:50%; border:3px solid var(--ink); background:var(--white); color:var(--ink); font-size:17px;
  font-weight:700; cursor:pointer; box-shadow:var(--shadow-sm); transition:transform .15s}
.case-close:hover{transform:rotate(90deg) scale(1.08)}
.case-close:focus-visible{outline:3px solid var(--pg-deep); outline-offset:2px}
.case-story{margin:0}
.case-img{display:block; max-width:calc(100% - 36px); width:auto; max-height:300px;
  margin:-30px auto 0; border:3px solid var(--ink); border-radius:14px; background:var(--pg-soft)}
.case-body{padding:20px clamp(18px,4vw,34px) 30px}
.case-title{font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(22px,3.4vw,32px);
  letter-spacing:-.02em; margin:12px 0 4px}
.case-ch{display:inline-block; font-family:"Shantell Sans",cursive; font-weight:700; font-size:13.5px;
  color:var(--pg-text); background:var(--pg); border:2px solid var(--ink); border-radius:999px;
  padding:3px 13px; margin:20px 0 8px; transform:rotate(-1.4deg)}
.case-body > p:not(.case-ch){margin:0; font-size:15.5px; font-weight:500; line-height:1.6}
.case-body .nums{margin-top:10px}
.case-note{font-family:"Shantell Sans",cursive; font-weight:700; font-size:13.5px; color:var(--pg-deep);
  margin-top:14px !important}
@media (max-width:640px){ .case-img{max-width:calc(100% - 24px); max-height:240px; margin-top:-34px} .case-card{max-height:92vh} }
@media (prefers-reduced-motion: no-preference){
  #case-modal.on .case-card{animation:casein .32s cubic-bezier(.2,1.2,.4,1)}
  @keyframes casein{from{opacity:0; transform:translateY(26px) rotate(-.8deg)}to{opacity:1; transform:none}}
}

/* ---------------- quote ---------------- */
.quote{margin-top:38px; background:var(--white); border:3px solid var(--ink); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:clamp(24px,4vw,40px); max-width:840px; position:relative}
.quote::before{content:"“"; position:absolute; top:-34px; left:22px; font-family:"Unbounded",sans-serif;
  font-weight:900; font-size:56px; color:var(--pg-text); background:var(--pg); border:3px solid var(--ink);
  border-radius:50%; width:64px; height:64px; display:flex; align-items:center; justify-content:center;
  transform:rotate(-6deg); box-shadow:var(--shadow-sm); line-height:.2; padding-top:18px}
.quote p{font-size:clamp(17px,2.2vw,21px); font-weight:600; margin:0; line-height:1.55}
@media (max-width:640px){
  .quote{padding-top:52px; margin-top:52px}
  .quote::before{width:52px; height:52px; font-size:44px; top:-28px; padding-top:14px}
  .hero .eyebrow{font-size:14.5px}
}
.quote .who{margin-top:14px; font-size:15px; font-weight:500}
.quote .who b{font-weight:700}

/* ---------------- team cards ---------------- */
.member .ava{width:64px; height:64px; border-radius:50%; border:3px solid var(--ink);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
  font-family:"Unbounded",sans-serif; font-weight:900; font-size:20px; color:var(--white);
  box-shadow:var(--shadow-sm)}
.member .role{font-family:"Shantell Sans",cursive; font-weight:700; font-size:16px; color:var(--pg-deep); margin:2px 0 8px}
/* compact tiles (v31): ~20% shorter without losing content */
.card.member{padding:16px 20px}
.card.member h3{margin:0 0 2px}
.card.member p{margin:6px 0 0; line-height:1.5}
.member .ava{width:52px; height:52px; font-size:17px; margin-bottom:8px}
.member.hiring .btn{padding:10px 18px; font-size:14px}
.face.back{gap:8px}
.card.member p{font-size:15px}
.member .role{font-size:15px}
.member .fun{font-size:13.5px; font-weight:500; margin:0; border-top:2px dashed var(--pg); padding-top:10px}
.member .fun b{font-family:"Shantell Sans",cursive}
.member.hiring{border-style:dashed; background:var(--pg-soft)}

/* ---------------- like smash (home): mission section dressed exactly like the
   other tinted bands (Brands that trust us), so the auto-tears blend too ---------------- */
.smash{background:var(--pg-soft); color:var(--ink);
  padding:clamp(50px,8vh,90px) 0; position:relative; overflow:hidden}
.smash h2{color:var(--ink)}
.smash h2 mark{color:inherit; padding:0 3px;
  background:linear-gradient(0deg, color-mix(in srgb, var(--pg) 55%, transparent) 0 52%, transparent 52%);
  -webkit-box-decoration-break:clone; box-decoration-break:clone}
/* dark boxes keep the inverted anatomy: band = translucent accent; underline = accent */
.slot-box h2 mark{color:inherit; padding:0 3px;
  background:linear-gradient(0deg, rgba(255,255,255,.16) 0 52%, transparent 52%);
  background:linear-gradient(0deg, color-mix(in srgb, var(--pg) 30%, transparent) 0 52%, transparent 52%);
  box-shadow:inset 0 -3px 0 var(--pg);
  -webkit-box-decoration-break:clone; box-decoration-break:clone}
.smash .lede{color:inherit}
.smash-zone{display:flex; align-items:center; gap:26px; flex-wrap:wrap; margin-top:30px}
#likebtn{cursor:pointer; background:var(--white); color:var(--ink); border:3px solid var(--ink);
  border-radius:18px; padding:16px 28px; font-size:clamp(20px,2.8vw,28px);
  font-family:"Unbounded",sans-serif; font-weight:900; box-shadow:0 6px 0 var(--ink);
  transition:transform .08s; user-select:none}
#likebtn:active{transform:translateY(4px)}
#likebtn:focus-visible{outline:3px solid var(--pg-deep); outline-offset:4px}
#likebtn.crack1{transform:rotate(-1.5deg)} #likebtn.crack2{transform:rotate(2deg)}
#likebtn.crack3{transform:rotate(-3deg) scale(.96)}
#likebtn.dead{background:var(--pg); color:var(--pg-text); box-shadow:none; transform:rotate(-3deg) scale(.94)}
.smash-note{font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(18px,2.3vw,23px);
  color:var(--pg-deep); max-width:26ch; transform:rotate(-1.5deg)}
html[data-mode="night"] .smash-note{color:var(--pg-text)}
.heart-bit{position:absolute; font-size:22px; animation:fall 1.6s ease-in forwards; pointer-events:none}
@keyframes fall{0%{opacity:1; transform:translateY(0)}100%{opacity:0; transform:translateY(150px) rotate(220deg)}}

/* ---------------- contact: the map card ---------------- */
.map-card{background:var(--white); border:3px solid var(--ink); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden; margin:26px 0 18px}
.map-card iframe{display:block; width:100%; height:clamp(280px,42vh,420px); border:0}

/* ---------------- contact ---------------- */
.contact-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:26px; margin-top:38px; align-items:start}
@media (max-width:820px){ .contact-grid{grid-template-columns:1fr} }
.big-mail{display:inline-block; font-family:"Unbounded",sans-serif; font-weight:900;
  font-size:clamp(17px,2.4vw,25px); color:var(--pg-text); text-decoration:none;
  background:var(--pg); border:3px solid var(--ink); border-radius:14px; padding:12px 18px;
  box-shadow:var(--shadow); word-break:break-all; transition:transform .15s}
.big-mail:hover{transform:rotate(-1.5deg) translateY(-3px)}
.facts{list-style:none; margin:0; padding:0}
.facts li{display:flex; gap:12px; align-items:baseline; padding:11px 0; border-bottom:2px dashed var(--pg);
  font-size:15.5px; font-weight:500}
.facts li:last-child{border-bottom:none}
.facts .k{font-family:"Shantell Sans",cursive; font-weight:700; font-size:17px; color:var(--pg-deep); min-width:92px}
.socials{display:flex; flex-wrap:wrap; gap:12px; margin-top:22px}
.socials a{text-decoration:none; font-weight:700; font-size:14.5px; color:var(--ink);
  background:var(--white); border:2.5px solid var(--ink); border-radius:999px; padding:9px 17px;
  box-shadow:var(--shadow-sm); transition:transform .15s}
.socials a:hover{transform:rotate(-2deg) translateY(-2px); background:var(--pg-soft)}

/* ---------------- footer ---------------- */
.foot{border-top:3px solid var(--ink); background:var(--ink); color:var(--cream)}
.foot .reward{background:var(--pg-soft); color:var(--ink); border-bottom:3px solid var(--ink);
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(15px,1.9vw,19px);
  text-align:center; padding:12px 20px}
.foot-in{display:flex; flex-wrap:wrap; gap:16px 30px; align-items:center; justify-content:space-between;
  padding:26px clamp(20px,4vw,48px) 60px; max-width:1120px; margin:0 auto}
.foot p{margin:0; font-size:14px; color:var(--cream); opacity:.78}
.foot .fm{font-family:"Unbounded",sans-serif; font-weight:900; font-size:18px; color:var(--cream);
  display:flex; align-items:center; gap:9px; margin:0}
.foot .fm img{height:20px; width:auto; display:block}
.foot .fm i{color:var(--pg); font-style:normal}
.foot nav{display:flex; flex-direction:column; gap:8px; font-size:14px; font-weight:600}
.foot .fnav-row{display:flex; flex-wrap:wrap; gap:8px 18px}
.foot nav a{color:var(--cream); text-decoration:none; border-bottom:2px solid transparent}
.foot nav a:hover{border-bottom-color:var(--pg)}
.bstamp{opacity:.28; font-size:9px; margin-left:8px; letter-spacing:.04em}
.foot-seo{font-size:13px; opacity:.72; max-width:76ch; margin:14px auto 6px; line-height:1.6}

/* ---------------- testimonials ---------------- */
.t-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:26px; margin-top:44px}
.t-grid .quote{margin-top:0; max-width:none; padding:44px 22px 22px}
.t-grid .quote::before{width:48px; height:48px; font-size:40px; top:-24px; padding-top:12px; left:18px}
.t-grid .quote p{font-size:16.5px}
.quote.ph{border-style:dashed; background:var(--pg-soft); box-shadow:none}
.quote.ph p{color:var(--ink); opacity:.75; font-weight:500}
.quote .ph-tag{position:absolute; top:-14px; right:14px; transform:rotate(3deg);
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:12.5px; color:var(--ink);
  background:var(--white); border:2.5px solid var(--ink); border-radius:999px; padding:3px 12px}

/* ---------------- toy: idea slot machine (work) ---------------- */
.slot-box{margin-top:38px; background:var(--ink); color:var(--white); border:3px solid var(--ink);
  border-radius:var(--radius); padding:clamp(24px,4vw,40px); box-shadow:var(--shadow); position:relative; overflow:hidden}
.slot-box .lede{color:var(--cream); opacity:.85}
.reels{display:grid; gap:12px; margin:26px 0 22px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.reel{background:var(--white); color:var(--ink); border:3px solid var(--ink); border-radius:12px;
  padding:14px 18px; font-family:"Unbounded",sans-serif; font-weight:700;
  font-size:clamp(15px,2vw,20px); min-height:102px; display:grid; align-items:center}
@media (max-width:1023px){ .reel{min-height:124px} }
@media (max-width:640px){ .reel{min-height:86px} }
.reel.rolling{animation:reelshake .12s linear infinite}
@keyframes reelshake{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.slot-line{font-family:"Shantell Sans",cursive; font-weight:700; font-size:17px; color:var(--pg-soft);
  margin:14px 0 0; display:grid; justify-items:start}
/* every possible string is laid out at once; only the active one is visible,
   so these boxes are always as tall as their tallest option and never move */
.fxo{grid-area:1/1; visibility:hidden}
.fxo.on{visibility:visible}

/* ---------------- toy: bundle builder (services) ---------------- */
.bag{margin-top:38px; background:var(--white); border:3px solid var(--ink); border-radius:var(--radius);
  padding:clamp(24px,4vw,38px); box-shadow:var(--shadow)}
.qchips{display:flex; flex-wrap:wrap; gap:12px; margin:20px 0 6px}
.qchip{cursor:pointer; font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:15px;
  color:var(--ink); background:var(--white); border:3px solid var(--ink); border-radius:999px;
  padding:10px 18px; box-shadow:var(--shadow-sm); transition:transform .12s}
.qchip:hover{transform:translateY(-2px) rotate(-1deg)}
.qchip:focus-visible{outline:3px solid var(--pg-deep); outline-offset:3px}
.qchip[aria-pressed="true"]{background:var(--pg-deep); color:var(--white); border-color:var(--ink)}
.qchip[aria-pressed="true"]::before{content:"✓ "}
.bagline{font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(18px,2.4vw,23px);
  margin:16px 0 18px; min-height:1.4em}
.bag .btn[aria-disabled="true"]{opacity:.45; pointer-events:none}

/* ---------------- toy: storyteller randomizer (team) ---------------- */
.roll-bar{margin-top:34px; display:flex; align-items:center; gap:18px; flex-wrap:wrap}
.roll-note{font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(17px,2.2vw,21px);
  color:var(--ink); max-width:34ch; transform:rotate(-1deg); min-height:1.4em}
.member.chosen{outline:4px solid var(--pg-deep); outline-offset:3px; transform:rotate(-1deg) scale(1.02)}
.member.chosen::after{content:"👑 yours"; position:absolute; top:-16px; right:12px; transform:rotate(4deg);
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:14px; background:var(--pg-soft);
  border:2.5px solid var(--ink); border-radius:999px; padding:3px 12px; box-shadow:var(--shadow-sm)}

/* ---------------- toy: excuse generator (contact) ---------------- */
.excuse-box{margin-top:26px; background:var(--ink); color:var(--white); border:3px solid var(--ink);
  border-radius:var(--radius); padding:clamp(24px,4vw,38px); box-shadow:var(--shadow); position:relative; overflow:hidden}
.excuse-box h3{font-family:"Unbounded",sans-serif; font-size:22px; margin:0 0 8px}
.excuse-box .lede{color:var(--cream); opacity:.85; margin-top:0}
.excuse{font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(19px,2.6vw,26px);
  background:var(--white); color:var(--ink); border:3px solid var(--ink); border-radius:12px;
  padding:18px 22px; margin:20px 0; min-height:106px;
  display:grid; align-items:center}
@media (max-width:1023px){ .excuse{min-height:122px} }
@media (max-width:639px){ .excuse{min-height:140px} }
@media (max-width:374px){ .excuse{min-height:168px} }
.excuse-ctas{display:flex; flex-wrap:wrap; gap:12px}

/* ---------------- madlib brief form (contact) ---------------- */
.madlib{background:var(--white); border:3px solid var(--ink); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:clamp(24px,4vw,40px); margin-top:38px}
.madlib .story{font-size:clamp(16px,1.9vw,19px); font-weight:600; line-height:1.7; margin:0} /* matches the site's lede scale */
.madlib .ml-line{display:flex; flex-wrap:wrap; align-items:baseline; column-gap:10px; row-gap:6px; margin:0 0 18px}
.madlib .ml-line:last-child{margin-bottom:0}
.madlib .ml-final{font-weight:800}
.blank{display:inline-block; vertical-align:baseline; border:none; border-bottom:3px solid var(--pg-deep);
  background:transparent; font-family:"Shantell Sans",cursive; font-weight:700; font-size:.92em;
  color:var(--pg-deep); padding:0 6px 2px; max-width:100%}
input.blank{width:180px; flex:1 1 170px; max-width:360px}
select.blank{min-width:0}
input.blank::placeholder{color:var(--pg-deep); opacity:1}
select.blank{cursor:pointer}
.blank:focus-visible{outline:3px solid var(--pg-deep); outline-offset:3px; border-radius:4px}
.blank.miss{animation:missw .35s ease 2}
@keyframes missw{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.ml-actions{display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:26px}
.ml-note{font-family:"Shantell Sans",cursive; font-weight:700; font-size:16px; color:var(--pg-deep); margin:0}

/* ---------------- team flip cards ---------------- */
/* every tile the same size: equal grid rows (1fr floors at the tallest row's
   content, so this is structural, not a pinned measurement) + cards fill cells */
.grid.g4:has(.member){grid-auto-rows:1fr}
.card.member{height:100%}
.member.flip{perspective:1200px}
.member.flip .flip-in{height:100%}
.flip-in{display:grid; transform-style:preserve-3d; transition:transform .65s cubic-bezier(.3,1.25,.4,1); cursor:pointer}
.flip-in:focus-visible{outline:3px solid var(--pg-deep); outline-offset:4px; border-radius:8px}
.member.flipped .flip-in{transform:rotateY(180deg)}
.face{grid-area:1/1; backface-visibility:hidden; -webkit-backface-visibility:hidden; min-width:0}
.face.back{transform:rotateY(180deg); display:flex; flex-direction:column; gap:10px}
.cand{border:2.5px dashed var(--pg-deep); border-radius:12px; background:var(--pg-soft);
  padding:12px; text-align:center; font-family:"Shantell Sans",cursive; font-weight:700; font-size:14.5px}
.cand small{display:block; font-family:"Bricolage Grotesque",sans-serif; font-weight:500; font-size:12.5px; opacity:.75; margin-top:4px}
/* real candids: fixed 112px strip so the equal-height tiles never grow (289px budget, v31) */
.cand-photo{display:block; width:100%; height:112px; object-fit:cover; object-position:50% 28%;
  border:2.5px solid var(--ink); border-radius:12px; box-shadow:var(--shadow-sm); background:var(--pg-soft)}
.face.back .fun{border-top:none; padding-top:0; margin-top:0; font-size:14px}
.face.back .bname{font-family:"Unbounded",sans-serif; font-weight:700; font-size:15px; margin:0}
.flip-hint{position:absolute; bottom:-13px; right:14px; transform:rotate(-3deg); z-index:6;
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:12.5px; color:var(--ink);
  background:var(--pg-soft); border:2.5px solid var(--ink); border-radius:999px; padding:2px 11px;
  box-shadow:var(--shadow-sm); pointer-events:none}

/* ---------------- arcade: shared game shell ---------------- */
.game{background:var(--white); border:3px solid var(--ink); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:clamp(22px,3.5vw,36px); margin-top:38px; position:relative; overflow:hidden}
.game h3{font-family:"Unbounded",sans-serif; font-weight:700; font-size:clamp(19px,2.6vw,24px); margin:0}
.game .g-sub{margin:8px 0 0; font-size:15px; color:inherit; opacity:.8; max-width:62ch}
.g-label{display:inline-block; font-family:"Shantell Sans",cursive; font-weight:700; font-size:13px;
  background:var(--pg-soft); border:2px solid var(--ink); border-radius:999px; padding:2px 11px; margin-bottom:12px}

/* trend or dead */
.tcard{max-width:540px; margin:22px auto 0; background:var(--pg-soft); border:3px solid var(--ink);
  border-radius:16px; padding:26px 20px; text-align:center; box-shadow:var(--shadow-sm)}
.tcard .emoji{font-size:44px; line-height:1}
.tcard .term{font-family:"Unbounded",sans-serif; font-weight:700; font-size:clamp(17px,2.4vw,23px); margin-top:10px}
.tans{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:20px}
.tmeta{display:flex; justify-content:space-between; gap:12px; max-width:540px; margin:14px auto 0;
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:15.5px; color:var(--pg-deep)}
.tverdict{min-height:1.6em; text-align:left}
.tend{text-align:center; margin-top:22px}
.tscore{font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(34px,5vw,52px)}
.tfinal{font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(17px,2.2vw,21px); margin:8px 0 18px}

/* algorithm tarot */
.tarot-wrap{display:grid; grid-template-columns:minmax(230px,300px) 1fr; gap:28px; align-items:start; margin-top:22px}
@media (max-width:700px){ .tarot-wrap{grid-template-columns:1fr; justify-items:center} }
.tarot{width:100%; max-width:300px; aspect-ratio:5/7; border:3px solid var(--ink); border-radius:16px;
  background:var(--ink); color:var(--cream); box-shadow:var(--shadow); padding:18px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:10px;
  position:relative}
.tarot{cursor:pointer; transition:transform .15s ease}
.tarot:hover{transform:translateY(-3px) rotate(-1deg)}
.tarot:active{transform:scale(.98)}
.tarot:focus-visible{outline:3px solid var(--pg-deep); outline-offset:3px}
.tarot::before{content:""; position:absolute; inset:10px; border:2px dashed var(--pg); border-radius:10px; opacity:.7}
.tarot .roman{font-family:"Shantell Sans",cursive; font-weight:700; font-size:15px; color:var(--pg)}
.tarot .t-emoji{font-size:52px}
.tarot .tname{font-family:"Unbounded",sans-serif; font-weight:700; font-size:19px; color:var(--pg); letter-spacing:-.01em}
.tarot.facedown .roman,.tarot.facedown .t-emoji{display:revert}
.tread{max-width:52ch}
.tread .prophecy{font-family:"Fraunces",Georgia,serif; font-size:clamp(18px,2.3vw,22px); font-weight:500; font-style:italic; margin:0}
.tread .prophecy::before{content:"“"} .tread .prophecy::after{content:"”"}
.tread .dothis{margin:14px 0 0; font-size:15.5px}
.tread .dothis b{font-family:"Shantell Sans",cursive; color:var(--pg-deep)}
.tread .btn{margin-top:20px}
.tread .steal{font-family:"Shantell Sans",cursive; font-weight:700; font-size:14.5px; color:var(--pg-deep); margin:10px 0 0; min-height:1.4em}

/* scroll speedometer */
.speedo-row{display:flex; gap:26px; align-items:center; flex-wrap:wrap; margin-top:20px}
.spd-num{font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(30px,4.5vw,46px);
  font-variant-numeric:tabular-nums; line-height:1}
.spd-num small{display:block; font-family:"Shantell Sans",cursive; font-weight:700; font-size:14px; margin-top:4px; color:var(--pg-deep)}
.gauge{flex:1; min-width:220px; height:16px; border:3px solid var(--ink); border-radius:999px;
  background:var(--pg-soft); overflow:hidden}
.gauge b{display:block; height:100%; width:0%; background:var(--pg-deep); transition:width .25s ease}
.spd-roast{font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(16px,2.1vw,19px);
  color:var(--pg-deep); margin:16px 0 0; min-height:1.5em}

/* 4-second reflex */
.rx-row{display:flex; gap:26px; align-items:center; flex-wrap:wrap; margin-top:20px}
.rx-clock{font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(38px,6.5vw,60px);
  font-variant-numeric:tabular-nums; background:var(--pg-soft); border:3px solid var(--ink);
  border-radius:16px; padding:8px 24px; min-width:200px; text-align:center; box-shadow:var(--shadow-sm);
  transition:background .25s ease, color .25s ease}
.rx-clock.dark{background:var(--ink); color:var(--cream)}
.rx-note{font-family:"Shantell Sans",cursive; font-weight:700; font-size:16px; color:var(--pg-deep); margin:10px 0 0}

/* lost chapter (404) doors */
.doors{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:18px; margin-top:26px; max-width:640px}
.door{cursor:pointer; background:var(--white); border:3px solid var(--ink); border-radius:16px;
  padding:22px 14px; text-align:center; box-shadow:var(--shadow); transition:transform .15s;
  font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:15.5px; color:var(--ink)}
.door .d-emoji{display:block; font-size:40px; margin-bottom:8px}
.door:hover{transform:translateY(-4px) rotate(-1deg)}
.door:focus-visible{outline:3px solid var(--pg-deep); outline-offset:3px}
.door.wrong{animation:missw .35s ease 2; background:var(--pg-soft)}
.door[disabled]{opacity:.55; pointer-events:none}
.lost-verdict{font-family:"Shantell Sans",cursive; font-weight:700; font-size:clamp(16px,2.1vw,19px);
  color:var(--pg-deep); margin:18px 0 0; min-height:1.5em}

/* founder mode */
.secret-card{border-style:dashed; background:var(--pg-soft)}
#fmode{position:fixed; inset:0; z-index:300; display:none; pointer-events:none; overflow:hidden}
#fmode.on{display:block}
#fmode .fm-flash{position:absolute; inset:0; background:var(--pg); opacity:.16}
#fmode .fm-stamp{position:absolute; top:44%; left:50%; transform:translate(-50%,-50%) rotate(-5deg);
  font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(24px,5vw,52px); color:var(--ink);
  background:var(--white); border:4px solid var(--ink); border-radius:18px; padding:14px 30px;
  box-shadow:0 8px 0 var(--ink); white-space:nowrap}
.fm-bit{position:absolute; top:-70px; font-size:28px; animation:fmfall 2.9s linear forwards}
.fm-bit.badge{font-family:"Unbounded",sans-serif; font-weight:900; font-size:15px; color:var(--white);
  background:var(--ink); border:2.5px solid var(--white); border-radius:50%; width:44px; height:44px;
  display:flex; align-items:center; justify-content:center}
@keyframes fmfall{to{transform:translateY(115vh) rotate(340deg)}}
body.fm-shake{animation:fmshake .5s ease 2}
@keyframes fmshake{25%{transform:translate(3px,-2px) rotate(.3deg)}75%{transform:translate(-3px,2px) rotate(-.3deg)}}

/* ---------------- festival skins ---------------- */
/* the festival badge: dark card with a white border so it pops on any page */
.fest-badge{position:fixed; left:14px; bottom:14px; z-index:75; display:flex; align-items:center; gap:10px;
  font-family:"Shantell Sans",cursive; font-weight:700; font-size:14.5px; color:#FFF9F0;
  background:#2A2438; border:2.5px solid #FFFDF6; border-radius:999px; padding:8px 8px 8px 16px;
  box-shadow:0 4px 0 rgba(0,0,0,.35); max-width:78vw}
.fest-badge button{cursor:pointer; border:2px solid #FFFDF6; background:transparent; color:#FFF9F0;
  border-radius:50%; width:24px; height:24px; line-height:1; font-size:12px; font-weight:700; flex-shrink:0; padding:0}
.fest-badge button:hover{background:rgba(255,255,255,.18)}
/* costume details: team avatars wear the festival emoji (mode button stays plain, v35) */
html[data-fest] .member .ava{position:relative}
html[data-fest] .member .ava::after{content:var(--fest-emoji-q, ""); position:absolute; top:-9px; right:-8px; font-size:13px; transform:rotate(14deg)}
/* holi smear: brief colour wash that follows the cursor */
.smear{position:fixed; z-index:58; width:60px; height:60px; pointer-events:none; opacity:.5;
  animation:smearfade 1.1s ease-out forwards}
@keyframes smearfade{from{opacity:.5; transform:scale(.7)}to{opacity:0; transform:scale(1.9)}}
/* festival toys: collectibles drift across the sky on every skin; sankranti's
   kites get cut, everything else gets caught. Click freezes the drift position
   inline first so the exit animation plays from where the toy actually was. */
.fest-kite, .fest-float{position:fixed; z-index:60; cursor:pointer; font-size:30px; left:-8vw;
  animation:festdrift linear infinite; user-select:none}
.fest-kite.cut{animation:kitefall .9s ease-in forwards}
@keyframes kitefall{0%{transform:rotate(0)}100%{transform:translateY(110vh) rotate(260deg); opacity:.4}}
.fest-float.got{animation:floatpop .5s ease-out forwards}
@keyframes floatpop{0%{transform:scale(1)}45%{transform:scale(1.6) rotate(-8deg); opacity:1}100%{transform:scale(.15) rotate(8deg); opacity:0}}
.collect-count{position:fixed; right:14px; bottom:14px; z-index:75; font-family:"Shantell Sans",cursive;
  font-weight:700; font-size:14px; color:#FFF9F0; background:#2A2438; border:2.5px solid #FFFDF6;
  border-radius:999px; padding:7px 14px; box-shadow:0 4px 0 rgba(0,0,0,.35)}
@keyframes festdrift{from{transform:translateX(0) rotate(-6deg)}to{transform:translateX(120vw) rotate(10deg)}}
html[data-fest="aprilfools"] .marq .set{animation-direction:reverse}
/* v33 prominence: while a skin is on, heading highlights wear the festival colour */
html[data-fest] .sect h2 mark{background:linear-gradient(0deg, var(--fest-hl, var(--pg-soft)) 0 52%, transparent 52%)}
html[data-fest] .band-tint h2 mark, html[data-fest] .smash h2 mark{background:linear-gradient(0deg, var(--fest-hl, var(--pg-soft)) 0 52%, transparent 52%)}
/* the Wardrobe rack (arcade) */
.fest-rack{display:flex; flex-wrap:wrap; gap:10px; margin-top:26px}
.fest-chip{cursor:pointer; font-family:"Shantell Sans",cursive; font-weight:700; font-size:14.5px;
  color:var(--ink); background:var(--white); border:2.5px solid var(--ink); border-radius:999px;
  padding:8px 16px; box-shadow:var(--shadow-sm); transition:transform .14s}
.fest-chip:hover{transform:rotate(-1.5deg) translateY(-2px); background:var(--pg-soft)}
.fest-chip[aria-pressed="true"]{background:var(--pg); color:var(--pg-text)}
.fest-chip.today{border-style:dashed}
#fest-confetti{position:fixed; inset:0; z-index:90; pointer-events:none; overflow:hidden}
#fest-confetti .fm-bit{font-size:24px}
@media (prefers-reduced-motion: reduce){
  .fest-kite, .fest-float{display:none}
}

/* ---------------- reveals ---------------- */
.rv{opacity:0; transform:translateY(26px) scale(.98)}
.rv.in{opacity:1; transform:none; transition:opacity .6s ease, transform .6s cubic-bezier(.2,1.1,.3,1)}
.rv.d1.in{transition-delay:.08s}.rv.d2.in{transition-delay:.16s}.rv.d3.in{transition-delay:.24s}

/* ---------------- page transition overlay (router build) ---------------- */
#wipe, #wipe-mpa{position:fixed; inset:0; z-index:200; background:var(--pg); transform:translateY(101%);
  display:flex; align-items:center; justify-content:center; pointer-events:none;
  /* ink seams: the card's colour deliberately matches the destination hero, which
     made the lift invisible over tall heroes (her recording: the "stutter" was a
     camouflaged edge, not a freeze). The seams keep the moving edge readable the
     whole way up, in both themes. */
  border-top:6px solid var(--ink); border-bottom:6px solid var(--ink)}
/* arriving mid-wipe (multi-page build): the baked card covers from the very first
   paint, then lifts via CSS animation timed from first paint: no JS on the critical
   path, so a slow app.js fetch can never freeze the card (the old stutter). */
/* Arrival: a short honest beat at full cover, then ONE decisive peel (the motion
   shape of the build she calls "very smooth": its lift was .3s with this easing
   family after a ~160ms beat). The v22 slow-start lift crept near-still at the
   apex and read as hesitation: gone. */
html[data-wipe-in] #wipe-mpa{transform:translateY(0);
  animation:mpalift .38s cubic-bezier(.6,0,.4,1) .12s forwards}
@keyframes mpalift{from{transform:translateY(0)}to{transform:translateY(-101%)}}
#wipe.go{transition:transform .35s cubic-bezier(.65,0,.35,1)}
#wipe-mpa.go{transition:transform .38s cubic-bezier(.65,0,.35,1)}
/* the stamp holds perfectly still while the card covers: any motion there reads
   as stutter (learned the hard way) */
#wipe .stamp, #wipe-mpa .stamp{font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(24px,5.4vw,56px);
  max-width:88vw; text-align:center;
  color:var(--ink); background:var(--white); border:4px solid var(--ink); border-radius:20px;
  padding:14px 34px; box-shadow:0 8px 0 var(--ink); transform:rotate(-4deg)}
.page[hidden]{display:none}

/* ---------------- legal pages (terms + privacy) ---------------- */
.legal-head{background:var(--pg); border-bottom:3px solid var(--ink);
  padding:clamp(120px,16vh,170px) 0 44px}
.legal-head .eyebrow{display:inline-block; font-family:"Shantell Sans",cursive; font-weight:700;
  font-size:15px; background:var(--white); color:var(--ink); border:2.5px solid var(--ink);
  border-radius:999px; padding:6px 16px; box-shadow:var(--shadow-sm)}
.legal-head h1{font-family:"Unbounded",sans-serif; font-weight:900; font-size:clamp(30px,5.4vw,54px);
  letter-spacing:-.02em; margin:18px 0 0; color:var(--pg-text)}
.legal-head h1 mark{background:linear-gradient(0deg, color-mix(in srgb, var(--white) 55%, transparent) 0 52%, transparent 52%);
  color:inherit; padding:0 3px; box-shadow:inset 0 -3px 0 var(--ink)}
.legal-updated{font-family:"Shantell Sans",cursive; font-weight:700; font-size:14px; margin:14px 0 0;
  color:var(--pg-text); opacity:.8}
html[data-mode="night"] .legal-head{background:var(--cream)}
html[data-mode="night"] .legal-head h1{color:var(--pg)}
html[data-mode="night"] .legal-updated{color:var(--ink)}
.legal{max-width:76ch; background:var(--white); border:3px solid var(--ink); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:clamp(26px,4.5vw,48px); margin:0 auto}
.legal h2{font-family:"Unbounded",sans-serif; font-weight:700; font-size:clamp(17px,2.2vw,21px);
  letter-spacing:-.01em; margin:30px 0 10px}
.legal h2:first-child{margin-top:0}
.legal p{margin:0 0 14px; font-size:15.5px; font-weight:500; line-height:1.7}
.legal p:last-child{margin-bottom:0}
.legal a{color:var(--pg-deep); font-weight:700; text-decoration:underline; text-underline-offset:3px}

/* ---------------- cursor sparkles ---------------- */
.sparkle{position:fixed; z-index:150; pointer-events:none; font-size:15px;
  animation:twinkle .7s ease-out forwards}
@keyframes twinkle{from{opacity:1; transform:scale(1) rotate(0)}to{opacity:0; transform:scale(.2) rotate(90deg) translateY(14px)}}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1; transform:none}
  .split .ch{animation:none}
  .marq .set,.lrow,.float1,.float2,.float3,.spin-slow,.reel.rolling,.fm-bit,body.fm-shake{animation:none !important}
  .flip-in{transition:none}
  .card:hover,.client:hover,.btn:hover,.stat{transform:none}
  .heart-bit,.sparkle{display:none}
  #wipe, #wipe-mpa{display:none !important}
}
