/* ==========================================================================
   A · Ocean Light — scroll story stage
   Default (no .story-live) = every scene in normal flow, objects in their
   final readable pose. .story-live = one sticky stage, scenes stacked.
   ========================================================================== */

:root {
  --scene-ice: #eaf4fd;
  --scene-navy: #040a2a;
  --scene-blue: #0b5cff;
  --scene-paper: #f6f9fc;
  --scene-deep: #0a1133;
  --scene-cyan: #22c3f3;
  --paper: #ffffff;
  --paper-line: #d9e2ee;
  --note-yellow: #ffe68a;
  --note-cyan: #b8ecfb;
  --note-pink: #ffc9dc;
  --note-green: #c6f2d6;
  --note-violet: #dcd3ff;
  --note-orange: #ffd2b0;
}

/* ---------- Stage (static fallback first) ---------- */
.story { position: relative; }
.story-stage { position: relative; }
.stage-bg, .stage-shapes, .stage-progress, .story-dots, .scroll-cue { display: none; }
.scene { position: relative; padding: clamp(96px, 10vw, 140px) var(--gutter) clamp(56px, 6vw, 96px); overflow: hidden; isolation: isolate; }
.scene-hero { background: var(--scene-ice); }
.scene-belief { background: var(--scene-navy); color: #fff; }
.scene-docs { background: var(--scene-blue); color: #fff; }
.scene-pipe { background: #070d24; color: #fff; }
.scene-meet { background: var(--scene-paper); }
.scene-syn { background: var(--scene-deep); color: #fff; }
.scene-more { background: var(--scene-cyan); color: var(--navy-900); }

/* ---------- Live story mode ---------- */
.story-live .story { height: 1400svh; }
.story-live .story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.story-live .stage-bg { display: block; position: absolute; inset: 0; z-index: -2; background: var(--scene-ice); }
.story-live .stage-shapes { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.story-live .scene {
  position: absolute;
  inset: 0;
  padding: 0;
  background: none;
  visibility: hidden;
  opacity: 0;
}
.story-live .scene-hero { visibility: visible; opacity: 1; }
.story-live .story-dots, .story-live .scroll-cue { display: flex; }
.story-live .stage-progress { display: block; }
@media (max-width: 767px) { .story-live .story { height: 1120svh; } }

/* Idle drift (paused whenever the story is off-screen) */
.float { animation: drift 7s ease-in-out infinite alternate; will-change: transform; }
.f2 { animation-duration: 9s; animation-delay: -3s; }
.f3 { animation-duration: 11s; animation-delay: -6s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(6px, -14px, 0) rotate(2deg); }
  100% { transform: translate3d(-8px, 8px, 0) rotate(-1.5deg); }
}
.story:not(.is-active) .float { animation-play-state: paused; }

/* Progress bar */
.stage-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: transparent; }
.stage-progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan-400), var(--blue-500)); }

/* ---------- Shapes (positioned by the timeline in viewport units) ---------- */
.sh { position: absolute; left: 0; top: 0; }
.sh .obj, .sh .float { width: 100%; height: 100%; }
.sh svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 40px rgb(10 47 184 / 0.25)); }
.sh-r1 { width: clamp(110px, 15vw, 230px); aspect-ratio: 160 / 300; }
.sh-r2 { width: clamp(84px, 11vw, 170px); aspect-ratio: 160 / 300; }
.sh-r3 { width: clamp(72px, 9vw, 140px); aspect-ratio: 160 / 300; }
.sh-o1 { width: 90px; height: 90px; }
.sh-o2 { width: 54px; height: 54px; }
.sh-o3 { width: 40px; height: 40px; }
.sh-o4 { width: 44px; height: 44px; }
.sh-o5 { width: 30px; height: 30px; }
.shape-ring { display: block; border-radius: 999px; border: 3px solid var(--blue-500); opacity: 0.55; }
.shape-ring--sm { border-color: var(--cyan-400); border-width: 4px; }
.shape-square { display: block; border-radius: 12px; border: 3px solid var(--cyan-400); transform: rotate(20deg); opacity: 0.7; }
.shape-square--sm { border-color: var(--blue-500); }
.shape-plus { display: block; position: relative; opacity: 0.7; }
.shape-plus::before, .shape-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 4px; border-radius: 4px; background: var(--blue-500); transform: translate(-50%, -50%); }
.shape-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (max-width: 767px) { .sh-o2, .sh-o3, .sh-o5 { display: none; } }

