/* FlutTrack — couche « cinématographique » : hero, avant/après, scènes, lecture OCR.
   Principes : transform / opacity / mask uniquement, aucun filtre animé, tout état final lisible sans JavaScript. */

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.scn, .ocr, .ba--cine, .hero--cine { position: relative; }
.scn__title, .ba__big, .hero__title { font-feature-settings: "ss01"; }

/* ---------- Hero ---------- */
.hero--cine { overflow: hidden; display: grid; align-items: center; min-height: min(calc(100svh - var(--header-h)), 58rem); padding-block: clamp(2.5rem, 6vw, 5rem); background: radial-gradient(110% 90% at 78% 42%, #1c242b 0%, var(--graphite-950) 62%); isolation: isolate; }
.hero--cine::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55; background-image: linear-gradient(rgba(47, 111, 179, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 111, 179, 0.1) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent); mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero__copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero__title { font-size: clamp(2.4rem, 4.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; max-width: 11em; text-wrap: balance; }
[lang="ar"] .hero__title { line-height: 1.25; letter-spacing: 0; }
.hero__sub { font-size: clamp(1.0625rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--graphite-300); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--graphite-400); font-size: 0.875rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__trust .icon { width: 1rem; height: 1rem; color: var(--orange); }
.hero__copy > * { animation: heroIn 0.9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.hero__copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }

.hero__stage { position: relative; width: calc(100% + 4vw); margin-inline-end: -4vw; aspect-ratio: 960 / 600; --lx: 58%; --ly: 46%; --lr: 21rem; touch-action: pan-y; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene--dim { opacity: 0.34; }
.scene--lit { -webkit-mask-image: radial-gradient(circle at var(--lx) var(--ly), #000 0, rgba(0, 0, 0, 0.9) calc(var(--lr) * 0.3), rgba(0, 0, 0, 0.35) calc(var(--lr) * 0.7), transparent var(--lr)); mask-image: radial-gradient(circle at var(--lx) var(--ly), #000 0, rgba(0, 0, 0, 0.9) calc(var(--lr) * 0.3), rgba(0, 0, 0, 0.35) calc(var(--lr) * 0.7), transparent var(--lr)); }
@supports not ((mask-image: none) or (-webkit-mask-image: none)) { .scene--lit { opacity: 0.55; } }
.lamp { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 233, 205, 0.13), rgba(236, 122, 44, 0.05) calc(var(--lr) * 0.45), transparent var(--lr)); }
.lbl { font: 500 13px var(--font-mono); fill: #e9ecef; paint-order: stroke; stroke: #14191d; stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: 0.02em; }
.lbl--zone { fill: #7db1e6; }
.lbl--soft { fill: #959da4; }
.lbl--route, .lbl--gap { fill: #ec7a2c; }
.route { animation: routeFlow 7s linear infinite; }
.gap__ring { transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -56; } }
@keyframes ping { from { transform: scale(0.5); opacity: 0.95; } to { transform: scale(2.4); opacity: 0; } }
.hero__hint, .hero__demo { position: absolute; inset-inline: 0; margin: 0; font-size: 0.75rem; color: var(--graphite-400); text-align: center; pointer-events: none; }
.hero__hint { bottom: 0.2rem; }
.hero__demo { top: 0; color: var(--graphite-500); }
.hint--touch { display: none; }
@media (pointer: coarse) { .hint--pointer { display: none; } .hint--touch { display: inline; } }

/* ---------- Avant / Après ---------- */
.ba--cine { padding: 0; background: var(--graphite-950); }
.ba__pin { padding-block: clamp(3.5rem, 8vw, 6rem); }
.ba--cine.is-scrub { height: 240vh; }
.ba--cine.is-scrub .ba__pin { position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; padding-block: 1.25rem; }
.ba--cine .container { display: grid; gap: clamp(0.9rem, 2vw, 1.5rem); }
.ba__big { display: grid; }
.ba__big > span { grid-area: 1 / 1; font-size: clamp(1.9rem, 4.7vw, 4.1rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; max-width: 18ch; text-wrap: balance; }
[lang="ar"] .ba__big > span { line-height: 1.3; letter-spacing: 0; }
.ba__big-b { opacity: clamp(0, calc(1 - var(--p) * 2.2), 1); transform: translateY(calc(var(--p) * -14px)); color: var(--graphite-200); }
.ba__big-a { opacity: clamp(0, calc((var(--p) - 0.5) * 2.4), 1); transform: translateY(calc((1 - var(--p)) * 14px)); }
.no-js .ba--cine { --p: 1; }
.ba__stage { position: relative; aspect-ratio: 16 / 7.4; border: 1px solid var(--graphite-700); border-radius: 0.6rem; overflow: hidden; background: #12171b; background-image: linear-gradient(rgba(47, 111, 179, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 111, 179, 0.1) 1px, transparent 1px); background-size: 48px 48px; direction: ltr; }
.ba__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: clamp(0, calc((var(--p) - 0.55) * 2.2), 0.9); background: radial-gradient(60% 55% at 50% 52%, rgba(236, 122, 44, 0.12), transparent 70%); }
.pc { position: absolute; z-index: calc(var(--zi, 1)); left: calc(var(--bl) + (var(--al) - var(--bl)) * var(--p)); top: calc(var(--bt) + (var(--at) - var(--bt)) * var(--p)); width: calc(var(--bw) + (var(--aw) - var(--bw)) * var(--p)); transform: rotate(calc(var(--br) * (1 - var(--p)) * 1deg)); }
.pc__art { position: relative; border-radius: 0.35rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.pc__n { position: absolute; top: -1.35rem; inset-inline-start: 0; font-size: 0.7rem; color: var(--orange); opacity: clamp(0, calc((var(--p) - 0.6) * 3), 1); }
.pc__l { position: absolute; top: calc(100% + 0.5rem); inset-inline: -0.25rem; font-size: 0.8125rem; line-height: 1.25; font-weight: 500; text-align: start; }
.pc__l--b { color: var(--graphite-400); opacity: clamp(0, calc(1 - var(--p) * 2.4), 1); }
.pc__l--a { color: var(--survey); opacity: clamp(0, calc((var(--p) - 0.55) * 2.5), 1); }
.pc--qty .pc__l--a { color: var(--orange); }
.pc--bon .pc__art { aspect-ratio: 3 / 4; background: #f3f5f7; padding: 12% 12% 0; display: grid; align-content: start; gap: 7%; clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%); }
.pc--bon .pc__art i { display: block; height: 5%; border-radius: 2px; background: #bcc2c7; }
.pc--bon .pc__art i:nth-child(2) { width: 82%; } .pc--bon .pc__art i:nth-child(3) { width: 64%; } .pc--bon .pc__art i:nth-child(4) { width: 90%; }
.pc--bon .pc__hd { height: 9% !important; width: 48%; background: #535c64 !important; }
.pc--bon .pc__s { width: 30% !important; margin-top: 8%; background: #ec7a2c !important; opacity: 0.7; }
.pc--xls .pc__art { aspect-ratio: 4 / 3; background-color: #e9ecef; background-image: linear-gradient(#6e777f 1px, transparent 1px), linear-gradient(90deg, #6e777f 1px, transparent 1px), linear-gradient(#2f6fb3 0 14%, transparent 14%); background-size: 100% 20%, 25% 100%, 100% 100%; opacity: 0.95; }
.pc--photo .pc__art { aspect-ratio: 1; overflow: hidden; background: linear-gradient(#3b434a, #2b3238 60%, #1d2329); border: 4px solid #f3f5f7; border-bottom-width: 14px; }
.pc--photo .pc__sun { position: absolute; top: 16%; inset-inline-end: 18%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #f2c04a; }
.pc--photo .pc__hill { position: absolute; inset-inline: -10%; bottom: -18%; height: 62%; border-radius: 50% 50% 0 0; background: #535c64; }
.pc--qty .pc__art { aspect-ratio: 1; background: #f2c04a; color: #1d2329; display: grid; place-content: center; text-align: center; font: 600 clamp(1rem, 2.4vw, 1.9rem) var(--font-mono); line-height: 1.15; border-radius: 0.2rem; }
.pc--qty .pc__art b { display: block; font-weight: 600; }
.pc--qty .pc__art b:nth-child(2) { transform: rotate(-8deg); }
.pc--msg .pc__art { aspect-ratio: 5 / 4; display: grid; align-content: center; gap: 8%; padding: 8%; background: #1d2329; border: 1px solid #3b434a; }
.pc--msg .pc__art i { display: block; height: 22%; width: 74%; border-radius: 0.6rem 0.6rem 0.6rem 0.1rem; background: #3b6f5c; }
.pc--msg .pc__art i:nth-child(2) { justify-self: end; background: #3b434a; border-radius: 0.6rem 0.6rem 0.1rem 0.6rem; width: 58%; }
.pc--msg .pc__art i:nth-child(3) { width: 66%; }
.ba__ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; font-size: 0.75rem; color: var(--graphite-300); }
.ba__ctl input, .arch__ctl input { width: 100%; accent-color: var(--orange); height: 2.5rem; cursor: ew-resize; }
.ba__note { font-size: 0.8125rem; color: var(--graphite-400); }

/* ---------- Scènes ---------- */
.scn { padding-block: clamp(4rem, 9vw, 7rem); }
.scn--1 { background: var(--survey); }
.scn--3 { background: var(--graphite-900); color: var(--survey); }
.scn__grid, .ocr__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.scn__grid--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.scn__grid--rev .scn__copy { order: 2; }
.scn__copy { display: grid; gap: 1.1rem; justify-items: start; }
.scn__title { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance; }
[lang="ar"] .scn__title { line-height: 1.3; letter-spacing: 0; }
.scn--3 .lead, .scn--2 .lead { color: var(--graphite-300); }
.scn__stage { display: grid; justify-items: center; }
.replay { margin-top: 0.4rem; }

/* téléphone Android */
.phone { position: relative; width: min(19rem, 100%); aspect-ratio: 9 / 18; border-radius: 2.4rem; border: 0.55rem solid #0b0e10; background: #12171b; color: var(--survey); box-shadow: 0 40px 80px -30px rgba(20, 25, 29, 0.55), 0 0 0 1px #3b434a; padding: 1.3rem 1rem 1rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.7rem; overflow: hidden; direction: ltr; }
[dir="rtl"] .phone { direction: rtl; }
.phone::before { content: ""; position: absolute; top: 0.5rem; left: 50%; width: 0.9rem; aspect-ratio: 1; border-radius: 50%; background: #0b0e10; transform: translateX(-50%); }
.phone__bar { display: flex; justify-content: space-between; margin-top: 0.7rem; font-size: 0.6875rem; color: var(--graphite-400); }
.phone__prog { height: 3px; border-radius: 2px; background: #2b3238; overflow: hidden; }
.phone__prog i { display: block; height: 100%; background: var(--orange); transform-origin: left; }
[dir="rtl"] .phone__prog i { transform-origin: right; }
.steps { display: grid; align-content: center; gap: 0.55rem; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.8rem 0.8rem; border-radius: 0.7rem; background: rgba(255, 255, 255, 0.05); font-size: 0.875rem; line-height: 1.3; }
.steps__ic { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #14191d; }
.steps__ic .icon { width: 1rem; height: 1rem; stroke-width: 2.4; stroke-dasharray: 24; }
.steps__ph { display: flex; gap: 0.2rem; }
.steps__ph i { width: 1.7rem; aspect-ratio: 1; border-radius: 0.25rem; background: linear-gradient(#535c64, #2b3238); }
.steps__ph i + i { background: linear-gradient(#6e777f, #3b434a); }
.phone__demo, .win__demo { font-size: 0.625rem; color: var(--graphite-500); text-align: center; }
.phone.is-armed .steps li { opacity: 0.25; transform: translateY(8px); }
.phone.is-armed .steps__ic { background: transparent; border: 2px solid var(--graphite-600); color: transparent; }
.phone.is-play .steps li { animation: stepIn 0.55s var(--ease) both; animation-delay: calc(var(--i) * 1.15s + 0.35s); }
.phone.is-play .steps__ic { animation: stepIc 0.4s var(--ease) both; animation-delay: calc(var(--i) * 1.15s + 0.6s); }
.phone.is-play .steps__ic .icon { animation: stepCk 0.45s ease-out both; animation-delay: calc(var(--i) * 1.15s + 0.7s); }
.phone.is-play .phone__prog i { animation: bar 4.9s linear 0.3s both; transform: scaleX(0); }
@keyframes stepIn { from { opacity: 0.25; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stepIc { from { background: transparent; border: 2px solid var(--graphite-600); } to { background: var(--orange); border: 2px solid var(--orange); } }
@keyframes stepCk { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes bar { to { transform: scaleX(1); } }

/* espace web */
.win { width: min(40rem, 100%); border: 1px solid var(--graphite-600); border-radius: 0.7rem; background: var(--graphite-900); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); overflow: hidden; text-align: start; }
.win__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem; background: #12171b; border-bottom: 1px solid var(--graphite-700); }
.win__bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--graphite-600); }
.win__bar span { margin-inline-start: 0.6rem; font-size: 0.75rem; color: var(--graphite-400); }
.win__body { display: grid; gap: 1.1rem; padding: clamp(1rem, 2.4vw, 1.6rem); }
.win__mat { font-weight: 600; font-size: 1.0625rem; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.tile { position: relative; display: grid; align-content: space-between; gap: 0.4rem; min-height: 5.6rem; padding: 0.75rem; border-radius: 0.5rem; background: #12171b; border: 1px solid var(--graphite-700); }
.tile dt { font-size: 0.7188rem; line-height: 1.25; color: var(--graphite-400); }
.tile dd { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; line-height: 1; }
.tile--gap { border-color: var(--orange); background: rgba(236, 122, 44, 0.1); }
.tile--gap dd { color: var(--orange); }
.tile__flag { position: absolute; top: -0.65rem; inset-inline-end: 0.5rem; padding: 0.15rem 0.55rem; border-radius: 99px; background: var(--orange); color: #14191d; font-size: 0.6563rem; font-weight: 600; }
.win__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; }
.hist, .val { padding: 0.9rem; border-radius: 0.5rem; background: #12171b; border: 1px solid var(--graphite-700); }
.hist h3, .val h3 { font-size: 0.75rem; font-weight: 500; color: var(--graphite-400); margin-bottom: 0.6rem; }
.hist ul { display: grid; gap: 0.5rem; }
.hist li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; font-size: 0.8125rem; }
.hist li .mono { color: var(--orange); }
.val__v { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--survey); }
.val__why { font-size: 0.75rem; line-height: 1.45; color: var(--graphite-400); }

/* plan <-> chantier */
.caps { display: grid; gap: 1rem; margin-top: 0.6rem; }
.caps li { padding-inline-start: 1rem; border-inline-start: 2px solid var(--orange); }
.caps h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.caps p { font-size: 0.9063rem; line-height: 1.5; color: var(--graphite-300); }
.caps--light p { color: var(--graphite-600); }
.arch { width: min(40rem, 100%); display: grid; gap: 0.8rem; }
.arch__chips, .vis { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.chip { padding: 0.28rem 0.7rem; border-radius: 99px; border: 1px solid var(--graphite-500); font-size: 0.75rem; color: var(--graphite-200); }
.vis__l { margin-inline-end: 0.3rem; font-size: 0.6875rem; color: var(--graphite-400); }
.arch__view { position: relative; aspect-ratio: 960 / 560; overflow: hidden; border-radius: 0.6rem; border: 1px solid var(--graphite-600); background: #10161a; direction: ltr; }
.arch__layer { position: absolute; inset: 0; }
.arch__layer svg { width: 100%; height: 100%; }
.arch__layer--plan { background-image: linear-gradient(rgba(47, 111, 179, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 111, 179, 0.14) 1px, transparent 1px); background-size: 32px 32px; }
.arch__layer--site { clip-path: inset(0 0 0 calc((1 - var(--p)) * 100%)); background: #14191d; }
.arch__layer--site svg { transform: scale(1.12) translateY(2%); }
.pl { fill: none; stroke: var(--blue-light); stroke-width: 2.2; }
.pl__door, .pl__dim { stroke-width: 1.2; opacity: 0.8; }
.pl__ax circle { fill: #10161a; stroke: var(--blue-light); }
.pl__ax text { fill: var(--blue-light); font: 500 11px var(--font-mono); text-anchor: middle; }
.pin { position: absolute; top: 44%; left: 45%; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--orange); color: #14191d; font-size: 0.75rem; font-weight: 600; box-shadow: 0 0 0 0.4rem rgba(236, 122, 44, 0.2); }
.pin::first-line { transform: rotate(45deg); }
.arch__tag { position: absolute; top: 0.6rem; inset-inline-start: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 99px; background: rgba(20, 25, 29, 0.8); font-size: 0.6875rem; color: var(--graphite-200); }
.arch__layer--site .arch__tag { inset-inline-start: auto; inset-inline-end: 0.7rem; }
.arch__edge { position: absolute; top: 0; bottom: 0; left: calc((1 - var(--p)) * 100%); width: 2px; background: var(--orange); box-shadow: 0 0 14px rgba(236, 122, 44, 0.7); opacity: clamp(0, calc(var(--p) * 30), 1); }
.arch__ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; font-size: 0.75rem; color: var(--graphite-300); }
.thread { display: grid; gap: 0.5rem; justify-items: start; }
.thread__msg { display: grid; gap: 0.15rem; padding: 0.65rem 0.9rem; border-radius: 0.5rem; border: 1px solid var(--graphite-600); background: #12171b; font-size: 0.875rem; max-width: 30rem; }
.thread__msg b { font-size: 0.6875rem; font-weight: 500; color: var(--blue-light); }
.thread__msg--reply { margin-inline-start: 1.5rem; border-color: var(--orange); }
.thread__msg--reply b { color: var(--orange); }
.thread__done { font-size: 0.75rem; color: var(--success); }
.thread__done::before { content: "✓ "; }
.arch__access { font-size: 0.8125rem; color: var(--graphite-400); }

/* lecture OCR */
.ocr { padding-block: clamp(4rem, 9vw, 7rem); background: var(--survey); }
.ocr .lead { color: var(--graphite-600); }
.ocr__copy { display: grid; gap: 1.1rem; justify-items: start; }
.ocr__stage { display: grid; gap: 0.9rem; justify-items: start; }
.ia__note { font-size: 0.8125rem; color: var(--graphite-600); }
.doc { position: relative; width: min(34rem, 100%); overflow: hidden; display: grid; gap: 0.9rem; padding: clamp(1rem, 2.4vw, 1.5rem); border-radius: 0.6rem; background: var(--graphite-900); color: var(--survey); box-shadow: 0 30px 60px -30px rgba(20, 25, 29, 0.5); }
.doc__hd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.7rem; border-bottom: 1px dashed var(--graphite-600); font-size: 0.75rem; color: var(--graphite-300); }
.doc__cols { display: grid; grid-template-columns: 1fr 9.5rem 5.5rem; margin: 0; font-size: 0.6875rem; color: var(--graphite-500); }
.doc__rows { display: grid; gap: 0.55rem; }
.row { display: grid; grid-template-columns: 1fr 9.5rem 5.5rem; align-items: center; gap: 0.6rem; padding: 0.7rem 0.8rem; border-radius: 0.45rem; background: #12171b; border: 1px solid var(--graphite-700); font-size: 0.875rem; }
.row__conf { display: flex; align-items: center; gap: 0.5rem; }
.row__bar { flex: 1; height: 5px; border-radius: 3px; background: var(--graphite-700); overflow: hidden; }
.row__bar i { display: block; height: 100%; width: calc(var(--c) * 1%); background: var(--success); transform-origin: left; }
[dir="rtl"] .row__bar i { transform-origin: right; }
.row--low { border-color: var(--orange); }
.row--low .row__bar i { background: var(--orange); }
.row__pct { font-size: 0.75rem; color: var(--graphite-300); }
.tag { justify-self: end; padding: 0.15rem 0.55rem; border-radius: 99px; font-size: 0.6875rem; font-weight: 600; }
.tag--ok { background: rgba(92, 197, 147, 0.16); color: var(--success); }
.tag--low { background: var(--orange); color: #14191d; }
.doc__dup { padding: 0.5rem 0.75rem; border-radius: 0.4rem; border: 1px dashed var(--warning); color: var(--warning); font-size: 0.8125rem; }
.doc__st { position: relative; min-height: 1.6rem; font-size: 0.8125rem; font-weight: 600; }
.st { position: absolute; inset-inline-start: 0; }
.st--read { color: var(--graphite-400); opacity: 0; }
.st--check { color: var(--orange); }
.doc__scan { position: absolute; inset-inline: 0; top: 14%; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, var(--orange), transparent); box-shadow: 0 0 18px 4px rgba(236, 122, 44, 0.35); }
.ocr__human { font-weight: 600; font-size: 0.9375rem; }
.ocr__eg { font-size: 0.8125rem; color: var(--graphite-600); max-width: 44ch; }
.doc.is-armed .row, .doc.is-armed .doc__dup { opacity: 0; }
.doc.is-armed .st--check { opacity: 0; }
.doc.is-armed .st--read { opacity: 1; }
.doc.is-play .row { animation: rowIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 0.85s + 0.7s); }
.doc.is-play .row__bar i { animation: barX 0.7s var(--ease) both; animation-delay: calc(var(--i) * 0.85s + 0.9s); transform: scaleX(0); }
.doc.is-play .doc__dup { animation: rowIn 0.5s var(--ease) 3.5s both; }
.doc.is-play .doc__scan { animation: scan 3.3s ease-in-out 0.3s both; }
.doc.is-play .st--read { animation: stOut 0.3s ease 4s both; opacity: 1; }
.doc.is-play .st--check { animation: stIn 0.4s ease 4.1s both; opacity: 0; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes barX { to { transform: scaleX(1); } }
@keyframes scan { 0% { top: 14%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 80%; opacity: 0; } }
@keyframes stOut { to { opacity: 0; } }
@keyframes stIn { to { opacity: 1; } }

/* ---------- Adaptation ---------- */
@media (max-width: 62rem) {
  .hero__grid, .scn__grid, .scn__grid--rev, .ocr__grid { grid-template-columns: 1fr; }
  .scn__grid--rev .scn__copy { order: 0; }
  .hero__title, .scn__title { max-width: none; }
  .hero__stage { width: 100%; margin-inline-end: 0; max-width: 40rem; }
  .win__cols { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .hero--cine { min-height: 0; }
  .hero__stage { aspect-ratio: 960 / 640; margin-inline: -0.6rem; }
  .ba__stage { aspect-ratio: 4 / 6.8; }
  .pc { left: calc(var(--bl) + (var(--alm) - var(--bl)) * var(--p)); top: calc(var(--bt) + (var(--atm) - var(--bt)) * var(--p)); width: calc(var(--bw) + (var(--awm) - var(--bw)) * var(--p)); }
  .pc__l { font-size: 0.7188rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--gap { grid-column: 1 / -1; }
  .doc__cols { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .row__conf { grid-column: 1 / -1; order: 3; }
  .ba__ctl, .arch__ctl { gap: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .route, .gap__ring { animation: none; }
  .hero__copy > * { animation: none; }
}
