:root {
  --field: #03070C;
  --panel: #0A1220;
  --rule: #1C2738;
  --label: #7D8BA0;
  --mist: #A7B3C4;
  --white: #FFFFFF;
  --chrome: #EEF2F7;
  --signal: #0078F0;
  --beam: #5BA8FF;
  --deep: #0059C2;
  --display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --text: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sweep: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--field);
  scroll-padding-top: 72px;
  scrollbar-color: var(--rule) var(--field);
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--field);
  color: var(--chrome);
  font: 400 17px/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--beam);
}

::selection { background: rgba(91, 168, 255, 0.34); color: var(--white); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--field); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 2px solid var(--field); border-radius: 10px; }
:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; border-radius: 4px; }
a { color: var(--beam); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 80; padding: 10px 14px; border-radius: 6px;
  background: var(--chrome); color: var(--field); font-weight: 600; text-decoration: none;
  transform: translateY(-150%); transition: transform 0.25s var(--ease);
}
.skip:focus { transform: none; }

/* Cinema, scene tag, cursor ------------------------------------------------ */

.cinema { position: fixed; inset: 0; z-index: 0; display: block; width: 100vw; height: 100vh; height: 100lvh; }
main, .foot { position: relative; z-index: 1; }
/* Off-screen entrances must never widen the page (phones pan sideways otherwise). */
main > section, .foot { overflow-x: clip; }

.scene-tag {
  position: fixed; right: 22px; bottom: 18px; z-index: 5; margin: 0; display: flex; align-items: center; gap: 8px;
  font: 400 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist);
  opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none;
}
.scene-tag::before { content: ""; width: 14px; height: 6px; background: rgba(0, 120, 240, 0.4); box-shadow: inset 0 0 0 1px var(--beam); }
.scene-tag.is-on { opacity: 1; }

.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor::before {
  content: ""; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(238, 242, 247, 0.55); transition: transform 0.35s var(--ease), border-color 0.25s;
}
.cursor i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--beam); }
.cursor.is-on { opacity: 1; }
.cursor.is-link::before { transform: scale(1.7); border-color: var(--beam); }
@media (pointer: fine) { .has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: none; } }

/* Navigation ---------------------------------------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter); border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav.is-solid { background: rgba(3, 7, 12, 0.72); border-bottom-color: rgba(28, 39, 56, 0.8); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.nav.is-away { transform: translateY(-100%); }
.nav-logo { display: block; flex: none; }
.nav-logo img { display: block; width: auto; height: 32px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); }
.nav-links a { position: relative; padding: 8px 0; color: var(--mist); font: 500 14px/1 var(--text); letter-spacing: 0.01em; text-decoration: none; transition: color 0.25s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: var(--beam); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--chrome); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links .nav-cta { margin-left: 6px; padding: 11px 16px; border-radius: 6px; color: var(--field); background: var(--beam); font-weight: 600; }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { color: var(--field); background: #8cc3ff; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--chrome); }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav-toggle i:nth-of-type(1) { top: 17px; }
.nav-toggle i:nth-of-type(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }

.rail { position: fixed; right: 22px; top: 50%; z-index: 30; transform: translateY(-50%); display: grid; gap: 14px; justify-items: end; opacity: 0; transition: opacity 0.6s var(--ease); }
.rail.is-on { opacity: 1; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--label); font: 400 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.rail a::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width 0.4s var(--ease), background-color 0.3s; }
.rail a:hover span { opacity: 1; transform: none; }
.rail a[aria-current="true"] { color: var(--chrome); }
.rail a[aria-current="true"]::after { width: 34px; background: var(--beam); }

/* Buttons and links ------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--text); letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--chrome); color: var(--field); box-shadow: 0 10px 30px -14px rgba(91, 168, 255, 0.6); }
.btn-primary:hover { background: var(--white); box-shadow: 0 14px 36px -12px rgba(91, 168, 255, 0.85); }
.btn-primary::after, .link-arrow::after {
  content: ""; width: 14px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8.5 1.2 12.5 5l-4 3.8' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8.5 1.2 12.5 5l-4 3.8' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover::after, .link-arrow:hover::after { transform: translateX(4px); }
.btn-quiet { color: var(--chrome); border: 1px solid rgba(167, 179, 196, 0.38); background: rgba(3, 7, 12, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-quiet:hover { border-color: var(--beam); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--chrome); font: 500 15px/1 var(--text); text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(238, 242, 247, 0.25); transition: border-color 0.3s var(--ease), color 0.3s; }
.link-arrow:hover { color: var(--white); border-color: var(--beam); }

/* Hero ---------------------------------------------------------------------- */

