/* PopKin website. The look is the "Story More" film's (marketing/hyperframes/story-more/SPEC.md):
   a screen-printed sticker poster. Flat grounds (cobalt, tangerine, cream, ink), sticker yellow on one
   word or sticker per view, ink keylines, hard offset shadows with no blur, print grain, Archivo
   variable for everything. No gradients, glass, glow or blur. Things arrive by being slammed,
   slapped, stamped and stretched (assets/js/site.js), never by fading up. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "PK Sinhala"; src: url("../fonts/sinhala.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; unicode-range: U+0D80-0DFF, U+200C-200D; }
@font-face { font-family: "PK Tamil"; src: url("../fonts/tamil.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D; }

:root {
  --blue: #1f5bff;
  --tang: #ff5a1f;
  --cream: #fff1dc;
  --ink: #141218;
  --sun: #ffd43b;
  --grey: #2b2a31;
  --paper: #fffaf1;
  --line: 3px;
  --hard: 6px 6px 0 var(--ink);
  --hard-l: 10px 10px 0 var(--ink);
  --r: 18px;
  --font: "Archivo", "PK Sinhala", "PK Tamil", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --nav-h: 72px;
  --ease-slam: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); padding: 10px 16px; border: var(--line) solid var(--ink); border-radius: 12px; font-weight: 800; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* print grain over every frame (4%), as in the film */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ---------- type ---------- */
.t {
  font-family: var(--font);
  font-weight: 900;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.86;
  margin: 0;
}
.t-xxl { font-size: clamp(64px, 13.2vw, 210px); }
.t-xl { font-size: clamp(52px, 9vw, 150px); }
.t-l { font-size: clamp(42px, 6.4vw, 104px); }
.t-m { font-size: clamp(34px, 4.4vw, 68px); }
.t-s { font-size: clamp(24px, 2.6vw, 38px); line-height: 0.95; }
.w { display: inline-block; transform-origin: 50% 60%; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 600; max-width: 34ch; margin: 0; }
.kicker {
  display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  font-stretch: 112%;
}
.c-blue { color: var(--blue); } .c-tang { color: var(--tang); } .c-cream { color: var(--cream); }
.c-sun { color: var(--sun); } .c-ink { color: var(--ink); }
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 46%; height: 0.13em; background: var(--tang);
  border: var(--line) solid var(--ink); transform: rotate(-4deg) scaleX(var(--strike, 1)); transform-origin: left center;
}
.outline { color: transparent; -webkit-text-stroke: 3px currentColor; }

