/* Hallmark · checked: 2026-10-31 · genre: editorial (inferred)
 * floor: 0 FAIL · fixed: 6a 10a 19 20 34 48 56 62 63 76 · structural: none printed
 * built: the project · redesign: polish · surface: absolute · v2.0.0 */
/* Hallmark · waive 7b · surface-raised is #FFFFFF in docs/kaikode-tokens.json · the kaikode brand sets its cards, fields and button labels in white */
/* Hallmark · answered F7 · the pill selectors are the header's links, the WhatsApp button, the sound toggle and the skip pills, all controls */
/* kaikode — base: tokens, loader, header, story track. Brand: Rethink Sans only; the pixel is the one device. */
:root { --accent: #4257E0;
  --night: #1A2152; --night-deep: #0E1230; --indigo: #4257E0; --periwinkle: #AEB9FF; --paper: #F7F7F5;
  --kaolin: #ECE5D8; --mist: #E8EBF8; --ink: #14161B; --ink-muted: #555A66; --line: #DCDEE5; --line-strong: #767C90;
  --sans: "Rethink Sans", "Rethink Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --top-h: 64px;        /* the fixed header: pinned sections on the light page start below it */
  /* the rest of the brand set, and the example shop's bread tones */
  --bread: #E3B47A; --bread-dark: #B87A3D; --bread-light: #F4C98F; --danger: #B3261E; --indigo-deep: #2B3BA8; --opaque: #000000; --raised: #FFFFFF; --teal: #0E6E87; --teal-soft: #DDF1F5; --warning: #9A5506; --warning-soft: #FCEFD6;
  /* see-through versions: name-aNN is that colour at NN % opacity; name-rgb is its channels for a computed opacity */
  --indigo-a06: rgba(66, 87, 224, .06); --indigo-a32: rgba(66, 87, 224, .32); --ink-a06: rgba(20, 22, 27, .06); --ink-a08: rgba(20, 22, 27, .08);
  --ink-a10: rgb(20 22 27 / .1); --ink-a14: rgba(20, 22, 27, .14); --ink-a25: rgb(20 22 27 / .25); --ink-a30: rgb(20 22 27 / .3);
  --ink-a35: rgb(20 22 27 / .35); --ink-a70: rgb(20 22 27 / .7); --ink-muted-rgb: 85 90 102; --ink-rgb: 20 22 27;
  --night-deep-a18: rgba(14, 18, 48, .18); --night-deep-a25: rgba(14, 18, 48, .25); --night-deep-a30: rgba(14, 18, 48, .3); --night-deep-a35: rgba(14, 18, 48, .35);
  --night-deep-a45: rgba(14, 18, 48, .45); --night-deep-a50: rgba(14, 18, 48, .5); --night-deep-a55: rgba(14, 18, 48, .55); --night-deep-a60: rgba(14, 18, 48, .6);
  --night-deep-a80: rgba(14, 18, 48, .8); --night-deep-a88: rgba(14, 18, 48, .88); --opaque-a35: rgba(0, 0, 0, .35); --paper-a08: rgba(247, 247, 245, .08);
  --paper-a32: rgba(247, 247, 245, .32); --paper-a40: rgba(247, 247, 245, .4); --paper-a50: rgba(247, 247, 245, .5); --paper-a70: rgba(247, 247, 245, .7);
  --paper-a80: rgba(247, 247, 245, .8); --paper-a85: rgba(247, 247, 245, .85); --paper-a90: rgba(247, 247, 245, .9); --periwinkle-a14: rgba(174, 185, 255, .14);
  --periwinkle-a18: rgba(174, 185, 255, .18); --periwinkle-a60: rgba(174, 185, 255, .6); --raised-a40: rgba(255, 255, 255, .4); --raised-rgb: 255 255 255;
}
* { box-sizing: border-box; }
html { background: var(--night-deep); overflow-x: clip; }
body { margin: 0; color: var(--paper); font-family: var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the pixel: the brand square, blinking like a cursor (1.06 s, steps(2)); solid when motion is reduced */
.px { display: inline-block; width: .32em; height: .32em; background: var(--periwinkle); vertical-align: baseline; margin-left: .08em; }
.px.blink { animation: px-blink 1.06s steps(2, start) infinite; }
@keyframes px-blink { to { visibility: hidden; } }
.reduce-motion .px.blink { animation: none; }

#scene { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.track { position: relative; z-index: 1; pointer-events: none; }
.chapter { height: 140vh; }
.chapter[data-chapter="screen"] { height: 60vh; }
.chapter[data-chapter="hold"] { height: 40vh; }
.chapter[data-chapter="modern"] { height: 220vh; }
.chapter[data-chapter="tech"] { height: 80vh; }
.chapter[data-chapter="push"] { height: 70vh; }
.chapter[data-chapter="os"] { height: 100vh; }
.chapter[data-chapter="live"] { height: 30vh; }
.chapter[data-chapter="exit"] { height: 70vh; }
.chapter.end { height: 50vh; }
/* vh timeline: screen 0–60 · room –200 · hold –240 · modern –460 · tech –540 · push –610 · test –710 · live –740 · exit –810 · end –860 */

/* loading screen: night ground, the wordmark, the promise in big type with the blinking pixel, what is happening now,
   and a thin progress bar along the bottom. It stays until the story is ready AND smooth (boot.js). */
.loader { position: fixed; inset: 0; z-index: 50; background: var(--night-deep); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto;
  padding: max(20px, env(safe-area-inset-top)) max(clamp(20px, 4vw, 56px), env(safe-area-inset-right)) max(clamp(28px, 5vh, 56px), env(safe-area-inset-bottom)) max(clamp(20px, 4vw, 56px), env(safe-area-inset-left));
  transition: opacity .7s ease-out, visibility .7s; overflow: hidden; }
.loader.off { opacity: 0; visibility: hidden; }
.loader-still { position: absolute; inset: 0; pointer-events: none; }
.loader-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: blur(14px); transform: scale(1.08); pointer-events: none; }
.loader-still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night-deep-a60), var(--night-deep-a35) 45%, var(--night-deep-a80)); pointer-events: none; }
.loader-glow { position: absolute; left: -10vw; top: -10vh; width: 70vw; height: 70vh; background: radial-gradient(closest-side, var(--indigo-a32), transparent); filter: blur(40px); pointer-events: none; }
.loader-logo { position: relative; height: clamp(20px, 2.2vw, 26px); width: auto; }
.loader-line { position: relative; align-self: center; margin: 0; max-width: 12ch; font: 600 clamp(44px, 9vw, 132px)/.94 var(--sans); letter-spacing: -.045em; text-wrap: balance; }
.loader-line .px { width: .16em; height: .16em; margin-left: .06em; vertical-align: .02em; }
.loader-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 48px; }
.loader-step { margin: 0; font: 500 clamp(15px, 1.2vw, 17px)/1.3 var(--sans); color: var(--periwinkle); }
.loader-pct { margin-left: .6em; color: var(--paper-a85); font-variant-numeric: tabular-nums; }
.loader-skip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--paper-a50); border-radius: 999px;
  background: transparent; color: var(--paper); font: 500 16px/1 var(--sans); cursor: pointer; animation: fade-in .4s ease-out; }