.hero { position: relative; height: 160vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; background: var(--field); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; left: 50%; top: 40%; width: min(520px, 80vw); transform: translate(-50%, -50%); }
.has-emblem .hero-fallback { display: none; }
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

.hud-frame { position: absolute; left: var(--x, 50%); top: var(--y, 30%); width: var(--w, 0); height: var(--h, 0); pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.hud-frame.is-on { opacity: 1; }
.hud-frame .c { position: absolute; width: 22px; height: 22px; border-color: rgba(238, 242, 247, 0.55); border-style: solid; border-width: 0; transition: transform 0.9s var(--ease), border-color 0.6s; }
.hud-frame .c.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; transform: translate(-18px, -18px); }
.hud-frame .c.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; transform: translate(18px, -18px); }
.hud-frame .c.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; transform: translate(-18px, 18px); }
.hud-frame .c.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; transform: translate(18px, 18px); }
.hud-frame.is-locked .c { transform: none; border-color: var(--beam); }
.hud-l { position: absolute; font: 400 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); white-space: nowrap; }
.hud-l b { color: var(--chrome); font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-l.tl { left: 0; top: -36px; }
.hud-l.bl { left: 0; bottom: -36px; }
.hud-l.br { right: 0; bottom: -36px; color: var(--beam); }

.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(64px, 9vh, 104px); padding: 0 var(--gutter); text-align: center; }
.hero-title { margin: 0 0 14px; font: 600 clamp(2rem, 3.5vw, 3.3rem)/1.06 var(--display); letter-spacing: -0.025em; }
.hero-title span { display: inline-block; position: relative; }
.hero-title .is { color: var(--chrome); }
.hero-title .can { color: var(--beam); }
.hero-lede { margin: 0 auto 30px; max-width: 46ch; color: var(--mist); font: 400 clamp(1rem, 1.2vw, 1.12rem)/1.55 var(--text); }
.hero-cue { position: absolute; left: 50%; bottom: 22px; margin: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.hero-cue i { position: relative; width: 1px; height: 26px; background: rgba(125, 139, 160, 0.4); overflow: hidden; }
.hero-cue i::after { content: ""; position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: var(--beam); animation: cue 1.8s var(--sweep) infinite; }
@keyframes cue { to { top: 100%; } }

.js .hero-title .is { animation: lift 1.1s var(--ease) 3.1s both; }
.js .hero-title .can { animation: wipe 1.4s var(--sweep) 3.5s both; }
.js .hero-title .can::after { content: ""; position: absolute; top: -8%; bottom: -8%; left: 0; width: 2px; background: var(--chrome); box-shadow: 0 0 14px 3px rgba(91, 168, 255, 0.75), 0 0 40px 10px rgba(0, 120, 240, 0.32); opacity: 0; animation: beam 1.4s var(--sweep) 3.5s both; }
.js .hero .hero-lede { animation: lift 1s var(--ease) 4.2s both; }
.js .hero .actions { animation: lift 1s var(--ease) 4.35s both; }
.js .hero-cue { animation: fade 1s var(--ease) 4.8s both; }
@keyframes lift { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wipe { from { clip-path: inset(-12% 100% -12% 0); } to { clip-path: inset(-12% -2% -12% 0); } }
@keyframes beam { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Shared type ---------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 900px; }
.center { text-align: center; }
.center p, .pin-inner p { margin-left: auto; margin-right: auto; }
h2 { margin: 0 0 18px; color: var(--chrome); font: 600 clamp(1.9rem, 3.2vw, 2.9rem)/1.1 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
h3 { margin: 0 0 10px; color: var(--chrome); font: 600 1.18rem/1.3 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 18px; max-width: 66ch; color: var(--mist); }
.display { margin: 0 0 22px; font: 700 clamp(2.8rem, 7vw, 6rem)/0.98 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.display .pre { display: block; margin-bottom: 0.25em; font-size: 0.26em; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mist); }
.display .hi { display: block; color: var(--chrome); }
.display-md { font: 600 clamp(2.1rem, 4.2vw, 3.6rem)/1.06 var(--display); letter-spacing: -0.03em; }
.deck { margin-bottom: 22px; color: var(--chrome); font: 500 clamp(1.05rem, 1.4vw, 1.25rem)/1.45 var(--text); }
.deck-lg { margin: 0 auto 26px; max-width: 40ch; color: var(--chrome); font: 400 clamp(1.15rem, 1.9vw, 1.55rem)/1.45 var(--text); }
.narrow-p { max-width: 62ch; }

/* Motion vocabulary: rise, slide from a side, scan wipe. Visible without JS. */
.js [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.js [data-from] { opacity: 0; transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-from="left"] { transform: translateX(-80px); }
.js [data-from="right"] { transform: translateX(80px); }
.js [data-reveal].is-in, .js [data-from].is-in { opacity: 1; transform: none; filter: none; }
.js [data-words] .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(2deg); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--i) * 38ms); }
.js [data-words].is-in .w { opacity: 1; transform: none; filter: none; }

/* Pinned chapters: the image holds while you scroll ----------------------------- */

.pin { position: relative; height: 170vh; }
.pin-short { height: 130vh; }
.pin-inner { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.pin-inner::before { content: ""; position: absolute; inset: 14% 2%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(3, 7, 12, 0.86), rgba(3, 7, 12, 0.55) 55%, rgba(3, 7, 12, 0)); }
.pin-inner p { text-shadow: 0 1px 14px rgba(3, 7, 12, 0.9); max-width: 62ch; }
.pin-inner > h2 { max-width: 900px; }
.statement { margin: 0 auto; max-width: 30ch; color: var(--white); font: 600 clamp(1.7rem, 3.1vw, 2.75rem)/1.3 var(--display); letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 6px rgba(3, 7, 12, 0.9), 0 4px 30px rgba(3, 7, 12, 0.95) !important; }
.wv-title { transform: scale(calc(1.16 - var(--p, 0) * 0.16)); }
.wv-sub { opacity: clamp(0, calc((var(--p, 0) - 0.15) * 3), 1); }

/* Reading sections ---------------------------------------------------------------- */

.reading { position: relative; padding: clamp(120px, 18vh, 220px) 0; }

/* Live twin demo ------------------------------------------------------------------- */

.demo { padding-bottom: clamp(100px, 14vh, 180px); }
.device { width: min(1180px, calc(100vw - 2 * var(--gutter))); margin: 64px auto 90px; perspective: 1800px; }
.device .viewer { transform: rotateX(calc((1 - var(--d, 1)) * 22deg)) scale(calc(0.9 + var(--d, 1) * 0.1)); transform-origin: 50% 100%; }
.viewer { border-radius: 16px; overflow: hidden; background: rgba(10, 18, 32, 0.94); border: 1px solid rgba(125, 139, 160, 0.3); box-shadow: 0 50px 120px -50px rgba(0, 120, 240, 0.45), 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.viewer-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font: 400 12px/1.3 var(--mono); color: var(--mist); }
.viewer-bar .dots { display: flex; gap: 6px; }
.viewer-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.viewer-title { color: var(--chrome); letter-spacing: 0.02em; }
.vl-short { display: none; }
.viewer-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--beam); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; }
.viewer-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 0 0 rgba(91, 168, 255, 0.7); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(91, 168, 255, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(91, 168, 255, 0); } }
.viewer-stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.demo-video, .demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.demo-launch {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 16px; border-radius: 999px; border: 1px solid rgba(238, 242, 247, 0.4); background: rgba(3, 7, 12, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--white); font: 600 15px/1 var(--text); cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.demo-launch:hover { background: rgba(0, 89, 194, 0.55); border-color: var(--beam); transform: translateX(-50%) translateY(-2px); }
.demo-launch .ring { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--beam); }
.demo-launch .ring::after { content: ""; position: absolute; left: 9px; top: 7px; border-left: 8px solid var(--chrome); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.viewer-status { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--rule); font: 400 11.5px/1.4 var(--mono); color: var(--mist); }
.viewer-status a { color: var(--beam); text-decoration: none; }
.viewer-status a:hover { text-decoration: underline; }

