/* Tokri concept page. One page, four directions: the page colours follow the chapter in view
   (html[data-active]), and each direction styles its own phone. */
:root {
  --dur: 240ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --morph: 700ms;
  --font: "Familjen Grotesk", system-ui, sans-serif;
  --pg-frame: #0F1114;
  --pg-shadow: rgba(8, 10, 14, .34);

  /* chapter tokens, intro values; overridden per chapter below */
  --bg: #15120E;
  --ink: #F6F1E7;
  --soft: #BFB5A4;
  --line: rgba(246, 241, 231, .14);
  --accent: #E8B04A;
  --accent-ink: #1C1408;
  --chip: rgba(246, 241, 231, .07);
  --glow: rgba(232, 176, 74, .45);

  /* each direction's own colour, used for its dot in the switcher */
  --dot-tri: #F7CDD4;
  --dot-ridge: #F4A06B;
  --dot-haat: #F3A712;
  --dot-tiffin: #0E5E63;
}
:root[data-active="tri"], :root[data-peek="tri"] { --bg: #1C2766; --ink: #F6F7FD; --soft: #C3CAF0; --line: rgba(255, 255, 255, .2); --accent: #F7CDD4; --accent-ink: #151A3E; --chip: rgba(255, 255, 255, .1); --glow: rgba(247, 205, 212, .4); }
:root[data-active="ridge"], :root[data-peek="ridge"] { --bg: #163A3A; --ink: #EEF4F2; --soft: #B9D0CB; --line: rgba(238, 244, 242, .2); --accent: #F4A06B; --accent-ink: #102326; --chip: rgba(238, 244, 242, .1); --glow: rgba(244, 160, 107, .42); }
:root[data-active="haat"], :root[data-peek="haat"] { --bg: #F3A712; --ink: #191C3A; --soft: #3A3017; --line: rgba(25, 28, 58, .22); --accent: #191C3A; --accent-ink: #FBD47A; --chip: rgba(25, 28, 58, .09); --glow: rgba(25, 28, 58, .38); }
:root[data-active="tiffin"], :root[data-peek="tiffin"] { --bg: #0E5E63; --ink: #F2F7F7; --soft: #CFE3E1; --line: rgba(242, 247, 247, .22); --accent: #E39B2D; --accent-ink: #1D2328; --chip: rgba(242, 247, 247, .1); --glow: rgba(227, 155, 45, .42); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color var(--morph) var(--ease), color var(--morph) var(--ease);
}
a { color: inherit; text-underline-offset: 3px; }
/* no square tap flash on Android; buttons press with their own shape instead */
a, button, select, .poster { -webkit-tap-highlight-color: transparent; }
.cta:active, .wa:active, .show:active, .restart:active, .poster:active .poster-cta, .switch a:active, .pg-full-btn:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
[lang="bn"], [lang="hi"], [lang="ne"] { font-family: "Anek Bangla", "Anek Devanagari", "Noto Sans Bengali", "Noto Sans Devanagari", var(--font); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.banner { padding: 10px 24px; font-size: 14px; line-height: 1.4; color: var(--soft); border-bottom: 1px solid var(--line); text-align: center; }

/* hero: the name, the promise, and the four directions fanned like cards in a hand */
.hero { padding: 28px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.mark { margin: 0 0 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.mark-ic { width: 40px; height: 40px; color: var(--accent); flex: none; filter: drop-shadow(0 6px 14px var(--glow)); }
.wordmark { font-size: 32px; font-weight: 700; letter-spacing: -.025em; margin-right: 4px; }
.scripts { font-size: 22px; font-weight: 600; color: var(--soft); display: inline-flex; gap: 12px; }
.hl { color: var(--accent); }
.hero h1 { margin: 0 0 24px; font-size: clamp(44px, 6.4vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; max-width: 11ch; }
.lede { margin: 0 0 18px; font-size: clamp(19px, 1.6vw, 22px); max-width: 40ch; }
.name-note { margin: 0; color: var(--soft); font-size: 15px; max-width: 46ch; }
.hero-go { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 18px; box-shadow: 0 14px 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.cta:hover svg, .wa:hover svg { transform: translateX(3px); }
@media (hover: none) { .cta:hover, .show:hover { transform: none; } }
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28); }
.cta-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.cta-ghost:hover { background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); }
.facts { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--soft); font-size: 15px; }
.facts b { display: block; color: var(--ink); font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.fan { position: relative; height: 620px; }
.fan-card {
  position: absolute; top: 40px; left: calc(var(--i) * 19%); width: 250px;
  transform: rotate(calc((var(--i) - 1.5) * 5deg)) translateY(calc(var(--i) * 6px - 9px));
  transform-origin: 50% 100%; text-decoration: none;
  transition: transform 420ms var(--ease);
  z-index: calc(var(--i) + 1);
}
.fan-card img { display: block; width: 100%; height: auto; border-radius: 30px; border: 6px solid var(--pg-frame); box-shadow: 0 30px 50px -24px var(--pg-shadow); background: var(--pg-frame); }
.fan-card span { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--chip); font-size: 15px; font-weight: 600; }
/* lifted card: by hover where there is a mouse, by a one-time tour on touch screens (page.js) */
.fan-card:focus-visible, .fan-card.is-lift { transform: rotate(0deg) translateY(-28px) scale(1.06); z-index: 9; }
.fan.is-touring .fan-card:not(.is-lift) { transform: rotate(calc((var(--i) - 1.5) * 5deg)) translateY(calc(var(--i) * 6px + 4px)) scale(.95); opacity: .78; }
.fan-card { transition: transform 520ms var(--ease), opacity 520ms var(--ease); }
@media (hover: hover) {
  .fan-card:hover { transform: rotate(0deg) translateY(-28px) scale(1.04); z-index: 9; }
  .fan:hover .fan-card:not(:hover) { transform: rotate(calc((var(--i) - 1.5) * 5deg)) translateY(calc(var(--i) * 6px + 4px)) scale(.97); }
}

/* the switcher stays on screen and tells you which direction you are in */
.switch { position: sticky; top: 0; z-index: 20; background: var(--bg); border-block: 1px solid var(--line); transition: background-color var(--morph) var(--ease); }
.switch-in { display: flex; gap: 6px; padding-block: 8px; scroll-padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
.switch a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--soft); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.switch a i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line); }
.switch a[data-to="tri"] i { background: var(--dot-tri); }
.switch a[data-to="ridge"] i { background: var(--dot-ridge); }
.switch a[data-to="haat"] i { background: var(--dot-haat); }
.switch a[data-to="tiffin"] i { background: var(--dot-tiffin); }
.switch a:hover { color: var(--ink); background: var(--chip); }
.switch a[aria-current] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -10px var(--glow); }

/* the idea: the promises all four keep, and the two ways to order */
.idea { padding: 112px 0 96px; }
.idea h2, .two-h { margin: 0 0 18px; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.025em; }
.idea-lede { margin: 0 0 48px; font-size: 21px; max-width: 52ch; }
/* the heading stays pinned while the six promises scroll past it */
.idea-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 72px; align-items: start; margin-bottom: 140px; }
.idea-head { position: sticky; top: 112px; }
.idea-head .idea-lede { margin-bottom: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rules li { padding: 26px 0 30px; }
.rules li { padding-top: 18px; border-top: 2px solid var(--accent); color: var(--soft); font-size: 17px; }
.rules b { display: block; color: var(--ink); font-size: clamp(21px, 2vw, 26px); line-height: 1.25; margin-bottom: 8px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.plan { padding: 32px; border-radius: 16px; background: var(--chip); }
.plan h3 { margin: 0 0 12px; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; }
.plan p { margin: 0 0 14px; max-width: 46ch; }
.plan .wears { margin: 0; font-weight: 600; }

/* a direction chapter */
.dir { padding: 120px 0 112px; }
.dir-head { position: relative; margin-bottom: 36px; }
.num { position: absolute; right: 0; top: -24px; margin: 0; font-size: clamp(120px, 18vw, 260px); line-height: .8; font-weight: 700; color: var(--chip); pointer-events: none; }
.dir-head h2 { position: relative; margin: 0 0 14px; font-size: clamp(64px, 11vw, 168px); line-height: .88; letter-spacing: -.035em; font-weight: 800; }
[data-chapter="tri"] h2 { font-family: "Bricolage Grotesque", var(--font); }
[data-chapter="ridge"] h2 { font-family: "Anek Latin", var(--font); font-stretch: 75%; font-weight: 700; letter-spacing: -.02em; }
[data-chapter="haat"] h2 { font-family: "Baloo 2", var(--font); letter-spacing: -.02em; line-height: .95; }
[data-chapter="tiffin"] h2 { font-family: "Archivo", var(--font); font-stretch: 125%; font-weight: 700; letter-spacing: -.03em; }
.pov { position: relative; margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; max-width: 52ch; font-weight: 600; text-wrap: balance; }
.meta { position: relative; margin: 0; color: var(--soft); font-size: 16px; max-width: 64ch; }

.band { list-style: none; margin: 0 0 56px; padding: 6px; display: flex; gap: 6px; border-radius: 20px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
.band li { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); flex: 1 1 0; min-width: 0; height: 104px; padding: 12px 14px; display: flex; align-items: flex-end; background: var(--c); color: var(--k, #16181B); font-size: 15px; font-weight: 600; line-height: 1.2; }

.dir-grid { display: grid; grid-template-columns: minmax(0, 1fr) 406px 220px; grid-template-areas: "notes stage screens"; gap: 48px; align-items: start; }
.stage { grid-area: stage; position: sticky; top: 84px; }
.notes { grid-area: notes; }
.screens { grid-area: screens; position: sticky; top: 84px; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hint { margin: 0; font-size: 15px; line-height: 1.35; color: var(--soft); }
.restart { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 15px var(--font); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.restart:hover { background: var(--chip); }
.restart svg, .wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.story { margin: 0 0 36px; font-size: 20px; line-height: 1.55; max-width: 44ch; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.moments li { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.moments p { margin: 0; color: var(--soft); font-size: 17px; max-width: 38ch; }
.moments b { color: var(--ink); }
.show { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--font); cursor: pointer; box-shadow: 0 10px 22px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform var(--dur) var(--ease); }
.show:hover { transform: translateY(-1px); }
.show:active { transform: translateY(1px); }

.screens h3 { margin: 56px 0 8px; font-size: 15px; font-weight: 600; color: var(--soft); }
.screens ol { list-style: none; margin: 0; padding: 0; }
.screens button { display: block; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--soft); text-align: left; font: 15px/1.3 var(--font); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.screens button:hover { background: var(--chip); color: var(--ink); }
.screens button[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* the device the four prototypes run in */
.device { position: relative; width: 406px; height: var(--dev-h, 860px); zoom: var(--dev-z, 1); border: 8px solid var(--pg-frame); border-radius: 46px; overflow: hidden; background: var(--pg-frame); box-shadow: 0 40px 70px -30px var(--pg-shadow), 0 8px 18px -10px var(--pg-shadow); isolation: isolate; }
/* phones have no visible scrollbars, so the prototypes do not either; they still scroll */
.device * { scrollbar-width: none; }
.device *::-webkit-scrollbar { display: none; }
/* the studio mark sits in every status bar, centred, so any screenshot of a screen carries it */
:where(.device .t-sb, .device .h-sb) { position: relative; }
.device .pg-mark { position: absolute; left: 50%; top: 50%; translate: -50% -38%; font: 600 11px/1 var(--font); letter-spacing: .06em; opacity: .7; white-space: nowrap; pointer-events: none; }
.loading { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #C8CCD2; font-size: 15px; }

/* posters stand in for the prototypes on phones; the full screen view holds the live one */
.poster { display: none; }
.pg-full[hidden] { display: none; }
.pg-full { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; height: 100dvh; background: #0E0F12; color: #F2F3F5; }
.pg-full:fullscreen { height: 100vh; }
.pg-full-bar h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--k-dot, #E8B04A); vertical-align: 1px; }
.pg-full[data-key="tri"] { --k-dot: var(--dot-tri); }
.pg-full[data-key="ridge"] { --k-dot: var(--dot-ridge); }
.pg-full[data-key="haat"] { --k-dot: var(--dot-haat); }
.pg-full[data-key="tiffin"] { --k-dot: #2FA3A9; }
.pg-full-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 8px; padding-top: max(6px, env(safe-area-inset-top)); }
.pg-full-bar h2 { flex: none; margin: 0 4px; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-full-bar h2 { line-height: 1.15; }
.pg-full-bar h2 small { display: block; margin-left: 20px; font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: .7; }
.pg-full-bar select { flex: 1 1 auto; max-width: 260px; margin-left: auto; min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid rgba(242, 243, 245, .28); border-radius: 999px; background: transparent; color: inherit; font: 600 14px var(--font); }
.pg-full-bar select option { color: #16181B; }
.pg-full-btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(242, 243, 245, .1); color: inherit; cursor: pointer; }
.pg-full-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-full :focus-visible { outline-color: #F2F3F5; }
.pg-full-slot { position: relative; flex: 1 1 auto; min-height: 0; }
.pg-full-slot .device { zoom: 1; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
body.pg-full-on { overflow: hidden; }

/* scroll-linked motion: tied to scroll position, CSS only, and off for reduced motion */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rules li { animation: pg-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .dir-head h2 { animation: pg-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .num { animation: pg-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .band li { animation: pg-stagger linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .band li:nth-child(2) { --n: 1; } .band li:nth-child(3) { --n: 2; } .band li:nth-child(4) { --n: 3; } .band li:nth-child(5) { --n: 4; } .band li:nth-child(6) { --n: 5; }
    .fan { view-timeline-name: --fan; }
    .fan-card { animation: pg-fanout linear both; animation-timeline: --fan; animation-range: exit 0% exit 100%; }
    .plan { animation: pg-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .close h2 { animation: pg-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes pg-rise { from { opacity: .15; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes pg-settle { from { opacity: .25; translate: 0 36px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes pg-drift { from { translate: 0 60px; } to { translate: 0 -60px; } }
@keyframes pg-stagger { from { opacity: 0; translate: 0 calc(24px + var(--n, 0) * 14px); } to { opacity: 1; translate: 0 0; } }
@keyframes pg-fanout { to { translate: calc((var(--i) - 1.5) * 70px) 90px; opacity: .25; } }

/* micro-animations: small, slow and once where it matters; all off for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: pg-in 900ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .hero-copy > :nth-child(4) { animation-delay: 270ms; }
  .hero-copy > :nth-child(5) { animation-delay: 340ms; }
  .hero-copy > :nth-child(6) { animation-delay: 400ms; }
  .fan-card img { animation: pg-card-in 1100ms var(--ease) both, pg-float 7s ease-in-out 1200ms infinite alternate; animation-delay: calc(240ms + var(--i) * 110ms), calc(1400ms + var(--i) * 600ms); }
  .mark-ic { transform-origin: 50% 90%; animation: pg-sway 7s ease-in-out 1.5s infinite; }
  .hl { display: inline-block; animation: pg-in 900ms var(--ease) 260ms both; }
  .switch a i { transition: transform var(--dur) var(--ease); }
  .switch a[aria-current] i { transform: scale(1.25); }
  .band li { transition: transform var(--dur) var(--ease); }
  .band li:hover { transform: translateY(-3px); }
}
@keyframes pg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pg-card-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes pg-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes pg-sway { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-6deg); } 94% { transform: rotate(4deg); } 97% { transform: rotate(-2deg); } }

@keyframes pg-halo { 0% { opacity: .7; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.08); } }
.poster-note { display: none; }

/* close and footer */
.close { padding: 120px 0 96px; }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.close h2 { margin: 0; font-size: clamp(56px, 8.5vw, 132px); line-height: .9; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.close p { margin: 0 0 20px; font-size: 20px; max-width: 42ch; color: var(--soft); }
.close p b { color: var(--ink); }
.wa { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 18px; box-shadow: 0 14px 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28); transition: transform var(--dur) var(--ease); }
.wa:hover { transform: translateY(-2px); }
.mail { margin-top: 20px !important; font-size: 16px !important; }
.foot { padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.foot p { margin: 0 0 6px; max-width: 76ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .switch, .fan-card, .show, .wa, .cta { transition: none !important; }
  .poster-cta::after { animation: none; }
}

/* mid screens: the screen list moves under the phone */
@media (max-width: 1180px) {
  .dir-grid { grid-template-columns: minmax(0, 1fr) 406px; grid-template-areas: "notes stage" "notes screens"; }
  .screens { position: static; }
  .screens h3 { margin-top: 8px; }
  .screens ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .screens button { width: auto; box-shadow: inset 0 0 0 1px var(--line); }
}
@media (max-width: 960px) {
  .hero-grid, .close-grid, .plans, .idea-grid { grid-template-columns: minmax(0, 1fr); }
  .idea-head { position: static; }
  .idea-grid { margin-bottom: 96px; }
  .fan { height: 520px; max-width: 560px; }
  .fan-card { width: 210px; }
  .dir-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "screens" "notes"; gap: 28px; }
  .stage { position: static; }
  .device { margin-inline: auto; }
  .stage-bar { max-width: 406px; margin-inline: auto; margin-bottom: 14px; }
}
/* phones: the prototype fills the screen */
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .banner { padding: 8px 16px; font-size: 13px; text-align: left; }
  .hero { padding: 20px 0 48px; }
  .hero-go { margin: 24px 0 22px; }
  .hero-go .cta { flex: 1 1 auto; justify-content: center; }
  .facts { gap: 8px 22px; }
  .facts b { font-size: 24px; }
  .fan { height: 330px; margin-top: 8px; }
  .fan-card { width: 112px; left: calc(6% + var(--i) * 21%); top: 12px; }
  .fan-card img { border-width: 4px; border-radius: 18px; }
  .fan-card span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .idea { padding: 72px 0 64px; }
  .rules li { padding: 20px 0 22px; }
  .idea-grid { margin-bottom: 72px; }
  .plan { padding: 22px; }
  .dir { padding: 72px 0 64px; }
  .band { padding: 4px; gap: 4px; border-radius: 14px; }
  .band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band li { height: 64px; padding: 8px 10px; font-size: 13px; border-radius: 10px; }
  .stage-bar .restart { display: none; }
  .stage > .device, .screens { display: none; }
  .poster { display: block; position: relative; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
  .poster img { display: block; width: min(68vw, 260px); height: auto; margin: 0 auto; border: 6px solid var(--pg-frame); border-radius: 28px; box-shadow: 0 30px 50px -24px var(--pg-shadow); }
  .poster img { -webkit-mask-image: linear-gradient(#000 62%, transparent 98%); mask-image: linear-gradient(#000 62%, transparent 98%); }
  .poster-cta { position: relative; margin: -64px auto 0; display: flex; width: 100%; max-width: 360px; justify-content: center; align-items: center; gap: 10px; min-height: 60px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 18px; white-space: nowrap; box-shadow: 0 16px 34px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28); }
  .poster-cta::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: pg-halo 2.4s var(--ease) infinite; }
  .poster-cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .poster-note { display: block; margin-top: 10px; text-align: center; color: var(--soft); font-size: 14px; }
  .screens ol { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .screens button { white-space: nowrap; flex: none; min-height: 44px; }
  .moments li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .story { font-size: 18px; }
  .close { padding: 80px 0 56px; }
  .wa { width: 100%; justify-content: center; }
}
