/* ════════════════════════════════════════════════════════════
   Odyssey — design system v3 ("Fresh")
   Plus Jakarta Sans, sentence case, flat color blocks
   (Electric Blue #3D5AF1 · near-black ink · white), honest
   interactivity: hover states exist ONLY on real links/buttons.
   Used by layouts/base.twig across every page.
   ════════════════════════════════════════════════════════════ */

:root{
  --accent:#3D5AF1;
  --accent-dark:#2c43c4;
  --glow:#7C8CFF;
  --ink:#14161f;
  --night:#0B0E1A;          /* hero image base tone — hero + header only */
  --hairline:rgba(255,255,255,0.14);
  --hairline-2:rgba(255,255,255,0.24);
  --dk-body:#B9C0D8;        /* body text on dark (hero) */
  --body:#4d5566;
  --muted:#8a93ab;
  --wash:#F6F8FF;
  --line:#E4E7EF;
  --canvas:#EDEFF5;
  --indigo:#28305C;
  --success:#1F8A5B;
  --danger:#C0392B;
  --mono:'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease:cubic-bezier(0.16,1,0.3,1);
}

body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); }
h1,h2,h3,h4,h5,h6 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -0.025em; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--wash); }
::-webkit-scrollbar-thumb { background: #c9cede; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── Display typography ─── */
.display { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.h2-tight { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }

/* ─── Eyebrow — quiet small-caps label, no decoration ─── */
.eyebrow{
  display:inline-flex; align-items:center;
  font-size:0.78rem; font-weight:600; letter-spacing:0.09em; text-transform:uppercase;
  color:var(--accent);
}
.eyebrow::before{ content:none; }
.eyebrow--center{ justify-content:center; }
.eyebrow--muted{ color:var(--muted); }
.eyebrow--plain::before{ content:none; }
.mono-label{ font-size:0.72rem; font-weight:600; letter-spacing:0.09em; text-transform:uppercase; }

/* ─── Tag — tiny meta label (e.g. PROJECT) ─── */
.tag{
  display:inline-flex; align-items:center;
  font-size:0.68rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--muted);
}

/* ─── Legacy chips kept calm ─── */
.idx, .idx--light{
  display:inline-flex; align-items:center; justify-content:center;
  font-size:0.72rem; font-weight:600; color:var(--muted);
  background:transparent; border:none; padding:0;
}

/* ─── Buttons — flat, sentence case, no lift/glow/sheen ─── */
.btn-primary, .btn-ink, .btn-light, .btn-outline{
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  font-size:0.95rem; font-weight:600; letter-spacing:-0.01em; text-transform:none;
  border-radius:3px; padding:0.8rem 1.5rem; text-decoration:none;
  transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary{ background:var(--accent); color:#fff; border:1px solid var(--accent); }
.btn-primary:hover{ background:var(--accent-dark); border-color:var(--accent-dark); }

.btn-ink{ background:var(--ink); color:#fff; border:1px solid var(--ink); }
.btn-ink:hover{ background:#000; border-color:#000; }

.btn-light{ background:#fff; color:var(--ink); border:1px solid #fff; }
.btn-light:hover{ background:var(--wash); }

.btn-outline{ background:transparent; color:var(--ink); border:1px solid #c6ccdb; }
.btn-outline:hover{ border-color:var(--ink); }
.btn-outline--invert{ color:#fff; border-color:var(--hairline-2); }
.btn-outline--invert:hover{ border-color:#fff; color:#fff; background:rgba(255,255,255,0.08); box-shadow:none; }

/* ─── Card — static surface; interactivity only via .card-link (an <a>) ─── */
.card{
  background:#fff; border:1px solid var(--line); border-radius:4px;
}
.card-hover{ transition:border-color 0.2s ease; }
.card-hover:hover{ transform:none; border-color:#c6ccdb; box-shadow:none; }
a.card-link{ display:block; text-decoration:none; color:inherit; transition:border-color 0.2s ease; }
a.card-link:hover{ border-color:var(--accent); }

/* ─── Panel (dark surfaces — hero-adjacent only) ─── */
.panel{
  position:relative; background:rgba(255,255,255,0.04);
  border:1px solid var(--hairline); border-radius:4px;
}
.panel:hover, .panel-hover:hover, .panel--static:hover{ transform:none; box-shadow:none; background:rgba(255,255,255,0.04); border-color:var(--hairline); }

/* ─── Accent (blue wash) card ─── */
.accent-card{ background:var(--wash); border:1px solid var(--accent); border-radius:4px; }

/* ─── Flat blue band (statement / CTA sections) ─── */
.band-blue{ background:var(--accent); color:#fff; }
.band-blue .eyebrow{ color:rgba(255,255,255,0.75); }

/* ─── Editorial case entry — the "opened-up" reference block ─── */
.case-entry{ border-top:1px solid var(--line); }
.case-entry:last-child{ border-bottom:1px solid var(--line); }
.case-media{ border-radius:4px; overflow:hidden; background:var(--canvas); }
.case-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.case-metrics{ display:flex; flex-wrap:wrap; gap:0.4rem 2rem; }
.case-metrics > div{ padding:0; }
.case-metrics strong{ color:var(--ink); font-weight:700; }

/* ─── Pricing / package card (legacy, calm) ─── */
.price-card, .price-card--light{
  position:relative; background:#fff; border:1px solid var(--line); border-radius:4px;
}
.price-card:hover{ transform:none; box-shadow:none; border-color:var(--line); }
.price-card--featured{ border-color:var(--accent); background:var(--wash); box-shadow:none; }
.price-card__flag{
  position:absolute; top:-1px; right:-1px;
  background:var(--accent); color:#fff; font-size:0.68rem; font-weight:600;
  letter-spacing:0.08em; text-transform:uppercase;
  padding:0.4rem 0.85rem; border-radius:0 4px 0 4px;
}
.price-local, .price-local--light{
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.78rem; font-weight:600; color:var(--body);
  background:var(--wash); border:1px solid var(--line);
  border-radius:3px; padding:0.35rem 0.75rem;
}
.price-local .material-symbols-outlined{ color:var(--accent); font-size:1rem; }

/* ─── FAQ disclosure ─── */
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary{ cursor:pointer; }
.faq-item .faq-icon{ transition:transform 0.3s var(--ease); }
.faq-item[open] .faq-icon{ transform:rotate(45deg); }
.faq-item[open]{ border-color:var(--accent); }

/* ─── Team member card (static; only the LinkedIn link is interactive) ─── */
.team-card:hover{ transform:none; box-shadow:none; }
.team-avatar{
  position:relative; width:3.25rem; height:3.25rem; border-radius:4px; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--wash); border:1px solid var(--line);
  font-weight:700; font-size:0.95rem; letter-spacing:-0.02em; color:var(--accent);
  overflow:hidden;
}
.team-avatar--lg{ width:4.5rem; height:4.5rem; border-radius:6px; font-size:1.15rem; }
.team-avatar img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* ─── Org chart ─── */
.org-box{ background:var(--wash); border:1px solid var(--line); border-radius:4px; }
.org-connector{ position:relative; height:56px; }
.org-connector::before{
  content:''; position:absolute; left:50%; top:0; transform:translateX(-50%);
  width:2px; height:28px; background:var(--line);
}
.org-connector::after{
  content:''; position:absolute; left:calc(25% - 4px); right:calc(25% - 4px); top:27px;
  height:2px; background:var(--line);
}
.org-stub{ position:absolute; top:27px; width:2px; height:29px; background:var(--line); }
.org-stub--left{ left:calc(25% - 4px); }
.org-stub--right{ right:calc(25% - 4px); }

.team-linkedin{
  display:inline-flex; align-items:center; justify-content:center;
  width:1.75rem; height:1.75rem; border-radius:4px; flex:none;
  color:var(--muted); border:1px solid var(--line); background:#fff;
  transition:color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.team-linkedin:hover{ color:#fff; background:var(--accent); border-color:var(--accent); }

/* ─── Left-bordered note ─── */
.note-left{ border-left:3px solid var(--accent); padding:0.4rem 0 0.4rem 1.1rem; }

/* ─── Stat strip — plain typography, no boxes ─── */
.stat-strip{ display:grid; gap:2rem; background:transparent; border:none; border-radius:0; overflow:visible; }
.stat-strip > *{ background:transparent; padding:0; border-top:2px solid var(--ink); padding-top:1.2rem; text-align:left; }
.stat-strip--dark > *{ border-top-color:var(--hairline-2); }
.stat-number{ font-weight:700; letter-spacing:-0.03em; line-height:1; color:var(--accent); font-family:inherit; }
.count-up{ color:var(--accent); }
.stat-label{ font-size:0.78rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--body); }

/* ─── Pills / badges / tags ─── */
.pill{ display:inline-flex; align-items:center; font-weight:600; font-size:0.72rem; letter-spacing:0.02em;
  color:#fff; background:var(--accent); border-radius:3px; padding:0.28rem 0.65rem; }
.pill--ink{ background:var(--ink); }
.chip{ display:inline-flex; align-items:center; gap:0.4rem; font-size:0.7rem; font-weight:600;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--muted);
  border:none; border-radius:0; padding:0; }
.chip--dark{ color:var(--dk-body); }
.chip + .chip::before{ content:'·'; margin-right:0.4rem; color:var(--muted); }

/* ─── Capability / feature tile (static) ─── */
.tile{ display:flex; align-items:center; gap:0.75rem; padding:1rem;
  border:1px solid var(--line); border-radius:4px; background:#fff; }
.tile:hover{ border-color:var(--line); }
.tile .material-symbols-outlined{ color:var(--accent); }
.tile--dark{ background:rgba(255,255,255,0.04); border-color:var(--hairline); }
.tile--dark:hover{ border-color:var(--hairline); background:rgba(255,255,255,0.04); }
.tile--dark span:last-child{ color:#fff !important; }

/* ─── CTA band — flat brand blue (was the dark wave card) ─── */
.cta-dark{
  background:var(--accent); color:#fff; border-radius:4px; position:relative; overflow:hidden;
  border:none;
}
.cta-dark::before{ content:none; }
.cta-dark > *{ position:relative; z-index:1; }
.cta-dark .eyebrow{ color:rgba(255,255,255,0.75); }

/* ─── Orbit motif (legacy) ─── */
.orbit{ position:absolute !important; pointer-events:none; }

/* ─── Data table ─── */
.data-table{ width:100%; border:1px solid var(--line); border-radius:4px; overflow:hidden; border-collapse:separate; border-spacing:0; }
.data-table thead th{ background:var(--ink); color:#fff; font-size:0.7rem; letter-spacing:0.08em; text-transform:uppercase; text-align:left; padding:0.7rem 1rem; font-weight:600; }
.data-table tbody td{ border-top:1px solid var(--line); padding:0.7rem 1rem; font-size:0.88rem; color:var(--body); }
.data-table tbody tr:nth-child(even){ background:#fafbfe; }

/* ─── Scroll-reveal (kept subtle) ─── */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible{ opacity:1; transform:translateY(0); }
.reveal-left{ opacity:0; transform:translateX(-32px); transition:opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right{ opacity:0; transform:translateX(32px); transition:opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-scale{ opacity:0; transform:scale(0.97); transition:opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.visible, .reveal-right.visible{ opacity:1; transform:translateX(0); }
.reveal-scale.visible{ opacity:1; transform:scale(1); }
.reveal-d1{ transition-delay:0.06s; } .reveal-d2{ transition-delay:0.12s; }
.reveal-d3{ transition-delay:0.18s; } .reveal-d4{ transition-delay:0.24s; }
.reveal-d5{ transition-delay:0.30s; } .reveal-d6{ transition-delay:0.36s; }
.reveal-stagger > *{ opacity:0; transform:translateY(18px); transition:opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal-stagger.visible > *:nth-child(1){ transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2){ transition-delay:0.07s; }
.reveal-stagger.visible > *:nth-child(3){ transition-delay:0.14s; }
.reveal-stagger.visible > *:nth-child(4){ transition-delay:0.21s; }
.reveal-stagger.visible > *:nth-child(5){ transition-delay:0.28s; }
.reveal-stagger.visible > *:nth-child(6){ transition-delay:0.35s; }
.reveal-stagger.visible > *{ opacity:1; transform:translateY(0); }

/* ─── Section dividers ─── */
.gradient-divider{ height:1px; background:var(--line); }
.rule-dash{ border:none; border-top:1px solid var(--line); }
.rule-dash--light{ border-top-color:var(--line); }

/* ─── Story / case-study card (legacy grid form — static) ─── */
.story-card{ position:relative; background:#fff; border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.story-card:hover{ transform:none; box-shadow:none; border-color:var(--line); }
.story-card .card-media{ height:180px; background-size:cover; background-position:center; position:relative; }
.story-card .card-media::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(13,15,20,0.10), rgba(13,15,20,0.45)); }
.story-card .card-logo{ position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center; }
.story-card--dark{ background:#fff; border-color:var(--line); }

/* ─── Service tabs (real buttons — honest hover kept) ─── */
.service-tab{ transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; cursor:pointer;
  font-size:0.85rem !important; font-weight:600; letter-spacing:-0.01em; text-transform:none; border-radius:3px !important; }
.service-tab .service-tab-icon{ color:var(--accent); transition:color 0.2s ease; }
.service-tab.active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.service-tab.active .service-tab-icon{ color:#fff; }
.service-tab:hover:not(.active){ border-color:var(--ink); color:var(--ink); }
.service-tab--dark{ background:transparent !important; border-color:var(--hairline) !important; color:var(--dk-body) !important; }
.service-tab--dark.active{ background:#fff !important; border-color:#fff !important; color:var(--ink) !important; }
.service-tab--dark:hover:not(.active){ border-color:#fff !important; color:#fff !important; }
.service-panel{ display:none; }
.service-panel.active{ display:block; animation:panelFadeIn 0.35s ease; }
@keyframes panelFadeIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }

/* ─── Industry / generic card — static ─── */
.industry-card:hover{ border-color:var(--line); transform:none; box-shadow:none; }
.industry-card:hover .industry-icon{ color:var(--muted); }
.industry-icon{ color:var(--muted); }

/* ─── Process timeline (scroll-driven state, not hover bait) ─── */
.process-step{ transition:all 0.4s ease; }
.process-num{ transition:all 0.5s var(--ease); position:relative; }
.process-detail{ max-height:0; opacity:0; overflow:hidden; transition:max-height 0.5s var(--ease), opacity 0.4s ease; }
.process-step.reached .process-detail{ max-height:200px; opacity:1; }
.timeline-track{ position:absolute; top:28px; left:56px; right:56px; height:2px; background:var(--line); }
.timeline-progress{ height:100%; width:0%; background:var(--accent); transition:width 0.4s var(--ease); border-radius:1px; }
.process-step.reached .process-num{ background:var(--accent); border-color:var(--accent); color:#fff; }
.process-step.reached h3{ color:var(--accent); }
.timeline-track-v{ position:absolute; left:27px; top:56px; bottom:56px; width:2px; background:var(--line); }
.timeline-progress-v{ width:100%; height:0%; background:var(--accent); transition:height 0.4s var(--ease); border-radius:1px; }

/* ─── Ghost media (legacy, unused on refreshed pages) ─── */
.ghost-media{
  position:absolute; pointer-events:none; z-index:0;
  background-size:cover; background-position:center;
  opacity:0.10; filter:saturate(0.5);
}
.ghost-fade-up{ -webkit-mask-image:linear-gradient(to top, #000 0%, transparent 90%); mask-image:linear-gradient(to top, #000 0%, transparent 90%); }
.ghost-fade-left{ -webkit-mask-image:linear-gradient(to left, #000 0%, transparent 85%); mask-image:linear-gradient(to left, #000 0%, transparent 85%); }
.ghost-fade-right{ -webkit-mask-image:linear-gradient(to right, #000 0%, transparent 85%); mask-image:linear-gradient(to right, #000 0%, transparent 85%); }

/* ════════════════════════════════════════════════════════════
   Hero — the wave (kept), calmer scrim
   ════════════════════════════════════════════════════════════ */
.hero-wave{ background:var(--night); }
.hero-wave .hero-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:72% center;
}
.hero-wave .hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(11,14,26,0.88) 15%, rgba(11,14,26,0.35) 55%, rgba(11,14,26,0.05) 100%);
}

/* ─── Logo wall — plain grid handled in the partial ─── */
.logo-cell{ display:flex; align-items:center; justify-content:center; flex:none; width:11rem; height:4.5rem; padding:0.5rem 1rem; }
.logo-cell img{ max-height:2.5rem; max-width:8.75rem; width:auto; object-fit:contain; }
.logo-cell--light{}
.marquee{ overflow:visible; -webkit-mask-image:none; mask-image:none; }
.marquee-track{ display:flex; flex-wrap:wrap; gap:2rem; width:auto; animation:none; }

/* ════════════════════════════════════════════════════════════
   Motion layer — page + hero entrances only.
   ════════════════════════════════════════════════════════════ */

/* Opacity only — a transform here (even a filled-to-identity one) would make
   <body> the containing block for position:fixed and break the fixed header. */
@keyframes pageIn{ from{ opacity:0; } to{ opacity:1; } }
body{ animation:pageIn 0.4s var(--ease) both; }

/* ─── Scroll progress rail under the header ─── */
#scroll-progress{
  position:absolute; left:0; bottom:-1px; height:2px; width:0%;
  background:var(--accent);
  transition:width 0.1s linear; pointer-events:none; z-index:60;
}

/* ─── Hero entrance ─── */
@keyframes heroIn{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
.hero-reveal > *{ animation:heroIn 0.7s var(--ease) both; }
.hero-reveal > *:nth-child(1){ animation-delay:0.05s; }
.hero-reveal > *:nth-child(2){ animation-delay:0.12s; }
.hero-reveal > *:nth-child(3){ animation-delay:0.19s; }
.hero-reveal > *:nth-child(4){ animation-delay:0.26s; }
.hero-reveal > *:nth-child(5){ animation-delay:0.33s; }

/* ─── Spotlight / sheen / orbit-drift: removed in v3 ─── */
.spotlight{ background-image:none; }

/* ─── Header ─── */
.header-link{ position:relative; }
.header-link::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:1.5px;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform 0.3s var(--ease);
}
.header-link:hover::after{ transform:scaleX(1); }
#site-header{ transition:background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
#site-header.is-scrolled{
  background:rgba(255,255,255,0.94);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
  box-shadow:0 1px 18px rgba(13,15,20,0.06);
}
/* scrolled: flip the header's on-dark styling to on-light */
#site-header.is-scrolled .header-logo{ filter:brightness(0) !important; }
#site-header.is-scrolled .header-link{ color:var(--body) !important; }
#site-header.is-scrolled .header-link:hover{ color:var(--ink) !important; }
#site-header.is-scrolled .header-menu{ color:var(--ink) !important; }
#site-header.is-scrolled .btn-light{ background:var(--ink); color:#fff; border-color:var(--ink); }
#site-header.is-scrolled .btn-light:hover{ background:#000; }
#site-header.is-scrolled .lang-link{ color:var(--muted) !important; }
#site-header.is-scrolled .lang-link.lang-active{ color:var(--ink) !important; }
#site-header.is-scrolled .lang-sep{ color:var(--line) !important; }

/* ─── Anchor targets clear the fixed header ─── */
section[id]{ scroll-margin-top:5.5rem; }

/* ─── Grid texture: removed in v3 (kept as no-op for legacy markup) ─── */
.ink-grid{ position:relative; }
.ink-grid::before{ content:none; }
.ink-grid > *{ position:relative; z-index:1; }

/* ════════════════════════════════════════════════════════════
   Kokpit product page — stepper + animated scenes
   State-driven only: JS toggles classes / data-step; ALL motion
   lives under (prefers-reduced-motion: no-preference); base CSS
   below always describes the FINAL frame.
   ════════════════════════════════════════════════════════════ */

/* ─── How-it-works stepper layout ─── */
.hiw-steps{ position:relative; }
.hiw-rail{ position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--line); }
.hiw-rail-fill{ width:100%; height:12.5%; background:var(--accent); transition:height 0.5s var(--ease); }
#hiw[data-step="1"] .hiw-rail-fill{ height:37.5%; }
#hiw[data-step="2"] .hiw-rail-fill{ height:62.5%; }
#hiw[data-step="3"] .hiw-rail-fill{ height:87.5%; }

.hiw-step{ opacity:1; transition:opacity 0.3s ease; }
@media (min-width:1024px){ .hiw-step{ opacity:0.4; } .hiw-step.is-active{ opacity:1; } }
.hiw-num{ font-weight:700; font-size:0.85rem; color:var(--muted); transition:color 0.3s ease; }
.hiw-step.is-active .hiw-num{ color:var(--accent); }

.hiw-sticky{ position:sticky; top:6rem; }
.hiw-panel{ position:relative; aspect-ratio:4/3; }
.hiw-media .hiw-scene{ position:absolute; inset:0; opacity:0; visibility:hidden;
  transition:opacity 0.45s var(--ease), visibility 0s linear 0.45s; }
.hiw-media .hiw-scene.is-on{ opacity:1; visibility:visible;
  transition:opacity 0.45s var(--ease); }

/* ─── Scene chrome (base = final frame) ─── */
.sc-frame{ background:var(--wash); border:1px solid var(--line); border-radius:4px;
  height:100%; width:100%; padding:1.25rem; display:flex; flex-direction:column;
  justify-content:center; gap:0.75rem; overflow:hidden; }
.hiw-scene-inline .sc-frame{ aspect-ratio:16/10; height:auto; }

.sc-chat{ display:flex; align-items:center; gap:0.5rem; background:#fff;
  border:1px solid var(--line); border-radius:999px; padding:0.5rem 0.9rem;
  font-size:0.8rem; color:var(--ink); }
.kf-caret{ border-right:2px solid transparent; }
.sc-chat .kf-type{ min-height:1.2em; }

.kf-toast{ display:flex; align-items:center; gap:0.6rem; background:#fff;
  border:1px solid var(--line); border-radius:8px; padding:0.55rem 0.8rem;
  font-size:0.74rem; color:var(--body); box-shadow:0 6px 18px rgba(13,15,20,0.07); }
.kf-toast .sc-dot{ width:1.35rem; height:1.35rem; border-radius:999px; background:var(--success);
  color:#fff; display:flex; align-items:center; justify-content:center; flex:none; font-size:0.8rem; }

.sc-row{ display:flex; align-items:center; gap:0.6rem; background:#fff;
  border:1px solid var(--line); border-radius:6px; padding:0.45rem 0.7rem; font-size:0.72rem; color:var(--body); }
.sc-row .sc-tag{ margin-left:auto; font-size:0.62rem; font-weight:700; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--accent); background:var(--wash);
  border:1px solid var(--line); border-radius:3px; padding:0.1rem 0.4rem; }

.sc-doc{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:0.9rem 1rem; }
.sc-total{ font-weight:700; color:var(--accent); font-variant-numeric:tabular-nums; }

.sc-feed{ display:flex; flex-direction:column; gap:0.5rem; }
.sc-pulse{ width:0.55rem; height:0.55rem; border-radius:999px; background:var(--success); flex:none; }

.sc-node{ fill:#fff; stroke:#D6DBE8; }
.sc-hub{ fill:var(--accent); }
.kf-bar{ transform-box:fill-box; transform-origin:bottom; }
.kf-draw{ }

/* ─── Motion layer: pre-states + animations, opt-in only ─── */
@media (prefers-reduced-motion: no-preference){
  .scene .kf-pop, .scene .kf-bar, .scene .kf-row, .scene .kf-draw,
  .scene .kf-toast, .scene .kf-doc, .scene .kf-feed, .scene .kf-map-in, .scene .kf-map-out{
    animation-delay:var(--d, 0s);
  }

  /* pre-states: only while a scene is not (yet) on */
  .scene:not(.is-on) .kf-bar{ transform:scaleY(0); }
  .scene:not(.is-on) .kf-toast{ opacity:0; }
  .scene:not(.is-on) .kf-doc{ opacity:0; }
  .scene:not(.is-on) .kf-feed{ opacity:0; }
  .scene:not(.is-on) .kf-pop{ opacity:0; }
  .scene:not(.is-on) .kf-map-in{ opacity:0; }
  .scene:not(.is-on) .kf-draw{ stroke-dasharray:1; stroke-dashoffset:1; }

  /* cues off .is-on */
  .scene.is-on .kf-draw{ stroke-dasharray:1; stroke-dashoffset:1; animation:k-draw 0.7s var(--ease) both; }
  .scene.is-on .kf-pop{ animation:k-pop 0.45s var(--ease) both; }
  .scene.is-on .kf-row{ animation:k-row-flash 0.7s ease both; }
  .scene.is-on .kf-doc{ animation:k-doc-in 0.5s var(--ease) both; }
  .scene.is-on .kf-feed{ animation:k-feed-in 0.45s var(--ease) both; }
  .scene.is-on .kf-map-out{ animation:k-map-out 0.5s var(--ease) both; }
  .scene.is-on .kf-map-in{ animation:k-fade-up 0.5s var(--ease) both; }
  .scene.is-on .sc-pulse{ animation:k-pulse-dot 1.8s ease-in-out infinite; }
  .scene.is-on.typing .kf-caret{ border-right-color:var(--accent); animation:k-caret 0.8s steps(1) infinite; }

  /* bars + toast wait for typing where a .kf-type exists */
  .scene.is-on .kf-bar{ animation:k-bar-grow 0.6s var(--ease) both; }
  .scene.is-on:has(.kf-type):not(.typed) .kf-bar{ animation:none; transform:scaleY(0); }
  .scene.is-on:has(.kf-type):not(.typed) .kf-toast{ animation:none; opacity:0; }
  .scene.is-on.typed .kf-bar{ animation:k-bar-grow 0.6s var(--ease) both; }
  .scene.is-on.typed .kf-toast{ animation:k-toast-in 0.4s var(--ease) both; }
}

@keyframes k-bar-grow{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
@keyframes k-draw{ from{ stroke-dashoffset:1; } to{ stroke-dashoffset:0; } }
@keyframes k-toast-in{ from{ opacity:0; transform:translateY(8px) scale(0.96); } to{ opacity:1; transform:none; } }
@keyframes k-pop{ from{ opacity:0; transform:scale(0.9); } to{ opacity:1; transform:none; } }
@keyframes k-row-flash{ 0%{ background:#fff; } 35%{ background:#E8ECFB; } 100%{ background:#fff; } }
@keyframes k-doc-in{ from{ opacity:0; transform:translateX(10px); } to{ opacity:1; transform:none; } }
@keyframes k-feed-in{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
@keyframes k-fade-up{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
@keyframes k-map-out{ from{ opacity:1; } to{ opacity:0; } }
@keyframes k-caret{ 0%,100%{ border-right-color:var(--accent); } 50%{ border-right-color:transparent; } }
@keyframes k-pulse-dot{ 0%,100%{ box-shadow:0 0 0 0 rgba(31,138,91,0.4); } 50%{ box-shadow:0 0 0 6px rgba(31,138,91,0); } }

/* ════════════════════════════════════════════════════════════
   Reduced motion — kill every decorative animation. Kept last.
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
  html{ scroll-behavior:auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-stagger > *{
    opacity:1 !important; transform:none !important;
  }
}