.features { list-style: none; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.features li { padding: 18px 0 18px 26px; border-top: 1px solid rgba(125, 139, 160, 0.3); position: relative; color: var(--chrome); }
.features li::before { content: ""; position: absolute; left: 0; top: 30px; width: 14px; height: 1px; background: var(--beam); }
.wv-points { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.wv-points p { font-size: 15px; margin: 0; }
.wv-scope { margin-top: 48px; text-align: center; color: var(--label); font-size: 14px; max-width: 70ch; }

/* Horizontal chapters ---------------------------------------------------------------- */

.hscroll { position: relative; }
.hs-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hs-track { display: flex; align-items: stretch; gap: 2.4vw; padding: 0 6vw; width: max-content; will-change: transform; }
.hs-progress { align-self: center; width: 220px; height: 2px; background: rgba(125, 139, 160, 0.3); border-radius: 2px; overflow: hidden; }
.hs-progress i { display: block; height: 100%; background: var(--beam); transform: scaleX(var(--hp, 0)); transform-origin: left; }
.hs-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.hs-k { margin: 0; font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.hs-count { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: 0.1em; color: var(--label); }
.hs-count b { color: var(--chrome); font-weight: 500; }

.panel { position: relative; flex: none; width: min(80vw, 1260px); height: min(76vh, 760px); border-radius: 20px; overflow: hidden; border: 1px solid rgba(125, 139, 160, 0.22); }
.panel-media { position: absolute; inset: 0; overflow: hidden; }
.panel-media img { position: absolute; inset: -4% -8%; width: 116%; height: 108%; object-fit: cover; transform: translateX(var(--par, 0px)); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3, 7, 12, 0.96) 0%, rgba(3, 7, 12, 0.88) 38%, rgba(3, 7, 12, 0.35) 58%, rgba(3, 7, 12, 0) 78%), linear-gradient(0deg, rgba(3, 7, 12, 0.6), rgba(3, 7, 12, 0) 40%); }
.panel-body { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: min(560px, 44%); padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: flex-end; }
.panel-k { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.engine-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--beam); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; display: block; }
.panel-name { margin: 0; font: 700 clamp(2.8rem, 6vw, 5.4rem)/1 var(--display); letter-spacing: 0.12em; color: var(--white); }
.panel-desc { margin: 8px 0 24px; color: var(--beam); font: 600 0.84rem/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase; }
.panel-tag { margin: 0 0 12px; color: var(--white); font: 600 clamp(1.35rem, 2vw, 1.8rem)/1.2 var(--display); letter-spacing: -0.015em; }
.panel-text { color: var(--mist); font-size: 16px; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(125, 139, 160, 0.35); background: rgba(3, 7, 12, 0.5); color: var(--chrome); font-size: 12.5px; }