/* Sinhala and Tamil: never uppercase, never squeezed, a little more air */
.t:is(:lang(si), :lang(ta)) { text-transform: none; letter-spacing: 0; line-height: 1.12; font-stretch: 100%; }
.t-xxl:is(:lang(si), :lang(ta)) { font-size: clamp(44px, 8.2vw, 132px); }
.t-xl:is(:lang(si), :lang(ta)) { font-size: clamp(38px, 6.4vw, 104px); }
.t-l:is(:lang(si), :lang(ta)) { font-size: clamp(32px, 4.6vw, 76px); }
.t-m:is(:lang(si), :lang(ta)) { font-size: clamp(26px, 3.4vw, 52px); }
.t-xxl:lang(ta) { font-size: clamp(36px, 6.6vw, 108px); }
.t-xl:lang(ta) { font-size: clamp(32px, 5.4vw, 88px); }
.t-l:lang(ta) { font-size: clamp(28px, 4vw, 64px); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ground { position: relative; isolation: isolate; }
.g-blue { background: var(--blue); color: var(--cream); }
.g-tang { background: var(--tang); color: var(--ink); }
.g-cream { background: var(--cream); color: var(--ink); }
.g-ink { background: var(--ink); color: var(--cream); }
.g-night { background: #1c2fa8; color: var(--cream); }
.g-sun { background: var(--sun); color: var(--ink); }
section { position: relative; }

/* ---------- stickers, tags, stamps ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 0.4em;
  border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: var(--hard);
  padding: 0.42em 0.8em 0.46em; background: var(--cream); color: var(--ink);
  font-weight: 900; font-stretch: 100%; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1;
  white-space: nowrap; font-size: clamp(14px, 1.4vw, 19px);
  transform: rotate(var(--rot, 0deg));
}
.sticker.s-sun { background: var(--sun); }
.sticker.s-tang { background: var(--tang); }
.sticker.s-blue { background: var(--blue); color: var(--cream); }
.sticker.s-ink { background: var(--ink); color: var(--cream); box-shadow: 6px 6px 0 var(--cream); border-color: var(--cream); }
.sticker.s-cream { background: var(--cream); }
.sticker.big { font-size: clamp(18px, 2vw, 28px); border-radius: 18px; }
.sticker:is(:lang(si), :lang(ta)) { text-transform: none; letter-spacing: 0; }
.stamp {
  display: inline-block; border: 6px solid currentColor; border-radius: 12px; padding: 0.06em 0.32em 0.12em;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 1; letter-spacing: 0.02em;
  transform: rotate(var(--rot, -9deg)); color: var(--tang); background: transparent;
  font-size: clamp(28px, 3.6vw, 52px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  min-height: 52px; padding: 12px 22px; border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--sun); color: var(--ink); box-shadow: var(--hard); text-decoration: none;
  font-weight: 900; font-stretch: 105%; text-transform: uppercase; letter-spacing: 0.01em; font-size: 16px;
  transition: transform 0.12s var(--ease-slam), box-shadow 0.12s var(--ease-slam);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.btn.b-cream { background: var(--cream); }
.btn.b-ink { background: var(--ink); color: var(--cream); }

/* store badges: the official artwork on an ink tag */
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge {
  position: relative; display: inline-block; border-radius: 12px; line-height: 0;
  box-shadow: 0 0 0 var(--line) var(--ink), var(--hard);
  transition: transform 0.12s var(--ease-slam), box-shadow 0.12s var(--ease-slam);
}
.badge img { height: 54px; width: auto; border-radius: 10px; }
.badge:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 var(--line) var(--ink), 8px 8px 0 var(--ink); }
.g-ink .badge, .g-blue .badge { box-shadow: 0 0 0 var(--line) var(--cream), 6px 6px 0 var(--cream); }
.badge.soon::after {
  content: attr(data-soon); position: absolute; right: -12px; top: -14px; line-height: 1;
  background: var(--sun); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 10px;
  padding: 5px 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; transform: rotate(7deg);
}

/* ---------- the phone: a flat ink slab, keyline and hard shadow ---------- */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 1080 / 2336; flex: none;
  border-radius: calc(var(--pw) * 0.15); background: var(--ink);
  padding: calc(var(--pw) * 0.035);
  box-shadow: 0 0 0 var(--line) var(--ink), 12px 12px 0 var(--line) var(--ink);
}
.g-ink .phone, .g-night .phone { box-shadow: 0 0 0 var(--line) var(--cream), 12px 12px 0 var(--line) var(--cream); }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * 0.12); overflow: hidden; background: var(--grey); }
.phone .scr > video, .phone .scr > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .scr > video { transition: opacity 0.25s linear; }
.phone .isl {
  position: absolute; left: 50%; top: calc(var(--pw) * 0.062); width: calc(var(--pw) * 0.27); height: calc(var(--pw) * 0.075);
  transform: translateX(-50%); border-radius: 999px; background: var(--ink); z-index: 5;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; transition: transform 0.3s var(--ease-move), background 0.2s linear;
}
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.nav.solid { background: var(--cream); border-bottom: var(--line) solid var(--ink); }
.nav.hide { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-chip {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue); border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); display: grid; place-items: center; overflow: hidden; flex: none;
}
.logo-chip img { width: 118%; max-width: none; margin-top: 4%; }
.brand b { font-weight: 900; font-size: 24px; letter-spacing: -0.02em; font-stretch: 100%; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 10px;
  border: var(--line) solid transparent; text-transform: uppercase; font-stretch: 108%; letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--ink); background: var(--cream); box-shadow: 3px 3px 0 var(--ink); }
