/* AMBARIX RDIAG CINEMATIC PLUS — progressive enhancement of the original page */
:root { --safe-top: 94px; }
html { scroll-padding-top: var(--safe-top); }
body { overflow-x: clip; }
main > section { scroll-margin-top: var(--safe-top); }
.accent { color: var(--coral); }
.skip-link { position: fixed; z-index: 300; top: 10px; left: 12px; padding: 12px 20px; background: var(--coral); color: #20121a; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: none; }
.nav-inner { gap: 16px; }
.nav-right { gap: 20px; }
.motion-toggle { min-width: 86px; min-height: 38px; padding: 8px 11px; color: #ded1d9; border: 1px solid var(--border); border-radius: 30px; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.motion-toggle:hover { border-color: var(--coral); }
.hero-art { perspective: 1000px; }
.hero-icon { width: 36%; }
.hero-caption { position: absolute; bottom: 4%; color: #c0a4b3; font-size: 10px; letter-spacing: .17em; }
.hero-signal { position: absolute; inset: 1%; transform: rotate(-35deg); border: 1px solid transparent; border-top-color: #ff997c52; border-radius: 50%; }
html[data-motion="on"] .hero-signal { animation: spin 24s linear infinite; }
.hero-art::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; right: 21%; bottom: 28%; background: #f5be72; box-shadow: 0 0 45px #f16d75; }
.statement { position: relative; }
.statement .word { color: inherit; transition: color .2s; }
html[data-motion="on"] .statement .word { color: #524e5a; }
html[data-motion="on"] .statement .word.is-lit { color: #f5f0ef; }
html[data-motion="on"] .statement .word.accent.is-lit { color: var(--coral); }
.statement-note { font-size: 14px; color: #a696a4; margin: 32px 0 0; letter-spacing: .025em; }
/* All content is readable by default, without JS or motion. */
.reveal, .reveal.visible { opacity: 1; transform: none; }
.story-stage { min-height: 0; }
.story-sticky { position: relative; height: auto; min-height: 0; padding: 96px 0; overflow: visible; }
.story-grid { align-items: start; }
.story-content { min-height: 0; }
.story-step { position: relative; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 30px; }
.story-step:last-child { margin-bottom: 0; }
.stage-screen { min-height: 0; }
.stage-visual { position: relative; inset: auto; opacity: 1; transform: none; padding: 30px 0; }
.sample-label { position: static; margin: 12px 0 0; text-align: center; line-height: 1.6; }
.stage-visual + .stage-visual { border-top: 1px solid var(--border); }
.story-controls { display: none; }
.story-controls button { color: #ae9ca9; background: none; border: 0; font: inherit; font-size: 11px; text-align: left; padding: 12px 0; cursor: pointer; }
.story-controls button::before { content: ""; display: block; height: 2px; background: #43303e; margin-bottom: 11px; }
.story-controls button[aria-pressed="true"] { color: var(--coral); }
.story-controls button[aria-pressed="true"]::before { background: var(--coral); box-shadow: 0 0 14px #f16d7560; }
.story-screen-progress { width: 100%; height: 2px; background: #3c2737; }
.story-screen-progress span { display: block; height: 100%; width: 100%; transform: scaleX(var(--story-progress,1)); transform-origin: left; background: linear-gradient(90deg,var(--red),var(--gold)); }
.stage-visual .terminal { overflow-wrap: anywhere; }
.feature { overflow: hidden; position: relative; }
.feature::after { content: ""; position: absolute; inset: auto 30px 0; height: 1px; background: linear-gradient(90deg,transparent,var(--coral),transparent); transform: scaleX(.2); opacity: .4; transition: .6s; }
.feature:hover::after { transform: scaleX(1); opacity: 1; }
.feature h3 { margin-top: 28px; }
/* Evidence stack */
.capture-deep { background: radial-gradient(ellipse at 76% 48%,#621d3424,transparent 53%),#0a101a; overflow: clip; }
.capture-deep .split { grid-template-columns: 1fr 1fr; gap: 6%; }
.capture-deep .section-title { font-size: clamp(38px,4.5vw,66px); }
.capture-deep .section-desc { font-size: 17px; }
.detail-list { list-style: none; margin: 30px 0 0; padding: 0; }
.detail-list li { display: grid; grid-template-columns: 25px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid var(--border); }
.detail-list li > span { color: var(--coral); font: 12px ui-monospace,monospace; padding-top: 3px; }
.detail-list h3 { font-size: 16px; margin: 0 0 7px; }
.detail-list p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.evidence-stack { margin: 0; position: relative; min-height: 570px; perspective: 1200px; }
.stack-orbit { position: absolute; width: 95%; aspect-ratio: 1; border: 1px solid #f16d7526; border-radius: 50%; top: 24px; left: 0; }
.stack-card { position: absolute; width: 77%; left: 8%; top: 76px; height: 290px; padding: 26px; border-radius: 24px; border: 1px solid #ffc5cc39; box-shadow: 0 20px 40px #0003; }
.stack-card > strong { display: block; font: 600 28px/1.17 'Space Grotesk',system-ui,sans-serif; letter-spacing: -.04em; margin-top: 22px; }
.stack-card p { color: #b5aeb6; font-size: 13px; line-height: 1.5; margin-top: 14px; }
.small-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--coral); }
.stack-back { background: #29202f; transform: translate(26px,-36px) rotate(7deg); }
.stack-middle { background: linear-gradient(135deg,#291c2b,#1d1524); transform: translate(-10px,66px) rotate(-4deg); }
.stack-front { background: linear-gradient(135deg,#342033,#171928); transform: translate(12px,157px) rotate(2deg); }
.packet-table { display: grid; grid-template-columns: 80px 1fr; gap: 10px; margin-top: 22px; font: 10px ui-monospace,monospace; color: #aaa0ad; }
.packet-table i { height: 7px; border-radius: 2px; background: linear-gradient(90deg,#ff997c88 35%,#ff997c1a 35%); width: 100%; }
.packet-table i:nth-last-child(3) { width: 85%; }
.checksum-ribbon { display: flex; gap: 6px; margin-top: 30px; }
.checksum-ribbon span { height: 7px; background: #f5be7260; border-radius: 3px; flex: 1; }
.checksum-ribbon span:nth-child(2n) { background: #f16d7555; }
.file-glyph { position: absolute; top: 65px; right: 22px; font: 14px ui-monospace,monospace; color: #ffb8b0; padding: 13px 9px; border: 1px solid #ff997c55; border-radius: 7px; transform: rotate(6deg); }
.stack-front > strong { font-size: 31px; margin-top: 63px; }
.artifact-bottom { display: flex; justify-content: space-between; font-size: 11px; color: #c2a9b7; margin-top: 23px; border-top: 1px solid var(--border); padding-top: 15px; }
.evidence-stack figcaption { position: absolute; bottom: 2px; left: 0; right: 0; color: #928693; font-size: 10px; text-align: center; line-height: 1.6; }
/* Control plane and evidence path */
.evidence .diagram { isolation: isolate; }
.evidence .diagram-step { position: relative; transition: border-color .5s, background .5s, box-shadow .5s; }
.evidence .diagram-step.is-lit { border-color: #ff997c77; background: #2a2130; box-shadow: 0 0 25px #a72b4922; }
.downline { height: 28px; position: relative; }
.downline::after { content:""; position: absolute; top: calc(var(--flow, .5) * 100%); left: -3px; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 13px var(--red); }
.governance { background: #100e18; }
.control-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8%; align-items: end; }
.control-head .section-title { font-size: clamp(40px,5vw,72px); }
.control-head > p { font-size: 17px; padding-bottom: 9px; }
.control-rail { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin-top: 52px; }
.control-line { position: absolute; top: 23px; left: 0; right: 0; height: 1px; background: #3b2938; }
.control-line > span { display: block; height: 100%; background: linear-gradient(90deg,var(--red),var(--gold)); transform-origin: left; transform: scaleX(var(--control-progress,1)); }
.control-number { position: relative; display: grid; place-items: center; width: 48px; height: 48px; background: #171221; color: var(--coral); border: 1px solid #6a3947; border-radius: 50%; font: 12px ui-monospace,monospace; transition: background .4s, box-shadow .4s; }
.control-stop.is-lit .control-number { background: #492238; box-shadow: 0 0 28px #bd456b35; }
.control-stop h3 { font-size: 17px; line-height: 1.3; margin: 24px 0 11px; }
.control-stop p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.control-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; }
.control-tile { border-top: 1px solid #6c344955; padding: 28px 25px; background: linear-gradient(140deg,#61243924,transparent); border-radius: 2px 2px 20px 20px; }
.control-tile h3 { font: 600 26px/1.25 'Space Grotesk',system-ui,sans-serif; letter-spacing: -.04em; margin: 25px 0 17px; }
.control-tile p { color: var(--muted); line-height: 1.7; font-size: 15px; margin: 0; }
.engineering-note { color: #a89aa6; line-height: 1.65; font-size: 12px; margin: 30px 0 0; }
/* Endpoint and use cases */
.deployment { background: #0c101a; }
.deployment .section-title { font-size: clamp(38px,4.7vw,69px); }
.deployment .section-desc { font-size: 17px; }
.platform-badge { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 30px; padding: 10px 19px; font-size: 13px; color: #c7bac4; margin-top: 17px; }
.platform-badge > span:first-child { color: var(--coral); font-size: 25px; }
.badge-separator { color: #6e5264; }
.deployment-panel { border: 1px solid var(--border); border-radius: 24px; padding: 32px; background: #151723; }
.spec-row { border-bottom: 1px solid var(--border); padding: 21px 0; }
.spec-row:last-child { border: 0; padding-bottom: 0; }
.spec-row strong { font-size: 14px; color: #ebdfe7; }
.spec-row p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 8px 0 0; }
.usecases { background: radial-gradient(ellipse at 100% 50%,#6a1e3222,transparent 60%),#100f19; }
.usecase-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 48px; }
.usecase { padding: 28px; background: linear-gradient(145deg,#241927,#12141f); border: 1px solid var(--border); border-radius: 24px; }
.usecase-top { display: flex; align-items: center; justify-content: space-between; color: #b59ba9; font-size: 12px; letter-spacing: .15em; }
.usecase-symbol { font-size: 32px; color: var(--coral); }
.usecase h3 { font: 600 25px/1.2 'Space Grotesk',system-ui,sans-serif; margin: 40px 0 16px; }
.usecase p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
/* Product detail accordion */
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; }
.faq-layout .section-title { font-size: clamp(40px,4.5vw,65px); }
.faq-layout .section-desc { font-size: 17px; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 24px 0; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
.faq-list summary span { color: var(--coral); font-size: 23px; transition: transform .3s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); font-size: 15px; line-height: 1.8; padding: 0 20px 24px 0; margin: 0; }
.faq-list a { color: var(--coral); text-decoration: underline; text-underline-offset: 4px; }
/* The single, scroll-controlled full-turn logo finale. No scroll hijacking. */
.brand-finale { position: relative; background: #110d19; }
.finale-sticky { position: relative; padding: 90px 0; overflow: clip; isolation: isolate; }
.finale-sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 75% 50%,#8a254853,transparent 58%),linear-gradient(135deg,#0a101a,#140c1b); }
.finale-grid { position: absolute; inset: 0; z-index: -1; background: linear-gradient(#ffbdbb05 1px,transparent 1px),linear-gradient(90deg,#ffbdbb05 1px,transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg,transparent,#000); }
.finale-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5%; align-items: center; }
.finale-copy h2 { font: 600 clamp(39px,4.6vw,70px)/1.09 'Space Grotesk',system-ui,sans-serif; letter-spacing: -.062em; margin: 24px 0; }
.finale-copy > p { max-width: 430px; color: #c3b3c0; font-size: 17px; line-height: 1.7; }
.finale-scroll { display: none; color: #b29cae; font-size: 11px; letter-spacing: .06em; align-items: center; gap: 14px; margin-top: 25px; }
.finale-scroll > span { font-size: 20px; color: var(--coral); }
.finale-skip { margin-top: 18px; font-size: 12px; border-color: #9a5d7455; }
.logo-theatre { position: relative; height: 490px; display: grid; place-items: center; }
.finale-halo { position: absolute; border: 1px solid #ff9a9c2c; border-radius: 50%; aspect-ratio: 1; width: 96%; max-width: 490px; box-shadow: 0 0 70px #a12e4e12; }
.halo-two { width: 74%; border-color: #ffbf8520; border-style: dashed; }
.logo-perspective { width: clamp(200px,23vw,300px); height: clamp(240px,28vw,360px); perspective: 1100px; position: relative; z-index: 2; }
.logo-flipper { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(0deg); }
.logo-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; border: 1px solid #ffa4a44a; border-radius: 36px; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: linear-gradient(145deg,#472434,#131a27); box-shadow: 0 32px 65px #05060c66; }
.logo-front { transform: translateZ(10px); }
.logo-front img { width: 70%; height: auto; border-radius: 24%; filter: drop-shadow(0 14px 20px #0004); }
.logo-front > span { color: #f3c4c1; font-size: 9px; letter-spacing: .19em; font-weight: 700; }
.logo-back { transform: rotateY(180deg) translateZ(10px); background: linear-gradient(145deg,#502636,#241623 70%); gap: 16px; }
.back-eyebrow { font-size: 8px; letter-spacing: .12em; color: #d5a8b8; }
.logo-back svg { width: 50px; height: 50px; stroke: var(--coral); stroke-width: 2; }
.logo-back strong { font: 600 clamp(27px,3.2vw,42px)/1.03 'Space Grotesk',system-ui,sans-serif; color: #fff0e6; letter-spacing: -.05em; text-align: center; }
.back-caption { color: #e2b9c7; font-size: 10px; }
.finale-shadow { position: absolute; bottom: 34px; width: 55%; height: 16px; background: #ee52792b; filter: blur(18px); border-radius: 50%; transform: scaleX(var(--shadow-scale,1)); }
.finale-phases { position: absolute; bottom: 0; display: flex; gap: 11px; align-items: center; color: #947f91; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.finale-phases i { display: block; width: 20px; height: 1px; background: #85425966; }
.finale-phases .is-lit { color: var(--coral); }
.closing { padding: 105px 0; }
.closing .eyebrow { line-height: 1.6; }
.motion-status { margin: 0; }
/* Always visible unless JS has successfully initialized. No broken fade-on-load. */
html[data-motion="on"] .reveal:not(.visible) { opacity: 0; transform: translateY(28px); }
html[data-motion="on"] .reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay,0ms); }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none!important; transition: none!important; }
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="on"] .offstage *, html[data-motion="on"] .offstage::before, html[data-motion="on"] .offstage::after { animation-play-state: paused!important; }
@media(min-width:1001px) and (min-height:660px) {
  html[data-motion="on"] .story-stage { height: 290svh; }
  html[data-motion="on"] .story-sticky { position: sticky; height: 100svh; min-height: 660px; top: 0; padding: 115px 0 50px; overflow: clip; }
  html[data-motion="on"] .story-grid { height: 100%; align-items: center; }
  html[data-motion="on"] .story-content { min-height: 370px; }
  html[data-motion="on"] .story-step { position: absolute; inset: 0 0 auto; margin: 0; opacity: 0; transform: translateY(25px); pointer-events: none; }
  html[data-motion="on"] .story-step.is-active { opacity: 1; transform: none; }
  html[data-motion="on"] .story-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; position: absolute; bottom: -8px; left: 0; right: 0; }
  html[data-motion="on"] .stage-screen { min-height: 490px; }
  html[data-motion="on"] .stage-visual { position: absolute; inset: 75px 24px 43px; padding: 0; opacity: 0; transform: scale(.95) translateY(10px); border: 0; }
  html[data-motion="on"] .stage-visual.is-active { opacity: 1; transform: none; }
  html[data-motion="on"] .sample-label { position: absolute; bottom: 14px; right: 18px; left: 18px; }
  html[data-motion="on"] .story-screen-progress { position: absolute; bottom: 0; left: 0; }
  html[data-motion="on"] .brand-finale { height: 250svh; }
  html[data-motion="on"] .finale-sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding: 100px 0 48px; }
  html[data-motion="on"] .finale-scroll { display: inline-flex; }
}
@media(max-width:1000px) {
  .nav-right { gap: 12px; }
  .nav-right > a[href="#capabilities"] { display: none; }
  .hero-art { margin-top: 20px; }
  .story-grid { gap: 40px; }
  .story-step h2 { font-size: 36px; }
  .story-step { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
  .story-step:last-of-type { border-bottom: 0; }
  .capture-deep .split { grid-template-columns: 1fr; gap: 20px; }
  .evidence-stack { width: min(550px,100%); margin: auto; }
  .control-head { grid-template-columns: 1fr; gap: 10px; }
  .control-details, .usecase-grid { grid-template-columns: 1fr; }
  .control-tile { padding: 25px; }
  .control-tile h3 br { display: none; }
  .control-rail { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .control-line { display: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .finale-layout { grid-template-columns: 1fr; text-align: center; }
  .finale-copy .eyebrow { justify-content: center; }
  .finale-copy p { margin-inline: auto; }
  .logo-theatre { width: min(490px,100%); margin-inline: auto; height: 460px; }
  .logo-perspective { width: 250px; height: 300px; }
  .finale-copy h2 { font-size: clamp(38px,7vw,66px); }
  .finale-copy > p { font-size: 16px; }
  .finale-sticky { padding: 80px 0 40px; }
  .logo-back strong { font-size: 36px; }
}
@media(max-width:650px) {
  :root { --safe-top: 84px; }
  .nav-inner { gap: 7px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo img { width: 28px; height: 28px; }
  .logo .from { display: none; }
  .nav-right { gap: 8px; font-size: 11px; }
  .motion-toggle { min-width: 0; padding: 8px; font-size: 10px; }
  .nav-right .pill { padding: 10px; gap: 5px; }
  .hero { min-height: auto; padding: 120px 0 100px; }
  .hero h1 { font-size: clamp(60px,15vw,92px); }
  .hero-art { max-width: 290px; margin-top: 25px; }
  .hero-hint { bottom: 23px; font-size: 9px; }
  .hero-caption { font-size: 8px; }
  .statement h2 { font-size: clamp(33px,9vw,50px); }
  .statement-note { font-size: 12px; }
  .story-sticky { padding: 72px 0; }
  .story-step h2 { font-size: 34px; }
  .stage-screen { padding: 16px; }
  .screen-top { gap: 8px; font-size: 9px; }
  .stage-visual { inset: auto; padding: 28px 0; }
  .endpoint-graphic { gap: 12px; }
  .graphic-node { width: 41%; }
  .mock-head, .mock-row { padding: 15px 12px; }
  .mock-row { font-size: 11px; }
  .terminal { font-size: 10px; padding: 17px 12px; }
  .feature, .platform { padding: 27px; }
  .section { padding: 78px 0; }
  .section-title { font-size: clamp(38px,9vw,55px); }
  .section-desc { font-size: 17px; }
  .detail-list { margin-top: 28px; }
  .capture-deep .section-title { font-size: 38px; }
  .evidence-stack { min-height: 500px; margin-top: 5px; }
  .stack-card { width: 82%; padding: 22px; left: 5%; height: 252px; top: 42px; }
  .stack-card > strong { font-size: 25px; }
  .stack-front > strong { font-size: 26px; margin-top: 62px; }
  .stack-card .small-label { font-size: 8px; }
  .stack-front .file-glyph { font-size: 11px; right: 19px; top: 53px; }
  .artifact-bottom { margin-top: 20px; font-size: 10px; }
  .evidence-stack figcaption { bottom: 4px; padding: 0 15px; }
  .control-rail { grid-template-columns: 1fr; margin-top: 28px; }
  .control-stop { padding-left: 65px; position: relative; min-height: 90px; }
  .control-number { position: absolute; left: 0; top: 0; }
  .control-stop h3 { margin-top: 0; }
  .diagram-step { flex-wrap: wrap; padding: 17px; }
  .diagram-step > span { font-size: 11px; }
  .diagram-footer { line-height: 1.6; }
  .deployment-panel { padding: 25px; }
  .usecase h3 { margin-top: 24px; }
  .faq-list summary { font-size: 15px; padding: 22px 0; }
  .logo-perspective { width: 220px; height: 275px; }
  .logo-theatre { height: 400px; }
  .finale-phases { bottom: 5px; }
  .finale-copy h2 { font-size: clamp(33px,9vw,48px); }
  .closing { padding: 90px 0; min-height: 0; }
  .closing p { font-size: 17px; }
  .closing h2 { font-size: clamp(43px,10vw,63px); }
  .closing .eyebrow { font-size: 9px; }
}
@media(max-height:659px) and (min-width:1001px) {
  .story-grid { grid-template-columns: .9fr 1.1fr; }
  .hero { min-height: 780px; }
  .story-step h2 { font-size: 35px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto!important; }
  *,*::before,*::after { animation: none!important; transition: none!important; }
  .reveal { opacity: 1!important; transform: none!important; }
  .story-stage,.brand-finale { height: auto!important; min-height: 0!important; }
  .story-sticky,.finale-sticky { position: relative!important; height: auto!important; }
  .story-content { min-height: 0!important; }
  .story-step { position: relative!important; opacity: 1!important; transform: none!important; }
  .stage-visual,.stage-visual:not(.is-active) { display: flex!important; position: relative!important; opacity: 1!important; transform: none!important; inset: auto!important; }
  .logo-flipper { transform: none!important; }
  .logo-theatre .finale-halo { transform: none!important; }
  .story-controls,.finale-scroll { display: none!important; }
  .stage-screen { min-height: 0!important; }
  .sample-label { position: static!important; }
}
.hero-icon,.closing img { height: auto; aspect-ratio: 1; object-fit: contain; }
.finale-skip { display: flex; width: max-content; max-width: 100%; }
.back-eyebrow { font-size: 9px; }
.back-caption { font-size: 12px; }
@media(max-width:1000px) { .finale-skip { margin-inline: auto; } }
@media(max-width:650px) { .nav-right > a[href="/products/"] { display: none; } }
@media(min-width:1001px) and (min-height:660px) {
  html[data-motion="on"] .story-content { min-height: 480px; }
  html[data-motion="on"] .story-step h2 { font-size: clamp(34px,3.5vw,54px); }
  html[data-motion="on"] .story-controls { bottom: 0; }
}


/* WOW update: remove motion toggle, add section-specific cinematic motion */
.motion-toggle { display:none !important; }
.nav-right { gap: 24px; }

@keyframes wowSheen {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  18%, 65% { opacity: .55; }
  100% { transform: translateX(180%) skewX(-18deg); opacity: 0; }
}
@keyframes wowPulse {
  0%,100% { box-shadow: 0 0 0 rgba(241,109,117,0), 0 0 0 rgba(255,153,124,0); }
  45% { box-shadow: 0 0 28px rgba(241,109,117,.16), 0 0 52px rgba(255,153,124,.12); }
}
@keyframes wowBob {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}
@keyframes wowScan {
  0% { transform: translateY(-8%); opacity: 0; }
  20% { opacity: .75; }
  100% { transform: translateY(108%); opacity: 0; }
}
@keyframes wowGlyph {
  0%,100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-6px); }
}
@keyframes wowRipple {
  0%,100% { transform: scale(1); opacity: .18; }
  50% { transform: scale(1.08); opacity: .38; }
}

/* story screen */
.stage-screen { position: relative; overflow: hidden; }
.stage-screen::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
html[data-motion="on"] .stage-screen[data-step="1"]::before,
html[data-motion="on"] .stage-screen[data-step="2"]::before {
  animation: wowSheen 2.8s ease-in-out infinite;
}
html[data-motion="on"] .stage-screen[data-step="0"] .graphic-node {
  animation: wowBob 4.8s ease-in-out infinite;
}
html[data-motion="on"] .stage-screen[data-step="0"] .graphic-node:last-child {
  animation-delay: -.9s;
}
html[data-motion="on"] .stage-screen[data-step="0"] .graphic-node {
  box-shadow: 0 0 0 rgba(241,109,117,0);
}
html[data-motion="on"] .stage-screen[data-step="0"] .graphic-node b { color: #fff0e6; }
html[data-motion="on"] .stage-screen[data-step="0"] .wire { filter: saturate(1.2); }
html[data-motion="on"] .stage-screen[data-step="0"] .wire::after { box-shadow: 0 0 20px var(--gold), 0 0 45px rgba(241,109,117,.45); }

.mock-window { position: relative; overflow: hidden; }
.mock-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 14%, rgba(255,153,124,.18), transparent 25%);
  pointer-events: none;
}
html[data-motion="on"] .stage-screen[data-step="1"] .mock-row {
  opacity: 0;
  transform: translateX(-12px);
  animation: rowIn .65s cubic-bezier(.2,.8,.2,1) forwards;
}
html[data-motion="on"] .stage-screen[data-step="1"] .mock-row:nth-of-type(1) { animation-delay: .08s; }
html[data-motion="on"] .stage-screen[data-step="1"] .mock-row:nth-of-type(2) { animation-delay: .16s; }
html[data-motion="on"] .stage-screen[data-step="1"] .mock-row:nth-of-type(3) { animation-delay: .24s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
html[data-motion="on"] .stage-screen[data-step="1"] .pulsebars i {
  transform-origin: bottom;
  animation: wowBars 1.25s ease-in-out infinite alternate;
}
@keyframes wowBars { from { transform: scaleY(.48); filter: brightness(.9); } to { transform: scaleY(1.08); filter: brightness(1.18); } }

html[data-motion="on"] .stage-screen[data-step="2"] .terminal div {
  opacity: 0;
  transform: translateY(7px);
  animation: lineIn .55s cubic-bezier(.2,.8,.2,1) forwards;
}
html[data-motion="on"] .stage-screen[data-step="2"] .terminal div:nth-child(1) { animation-delay: .04s; }
html[data-motion="on"] .stage-screen[data-step="2"] .terminal div:nth-child(2) { animation-delay: .12s; }
html[data-motion="on"] .stage-screen[data-step="2"] .terminal div:nth-child(3) { animation-delay: .20s; }
html[data-motion="on"] .stage-screen[data-step="2"] .terminal div:nth-child(4) { animation-delay: .28s; }
html[data-motion="on"] .stage-screen[data-step="2"] .terminal div:nth-child(5) { animation-delay: .36s; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
html[data-motion="on"] .stage-screen[data-step="2"] .terminal::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,153,124,.95), transparent);
  animation: wowScan 2.6s linear infinite;
}

/* deployment notes */
.deployment-panel { position: relative; overflow: hidden; }
.deployment-panel::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 22%;
  background: linear-gradient(180deg, rgba(255,153,124,.16), transparent);
  transform: translateY(-150%);
  pointer-events: none;
}
html[data-motion="on"] .deployment-panel.in-view::before { animation: wowScan 3.2s ease-in-out infinite; }
html[data-motion="on"] .deployment-panel .spec-row {
  opacity: .5;
  transform: translateX(0);
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease;
}
html[data-motion="on"] .deployment-panel .spec-row.is-lit {
  opacity: 1;
  transform: translateX(8px);
  border-color: rgba(255,153,124,.22);
}

/* platforms */
.platform { position: relative; transform-style: preserve-3d; overflow: hidden; }
.platform::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 16%, rgba(255,153,124,.12), transparent 28%);
  opacity: 0;
  transition: opacity .35s ease;
}
.platform .glyph { transition: transform .5s ease, text-shadow .5s ease; }
html[data-motion="on"] .platform.in-view {
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s ease, border-color .35s ease;
}
html[data-motion="on"] .platform.in-view:hover,
html[data-motion="on"] .platform.in-view.is-lit {
  transform: translateY(-8px) rotateX(3deg) rotateY(-2deg);
  box-shadow: 0 22px 40px rgba(0,0,0,.24), 0 0 40px rgba(241,109,117,.08);
  border-color: rgba(255,153,124,.3);
}
html[data-motion="on"] .platform.in-view:hover::after,
html[data-motion="on"] .platform.in-view.is-lit::after { opacity: 1; }
html[data-motion="on"] .platform.in-view:hover .glyph,
html[data-motion="on"] .platform.in-view.is-lit .glyph {
  transform: translateY(-3px) scale(1.12);
  text-shadow: 0 0 18px rgba(255,153,124,.28);
}

/* use cases */
.usecase { position: relative; overflow: hidden; }
.usecase::before {
  content: "";
  position: absolute;
  inset: auto -30% -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,153,124,.9), transparent);
  transform: scaleX(0);
  transform-origin: left;
}
.usecase::after {
  content: "";
  position: absolute;
  width: 54%;
  aspect-ratio: 1;
  right: -12%;
  top: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,109,117,.16), transparent 65%);
  opacity: 0;
  transform: scale(.6);
}
html[data-motion="on"] .usecase.in-view.is-lit {
  transform: translateY(-10px);
  border-color: rgba(255,153,124,.28);
  box-shadow: 0 26px 55px rgba(0,0,0,.22);
}
html[data-motion="on"] .usecase.in-view.is-lit::before {
  transform: scaleX(1);
  transition: transform .7s ease;
}
html[data-motion="on"] .usecase.in-view.is-lit::after {
  opacity: 1;
  transform: scale(1);
  transition: opacity .55s ease, transform .55s ease;
}

/* evidence cards extra energy */
html[data-motion="on"] .stack-orbit { animation: spin 30s linear infinite; }
html[data-motion="on"] .stack-card.is-lit { animation: wowPulse 2.6s ease-in-out infinite; }

/* finale stronger shimmer */
html[data-motion="on"] .logo-theatre::after {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border-radius: 40px;
  box-shadow: 0 0 100px rgba(241,109,117,.12);
  animation: wowRipple 3.6s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 650px) {
  .nav-right { gap: 10px; }
}