.card { position: relative; flex: none; width: clamp(330px, 27vw, 430px); height: min(76vh, 760px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(10, 18, 32, 0.92); border: 1px solid rgba(125, 139, 160, 0.22); transition: border-color 0.4s var(--ease), transform 0.5s var(--ease); }
.card:hover { border-color: rgba(91, 168, 255, 0.6); transform: translateY(-6px); }
.card-media { position: relative; height: 36%; overflow: hidden; flex: none; }
.card-media img { position: absolute; inset: 0 -12%; width: 124%; height: 100%; object-fit: cover; transform: translateX(var(--par, 0px)) scale(1.02); transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: translateX(var(--par, 0px)) scale(1.08); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 32, 0.95), rgba(10, 18, 32, 0) 55%); }
.card-n { position: absolute; z-index: 1; left: 20px; bottom: 6px; font: 700 2.6rem/1 var(--display); color: rgba(238, 242, 247, 0.9); letter-spacing: -0.02em; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; flex: 1; min-height: 0; }
.card-k { margin: 0; color: var(--beam); font: 600 14px/1.3 var(--text); }
.card-cat { margin: 0; color: var(--label); font-size: 12.5px; }
.card-q { margin: 6px 0 2px; color: var(--white); font: 600 clamp(1.2rem, 1.5vw, 1.45rem)/1.18 var(--display); letter-spacing: -0.015em; }
.card-sub { margin: 0; color: var(--chrome); font-size: 15px; }
.card-engines { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.card-engines li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; color: var(--mist); font-size: 13px; }
.card-engines b { color: var(--beam); font: 700 10.5px/1.6 var(--display); letter-spacing: 0.14em; }
.card-facts { margin: 6px 0 0; display: grid; gap: 6px; }
.card-facts dt { color: var(--label); font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.card-facts dd { margin: 0; color: var(--mist); font-size: 13px; line-height: 1.45; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }

/* Industries, method, FAQ ------------------------------------------------------------- */

.sw { display: inline-block; flex: none; width: 14px; height: 7px; border-radius: 2px; }
.sw-measured { background: linear-gradient(90deg, #26303d, var(--mist)); }
.sw-derived { height: 7px; border-top: 1.5px solid var(--beam); border-bottom: 1.5px solid var(--beam); border-radius: 0; }
.sw-modeled { background: var(--signal); }
.sw-concept { background: rgba(0, 120, 240, 0.35); box-shadow: inset 0 0 0 1.5px var(--beam); }

.faq { max-width: 900px; }
.faq h2 { margin-bottom: 36px; }
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; color: var(--chrome); font: 500 17px/1.45 var(--text); transition: color 0.25s; }
.qa summary:hover { color: var(--white); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 1.5px; background: var(--beam); transition: transform 0.35s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa p { margin: 0 0 22px; font-size: 15.5px; }

.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.paths > div { padding-top: 22px; border-top: 1px solid rgba(125, 139, 160, 0.4); }
.paths p { margin: 0; font-size: 15px; }
.contact-status { margin-top: 44px; color: var(--label); font-size: 14px; text-align: center; max-width: var(--wrap); }
.contact-paths { padding-top: 6vh; }

/* Footer ------------------------------------------------------------------------- */

.foot { background: rgba(3, 7, 12, 0.92); border-top: 1px solid var(--rule); padding: 72px 0 48px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.foot-brand img { display: block; width: min(300px, 100%); height: auto; mix-blend-mode: screen; }
.foot-tag { margin: 10px 0 0; font: 600 14px/1.4 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.foot-tag .is { color: var(--chrome); }
.foot-tag .can { color: var(--beam); }
.foot-text p { font-size: 15px; }
.foot-note { color: var(--label); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0; }
.foot-nav a { color: var(--chrome); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--beam); }
.foot-credit, .foot-copy { color: var(--label); font: 400 11.5px/1.6 var(--mono); letter-spacing: 0.03em; margin: 0 0 6px; }

/* Responsive --------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .wv-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { display: none; }
  .panel-body { width: min(560px, 70%); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 96px var(--gutter) 48px; background: rgba(3, 7, 12, 0.97); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s; }
  .nav-links a { padding: 10px 0; font: 600 1.7rem/1.2 var(--display); color: var(--chrome); }
  .nav-links .nav-cta { margin: 18px 0 0; padding: 14px 20px; font: 600 16px/1 var(--text); }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .features, .wv-points, .paths { grid-template-columns: 1fr; }
  .nav-logo img { height: 26px; }
  .paths { gap: 26px; }
  .pin { height: 140vh; }
  .pin-short { height: 115vh; }
  .hud-l { display: none; }
  /* Phones get the same scroll-driven sideways chapters, with less text per frame. */
  .hs-pin { gap: 18px; }
  .hs-track { gap: 4vw; padding: 0 8vw; }
  .panel { width: 84vw; height: 68vh; }
  .panel::after { background: linear-gradient(0deg, rgba(3, 7, 12, 0.96) 0%, rgba(3, 7, 12, 0.75) 48%, rgba(3, 7, 12, 0.1) 100%); }
  .panel-body { width: 100%; padding: 24px 22px; }
  .panel-name { font-size: 2.6rem; }
  .panel-desc { margin-bottom: 14px; font-size: 0.68rem; line-height: 1.5; letter-spacing: 0.22em; }
  .panel-tag { font-size: 1.2rem; }
  .panel-text { display: none; }
  .chips li { font-size: 11.5px; padding: 6px 10px; }
  .card { width: 78vw; height: 64vh; }
  .card-media { height: 50%; }
  .card-cat, .card-facts { display: none; }
  .card-q { font-size: 1.25rem; }
  .viewer-status span { display: none; }
  .reading { padding: 80px 0; }
  .tech-intro, .sol-intro { padding-bottom: 8px; }
  .tech-intro .center > p:not(.deck-lg), .sol-intro .center > p:not(.deck-lg), #industries .center > p:not(.deck-lg), #method .center > p:not(.deck-lg), .gallery .center > p:not(.deck-lg) { display: none; }
  .wv-points, .wv-scope { display: none; }
  .features { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .features li { padding: 8px 14px; border: 1px solid rgba(125, 139, 160, 0.35); border-radius: 999px; background: rgba(3, 7, 12, 0.55); font-size: 13px; line-height: 1.35; }
  .features li::before { display: none; }
  .device { margin: 36px auto 40px; }
  .device .viewer { transform: none; }
  .viewer-bar { gap: 10px; padding: 10px 12px; }
  .vt-wv, .vl-long, .viewer-bar .dots { display: none; }
  .vl-short { display: inline; }
  .demo-launch { white-space: nowrap; bottom: 14px; padding: 10px 16px 10px 10px; gap: 10px; font-size: 14px; }
  .demo-launch .ring { width: 22px; height: 22px; }
  .demo-launch .ring::after { left: 8px; top: 5.5px; border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; }
  .foot-grid { grid-template-columns: 1fr; }
  .scene-tag { right: 14px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-from], .js [data-words] .w { opacity: 1; transform: none; filter: none; }
  .js .hero-title .can::after { display: none; }
  .grain { display: none; }
}

/* Capture reel: two rows of imagery drifting in opposite directions ---------------- */

.reel { position: relative; padding: 14vh 0; overflow: hidden; }
.reel-cap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin: 0 auto 40px; color: var(--chrome); font: 600 clamp(1.4rem, 2.6vw, 2.2rem)/1.2 var(--display); letter-spacing: -0.02em; text-align: center; max-width: none; }
.reel-cap span:last-child { color: var(--beam); }
.reel-cap i { width: 90px; height: 1px; background: linear-gradient(90deg, var(--chrome), var(--beam)); }
.reel-row { overflow: hidden; padding: 9px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reel-track { display: flex; gap: 18px; width: max-content; animation: reel 80s linear infinite; }
.reel-row.rev .reel-track { animation-direction: reverse; animation-duration: 95s; }
.reel:hover .reel-track { animation-play-state: paused; }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reel-tile { flex: none; margin: 0; width: clamp(260px, 24vw, 400px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid rgba(125, 139, 160, 0.22); background: var(--panel); }
.reel-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.reel-tile:hover img { transform: scale(1.07); }
.reel-note { margin: 26px auto 0; text-align: center; color: var(--label); font: 400 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

/* WorldView opens like a window as you scroll ---------------------------------------- */

.pin-open .pin-inner { overflow: hidden; }
.opener { position: absolute; inset: 0; z-index: -2; margin: 0; --e: calc(1 - min(1, var(--p, 0) * 2.4)); clip-path: inset(calc(var(--e) * 22%) calc(var(--e) * 28%) round calc(var(--e) * 28px)); }
.opener img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--e) * 0.3)); }
.opener::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(3, 7, 12, 0.15), rgba(3, 7, 12, 0.55)); }