.loader-skip:hover { background: var(--paper-a08); }
.loader-skip[hidden] { display: inline-flex; visibility: hidden; }   /* keeps its space: the headline never jumps when it appears */
.loader-skip:focus-visible, .snd:focus-visible, .skip:focus-visible, .nav a:focus-visible, .brand:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--periwinkle-a14); }
.loader-bar b { display: block; height: 100%; background: var(--periwinkle); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease-out; }
@keyframes fade-in { from { opacity: 0; } }
.reduce-motion .loader-bar b { transition: none; }

/* header: wordmark top-left (brand rule). Night logo over the room, ink logo once the light page is under it */
.top { position: fixed; z-index: 40; inset: 0 0 auto; display: flex; align-items: center; gap: 22px; padding: max(10px, env(safe-area-inset-top)) max(clamp(16px, 2.4vw, 32px), env(safe-area-inset-right)) 10px max(clamp(16px, 2.4vw, 32px), env(safe-area-inset-left)); pointer-events: none;
  transition: background-color .3s ease-out, box-shadow .3s ease-out; }
/* a paper band once the light page is under the header, so it never sits on top of the big headings */
.top.on-paper { pointer-events: auto; background-color: var(--paper); box-shadow: 0 1px 0 var(--ink-a10); }
.top.on-night { pointer-events: auto; background-color: var(--night-deep); }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; min-height: 44px; padding-block: 11px; }
.brand img { height: 22px; width: auto; display: block; }
.brand .logo-paper, .top.on-paper .brand .logo-night { display: none; }
.top.on-paper .brand .logo-paper { display: block; }
.who { display: grid; font: 500 13px/1.25 var(--sans); color: var(--paper); letter-spacing: .01em; }
.who span { color: var(--paper-a80); font-weight: 400; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--paper); font: 500 15px/1 var(--sans); text-decoration: none; border-radius: 999px; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-wa { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--indigo); color: var(--raised); font: 500 15px/1 var(--sans); text-decoration: none; }
.nav-wa:hover { background: var(--night); }
.snd { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--paper-a40); border-radius: 999px;
  background: var(--night-deep-a45); color: var(--paper); font: 500 14px/1 var(--sans); cursor: pointer; backdrop-filter: blur(8px); }