/* ---------- Shared paper / card objects ---------- */
.paper {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9cqw;
  padding: 2.4cqw 2.2cqw;
  border-radius: 1cqw;
  background: var(--paper);
  color: var(--navy-900);
  box-shadow: 0 1px 0 rgb(10 17 51 / 0.04), 0 2cqw 4cqw -1.5cqw rgb(4 10 42 / 0.35);
}
.paper::after { content: ""; position: absolute; top: 0; right: 0; width: 3.2cqw; height: 3.2cqw; background: linear-gradient(225deg, var(--bg-tint) 50%, #dfe7f1 50%); border-radius: 0 1cqw 0 0.6cqw; }
.paper-kicker { font-size: max(10px, 1.5cqw); font-weight: 700; color: var(--blue-600); }
.ln { display: block; height: max(4px, 0.8cqw); border-radius: 99px; background: var(--paper-line); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.art { position: relative; container-type: inline-size; }

/* ---------- Scene 1 · Hero ---------- */
.scene-hero { display: grid; place-items: center; text-align: center; }
.hero-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 20px; max-width: 900px; margin-inline: auto; }
.eyebrow--center::before { display: none; }
.eyebrow--center { gap: 0; }
.hero-title { display: grid; justify-items: center; font-size: clamp(2.5rem, 1.2rem + 5.2vw, 5.5rem); line-height: 1.2; }
/* generous clip box so Thai upper marks (ี่ ิ) and lower vowels (ู ุ) are never cut by the reveal mask */
.hero-title .line { display: block; overflow: hidden; padding: 0.32em 0.14em 0.36em; margin: -0.32em -0.14em -0.36em; }
.hero-title .line .intro { display: inline-block; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); color: var(--text-2); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-objects { display: none; }
.story-live .hero-objects { display: block; position: absolute; inset: 0; pointer-events: none; }
.ho { position: absolute; }
.ho-paper { width: clamp(150px, 17vw, 250px); left: 7%; top: 30%; container-type: inline-size; }
.ho-paper .paper { aspect-ratio: 0.78; gap: 6cqw; padding: 13cqw 11cqw; border-radius: 5cqw; box-shadow: 0 30px 60px -24px rgb(10 30 110 / 0.35); }
.ho-paper .paper::after { width: 16cqw; height: 16cqw; border-radius: 0 5cqw 0 3cqw; }
.ho-paper .paper-kicker { font-size: 8cqw; }
.ho-paper .ln { height: 3.4cqw; }
.ocr-tag { justify-self: start; display: inline-flex; align-items: center; gap: 3cqw; padding: 2cqw 5cqw; border-radius: 99px; background: var(--ice-50); color: var(--blue-600); font-size: 7cqw; font-weight: 700; outline: 1.5px dashed var(--blue-500); outline-offset: 2px; }
.ocr-tag .icon { width: 9cqw; height: 9cqw; }
.ho-meet { width: clamp(170px, 18vw, 260px); right: 7%; top: 20%; }
.mini-card { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -24px rgb(10 30 110 / 0.35); text-align: left; }
.mini-head { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; }
.rec { width: 8px; height: 8px; border-radius: 99px; background: #e5484d; box-shadow: 0 0 0 4px rgb(229 72 77 / 0.18); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.35; } }
.mini-wave { display: flex; align-items: center; gap: 3px; height: 36px; }
.mini-wave i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(to top, var(--blue-500), var(--cyan-400)); animation: bar 1.1s ease-in-out infinite alternate; transform-origin: center; }
.mini-wave i:nth-child(3n) { animation-delay: -0.3s; } .mini-wave i:nth-child(3n+1) { animation-delay: -0.6s; } .mini-wave i:nth-child(4n) { animation-duration: 0.8s; }
@keyframes bar { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.mini-card .ln { height: 6px; }
.ho-notes { width: clamp(170px, 17vw, 240px); right: 11%; bottom: 12%; }
.note-stack { position: relative; height: 170px; }
.sticky { position: absolute; width: 78%; padding: 12px 14px; border-radius: 6px 6px 14px 6px; font-size: 0.875rem; font-weight: 600; line-height: 1.45; text-align: left; color: var(--navy-900); box-shadow: 0 16px 30px -14px rgb(10 17 51 / 0.35); }
.sticky span { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.75rem; color: #c02655; }
.sticky span .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.s-yellow { background: var(--note-yellow); left: 0; top: 0; transform: rotate(-6deg); z-index: 3; }
.s-cyan { background: var(--note-cyan); right: 0; top: 50px; transform: rotate(5deg); z-index: 2; }
.s-pink { background: var(--note-pink); left: 10%; top: 100px; transform: rotate(-2deg); }
@media (max-width: 767px) {
  .ho-paper { left: -6%; top: auto; bottom: 7%; width: 130px; }
  .ho-meet { right: -8%; top: 12%; width: 150px; }
  .ho-notes { right: -4%; bottom: 4%; width: 150px; }
  .mini-card { padding: 12px; }
  .note-stack { height: 140px; }
  .sticky { font-size: 0.75rem; padding: 8px 10px; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  place-items: center;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 2px solid var(--navy-900);
  color: var(--navy-900);
  z-index: 3;
}
.scroll-cue .icon { animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(5px); } }
@media (max-height: 700px) { .scroll-cue { display: none !important; } }

/* ---------- Scene 2 · Belief — ideas → arranged → system ---------- */
.scene-belief { display: grid; justify-items: center; gap: 40px; text-align: center; color: #fff; }
.belief-copy { position: relative; z-index: 5; display: grid; gap: 48px; padding-inline: var(--gutter); }
.b-group { display: grid; justify-items: center; gap: 8px; }
.b-small { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.3125rem); font-weight: 400; color: var(--cyan-200); letter-spacing: 0.01em; }
.b-big { font-family: var(--font-display); font-size: clamp(2.125rem, 1.1rem + 3.9vw, 4.5rem); font-weight: 700; line-height: 1.3; text-wrap: balance; }
.b-sub { max-width: 46ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem); font-weight: 300; line-height: 1.7; color: var(--on-dark-2); }
.hl { position: relative; display: inline-block; isolation: isolate; }
.hl i { position: absolute; left: -0.1em; right: -0.1em; bottom: 0.1em; height: 0.36em; z-index: -1; border-radius: 0.12em; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); transform-origin: left; }
.b-foot { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; color: var(--cyan-200); }
.b-foot .icon { animation: cue 1.6s ease-in-out infinite; }

.belief-glow, .belief-links, .belief-bits { display: none; }
.belief-app { position: relative; z-index: 3; width: min(720px, 100%); border-radius: 18px; background: #fff; color: var(--navy-900); box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.1); overflow: hidden; text-align: left; }
.ba-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.ba-bar i { width: 9px; height: 9px; border-radius: 99px; background: var(--line); }
.ba-bar span { margin-left: 8px; font-family: var(--font-display); font-weight: 700; }
.ba-bar em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; color: var(--success); }
.ba-bar em b { width: 8px; height: 8px; border-radius: 99px; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / 0.2); animation: rec 1.6s ease-in-out infinite; }
.ba-body { display: grid; grid-template-columns: 64px 1fr; min-height: 180px; }
.ba-side { display: grid; align-content: start; gap: 10px; padding: 14px 12px; border-right: 1px solid var(--line); background: var(--bg); }
.ba-side i { height: 8px; border-radius: 4px; background: var(--line); }
.ba-side i:first-child { width: 70%; background: var(--blue-500); }
.ba-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
@media (min-width: 640px) { .ba-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ba-tile { display: grid; gap: 4px; justify-items: start; padding: 14px; border-radius: 14px; background: var(--ice-50); border: 1px solid #d6e9f8; }
.ba-tile .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #fff; background: var(--grad-brand); }
.ba-tile b { margin-top: 6px; font-size: 0.9375rem; }
.ba-tile small { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--success); }
.ba-tile small::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: #22c55e; }

/* live stage layout */
.story-live .scene-belief { display: block; }
.story-live .belief-copy { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 3vh); display: grid; gap: 0; }
.story-live .b-group { grid-area: 1 / 1; }
.story-live .belief-glow { display: block; position: absolute; left: 50%; top: 66%; width: min(440px, 62vw); translate: -50% -50%; z-index: 1; }
.story-live .belief-glow img { width: 100%; height: auto; filter: drop-shadow(0 0 60px rgb(34 195 243 / 0.65)) drop-shadow(0 0 140px rgb(11 92 255 / 0.55)); }
.story-live .belief-links { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
.belief-links path { fill: none; stroke: var(--cyan-400); stroke-width: 0.16; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0.85; }
.story-live .belief-bits { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.story-live .belief-app { position: absolute; left: 50%; top: 67%; width: min(760px, 88vw); translate: -50% -50%; z-index: 4; }
.bf { position: absolute; left: 0; top: 0; width: clamp(128px, 13vw, 200px); }
.bf .obj, .bf .float { width: 100%; }
.bit { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; font-size: clamp(0.75rem, 0.62rem + 0.3vw, 0.9375rem); font-weight: 600; line-height: 1.45; text-align: left; color: var(--navy-900); box-shadow: 0 24px 40px -18px rgb(0 0 0 / 0.6); }
.bit-note { border-radius: 4px 4px 16px 4px; }
.c-note-y { background: var(--note-yellow); }
.c-note-p { background: var(--note-pink); }
.c-note-c { background: var(--note-cyan); }
.bit-chat { display: flex; align-items: flex-start; gap: 8px; background: #06c755; color: #fff; border-radius: 16px 16px 16px 4px; }
.bit-chat--light { background: #fff; color: var(--navy-900); }
.bit-av { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: rgb(0 0 0 / 0.18); font-size: 0.75rem; }
.bit-chat--light .bit-av { background: var(--blue-500); color: #fff; }
.bit-sheet { padding: 10px; background: #fff; }
.bit-sheet p { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bit-sheet p b { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 4px; background: #107c41; color: #fff; font-size: 0.6875rem; }
.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.cells i { height: 12px; border-radius: 2px; background: #e6f4ea; }
.cells i.red { background: #fde2e1; }
.bit-paper { background: #fff; }
.bit-paper svg { width: 100%; height: 22px; margin-bottom: 6px; }
.bit-paper path { fill: none; stroke: var(--blue-500); stroke-width: 3; stroke-linecap: round; }
.bit-bulb { display: grid; justify-items: center; gap: 4px; width: 70%; margin-inline: auto; padding: 14px 10px; border-radius: 999px 999px 18px 18px; background: #ffe68a; text-align: center; box-shadow: 0 0 40px rgb(255 230 138 / 0.55), 0 24px 40px -18px rgb(0 0 0 / 0.6); }
.bit-bulb .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.bit-bulb span { font-size: 0.75rem; }
@media (max-width: 767px) {
  .bf { width: 30vw; }
  .bf-desk, .story-live .belief-links { display: none !important; }
  .bit { padding: 8px 10px; border-radius: 10px; }
  .bit-av { width: 18px; height: 18px; font-size: 0.625rem; }
  .story-live .belief-app { top: 70%; }
  .story-live .b-big { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .story-live .b-sub { font-size: 0.9375rem; padding-inline: 8px; }
  .ba-body { grid-template-columns: 1fr; min-height: 0; }
  .ba-side { display: none; }
  .ba-tiles { gap: 8px; padding: 10px; }
  .ba-tile { padding: 10px; }
  .ba-tile .icon { width: 28px; height: 28px; padding: 6px; }
}
@media (max-height: 760px) and (min-width: 768px) {
  .story-live .belief-app { top: 70%; }
  .story-live .b-sub { display: none; }
}

/* ---------- Work scenes (shared layout) ---------- */
.scene-work { display: grid; gap: 40px; align-items: center; }
.story-live .scene-work { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding: calc(var(--nav-h) + 24px) calc(var(--gutter) + 40px) 40px calc(var(--gutter) + 24px); }
@media (min-width: 1024px) { .scene-work { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.scene-copy { position: relative; z-index: 3; display: grid; gap: 18px; align-content: center; max-width: 520px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; }
.kicker-num { padding: 4px 12px; border-radius: 99px; background: rgb(255 255 255 / 0.16); letter-spacing: 0; font-family: var(--font-body); }
.scene-title { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); font-weight: 700; line-height: 1.25; text-wrap: balance; }
.scene-lead { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem); line-height: 1.75; opacity: 0.92; max-width: 44ch; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; font-size: 0.9375rem; font-weight: 500; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.22); transition: background-color 240ms, color 240ms, border-color 240ms; }
.steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; font-family: var(--font-display); font-size: 0.75rem; background: rgb(255 255 255 / 0.2); }
.steps li.is-on { background: #fff; color: var(--navy-900); border-color: #fff; }
.steps li.is-on b { background: var(--blue-500); color: #fff; }
.art-docs, .art-pipe, .art-meet, .art-syn { width: 100%; max-width: 760px; justify-self: center; aspect-ratio: 760 / 620; }
@media (max-width: 767px) {
  .story-live .scene-work { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 8px; padding: calc(var(--nav-h) + 4px) 20px 20px; }
  .story-live .scene-copy { gap: 8px; }
  .story-live .scene-lead, .story-live .scene-work .steps, .story-live .facts-row { display: none; }
  .story-live .scene-title { font-size: clamp(1.625rem, 7vw, 2rem); }
  .story-live .art-docs, .story-live .art-pipe, .story-live .art-meet, .story-live .art-syn { align-self: center; max-height: 100%; width: min(100%, calc((100svh - 260px) * 760 / 620)); }
  .story-live .kicker { font-size: 0.75rem; }
}

/* ---------- Scene 3 · Documents ---------- */
.scene-docs .kicker-num { background: rgb(255 255 255 / 0.2); }
.art-docs { --paper-w: 30cqw; }
.art-docs > * { position: absolute; }
.d-offline { left: 0; top: 0; display: inline-flex; align-items: center; gap: 1cqw; padding: 1cqw 2cqw; border-radius: 99px; background: var(--navy-900); color: #fff; font-family: var(--font-display); font-size: max(11px, 1.7cqw); font-weight: 700; z-index: 9; }
.d-offline .icon { width: max(14px, 2.4cqw); height: max(14px, 2.4cqw); color: var(--cyan-200); }
.d-scanner { left: 14%; top: 73%; width: 72cqw; height: 13cqw; border-radius: 2.4cqw; background: linear-gradient(180deg, #16215a, #0a1133); box-shadow: 0 3cqw 5cqw -2cqw rgb(4 10 42 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.15); z-index: 1; }
.d-glass { position: absolute; left: 6%; right: 6%; top: 22%; height: 22%; border-radius: 1cqw; background: linear-gradient(90deg, rgb(34 195 243 / 0.1), rgb(34 195 243 / 0.55), rgb(34 195 243 / 0.1)); }
.d-led { position: absolute; right: 5%; bottom: 20%; width: 1.4cqw; height: 1.4cqw; border-radius: 99px; background: #4ade80; box-shadow: 0 0 2cqw #4ade80; }
.d-paper { width: var(--paper-w); aspect-ratio: 0.78; left: 22%; top: 9%; z-index: 5; }
.d-paper-2 { left: 18%; top: 11%; transform: rotate(-5deg); }
.d-paper-3 { left: 26%; top: 7%; transform: rotate(4deg); }
.d-field { display: block; justify-self: start; padding: 0.3cqw 0.6cqw; font-family: var(--font-display); font-size: max(9px, 1.7cqw); font-weight: 700; color: var(--navy-900); background: var(--ice-50); border-radius: 0.5cqw; }
.ocr { position: absolute; left: 1.6cqw; height: 3.2cqw; border: 2px solid var(--blue-500); border-radius: 0.8cqw; background: rgb(11 92 255 / 0.08); transform-origin: left center; }
.ocr-1 { top: 4.9cqw; width: 18cqw; }
.ocr-2 { top: 9.8cqw; width: 15cqw; }
.ocr-3 { top: 16.8cqw; width: 14cqw; }
.d-beam { position: absolute; left: -8%; right: -8%; top: 0; height: 0.8cqw; border-radius: 99px; background: linear-gradient(90deg, transparent, #7ee8ff 20%, #fff 50%, #7ee8ff 80%, transparent); box-shadow: 0 0 3cqw 1cqw rgb(34 195 243 / 0.8); opacity: 0; translate: 0 calc(var(--scan, 0) * 36cqw); }
.d-data { left: 57%; top: 12%; width: 40cqw; padding: 2.4cqw; border-radius: 2cqw; background: #fff; color: var(--navy-900); box-shadow: 0 3cqw 6cqw -2cqw rgb(4 10 42 / 0.5); z-index: 6; display: grid; gap: 1.2cqw; }
.d-data-head { display: flex; align-items: center; gap: 1cqw; font-size: max(11px, 1.8cqw); font-weight: 700; color: var(--blue-600); }
.d-data-head .icon { width: max(14px, 2.4cqw); height: max(14px, 2.4cqw); }
.d-row { display: flex; justify-content: space-between; gap: 2cqw; padding-top: 1.2cqw; border-top: 1px solid var(--paper-line); font-size: max(10px, 1.7cqw); }
.d-row span { color: var(--muted); }
.d-row b { font-family: var(--font-display); }
.d-row-type b { color: var(--blue-600); }
.d-folder-back, .d-folder-front { width: 24cqw; height: 16cqw; top: 70%; }
.f-1 { left: 3%; } .f-2 { left: 34.5%; } .f-3 { left: 66%; }
.d-folder-back { z-index: 4; border-radius: 1.4cqw 1.4cqw 1cqw 1cqw; background: #0a2fb8; }
.d-folder-back::before { content: ""; position: absolute; left: 0; top: -2.2cqw; width: 42%; height: 3cqw; border-radius: 1cqw 1cqw 0 0; background: #0a2fb8; }
.d-folder-front { z-index: 7; top: calc(70% + 4cqw); height: 12cqw; display: flex; align-items: flex-end; gap: 1cqw; padding: 1.6cqw 2cqw; border-radius: 1cqw; background: linear-gradient(180deg, #5fb8ff, #22c3f3); color: var(--navy-900); font-size: max(10px, 1.8cqw); font-weight: 700; box-shadow: 0 -1px 0 rgb(255 255 255 / 0.5) inset, 0 2cqw 3cqw -1.5cqw rgb(4 10 42 / 0.5); }
.d-folder-front .icon { width: max(14px, 2.4cqw); height: max(14px, 2.4cqw); }
.d-store { left: 30%; top: 26%; width: 40cqw; display: grid; justify-items: center; gap: 1.2cqw; padding: 3cqw; border-radius: 3cqw; background: #fff; color: var(--navy-900); text-align: center; box-shadow: 0 4cqw 8cqw -3cqw rgb(4 10 42 / 0.55); z-index: 8; }
.d-store-ic { position: relative; display: grid; place-items: center; width: 12cqw; height: 12cqw; border-radius: 99px; background: var(--ice-50); color: var(--blue-600); }
.d-store-ic .icon { width: 6cqw; height: 6cqw; }
.d-store-ic i { position: absolute; right: -0.6cqw; bottom: -0.6cqw; display: grid; place-items: center; width: 5cqw; height: 5cqw; border-radius: 99px; background: #16a34a; color: #fff; }
.d-store-ic i .icon { width: 3cqw; height: 3cqw; stroke-width: 3; }
.d-store b { font-size: max(13px, 2.6cqw); }
.d-store small { font-size: max(10px, 1.7cqw); color: var(--muted); }
/* static pose: sorted into folders is the final state; show the store card alone */
html:not(.story-live) .d-scanner, html:not(.story-live) .d-beam, html:not(.story-live) .d-store,
html:not(.story-live) .d-paper-2, html:not(.story-live) .d-paper-3 { display: none; }

/* ---------- Scene 4 · Processing pipeline ---------- */
.scene-pipe .kicker-num { background: rgb(143 216 247 / 0.14); color: var(--cyan-200); }
.art-pipe > * { position: absolute; }
.p-dash { left: 0; top: 0; width: 76cqw; padding: 2.4cqw; border-radius: 2.2cqw; background: #0d1330; border: 1px solid rgb(255 255 255 / 0.09); box-shadow: 0 4cqw 9cqw -3cqw rgb(0 0 0 / 0.7); display: grid; gap: 1.8cqw; color: #e8eefc; }
.p-head { display: flex; align-items: center; gap: 1.4cqw; }
.p-head b { display: block; font-family: var(--font-display); font-size: max(11px, 2.1cqw); }
.p-head small { display: block; font-size: max(9px, 1.5cqw); color: #8e9cc2; }
.p-ic { display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; border-radius: 1cqw; background: rgb(255 214 10 / 0.12); border: 1px solid rgb(255 214 10 / 0.3); color: #ffd60a; }
.p-ic .icon { width: 2.6cqw; height: 2.6cqw; }
.p-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.p-kpi { display: grid; gap: 0.3cqw; padding: 1.4cqw 1.6cqw; border-radius: 1.4cqw; background: #111a3f; border: 1px solid rgb(255 255 255 / 0.07); }
.p-kpi small { font-size: max(9px, 1.45cqw); color: #8e9cc2; }
.p-kpi b { font-family: "Plus Jakarta Sans", sans-serif; font-size: max(13px, 3.3cqw); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.p-kpi--ok b { color: #82e3b8; }
.p-stages { position: relative; display: grid; gap: 0.7cqw; }
.p-stages li { display: grid; grid-template-columns: 19cqw 1fr 3.2cqw; align-items: center; gap: 1.4cqw; padding: 0.7cqw 1cqw 0.7cqw 1.2cqw; border-radius: 1cqw; background: rgb(255 255 255 / 0.02); }
.p-name { font-family: var(--font-display); font-size: max(9px, 1.6cqw); color: #b9c8ea; white-space: nowrap; }
.p-bar { position: relative; height: 2.6cqw; border-radius: 0.8cqw; background: #151d44; overflow: hidden; }
.p-bar i { position: absolute; inset: 0; border-radius: 0.8cqw; background: linear-gradient(90deg, #2a5bd7, #22c3f3); transform-origin: left; transform: scaleX(0.35); }
.p-result .p-bar i { background: linear-gradient(90deg, #1f8f5f, #82e3b8); transform: scaleX(1); }
.p-state { position: relative; display: grid; place-items: center; height: 2.6cqw; }
.p-state > * { grid-area: 1 / 1; }
.spin { width: 2.2cqw; height: 2.2cqw; border-radius: 99px; border: 2px solid rgb(143 216 247 / 0.25); border-top-color: #8fd8f7; animation: spin 0.8s linear infinite; opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-state .ok { width: 2.4cqw; height: 2.4cqw; color: #82e3b8; stroke-width: 3; }
.p-token { position: absolute; left: -1.6cqw; top: 0; display: none; place-items: center; width: 4.4cqw; height: 4.4cqw; border-radius: 1cqw; background: #fff; color: var(--blue-600); box-shadow: 0 0 0 0.6cqw rgb(34 195 243 / 0.25), 0 1.4cqw 2.4cqw -1cqw rgb(0 0 0 / 0.6); z-index: 3; }
.story-live .p-token { display: grid; }
.p-token .icon { width: 2.6cqw; height: 2.6cqw; }
.p-json { left: 54%; top: 34%; width: 45cqw; border-radius: 2cqw; background: #050a1e; border: 1px solid rgb(143 216 247 / 0.25); box-shadow: 0 4cqw 8cqw -3cqw rgb(0 0 0 / 0.8); overflow: hidden; z-index: 4; }
.p-json-head { display: flex; justify-content: space-between; align-items: center; padding: 1cqw 1.8cqw; background: #0d1330; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: max(9px, 1.5cqw); color: #8e9cc2; }
.p-json-head em { font-style: normal; padding: 0.1cqw 1cqw; border-radius: 99px; background: rgb(34 195 243 / 0.15); color: #8fd8f7; }
.p-json pre { margin: 0; padding: 1.6cqw 1.8cqw 2cqw; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: max(9px, 1.65cqw); line-height: 1.75; color: #dbe6ff; white-space: pre; overflow: hidden; }
.p-json pre span { display: inline-block; }
.p-json i { font-style: normal; color: #8fd8f7; }
.p-json b { font-weight: 400; color: #ffe68a; }
.p-json u { text-decoration: none; color: #82e3b8; }
.p-chat { left: 14%; top: 49%; width: 58cqw; padding: 1.8cqw; border-radius: 2.2cqw; background: #16215a; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 5cqw 10cqw -3cqw rgb(0 0 0 / 0.8); display: grid; gap: 1.2cqw; color: #fff; z-index: 5; }
.p-chat-head { display: flex; align-items: center; gap: 0.7cqw; font-size: max(10px, 1.8cqw); font-weight: 700; }
.p-chat-head i { width: 1.3cqw; height: 1.3cqw; border-radius: 99px; background: #e5484d; }
.p-chat-head i:nth-child(2) { background: #f5b400; } .p-chat-head i:nth-child(3) { background: #22c55e; }
.p-chat-head span { margin-left: 1cqw; }
.p-chat-head em { margin-left: auto; display: inline-flex; align-items: center; gap: 0.6cqw; padding: 0.2cqw 1.2cqw; border-radius: 99px; border: 1px solid rgb(130 227 184 / 0.45); color: #82e3b8; font-style: normal; font-size: max(9px, 1.4cqw); }
.p-chat-head em .icon { width: 1.8cqw; height: 1.8cqw; }
.p-chat-sub { font-size: max(9px, 1.45cqw); color: #8e9cc2; padding-bottom: 1cqw; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.p-q { justify-self: end; max-width: 84%; padding: 1.2cqw 1.6cqw; border-radius: 1.6cqw 1.6cqw 0.4cqw 1.6cqw; background: var(--blue-500); font-size: max(10px, 1.7cqw); line-height: 1.5; }
.p-a { justify-self: start; display: grid; gap: 0.4cqw; max-width: 88%; padding: 1.2cqw 1.6cqw; border-radius: 1.6cqw 1.6cqw 1.6cqw 0.4cqw; background: #0d1330; border: 1px solid rgb(255 255 255 / 0.08); font-size: max(10px, 1.65cqw); line-height: 1.5; }
.p-a b { color: #8fd8f7; }
.p-a p:not(:first-child) { font-family: var(--font-display); font-size: max(9px, 1.5cqw); color: #dbe6ff; }
.p-file { justify-self: start; display: inline-flex; align-items: center; gap: 0.8cqw; padding: 0.9cqw 1.4cqw; border-radius: 1.2cqw; border: 1px solid rgb(255 255 255 / 0.14); font-size: max(9px, 1.5cqw); }
.p-file .icon { width: 2.2cqw; height: 2.2cqw; color: #82e3b8; }
html:not(.story-live) .p-chat { display: none; }
html:not(.story-live) .p-stages .ok { opacity: 1; }
@media (max-width: 767px) {
  .story-live .p-dash { width: 88cqw; }
  .story-live .p-json { left: 40%; top: 40%; width: 58cqw; }
  .story-live .p-chat { left: 6%; top: 42%; width: 88cqw; }
}

/* ---------- Scene 5 · Meetings ---------- */
.scene-meet { color: var(--navy-900); }
.scene-meet .kicker-num { background: var(--ice-50); color: var(--blue-600); }
.scene-meet .scene-lead { color: var(--text-2); }
.scene-meet .steps li { background: #fff; border-color: var(--line); }
.scene-meet .steps b { background: var(--ice-50); }
.scene-meet .steps li.is-on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.art-meet > * { position: absolute; }
.m-window { left: 0; top: 4%; width: 62cqw; padding: 2.4cqw; border-radius: 2.4cqw; background: #fff; box-shadow: 0 3cqw 7cqw -3cqw rgb(10 30 110 / 0.35); display: grid; gap: 2cqw; z-index: 2; }
.m-head { display: flex; align-items: center; gap: 1.2cqw; font-size: max(11px, 1.9cqw); font-weight: 700; }
.m-time { margin-left: auto; font-family: var(--font-display); color: var(--muted); font-weight: 600; }
.m-wave { --wave: 0; display: flex; align-items: center; gap: 0.6cqw; height: 9cqw; padding: 1.2cqw; border-radius: 1.6cqw; background: var(--ice-50); }
.m-wave i {
  flex: 1;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(to top, var(--blue-500), var(--cyan-400));
  transform: scaleY(calc(0.18 + 0.82 * (0.5 + 0.5 * sin(calc(var(--wave) * 1rad + var(--i) * 0.55rad))) * (0.55 + 0.45 * (0.5 + 0.5 * sin(calc(var(--i) * 1.7rad + var(--wave) * 0.4rad))))));
}
.m-lines { display: grid; gap: 1.4cqw; }
.m-line { display: flex; align-items: center; gap: 1.4cqw; font-size: max(11px, 1.9cqw); line-height: 1.5; }
.m-line > span:last-child { position: relative; }
.av { display: grid; place-items: center; flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 99px; font-size: max(10px, 1.7cqw); font-weight: 700; color: #fff; }
.av-a { background: #0b5cff; } .av-b { background: #0f8a8a; } .av-c { background: #8a4fff; }
.m-line mark { position: relative; display: inline-block; width: 0; height: 0; background: none; }
.m-line mark::after { content: ""; position: absolute; left: 0; top: -1.9cqw; width: 20cqw; height: 2.6cqw; border-radius: 0.4cqw; background: rgb(255 214 10 / 0.55); z-index: -1; transform-origin: left; transform: scaleX(var(--hl, 1)); }
.m-summary { right: 0; top: 16%; width: 46cqw; padding: 2.8cqw; border-radius: 2.4cqw; background: var(--navy-900); color: #fff; box-shadow: 0 4cqw 8cqw -3cqw rgb(4 10 42 / 0.6); display: grid; gap: 1.6cqw; z-index: 3; }
.m-sum-head { display: flex; align-items: center; gap: 1.2cqw; font-size: max(12px, 2.2cqw); font-weight: 700; }
.m-sum-head .icon { width: max(16px, 2.8cqw); height: max(16px, 2.8cqw); color: var(--cyan-200); }
.m-points { display: grid; gap: 1cqw; }
.m-points li { position: relative; padding-left: 2.6cqw; font-size: max(11px, 1.85cqw); line-height: 1.5; color: #dbe6ff; }
.m-points li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 1.2cqw; height: 1.2cqw; border-radius: 99px; background: var(--cyan-400); translate: 0 -50%; }
.m-sub { margin-top: 0.6cqw; font-size: max(10px, 1.6cqw); font-weight: 700; letter-spacing: 0.04em; color: var(--cyan-200); }
.m-todos { display: grid; gap: 1.2cqw; }
.m-todos li { display: flex; align-items: center; gap: 1.4cqw; font-size: max(11px, 1.85cqw); }
.m-todos em { margin-left: auto; font-style: normal; font-size: max(9px, 1.5cqw); padding: 0.2cqw 1.2cqw; border-radius: 99px; background: rgb(255 255 255 / 0.12); }
.cb { display: grid; place-items: center; flex: none; width: 3.4cqw; height: 3.4cqw; border-radius: 0.8cqw; border: 2px solid var(--cyan-200); }
.cb svg { width: 80%; height: 80%; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- Scene 6 · Synergy Connect ---------- */
.scene-syn .scene-title { font-size: clamp(1.75rem, 1rem + 2.3vw, 3rem); }
.nowrap { white-space: nowrap; }
.scene-syn .kicker-num { background: rgb(143 216 247 / 0.16); color: var(--cyan-200); }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.facts-row li { padding: 5px 12px; border-radius: 99px; border: 1px solid rgb(255 255 255 / 0.25); font-size: 0.875rem; }
.scene-syn .btn-light { justify-self: start; }
.art-syn > * { position: absolute; }
.s-projector { left: 6%; top: 0; width: 88cqw; aspect-ratio: 16 / 10.4; padding: 2.4cqw; border-radius: 2cqw; background: #f4f7fb; color: var(--navy-900); box-shadow: 0 0 0 1cqw #1a2456, 0 4cqw 10cqw -3cqw rgb(0 0 0 / 0.6); display: grid; grid-template-rows: auto 1fr; gap: 2cqw; }
.s-q { display: flex; align-items: center; gap: 1.4cqw; font-family: var(--font-display); font-size: max(12px, 2.6cqw); font-weight: 700; padding-right: 12cqw; }
.s-live { padding: 0.3cqw 1.2cqw; border-radius: 99px; background: #e5484d; color: #fff; font-size: max(9px, 1.5cqw); letter-spacing: 0.08em; }
.s-qr { position: absolute; right: 2.4cqw; top: 2cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5cqw; width: 8cqw; height: 8cqw; padding: 0.8cqw; border-radius: 1cqw; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.s-qr i { border-radius: 0.3cqw; background: var(--navy-900); }
.s-qr i:nth-child(2), .s-qr i:nth-child(6), .s-qr i:nth-child(7) { background: transparent; }
.s-board { position: relative; }
.s-note { position: absolute; width: 25cqw; padding: 1.6cqw 1.8cqw; border-radius: 0.8cqw 0.8cqw 2cqw 0.8cqw; font-size: max(10px, 1.85cqw); font-weight: 600; line-height: 1.45; color: var(--navy-900); box-shadow: 0 1.4cqw 2.4cqw -1.2cqw rgb(10 17 51 / 0.35); }
.c-yellow { background: var(--note-yellow); } .c-cyan { background: var(--note-cyan); } .c-pink { background: var(--note-pink); }
.c-green { background: var(--note-green); } .c-violet { background: var(--note-violet); } .c-orange { background: var(--note-orange); }
.n-1 { left: 2%; top: 4%; transform-origin: center; z-index: 2; }
.n-2 { left: 36%; top: 0; transform: rotate(3deg); }
.n-3 { left: 69%; top: 6%; transform: rotate(-3deg); }
.n-4 { left: 10%; top: 52%; transform: rotate(2deg); }
.n-5 { left: 44%; top: 48%; transform: rotate(-2deg); }
.n-6 { left: 72%; top: 54%; transform: rotate(4deg); }
.s-like { display: inline-flex; align-items: center; gap: 0.6cqw; margin-left: 1cqw; padding: 0.2cqw 1cqw; border-radius: 99px; background: #fff; color: #c02655; font-size: max(9px, 1.5cqw); vertical-align: middle; }
.s-like .icon, .s-heart .icon { width: max(10px, 1.8cqw); height: max(10px, 1.8cqw); fill: currentColor; stroke: none; }
.s-heart { left: 20%; top: 22%; color: #ff5c8a; z-index: 6; }
.s-heart .icon { width: 4cqw; height: 4cqw; filter: drop-shadow(0 0.6cqw 1cqw rgb(192 38 85 / 0.4)); }
.h-2 { left: 26%; top: 18%; } .h-3 { left: 15%; top: 16%; }
html:not(.story-live) .s-heart, html:not(.story-live) .s-flying { display: none; }
.s-phone { left: -2%; top: 52%; width: 25cqw; aspect-ratio: 0.52; padding: 3.6cqw 1.8cqw 2cqw; border-radius: 3.6cqw; background: #fff; color: var(--navy-900); box-shadow: 0 0 0 0.9cqw #1a2456, 0 4cqw 8cqw -2cqw rgb(0 0 0 / 0.6); display: grid; align-content: start; gap: 1.6cqw; z-index: 5; }
.s-notch { position: absolute; left: 50%; top: 1.2cqw; width: 8cqw; height: 1.4cqw; translate: -50% 0; border-radius: 99px; background: #1a2456; }
.s-phone-q { font-size: max(9px, 1.6cqw); font-weight: 700; line-height: 1.4; }
.s-input { min-height: 12cqw; padding: 1.4cqw; border-radius: 1.2cqw; border: 1.5px solid var(--blue-500); font-size: max(9px, 1.6cqw); line-height: 1.45; clip-path: inset(0 0 0 0); }
.s-send { display: flex; align-items: center; justify-content: center; gap: 0.8cqw; padding: 1.2cqw; border-radius: 99px; background: var(--blue-500); color: #fff; font-size: max(8px, 1.4cqw); font-weight: 700; }
.s-send .icon { width: max(10px, 1.8cqw); height: max(10px, 1.8cqw); }
.s-flying { left: 3%; top: 64%; width: 20cqw; padding: 1.4cqw 1.6cqw; border-radius: 0.8cqw; font-size: max(10px, 1.7cqw); font-weight: 600; color: var(--navy-900); box-shadow: 0 2cqw 3cqw -1cqw rgb(0 0 0 / 0.45); z-index: 7; opacity: 0; }
.s-host { right: -2%; top: 60%; width: 34cqw; padding: 2cqw; border-radius: 2cqw; background: #16215a; color: #fff; box-shadow: 0 4cqw 8cqw -2cqw rgb(0 0 0 / 0.55); display: grid; gap: 1.2cqw; z-index: 5; }
.s-host-head { font-family: var(--font-display); font-size: max(10px, 1.7cqw); font-weight: 700; color: var(--cyan-200); letter-spacing: 0.08em; }
.s-host-row { display: flex; align-items: center; justify-content: space-between; gap: 1.4cqw; font-size: max(9px, 1.6cqw); }
.s-host-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg { position: relative; flex: none; width: 5.4cqw; height: 3cqw; border-radius: 99px; background: #475285; transition: background-color 200ms; }
.tg::after { content: ""; position: absolute; top: 0.4cqw; left: 0.4cqw; width: 2.2cqw; height: 2.2cqw; border-radius: 99px; background: #fff; transform: translateX(calc(var(--on, 1) * 2.4cqw)); }
.tg.on { background: color-mix(in srgb, #22c3f3 calc(var(--on, 1) * 100%), #475285); }
html:not(.story-live) .n-6 { display: none; }
html:not(.story-live) .s-host-row:nth-child(3) .tg { --on: 0; }

/* ---------- Scene 7 · Possibilities ---------- */
.scene-more { display: grid; gap: 32px; color: var(--navy-900); }
.story-live .scene-more { grid-template-rows: auto 1fr; justify-items: center; align-content: start; padding: calc(var(--nav-h) + 20px) var(--gutter) 24px; }
.more-copy { display: grid; justify-items: center; gap: 16px; text-align: center; }
.scene-more .kicker-num { background: rgb(4 10 42 / 0.12); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: #16215a; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--ice-50); }
.more-cards { display: grid; gap: 16px; width: 100%; max-width: 1180px; margin-inline: auto; }
@media (min-width: 768px) { .more-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.story-live .more-cards { align-self: center; }
.idea-card { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -30px rgb(4 10 42 / 0.45); container-type: inline-size; }
.ic-head { display: flex; align-items: center; gap: 8px; font-weight: 700; line-height: 1.4; }
.ic-head .icon { color: var(--blue-600); }
.ic-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ic-cal i { position: relative; height: 34px; border-radius: 8px; background: var(--ice-50); border: 1px solid var(--line); }
.ic-cal i.busy { background: repeating-linear-gradient(45deg, #e6ecf3 0 6px, #f4f7fb 6px 12px); }
.ic-cal i.pick { display: grid; place-items: center; background: var(--blue-500); border-color: var(--blue-500); }
.ic-cal i.pick svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ic-flow { display: flex; align-items: center; gap: 6px; min-height: 76px; }
.ic-order, .ic-bill { flex: none; padding: 8px 10px; border-radius: 10px; font-size: 0.8125rem; font-weight: 600; }
.ic-order { background: var(--ice-50); }
.ic-bill { display: inline-flex; align-items: center; gap: 4px; background: #dcfce7; color: #116b4d; }
.ic-bill .icon { width: 14px; height: 14px; stroke-width: 3; }
.ic-arrow { flex: 1; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); transform-origin: left; position: relative; }
.ic-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--cyan-400); }
.ic-chat { display: grid; gap: 6px; font-size: 0.8125rem; }
.ic-chat .q { justify-self: end; padding: 6px 10px; border-radius: 12px 12px 4px 12px; background: var(--blue-500); color: #fff; }
.ic-chat .a { justify-self: start; display: grid; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--ice-50); font-weight: 600; }
.ic-chat .a small { font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.ic-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; }
.ic-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--blue-500), var(--cyan-400)); transform-origin: bottom; }
@media (max-width: 767px) {
  .story-live .more-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .story-live .idea-card { padding: 12px; gap: 8px; border-radius: 14px; }
  .story-live .ic-head { font-size: 0.8125rem; }
  .story-live .ic-flow { flex-direction: column; align-items: stretch; min-height: 0; }
  .story-live .ic-arrow { height: 14px; width: 2px; align-self: center; flex: none; }
  .story-live .ic-arrow::after { display: none; }
  .story-live .ic-cal i { height: 22px; }
  .story-live .ic-bars { height: 50px; }
  .story-live .more-copy .btn { min-height: 44px; }
}

/* ---------- Dots ---------- */
.story-dots { position: absolute; right: 18px; top: 50%; translate: 0 -50%; z-index: 20; flex-direction: column; gap: 2px; }
.story-dots a { position: relative; display: grid; place-items: center; width: 44px; height: 36px; }
.story-dots a::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; opacity: 0.35; transition: opacity 200ms, transform 200ms; }
.story-dots a[aria-current]::before { opacity: 1; transform: scale(1.5); }
.story-dots a:hover::before { opacity: 0.8; }
.story-dots span { position: absolute; right: 46px; top: 50%; translate: 0 -50%; padding: 4px 10px; border-radius: 6px; background: var(--navy-900); color: #fff; font-size: 0.8125rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms; }
.story-dots a:hover span, .story-dots a:focus-visible span { opacity: 1; }
.story-dots { color: var(--navy-900); transition: color 300ms; }
.story[data-scene="belief"] .story-dots, .story[data-scene="docs"] .story-dots, .story[data-scene="pipe"] .story-dots, .story[data-scene="syn"] .story-dots { color: #fff; }
@media (max-width: 767px) { .story-dots { display: none !important; } }

/* The nav floats over the stage in story mode: transparent while the story plays, ink follows the scene */
.story-live .nav { position: fixed; left: 0; right: 0; }
.story-live .nav.is-scrolled { background: rgb(246 249 252 / 0.86); }
.story-live body:has(.story.is-active) .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.story-live body:has(.story.is-active:is([data-scene="belief"], [data-scene="docs"], [data-scene="pipe"], [data-scene="syn"])) .nav :is(.nav-links a, .wordmark, .menu-toggle) { color: #fff; }
.story-live body:has(.story.is-active:is([data-scene="belief"], [data-scene="docs"], [data-scene="pipe"], [data-scene="syn"])) .nav .nav-links a:hover { background: rgb(255 255 255 / 0.14); }
.story-live body:has(.story.is-active:is([data-scene="belief"], [data-scene="docs"], [data-scene="pipe"], [data-scene="syn"])) .nav .menu-toggle { background: transparent; border-color: rgb(255 255 255 / 0.55); }
.story-live body:has(.story.is-active:is([data-scene="belief"], [data-scene="docs"], [data-scene="pipe"], [data-scene="syn"])) .nav .wordmark .v { background-image: linear-gradient(180deg, #8fd8f7, #22c3f3); }
.story-live body:has(.story.is-active[data-scene="docs"]) .nav .nav-cta { background: #fff; color: var(--navy-900); box-shadow: none; }
.story-live body:has(.story.is-active) .nav .nav-links a[aria-current="true"] { background: transparent; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.story-live .preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--scene-ice);
  animation: preloader-failsafe 0.01s 3.5s forwards;
}
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
.preloader-inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.preloader-stroke { position: absolute; left: 50%; top: -10px; width: 150px; translate: -50% 0; overflow: visible; }
.preloader-stroke path { fill: none; stroke: var(--blue-500); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.preloader img { width: 108px; height: auto; opacity: 0; filter: drop-shadow(0 20px 40px rgb(11 92 255 / 0.35)); }
.preloader-word { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--navy-900); opacity: 0; }
.preloader-word span { color: var(--blue-500); }

/* ---------- Normal sections below the story ---------- */
.work-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .work-list { grid-template-columns: 1fr 1fr; } }
.work-item { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.work-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: var(--grad-brand); }
.work-kind { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--blue-600); }
.work-item h3 { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.4; }
.work-item > p:not(.work-kind) { color: var(--text-2); font-size: var(--fs-sm); }
.work-steps { display: flex; flex-wrap: wrap; gap: 6px; counter-reset: ws; }
.work-steps li { counter-increment: ws; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; background: var(--surface-2); font-size: 0.8125rem; }
.work-steps li::before { content: counter(ws); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: #fff; font-size: 0.6875rem; font-weight: 700; color: var(--blue-600); }
.work-item--feature { background: var(--navy-950); color: #fff; border-color: transparent; }
.work-item--feature > p:not(.work-kind) { color: var(--on-dark-2); }
.work-item--feature .work-kind { color: var(--cyan-200); }
.work-facts { display: grid; gap: 6px; font-size: var(--fs-sm); }
.work-facts li { display: flex; gap: 8px; align-items: baseline; }
.work-facts li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 99px; background: var(--cyan-400); translate: 0 -2px; }
.work-item--feature .btn { justify-self: start; margin-top: 6px; }

.contact-ribbons { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cr { position: absolute; width: 180px; opacity: 0.9; }
.cr-1 { right: -40px; bottom: -80px; animation: drift 9s ease-in-out infinite alternate; }
.cr-2 { right: 120px; bottom: -160px; width: 130px; animation: drift 11s ease-in-out infinite alternate-reverse; opacity: 0.6; }
@media (max-width: 767px) { .cr { display: none; } }

/* Hover micro-interactions (sections below) */
.plan { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num { transition: transform 320ms var(--ease); }
.step:hover .step-num { transform: rotate(-8deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .float, .rec, .mini-wave i, .scroll-cue .icon, .b-foot .icon, .cr, .ba-bar em b, .spin { animation: none !important; }
}