/* Projects: a gallery wall whose columns travel at different speeds ----------------- */

.gallery { position: relative; padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 140px); overflow: hidden; }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; width: min(1400px, calc(100vw - 2 * var(--gutter))); height: 118vh; margin: 72px auto 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); }
.wall-col { display: grid; gap: 18px; align-content: start; transform: translate3d(0, var(--ty, 0px), 0); will-change: transform; }
.wall-col:nth-child(even) { margin-top: 14vh; }
.wall-tile { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid rgba(125, 139, 160, 0.22); background: var(--panel); }
.wall-tile:nth-child(even) { aspect-ratio: 4 / 3; }
.wall-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wall-tile:hover img { transform: scale(1.07); }
.gallery-end { margin-top: 48px; }

@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .wall-col { transform: none; }
  .wall-col:nth-child(n + 3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }

/* Framework: disconnected sources connect on the real place, then flow to a decision */

.flow { position: relative; height: 320vh; }
.flow-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: 96px var(--gutter) 28px; overflow: hidden; }
.flow-head { position: relative; display: grid; width: min(980px, 100%); text-align: center; }
.flow-step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); pointer-events: none; }
.flow-step.is-on { opacity: 1; transform: none; filter: none; }
.flow-step h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 3.3vw, 3rem); }
.flow-step .deck { margin: 0 auto; max-width: 52ch; }
.flow-box { position: relative; width: min(1120px, 88vw); aspect-ratio: 2 / 1; max-height: calc(100svh - 300px); }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines path { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.flow-lines .ln-src { stroke: rgba(91, 168, 255, 0.55); }
.flow-lines .ln-pipe { stroke: rgba(91, 168, 255, 0.85); stroke-width: 1.8; }
.flow-lines .ln-off { stroke: rgba(125, 139, 160, 0.35); stroke-dasharray: 3 6; }
.flow-lines circle { fill: var(--chrome); filter: drop-shadow(0 0 5px rgba(91, 168, 255, 0.95)); }

.chip, .fnode, .flow-hub { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(10, 18, 32, 0.92); border: 1px solid rgba(125, 139, 160, 0.35); color: var(--mist); font: 500 13.5px/1 var(--text);
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip.on { color: var(--white); border-color: rgba(91, 168, 255, 0.75); box-shadow: 0 0 0 4px rgba(0, 120, 240, 0.12), 0 10px 30px -12px rgba(0, 120, 240, 0.7); }
.chip.on svg { color: var(--beam); }

.flow-hub { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(91, 168, 255, 0.55); background: var(--panel); box-shadow: 0 0 0 6px rgba(0, 120, 240, 0.1), 0 30px 80px -30px rgba(0, 120, 240, 0.65); }
.flow-hub img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hub-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--chrome); box-shadow: 0 0 14px 3px rgba(91, 168, 255, 0.8); animation: hubscan 3.2s var(--sweep) infinite; }
@keyframes hubscan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.flow-hub figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; display: grid; gap: 2px; background: linear-gradient(0deg, rgba(3, 7, 12, 0.92), rgba(3, 7, 12, 0)); }
.flow-hub figcaption b { color: var(--white); font: 600 14px/1.2 var(--display); }
.flow-hub figcaption span { color: var(--beam); font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

.fnode { display: grid; gap: 3px; padding: 13px 20px; border-radius: 14px; text-align: left; background: rgba(10, 18, 32, 0.94); border: 1px solid rgba(91, 168, 255, 0.5); box-shadow: 0 20px 50px -24px rgba(0, 120, 240, 0.7); }
.fnode b { color: var(--white); font: 700 16px/1 var(--display); letter-spacing: 0.12em; }
.fnode span { color: var(--beam); font: 400 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.fnode-wv b { letter-spacing: 0.01em; }
.fnode-end { background: var(--chrome); border-color: var(--chrome); }
.fnode-end b { color: var(--field); letter-spacing: 0; font-size: 15px; }
.fnode-end span { color: var(--deep); }

.flow-steps { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.flow-steps li { position: relative; padding: 14px 26px 0; color: var(--label); font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.4s; }
.flow-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(125, 139, 160, 0.3); }
.flow-steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--beam); transform: scaleX(var(--f, 0)); transform-origin: left; }
.flow-steps li.on { color: var(--chrome); }