.nav-cta { margin-left: 8px; min-height: 44px; padding: 8px 18px; font-size: 14px; }
.nav.on-dark:not(.solid) { color: var(--cream); }
.nav.on-dark:not(.solid) .nav-links a:hover { color: var(--ink); }

/* language switch */
.lang { position: relative; }
.lang > button {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; cursor: pointer;
  border: var(--line) solid var(--ink); border-radius: 12px; background: var(--cream); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font-weight: 900; font-size: 15px;
}
.lang > button svg { width: 12px; height: 12px; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; min-width: 150px;
  background: var(--cream); border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: var(--hard); color: var(--ink);
}
.lang ul[hidden] { display: none; }
.lang li button {
  width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-weight: 800; font-size: 17px;
}
.lang li button:hover, .lang li button[aria-current="true"] { background: var(--sun); }

.menu-btn { display: none; margin-left: auto; width: 48px; height: 44px; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--sun); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 3px; margin: 4px auto; background: var(--ink); border-radius: 2px; }
.sheet-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--tang); color: var(--ink); padding: calc(var(--nav-h) + 12px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.sheet-menu[hidden] { display: none; }
.sheet-menu a.t { text-decoration: none; font-size: clamp(44px, 13vw, 72px); padding: 4px 0; }
.sheet-menu .close { position: absolute; top: 14px; right: var(--gutter); }
.sheet-menu .badges { margin-top: 24px; }

@media (max-width: 940px) {
  .nav-links, .nav .nav-cta { display: none; }
  .menu-btn { display: block; margin-left: 10px; }
  .nav .lang { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--nav-h) + 28px) 0 64px; overflow: hidden; display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-rows: auto 1fr; gap: 0 40px; align-items: center; }
.hero-head { grid-column: 1; grid-row: 1; }
.hero-copy { grid-column: 1; grid-row: 2; align-self: start; padding-top: 34px; }
.hero-stage { grid-column: 2; grid-row: 1 / 3; }
.hero h1 { margin: 18px 0 0; font-size: min(9.4vw, 134px); line-height: 0.84; }
.hero h1 .row { display: block; white-space: nowrap; }
@media (max-width: 940px) {
  .hero-head, .hero-copy, .hero-stage { grid-column: 1; grid-row: auto; }
  .hero h1 { font-size: min(18.6vw, 150px); }
}
.hero .lead { margin-bottom: 30px; color: var(--cream); }
.hero .note { margin-top: 18px; font-size: 14px; font-weight: 700; opacity: 0.9; }
.hero-stage { position: relative; justify-self: center; padding: 30px 30px 40px 10px; }
.hero-stage .phone { --pw: clamp(230px, 22vw, 320px); }
.hero-stage .sticker { position: absolute; z-index: 6; }
.hero-stage .st-1 { top: 30%; right: -20%; --rot: 6deg; }
.hero-stage .st-2 { top: 56%; left: -12%; --rot: -7deg; }
.hero-stage .st-3 { bottom: 10%; right: -18%; --rot: -4deg; }
.hero-stage .logo-slap {
  position: absolute; z-index: 7; top: -2%; right: -6%; width: clamp(84px, 8vw, 116px); aspect-ratio: 1; border-radius: 24%;
  background: var(--blue); border: var(--line) solid var(--ink); box-shadow: var(--hard); overflow: hidden; --rot: 8deg; transform: rotate(var(--rot));
  display: grid; place-items: center;
}
.hero-stage .logo-slap img { width: 116%; max-width: none; margin-top: 6%; }
@media (max-width: 940px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { padding: 20px 0 30px; }
  .hero-stage .phone { --pw: min(62vw, 280px); }
  .hero-stage .st-1 { left: -18%; } .hero-stage .st-2 { right: -14%; } .hero-stage .st-3 { left: -16%; }
}