.snd:hover { border-color: var(--paper); }
.snd-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.snd-bars i { width: 2px; height: 12px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.4); }
.snd-bars i:nth-child(2) { transform: scaleY(.7); } .snd-bars i:nth-child(3) { transform: scaleY(.5); } .snd-bars i:nth-child(4) { transform: scaleY(.85); }
.snd[aria-pressed="true"] .snd-bars i { animation: bars .9s ease-in-out infinite alternate; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(2) { animation-delay: -.3s; } .snd[aria-pressed="true"] .snd-bars i:nth-child(3) { animation-delay: -.6s; } .snd[aria-pressed="true"] .snd-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { from { transform: scaleY(.33); } to { transform: scaleY(1); } }
.top.on-paper .who, .top.on-paper .snd, .top.on-paper .nav-link { color: var(--ink); }
.top.on-paper .who span { color: var(--ink-muted); }
.top.on-paper .snd { border-color: var(--ink-a35); background: var(--paper-a70); }
.top.on-paper .snd:focus-visible, .top.on-paper .nav a:focus-visible, .top.on-paper .brand:focus-visible { outline-color: var(--indigo); }

/* the keyboard's way past the story: hidden until it has focus */
.skip-link { position: fixed; z-index: 60; left: 16px; top: 12px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--paper); color: var(--ink); font: 500 16px/1 var(--sans); text-decoration: none; translate: 0 -200%; }
.skip-link:focus-visible { translate: 0 0; outline: 2px solid var(--indigo); outline-offset: 2px; }

/* the first screen: the offer over the room, bottom left, on a soft night scrim. It steps aside on the first scroll,
   and the skip pill takes over its "skip" for the rest of the story */
.intro { position: fixed; z-index: 39; left: 0; right: 0; bottom: 0; margin: 0; pointer-events: none;
  padding: 20vh max(clamp(16px, 2.4vw, 32px), env(safe-area-inset-right)) max(clamp(24px, 6vh, 56px), env(safe-area-inset-bottom)) max(clamp(16px, 2.4vw, 32px), env(safe-area-inset-left));
  background: linear-gradient(180deg, transparent, var(--night-deep-a60) 40%, var(--night-deep-a88)); opacity: 0; visibility: hidden; transition: opacity .5s ease-out, visibility .5s; }
body.entered:not(.scrolled) .intro { opacity: 1; visibility: visible; }
.intro > * { pointer-events: auto; }
.intro-h { margin: 0; max-width: 11ch; font: 600 clamp(40px, 5.6vw, 88px)/.94 var(--sans); letter-spacing: -.04em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; color: var(--paper); }
.intro-h .px { width: .16em; height: .16em; margin-left: .06em; vertical-align: .02em; }
.intro-p { margin: 16px 0 0; max-width: 30em; font: 400 clamp(17px, 1.4vw, 20px)/1.4 var(--sans); color: var(--paper); text-wrap: pretty; }
.intro-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.intro-wa, .intro-skip { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 24px; border-radius: 12px; font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-out, border-color .15s ease-out; }
.intro-wa { border: 0; background: var(--indigo); color: var(--paper); }
.intro-wa:hover { background: var(--night); }
.intro-skip { border: 1px solid var(--paper-a50); background: transparent; color: var(--paper); }
.intro-skip:hover { border-color: var(--paper); background: var(--paper-a08); }
.intro-wa:active, .intro-skip:active { translate: 0 1px; }
.intro-wa:focus-visible, .intro-skip:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; }