/* Industries: an image mosaic */

.mosaic { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 28vh, 290px); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 16px; border: 1px solid rgba(125, 139, 160, 0.22); background: var(--panel); }
.tile.t0 { grid-column: span 2; grid-row: span 2; }
.tile.t6 { grid-column: span 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
/* A dark floor under the text everywhere, and the whole tile dims while it is read. */
.tile::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(0deg, rgba(3, 7, 12, 0.97) 0%, rgba(3, 7, 12, 0.86) 32%, rgba(3, 7, 12, 0.45) 62%, rgba(3, 7, 12, 0.08) 88%);
  background-color: rgba(3, 7, 12, 0);
  transition: background-color 0.5s var(--ease);
}
.tile:hover::after, .tile:focus-within::after { background-color: rgba(3, 7, 12, 0.5); }
.tile-body { position: relative; z-index: 1; padding: 20px 22px; }
.tile h3 { margin: 0; color: var(--white); font-size: clamp(1.1rem, 1.35vw, 1.3rem); text-shadow: 0 2px 14px rgba(3, 7, 12, 0.9); }
.tile.t0 h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
.tile p { margin: 0; color: var(--chrome); font-size: 15px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; text-shadow: 0 1px 10px rgba(3, 7, 12, 0.9); transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease), margin 0.6s var(--ease); }
.tile.t0 p, .tile.t6 p { max-height: 6em; opacity: 1; margin-top: 8px; max-width: 52ch; }
.tile.t0 p { font-size: 16px; }
.tile-pk { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 6em; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease), margin 0.6s var(--ease); }
.tile-pk li { padding: 4px 9px; border-radius: 999px; background: rgba(0, 89, 194, 0.42); border: 1px solid rgba(91, 168, 255, 0.5); color: var(--white); font-size: 11.5px; }
.tile:hover img, .tile:focus-within img { transform: scale(1.07); }
/* Small tiles swap their packages for the summary, so the text never outgrows the tile. */
.tile:not(.t0):not(.t6):hover p, .tile:not(.t0):not(.t6):focus-within p { max-height: 7em; opacity: 1; margin-top: 8px; }
.tile:not(.t0):not(.t6):hover .tile-pk, .tile:not(.t0):not(.t6):focus-within .tile-pk { max-height: 0; opacity: 0; margin-top: 0; }
@media (hover: none) {
  .mosaic { grid-auto-rows: auto; }
  .tile { min-height: 250px; }
  .tile p { max-height: none; opacity: 1; margin-top: 8px; }
}
.js [data-tile] { clip-path: inset(0 100% 0 0 round 16px); transition: clip-path 1.2s var(--sweep), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-tile].is-in { clip-path: inset(0 0 0 0 round 16px); }