/* ---------- marquee bands ---------- */
.bands { position: relative; height: clamp(190px, 22vw, 290px); overflow: hidden; background: var(--cream); }
.band {
  position: absolute; left: -10%; right: -10%; display: flex; overflow: hidden; border-block: var(--line) solid var(--ink);
  padding: 12px 0;
}
.band .track { display: flex; flex: none; gap: 0; animation: run 26s linear infinite; }
.band.rev .track { animation-direction: reverse; }
.band span { flex: none; padding: 0 0.35em; font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.band i { font-style: normal; color: var(--sun); -webkit-text-stroke: 2px var(--ink); padding: 0 0.15em; }
.band.b1 { top: 18%; background: var(--tang); color: var(--ink); transform: rotate(-4deg); }
.band.b2 { top: 50%; background: var(--ink); color: var(--cream); transform: rotate(3deg); }
.band.b2 i { -webkit-text-stroke: 0; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- the hook (sound familiar?) ---------- */
.hook { padding: 120px 0 130px; overflow: hidden; }
.hook .scroll-cols { position: absolute; inset: 0; display: flex; justify-content: space-around; z-index: -1; opacity: 0.13; pointer-events: none; }
.hook .scroll-cols div { writing-mode: vertical-rl; font-weight: 900; font-size: clamp(60px, 8vw, 120px); letter-spacing: 0.04em; line-height: 1; white-space: nowrap; animation: race 9s linear infinite; }
.hook .scroll-cols div:nth-child(even) { animation-direction: reverse; animation-duration: 12s; }
@keyframes race { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hook .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hook q { quotes: "“" "”"; }
.hook .feed { --pw: clamp(220px, 21vw, 300px); margin: 0 auto; }
.feed .scr { background: #2b2a31; padding: 22% 9% 0; display: flex; flex-direction: column; gap: 9px; }
.feed .post { flex: none; border-radius: 12px; background: #3a3941; height: 40%; display: grid; place-items: center; }
.feed .post::after { content: ""; border-left: 22px solid #57565f; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.feed .bar { flex: none; height: 9px; border-radius: 6px; background: #3a3941; width: 70%; }
.feed .bar.s { width: 44%; }
.feed .rail { display: flex; flex-direction: column; gap: 9px; animation: feed 2.4s linear infinite; }
@keyframes feed { to { transform: translateY(-50%); } }
.hook .timer { position: absolute; top: 6%; right: -14%; z-index: 6; font-variant-numeric: tabular-nums; font-size: clamp(18px, 2vw, 28px); --rot: 6deg; }
.hook .trick { margin-top: 34px; font-size: clamp(18px, 2vw, 26px); --rot: -5deg; }
.hook .line { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; max-width: 30ch; margin: 22px 0 0; opacity: 0.92; }
@media (max-width: 860px) { .hook .wrap { grid-template-columns: 1fr; } .hook { padding: 90px 0; } .hook .timer { right: -8%; } }

/* ---------- promise chapters ---------- */
/* floods are hard cuts, as in the film: a blend between two grounds goes muddy */
.promise { transition: none; }
.promise .wrap { display: grid; grid-template-columns: 1fr 0.8fr; gap: 40px; }
.chapters { padding: 12vh 0; }
.chapter { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.chapter .num { font-weight: 900; font-stretch: 125%; font-size: 15px; letter-spacing: 0.16em; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.chapter .num::before { content: ""; width: 34px; height: var(--line); background: currentColor; }
.chapter h2 { margin: 0 0 22px; }
.chapter p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 36ch; margin: 0; font-weight: 600; }
.chapter .fine { font-size: 14px; font-weight: 600; opacity: 0.8; margin-top: 14px; max-width: 46ch; }
.chapter .inline-phone { display: none; }
.pin { position: sticky; top: calc(var(--nav-h) + 4vh); height: calc(100vh - var(--nav-h) - 8vh); display: grid; place-items: center; }
.pin .stage { position: relative; }
.pin .phone, .chapter .phone { --pw: clamp(230px, 20vw, 300px); }
.pin .tags { position: absolute; inset: 0; pointer-events: none; }
.pin .tags > * { position: absolute; z-index: 6; opacity: 0; }
.pin .tags .tg1 { left: -36%; top: 14%; --rot: -8deg; }
.pin .tags .tg2 { right: -34%; top: 26%; --rot: 7deg; }
.pin .tags .tg3 { left: -30%; top: 56%; --rot: 5deg; }
.pin .tags .tg4 { right: -30%; top: 66%; --rot: -6deg; }
.pin .tags .locked { left: 50%; top: 40%; translate: -50% 0; --rot: -11deg; background: var(--cream); font-size: clamp(34px, 3.8vw, 58px); }
.pin .tags .meltdown { right: -30%; top: 12%; --rot: 7deg; }
.pin .tags .face {
  left: 18%; right: 18%; top: 30%; aspect-ratio: 1; border-radius: 22%;
  background:
    linear-gradient(var(--sun), var(--sun)) top left / 26% 9px no-repeat,
    linear-gradient(var(--sun), var(--sun)) top left / 9px 26% no-repeat,
    linear-gradient(var(--sun), var(--sun)) top right / 26% 9px no-repeat,
    linear-gradient(var(--sun), var(--sun)) top right / 9px 26% no-repeat,
    linear-gradient(var(--sun), var(--sun)) bottom left / 26% 9px no-repeat,
    linear-gradient(var(--sun), var(--sun)) bottom left / 9px 26% no-repeat,
    linear-gradient(var(--sun), var(--sun)) bottom right / 26% 9px no-repeat,
    linear-gradient(var(--sun), var(--sun)) bottom right / 9px 26% no-repeat;
}
.pin .tags .tick { left: 50%; top: 72%; translate: -50% 0; --rot: -4deg; }
.pin .tags .roll { right: -36%; top: 18%; --rot: 6deg; }
.roll-win { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.roll-win > span { display: block; transition: transform 0.45s var(--ease-move); }
.roll-win > span > span { display: block; height: 1.1em; line-height: 1.1; }
.slot { display: inline-block; height: 1.18em; overflow: hidden; vertical-align: top; }
.slot > span { display: flex; flex-direction: column; transition: transform 0.5s var(--ease-move); }
.slot > span > span { height: 1.18em; line-height: 1.18; text-transform: none; }
.slot > span > span:not([lang]) { text-transform: uppercase; }

@media (max-width: 900px) {
  .promise .wrap { grid-template-columns: 1fr; }
  .pin { display: none; }
  .chapters { padding: 40px 0; }
  .chapter { min-height: 0; padding: 64px 0; }
  .chapter .inline-phone { display: flex; justify-content: center; margin-top: 36px; position: relative; }
  .chapter .inline-phone .phone { --pw: min(60vw, 260px); }
  .chapters { padding: 0; }
  .chapter { margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); transition: background-color 0.35s var(--ease-move), color 0.35s var(--ease-move); }
  .chapter[data-ground="blue"] { background: var(--blue); color: var(--cream); }
  .chapter[data-ground="cream"] { background: var(--cream); color: var(--ink); }
  .chapter[data-ground="night"] { background: #1c2fa8; color: var(--cream); }
  .chapter[data-ground="tang"] { background: var(--tang); color: var(--ink); }
}

/* ---------- stories wall ---------- */
.stories { padding: 120px 0 130px; overflow: hidden; }
.stories header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.stories header p { max-width: 38ch; margin: 0; font-weight: 600; font-size: 19px; }
.wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 34px); }
.book {
  position: relative; margin: 0; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: var(--hard); padding: 8px 8px 14px; transform: rotate(var(--rot, 0deg));
  transition: transform 0.18s var(--ease-slam), box-shadow 0.18s var(--ease-slam);
}
.book:nth-child(5n+1) { --rot: -3deg; } .book:nth-child(5n+2) { --rot: 2deg; } .book:nth-child(5n+3) { --rot: -1.5deg; }
.book:nth-child(5n+4) { --rot: 3deg; } .book:nth-child(5n) { --rot: -2deg; }
.book:hover { transform: rotate(0deg) translate(-3px, -6px) scale(1.03); box-shadow: 10px 12px 0 var(--ink); z-index: 2; }
.book img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 11px; border: var(--line) solid var(--ink); background: var(--blue); }
.book figcaption { margin-top: 12px; font-weight: 800; font-size: 16px; line-height: 1.2; padding: 0 4px; min-height: 2.4em; }
.book figcaption :is(:lang(si), :lang(ta)) { font-weight: 700; }
.book .chip { position: absolute; top: -12px; right: -10px; font-size: 13px; padding: 6px 9px; border-radius: 10px; --rot: 6deg; }
@media (max-width: 1000px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .book figcaption { font-size: 14px; } }

/* ---------- inside: features ---------- */
.inside { padding: 120px 0; }
.inside h2 { margin-bottom: 56px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feat {
  border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--hard); padding: 26px 24px 28px;
  background: var(--cream); color: var(--ink); display: flex; flex-direction: column; gap: 10px;
}
.feat:nth-child(6n+2) { background: var(--sun); } .feat:nth-child(6n+3) { background: var(--tang); }
.feat:nth-child(6n+4) { background: var(--paper); } .feat:nth-child(6n+5) { background: var(--cream); }
.feat:nth-child(6n) { background: var(--sun); }
.feat .ico { width: 58px; height: 58px; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--blue); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); }
.feat .ico svg { width: 30px; height: 30px; stroke: var(--cream); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 10px 0 0; font-size: clamp(24px, 2.2vw, 30px); }
.feat p { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.45; }
@media (max-width: 960px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

/* ---------- parents' promise ---------- */
.safe { padding: 120px 0; overflow: hidden; }
.safe .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stamps { position: relative; display: flex; flex-wrap: wrap; gap: 18px 26px; align-content: center; justify-content: center; min-height: 340px; }
.stamps .stamp { color: var(--tang); }
.stamps .stamp:nth-child(2) { --rot: 6deg; color: var(--sun); }
.stamps .stamp:nth-child(3) { --rot: -4deg; color: var(--cream); }
.stamps .stamp:nth-child(4) { --rot: 8deg; color: var(--tang); }
.stamps .stamp:nth-child(5) { --rot: -7deg; color: var(--sun); }
.safe ul.facts { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 12px; }
.safe ul.facts li { display: flex; gap: 12px; font-weight: 600; font-size: 18px; line-height: 1.4; }
.safe ul.facts li::before { content: "✓"; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--sun); color: var(--ink); border: var(--line) solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 16px; }
.safe .links { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .safe .wrap { grid-template-columns: 1fr; } .stamps { min-height: 240px; } }

/* ---------- plus ---------- */
.plus { padding: 120px 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.plan { position: relative; border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: var(--hard-l); padding: 34px 30px 32px; background: var(--paper); }
.plan.p-plus { background: var(--blue); color: var(--cream); }
.plan h3 { margin: 0 0 6px; }
.plan .sub { margin: 0 0 22px; font-weight: 700; font-size: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 12px; font-weight: 600; line-height: 1.4; }
.plan li::before { content: "★"; flex: none; color: var(--tang); font-size: 18px; line-height: 1.3; }
.plan.p-plus li::before { color: var(--sun); }
.plan .sticker { position: absolute; top: -18px; right: 22px; --rot: 5deg; }
.plan .small { font-size: 14px; opacity: 0.85; margin: 16px 0 0; font-weight: 600; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { padding: 120px 0; }
.faq .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.qa { border: var(--line) solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--hard); margin-bottom: 16px; overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 800; font-size: 19px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 9px;
  background: var(--sun); border: var(--line) solid var(--ink); display: grid; place-items: center; font-weight: 900; transition: transform 0.2s var(--ease-slam);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 22px 22px; font-weight: 500; font-size: 17px; }
.qa .a p { margin: 0 0 10px; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } }

/* ---------- end card ---------- */
.end { padding: 120px 0 110px; text-align: center; overflow: hidden; }
.end .logo-big { width: clamp(160px, 20vw, 250px); margin: 0 auto 30px; }
.end h2 { margin: 0 0 34px; }
.end .badges { justify-content: center; }
.end .langs { margin-top: 30px; font-weight: 800; font-size: 18px; }

/* ---------- footer ---------- */
.foot { padding: 72px 0 40px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot h4 { margin: 0 0 14px; font-weight: 900; text-transform: uppercase; font-size: 14px; letter-spacing: 0.12em; font-stretch: 112%; color: var(--sun); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot .tag { margin: 16px 0 0; max-width: 30ch; font-weight: 600; opacity: 0.85; }
.foot .base { margin-top: 56px; padding-top: 24px; border-top: 2px solid rgba(255, 241, 220, 0.2); display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: 14px; opacity: 0.8; }
@media (max-width: 820px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- document pages (privacy, terms, kids, support) ---------- */
.doc-head { padding: calc(var(--nav-h) + 64px) 0 70px; overflow: hidden; }
.doc-head .kicker { margin-bottom: 18px; }
.doc-head h1 { margin: 0 0 22px; }
.doc-head .meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.doc-body { padding: 70px 0 110px; }
.doc-body .wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); border: var(--line) solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--hard); padding: 18px 16px; max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; }
.toc b { display: block; font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: 0.12em; margin: 0 0 10px 6px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 7px 8px; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; }
.toc a:hover, .toc a.on { background: var(--sun); }
.prose { max-width: 74ch; font-size: 18px; }
.prose h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; margin: 56px 0 18px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 800; font-size: 21px; margin: 30px 0 10px; }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--tang); font-weight: 900; }
.prose a { color: var(--blue); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { font-weight: 800; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; border: var(--line) solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--paper); font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 2px solid rgba(20, 18, 24, 0.12); }
.prose th { background: var(--ink); color: var(--cream); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.short {
  border: var(--line) solid var(--ink); border-radius: 22px; background: var(--sun); box-shadow: var(--hard-l); padding: 26px 26px 18px; margin: 0 0 48px;
}
.short h2 { margin-top: 0 !important; }
.short ul { list-style: none; padding: 0; }
.short li { display: flex; gap: 12px; font-weight: 700; }
.short li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-weight: 900; font-size: 14px; margin-top: 2px; }
.callout { border: var(--line) solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--hard); padding: 18px 20px; margin: 22px 0; }
.callout.tang { background: var(--tang); }
.callout.blue { background: var(--blue); color: var(--cream); }
.callout.blue a { color: var(--sun); }
.callout p:first-child { margin-top: 0; } .callout p:last-child { margin-bottom: 0; }
address { font-style: normal; }
@media (max-width: 920px) {
  .doc-body .wrap { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; max-height: none; }
}