/* skip pill: during the story, after the first screen. It stays beside the Day 2 cards, so nobody is held there */
.skip { position: fixed; z-index: 40; left: 50%; translate: -50% 0; margin: 0; font: 500 15px/1 var(--sans); letter-spacing: .01em; color: var(--paper); white-space: nowrap;
  bottom: max(clamp(16px, 3vh, 32px), env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--paper-a32); border-radius: 999px;
  background: var(--night-deep-a35); cursor: pointer; backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
body.entered.scrolled:not(.past-story) .skip { opacity: 1; visibility: visible; }
.skip:hover { border-color: var(--paper); }
/* short landscape screens: the header keeps only its buttons, and the pill gives the Day 2 cards the room */
@media (orientation: landscape) and (max-height: 500px) { .top .who, .top .nav-link { display: none; } body.card-open .skip { opacity: 0; visibility: hidden; } }
.ico { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.12em; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* wall headlines: HTML text projected onto the wall above the monitor (main.js places and scales it) */
.wall { position: fixed; left: 0; top: 0; z-index: 3; margin: 0; pointer-events: none; text-align: center; color: var(--paper); transform-origin: 50% 50%; opacity: 0; will-change: transform, opacity; }
.wall small { display: block; font: 500 clamp(15px, 1.5vw, 24px)/1.2 var(--sans); letter-spacing: .02em; color: var(--paper); margin-bottom: .5em; text-shadow: 0 1px 12px var(--night-deep-a80); }
.wall b { display: block; font: 600 clamp(36px, 6.4vw, 110px)/.92 var(--sans); letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 2px 24px var(--night-deep-a50); }


/* the picture version (lite.js): stills of the room under the same headlines; cards for Day 2 */
.poster { position: fixed; inset: 0; z-index: 0; display: none; background: var(--night-deep); }
.lite .poster { display: block; }
.lite #scene { visibility: hidden; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.lite .wall { left: 50%; top: max(96px, 14vh); width: min(90vw, 1000px); translate: -50% 0; transform: none !important; filter: none !important; }
.lite-card { position: fixed; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; width: min(92vw, 440px); padding: 26px 26px 24px; border-radius: 18px; background: var(--raised); color: var(--ink);
  box-shadow: 0 30px 90px var(--night-deep-a55); opacity: 0; visibility: hidden; display: grid; gap: 4px; }
.lite-card[hidden] { display: none; }
.lite-card { --muted: var(--ink-muted); --accent: var(--indigo); --shop: var(--teal); }   /* the Day 2 window colours, outside the monitor */
.lite-card .w-kicker { margin: 0 0 6px; font: 500 15px/1.2 var(--sans); color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.lite-card .w-kicker::before { content: ""; width: 8px; height: 8px; background: var(--indigo); }
.lite-h { margin: 0; font: 600 clamp(24px, 6vw, 30px)/1.1 var(--sans); letter-spacing: -.02em; }
.lite-p { margin: 6px 0 0; font-size: 18px; color: var(--ink-muted); }
.lite-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.lite-checks li { display: flex; align-items: center; gap: 12px; font: 500 17px/1.2 var(--sans); color: var(--ink); }
.lite-checks li::before { content: ""; width: 16px; height: 16px; background: var(--teal); border: 2px solid var(--teal); }
.lite-btn { margin-top: 18px; justify-self: start; }
html:not(.lite) .lite-card { display: none; }
.lite-short .chapter { height: 50vh; } .lite-short .chapter.end { height: 30vh; }
/* narrow screens: the cards dock as a panel at the bottom (on the right on short landscape screens), like the 3D's, and the
   close-up of the monitor moves into the space that is left */
@media (max-width: 800px), (max-height: 519px) {
  .lite-card { top: auto; bottom: calc(max(clamp(16px, 3vh, 32px), env(safe-area-inset-bottom)) + 56px); translate: -50% 0; width: min(100% - 24px, 480px); padding: 20px 20px 18px; border-radius: 20px; }
  .lite .poster img[data-still="screen"] { translate: 0 -17vh; }
}
@media (orientation: landscape) and (max-height: 519px) {
  .lite-card { left: auto; right: max(12px, env(safe-area-inset-right)); top: calc(var(--top-h) + 4px); bottom: auto; translate: none; width: min(44vw, 400px); max-height: calc(100% - var(--top-h) - 16px); overflow: auto; padding: 14px 16px; }
  .lite-card .lite-h { font-size: 19px; } .lite-checks { margin-top: 8px; gap: 3px; } .lite-checks li { font-size: 14px; } .lite-btn { margin-top: 10px; }
  .lite .poster img[data-still="screen"] { translate: -22vw 0; }
}

@media (max-width: 800px) {
  .who { display: none; }
  .top { gap: 8px; }
  .brand img { height: 19px; }
  .nav { gap: 2px; }
  .nav-link { padding: 0 10px; font-size: 15px; }
  .nav-wa { padding: 0 14px; }
  .snd { width: 44px; padding: 0; justify-content: center; }
  .snd .snd-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wall b { font-size: 11vw; }
  .intro { padding-top: 28vh; }
  .intro-acts > * { flex: 1 1 auto; }
}
@media (max-width: 359px) { .nav-link { display: none; } }
@media (prefers-reduced-motion: reduce) { .snd[aria-pressed="true"] .snd-bars i { animation: none; } }
.reduce-motion .snd[aria-pressed="true"] .snd-bars i { animation: none; }

/* still capture (?still): the room only, for the picture version's images */
.still-capture .top, .still-capture .wall, .still-capture .intro, .still-capture .skip, .still-capture .os-pops, .still-capture .loader { display: none !important; }