/* Method: four evidence classes as expanding image panels */

.ev-row { margin-top: 64px; display: flex; gap: 12px; height: min(66vh, 620px); }
.ev { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 16px; border: 1px solid rgba(125, 139, 160, 0.22); cursor: pointer; outline: none; transition: flex 0.9s var(--ease), border-color 0.4s; }
.ev:focus-visible { border-color: var(--beam); }
.ev.is-on { flex: 3.4; border-color: rgba(91, 168, 255, 0.55); }
.ev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter 0.9s var(--ease); filter: saturate(0.6) brightness(0.65); }
.ev.is-on img { transform: scale(1); filter: none; }
.ev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 7, 12, 0.92) 0%, rgba(3, 7, 12, 0.3) 45%, rgba(3, 7, 12, 0) 70%); }
.ev-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.ev-k { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--white); font: 600 clamp(1.05rem, 1.5vw, 1.5rem)/1.1 var(--display); white-space: nowrap; }
.ev-src { margin: 8px 0 0; color: var(--beam); font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-d { margin: 8px 0 0; color: var(--chrome); font-size: 15.5px; max-width: 46ch; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.ev.is-on .ev-d { opacity: 1; transform: none; transition-delay: 0.35s; }
/* Collapsed panels carry a vertical label, like spines on a shelf. */
.ev:not(.is-on) .ev-body { top: 0; display: flex; align-items: flex-end; padding: 22px 18px; }
.ev:not(.is-on) .ev-k { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(1rem, 1.3vw, 1.3rem); }
.ev:not(.is-on) .ev-src, .ev:not(.is-on) .ev-d { display: none; }

/* Live twin loading state */

.demo-video { z-index: 0; transition: opacity 0.9s var(--ease); }
.demo-frame { z-index: 1; transition: opacity 0.9s var(--ease); }
.demo-frame.is-loading { opacity: 0; pointer-events: none; }
.is-live .demo-video { opacity: 0; }
.demo-loading { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; min-width: 300px; padding: 18px 26px 16px; border-radius: 16px; background: rgba(3, 7, 12, 0.72); border: 1px solid rgba(91, 168, 255, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity 0.6s var(--ease); }
.is-live .demo-loading { opacity: 0; }
.dl-ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(91, 168, 255, 0.25); border-top-color: var(--beam); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl-title { margin: 4px 0 0; color: var(--white); font: 600 15px/1.2 var(--text); }
.dl-stat { margin: 0; color: var(--mist); font: 400 11.5px/1.4 var(--mono); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.dl-bar { position: relative; width: 220px; height: 2px; margin-top: 6px; border-radius: 2px; background: rgba(125, 139, 160, 0.3); overflow: hidden; }
.dl-bar i { position: absolute; top: 0; bottom: 0; width: 34%; background: var(--beam); box-shadow: 0 0 10px rgba(91, 168, 255, 0.9); animation: dlbar 1.4s var(--sweep) infinite; }
@keyframes dlbar { from { left: -34%; } to { left: 100%; } }

@media (max-width: 760px) {
  .flow { height: 300vh; }
  .flow-pin { padding-top: 84px; }
  .flow-box { width: 94vw; aspect-ratio: 4 / 5; max-height: calc(100svh - 280px); }
  .chip { padding: 7px 10px 7px 8px; font-size: 11.5px; gap: 6px; }
  .chip svg { width: 14px; height: 14px; }
  .fnode { padding: 9px 12px; }
  .fnode b { font-size: 13px; }
  .flow-steps li { padding: 12px 12px 0; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile { min-height: 250px; }
  .tile.t0, .tile.t6 { grid-column: auto; grid-row: auto; }
  .ev-row { flex-direction: column; height: auto; }
  .ev, .ev.is-on { flex: none; height: 260px; }
  .ev .ev-d { opacity: 1; transform: none; }
  .ev:not(.is-on) .ev-body { top: auto; display: block; padding: 22px 24px; }
  .ev:not(.is-on) .ev-k { writing-mode: horizontal-tb; transform: none; }
  .ev:not(.is-on) .ev-src, .ev:not(.is-on) .ev-d { display: block; }
  .demo-loading { min-width: 0; width: 86%; bottom: 12px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-tile] { clip-path: none; }
  .hub-scan, .dl-bar i { animation: none; }
}

/* Short laptop screens: the bottom scan labels would touch the headline. */
@media (max-height: 820px) {
  .hud-l.bl, .hud-l.br { display: none; }
}