/* support page cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 56px; }
.card { display: flex; flex-direction: column; gap: 8px; border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: var(--hard); padding: 22px; background: var(--paper); text-decoration: none; transition: transform 0.12s var(--ease-slam), box-shadow 0.12s var(--ease-slam); }
.card:hover { transform: translate(-2px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card b { font-weight: 900; font-size: 21px; text-transform: uppercase; line-height: 1; }
.card span { font-weight: 600; font-size: 16px; }
.card:nth-child(2) { background: var(--sun); } .card:nth-child(3) { background: var(--tang); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ---------- brand page ---------- */
.bk-sec { padding: 100px 0; border-top: var(--line) solid var(--ink); }
.bk-sec .head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; margin-bottom: 48px; align-items: end; }
.bk-sec .head p { margin: 0; font-weight: 600; font-size: 19px; max-width: 46ch; }
@media (max-width: 860px) { .bk-sec .head { grid-template-columns: 1fr; } }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.sw { border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: var(--hard); overflow: hidden; background: var(--paper); cursor: pointer; text-align: left; padding: 0; }
.sw .chipc { height: 150px; border-bottom: var(--line) solid var(--ink); display: flex; align-items: end; padding: 12px; font-weight: 900; font-size: 30px; }
.sw .info { padding: 12px 14px 16px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.sw .info b { display: block; font-size: 17px; font-weight: 900; text-transform: uppercase; }
.sw .info code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 14px; }
.sw:hover { transform: translate(-2px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.ratio { display: flex; height: 64px; border: var(--line) solid var(--ink); border-radius: 16px; overflow: hidden; margin-top: 30px; box-shadow: var(--hard); }
.ratio > div { display: grid; place-items: center; font-weight: 900; font-size: 14px; }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
.logo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.logo-tile { border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--hard); padding: 28px; display: grid; place-items: center; aspect-ratio: 1; position: relative; overflow: hidden; }
.logo-tile img { width: 78%; }
.logo-tile figcaption { position: absolute; left: 14px; bottom: 12px; font-weight: 800; font-size: 14px; }
.logo-tile.bad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 4px), var(--tang) calc(50% - 4px), var(--tang) calc(50% + 4px), transparent calc(50% + 4px)); }
.logo-tile.clear .zone { position: absolute; inset: 14%; border: 3px dashed var(--sun); border-radius: 12px; }
@media (max-width: 820px) { .logo-row { grid-template-columns: 1fr 1fr; } }
.specimen { border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--hard-l); background: var(--paper); padding: 30px; overflow: hidden; }
.specimen .big { font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 8.2vw, 118px); line-height: 0.86; letter-spacing: -0.02em; white-space: nowrap; }
.specimen .ctrl { display: flex; flex-wrap: wrap; gap: 22px 36px; margin-top: 26px; font-weight: 800; }
.specimen label { display: flex; align-items: center; gap: 12px; }
.specimen input[type=range] { accent-color: var(--tang); width: 200px; }
.scale { display: grid; gap: 14px; margin-top: 30px; }
.scale > div { display: flex; align-items: baseline; gap: 18px; border-bottom: 2px solid rgba(20, 18, 24, 0.12); padding-bottom: 12px; }
.scale small { width: 130px; flex: none; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.motions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mo-card { border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--hard); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.mo-card .demo { height: 210px; display: grid; place-items: center; border-bottom: var(--line) solid var(--ink); overflow: hidden; position: relative; }
.mo-card .meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mo-card .meta b { font-weight: 900; font-size: 22px; text-transform: uppercase; }
.mo-card .meta p { margin: 0; font-size: 15px; font-weight: 600; flex: 1; }
.mo-card .meta code { font-size: 13px; font-family: ui-monospace, Menlo, monospace; font-weight: 600; opacity: 0.85; }
.mo-card button.replay { align-self: start; min-height: 40px; padding: 6px 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 960px) { .motions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .motions { grid-template-columns: 1fr; } }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dodont > div { border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--hard); padding: 24px 26px; }
.dodont h3 { margin: 0 0 14px; font-weight: 900; text-transform: uppercase; font-size: 24px; }
.dodont ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-weight: 600; }
@media (max-width: 760px) { .dodont { grid-template-columns: 1fr; } }

/* ---------- motion: hidden until slammed (only when the script runs and motion is allowed) ---------- */
html.js.motion [data-fx]:not(.in) { opacity: 0; }
html.js.motion .strike[data-fx]:not(.in)::after { --strike: 0; }
.strike::after { transition: transform 0.28s var(--ease-slam) var(--sd, 0.18s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band .track, .hook .scroll-cols div, .feed .rail { animation: none; }
  .promise { transition: none; }
}

/* grid children may shrink below their content (long words, nowrap stickers) instead of widening the page */
.wrap > * { min-width: 0; }
.sheet-menu { overflow-x: hidden; }
.sheet-menu a.t:is(:lang(si), :lang(ta)) { font-size: clamp(28px, 8vw, 50px); overflow-wrap: anywhere; }
