/* start.contextos.si: one stylesheet on top of Daylight (assets/daylight.css = packages/design/classic.css). The tokens
   are contextos.si v6's (the same palette, radii, shadows and fonts), so the page is of the same family. The page is a
   stage: the world (src/world.mjs) fills the screen, the camera moves over it, and the questions, the captions and the
   end card float on top. Without JavaScript the same story is twelve stills. Light, colourful, never black-on-white. */

/* ---- 1. Tokens (contextos.si v6) ------------------------------------------------------------------------------------- */
:root {
  --brand: 228 88% 54%; --brand-deep: 231 72% 42%; --brand-sky: 203 96% 46%; --brand-soft: 226 100% 95%;
  --coral: 12 96% 59%; --coral-deep: 9 78% 46%; --coral-soft: 16 100% 94%;
  --mint: 162 70% 34%; --mint-soft: 160 56% 93%;
  --amber: 34 96% 46%; --amber-soft: 42 100% 91%;
  --violet: 262 70% 58%; --violet-soft: 262 100% 96%;
  --navy: 231 44% 11%; --navy-2: 230 38% 17%;
  --tint-sky: 212 100% 97%; --tint-indigo: 230 100% 97%; --tint-sand: 32 80% 96%; --tint-mint: 160 55% 96%;
  --background: 222 50% 98.5%; --background-elevated: 224 44% 96%; --foreground: 231 30% 11%;
  --card: 0 0% 100%; --card-foreground: 231 30% 11%; --muted: 224 40% 96%; --muted-foreground: 229 14% 40%;
  --accent: var(--brand); --accent-foreground: 0 0% 100%; --accent-soft: var(--brand-soft);
  --primary: var(--brand); --primary-foreground: 0 0% 100%; --primary-hover: var(--brand-deep);
  --border: 226 30% 90%; --border-strong: 226 24% 82%; --input: 227 16% 62%; --ring: var(--brand);
  --success: var(--mint); --warning: var(--amber); --destructive: var(--coral-deep); --innovate-red: 3 100% 61%;
  --shadow-card: 0 1px 2px hsl(231 40% 20% / 0.05), 0 2px 8px -2px hsl(231 40% 20% / 0.06);
  --shadow-lift: 0 2px 6px -1px hsl(231 40% 20% / 0.06), 0 16px 36px -12px hsl(231 50% 30% / 0.18);
  --shadow-float: 0 1px 2px hsl(231 40% 20% / 0.05), 0 24px 60px -24px hsl(231 50% 30% / 0.28), 0 60px 120px -48px hsl(231 50% 30% / 0.2);
  --shadow-brand: 0 1px 2px hsl(var(--brand-deep) / 0.2), 0 10px 24px -8px hsl(var(--brand) / 0.45);
  --radius-card: 16px; --radius-button: 12px; --radius-nav: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Geist Sans', ui-sans-serif, system-ui, sans-serif;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 40px; } }

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('./fonts/bricolage/bricolage-grotesque-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('./fonts/bricolage/bricolage-grotesque-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Fallback'; src: local('Helvetica Neue'), local('Arial'); size-adjust: 97%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

/* ---- 2. Base ----------------------------------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden; }
p, h1, h2, h3, figure { margin: 0; }
a { color: hsl(var(--brand)); text-decoration: none; }
.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 90; padding: 10px 14px; border-radius: 10px; background: hsl(var(--brand)); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid hsl(var(--brand) / 0.55); outline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- 3. The top bar, the mark, the language switch --------------------------------------------------------------- */
.mark-ring { stroke: hsl(var(--foreground)); } .mark-core { fill: hsl(var(--innovate-red)); }
.mark-light .mark-ring { stroke: #fff; } .mark-light .mark-core { fill: hsl(var(--coral)); }
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px; background: hsl(var(--card) / 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-card); color: hsl(var(--foreground)); font-weight: 700; }
.brand-name { font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -0.01em; }
.top-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid hsl(var(--border)); border-radius: var(--radius-nav); background: hsl(var(--card) / 0.9); box-shadow: var(--shadow-card); }
.lang-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 28px; padding: 0 7px; border-radius: 7px; color: hsl(var(--muted-foreground)); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.lang-opt:hover { background: hsl(var(--brand-soft)); color: hsl(var(--brand-deep)); }
.lang-opt[aria-current="true"] { background: hsl(var(--brand)); color: #fff; }
.top-cta { display: none; }
@media (min-width: 560px) { .top-cta { display: inline-flex; } }

/* ---- 4. Buttons, chips, the small shared pieces --------------------------------------------------------------------- */
.btn { gap: 10px; border-radius: var(--radius-button); font-weight: 600; box-shadow: var(--shadow-brand); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1.0625rem; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn.secondary { box-shadow: var(--shadow-card); border-color: hsl(var(--border-strong)); }
.btn .icon { width: 20px; height: 20px; }
.btn-light { background: #fff; border-color: #fff; color: hsl(var(--brand-deep)); box-shadow: 0 10px 30px -10px hsl(231 60% 10% / 0.5); }
.btn-light:hover { background: hsl(var(--brand-soft)); border-color: hsl(var(--brand-soft)); color: hsl(var(--brand-deep)); }
.link-plain, .link-light { padding: 8px 4px; border: 0; background: none; color: hsl(var(--brand-deep)); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.link-light { color: hsl(0 0% 100% / 0.9); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1.5px solid hsl(var(--border-strong)); border-radius: 999px; background: hsl(var(--card)); font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.chip:hover { border-color: hsl(var(--brand)); color: hsl(var(--brand-deep)); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: hsl(var(--brand)); border-color: hsl(var(--brand)); color: #fff; box-shadow: var(--shadow-brand); }
.q-input { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 12px 14px; border: 1.5px solid hsl(var(--border-strong)); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; resize: vertical; }
.q-input:focus { border-color: hsl(var(--brand)); outline: none; box-shadow: 0 0 0 3px hsl(var(--brand) / 0.2); }
.eyebrow { color: hsl(var(--brand-deep)); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- 5. The stage, the world, the camera ------------------------------------------------------------------------------- */
.js .stage { position: fixed; inset: 0; overflow: hidden; background: hsl(var(--tint-sky)); }
.no-js .stage, .no-js .track { display: none; }
.js .stills, .js .site-footer, .js .end-static { display: none; }
.js body { min-height: 100vh; }
.js body:not(.is-story) { overflow: hidden; height: 100dvh; }
.world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.camera { transform-origin: 0 0; transition: transform 1.4s var(--ease); will-change: transform; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.overlay > * { pointer-events: auto; }

/* ---- 6. The questions: one card, one question per screen ---------------------------------------------------------------- */
.quiz { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); margin: 0 auto; max-width: 600px; }
@media (min-width: 960px) { .quiz { left: auto; right: var(--gutter); bottom: 32px; width: min(560px, 46vw); max-height: calc(100vh - 100px); } }
.q-step { padding: 24px; border-radius: 24px; background: hsl(var(--card) / 0.92); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid hsl(var(--card)); box-shadow: var(--shadow-float); max-height: calc(100dvh - 96px); overflow: auto; }
@media (min-width: 960px) { .q-step { padding: 32px; } }
.q-hook { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2.6vw, 3.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.q-lead { margin-top: 12px; color: hsl(var(--muted-foreground)); line-height: 1.55; }
.q-count { color: hsl(var(--brand-deep)); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.q-title { margin-top: 6px; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.q-hint { margin: 6px 0 14px; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
.q-field { margin-top: 10px; }
.q-free-label { display: block; margin-top: 10px; color: hsl(var(--muted-foreground)); font-size: 0.8125rem; font-weight: 600; }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.q-actions-intro { justify-content: flex-start; gap: 16px; }
.q-actions .q-next, .q-actions .q-submit { margin-left: auto; }

/* ---- 7. The story: the caption card, the dots, the end card -------------------------------------------------------------- */
.story-ui { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; justify-items: center; }
.cap-card { width: 100%; max-width: 760px; padding: 20px 22px; border-radius: 24px; background: hsl(var(--card) / 0.92); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid hsl(var(--card)); box-shadow: var(--shadow-float); }
@media (min-width: 960px) { .cap-card { padding: 28px 32px; } .story-ui { bottom: 32px; } }
.cap-card.is-end { display: none; }
.cap-day { color: hsl(var(--coral-deep)); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cap { margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.1875rem, 1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; animation: cap-in 0.6s var(--ease); }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } }
.cap-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--border-strong)); transition: background-color 0.3s, transform 0.3s; }
.dots i.is-on { background: hsl(var(--brand)); }
.dots i.is-on:last-of-type { background: hsl(var(--coral)); }
.end-card { width: 100%; max-width: 760px; display: grid; justify-items: start; gap: 12px; padding: 28px 24px; border-radius: 28px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, hsl(var(--coral) / 0.55), transparent 55%), linear-gradient(135deg, hsl(var(--brand-deep)), hsl(var(--brand))); box-shadow: var(--shadow-float); }
@media (min-width: 960px) { .end-card { padding: 40px 44px; } }
.end-want { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; }
.end-lead { color: hsl(0 0% 100% / 0.85); }
.end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.end-footer { margin-top: 8px; padding-top: 12px; border-top: 1px solid hsl(0 0% 100% / 0.25); color: hsl(0 0% 100% / 0.75); font-size: 0.8125rem; line-height: 1.5; }
.end-footer a { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.writing { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: var(--gutter); text-align: center; background: hsl(var(--tint-sky) / 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.writing-mark .mark-ring { stroke: hsl(var(--brand)); } .writing-mark .mark-core { fill: hsl(var(--coral)); }
.writing-mark { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.writing-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }
.writing-lead { color: hsl(var(--muted-foreground)); }

/* ---- 8. The stills (no JavaScript), the plain pages ------------------------------------------------------------------------- */
.stills { max-width: 900px; margin: 0 auto; padding: 96px var(--gutter) 40px; display: grid; gap: 32px; }
.stills-title { color: hsl(var(--brand-deep)); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.still { border-radius: 24px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-lift); overflow: hidden; }
.still svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: hsl(var(--tint-sky)); }
.still figcaption { padding: 20px 24px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.still-day { display: block; margin-bottom: 4px; color: hsl(var(--coral-deep)); font-family: var(--font-sans, inherit); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.end-static { max-width: 900px; margin: 0 auto; padding: 24px var(--gutter) 48px; display: grid; gap: 16px; justify-items: start; }
.end-static .end-want { color: hsl(var(--foreground)); }
.site-footer { max-width: 900px; margin: 0 auto; padding: 24px var(--gutter) 48px; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.5; }
.plain-main { max-width: 900px; margin: 0 auto; padding: 120px var(--gutter) 64px; display: grid; gap: 16px; justify-items: start; }

/* ---- 9. The world (src/world.mjs): colours, motion of the parts ---------------------------------------------------------- */
.world { font-family: 'Geist Sans', system-ui, sans-serif; }
.w-sky { fill: hsl(var(--tint-sky)); } .w-sun { fill: hsl(var(--amber-soft)); } .w-ground { fill: hsl(var(--tint-mint)); }
.w-wall { fill: #fff; stroke: hsl(var(--brand)); stroke-width: 3; } .w-roof { fill: hsl(var(--brand)); } .w-inner { stroke: hsl(var(--brand) / 0.25); stroke-width: 3; }
.w-sign { fill: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.w-shelf rect { fill: hsl(var(--border-strong)); } .w-crate { fill: hsl(var(--amber-soft)); stroke: hsl(var(--amber)); stroke-width: 2; } .w-crate-b { fill: hsl(var(--brand-soft)); stroke: hsl(var(--brand)); } .w-crate-c { fill: hsl(var(--coral-soft)); stroke: hsl(var(--coral)); }
.w-person .w-skin { fill: hsl(var(--amber-soft)); stroke: hsl(var(--foreground) / 0.12); stroke-width: 1.5; }
.w-p-brand .w-body { fill: hsl(var(--brand)); } .w-p-coral .w-body { fill: hsl(var(--coral)); } .w-p-mint .w-body { fill: hsl(var(--mint)); } .w-p-violet .w-body { fill: hsl(var(--violet)); } .w-p-amber .w-body { fill: hsl(var(--amber)); }
.w-cap { fill: hsl(var(--navy)); }
.w-label { fill: hsl(var(--muted-foreground)); font-size: 15px; font-weight: 600; } .w-label-small { font-size: 12px; } .w-label-brand { fill: hsl(var(--brand-deep)); } .w-label-mint { fill: hsl(var(--mint)); font-weight: 700; }
.w-desk { fill: hsl(var(--navy-2)); } .w-desk-leg { fill: hsl(var(--navy-2)); } .w-desk-small { fill: hsl(var(--brand-deep)); }
.w-monitor { fill: hsl(var(--navy)); } .w-monitor-screen { fill: hsl(var(--brand-soft)); }
.w-paper { fill: #fff; stroke: hsl(var(--border-strong)); stroke-width: 1.5; }
.w-clock { fill: #fff; stroke: hsl(var(--coral)); stroke-width: 3; } .w-clock-hand { stroke: hsl(var(--coral)); stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: 900px 360px; }
.w-env-body { fill: hsl(var(--coral-soft)); stroke: hsl(var(--coral)); stroke-width: 2; } .w-env-flap { fill: none; stroke: hsl(var(--coral)); stroke-width: 2; }
.w-box { fill: hsl(var(--navy)); } .w-led { fill: hsl(var(--mint)); animation: blink 2.4s ease-in-out infinite; } .w-box-lines { stroke: hsl(0 0% 100% / 0.35); stroke-width: 3; stroke-linecap: round; }
@keyframes blink { 50% { opacity: 0.25; } }
.w-dc-body { fill: hsl(var(--brand-soft)); stroke: hsl(var(--brand)); stroke-width: 2; }
.w-mark .w-halo { stroke: hsl(var(--brand) / 0.45); transform-box: fill-box; transform-origin: center; animation: halo 14s linear infinite; }
@keyframes halo { to { transform: rotate(360deg); } }
.w-mark .w-ring-bg { fill: #fff; } .w-mark .w-ring { stroke: hsl(var(--brand)); } .w-mark .w-core { fill: hsl(var(--coral)); }
.w-mark-small .w-halo, .w-mark-dc .w-halo { display: none; }
.w-ready-card { fill: #fff; stroke: hsl(var(--brand)); stroke-width: 2; } .w-ready-text { fill: hsl(var(--brand-deep)); font-size: 13px; font-weight: 700; }
.w-tick-bg { fill: hsl(var(--mint)); } .w-tick { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.w-sheet-s { fill: #fff; stroke: hsl(var(--border-strong)); stroke-width: 1.5; } .w-calc { fill: hsl(var(--navy-2)); }
.w-bubble { fill: hsl(var(--brand-soft)); } .w-bubble-text { fill: hsl(var(--brand-deep)); font-size: 13px; font-weight: 600; }
.w-bubble-violet { fill: hsl(var(--violet-soft)); stroke: hsl(var(--violet)); stroke-width: 1.5; } .w-bubble-text-violet { fill: hsl(var(--violet)); }
.w-learned { fill: hsl(var(--mint-soft)); stroke: hsl(var(--mint)); stroke-width: 1.5; } .w-learned-check { fill: none; stroke: hsl(var(--mint)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; } .w-learned-text { fill: hsl(var(--mint)); font-size: 12px; font-weight: 700; }
.w-door { fill: hsl(var(--brand)); } .w-knob { fill: #fff; }
.w-shield { fill: hsl(var(--mint)); } .w-shield-check { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.w-tablet { fill: hsl(var(--navy)); }
.w-van { fill: hsl(var(--brand)); } .w-van-cab { fill: hsl(var(--brand-deep)); } .w-van-win { fill: hsl(var(--tint-sky)); } .w-wheel { fill: hsl(var(--navy)); stroke: hsl(var(--border-strong)); stroke-width: 3; }
.w-van-g { transition: transform 1.6s var(--ease); transform: translateX(-520px); } [data-scene="8"] .w-van-g { transform: none; }
.w-phone { fill: hsl(var(--navy)); } .w-phone-screen { fill: #fff; }
.w-file { fill: #fff; stroke: hsl(var(--coral)); stroke-width: 1.5; } .w-file-fold { fill: none; stroke: hsl(var(--coral)); stroke-width: 1.5; } .w-file-name { fill: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 600; }
.w-sheet { fill: #fff; stroke: hsl(var(--border)); stroke-width: 1.5; filter: drop-shadow(0 18px 30px hsl(231 50% 30% / 0.18)); } .w-sheet-tab { fill: hsl(var(--brand)); }
.w-sheet-title { fill: hsl(var(--foreground)); font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.w-node { fill: #fff; stroke: hsl(var(--brand)); stroke-width: 2.5; } .w-node-text { fill: hsl(var(--foreground)); font-size: 14px; font-weight: 700; }
.w-arrow { stroke: hsl(var(--brand) / 0.6); stroke-width: 3; stroke-linecap: round; }
.w-drop { fill: hsl(var(--coral)); animation: pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } .w-leak { fill: hsl(var(--coral-deep)); font-size: 13px; font-weight: 700; }
@keyframes pulse { 50% { transform: scale(1.2); } }
.w-pen { fill: none; stroke: hsl(var(--violet)); stroke-width: 3; stroke-linecap: round; }
.w-note { fill: hsl(var(--violet-soft)); stroke: hsl(var(--violet)); stroke-width: 1.5; } .w-note-text { fill: hsl(var(--violet)); font-size: 13px; font-weight: 700; }
.w-card { fill: #fff; stroke: hsl(var(--border)); stroke-width: 1.5; filter: drop-shadow(0 8px 16px hsl(231 50% 30% / 0.12)); } .w-card-title { fill: hsl(var(--foreground)); font-size: 14px; font-weight: 700; } .w-card-rule { stroke: hsl(var(--border)); stroke-width: 1.5; }
.w-price-label { fill: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 600; } .w-price-pill { fill: hsl(var(--brand-soft)); } .w-price-pill-mint { fill: hsl(var(--mint-soft)); } .w-price-text { fill: hsl(var(--brand-deep)); font-size: 10px; font-weight: 700; } .w-price-check { fill: none; stroke: hsl(var(--mint)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.w-card-btn { fill: #fff; stroke: hsl(var(--border-strong)); stroke-width: 1.5; } .w-card-btn-text { fill: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 700; }
.w-btn { transition: opacity 0.4s; }
/* scene 7: the decision shows on the buttons too (approved: the Approve button green, the other dimmed; rejected: Reject red) */
[data-scene="7"] .w-prop-yes .w-btn-yes .w-card-btn { fill: hsl(var(--mint)); stroke: hsl(var(--mint)); } [data-scene="7"] .w-prop-yes .w-btn-yes .w-card-btn-text { fill: #fff; }
[data-scene="7"] .w-prop-no .w-btn-no .w-card-btn { fill: hsl(var(--coral)); stroke: hsl(var(--coral)); } [data-scene="7"] .w-prop-no .w-btn-no .w-card-btn-text { fill: #fff; }
[data-scene="7"] .w-prop-yes .w-btn-no, [data-scene="7"] .w-prop-no .w-btn-yes { opacity: 0.35; }
/* the roof's name fades while the sheet is up, so the sheet never cuts it */
.w-sign { transition: opacity 0.6s; } [data-scene="4"] .w-sign, [data-scene="5"] .w-sign, [data-scene="6"] .w-sign, [data-scene="7"] .w-sign { opacity: 0; }
.w-stamp rect { fill: hsl(var(--mint-soft)); stroke: hsl(var(--mint)); stroke-width: 3; } .w-stamp text { fill: hsl(var(--mint)); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.w-stamp-no rect { fill: hsl(var(--coral-soft)); stroke: hsl(var(--coral)); } .w-stamp-no text { fill: hsl(var(--coral-deep)); }
.w-stamp { transform-box: fill-box; transform-origin: center; } .k-stamps { transition: opacity 0.3s; } [data-scene="7"] .w-stamp { animation: stamp 0.5s var(--ease); }
@keyframes stamp { from { transform: scale(2); opacity: 0; } }
.w-hand path { fill: hsl(var(--amber-soft)); stroke: hsl(var(--foreground)); stroke-width: 2.5; stroke-linejoin: round; }
/* the groups fade with the scenes (the rules that say which are generated into this file by src/world.mjs sceneCss) */
[class^="k-"], [class*=" k-"] { transition: opacity 0.8s var(--ease); }
.k-ring { transform-box: fill-box; transform-origin: center; transition: transform 1.4s var(--ease), opacity 0.8s var(--ease); }
.stage:not(.is-portrait)[data-scene="4"] .k-ring, .stage:not(.is-portrait)[data-scene="5"] .k-ring, .stage:not(.is-portrait)[data-scene="6"] .k-ring, .stage:not(.is-portrait)[data-scene="7"] .k-ring { transform: translate(-340px, -100px) scale(0.42); }
.stage.is-portrait[data-scene="4"] .k-ring, .stage.is-portrait[data-scene="5"] .k-ring, .stage.is-portrait[data-scene="6"] .k-ring, .stage.is-portrait[data-scene="7"] .k-ring { transform: translate(-250px, -380px) scale(0.42); }
.stage.is-portrait .w-land, .stage:not(.is-portrait) .w-port, .still .w-port { display: none; }
.w-cloud ellipse { fill: #fff; opacity: 0.9; } .w-trunk { fill: hsl(var(--amber)); } .w-crown { fill: hsl(var(--mint) / 0.75); }
.w-card-title-big { font-size: 20px; } .w-price-label-big { font-size: 16px; } .w-price-text-big { font-size: 14px; }
.stage .k-map .draw { stroke-dasharray: 420; stroke-dashoffset: 420; }
.stage[data-scene="4"] .k-map .draw, .stage[data-scene="5"] .k-map .draw { animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stage[data-scene="1"] .w-clock-hand { animation: tick 2s linear infinite; }
@keyframes tick { to { transform: rotate(360deg); } }

/* ---- 10. Reduced motion: the same story, still ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .camera, [class^="k-"], [class*=" k-"], .w-van-g, .w-mark-big, .w-stamp, .chip, .btn, .dots i { transition: none; }
  .w-led, .w-mark .w-halo, .w-drop, .writing-mark, .cap, [data-scene="7"] .w-stamp, .stage[data-scene="1"] .w-clock-hand { animation: none; }
  .stage .k-map .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* scenes (src/world.mjs VIS) */
.k-mails-a { opacity: 0; }
[data-scene="0"] .k-mails-a, [data-scene="1"] .k-mails-a { opacity: 1; }
.k-pile-5 { opacity: 0; }
[data-scene="0"] .k-pile-5, [data-scene="1"] .k-pile-5, [data-scene="2"] .k-pile-5, [data-scene="3"] .k-pile-5, [data-scene="4"] .k-pile-5, [data-scene="5"] .k-pile-5, [data-scene="6"] .k-pile-5, [data-scene="7"] .k-pile-5, [data-scene="8"] .k-pile-5 { opacity: 1; }
.k-pile-8 { opacity: 0; }
[data-scene="1"] .k-pile-8, [data-scene="2"] .k-pile-8, [data-scene="3"] .k-pile-8, [data-scene="4"] .k-pile-8, [data-scene="5"] .k-pile-8, [data-scene="6"] .k-pile-8, [data-scene="7"] .k-pile-8, [data-scene="8"] .k-pile-8 { opacity: 1; }
.k-pile-3 { opacity: 0; }
[data-scene="0"] .k-pile-3, [data-scene="1"] .k-pile-3, [data-scene="2"] .k-pile-3, [data-scene="3"] .k-pile-3, [data-scene="4"] .k-pile-3, [data-scene="5"] .k-pile-3, [data-scene="6"] .k-pile-3, [data-scene="7"] .k-pile-3, [data-scene="8"] .k-pile-3, [data-scene="9"] .k-pile-3 { opacity: 1; }
.k-pile-1 { opacity: 0; }
[data-scene="0"] .k-pile-1, [data-scene="1"] .k-pile-1, [data-scene="2"] .k-pile-1, [data-scene="3"] .k-pile-1, [data-scene="4"] .k-pile-1, [data-scene="5"] .k-pile-1, [data-scene="6"] .k-pile-1, [data-scene="7"] .k-pile-1, [data-scene="8"] .k-pile-1, [data-scene="9"] .k-pile-1, [data-scene="10"] .k-pile-1, [data-scene="11"] .k-pile-1 { opacity: 1; }
.k-clock { opacity: 0; }
[data-scene="1"] .k-clock { opacity: 1; }
.k-ana { opacity: 0; }
[data-scene="2"] .k-ana, [data-scene="3"] .k-ana, [data-scene="4"] .k-ana, [data-scene="5"] .k-ana, [data-scene="6"] .k-ana, [data-scene="7"] .k-ana, [data-scene="8"] .k-ana, [data-scene="9"] .k-ana, [data-scene="10"] .k-ana, [data-scene="11"] .k-ana { opacity: 1; }
.k-ring { opacity: 0; }
[data-scene="2"] .k-ring, [data-scene="3"] .k-ring, [data-scene="4"] .k-ring, [data-scene="5"] .k-ring, [data-scene="6"] .k-ring, [data-scene="7"] .k-ring { opacity: 1; }
.k-phones { opacity: 0; }
[data-scene="2"] .k-phones, [data-scene="3"] .k-phones { opacity: 1; }
.k-asks { opacity: 0; }
[data-scene="3"] .k-asks { opacity: 1; }
.k-sheet { opacity: 0; }
[data-scene="4"] .k-sheet, [data-scene="5"] .k-sheet, [data-scene="6"] .k-sheet, [data-scene="7"] .k-sheet { opacity: 1; }
.k-map { opacity: 0; }
[data-scene="4"] .k-map, [data-scene="5"] .k-map { opacity: 1; }
.k-fix { opacity: 0; }
[data-scene="5"] .k-fix { opacity: 1; }
.k-props { opacity: 0; }
[data-scene="6"] .k-props, [data-scene="7"] .k-props { opacity: 1; }
.k-stamps { opacity: 0; }
[data-scene="7"] .k-stamps { opacity: 1; }
.k-van { opacity: 0; }
[data-scene="8"] .k-van { opacity: 1; }
.k-box { opacity: 0; }
[data-scene="8"] .k-box, [data-scene="9"] .k-box, [data-scene="10"] .k-box, [data-scene="11"] .k-box { opacity: 1; }
.k-shield { opacity: 0; }
[data-scene="8"] .k-shield, [data-scene="9"] .k-shield, [data-scene="10"] .k-shield, [data-scene="11"] .k-shield { opacity: 1; }
.k-dcs { opacity: 0; }
[data-scene="9"] .k-dcs, [data-scene="10"] .k-dcs, [data-scene="11"] .k-dcs { opacity: 1; }
.k-mails-b { opacity: 0; }
[data-scene="9"] .k-mails-b { opacity: 1; }
.k-ready { opacity: 0; }
[data-scene="9"] .k-ready { opacity: 1; }
.k-correct { opacity: 0; }
[data-scene="10"] .k-correct { opacity: 1; }
.k-customers { opacity: 0; }
[data-scene="11"] .k-customers { opacity: 1; }
