/* Detail pages: the shared hero, scroll reveals and each page's demos. */

:root { --graded: saturate(1.08) contrast(1.12) brightness(.97); --ease: cubic-bezier(.2, .75, .15, 1); --ok: #5fd38d; --star: #f2c14e; }

/* ---------- Shared ---------- */
.page-hero > * { animation: rise .9s var(--ease) both; }
.page-hero > :nth-child(2) { animation-delay: .07s; }
.page-hero > :nth-child(3) { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.page-hero h1 { background: linear-gradient(180deg, var(--paper) 35%, #b8b0a5); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }

.hero-visual {
  position: relative; margin: 64px auto 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(1080px - 2 * var(--gutter));
  border-radius: 12px; overflow: hidden; background: var(--tray);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 60px 120px -50px rgba(0,0,0,.9);
}
.hero-visual > img { width: 100%; height: auto; }

.chapter > h2 { font-size: clamp(30px, 3.8vw, 52px); }
.step-no { font-size: 13px; letter-spacing: .12em; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 10px; }

html.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
html.js .rv.in { opacity: 1; transform: none; }

.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; margin-left: 6px; }
.ml-toggle, .seg button {
  font: inherit; font-size: 14px; color: var(--paper); background: rgba(238,234,227,.07); border: 1px solid transparent;
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.ml-toggle:hover { background: rgba(238,234,227,.12); }
.ml-toggle[aria-pressed="true"], [role="radio"][aria-checked="true"], [role="tab"][aria-selected="true"] { border-color: var(--accent); background: rgba(76,141,255,.16); }
input[type="range"] { accent-color: var(--accent); width: 100%; }

/* ---------- Editing: one photo through the panels ---------- */
.tour {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px;
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
}
.tour-stage { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.tour-photo.hero-visual { margin: 0; width: 100%; max-width: none; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
.tp-frame { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #0f0e0d; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 60px 120px -50px rgba(0,0,0,.9); }
.tp-zoom { position: absolute; inset: 0; transform-origin: 51% 66%; transition: transform 1.2s var(--ease), opacity .7s ease; }
.tp-img { width: 100%; height: 100%; object-fit: cover; transition: filter 1s ease; }
.tp-tone, .tp-grain { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.tp-tone {
  mix-blend-mode: soft-light;
  background: radial-gradient(ellipse 70% 60% at 78% 6%, rgba(255, 150, 60, .95), rgba(255, 150, 60, 0) 70%),
              linear-gradient(to top, rgba(0, 105, 130, .95), rgba(0, 105, 130, 0) 62%);
}
.tp-grain {
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 90px;
}
.tp-crop {
  position: absolute; top: 0; bottom: 0; left: 51%; width: 100%; transform: translateX(-50%); opacity: 0;
  box-shadow: 0 0 0 200vmax rgba(12, 11, 10, .66); outline: 1px solid rgba(255,255,255,.85);
  transition: width 1.1s var(--ease), opacity .5s ease; pointer-events: none;
}
.tp-crop i { position: absolute; inset: 0; background:
  linear-gradient(to right, transparent calc(33.3% - .5px), rgba(255,255,255,.45) 0 calc(33.3% + .5px), transparent 0 calc(66.6% - .5px), rgba(255,255,255,.45) 0 calc(66.6% + .5px), transparent 0),
  linear-gradient(to bottom, transparent calc(33.3% - .5px), rgba(255,255,255,.45) 0 calc(33.3% + .5px), transparent 0 calc(66.6% - .5px), rgba(255,255,255,.45) 0 calc(66.6% + .5px), transparent 0); }

.tp-export { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; perspective: 1200px; pointer-events: none; }
.ex-card {
  position: absolute; width: 31%; padding: 6px 6px 10px; border-radius: 9px; background: #2d2a27;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0; transform: translateY(30px) scale(.85); transition: transform 1s var(--ease), opacity .6s ease;
}
.ex-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; filter: var(--graded); }
.ex-card b { display: block; margin: 8px 4px 0; font-size: 14px; line-height: 1.3; }
.ex-card small { display: block; margin: 0 4px; font-size: 11px; color: var(--grey-card); line-height: 1.4; }
.ex-card:nth-child(1) img { filter: var(--graded) sepia(.1); }

/* Per-step looks. The figure's data-step is set from the step being read. */
.tour-photo:not([data-step=""]) .tp-img { filter: var(--graded); }
.tour-photo[data-step="basic"] .tp-img { animation: tp-basic 1.8s .15s ease both; }
@keyframes tp-basic { from { filter: saturate(.7) contrast(.8) brightness(1.1); } to { filter: var(--graded); } }
.tour-photo:is([data-step="color"], [data-step="detail"], [data-step="lens"], [data-step="export"]) .tp-tone { opacity: .6; }
.tour-photo[data-step="detail"] .tp-zoom { transform: scale(2.7); }
.tour-photo[data-step="detail"] .tp-grain { opacity: .55; }
.tour-photo[data-step="lens"] .tp-zoom { animation: tp-straighten 1.6s .1s var(--ease) both; }
@keyframes tp-straighten { from { transform: rotate(-3deg) scale(1.12); } to { transform: none; } }
.tour-photo[data-step="lens"] .tp-crop { opacity: 1; width: 53.3%; transition-delay: .5s; }
.tour-photo[data-step="style"] .tp-img { transition-duration: .7s; }
.tour-photo[data-step="style"][data-look="bw"] .tp-img { filter: grayscale(1) contrast(1.28) brightness(.96); }
.tour-photo[data-step="style"][data-look="film"] .tp-img { filter: sepia(.32) contrast(.86) saturate(.85) brightness(1.05); }
.tour-photo[data-step="style"][data-look="cine"] .tp-img { filter: contrast(1.2) saturate(.72) hue-rotate(-12deg) brightness(.9); }
.tour-photo[data-step="style"][data-look="cine"] .tp-tone { opacity: .75; }
.tour-photo[data-step="style"][data-look="land"] .tp-img { filter: saturate(1.5) contrast(1.14) brightness(1.02); }
.tour-photo[data-step="export"] .tp-zoom { opacity: 0; transform: scale(.8); }
.tour-photo[data-step="export"] .ex-card { opacity: 1; }
.tour-photo[data-step="export"] .ex-card:nth-child(1) { transform: translate(-78%, -16%) rotateY(22deg) rotateZ(-3deg); transition-delay: .15s; }
.tour-photo[data-step="export"] .ex-card:nth-child(2) { transform: translateY(-22%) scale(1.06); }
.tour-photo[data-step="export"] .ex-card:nth-child(3) { transform: translate(78%, -16%) rotateY(-22deg) rotateZ(3deg); transition-delay: .3s; }

.tp-hud { position: absolute; left: 16px; bottom: 16px; width: 248px; pointer-events: none; }
.hud {
  position: absolute; left: 0; bottom: 0; width: 100%; padding: 12px 14px 14px; font-size: 12px; line-height: 1.5;
  background: rgba(24, 22, 20, .74); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(238,234,227,.12); border-radius: 12px;
  opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .6s var(--ease);
}
.hud.on { opacity: 1; transform: none; transition-delay: .2s; }
.hud-title { font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.sl { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 3.4em; align-items: center; gap: 8px; margin-top: 7px; color: var(--grey-card); --p: .5; }
.hud.on .sl { --p: var(--v); }
.sl i { position: relative; height: 3px; border-radius: 2px; background: rgba(238,234,227,.16); }
.sl i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: 2px; background: var(--accent); transition: width 1.2s var(--ease) .35s; }
.sl i::after { content: ""; position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.5); transition: left 1.2s var(--ease) .35s; }
.sl em { font-style: normal; text-align: right; color: var(--paper); font-variant-numeric: tabular-nums; }
.hud-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--grey-card); }
.hud-row b { margin-left: auto; color: var(--paper); font-weight: 500; }
.tick { width: 13px; height: 13px; border-radius: 3px; background: var(--accent); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.wheels { display: flex; justify-content: space-between; margin-top: 8px; }
.wheel { position: relative; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle, #2a2724 0, rgba(42,39,36,.15) 72%), conic-gradient(from 90deg, #e55, #ec5, #6c6, #5cc, #57e, #c5c, #e55); }
.wheel i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.35); transition: transform 1.2s var(--ease) .4s; }
.hud.on .wheel i { transform: translate(var(--x), var(--y)); }
.wheel small { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; white-space: nowrap; color: var(--grey-card); font-size: 11px; }
.hud[data-for="color"] { padding-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span { padding: 3px 10px; border-radius: 999px; background: rgba(238,234,227,.08); color: var(--grey-card); transition: background .3s, color .3s; }
.chips span.on { background: var(--accent); color: #fff; }

.tour-steps .step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; opacity: .28; transition: opacity .5s ease; }
.tour-steps .step.on { opacity: 1; }
.tour-steps .step:first-child { min-height: 80vh; }
.step h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; }
.step > p:not(.step-no) { margin-top: 14px; color: var(--grey-card); font-size: 18px; }
.step .facts { margin-top: 28px; grid-template-columns: 1fr; display: grid; }

.scope-demo { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr 220px; gap: 16px; }
.scope-demo figure { margin: 0; }
.scope-demo canvas { width: 100%; height: auto; border-radius: 10px; background: #0d0c0b; box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.scope-demo figcaption { margin-top: 8px; font-size: 13px; color: var(--grey-card); }

/* ---------- Nodes ---------- */
.nodes-hero { aspect-ratio: 21 / 9; }
.nodes-hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: sepia(.12) contrast(1.1) saturate(1.22) brightness(1.03); }

.graph-demo {
  position: relative; margin-top: 44px; aspect-ratio: 1000 / 300; border-radius: 16px; touch-action: none;
  border: 1px solid var(--rule); background: radial-gradient(rgba(238,234,227,.09) 1px, transparent 1.2px) 0 0 / 22px 22px, #1a1816;
}
.gd-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gd-wires path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); vector-effect: non-scaling-stroke; }
.graph-demo.in .gd-wires path { stroke-dashoffset: 0; }
.gd-wires path:nth-child(2) { transition-delay: .15s; } .gd-wires path:nth-child(3) { transition-delay: .3s; } .gd-wires path:nth-child(4) { transition-delay: .45s; }
.gd-pulses circle { fill: #9cc0ff; filter: drop-shadow(0 0 4px var(--accent)); }
.gd-node {
  position: absolute; left: calc(var(--x) / var(--w, 1000) * 100%); top: calc(var(--y) / var(--h, 300) * 100%); transform: translate(-50%, -50%);
  display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; padding: 8px 14px 8px 8px;
  background: #2a2724; border: 1px solid rgba(238,234,227,.14); border-radius: 10px; font-size: 13px; line-height: 1.35;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: border-color .2s, box-shadow .2s;
  opacity: 0; scale: .9;
}
.graph-demo.in .gd-node { opacity: 1; scale: 1; transition: opacity .5s ease calc(var(--i, 0) * 90ms), scale .6s var(--ease) calc(var(--i, 0) * 90ms), border-color .2s, box-shadow .2s; }
.gd-node b { font-weight: 600; white-space: nowrap; }
.gd-node small { grid-column: 2; color: var(--grey-card); font-size: 11px; white-space: nowrap; }
.gd-node .gd-thumb { position: relative; grid-row: 1 / 3; width: 46px; height: 31px; border-radius: 4px; background: url("../img/ridge.webp") 50% 35% / cover; filter: sepia(.12) contrast(1.1) saturate(1.22); }
.gd-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gd-thumb.t-sky::after { background: linear-gradient(to bottom, rgba(235, 60, 60, .6) 26%, transparent 50%); }
.gd-thumb.t-land::after { background: linear-gradient(to top, rgba(235, 60, 60, .6) 40%, transparent 62%); }
.gd-io { padding: 8px 14px; grid-template-columns: auto; cursor: default; background: #22201d; }
.gd-io small { grid-column: 1; }
.gd-node:hover, .gd-node:focus-visible { border-color: rgba(238,234,227,.35); }
.gd-node.drag { cursor: grabbing; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(76,141,255,.18), 0 20px 40px -10px rgba(0,0,0,.7); z-index: 2; }
.gd-node::before, .gd-node::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #2a2724; }
.gd-node::before { left: -5px; } .gd-node::after { right: -5px; }
.gd-node[data-id="in"]::before, .gd-node[data-id="out"]::after { display: none; }

.ml { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; margin-top: 40px; }
.ml-photo { position: relative; margin: 0; border-radius: 12px; overflow: hidden; touch-action: none; cursor: crosshair; background: var(--tray); align-self: start; }
.ml-photo img, .ml-photo canvas { width: 100%; height: auto; }
.ml-photo.live .ml-src { display: none; }
.ml-photo:not(.live) .ml-canvas { display: none; }
.ml-guide { position: absolute; pointer-events: none; display: none; }
.ml-photo[data-tool="linear"] .ml-guide { display: block; left: 0; right: 0; top: var(--gy); height: 0; border-top: 1.5px dashed rgba(255,255,255,.85); }
.ml-photo[data-tool="linear"] .ml-guide::after { content: ""; position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ml-photo[data-tool="radial"] .ml-guide { display: block; left: var(--gx); top: var(--gy); width: var(--gw); height: var(--gh); transform: translate(-50%, -50%); border: 1.5px dashed rgba(255,255,255,.85); border-radius: 50%; }
.ml-photo[data-tool="radial"] .ml-guide::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #fff; }
.ml-photo[data-tool="brush"] .ml-guide { display: block; left: var(--gx); top: var(--gy); width: var(--gw); height: var(--gw); transform: translate(-50%, -50%); border: 1.5px solid rgba(255,255,255,.8); border-radius: 50%; opacity: var(--go, 0); }
.ml-hint { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; font-size: 13px; background: rgba(20,18,17,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.ml-tools { display: grid; gap: 6px; }
.ml-tools button { font: inherit; font-size: 15px; text-align: left; color: var(--paper); background: rgba(238,234,227,.05); border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.ml-tools button:hover { background: rgba(238,234,227,.1); }
.ml-desc { margin: 16px 0 6px; color: var(--grey-card); font-size: 14px; min-height: 3.4em; }
.ml-slider { display: grid; grid-template-columns: 5em 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--grey-card); margin-top: 8px; }
.ml-panel[data-tool] .ml-slider[data-only] { display: none; }
.ml-panel[data-tool="luma"] .ml-slider[data-only="luma"], .ml-panel[data-tool="color"] .ml-slider[data-only="color"], .ml-panel[data-tool="brush"] .ml-slider[data-only="brush"] { display: grid; }
.ml-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ml-toggle.quiet { color: var(--grey-card); }

.type-cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.type-cards li { padding: 18px; border: 1px solid var(--rule); border-radius: 14px; background: linear-gradient(180deg, rgba(238,234,227,.04), transparent); }
.type-cards svg { width: 100%; height: auto; margin-bottom: 14px; overflow: visible; }
.type-cards svg :is(path, rect, circle) { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.type-cards svg rect { fill: rgba(76,141,255,.12); }
.type-cards .wip svg :is(path, rect) { stroke: var(--grey-card); stroke-dasharray: 4 4; fill: none; }
.type-cards b { display: block; font-size: 17px; }
.type-cards li > span { display: block; margin-top: 6px; font-size: 14px; color: var(--grey-card); }
.tc-serial .dot { fill: #9cc0ff; stroke: none; animation: tc-run 2.6s linear infinite; }
@keyframes tc-run { from { transform: translate(10px, 45px); } to { transform: translate(210px, 45px); } }
.tc-repair .dst { animation: tc-heal 2.4s ease-in-out infinite; }
.tc-repair .src { stroke-dasharray: 3 3; }
@keyframes tc-heal { 0%, 100% { fill: rgba(229, 85, 85, .35); stroke: #e55; } 50% { fill: rgba(76,141,255,.15); stroke: var(--accent); } }

.twin { margin-top: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.twin-graph { display: flex; align-items: center; gap: 0; padding: 32px 20px; border: 1px solid var(--rule); border-radius: 14px; background: #1a1816; }
.twin-graph span { position: relative; flex: none; padding: 8px 12px; border-radius: 8px; font-size: 13px; background: #2a2724; border: 1px solid rgba(238,234,227,.14); transition: border-color .2s, background .2s; }
.twin-graph span + span { margin-left: 26px; }
.twin-graph span + span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 26px; height: 2px; background: var(--accent); }
.twin-graph .tw-io { background: transparent; color: var(--grey-card); }
.twin-layers { list-style: none; margin: 0; padding: 8px; border: 1px solid var(--rule); border-radius: 14px; background: #1a1816; }
.twin-layers li { display: grid; grid-template-columns: 1fr 90px 3em; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; transition: background .2s; }
.twin-layers li + li { border-top: 1px solid var(--rule); }
.twin-layers i { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) calc(var(--o) * 100%), rgba(238,234,227,.15) 0); }
.twin-layers small { color: var(--grey-card); text-align: right; }
.twin-layers .base b { color: var(--grey-card); font-weight: 400; }
.twin-layers .base small { grid-column: 3; }
.twin .hi { border-color: var(--accent) !important; background: rgba(76,141,255,.16) !important; }
.twin-layers li { cursor: default; } .twin-graph .tw-node { cursor: default; }

/* ---------- Library ---------- */
.facet-demo { margin-top: 40px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 20px; border: 1px solid var(--rule); border-radius: 16px; background: #1a1816; }
.fd-facets fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.fd-facets legend { font-size: 12px; color: var(--grey-card); padding: 0; margin-bottom: 4px; letter-spacing: .04em; }
.fd-facets label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.fd-facets label:hover { background: rgba(238,234,227,.06); }
.fd-facets input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.fd-facets small { margin-left: auto; color: var(--grey-card); font-variant-numeric: tabular-nums; }
.fd-count { font-size: 14px; color: var(--grey-card); margin-bottom: 12px; }
.fd-count b { color: var(--paper); font-weight: 600; }
.fd-grid, .sd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fd-grid li, .sd-grid li { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--tray); }
.fd-grid li.out, .sd-grid li.out { display: none; }
.fd-grid img, .sd-grid img, .cd-strip img { width: 100%; height: 100%; object-fit: cover; }
.fd-grid small { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 4px; font-size: 10.5px; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #eee; }
.fd-empty { grid-column: 1 / -1; aspect-ratio: auto !important; padding: 40px 0; text-align: center; color: var(--grey-card); background: none !important; }

.move-demo { margin-top: 40px; padding: 22px; border: 1px solid var(--rule); border-radius: 16px; background: #1a1816; }
.mv-cases { display: flex; flex-wrap: wrap; gap: 8px; }
.mv-cases button { font: inherit; font-size: 14px; color: var(--paper); background: rgba(238,234,227,.06); border: 1px solid transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.mv-stage { position: relative; height: 210px; margin-top: 22px; }
.mv-drive { position: absolute; top: 0; bottom: 0; width: 38%; border: 1px solid rgba(238,234,227,.16); border-radius: 14px; padding: 14px 16px; background: #22201d; transition: border-color .4s; }
.mv-drive p { font-size: 13px; color: var(--grey-card); }
.mv-src { left: 0; } .mv-dst { right: 0; }
.move-demo[data-case="same"] .mv-stage::before { content: "同一块磁盘"; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; border: 1px dashed rgba(76,141,255,.5); border-radius: 18px; padding: 0 0 0 0; font-size: 12px; color: var(--accent); display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px; margin: -10px; }
.mv-file {
  position: absolute; top: 96px; left: 4%; width: 30%; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-variant-numeric: tabular-nums;
  background: #34302c; border: 1px solid rgba(238,234,227,.2); box-shadow: 0 14px 30px -10px rgba(0,0,0,.7);
  transition: left 1.1s var(--ease), opacity .6s ease, transform .6s var(--ease), border-color .3s, background .3s; overflow: hidden;
}
.mv-file::before { content: ""; display: inline-block; width: 22px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 3px; background: linear-gradient(135deg, #6a8f5a, #d6b46a); }
.mv-existing { left: auto; right: 4%; opacity: 0; }
.mv-copy { opacity: 0; }
.mv-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.move-demo.p-copy .mv-copy { opacity: 1; left: 66%; }
.move-demo.p-copy[data-case="cross"] .mv-bar { width: 100%; transition: width 1.4s linear .3s; }
.move-demo.p-done .mv-copy { border-color: var(--ok); }
.move-demo.p-unlink .mv-orig { opacity: .0; transform: scale(.9); }
.move-demo[data-case="clash"] .mv-existing { opacity: 1; }
.move-demo.p-copy[data-case="clash"] .mv-copy { left: 40%; }
.move-demo.p-bounce .mv-copy { left: 4% !important; opacity: 0 !important; }
.move-demo.p-bounce .mv-existing { border-color: #e8b45e; }
.move-demo.p-keep .mv-orig { border-color: var(--ok); }
.mv-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: mv; }
.mv-steps li { counter-increment: mv; display: flex; gap: 12px; align-items: baseline; color: var(--grey-card); opacity: .45; transition: opacity .4s, color .4s; font-size: 15px; }
.mv-steps li::before { content: counter(mv); flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; border: 1px solid currentColor; }
.mv-steps li.on { opacity: 1; color: var(--paper); }
.mv-steps li.on::before { border-color: var(--accent); background: var(--accent); color: #fff; }

.cull-demo { margin-top: 40px; padding: 16px; border: 1px solid var(--rule); border-radius: 16px; background: #141311; outline: none; transition: border-color .3s; }
.cull-demo:focus-visible, .cull-demo.focus { border-color: var(--accent); }
.cd-view { position: relative; aspect-ratio: 3 / 2; max-height: 62vh; margin: 0 auto; border-radius: 8px; overflow: hidden; background: #0c0b0a; }
.cd-img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease, filter .3s ease; }
.cd-img.rejected { filter: grayscale(1) brightness(.45); }
.cd-badge { position: absolute; left: 14px; top: 12px; font-size: 20px; letter-spacing: 2px; color: var(--star); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.cd-badge.pop { animation: pop .45s var(--ease); }
.cd-badge.rej { color: #ff6b6b; letter-spacing: 0; font-size: 15px; font-weight: 600; }
@keyframes pop { from { transform: scale(1.5); opacity: 0; } }
.cd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 14px; }
.cd-stars { display: flex; gap: 2px; }
.cd-stars button { font: inherit; font-size: 22px; line-height: 1; color: rgba(238,234,227,.25); background: none; border: 0; padding: 4px; cursor: pointer; transition: color .15s, transform .15s; }
.cd-stars button:hover { transform: scale(1.15); }
.cd-stars button.lit { color: var(--star); }
.cd-stars .cd-reject { font-size: 17px; margin-left: 10px; }
.cd-stars .cd-reject.lit { color: #ff6b6b; }
.cd-opts { display: flex; gap: 8px; }
.cd-progress { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey-card); }
.cd-progress i { width: 120px; height: 4px; border-radius: 2px; background: rgba(238,234,227,.12); overflow: hidden; }
.cd-progress b { display: block; height: 100%; width: 0; background: var(--ok); transition: width .4s var(--ease); }
.cd-strip { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cd-strip li { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; cursor: pointer; outline: 2px solid transparent; outline-offset: 1px; transition: outline-color .2s, opacity .2s; }
.cd-strip li.cur { outline-color: var(--accent); }
.cd-strip li.rej img { filter: grayscale(1) brightness(.4); }
.cd-strip li.dim { opacity: .3; }
.cd-strip span { position: absolute; left: 3px; bottom: 1px; font-size: 9px; color: var(--star); text-shadow: 0 1px 3px #000; letter-spacing: -1px; }

.smart-demo { margin-top: 40px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; padding: 20px; border: 1px solid var(--rule); border-radius: 16px; background: #1a1816; }
.sd-rules { display: grid; gap: 8px; align-content: start; }
.sd-match { display: flex; gap: 6px; margin-bottom: 8px; }
.sd-match button { flex: 1; font: inherit; font-size: 13px; color: var(--paper); background: rgba(238,234,227,.06); border: 1px solid transparent; border-radius: 999px; padding: 6px 8px; cursor: pointer; }
.sd-rule { font: inherit; font-size: 14px; text-align: left; color: var(--grey-card); background: rgba(238,234,227,.04); border: 1px dashed rgba(238,234,227,.2); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: all .2s; }
.sd-rule[aria-pressed="true"] { color: var(--paper); border-style: solid; border-color: var(--accent); background: rgba(76,141,255,.14); }
.sd-title { font-weight: 600; margin-bottom: 12px; }
.sd-n { display: inline-block; min-width: 1.8em; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; text-align: center; }
.sd-grid li span { position: absolute; left: 5px; bottom: 2px; font-size: 10px; color: var(--star); text-shadow: 0 1px 3px #000; }

/* ---------- Performance ---------- */
.route-hero { padding: clamp(24px, 5vw, 56px); margin-top: 64px; background: radial-gradient(ellipse 60% 80% at 80% 100%, rgba(76,141,255,.14), transparent 70%), #1a1816; }
.route-hero .route-row { --dur: 3.2s; }
.route-hero .is-aurora { --dur: 1.3s; }
.route-hero .hops { position: relative; width: fit-content; }
.route-hero .hops li { animation: hop-glow var(--dur) linear infinite; animation-delay: calc(var(--k) * var(--dur) * .8 / (var(--n) - 1)); }
.route-hero .hops::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 3px var(--accent); animation: hop-run var(--dur) linear infinite;
}
@keyframes hop-run { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 80% { left: 100%; opacity: 1; } 88%, 100% { left: 100%; opacity: 0; } }
@keyframes hop-run-v { 0% { top: 0; opacity: 0; } 5% { opacity: 1; } 80% { top: 100%; opacity: 1; } 88%, 100% { top: 100%; opacity: 0; } }
@keyframes hop-glow { 0%, 14%, 100% { box-shadow: none; } 4% { box-shadow: 0 0 0 3px rgba(76,141,255,.35), 0 0 24px rgba(76,141,255,.45); } }

.frame-tour { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; max-width: 1280px; margin: 10vh auto 0; padding: 0 var(--gutter); }
.ft-stage { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.ft-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 13px; }
.ft-rail li { position: relative; padding-top: 16px; color: var(--grey-card); border-top: 2px solid rgba(238,234,227,.14); transition: color .4s, border-color .4s; }
.ft-rail li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #3a3632; transition: background .4s, box-shadow .4s; }
.ft-rail li.done { border-color: var(--accent); color: var(--paper); }
.ft-rail li.done::before { background: var(--accent); }
.ft-rail li.cur::before { box-shadow: 0 0 0 5px rgba(76,141,255,.25); }
.ft-monitor { position: relative; border-radius: 12px; transition: padding .8s var(--ease), background .8s, border-radius .8s; }
.ft-pic { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #0d0c0b; }
.ft-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1s ease, transform 1.2s var(--ease); transform-origin: 46% 58%; filter: grayscale(.85) contrast(.7) brightness(.75); }
.ft-bayer { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0; transition: opacity .8s;
  background: conic-gradient(#ff8080 25%, #80ff80 0 50%, #8080ff 0 75%, #80ff80 0) 0 0 / 6px 6px; }
.ft-hist { position: absolute; left: 4%; right: 4%; bottom: 5%; width: 92%; height: 24%; opacity: 0; transition: opacity .6s; }
.ft-hist path { fill: rgba(238,234,227,.55); stroke: #fff; stroke-width: .6; vector-effect: non-scaling-stroke; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease) .2s; }
.ft-gpu { align-self: flex-start; font-size: 13px; color: var(--grey-card); padding: 5px 12px 5px 28px; border: 1px solid var(--rule); border-radius: 999px; position: relative; opacity: 0; transition: opacity .5s; margin-top: 16px; }
.ft-gpu::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ft-frame:not([data-s=""]):not([data-s="decode"]) .ft-gpu { opacity: 1; }
.ft-frame[data-s="decode"] .ft-bayer { opacity: .6; }
.ft-frame:is([data-s="develop"], [data-s="detail"], [data-s="quant"], [data-s="screen"]) .ft-pic img { filter: sepia(.12) contrast(1.1) saturate(1.22) brightness(1.03); }
.ft-frame[data-s="detail"] .ft-pic img { transform: scale(2.2); filter: sepia(.12) contrast(1.22) saturate(1.22) brightness(1.03); }
.ft-frame[data-s="quant"] .ft-hist { opacity: 1; }
.ft-frame[data-s="quant"] .ft-hist path { transform: none; }
.ft-frame[data-s="screen"] .ft-monitor { padding: 14px 14px 30px; background: linear-gradient(#34302c, #24211e); border-radius: 18px; }
.ft-frame[data-s="screen"] .ft-monitor::after { content: ""; position: absolute; left: 50%; top: 100%; width: 22%; height: 26px; transform: translateX(-50%); background: linear-gradient(#2c2926, #1f1d1a); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.ft-steps .ft-step { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.ft-steps .ft-step.on { opacity: 1; }
.ft-head + .frame-tour { margin-top: 4vh; }
.ft-step h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; }
.ft-step > p:last-child { margin-top: 14px; color: var(--grey-card); font-size: 18px; }

.latest-demo { margin-top: 40px; padding: 22px; border: 1px solid var(--rule); border-radius: 16px; background: #1a1816; }
.ld-input { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; font-size: 15px; max-width: 640px; }
.ld-input input { height: 28px; }
.ld-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.ld-lane { min-width: 0; padding: 14px; border-radius: 12px; background: #22201d; border: 1px solid rgba(238,234,227,.08); }
.ld-lane.is-aurora { border-color: rgba(76,141,255,.4); }
.ld-name { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ld-view { position: relative; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; }
.ld-view img { width: 100%; height: 100%; object-fit: cover; }
.ld-mark { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.45); }
.ld-mark::before, .ld-mark::after { content: ""; position: absolute; top: -5px; width: 3px; height: 14px; border-radius: 2px; left: calc(var(--x, 50) * 1%); }
.ld-mark::before { background: rgba(255,255,255,.55); left: calc(var(--in, 50) * 1%); }
.ld-mark::after { background: var(--star); box-shadow: 0 0 6px var(--star); }
.ld-queue { display: flex; flex-wrap: nowrap; gap: 4px; height: 22px; margin-top: 12px; overflow: hidden; }
.ld-queue i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(238,234,227,.14); animation: tok-in .2s ease both; }
.ld-queue i.run { background: var(--star); }
.ld-queue i.drop { animation: tok-drop .45s ease forwards; background: #6b3a3a; }
@keyframes tok-in { from { transform: scale(.4); opacity: 0; } }
@keyframes tok-drop { to { transform: translateY(14px) scale(.6); opacity: 0; } }
.ld-state { margin-top: 8px; font-size: 13px; color: var(--grey-card); min-height: 1.7em; }
.ld-state.lag { color: #e8b45e; }
.ld-note { margin-top: 14px; font-size: 13px; color: var(--grey-card); }

.yield-demo { position: relative; margin-top: 40px; padding: 22px 22px 22px 22px; border: 1px solid var(--rule); border-radius: 16px; background: #1a1816; display: grid; gap: 14px; }
.yd-row { display: grid; grid-template-columns: 4.5em 1fr; align-items: center; gap: 14px; font-size: 13px; color: var(--grey-card); }
.yd-track { position: relative; height: 18px; border-radius: 5px; background: rgba(238,234,227,.04); }
.yd-track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.yd-gesture { left: 30%; width: 32%; background: var(--accent); }
.yd-bg { left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); background: rgba(238,234,227,.3); }
.yd-head { position: absolute; top: 14px; bottom: 14px; left: calc(22px + 4.5em + 14px); width: 2px; background: var(--star); box-shadow: 0 0 8px var(--star); animation: yd-sweep 6s linear infinite; --span: calc(100% - 44px - 4.5em - 14px); }
@keyframes yd-sweep { from { transform: translateX(0); } to { transform: translateX(var(--sweep, 600px)); } }

.arch { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.arch-stack { position: relative; height: 420px; perspective: 1500px; transform-style: preserve-3d; --gap: 0px; }
.arch.in .arch-stack { --gap: 96px; }
.arch-plane {
  position: absolute; left: 50%; top: 58%; width: 300px; height: 190px; margin: -95px 0 0 -150px; border-radius: 16px;
  transform: rotateX(58deg) rotateZ(-38deg) translateZ(calc(var(--i) * var(--gap)));
  transition: transform 1.3s var(--ease), background .3s; transition-delay: calc((2 - var(--i)) * 80ms);
  border: 1px solid rgba(238,234,227,.25); background: rgba(40,37,34,.82);
  display: grid; place-items: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.arch-plane[style*="--i:0"] { background: rgba(76,141,255,.22); border-color: rgba(76,141,255,.6); }
.arch-plane[style*="--i:1"] { background: rgba(76,141,255,.12); border-color: rgba(76,141,255,.4); }
.arch-plane b { font-size: 20px; transform: rotateZ(38deg); }
.arch-legend { margin: 0; }
.arch-legend div { padding: 16px 0; border-top: 1px solid var(--rule); }
.arch-legend dt { font-weight: 600; }
.arch-legend dd { margin: 4px 0 0; color: var(--grey-card); }
.arch-note { margin-top: 24px; color: var(--grey-card); font-size: 15px; }

.bytes { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px; border: 1px solid var(--rule); border-radius: 16px; background: #141311; }
.by-col p { font-size: 13px; color: var(--grey-card); margin-bottom: 8px; }
.by-col code { display: block; min-height: 12.5em; font: 13px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--paper); white-space: pre; overflow: hidden; }
.by-col code span { display: block; transition: color .3s; }
.by-col code span.ok { color: var(--ok); }
.by-verdict { grid-column: 1 / -1; font-weight: 600; color: var(--ok); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.bytes.done .by-verdict { opacity: 1; transform: none; }
.by-verdict::before { content: "✓ "; }

/* ---------- Narrow screens ---------- */
/* Real screenshots tip up into place, like a screen being raised. */
.real-shot { position: relative; margin: 48px 0 0; perspective: 1800px; }
.real-shot::before {
  content: ""; position: absolute; inset: 8% 6% 14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76,141,255,.22), transparent); filter: blur(30px);
}
.real-shot img { display: block; width: 100%; height: auto; border-radius: 12px; transform-origin: 50% 100%; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 120px -50px rgba(0,0,0,.9); }
html.js .real-shot img { opacity: .2; transform: rotateX(18deg) translateY(60px) scale(.93); transition: transform 1.6s var(--ease), opacity 1s ease; }
html.js .real-shot.in img { opacity: 1; transform: none; }
.real-shot figcaption { margin-top: 16px; font-size: 13px; color: var(--grey-card); }

@media (max-width: 900px) {
  .tour-steps .step, .ft-steps .ft-step { opacity: .45; }
  .tour, .frame-tour { grid-template-columns: 1fr; gap: 0; }
  .tour-stage, .ft-stage { top: var(--nav-h); height: auto; z-index: 2; padding: 10px 0 14px; background: linear-gradient(var(--darkroom) 88%, rgba(29,27,25,0)); }
  .ft-stage { gap: 12px; }
  .ft-rail { font-size: 10.5px; }
  .ft-gpu { display: none; }
  .tour-steps .step, .ft-steps .ft-step { min-height: 72vh; justify-content: flex-start; padding: 6vh 0; }
  .tp-hud { left: 8px; bottom: 8px; width: 172px; }
  .hud { padding: 8px 10px 10px; font-size: 10.5px; }
  .hud-title { font-size: 11px; }
  .sl { margin-top: 3px; gap: 6px; }
  .wheel { width: 38px; height: 38px; }
  .hud[data-for="color"] { padding-bottom: 24px; }
  .scope-demo { grid-template-columns: 1fr 1fr; align-items: start; }
  .scope-demo figure:first-child { grid-column: 1 / -1; }
  .ml, .facet-demo, .smart-demo, .arch, .twin { grid-template-columns: 1fr; }
  .ml-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ml-tools button { font-size: 13px; padding: 8px; text-align: center; }
  .type-cards { grid-template-columns: 1fr 1fr; }
  .twin-graph { overflow-x: auto; }
  .fd-grid, .sd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-facets { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .mv-stage { height: 190px; }
  .mv-file { font-size: 11px; padding: 10px 8px; width: 34%; top: 92px; }
  .mv-file::before { display: none; }
  .mv-copy, .move-demo.p-copy .mv-copy { }
  .move-demo.p-copy .mv-copy { left: 62%; }
  .cd-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cd-progress { margin-left: 0; }
  .ld-lanes { grid-template-columns: 1fr; }
  .arch-stack { height: 330px; transform: scale(.78); }
  .bytes { grid-template-columns: 1fr; }
  .by-col code { font-size: 11px; min-height: 0; }
  .yd-row { grid-template-columns: 3.6em 1fr; }
}
@media (max-width: 560px) {
  .type-cards { grid-template-columns: 1fr; }
  /* The parameter card moves under the photo instead of covering it. */
  .tp-hud { position: relative; left: auto; bottom: auto; width: 100%; height: 96px; margin-top: 10px; }
  .hud { top: 0; bottom: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; align-content: start; padding: 8px 12px 10px; }
  .hud-title, .hud .wheels, .hud .chips { grid-column: 1 / -1; }
  .hud .sl { grid-template-columns: 3.4em minmax(0, 1fr) 3em; margin-top: 5px; }
  .hud[data-for="color"] { padding-bottom: 10px; }
  .hud .wheels { justify-content: space-around; margin-top: 4px; }
  .wheel { width: 34px; height: 34px; }
  .route-hero .hops { width: auto; }
  .route-hero .hops::after { left: 50%; top: 0; animation-name: hop-run-v; }
  .route-hero { padding: 20px 16px; }
  .twin-graph { flex-direction: column; overflow: visible; padding: 20px; }
  .twin-graph span + span { margin: 18px 0 0; }
  .twin-graph span + span::before { right: auto; left: 50%; top: auto; bottom: 100%; width: 2px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero > * { animation: none; }
  html.js .rv { transform: none; transition: opacity .3s; }
  html.js .real-shot img { transform: none; transition: opacity .3s; }
  .tp-zoom, .tp-img, .tp-crop, .ex-card, .gd-wires path, .arch-plane, .ft-pic img, .mv-file { transition-duration: .01s !important; animation: none !important; }
  .route-hero .hops li, .route-hero .hops::after, .tc-serial .dot, .tc-repair .dst, .yd-head { animation: none; }
  .tour-photo[data-step="basic"] .tp-img, .tour-photo[data-step="lens"] .tp-zoom { animation: none; }
}
