/* LIDA Tools — design system, v2 "blueprint".
   A CAD / drafting-table language: a live blueprint grid behind the page, square nodes on structural corners, mono
   section bars, glass cards with a cursor spotlight, a calibrated scroll ruler on the right edge.
   Tokens first, then base, chrome (scene, header, ruler), components, sections, motion. Native page scroll only. */

@font-face { font-family: "Sora"; src: url("../fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  /* colour */
  --bg: #05060b;
  --bg-2: #08090d;
  --surface: #0c0e15;
  --ink: #0d1018;
  --ink-2: #121622;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .1);
  --line-3: rgba(255, 255, 255, .16);
  --line-bp: rgba(159, 180, 255, .45);
  --text: #f4f6fb;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --text-4: #52525b;
  --ice: #9fd0ff;
  --bp: #9fb4ff;
  --blue: #4b95ff;
  --blue-2: #3b82f6;
  --blue-soft: rgba(75, 149, 255, .12);
  --cyan: #00b8d9;
  --sky: #38bdf8;
  --lime: #84cc16;
  --amber: #f59e0b;
  --ok: #34d399;
  --warn: #f59e0b;
  --bad: #f87171;
  /* type */
  --f-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --fs-2xs: .6875rem;  /* 11 */
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-md: 1.0625rem;  /* 17 */
  --fs-lg: 1.25rem;    /* 20 */
  --fs-xl: 1.5rem;     /* 24 */
  --fs-2xl: 1.875rem;  /* 30 */
  --fs-h2: clamp(1.875rem, 1.3rem + 2vw, 2.5rem);
  --fs-display: clamp(2.25rem, 1.1rem + 4.6vw, 4rem);
  /* layout */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --frame: 72rem;
  --wrap: 72rem;
  --prose: 68ch;
  --gutter: clamp(16px, 3.4vw, 40px);
  --pad: clamp(16px, 3vw, 40px);
  --r-xl: 20px; --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --header-h: 64px;
  --ruler-w: 56px;
  --rs: 0px;            /* space reserved for the ruler (set below when it overlaps the frame) */
  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .85s;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-width: thin; scrollbar-color: rgba(159, 180, 255, .2) transparent;
}
html.has-ruler { scrollbar-width: none; }
html.has-ruler::-webkit-scrollbar { display: none; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-thumb { background: rgba(159, 180, 255, .18); border-radius: 10px; border: 3px solid var(--bg); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font: 400 var(--fs-md)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--cyan); color: #000; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; color: var(--text); }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre { font-family: var(--f-mono); }
code { font-size: .86em; padding: .1em .4em; border-radius: 5px; background: rgba(159, 180, 255, .08); border: 1px solid rgba(159, 180, 255, .12); color: #bfe0ff; }
kbd { font-size: .78em; padding: .12em .45em; border-radius: 5px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); }
strong { font-weight: 600; color: var(--text); }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: var(--fs-sm); transition: top .25s var(--ease); }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; stroke: currentColor; }
.mono { font-family: var(--f-mono); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); transition: color .25s, gap .35s var(--ease); }
.text-link .i { width: 14px; height: 14px; }
.text-link:hover { color: var(--cyan); gap: 12px; }
.link, .prose a, .answer a, .lead a, .rows a, .spec a, .contact p a, .plan a:not(.btn) { color: var(--ice); text-decoration: underline; text-decoration-color: rgba(159, 208, 255, .35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.link:hover, .prose a:hover, .answer a:hover, .lead a:hover, .rows a:hover, .spec a:hover, .contact p a:hover, .plan a:not(.btn):hover { color: #fff; text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- layout */
.page { position: relative; z-index: 2; }
.wrap { width: 100%; max-width: calc(var(--frame) + var(--rs)); margin-inline: auto; padding-left: var(--pad); padding-right: calc(var(--pad) + var(--rs)); }
.frame { position: relative; width: 100%; max-width: calc(var(--frame) + var(--rs)); margin-inline: auto; padding-right: var(--rs); }
.frame > .frame-in { position: relative; }
@media (max-width: 1290px) and (min-width: 641px) { .has-ruler { --rs: var(--ruler-w); } }
@media (max-width: 768px) { :root { --ruler-w: 34px; } }

/* fixed structural guides at the edges of the frame */
.guides { position: fixed; inset: 0 var(--rs) 0 0; z-index: 3; pointer-events: none; display: none; }
.guides::before { content: ""; position: absolute; inset: 0; margin-inline: auto; max-width: var(--frame); border-inline: 1px solid rgba(255, 255, 255, .055); }
@media (min-width: 1024px) { .guides { display: block; } }

/* ---------------------------------------------------------------- background scene */
.bg-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-scene canvas, .bg-static { -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 25%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 25%, transparent 100%); }
.bg-static { position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(143,168,255,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(143,168,255,.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(143,168,255,.065) 1px, transparent 1px), linear-gradient(to bottom, rgba(143,168,255,.065) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 128px 128px, 128px 128px; background-position: center top; }
.scene-live .bg-static { display: none; }
#glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; z-index: 1; will-change: transform; transform: translate3d(-999px, -999px, 0);
  background: radial-gradient(circle, rgba(75,149,255,.065) 0%, rgba(0,184,217,.025) 38%, transparent 70%); }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(5, 6, 11, .42); -webkit-backdrop-filter: blur(40px) saturate(1.6); backdrop-filter: blur(40px) saturate(1.6);
  transition: transform .7s var(--ease), background-color .4s, box-shadow .5s; view-transition-name: site-header; }
.js .site-header { animation: nav-in 1s var(--ease) backwards; }
@keyframes nav-in { from { transform: translateY(-100%); opacity: 0; } }
.is-scrolled .site-header { background: rgba(5, 6, 11, .55); box-shadow: 0 12px 40px -14px rgba(0,0,0,.7); }
.site-header.nav-hide { transform: translateY(-110%); }
.nav-shell { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .5s var(--ease); }
.is-scrolled .nav-shell { height: 54px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; white-space: nowrap; }
.brand b { font: 600 14px/1 var(--f-display); letter-spacing: -.02em; color: #fff; }
.brand .t { font: 400 14px/1 var(--f-text); color: var(--text-2); }
.brand .brand-mark { width: 18px; height: 18px; align-self: center; margin-right: 4px; }
.nav { position: relative; display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; transition: color .2s, opacity .5s var(--ease), transform .6s var(--ease); }
.nav a:hover, .nav a[aria-current], .nav a.nav-on { color: #fff; }
.nav .nav-logo { width: 18px; height: 18px; border-radius: 5px; }
.js .nav a { animation: fade-down .8s var(--ease) backwards; animation-delay: calc(.35s + var(--k, 0) * 70ms); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }
.nav-hide .nav a, .nav-hide .nav-cta { opacity: 0; transform: translateY(-10px); }
#nav-ind { position: absolute; left: 0; bottom: -12px; height: 1px; width: 0; opacity: 0; background: var(--blue); box-shadow: 0 0 8px var(--blue); pointer-events: none;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .4s; }
.is-scrolled #nav-ind { bottom: -7px; }
.nav-cta { display: flex; align-items: center; gap: 10px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.nav-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--cyan) 65%, #fff); box-shadow: 0 0 10px rgba(75,149,255,.7); }
.menu-btn { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.menu-btn span { position: relative; width: 16px; height: 10px; }
.menu-btn i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i:first-child { top: 1px; } .menu-btn i:last-child { top: 7px; }
.menu-open .menu-btn i:first-child { top: 4px; transform: rotate(45deg); } .menu-open .menu-btn i:last-child { top: 4px; transform: rotate(-45deg); }
.menu-sheet { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 96px var(--pad) 48px;
  background: rgba(5, 6, 11, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu-open .menu-sheet { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu-sheet nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu-sheet nav a { display: flex; align-items: center; gap: 14px; padding: 18px 2px; border-bottom: 1px solid var(--line); font: 600 clamp(1.5rem, 6vw, 2rem)/1 var(--f-display); letter-spacing: -.03em;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 50ms); }
.menu-sheet nav a::before { content: "0" counter(m); counter-increment: m; font: 500 11px/1 var(--f-mono); color: var(--text-3); width: 24px; }
.menu-sheet nav { counter-reset: m; }
.menu-sheet nav a img { width: 26px; height: 26px; border-radius: 7px; }
.menu-sheet nav a[aria-current] { color: var(--ice); }
.menu-open .menu-sheet nav a { opacity: 1; transform: none; }
@media (max-width: 900px) { .nav { display: none; } .menu-btn { display: grid; } .nav-cta .btn { display: none; } }

/* ---------------------------------------------------------------- calibrated ruler (right edge) */
.ruler { position: fixed; right: 0; top: var(--header-h); height: calc(100vh - var(--header-h)); width: var(--ruler-w); z-index: 40; user-select: none; touch-action: none; cursor: ns-resize;
  background: linear-gradient(90deg, transparent, rgba(5,6,11,.5)); opacity: .55; transition: opacity .5s, top .5s var(--ease), height .5s var(--ease); }
.is-scrolled .ruler { top: 54px; height: calc(100vh - 54px); }
.nav-away .ruler { top: 0; height: 100vh; }
.ruler:hover, .ruler.is-hot { opacity: 1; }
.ruler-ticks { position: absolute; inset: 0; }
.ruler-tick { position: absolute; right: 0; display: flex; align-items: center; gap: 6px; transform: translateY(-50%); pointer-events: none; }
.ruler-tick b { font: 500 9px/1 var(--f-mono); color: var(--text-3); transform-origin: right center; }
.ruler-tick i { display: block; height: 1px; width: 7px; background: rgba(255,255,255,.13); transform-origin: right center; }
.ruler-tick.major i { width: 14px; background: rgba(255,255,255,.34); }
.ruler-spine, .ruler-fill { position: absolute; right: 0; top: 3%; width: 1px; pointer-events: none; }
.ruler-spine { height: 94%; background: rgba(255,255,255,.08); }
.ruler-fill { height: 0; background: linear-gradient(var(--blue), var(--ice)); box-shadow: 0 0 10px var(--blue), 0 0 2px #fff; }
.ruler-lens { position: absolute; right: 0; top: 3%; width: 52px; height: 36px; transform: translateY(-50%); border-radius: 4px 0 0 4px; background: #070d1b; cursor: grab;
  border: 1px solid rgba(110,175,255,.55); border-right: 0; box-shadow: 0 0 16px rgba(75,149,255,.55), 0 0 36px rgba(75,149,255,.25), inset 0 0 12px rgba(75,149,255,.22);
  transform-origin: 100% 50%; transition: width .4s var(--ease), height .4s var(--ease), border-radius .4s var(--ease), rotate .4s var(--ease), box-shadow .35s; }
.ruler-lens::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ice) 40%, #fff); box-shadow: 0 0 8px #60a5fa; }
.ruler-lens::after { content: ""; position: absolute; top: 50%; left: -24px; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, #60a5fa); box-shadow: 0 0 8px var(--blue-2); }
.ruler-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px/1 var(--f-mono); letter-spacing: .04em; color: #cfe6ff; text-shadow: 0 0 8px var(--blue), 0 0 16px rgba(75,149,255,.7); }
.ruler:hover .ruler-lens, .ruler.is-hot .ruler-lens { width: 50px; height: 34px; }
.ruler .ruler-lens:hover { width: 42px; height: 30px; border-radius: 14px 0 0 14px; rotate: -2deg; box-shadow: 0 0 22px rgba(96,165,250,.8), 0 0 52px rgba(75,149,255,.35), inset 0 0 12px rgba(75,149,255,.32); }
.ruler .ruler-lens.drag { width: 37px; height: 26px; border-radius: 16px 0 0 16px; rotate: -3.5deg; cursor: grabbing; box-shadow: 0 0 30px rgba(130,195,255,.95), 0 0 70px rgba(75,149,255,.5), inset 0 0 16px rgba(110,175,255,.42); }
.ruler .ruler-lens:hover .ruler-pct, .ruler .ruler-lens.drag .ruler-pct { font-size: 10px; }
@media (max-width: 768px) { .ruler-lens { width: 34px; height: 28px; } .ruler-pct { font-size: 9px; } .ruler-tick b { display: none; } }
@media (max-width: 640px) { .ruler { display: none; } }

/* ---------------------------------------------------------------- buttons, pills, labels */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--fs-xs)/1 var(--f-text); white-space: nowrap; transition: background-color .25s, border-color .25s, color .25s, box-shadow .35s, transform .45s var(--ease); }
.btn > span { display: inline-flex; align-items: center; gap: 9px; transition: transform .45s var(--ease); }
.btn .i { width: 15px; height: 15px; }
.btn-sm { height: 32px; padding: 0 16px; font-size: 12px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: var(--fs-sm); }
.btn-primary { background: #fff; color: #000; box-shadow: 0 0 28px rgba(255,255,255,.18); }
.btn-primary:hover { background: #e4e4e7; box-shadow: 0 0 40px rgba(255,255,255,.28); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); }
.btn-tech { height: 40px; padding: 0 16px; border-radius: 4px; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #000; gap: 12px; }
.btn-tech::after { content: ">"; font-weight: 600; }
.btn-cyan { background: var(--cyan); } .btn-cyan:hover { background: #22d3ee; box-shadow: 0 0 24px rgba(0,184,217,.45); }
.btn-lime { background: var(--lime); } .btn-lime:hover { background: #9ae624; box-shadow: 0 0 24px rgba(132,204,22,.45); }
.pills { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); font-size: 12px; color: var(--text-2); }
.pill .i { width: 14px; height: 14px; }
.pill.c-cyan .i { color: var(--cyan); } .pill.c-sky .i { color: var(--sky); } .pill.c-lime .i { color: var(--lime); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--fs-2xs)/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.kicker img, .kicker svg { width: 20px; height: 20px; border-radius: 5px; }
.tag-mono { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 4px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .04em; color: #d4d4d8; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 4px; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #6ee7b7; }
.badge.offer { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 3px; background: rgba(0,0,0,.18); font: 600 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.65; color: var(--text-2); max-width: 42rem; }
.lead strong { font-weight: 500; color: #e4e4e7; }
.display { font-size: var(--fs-display); line-height: 1.06; letter-spacing: -.03em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.028em; line-height: 1.12; }
.grad-text { background: linear-gradient(180deg, #fff, #f4f4f5 45%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- sections and CAD frames */
.sec { position: relative; border-bottom: 1px solid var(--line); }
.sec.alt { background: rgba(6, 7, 12, .58); }
.sec.solid { background: rgba(5, 6, 11, .72); }
.node { position: absolute; width: 6px; height: 6px; background: var(--bg); border: 1px solid var(--line-bp); z-index: 20; pointer-events: none; display: none; transition: border-color .25s, background-color .25s; }
.node.tl { top: -3.5px; left: -3.5px; } .node.tr { top: -3.5px; right: calc(var(--rs) - 3.5px); }
.node.bl { bottom: -3.5px; left: -3.5px; } .node.br { bottom: -3.5px; right: calc(var(--rs) - 3.5px); }
@media (min-width: 1024px) { .node { display: block; } }
.sec-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015);
  font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.sec-bar span:last-child:not(:first-child) { text-align: right; }
@media (max-width: 640px) { .sec-bar span:last-child:not(:first-child) { display: none; } }
.sec-body { padding: clamp(24px, 4vw, 48px) var(--pad); }
.sec-body.roomy { padding-block: clamp(48px, 7vw, 96px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head > div { max-width: 40rem; }
.sec-head .h2 { margin-top: 10px; }
.sec-head .lead { margin-top: 16px; font-size: var(--fs-md); }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-logo { width: 88px; height: 88px; margin-bottom: 20px; }
.rule-line { position: relative; border-top: 1px solid var(--line-2); margin-bottom: clamp(32px, 5vw, 56px); }
.rule-line::before, .rule-line::after { content: ""; position: absolute; top: -4px; width: 8px; height: 8px; background: var(--cyan); }
.rule-line::before { left: 0; } .rule-line::after { right: 0; }
.rule-line > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 12px; font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) 0 112px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-rays { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 25%, rgba(5,6,11,.8) 92%); }
.hero .frame { z-index: 2; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: var(--pad); will-change: transform, opacity; }
.hero h1 { max-width: 56rem; font-size: clamp(2.375rem, 1rem + 5.4vw, 4rem); line-height: 1.06; letter-spacing: -.03em; }
.hero .lead { margin-top: 24px; max-width: 42rem; }
.hero .btn-row { margin-top: 36px; justify-content: center; gap: 16px; }
.hero .pills { margin-top: 36px; }
.mark-stage { position: relative; margin-bottom: 24px; display: flex; flex-direction: column; align-items: center; }
.lt-stage { position: relative; z-index: 1; width: 260px; height: 260px; user-select: none; touch-action: none; }
.lt-stage svg { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 640px) { .lt-stage { width: 310px; height: 310px; } }
.mark-hint { margin-top: 4px; font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.lt-wm { position: absolute; left: 50%; top: 46%; z-index: 0; display: flex; gap: .2em; pointer-events: none; user-select: none; white-space: nowrap;
  font: 700 clamp(64px, 11.5vw, 150px)/1 var(--f-display); letter-spacing: -.055em; transform: translate(calc(-50% + var(--wx, 0px)), calc(-50% + var(--wy, 0px)));
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 68% 58% at 50% 50%, #000 30%, transparent 100%); }
.lt-wm span, .ft-wm span { background: linear-gradient(180deg, rgba(214,228,255,.14), rgba(75,149,255,.03)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lt-wm .t, .ft-wm .t { font-weight: 400; }
.lt-beam { animation: lt-beam 5.5s linear infinite; }
@keyframes lt-beam { to { stroke-dashoffset: -100; } }
/* scroll cue: see "hero fit" below */

/* product hero (GRADE / MOSAIC) */
.hero.hero-split { min-height: min(100svh, 920px); padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-inline: var(--pad); }
.hero-split .hero-copy { text-align: left; }
.hero-split h1 { font-size: clamp(2.375rem, 1.1rem + 4.4vw, 4rem); max-width: 14ch; margin-top: 18px; }
.hero-split .lead { margin-top: 22px; }
.hero-split .btn-row { margin-top: 32px; }
.price-line { margin-top: 22px; font: 500 12px/1.6 var(--f-mono); letter-spacing: .02em; color: var(--text-3); }
.price-line strong { color: #fff; font-weight: 600; }
.logo-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.logo-stage .logo-box { width: 100%; height: 100%; border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(159,180,255,.05) inset; }
.logo-stage .stage-hint { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.logo-stage .dim { position: absolute; font: 500 9px/1 var(--f-mono); letter-spacing: .1em; color: rgba(159,180,255,.55); }
.logo-stage .dim.t { top: -20px; left: 0; right: 0; display: flex; align-items: center; gap: 8px; }
.logo-stage .dim.t::before, .logo-stage .dim.t::after { content: ""; flex: 1; height: 1px; background: rgba(159,180,255,.25); }
.logo-stage .dim.l { left: -22px; top: 0; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 8px; }
.logo-stage .dim.l::before, .logo-stage .dim.l::after { content: ""; flex: 1; width: 1px; background: rgba(159,180,255,.25); }
.logo-stage .corner { position: absolute; width: 14px; height: 14px; border-color: rgba(159,180,255,.5); border-style: solid; border-width: 0; }
.logo-stage .corner.a { top: -8px; left: -8px; border-top-width: 1px; border-left-width: 1px; } .logo-stage .corner.b { top: -8px; right: -8px; border-top-width: 1px; border-right-width: 1px; }
.logo-stage .corner.c { bottom: -8px; left: -8px; border-bottom-width: 1px; border-left-width: 1px; } .logo-stage .corner.d { bottom: -8px; right: -8px; border-bottom-width: 1px; border-right-width: 1px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .logo-stage { width: min(78vw, 360px); order: -1; margin-bottom: 24px; }
  .logo-stage .dim { display: none; }
}

/* live logos: SVG fallback, WebGL canvas on top when available */
.logo-gl { position: relative; display: block; overflow: hidden; background: #090b10; }
.logo-gl > img, .logo-gl > svg { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.logo-gl > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.logo-gl.gl-on > canvas { opacity: 1; }
.logo-gl.gl-on > img, .logo-gl.gl-on > svg { visibility: hidden; }

/* page hero (support, docs hub, legal) */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .frame-in { padding-inline: var(--pad); }
.page-hero .display { margin-top: 18px; max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }

/* ---------------------------------------------------------------- spotlight cards */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(120,170,255,.11), transparent 65%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(148,197,255,.55), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }

/* product cards (landing suite) */
.suite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .suite { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); transition: border-color .3s, transform .4s var(--ease); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.product-id { display: flex; align-items: center; gap: 14px; }
.product-id .logo-gl { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line-2); }
.product-id h2, .product-id h3 { font-size: var(--fs-lg); }
.product-id p { margin-top: 2px; font: 400 var(--fs-2xs)/1.4 var(--f-mono); color: var(--text-2); }
.product > div > p.desc { font-size: clamp(.9375rem, .9rem + .2vw, 1rem); line-height: 1.7; color: #d4d4d8; }
.product .ticks { margin-top: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; margin-bottom: 32px; }
.stat { padding: 12px; border-radius: var(--r-md); background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.stat b { display: block; font: 600 var(--fs-lg)/1.2 var(--f-display); color: #fff; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 4px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-foot .from { font: 500 12px/1 var(--f-mono); color: var(--text-2); }
.product-foot .from strong { color: #fff; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 20px; font-size: var(--fs-sm); color: #d4d4d8; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--cyan); }
.ticks.lime li::before { background: var(--lime); }
.ticks li strong { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- data tables */
.tbl-wrap { border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; overflow-x: auto; background: rgba(9,11,16,.72); }
table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: left; }
.tbl thead th { padding: 12px 20px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7b8396; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl tbody th, .tbl tbody td { padding: 16px 20px; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.06); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font: 500 var(--fs-sm)/1.35 var(--f-display); color: #fff; letter-spacing: -.01em; }
.tbl tbody td { font-size: var(--fs-xs); line-height: 1.6; color: var(--text-2); }
.tbl td.spec, .tbl th.spec { text-align: right; font: 500 12px/1.4 var(--f-mono); color: #d4d4d8; white-space: nowrap; }
.tbl td.spec { color: #d4d4d8; }
.tbl tbody tr { background-image: linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan) 70%, transparent); background-repeat: no-repeat; background-size: 0 1px; background-position: var(--ox, 0%) 100%;
  transition: background-size .65s var(--ease), background-color .35s; }
.tbl tbody tr:hover { background-size: 100% 1px; background-color: rgba(75,149,255,.05); }
.tbl tbody tr:hover > :first-child { box-shadow: inset 2px 0 0 var(--blue); }
.tbl td code { font-size: 11.5px; }
@media (max-width: 640px) {
  .tbl.stack thead { display: none; }
  .tbl.stack tbody tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .tbl.stack tbody tr:last-child { border-bottom: 0; }
  .tbl.stack tbody th, .tbl.stack tbody td { padding: 0; border: 0; }
  .tbl.stack tbody td:not(.spec) { grid-column: 1 / -1; margin-top: 6px; }
  .tbl.stack tbody td.spec { grid-row: 1; grid-column: 2; }
}

/* ---------------------------------------------------------------- hover underline for rows */
.hl { position: relative; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan) 70%, transparent);
  transform: scaleX(0); transform-origin: var(--ox, 0%) 50%; transition: transform .65s var(--ease); pointer-events: none; }
.hl:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- editor windows */
.win { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #090b11; overflow: hidden; box-shadow: 0 50px 120px -50px rgba(0,0,0,.95); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02);
  font: 500 var(--fs-2xs)/1.2 var(--f-mono); color: var(--text-2); white-space: nowrap; }
.win-bar .path { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.win-bar .path b { color: var(--sky); font-weight: 600; }
.win-bar .path i { font-style: normal; color: var(--text-4); }
.win-bar .path span { color: #d4d4d8; overflow: hidden; text-overflow: ellipsis; }
.win-bar .meta { color: var(--text-3); }
.win-bar .live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); }
.win-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
@media (max-width: 640px) { .win-bar .meta, .win-bar .live { display: none; } }
.win > picture img, .win > img { width: 100%; }
.stage-shot { position: relative; }
.stage-shot .win { transform: perspective(1800px) rotateX(calc((1 - var(--in, 1)) * 10deg)) scale(calc(.94 + var(--in, 1) * .06)); transform-origin: 50% 0; will-change: transform; }
.stage-glow { position: absolute; left: 10%; right: 10%; top: 8%; height: 70%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(75,149,255,.22), transparent); filter: blur(30px); pointer-events: none; }
.caption { margin-top: 16px; text-align: center; font: 500 var(--fs-2xs)/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dims { position: absolute; font: 500 9px/1 var(--f-mono); letter-spacing: .12em; color: rgba(159,180,255,.45); pointer-events: none; }

/* ---------------------------------------------------------------- before / after */
.ba-wrap { position: relative; }
.ba { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #0b0d16; user-select: none; touch-action: pan-y; --x: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--x)); transition: opacity .5s var(--ease); }
.ba .ba-after.swap { opacity: 0; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: linear-gradient(var(--ice), #fff 50%, var(--ice)); box-shadow: 0 0 14px rgba(75,149,255,.9); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--x); width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border-radius: 4px; background: #070d1b;
  border: 1px solid rgba(110,175,255,.6); box-shadow: 0 0 18px rgba(75,149,255,.55), inset 0 0 10px rgba(75,149,255,.25); color: #cfe6ff; pointer-events: none; }
.ba-knob svg { width: 18px; height: 18px; }
.ba-tag { position: absolute; top: 14px; padding: 6px 10px; border-radius: 4px; background: rgba(5,6,11,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-2);
  font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.ba-tag.l { left: 14px; color: var(--text-2); } .ba-tag.r { right: 14px; color: #bfe0ff; border-color: rgba(110,175,255,.4); }
.ba-read { position: absolute; left: 14px; bottom: 14px; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; color: rgba(207,230,255,.8); text-shadow: 0 1px 6px #000; pointer-events: none; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type="range"]:focus-visible ~ .ba-knob { outline: 1px solid var(--ice); outline-offset: 4px; }
.looks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 4px; width: fit-content; max-width: 100%; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); }
.looks button { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px 0 5px; border-radius: 8px; border: 0; background: none; font: 500 12px/1 var(--f-mono); color: var(--text-2); transition: background .25s, color .25s; }
.looks button img { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; }
.looks button:hover { color: #fff; }
.looks button[aria-pressed="true"] { background: #fff; color: #000; font-weight: 600; }

/* ---------------------------------------------------------------- tab switcher (segmented) */
.seg-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); }
.seg-tabs button { padding: 8px 16px; border: 0; border-radius: 8px; background: none; font: 500 12px/1 var(--f-mono); color: var(--text-2); transition: background .25s, color .25s; }
.seg-tabs button:hover { color: #fff; }
.seg-tabs button[aria-selected="true"], .seg-tabs button[aria-pressed="true"] { background: #fff; color: #000; font-weight: 600; }

/* ---------------------------------------------------------------- feature story (sticky media + chapters) */
.story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.story-steps { position: relative; border-left: 1px solid var(--line); }
.step { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0 8vh clamp(20px, 3vw, 36px); opacity: .3; transition: opacity .6s var(--ease); }
.step::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--line-bp); transition: background .4s, border-color .4s, box-shadow .4s; }
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--blue); border-color: var(--ice); box-shadow: 0 0 10px var(--blue); }
.step:first-child { min-height: 56vh; }
.step .count { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .12em; color: var(--sky); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem); letter-spacing: -.03em; }
.step p { margin-top: 14px; color: var(--text-2); max-width: 46ch; font-size: var(--fs-sm); line-height: 1.7; }
.step-media { display: none; margin-top: 24px; }
.story-media { position: sticky; top: max(calc(var(--header-h) + 32px), calc(50vh - 260px)); }
.story-frame { position: relative; aspect-ratio: 16 / 10.5; }
.story-frame figure { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #0b0d16;
  opacity: 0; transform: scale(.965) translateY(16px); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.story-frame figure.is-active { opacity: 1; transform: none; filter: none; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.story-frame figure.contain img { object-fit: contain; background: #121212; }
.story-progress { display: flex; gap: 6px; margin-top: 18px; }
.story-progress i { flex: 1; height: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.story-progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; transform: scaleX(var(--f, 0)); box-shadow: 0 0 8px var(--blue); }
.story-read { display: flex; justify-content: space-between; margin-top: 10px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 40px; }
  .step:first-child { min-height: 0; }
  .step-media { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); }
}

/* ---------------------------------------------------------------- MOSAIC window (interactive preview of the plugin UI) */
.mock-window { border-radius: var(--r-lg); }
.mock { --m-bg: #141416; --m-panel: #1b1b1f; --m-line: rgba(255,255,255,.07); --m-text: #e6e6ea; --m-dim: #8b8b94; --m-acc: #4b95ff;
  display: grid; grid-template-columns: 228px minmax(0, 1fr); height: clamp(520px, 52vw, 620px); background: var(--m-bg); color: var(--m-text); font: 13px/1.45 var(--f-text); text-align: left; }
.mock .side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--m-line); background: #111113; overflow: hidden; }
.mock .side-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.mock .side-head img, .mock .side-head svg { width: 26px; height: 26px; }
.mock .side-head b { display: block; font-size: 13px; letter-spacing: .04em; }
.mock .side-head small { color: var(--m-dim); font-size: 11px; }
.mock .search { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 7px 10px; border-radius: 8px; background: #1c1c20; color: var(--m-dim); font-size: 12px; }
.mock .search .i { width: 14px; height: 14px; }
.mock .search kbd { margin-left: auto; font: 11px var(--f-text); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--m-line); background: none; }
.mock .grp { padding: 12px 10px 4px; color: #6c6c75; font-size: 11px; font-weight: 600; }
.mock .it { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; color: #c9c9d0; white-space: nowrap; transition: background .2s; }
.mock .it[data-side] { cursor: pointer; }
.mock .it[data-side]:hover { background: rgba(255,255,255,.04); }
.mock .it .i { width: 15px; height: 15px; color: #9a9aa3; }
.mock .it.on { background: rgba(75, 149, 255, .16); color: #fff; }
.mock .it.on .i { color: var(--m-acc); }
.mock .it .sw { width: 8px; height: 8px; border-radius: 50%; }
.mock .main { display: flex; flex-direction: column; min-width: 0; }
.mock .tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--m-line); background: #111113; overflow: hidden; }
.mock .tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 10px; border: 0; border-radius: 8px 8px 0 0; background: none; color: var(--m-dim); font-size: 12.5px; white-space: nowrap; transition: color .2s, background .2s; }
.mock .tab .i { width: 15px; height: 15px; }
.mock .tab:hover { color: #fff; }
.mock .tab[aria-selected="true"] { background: var(--m-bg); color: #fff; box-shadow: 0 2px 0 var(--m-acc) inset; }
.mock .crumbs { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--m-line); color: var(--m-dim); font-size: 12px; }
.mock .crumbs b { color: #fff; font-weight: 500; }
.mock .crumbs .seg { margin-left: auto; display: flex; padding: 2px; border-radius: 8px; background: #1c1c20; }
.mock .crumbs .seg span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; }
.mock .crumbs .seg span.on { background: #2a2a30; color: #fff; }
.mock .crumbs .seg .i { width: 13px; height: 13px; }
.mock .view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mock .panel { position: absolute; inset: 0; padding: 22px 26px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .45s; }
.mock .panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.mock .cover { height: 92px; margin: -22px -26px 0; background: linear-gradient(120deg, #1e2a55, #3a2f6e 45%, #1b3d5a), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M0 12L12 0' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E"); background-blend-mode: overlay; }
.mock .page-card { max-width: 620px; margin: -30px auto 0; padding: 0 20px; }
.mock .pg-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #24242a; border: 1px solid var(--m-line); }
.mock .pg-icon .i { width: 22px; height: 22px; }
.mock h4 { margin: 14px 0 8px; font: 600 22px/1.2 var(--f-text); letter-spacing: -.01em; }
.mock .props { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mock .prop { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #202026; color: #b5b5be; font-size: 11.5px; }
.mock .prop .i { width: 12px; height: 12px; }
.mock .pg p { color: #c6c6ce; margin: 6px 0; }
.mock .pg h5 { margin: 14px 0 6px; font: 600 15px/1.3 var(--f-text); letter-spacing: 0; }
.mock .todo { display: flex; align-items: center; gap: 9px; margin: 5px 0; color: #d4d4da; }
.mock .todo i { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #5d5d66; flex: none; }
.mock .todo.done { color: #77777f; text-decoration: line-through; }
.mock .todo.done i { background: var(--m-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--m-acc); }
.mock .callout { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(75, 149, 255, .1); border: 1px solid rgba(75, 149, 255, .22); color: #cfe0ff; }
.mock .callout .i { width: 16px; height: 16px; color: var(--m-acc); margin-top: 1px; }
.mock .calc { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #1b1b20; border: 1px solid var(--m-line); font: 12px/1.7 var(--f-mono); color: #c9c9d0; }
.mock .calc b { color: #8fd0a8; font-weight: 500; float: right; }
.mock .canvas { inset: 0; padding: 0; background-color: #121214; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 22px 22px; }
.mock .canvas .drag { cursor: grab; touch-action: none; transition: box-shadow .25s; }
.mock .canvas .drag.is-drag { cursor: grabbing; z-index: 5; box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(75,149,255,.6); }
.mock .board-hint { position: absolute; left: 14px; top: 14px; z-index: 4; padding: 5px 9px; border-radius: 4px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.1); font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #a1a1aa; pointer-events: none; }
.mock .frame-b { position: absolute; left: 5%; top: 14%; width: 44%; padding: 26px 12px 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; background: rgba(18,18,20,.6); }
.mock .frame-b > span { position: absolute; top: 6px; left: 12px; color: var(--m-dim); font-size: 11px; }
.mock .frame-b .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock .frame-b img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; pointer-events: none; }
.mock .sticky { position: absolute; width: 150px; padding: 12px; border-radius: 4px; color: #2a2412; font-size: 12px; line-height: 1.4; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.mock .sticky.y { left: 56%; top: 10%; background: #ffe17a; rotate: -2deg; }
.mock .sticky.p { left: 76%; top: 16%; background: #ffb3c7; rotate: 2.5deg; }
.mock .note-card { position: absolute; left: 56%; top: 46%; width: 190px; padding: 12px; border-radius: 10px; background: #1e1e23; border: 1px solid var(--m-line); }
.mock .note-card b { display: block; margin-bottom: 6px; font-size: 12.5px; }
.mock .mini-calc { position: absolute; left: 80%; top: 44%; width: 120px; padding: 8px; border-radius: 10px; background: #1e1e23; border: 1px solid var(--m-line); }
.mock .mini-calc .scr { text-align: right; font: 600 16px/1.2 var(--f-mono); padding: 2px 4px 6px; }
.mock .mini-calc .keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.mock .mini-calc .keys span { display: grid; place-items: center; height: 18px; border-radius: 4px; background: #2a2a30; font-size: 10px; color: #cfcfd5; }
.mock .mini-calc .keys span.acc { background: var(--m-acc); color: #fff; }
.mock .wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mock .dock { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 2px; padding: 5px; transform: translateX(-50%); border-radius: 12px; background: #1d1d22; border: 1px solid var(--m-line); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.mock .dock span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #b9b9c2; }
.mock .dock span.on { background: var(--m-acc); color: #fff; }
.mock .dock .i { width: 15px; height: 15px; }
.mock .minimap { position: absolute; right: 14px; top: 14px; width: 110px; height: 66px; border-radius: 8px; background: #1a1a1e; border: 1px solid var(--m-line); }
.mock .minimap::after { content: ""; position: absolute; left: 22%; top: 20%; width: 52%; height: 56%; border: 1.5px solid var(--m-acc); border-radius: 4px; }
.mock .mtbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mock .mtbl th { text-align: left; padding: 9px 10px; color: var(--m-dim); font-weight: 500; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.mock .mtbl th .i { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.mock .mtbl td { padding: 9px 10px; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.mock .tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.mock .t-b { background: rgba(75,149,255,.18); color: #9cc4ff; } .mock .t-g { background: rgba(79,209,139,.16); color: #8fe0b2; } .mock .t-o { background: rgba(255,181,71,.16); color: #ffcf8a; } .mock .t-p { background: rgba(180,140,255,.16); color: #cdb6ff; } .mock .t-n { background: #26262c; color: #b5b5be; }
.mock .bar { display: inline-block; width: 80px; height: 6px; border-radius: 6px; background: #2a2a30; vertical-align: middle; overflow: hidden; }
.mock .bar i { display: block; height: 100%; background: var(--m-acc); border-radius: 6px; }
.mock .mtbl .sum td { color: var(--m-dim); border-bottom: 0; }
.mock .tbl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mock .tbl-head b { font-size: 14px; }
.mock .seg2 { display: flex; gap: 4px; margin-left: 10px; }
.mock .seg2 span { padding: 3px 9px; border-radius: 6px; color: var(--m-dim); font-size: 11.5px; }
.mock .seg2 span.on { background: #26262c; color: #fff; }
.mock .tbl-head .new { margin-left: auto; padding: 5px 10px; border-radius: 7px; background: var(--m-acc); color: #fff; font-size: 11.5px; }
.mock .kanban { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; height: 100%; }
.mock .col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: #18181c; }
.mock .col-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #d8d8de; padding: 2px 2px 4px; }
.mock .col-h .n { margin-left: auto; color: var(--m-dim); font-weight: 500; }
.mock .col-h .sw { width: 8px; height: 8px; border-radius: 50%; }
.mock .kcard { padding: 10px; border-radius: 9px; background: #222227; border: 1px solid var(--m-line); }
.mock .kcard b { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 8px; }
.mock .kcard .meta { display: flex; align-items: center; gap: 6px; color: var(--m-dim); font-size: 11px; }
.mock .kcard .meta .i { width: 12px; height: 12px; }
.mock .kcard .av { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #071022; }
.mock .cal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mock .cal-h b { font-size: 14px; }
.mock .cal-h .seg2 { margin-left: auto; }
.mock .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--m-line); border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; }
.mock .cal div { min-height: 64px; padding: 6px; background: var(--m-bg); font-size: 11px; color: var(--m-dim); }
.mock .cal .dow { min-height: 0; padding: 6px; text-align: center; background: #18181c; font-weight: 600; }
.mock .cal .today { color: #fff; }
.mock .cal .today::before { content: ""; float: right; width: 6px; height: 6px; margin: 3px; border-radius: 50%; background: var(--m-acc); }
.mock .cal .ev { display: block; margin-top: 4px; padding: 2px 6px; border-radius: 5px; font-size: 10.5px; color: #e9e9ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .mock { grid-template-columns: 1fr; height: 560px; }
  .mock .side { display: none; }
  .mock .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock .kanban .col:nth-child(n+3) { display: none; }
  .mock .mtbl .hide-m { display: none; }
  .mock .frame-b { width: 60%; } .mock .sticky.p, .mock .mini-calc { display: none; } .mock .sticky.y { left: 68%; } .mock .note-card { left: 52%; top: 58%; }
}
@media (max-width: 520px) {
  .mock { height: 520px; font-size: 12px; }
  .mock .tab span { display: none; } .mock .tab { padding: 8px 12px 10px; }
  .mock .panel { padding: 18px 16px; }
  .mock .cover { margin: -18px -16px 0; }
  .mock .page-card { padding: 0; }
  .mock .crumbs .seg, .mock .mtbl .hide-s { display: none; }
  .mock .frame-b { left: 4%; width: 92%; top: 12%; } .mock .sticky.y { left: 8%; top: 56%; } .mock .note-card { left: auto; right: 4%; top: 58%; width: 150px; }
  .mock .cal div { min-height: 48px; } .mock .cal .ev { display: none; } .mock .cal .ev.keep { display: block; }
}

/* ---------------------------------------------------------------- gallery carousel */
.gallery-sec { padding: 56px 0; }
.gallery-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.car { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.car.is-drag { cursor: grabbing; }
.car-track { display: flex; gap: 16px; width: max-content; will-change: transform; padding: 4px 0; }
.car-card { position: relative; flex: 0 0 auto; width: min(360px, 74vw); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); background: #0b0d16; transition: border-color .3s; }
.car-card:hover { border-color: rgba(110,175,255,.45); }
.car-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.car-card:hover img { transform: scale(1.04); }
.car-card figcaption { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 4px; background: rgba(5,6,11,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-2);
  font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #e4e4e7; }
.car-card figcaption b { color: var(--sky); font-weight: 500; }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { grid-column: span 2; display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }
.cell.w3 { grid-column: span 3; } .cell.w4 { grid-column: span 4; }
.cell .ico { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 8px; border: 1px solid rgba(110,175,255,.25); background: rgba(75,149,255,.08); color: var(--ice); }
.cell .ico .i { width: 18px; height: 18px; }
.cell .big { margin-bottom: 10px; font: 600 clamp(2.25rem, 1.6rem + 2vw, 3rem)/1 var(--f-display); letter-spacing: -.04em; color: #fff; }
.cell h3 { font-size: var(--fs-md); letter-spacing: -.015em; }
.cell p { margin-top: 8px; font-size: var(--fs-xs); line-height: 1.65; color: var(--text-2); }
.cell-media { margin-top: auto; padding-top: 20px; }
.cell-media.inset picture, .cell-media.inset img { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.cell .idx { position: absolute; top: 14px; right: 16px; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; color: var(--text-4); }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell, .cell.w3, .cell.w4 { grid-column: span 1; } .cell.w4 { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .cell.w4 { grid-column: auto; } }

/* ---------------------------------------------------------------- feature rows (MOSAIC pages / boards / plans, principles) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 16px clamp(24px, 4vw, 64px); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.row .rn { display: block; margin-bottom: 10px; font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .12em; color: var(--sky); }
.row h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); letter-spacing: -.02em; }
.row .sub { margin-top: 8px; font: 500 var(--fs-2xs)/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.row p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.75; }
.row .ticks { margin-top: 16px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- licensing */
.lic-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.lic-head .lead { margin-top: 12px; font-size: var(--fs-md); max-width: 30rem; }
.lic-head .seg-tabs { margin-top: 24px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 56rem; }
.plans.center { margin-inline: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; border: 1px solid; transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.plan:hover { transform: translateY(-3px); }
.plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px; font: 600 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.plan-b { flex: 1; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 28px); }
.plan .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.plan .price b { font: 600 clamp(2rem, 1.6rem + 1.4vw, 2.5rem)/1 var(--f-display); letter-spacing: -.03em; color: #fff; }
.plan .price .cur { font: 600 12px/1 var(--f-mono); }
.plan .price s { font: 500 var(--fs-sm)/1 var(--f-mono); color: var(--text-3); }
.plan .terms { margin-top: 10px; font: 500 var(--fs-2xs)/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.plan .who { margin-top: 16px; font-size: var(--fs-sm); line-height: 1.65; color: #d4d4d8; }
.plan .btn-tech { margin-top: 28px; width: fit-content; }
.plan-inc { border-top: 1px solid; }
.plan-inc > p { padding: 8px 20px; font: 500 var(--fs-2xs)/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid; }
.plan-inc ul { list-style: none; display: grid; gap: 12px; padding: 22px 24px; font-size: var(--fs-sm); color: #d4d4d8; }
.plan-inc li { position: relative; padding-left: 18px; line-height: 1.55; }
.plan-inc li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; }
.plan.personal { border-color: rgba(22, 78, 99, .7); background: #071015; }
.plan.personal .plan-h { background: rgba(0,184,217,.2); color: var(--cyan); border-bottom: 1px solid rgba(22,78,99,.7); }
.plan.personal .price .cur { color: var(--cyan); }
.plan.personal .plan-inc { border-color: rgba(22,78,99,.7); }
.plan.personal .plan-inc > p { background: rgba(0,184,217,.1); color: rgba(165,243,252,.8); border-color: rgba(22,78,99,.6); }
.plan.personal .plan-inc li::before { background: var(--cyan); }
.plan.personal:hover { border-color: rgba(0,184,217,.6); box-shadow: 0 0 45px rgba(0,184,217,.08); }
.plan.pro { border-color: rgba(132,204,22,.55); background: #0b1205; box-shadow: 0 0 45px rgba(132,204,22,.08); }
.plan.pro .plan-h { background: var(--lime); color: #000; }
.plan.pro .plan-h small { padding: 3px 6px; border-radius: 3px; background: rgba(0,0,0,.15); font-size: 10px; }
.plan.pro .price .cur { color: var(--lime); padding: 3px 6px; border: 1px solid rgba(132,204,22,.6); }
.plan.pro .plan-inc { border-color: rgba(132,204,22,.4); }
.plan.pro .plan-inc > p { background: var(--lime); color: #000; font-weight: 600; border-color: rgba(132,204,22,.4); }
.plan.pro .plan-inc li::before { background: var(--lime); }
.plan.pro:hover { border-color: rgba(132,204,22,.85); box-shadow: 0 0 60px rgba(132,204,22,.14); }
.plan .badge.offer { color: inherit; }
.plan.personal .badge.offer { background: var(--cyan); color: #000; }
.pricing-note { margin-top: 28px; max-width: 56rem; font-size: var(--fs-xs); line-height: 1.7; color: var(--text-3); }
.plans.center + .pricing-note { margin-inline: auto; text-align: center; }
[data-lic-panel][hidden] { display: none; }
.lic-swap { animation: lic-swap .6s var(--ease); }
@keyframes lic-swap { from { opacity: .2; transform: translateY(8px); } }

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; list-style: none; font: 500 var(--fs-md)/1.4 var(--f-display); letter-spacing: -.01em; color: #fff; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; font: 400 18px/1 var(--f-mono); color: var(--text-3); transition: transform .45s var(--ease), color .3s; }
.faq summary .pm::before { content: "+"; }
.faq details[open] summary .pm, .faq details.is-open summary .pm { transform: rotate(45deg); color: var(--ice); }
.faq summary:hover .pm { color: #fff; }
.faq .answer { overflow: hidden; }
.faq .answer p { padding-bottom: 22px; max-width: 62ch; font-size: var(--fs-sm); line-height: 1.75; color: var(--text-2); }
.faq-wrap { max-width: 56rem; }
.faq-wrap.center { margin-inline: auto; }

/* ---------------------------------------------------------------- call to action */
.cta { position: relative; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(52,92,190,.28), transparent 70%), linear-gradient(180deg, rgba(14,17,26,.8), rgba(7,8,13,.92)); }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(to right, rgba(143,168,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(143,168,255,.05) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 75%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem); max-width: 22ch; margin: 14px auto 0; letter-spacing: -.03em; }
.cta .lead { margin: 18px auto 0; }
.cta .btn-row { justify-content: center; margin-top: 32px; }
.cta .contact-line { margin-top: 24px; font: 500 12px/1.6 var(--f-mono); color: var(--text-3); }
.cta .contact-line a { color: #7db4ff; transition: color .25s, text-shadow .25s; }
.cta .contact-line a:hover { color: #bfe0ff; text-shadow: 0 0 12px rgba(75,149,255,.8); }
.cta .corner { position: absolute; width: 14px; height: 14px; border: 0 solid rgba(159,180,255,.5); }
.cta .corner.a { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; } .cta .corner.b { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.cta .corner.c { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; } .cta .corner.d { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------------------------------------------------------------- content pages: contact cards, prose, changelog, specs */
.contact { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }
.contact .cn { font: 500 10px/1 var(--f-mono); letter-spacing: .12em; color: var(--text-4); margin-bottom: 16px; }
.contact h3 { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lg); letter-spacing: -.02em; }
.contact h3 .ico { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 8px; background: rgba(75,149,255,.08); border: 1px solid rgba(110,175,255,.25); color: var(--ice); }
.contact h3 .ico .i { width: 18px; height: 18px; }
.contact p { margin-top: 12px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7; }
.contact ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.contact ul li { position: relative; padding-left: 18px; line-height: 1.55; }
.contact ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--cyan); }
.contact .mail { margin-top: auto; padding-top: 22px; font: 500 var(--fs-sm)/1.3 var(--f-mono); color: #7db4ff; word-break: break-word; transition: color .25s, text-shadow .25s; }
.contact .mail:hover { color: #bfe0ff; text-shadow: 0 0 12px rgba(75,149,255,.8); }
.prose { max-width: var(--prose); }
.prose h2 { position: relative; font-size: var(--fs-xl); margin: 56px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--line-bp); }
.prose h3 { font-size: var(--fs-lg); margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.8; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin-top: 14px; }
.prose li + li { margin-top: 6px; }
.prose .updated { margin-top: 48px; font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.changelog { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .changelog { grid-template-columns: 1fr; } }
.release { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }
.release header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.release header img, .release header svg { width: 28px; height: 28px; border-radius: 7px; }
.release header h3 { font-size: var(--fs-lg); }
.release ul { list-style: none; display: grid; gap: 10px; color: var(--text-2); font-size: var(--fs-sm); }
.release li { position: relative; padding-left: 18px; line-height: 1.6; }
.release li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--blue); }
.release li strong { color: var(--text); }
.release .more { margin-top: 20px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; z-index: 2; overflow: hidden; background: radial-gradient(ellipse 75% 70% at 50% 115%, rgba(52,92,190,.24), transparent 70%), linear-gradient(to bottom, rgba(5,6,11,.88), rgba(5,6,11,.97)); }
.ft-top { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(75,149,255,.75) 50%, transparent); box-shadow: 0 0 20px rgba(75,149,255,.5); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px; padding: 64px var(--pad) 56px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.ft-h { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #7b8396; }
.ft-h::before { content: ""; width: 5px; height: 5px; border: 1px solid rgba(75,149,255,.85); box-shadow: 0 0 6px rgba(75,149,255,.6); }
.foot-brand p { max-width: 20rem; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.foot-brand .mail { display: inline-block; margin-top: 18px; font: 500 12px/1 var(--f-mono); color: #7db4ff; transition: color .25s, text-shadow .25s; }
.foot-brand .mail:hover { color: #bfe0ff; text-shadow: 0 0 12px rgba(75,149,255,.8); }
.foot-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); font: 500 10px/1 var(--f-mono); letter-spacing: .1em; color: #8f98ab; }
.foot-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2.6s ease-in-out infinite; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { display: inline-block; font-size: 12px; color: #9aa3b6; transition: color .25s, transform .4s var(--ease); }
.foot-col a:hover { color: #fff; transform: translateX(4px); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px var(--pad); border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; line-height: 1.6; color: var(--text-3); }
.foot-base p { max-width: 28rem; }
.ft-up { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(110,175,255,.35); background: rgba(75,149,255,.06); font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #bfe0ff;
  box-shadow: 0 0 18px rgba(75,149,255,.18); transition: box-shadow .35s, background .35s, transform .35s var(--ease); }
.ft-up:hover { background: rgba(75,149,255,.14); box-shadow: 0 0 28px rgba(75,149,255,.5); transform: translateY(-2px); }
.ft-wm { display: flex; justify-content: flex-start; gap: .2em; height: .64em; overflow: hidden; margin-top: 30px; padding-inline: var(--pad); user-select: none; pointer-events: none; white-space: nowrap;
  font: 700 clamp(72px, 16vw, 236px)/1 var(--f-display); letter-spacing: -.055em; -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 100%); mask-image: linear-gradient(to bottom, #000 25%, transparent 100%); }
.ft-wm span { background: linear-gradient(180deg, rgba(214,228,255,.22), rgba(75,149,255,.04)); -webkit-background-clip: text; background-clip: text; }

/* ---------------------------------------------------------------- HUD, toast, cursor */
.hud { position: fixed; left: 24px; bottom: 20px; z-index: 30; display: none; align-items: center; gap: 16px; font: 500 10px/1 var(--f-mono); letter-spacing: .08em; color: var(--text-3); pointer-events: none; }
.hud b { font-weight: 500; color: #d4d4d8; }
@media (min-width: 900px) and (pointer: fine) { .hud { display: flex; } }
.toast { position: fixed; left: 24px; bottom: 56px; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(12,14,21,.95); border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 500 12px/1.3 var(--f-mono); color: #f4f4f5; box-shadow: 0 20px 50px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.on { opacity: 1; transform: none; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
html.px-cur, html.px-cur * { cursor: none !important; }
html.px-cur input[type="search"], html.px-cur input[type="text"], html.px-cur textarea { cursor: text !important; }
#px-cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s;
  filter: drop-shadow(0 0 2px rgba(120,180,255,1)) drop-shadow(0 0 8px rgba(75,149,255,.85)) drop-shadow(0 0 16px rgba(75,149,255,.45)); }
#px-cursor canvas { width: 20px; height: 20px; image-rendering: pixelated; transition: transform .18s var(--ease); transform-origin: 1.5px 1.5px; }
#px-cursor.on { opacity: 1; }
#px-cursor.hv canvas { transform: scale(1.2); } #px-cursor.dn canvas { transform: scale(.8); }
#px-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9997; pointer-events: none; }

/* ---------------------------------------------------------------- sheets: each section pins and the next slides over it */
.sheet { position: relative; }
.sheet-sh, .sheet-gl, .sheet-ln { position: absolute; left: 0; right: 0; bottom: var(--dy, 0px); pointer-events: none; transition: opacity .3s ease-out; }
.sheet-sh { z-index: 30; opacity: var(--ed, 0); height: 240px; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.05) 25%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.34) 72%, rgba(0,0,0,.6)); }
.sheet-gl { z-index: 31; opacity: var(--gd, 0); height: 260px; mix-blend-mode: screen; background: radial-gradient(ellipse 72% 100% at 50% 100%, rgba(75,149,255,.34), rgba(75,149,255,.2) 25%, rgba(75,149,255,.09) 50%, rgba(75,149,255,.03) 72%, transparent 90%); }
.sheet-ln { z-index: 30; opacity: var(--gd, 0); height: 1px; background: linear-gradient(90deg, transparent, rgba(150,200,255,0) 6%, rgba(150,200,255,.5) 50%, rgba(150,200,255,0) 94%, transparent); box-shadow: 0 0 28px 3px rgba(75,149,255,.32), 0 0 90px 8px rgba(75,149,255,.16); }

/* ---------------------------------------------------------------- error pages */
.err { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) var(--pad) 64px; text-align: center; }
.err > div { max-width: 44rem; }
.err-art { position: relative; width: min(260px, 64vw); aspect-ratio: 1; margin: 0 auto 32px; }
.err-art::before { content: ""; position: absolute; inset: -14px; border: 1px dashed rgba(159,180,255,.22); }
.err-art svg { width: 100%; height: 100%; overflow: visible; }
.err-code { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.err h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); letter-spacing: -.035em; max-width: 16ch; margin-inline: auto; }
.err .lead { margin: 20px auto 0; max-width: 52ch; }
.err .btn-row { margin-top: 40px; justify-content: center; }
.err-search { position: relative; max-width: 520px; margin: 40px auto 0; text-align: left; }
.err-search input { width: 100%; height: 52px; padding: 0 18px 0 46px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--text); font: 500 var(--fs-sm) var(--f-text); outline: none; transition: border-color .2s, background .2s; }
.err-search input:focus { border-color: rgba(110,175,255,.6); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(75,149,255,.12); }
.err-search > .i { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; color: var(--text-3); }
.err-results { margin-top: 8px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(12,14,21,.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow: hidden; }
.err-results a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.err-results a:last-child { border-bottom: 0; }
.err-results a:hover, .err-results a:focus { background: rgba(75,149,255,.12); outline: none; }
.err-results b { display: block; font-size: var(--fs-sm); }
.err-results span { font: 500 11px/1.4 var(--f-mono); color: var(--text-3); }
.err-help { margin-top: 32px; font-size: var(--fs-sm); color: var(--text-3); }
.err-help a { color: var(--ice); }
.ill .glow { filter: drop-shadow(0 0 8px rgba(188, 212, 255, .8)); }
.ill-spin { animation: ill-spin 8s linear infinite; transform-box: view-box; transform-origin: 120px 120px; }
@keyframes ill-spin { to { transform: rotate(360deg); } }
.ill-pulse { animation: ill-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ill-pulse { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.ill-flicker { animation: ill-flicker 3.2s steps(1) infinite; }
@keyframes ill-flicker { 0%, 100% { opacity: 1; } 8% { opacity: .3; } 10% { opacity: 1; } 47% { opacity: .5; } 49% { opacity: 1; } 71% { opacity: .2; } 72% { opacity: 1; } }
.ill-sweep { animation: ill-sweep 5s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 120px 30px; }
@keyframes ill-sweep { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
.ill-dash { stroke-dasharray: 6 8; animation: ill-dash 1.2s linear infinite; }
@keyframes ill-dash { to { stroke-dashoffset: -28; } }
.ill-packet { animation: ill-packet 2.8s var(--ease) infinite; }
@keyframes ill-packet { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 60% { opacity: 1; } 75%, 100% { transform: translateX(92px); opacity: 0; } }
.ill-tick { animation: ill-tick 4s linear infinite; transform-box: view-box; transform-origin: 120px 124px; }
@keyframes ill-tick { to { transform: rotate(360deg); } }
.ill-queue > * { animation: ill-queue 2.4s var(--ease) infinite; transform-box: fill-box; }
.ill-queue > *:nth-child(2) { animation-delay: .2s; } .ill-queue > *:nth-child(3) { animation-delay: .4s; } .ill-queue > *:nth-child(4) { animation-delay: .6s; } .ill-queue > *:nth-child(5) { animation-delay: .8s; }
@keyframes ill-queue { 0%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-10px); opacity: 1; } }
.ill-shake { animation: ill-shake 3s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ill-shake { 0%, 70%, 100% { transform: rotate(8deg); } 75% { transform: rotate(14deg) translateX(3px); } 80% { transform: rotate(3deg); } 85% { transform: rotate(10deg); } }

/* ---------------------------------------------------------------- load sequence + reveals (both scroll directions) */
.js .ld { opacity: 0; transform: translateY(24px); }
.is-loaded .ld { opacity: 1; transform: none; transition: opacity 1.1s var(--ease) calc(var(--d, 0) * 1ms + 200ms), transform 1.1s var(--ease) calc(var(--d, 0) * 1ms + 200ms); }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); transition: opacity .85s var(--ease), transform .85s var(--ease), border-color .3s; transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].from-top { transform: translate3d(0, -28px, 0) scale(.985); }
.js [data-reveal="scale"] { transform: scale(.95) translate3d(0, 20px, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .reveal-words .w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--wi) * 40ms); }
.js .reveal-words.is-in .w { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .ld, .js .reveal-words .w { opacity: 1 !important; transform: none !important; }
  .hero-content, .stage-shot .win { transform: none !important; opacity: 1 !important; }
}
@media print {
  .bg-scene, .guides, .ruler, .site-header, .hud, .menu-sheet, #px-cursor, #px-fx, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- split blocks */
.grid-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
.grid-split .h2 { margin-top: 4px; }
.grid-split .lead { margin-top: 20px; font-size: var(--fs-md); max-width: 28rem; }
@media (max-width: 1024px) { .grid-split { grid-template-columns: 1fr; } }
.sec-bar.solid { background: rgba(5, 6, 11, .7); }
.sec-logo-link { display: inline-block; margin-bottom: 22px; }
.logo-gl.sec-logo { width: 104px; height: 104px; margin: 0; border-radius: 18px; border: 1px solid var(--line-2); transition: border-color .3s, transform .5s var(--ease); }
.sec-logo-link:hover .logo-gl { border-color: rgba(110,175,255,.45); transform: translateY(-2px); }
.sec-head .kicker + .h2 { margin-top: 12px; }
.page-hero:has(.search-results:not([hidden])) { z-index: 50; }


/* ---------------------------------------------------------------- hero fit: the whole home hero always fits one screen */
.home .hero { height: 100vh; height: 100svh; min-height: 520px; max-height: 1400px; padding: calc(var(--header-h) + 2svh) 0 clamp(72px, 12svh, 120px); }
.home .hero .frame { display: flex; align-items: center; justify-content: center; height: 100%; }
.home .hero-content { width: 100%; }
.home .mark-stage { margin-bottom: clamp(8px, 2.4svh, 24px); }
.home .lt-stage { width: clamp(130px, min(31svh, 62vw), 310px); height: clamp(130px, min(31svh, 62vw), 310px); }
.home .lt-wm { font-size: clamp(56px, min(11.5vw, 15svh), 150px); }
.home .hero h1 { font-size: clamp(1.75rem, min(5.6vw, 6.6svh), 4rem); }
.home .hero .lead { margin-top: clamp(12px, 2.6svh, 24px); font-size: clamp(.9375rem, min(1.6vw, 2.2svh), 1.125rem); }
.home .mark-hint { font-size: clamp(8px, 1.2svh, 10px); }
@media (max-height: 560px) and (orientation: landscape) {
  .home .hero { min-height: 0; }
  .home .mark-hint { display: none; }
  .home .hero .lead { display: none; }
}
@media (max-width: 480px) { .home .hero .lead br { display: none; } }

/* ---------------------------------------------------------------- picture collage placeholders */
.collage-sec { padding: clamp(40px, 6vw, 72px) 0; }
.collage { position: relative; }
.cl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(110px, 13vw, 180px)); grid-template-areas: "a a a b b c" "a a a d e e"; gap: 12px; }
.cl { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(159,180,255,.22);
  background: repeating-linear-gradient(135deg, rgba(159,180,255,.035) 0 1px, transparent 1px 9px), linear-gradient(180deg, rgba(14,17,26,.7), rgba(9,11,17,.85)); transition: border-color .35s, background-color .35s; }
.cl::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(143,168,255,.1) 50%, transparent calc(50% + .5px)), linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(143,168,255,.1) 50%, transparent calc(50% + .5px)); }
.cl:hover { border-color: rgba(110,175,255,.55); }
.cl b { position: relative; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; color: var(--sky); }
.cl em { position: relative; align-self: flex-start; padding: 5px 9px; border-radius: 4px; background: rgba(5,6,11,.75); border: 1px solid var(--line-2); font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #e4e4e7; }
.cl-1 { grid-area: a; } .cl-2 { grid-area: b; } .cl-3 { grid-area: c; } .cl-4 { grid-area: d; } .cl-5 { grid-area: e; }
.collage figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 760px) {
  .cl-grid { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(150px, 42vw, 220px) repeat(2, clamp(100px, 28vw, 150px)); grid-template-areas: "a a" "b c" "d e"; }
}
.ph-fig { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(159,180,255,.035) 0 1px, transparent 1px 9px), #0b0d16 !important; border-style: dashed !important; border-color: rgba(159,180,255,.22) !important; }
.ph-fig::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(143,168,255,.1) 50%, transparent calc(50% + .5px)), linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(143,168,255,.1) 50%, transparent calc(50% + .5px)); }
.ph-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 22px; border-radius: 8px; background: rgba(5,6,11,.8); border: 1px solid var(--line-2); text-align: center; font: 600 var(--fs-md)/1.2 var(--f-display); color: #fff; }
.ph-in b { font: 500 10px/1 var(--f-mono); letter-spacing: .14em; color: var(--sky); }
.ph-in i { font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.mock .mph { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; border: 1px dashed rgba(255,255,255,.14); background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 8px), #1a1a1e; }

/* ---------------------------------------------------------------- text helpers + effects library */
.link-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.split-copy .lead + .lead { margin-top: 14px; }
.fx-lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.fx-col { padding: 22px 22px 26px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: rgba(9,11,16,.5); }
.fx-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; font: 600 var(--fs-md)/1.2 var(--f-display); color: #fff; letter-spacing: -.01em; }
.fx-h span { font: 500 10px/1 var(--f-mono); letter-spacing: .12em; color: var(--sky); }
.fx-h b { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--text-3); }
.fx-col ul { list-style: none; columns: 2; column-gap: 18px; }
.fx-col li { break-inside: avoid; padding: 3px 0; font-size: var(--fs-xs); line-height: 1.45; }
.fx-col a { color: var(--text-2); transition: color .2s; }
.fx-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
@media (max-width: 1024px) { .fx-lib { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fx-lib { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- fixes after the review */
.plans.center, .faq-wrap.center .faq, .plans.center .plan { text-align: left; }
.tbl-wrap { -webkit-overflow-scrolling: touch; }
.tbl-wrap > table.tbl { min-width: 100%; }
.tbl-wrap:not(:has(.stack)) > table.tbl { min-width: 560px; }
@media (max-width: 640px) { .tbl-wrap { border-radius: 10px; } }
.hero-split .btn-row { justify-content: flex-start; }


/* =====================================================================================================================
   v3 — straight lines everywhere, blur-in reveals, read-through sheet transitions, new tables, CTA, footer, contact
   ===================================================================================================================== */

/* ---------------------------------------------------------------- no curves: every element is drawn with straight lines
   (the MOSAIC window keeps the plugin's own rounded UI, because it is a picture of the plugin) */
body *:not(.mock *), body *:not(.mock *)::before, body *:not(.mock *)::after { border-radius: 0 !important; }
.ruler .ruler-lens:hover, .ruler .ruler-lens.drag { rotate: 0deg !important; }

/* ---------------------------------------------------------------- buttons */
.btn { height: 44px; padding: 0 22px; font-weight: 600; letter-spacing: .005em; }
.btn-sm { height: 32px; padding: 0 14px; }
.btn-lg { height: 50px; padding: 0 26px; }
.btn-primary { box-shadow: 0 0 0 1px #fff, 0 0 28px rgba(255,255,255,.14); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px #fff, 0 0 36px rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.16); }
.btn-ghost:hover { border-color: rgba(159,208,255,.55); background: rgba(75,149,255,.07); }
.btn > span { position: relative; }

/* ---------------------------------------------------------------- reveals: elements arrive out of a soft blur */
.js [data-reveal] { filter: blur(10px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), border-color .3s; }
.js [data-reveal].is-in { filter: none; }
.js .reveal-words .w { filter: blur(8px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.js .reveal-words.is-in .w { filter: none; }
.js .ld { filter: blur(10px); }
.is-loaded .ld { filter: none; transition: opacity 1.1s var(--ease) calc(var(--d, 0) * 1ms + 200ms), transform 1.1s var(--ease) calc(var(--d, 0) * 1ms + 200ms), filter 1.1s var(--ease) calc(var(--d, 0) * 1ms + 200ms); }

/* ---------------------------------------------------------------- data tables */
.tbl-wrap { position: relative; border: 1px solid var(--line-2); background: rgba(7, 9, 14, .82); overflow: visible; overflow-x: auto; }
.tbl-wrap::before, .tbl-wrap::after { content: ""; position: absolute; top: -4px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--line-bp); z-index: 2; pointer-events: none; }
.tbl-wrap::before { left: -4px; } .tbl-wrap::after { right: -4px; }
.tbl thead th { padding: 14px 20px; font-size: 10px; letter-spacing: .14em; color: #7b8396; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--line-2); }
.tbl tbody { counter-reset: row; }
.tbl tbody tr { counter-increment: row; }
.tbl tbody th { position: relative; padding-left: 54px; font-size: var(--fs-sm); }
.tbl tbody th::before { content: counter(row, decimal-leading-zero); position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font: 500 10px/1 var(--f-mono); letter-spacing: .08em; color: var(--text-4); transition: color .3s; }
.tbl tbody tr:hover th::before { color: var(--sky); }
.tbl tbody td { color: #9ca3af; }
.tbl td.spec { color: #e4e4e7; }
.tbl tbody tr:hover td.spec { color: var(--ice); text-shadow: 0 0 10px rgba(75,149,255,.6); }
.tbl tbody tr:hover > :first-child { box-shadow: inset 2px 0 0 var(--blue), inset 3px 0 12px -6px var(--blue); }
@keyframes row-in { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.js [data-reveal] .tbl tbody tr { opacity: 0; }
.js [data-reveal].is-in .tbl tbody tr { animation: row-in .7s var(--ease) both; animation-delay: calc(var(--r, 0) * 60ms + 160ms); }
@media (max-width: 640px) {
  .tbl.stack tbody th { padding-left: 30px; }
  .tbl.stack tbody th::before { left: 0; }
  .tbl.stack tbody tr { padding: 16px 18px; }
}

/* ---------------------------------------------------------------- cards: square, quiet, with CAD corner ticks on hover */
.product, .cell, .contact, .release, .manual, .ct-card { position: relative; }
.product::before, .cell::before, .contact::before, .release::before, .manual::before { z-index: -1; }
.tick-box { position: absolute; inset: -1px; pointer-events: none; }
.product:hover, .cell:hover, .contact:hover, .manual:hover { border-color: rgba(110,175,255,.35); }

/* ---------------------------------------------------------------- hero scroll cue: one line, one light */
.scroll-cue { position: absolute; left: 50%; bottom: clamp(18px, 3.4svh, 32px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translateX(-50%); color: var(--text-3); transition: color .3s; }
.scroll-cue:hover { color: #fff; }
.sc-label { font: 500 9px/1 var(--f-mono); letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; }
.sc-rail { position: relative; display: block; width: 1px; height: clamp(34px, 6svh, 54px); overflow: hidden; background: rgba(255,255,255,.1); }
.sc-rail i { position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: linear-gradient(rgba(255,255,255,0), #fff); box-shadow: 0 0 6px rgba(159,208,255,.9); animation: sc-drop 2.2s cubic-bezier(.65,0,.35,1) infinite; }
.scroll-cue:hover .sc-rail i { animation-duration: 1.3s; }
@keyframes sc-drop { 0% { transform: translateY(-110%); } 100% { transform: translateY(230%); } }
@media (max-height: 480px) { .scroll-cue { display: none; } }

/* ---------------------------------------------------------------- licensing: centred on the landing */
.lic-head.center { justify-content: center; }
.lic-head.center > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lic-head.center .lead { margin-inline: auto; }
.plans.center { margin-inline: auto; }
.pricing-note.center-note { margin-inline: auto; text-align: center; }

/* ---------------------------------------------------------------- call to action: animated stage that grows as it enters */
.cta-sec .sec-body { padding-block: clamp(64px, 9vw, 120px); }
.cta-zoom { perspective: 1200px; }
.cta-zoom .cta { transform: scale(calc(.8 + .2 * var(--in, 1))) translate3d(0, calc((1 - var(--in, 1)) * 40px), 0); opacity: calc(.25 + .75 * var(--in, 1)); transform-origin: 50% 70%; will-change: transform, opacity; }
.cta { isolation: isolate; padding: clamp(64px, 9vw, 128px) clamp(24px, 6vw, 80px); background: #05070c; border: 1px solid var(--line-2); box-shadow: 0 60px 140px -60px rgba(0,0,0,.9), 0 0 0 1px rgba(159,180,255,.04) inset; }
.cta::before { display: none; }
.cta h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); max-width: 20ch; line-height: 1.05; }
.cta .lead { max-width: 36rem; }
.cta-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cta-grid { position: absolute; left: 0; right: 0; top: -128px; bottom: 0;
  background-image: linear-gradient(to right, rgba(143,168,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(143,168,255,.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(143,168,255,.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(143,168,255,.1) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 128px 128px, 128px 128px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 70%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 70%, #000 20%, transparent 75%);
  animation: cta-grid 14s linear infinite; }
@keyframes cta-grid { to { transform: translate3d(0, 128px, 0); } }
.cta-rays { position: absolute; left: 50%; bottom: -10%; width: 180%; height: 170%; transform-origin: 50% 100%; translate: -50% 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(120,170,255,.085) 0deg 2.2deg, transparent 2.2deg 11deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 5%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 5%, transparent 70%);
  animation: cta-rays 18s ease-in-out infinite alternate; }
@keyframes cta-rays { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.cta-glow { position: absolute; left: 50%; bottom: -30%; width: 90%; height: 80%; translate: -50% 0; background: radial-gradient(closest-side, rgba(52,92,190,.45), rgba(52,92,190,.12) 55%, transparent); animation: cta-glow 7s ease-in-out infinite alternate; }
@keyframes cta-glow { from { opacity: .65; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
.cta-scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(159,208,255,.55) 30%, rgba(255,255,255,.8) 50%, rgba(159,208,255,.55) 70%, transparent); box-shadow: 0 0 22px 2px rgba(75,149,255,.35); animation: cta-scan 9s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes cta-scan { 0% { transform: translateY(-10px); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(var(--cta-h, 520px)); opacity: 0; } }
.cta-lt { position: absolute; left: 50%; top: 50%; height: 118%; translate: -50% -50%; opacity: .55; }
.cta-lt-run { animation: lt-beam 8s linear infinite; filter: drop-shadow(0 0 4px rgba(159,208,255,.9)); }
.cta .corner { width: 18px; height: 18px; border-color: rgba(159,208,255,.6); }
.cta .contact-line a { border-bottom: 1px solid rgba(125,180,255,.35); }

/* ---------------------------------------------------------------- footer */
.site-footer { overflow: visible; }
.ft-up { position: absolute; top: 0; right: calc(var(--pad) + var(--rs)); z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translateY(-50%);
  background: var(--bg); border: 1px solid rgba(110,175,255,.45); color: #bfe0ff; box-shadow: 0 0 0 4px var(--bg), 0 0 22px rgba(75,149,255,.25); transition: border-color .3s, box-shadow .35s, color .3s; }
.ft-up svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.ft-up:hover { color: #fff; border-color: rgba(159,208,255,.9); box-shadow: 0 0 0 4px var(--bg), 0 0 30px rgba(75,149,255,.55); transform: translateY(-50%); }
.ft-up:hover svg { transform: translateY(-3px); }
.foot-base { justify-content: space-between; }
.foot-legal { display: flex; gap: 22px; }
.foot-legal a { color: var(--text-3); transition: color .25s; }
.foot-legal a:hover { color: #fff; }
.ft-wm { justify-content: center; padding-inline: 0; margin-top: 24px; width: 100%; overflow: hidden; }
.ft-wm span { flex: none; }

/* ---------------------------------------------------------------- contact page */
.ct { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); min-height: 560px; }
.ct-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255,255,255,.012); }
.ct-tabs button { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: baseline; padding: 24px var(--pad) 24px calc(var(--pad) - 4px); border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--text-2); transition: background .35s, color .3s; }
.ct-tabs button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue); box-shadow: 0 0 12px var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.ct-tabs button:hover { color: #fff; background: rgba(255,255,255,.02); }
.ct-tabs button[aria-selected="true"] { color: #fff; background: rgba(75,149,255,.06); }
.ct-tabs button[aria-selected="true"]::before { transform: scaleY(1); }
.ct-n { grid-row: span 2; font: 500 10px/1.6 var(--f-mono); letter-spacing: .1em; color: var(--sky); }
.ct-l { font: 600 var(--fs-md)/1.25 var(--f-display); letter-spacing: -.01em; }
.ct-s { font: 500 11px/1.3 var(--f-mono); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.ct-panels { position: relative; padding: clamp(32px, 4vw, 56px) var(--pad); }
.ct-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ct-panel[hidden] { display: none; }
.ct-panel.is-on { animation: ct-in .7s var(--ease) both; }
@keyframes ct-in { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.ct-copy .h2 { margin-top: 12px; }
.ct-copy .lead { margin-top: 18px; font-size: var(--fs-md); }
.ct-h { margin: 30px 0 14px; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #7b8396; }
.ct-card { padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }
.ct-card::before, .ct-card::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid rgba(159,208,255,.65); pointer-events: none; }
.ct-card::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; } .ct-card::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.ct-k { margin-bottom: 10px; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.ct-k:not(:first-child) { margin-top: 26px; }
.ct-addr { margin-bottom: 18px; font: 500 clamp(1.05rem, .85rem + 1vw, 1.5rem)/1.3 var(--f-mono); color: #bfe0ff; word-break: break-all; text-shadow: 0 0 18px rgba(75,149,255,.35); }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.ct-line code { padding: 0; border: 0; background: none; font-size: 12px; color: #d4d4d8; }
.ct-mini { flex: none; padding: 6px 10px; border: 1px solid var(--line-2); background: none; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); transition: color .25s, border-color .25s, background .25s; }
.ct-mini:hover { color: #fff; border-color: rgba(159,208,255,.6); }
.is-copied { color: #000 !important; background: var(--cyan) !important; border-color: var(--cyan) !important; }
.ct-tpl { margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--line-2); background: #050609; font: 12px/1.7 var(--f-mono); color: #bfe0ff; white-space: pre; overflow-x: auto; }
@media (max-width: 900px) {
  .ct { grid-template-columns: 1fr; min-height: 0; }
  .ct-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .ct-tabs::-webkit-scrollbar { display: none; }
  .ct-tabs button { flex: 0 0 auto; min-width: 200px; border-bottom: 0; border-right: 1px solid var(--line); padding: 18px 20px; }
  .ct-tabs button::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .ct-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
  .ct-panel { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- sheet transitions: the panel underneath blurs away */
.sheet.is-under { will-change: transform, filter, opacity; }
.sheet-sh { height: 200px; }
.sheet-ln { box-shadow: 0 0 18px 1px rgba(75,149,255,.28), 0 0 60px 6px rgba(75,149,255,.12); }

.lt-beam6 { animation: lt-beam 6s linear infinite; }
.lt-stage { cursor: none; }
.cta-lt { height: 74%; opacity: .5; }
@media (max-width: 640px) { .cta-lt { height: 56%; opacity: .35; } }
.ct-addr { font-size: clamp(.95rem, .78rem + .55vw, 1.2rem); word-break: normal; overflow-wrap: anywhere; }
.ct-panel { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); }
@media (max-width: 900px) { .ct-panel { grid-template-columns: 1fr; } }

/* ================================================================ v4 — logos without frames, professional tables, shared
   rays, global spotlight + tilt, nav, FAQ, HUD, CRT terminals, theme toggle. Light theme lives in light.css (generated). */

/* live logos float free: no box, no background, the glow spills past the edge */
.logo-gl { overflow: visible; background: none; }
.logo-gl > canvas { pointer-events: none; }
.logo-gl > img, .logo-gl > svg { padding: 18%; }
.product-id .logo-gl { overflow: hidden; background: #090b10; }
.logo-stage .logo-box { border: 0; box-shadow: none; overflow: visible; }
.logo-stage .stage-hint { bottom: -6px; }
.logo-gl.sec-logo { width: 92px; height: 92px; border: 0; transition: transform .6s var(--ease); }
.sec-logo-link:hover .logo-gl { transform: translateY(-2px); }

/* tables: one clean frame, no corner marks, no scrollbar on desktop */
.tbl-wrap { overflow: visible; }
.tbl-wrap::before, .tbl-wrap::after { content: none !important; display: none !important; }
.tbl-wrap > table.tbl { width: 100%; }
.tbl-wrap:not(:has(.stack)) > table.tbl { min-width: 0; }
@media (max-width: 720px) {
  .tbl-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(159,180,255,.3) transparent; }
  .tbl-wrap:not(:has(.stack)) > table.tbl { min-width: 560px; }
  .tbl-wrap::-webkit-scrollbar { height: 4px; } .tbl-wrap::-webkit-scrollbar-thumb { background: rgba(159,180,255,.3); }
}

/* call-to-action rays: the hero shader, rendered into the block */
.cta-bg canvas.cta-rays { left: 0; top: 0; bottom: auto; width: 100%; height: 100%; translate: none; transform: none; animation: none; background: none; -webkit-mask-image: none; mask-image: none; opacity: .95; }

/* spotlight + border light + tilt on every panel */
.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s cubic-bezier(.2,.8,.2,1), border-color .3s, background-color .3s; will-change: transform; }
.tilt.tilting { transition: transform .22s ease-out, border-color .3s, background-color .3s; }
.js [data-reveal].tilt:not(.is-in) { transform: translate3d(0, 28px, 0) scale(.985); }
.js [data-reveal].tilt.is-in { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.faq details.spot { overflow: visible; }
.faq details.spot::before { inset: 0; }
.faq details.spot::after { display: none; }
@media (hover: none), (prefers-reduced-motion: reduce) { .tilt, .js [data-reveal].tilt.is-in { transform: none; } }

/* header: brand mark, framed shell, bracket hovers, theme switch */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(110,165,255,.35) 20%, rgba(110,165,255,.35) 80%, transparent); opacity: 0; transition: opacity .5s; pointer-events: none; }
.is-scrolled .site-header::after, .site-header.is-scrolled::after { opacity: 1; }
.nav-shell::before, .nav-shell::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; border: 1px solid rgba(159,180,255,.35); translate: 0 -50%; pointer-events: none; }
.nav-shell::before { left: -18px; } .nav-shell::after { right: -18px; }
@media (max-width: 1100px) { .nav-shell::before, .nav-shell::after { display: none; } }
.brand { position: relative; align-items: center; gap: 8px; padding: 6px 0; }
.brand .brand-mark { width: 22px; height: 22px; margin: 0 2px 0 0; overflow: visible; transition: filter .4s, transform .6s var(--ease); }
.brand .bm-fill { fill: rgba(75,149,255,.08); transition: fill .4s; }
.brand .bm-line { fill: none; stroke: rgba(214,228,255,.75); stroke-width: 14; stroke-linejoin: miter; transition: stroke .4s; }
.brand .bm-run { fill: none; stroke: #bfe0ff; stroke-width: 16; stroke-dasharray: 14 86; stroke-dashoffset: 0; opacity: 0; transition: opacity .4s; }
.brand b, .brand .t { transition: color .35s, text-shadow .35s; }
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { filter: drop-shadow(0 0 6px rgba(110,175,255,.9)) drop-shadow(0 0 16px rgba(75,149,255,.55)); transform: rotate(-4deg) scale(1.06); }
.brand:hover .bm-fill { fill: rgba(75,149,255,.28); }
.brand:hover .bm-line { stroke: #fff; }
.brand:hover .bm-run { opacity: 1; animation: bm-run 1.6s linear infinite; }
@keyframes bm-run { to { stroke-dashoffset: -100; } }
.brand:hover b, .brand:focus-visible b { color: #fff; text-shadow: 0 0 10px rgba(140,190,255,.95), 0 0 26px rgba(75,149,255,.6); }
.brand:hover .t, .brand:focus-visible .t { color: #bfe0ff; text-shadow: 0 0 12px rgba(75,149,255,.7); }
.nav { gap: 6px; }
.nav a { padding: 9px 12px; letter-spacing: .01em; }
.nav a::before, .nav a::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 5px; border: 1px solid rgba(159,200,255,.6); opacity: 0; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.nav a::before { left: 0; border-right: 0; transform: translateX(4px); }
.nav a::after { right: 0; border-left: 0; transform: translateX(-4px); }
.nav a:hover::before, .nav a:hover::after, .nav a:focus-visible::before, .nav a:focus-visible::after { opacity: 1; transform: none; }
.nav a:hover { text-shadow: 0 0 12px rgba(120,175,255,.55); }
#nav-ind { bottom: -10px; }
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text-2); cursor: pointer; transition: color .25s, border-color .25s, background-color .25s, box-shadow .25s; }
.theme-btn svg { width: 15px; height: 15px; transition: transform .6s var(--ease); }
.theme-btn:hover { color: #fff; border-color: rgba(110,175,255,.5); box-shadow: 0 0 16px rgba(75,149,255,.35); }
.theme-btn:hover svg { transform: rotate(180deg); }
[data-theme="light"] .theme-btn svg { transform: rotate(180deg); }
[data-theme="light"] .theme-btn:hover svg { transform: rotate(0deg); }
@media (max-width: 900px) { .nav-cta .theme-btn { display: inline-grid; } }
html.theme-anim, html.theme-anim body, html.theme-anim body *:not(canvas) { transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease !important; }

/* FAQ: accent rail, tinted open state, plus that turns into a minus */
.faq details { position: relative; background: linear-gradient(180deg, var(--blue), var(--cyan)) no-repeat 0 0 / 1px 0%;
  transition: background-size .6s var(--ease), background-color .45s var(--ease); }
.faq details.is-open { background-size: 1px 100%; background-color: rgba(75,149,255,.035); }
.faq summary { transition: color .3s, padding-left .45s var(--ease); }
.faq summary:hover { color: #fff; padding-left: 8px; }
.faq details.is-open summary { color: #fff; padding-left: 16px; }
.faq .answer > * { padding-left: 16px; padding-right: 16px; }
.faq summary .pm { position: relative; width: 14px; height: 14px; margin-right: 4px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm, .faq details.is-open summary .pm { transform: none; }
.faq details.is-open summary .pm::after { transform: rotate(0deg); }
.faq details.is-open summary .pm::before { transform: rotate(180deg); }

/* HUD: top line (date, time) and a vertical column at the left edge (section, scroll, frame rate) */
.hud-top { top: calc(var(--header-h) + 16px); bottom: auto; transition: top .5s var(--ease); }
.nav-hide .hud-top, body:has(.nav-hide) .hud-top { top: 16px; }
.hud-side { top: 50%; bottom: auto; left: 22px; translate: 0 -50%; writing-mode: vertical-rl; rotate: 180deg; gap: 14px; }
.hud-side i { width: 1px; height: 22px; background: rgba(159,180,255,.25); }
.hud b { font-variant-numeric: tabular-nums; }
@media (max-width: 1279px) { .hud-side { display: none !important; } }
@media (max-width: 1279px) { .hud-top { display: none !important; } }

/* CRT terminals: template fields, subject lines, code blocks, error codes */
.ct-tpl, .ct-line, .code pre, .err-code { position: relative; isolation: isolate; }
.ct-tpl { white-space: pre-wrap; overflow: hidden; overflow-wrap: anywhere; padding: 20px 22px; border-color: rgba(110,175,255,.28);
  background: radial-gradient(120% 140% at 50% 40%, #0a1626 0%, #050a14 60%, #020409 100%); color: #a9dcff;
  text-shadow: 0 0 1px rgba(169,220,255,.9), 0 0 7px rgba(75,170,255,.55); box-shadow: inset 0 0 40px rgba(0,0,0,.75), inset 0 0 0 1px rgba(110,175,255,.06), 0 0 30px -10px rgba(75,149,255,.35);
  animation: crt-flicker 6s steps(1) infinite; }
.ct-tpl::before, .ct-line::before, .code pre::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.32) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.ct-tpl::after, .code pre::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(150,210,255,.07) 50%, transparent); animation: crt-band 7s linear infinite; }
.crt-ghost { visibility: hidden; }
.crt-live { position: absolute; inset: 0; padding: inherit; white-space: inherit; overflow-wrap: inherit; }
.crt-cur { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: #a9dcff; box-shadow: 0 0 8px rgba(110,190,255,.9); animation: crt-blink 1.05s steps(1) infinite; }
.ct-line { background: radial-gradient(140% 160% at 50% 40%, #09131f, #04070d); border-color: rgba(110,175,255,.2); }
.ct-line code { position: relative; z-index: 1; color: #a9dcff; text-shadow: 0 0 6px rgba(75,170,255,.5); }
.ct-line .ct-mini { position: relative; z-index: 4; }
.code pre { text-shadow: 0 0 6px rgba(120,180,255,.18); }
.code pre::before { opacity: .55; }
.err-code { display: inline-block; padding: 6px 12px; color: #a9dcff; text-shadow: 0 0 8px rgba(75,170,255,.7); background: repeating-linear-gradient(to bottom, rgba(110,175,255,.06) 0 1px, transparent 1px 3px); animation: crt-flicker 5s steps(1) infinite; }
@keyframes crt-band { from { transform: translateY(-110%); } to { transform: translateY(300%); } }
@keyframes crt-blink { 50% { opacity: 0; } }
@keyframes crt-flicker { 0%, 100% { opacity: 1; } 31% { opacity: .96; } 32% { opacity: 1; } 67% { opacity: .985; } 68% { opacity: 1; } 89% { opacity: .95; } 90% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-tpl, .err-code, .ct-tpl::after, .code pre::after, .crt-cur { animation: none; } }
.site-footer .foot-brand p.ft-h { margin: 0 0 18px; font: 500 10px/1 var(--f-mono); letter-spacing: .16em; color: #7b8396; max-width: none; }

/* ================================================================ v5 — interactive logos, sticky sheets, line glow,
   table rows, menu sizing, blur under text, autoscroll */

/* logos: the canvas may be larger than its box (no max-width clamp), the large ones fade out radially */
.logo-gl > canvas { max-width: none; max-height: none; }
.logo-big > canvas { -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 100%); mask-image: radial-gradient(closest-side, #000 64%, transparent 100%); }
.logo-gl { cursor: grab; }
.logo-gl:active { cursor: grabbing; }

/* nav: no corner marks beside the shell */
.nav-shell::before, .nav-shell::after { content: none; display: none; }
.nav-progress { height: 1px; bottom: -1px; overflow: visible; }
.nav-progress i { background: linear-gradient(90deg, var(--blue), var(--ice)); box-shadow: 0 0 10px var(--blue), 0 0 2px #fff; }

/* header buttons share one size; the menu buttons line up in a tidy grid */
.theme-btn, .menu-btn { width: 38px; height: 38px; }
.menu-sheet .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-sheet .btn-row .btn { width: 100%; height: 46px; padding: 0 16px; font-size: 13px; line-height: 1; }
.menu-sheet .btn-row .btn-primary { grid-column: 1 / -1; order: -1; box-shadow: 0 0 24px rgba(255,255,255,.12); }

/* FAQ: the plus keeps clear of the edge */
.faq summary { padding-right: 6px; }
.faq summary .pm { margin-right: 18px; margin-left: 12px; }

/* table rows: the FAQ hover language (rail that grows, soft tint fading right, number and spec light up) */
.tbl tbody tr { transition: background-color .45s var(--ease); }
.tbl tbody tr > :first-child { background-image: linear-gradient(180deg, var(--blue), var(--cyan)); background-repeat: no-repeat; background-position: 0 0; background-size: 1px 0%; transition: background-size .55s var(--ease); }
.tbl tbody tr:hover { background-color: transparent; background-image: linear-gradient(90deg, rgba(75,149,255,.075), rgba(75,149,255,.02) 55%, transparent), linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan) 70%, transparent); background-size: 100% 100%, 100% 1px; background-position: 0 0, var(--ox, 0%) 100%; }
.tbl tbody tr:hover > :first-child { background-size: 1px 100%; box-shadow: none; }
.tbl tbody tr:hover th { color: #fff; }
.tbl tbody tr:hover td { color: var(--text); }
.tbl tbody tr > * { transition: color .3s; }

/* MOSAIC feature rows: room inside, so the light has a frame */
.rows .row { padding-left: clamp(16px, 2.2vw, 28px); padding-right: clamp(16px, 2.2vw, 28px); }

/* a soft blur under headings and leads, so white text never sits on a busy grid */
.hero h1, .page-hero h1, .sec-head h2, .sec-head .lead, .split-copy h2, .split-copy > p, .hero .lead, .page-hero .lead, .lic-head h2, .lic-head p, .cta h2, .cta .lead { position: relative; isolation: isolate; }
.hero h1::before, .page-hero h1::before, .sec-head h2::before, .sec-head .lead::before, .split-copy h2::before, .split-copy > p::before, .hero .lead::before, .page-hero .lead::before, .lic-head h2::before, .lic-head p::before, .cta h2::before, .cta .lead::before {
  content: ""; position: absolute; inset: -14px -30px; z-index: -1; pointer-events: none; background: rgba(5,6,11,.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }

/* corner nodes grow and glow near the cursor; section lines and guides glow only where it passes */
.node { transform: scale(calc(1 + var(--nh, 0) * .8)); border-color: color-mix(in srgb, #9fd0ff calc(var(--nh, 0) * 100%), rgba(159,180,255,.45));
  background-color: color-mix(in srgb, rgba(75,149,255,.35) calc(var(--nh, 0) * 100%), var(--bg));
  box-shadow: 0 0 calc(var(--nh, 0) * 10px) rgba(96,165,250, calc(var(--nh, 0) * .9)); transition: transform .35s var(--ease), border-color .3s, background-color .3s, box-shadow .3s; }
.sec-bar { position: relative; }
.lg { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; z-index: 6; pointer-events: none;
  background: radial-gradient(260px 80px at var(--gx, -999px) var(--gy, -999px), rgba(130,185,255,.42), rgba(130,185,255,.1) 45%, transparent 72%) fixed; }
.hero > .lg { bottom: 0; }
.lg-v { position: absolute; inset: 0; margin-inline: auto; max-width: var(--frame); border-inline: 1px solid rgba(130,185,255,.45); pointer-events: none;
  -webkit-mask-image: radial-gradient(140px 220px at var(--gx, -999px) var(--gy, -999px), #000, transparent 75%); mask-image: radial-gradient(140px 220px at var(--gx, -999px) var(--gy, -999px), #000, transparent 75%); }

/* pixel autoscroll anchor (middle button) */
#px-auto { position: fixed; left: 0; top: 0; z-index: 9998; width: 30px; height: 34px; image-rendering: pixelated; pointer-events: none; opacity: 0; transition: opacity .2s;
  filter: drop-shadow(0 0 2px rgba(120,180,255,1)) drop-shadow(0 0 8px rgba(75,149,255,.8)); }
#px-auto.on { opacity: 1; }
@media (max-width: 760px) {
  .hero h1::before, .page-hero h1::before, .sec-head h2::before, .sec-head .lead::before, .split-copy h2::before, .split-copy > p::before, .hero .lead::before, .page-hero .lead::before, .lic-head h2::before, .lic-head p::before, .cta h2::before, .cta .lead::before { inset: -10px -6px; }
}

/* ================================================================ v5.1 */
/* corner nodes: top corners only (see site.js), always above the section content */
.node.bl, .node.br { display: none !important; }
.node { z-index: 40; }
/* CTA frame corners light up and step outward near the cursor */
.cta .corner { transition: border-color .3s, filter .3s, translate .45s var(--ease);
  border-color: color-mix(in srgb, #bfe0ff calc(var(--nh, 0) * 100%), rgba(159,208,255,.6));
  filter: drop-shadow(0 0 calc(var(--nh, 0) * 8px) rgba(96,165,250, calc(var(--nh, 0) * .95))); }
.cta .corner.a { translate: calc(var(--nh, 0) * -4px) calc(var(--nh, 0) * -4px); } .cta .corner.b { translate: calc(var(--nh, 0) * 4px) calc(var(--nh, 0) * -4px); }
.cta .corner.c { translate: calc(var(--nh, 0) * -4px) calc(var(--nh, 0) * 4px); } .cta .corner.d { translate: calc(var(--nh, 0) * 4px) calc(var(--nh, 0) * 4px); }
.cta.spot::after { z-index: 2; }
/* footer back-to-top: solid, the line never shows through */
.ft-up { background: linear-gradient(rgba(75,149,255,.08), rgba(75,149,255,.08)), var(--bg); }
.ft-up:hover { background: linear-gradient(rgba(75,149,255,.18), rgba(75,149,255,.18)), var(--bg); }
/* nav: the section underline keeps clear of the progress bar */
#nav-ind { bottom: -4px; }
.is-scrolled #nav-ind { bottom: -1px; }
.nav-progress i { box-shadow: 0 0 12px var(--blue), 0 0 4px rgba(150,200,255,.9); }
/* stronger cursor light on guides and section lines */
.lg { height: 1px; background: radial-gradient(300px 90px at var(--gx, -999px) var(--gy, -999px), rgba(150,200,255,.85), rgba(110,170,255,.25) 45%, transparent 72%) fixed; box-shadow: none; }
.lg-v { border-inline-color: rgba(150,200,255,.9); filter: drop-shadow(0 0 4px rgba(75,149,255,.9)); }

/* ================================================================ v5.2 */
/* theme switch: the new theme opens as a circle from the toggle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-reveal .75s cubic-bezier(.22,1,.36,1) both; }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }
html.theme-anim, html.theme-anim body, html.theme-anim body *:not(canvas) { transition: none !important; }

/* every button: presses in while held, springs back a touch bigger on release */
.btn:active, button:active, .ft-up:active { animation: btn-press .14s cubic-bezier(.3,0,.5,1) forwards; }
.btn.pop, button.pop, .ft-up.pop { animation: btn-pop .42s cubic-bezier(.34,1.56,.64,1); }
.mock button:active, .mock button.pop { animation: none; }
@keyframes btn-press { to { scale: .94; } }
@keyframes btn-pop { 0% { scale: .94; } 55% { scale: 1.045; } 100% { scale: 1; } }

/* corner nodes stay solid when lit, so the lines never show through */
.node { background-color: color-mix(in srgb, #12345e calc(var(--nh, 0) * 100%), var(--bg)); }

/* contact card: the spotlight owns its pseudo-elements; actions line up */
.ct-card.spot::before { inset: 0; width: auto; height: auto; border: 0; }
.ct-card.spot::after { inset: 0; width: auto; height: auto; border: 0; }
.ct-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ct-actions .btn, .ct-tpl-copy { width: 100%; justify-content: center; }

/* HUD readouts react to the cursor */
.hud span { transition: color .3s, text-shadow .3s, transform .45s var(--ease); transform: translateX(calc(var(--nh, 0) * 3px)); color: color-mix(in srgb, #9fd0ff calc(var(--nh, 0) * 100%), var(--text-3)); }
.hud-top span { transform: translateY(calc(var(--nh, 0) * 2px)); }
.hud span b { transition: color .3s, text-shadow .3s; text-shadow: 0 0 calc(var(--nh, 0) * 10px) rgba(96,165,250, calc(var(--nh, 0) * .9)); color: color-mix(in srgb, #ffffff calc(var(--nh, 0) * 100%), #d4d4d8); }
.hud-side i { transition: background-color .3s; }

/* pixel autoscroll anchor: same scale as the cursor arrow */
#px-auto { width: 10px; height: 15.7px; }

/* ================================================================ v5.3 */
/* guides: the holes cut under corner nodes combine by intersection */
.guides { -webkit-mask-composite: source-in; mask-composite: intersect; }
.ruler-tick b.on { color: #bfe0ff; }

/* buttons: press in quickly, then keep sinking a little while held */
@keyframes btn-press { 0% { scale: 1; } 22% { scale: .94; } 100% { scale: .9; } }
.btn:active, button:active, .ft-up:active { animation: btn-press .9s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes btn-pop { 0% { scale: .92; } 55% { scale: 1.045; } 100% { scale: 1; } }

/* error pages: the code in large mono type under a lens, a one-line label, falling code behind */
.err-num { position: relative; width: min(92vw, 720px); aspect-ratio: 2 / 1; margin: 0 auto 4px; display: grid; place-items: center;
  font: 700 calc(min(92vw, 720px) * .4)/1 var(--f-mono); letter-spacing: -.04em; color: var(--text); user-select: none; }
.err-num.fx-on { color: transparent !important; }
.err-lens { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.err-code { font-size: 12px; letter-spacing: .16em; margin-bottom: 22px; }
.err-rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.err-art { display: none; }
.err { padding-top: calc(var(--header-h) + 8px); }

/* ================================================================ v5.4 wordmark lens */
.ft-wm { position: relative; }
.wm-lens { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .18s ease-out; }
.lt-wm .wm-lens { inset: -25%; width: 150%; height: 150%; max-width: none; max-height: none; }
.wm-lens { max-width: none; }
.lens-on > .wm-lens { opacity: 1; }
.lt-wm > span, .ft-wm > span { transition: opacity .18s ease-out; }
.lens-on > span { opacity: 0; }

/* ================================================================ v5.5 */
/* theme switch: the circle opens with a wide soft edge */
@property --vt-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
::view-transition-new(root) { animation: vt-soft .9s cubic-bezier(.3,.7,.25,1) both;
  -webkit-mask-image: radial-gradient(circle at var(--vt-x, 50%) var(--vt-y, 0), #000 calc(var(--vt-r) - 220px), transparent var(--vt-r));
  mask-image: radial-gradient(circle at var(--vt-x, 50%) var(--vt-y, 0), #000 calc(var(--vt-r) - 220px), transparent var(--vt-r)); clip-path: none; }
@keyframes vt-soft { from { --vt-r: 0px; } to { --vt-r: calc(150vmax + 220px); } }

/* tooltip */
.tip { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; padding: 7px 11px; max-width: 260px;
  font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #dcebff; white-space: nowrap;
  background: #070b16; border: 1px solid rgba(110,175,255,.55); box-shadow: 0 0 0 1px rgba(5,6,11,.6), 0 0 18px rgba(75,149,255,.35), 0 10px 30px -10px rgba(0,0,0,.7);
  opacity: 0; translate: 0 4px; transition: opacity .22s ease, translate .3s cubic-bezier(.22,1,.36,1); }
.tip.below { translate: 0 -4px; }
.tip.on { opacity: 1; translate: 0 0; }
.tip i { position: absolute; left: var(--ax, 50%); bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: #070b16;
  border-right: 1px solid rgba(110,175,255,.55); border-bottom: 1px solid rgba(110,175,255,.55); transform: rotate(45deg); }
.tip.below i { bottom: auto; top: -5px; transform: rotate(225deg); }

/* header: the call to action matches the theme button's height */
.nav-cta .btn { height: 38px; padding: 0 18px; }

/* support: both Fab buttons share one style and one width */
.btn-fab { min-width: 176px; }

/* FAQ spans the full content width, like the rows above it */
.faq-wrap, .faq-wrap.center { max-width: none; margin-inline: 0; }

/* footer column markers: a soft lift on hover, a press while held */
.ft-h::before { transition: transform .45s var(--ease), background-color .3s, box-shadow .3s, border-color .3s; }
.foot-col:hover .ft-h::before, .foot-brand:hover .ft-h::before { transform: rotate(45deg) scale(1.35); background: rgba(75,149,255,.55); border-color: #9fd0ff; box-shadow: 0 0 10px rgba(96,165,250,.9); }
.foot-col:active .ft-h::before, .foot-brand:active .ft-h::before { transform: rotate(45deg) scale(.9); transition-duration: .15s; }

/* ================================================================ v5.7 */
/* blur under open text: one soft-edged frosted patch per block (replaces the per-heading patches) */
.hero h1::before, .page-hero h1::before, .sec-head h2::before, .sec-head .lead::before, .split-copy h2::before, .split-copy > p::before, .hero .lead::before, .page-hero .lead::before, .lic-head h2::before, .lic-head p::before, .cta h2::before, .cta .lead::before { content: none !important; }
.has-tblur { isolation: isolate; }
.tb-rel { position: relative; }
.tblur { position: absolute; inset: -20px -32px; z-index: -1; pointer-events: none; display: block;
  background: rgba(5,6,11,.22); -webkit-backdrop-filter: blur(5px) saturate(.9); backdrop-filter: blur(5px) saturate(.9);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent), linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent), linear-gradient(to bottom, transparent, #000 20px, #000 calc(100% - 20px), transparent); mask-composite: intersect; }
.row > div > .tblur, .story-steps .step > .tblur, .fx-col > .tblur { inset: -12px -20px; }
@media (max-width: 760px) { .tblur { inset: -10px -8px; } }
@media (prefers-reduced-transparency: reduce) { .tblur { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5,6,11,.5); } }

/* header: the primary button and the theme button are exactly the same height (no outer ring adding a pixel) */
.nav-cta .btn, .theme-btn { height: 38px; box-sizing: border-box; }
.nav-cta .btn-primary { box-shadow: 0 0 22px rgba(255,255,255,.14); border: 1px solid #fff; }
.nav-cta .btn-primary:hover { box-shadow: 0 0 34px rgba(255,255,255,.3); }

/* ================================================================ v5.8 */
/* text blur: gentler, with a wide feather (the whole padding fades) so it never reads as a box */
.tblur { inset: -44px -72px; background: rgba(5,6,11,.12); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 84px, #000 calc(100% - 84px), transparent), linear-gradient(to bottom, transparent, #000 52px, #000 calc(100% - 52px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 84px, #000 calc(100% - 84px), transparent), linear-gradient(to bottom, transparent, #000 52px, #000 calc(100% - 52px), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.row > div > .tblur, .story-steps .step > .tblur, .fx-col > .tblur { inset: -30px -46px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 54px, #000 calc(100% - 54px), transparent), linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 54px, #000 calc(100% - 54px), transparent), linear-gradient(to bottom, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
@media (max-width: 760px) { .tblur { inset: -20px -14px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 26px, #000 calc(100% - 26px), transparent); } }

/* panels: crisp text at rest. The 3D tilt (which makes the browser draw the card as a texture, softening its text) is
   applied only while the pointer is on the card; it eases back to a flat, sharp card when the pointer leaves */
.tilt, .js [data-reveal].tilt.is-in { transform: none; will-change: auto; }
.tilt.tilting, .js [data-reveal].tilt.is-in.tilting { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* darker card surfaces */
.card, .product, .cell, .contact, .release, .ct-card, .manual { background: linear-gradient(180deg, rgba(10,12,19,.94), rgba(6,7,12,.97)); }
.stat { background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.055); }
.tbl-wrap { background: rgba(6,7,12,.9); }
.fx-col { background: rgba(6,7,12,.75); }

/* ================================================================ v5.9 glass panels */
/* frosted glass: a translucent dark tint, a backdrop blur of the blueprint behind, a light top edge and a faint sheen */
.card, .product, .cell, .contact, .release, .ct-card, .manual, .tbl-wrap {
  background: linear-gradient(160deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.015) 38%, rgba(255,255,255,.008) 100%), rgba(8,10,17,.58);
  -webkit-backdrop-filter: blur(16px) saturate(1.35); backdrop-filter: blur(16px) saturate(1.35);
  border-color: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 0 1px rgba(255,255,255,.015), 0 24px 60px -28px rgba(0,0,0,.85); }
.stat { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border-color: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.fx-col { background: rgba(8,10,17,.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.product:hover, .cell:hover, .contact:hover, .manual:hover, .release:hover, .ct-card:hover { border-color: rgba(140,190,255,.32); }
@media (prefers-reduced-transparency: reduce) { .card, .product, .cell, .contact, .release, .ct-card, .manual, .tbl-wrap, .fx-col { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0a0c13; } }

/* ================================================================ v6 typewriter + fixed rays */
.js .tw-c { opacity: 0; filter: blur(7px); transition: opacity .38s ease-out, filter .5s cubic-bezier(.22,1,.36,1); }
.js .tw-c.tw-nb { filter: none; }
.js .tw-c.on { opacity: 1; filter: blur(0); }
.tw-caret { display: inline-block; position: relative; width: 0; height: 1em; vertical-align: -.12em; }
.tw-caret::after { content: ""; position: absolute; left: .06em; top: 0; width: .08em; min-width: 2px; height: 100%; background: var(--ice); box-shadow: 0 0 8px rgba(96,165,250,.8); animation: crt-blink .9s steps(1) infinite; }
.kicker .tw-caret::after, .mark-hint .tw-caret::after, .err-code .tw-caret::after { width: .6em; opacity: .85; }
.tw-caret.out { opacity: 0; transition: opacity .45s; }
@media (prefers-reduced-motion: reduce) { .js .tw-c { opacity: 1; filter: none; } }
/* fixed rays behind the page once the hero has gone */
.rays-fixed { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.bg-scene canvas.rays-fixed { -webkit-mask-image: linear-gradient(135deg, #000 40%, rgba(0,0,0,.6) 78%, transparent 100%); mask-image: linear-gradient(135deg, #000 40%, rgba(0,0,0,.6) 78%, transparent 100%); transition: opacity .6s ease; }
/* story progress: a lit head rides the fill; finished segments throw tiny sparks */
.story-progress i { overflow: visible; }
.story-progress i::after { overflow: hidden; }
.story-progress i::before { content: ""; position: absolute; top: 50%; left: calc(var(--f, 0) * 100%); width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #dff0ff; box-shadow: 0 0 6px 1px var(--blue), 0 0 12px var(--cyan); opacity: calc(var(--f, 0) * 40 * (1 - var(--f, 0))); z-index: 1; }
.bar-spark { position: absolute; right: 0; top: 50%; width: 2px; height: 2px; margin-top: -1px; background: #cfe8ff; box-shadow: 0 0 4px var(--blue); pointer-events: none; animation: bar-spark .7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes bar-spark { from { opacity: 1; transform: translate(0,0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
/* gradient text that types in: each character carries the gradient (a clipped parent would show them all at once) */
.tw .grad-text { background: none; color: transparent; }
.tw .grad-text .tw-c { background: linear-gradient(180deg, #fff, #f4f4f5 45%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* typed kickers flow as text (in a flex box every character would become its own item and spaces would collapse) */
.kicker.tw { display: inline-block; }
.kicker.tw img, .kicker.tw svg { display: inline-block; vertical-align: -5px; margin-right: 10px; }
@media (max-width: 760px) { .tblur { inset: -18px 0; } }
html, body { overflow-x: clip; }

/* ================================================================ v6.3 */
/* fixed rays: an overlay above the page, below the header and HUD */
.rays-fixed { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 25; pointer-events: none; mix-blend-mode: screen; transition: opacity .6s ease;
  -webkit-mask-image: linear-gradient(135deg, #000 45%, rgba(0,0,0,.7) 80%, transparent 100%); mask-image: linear-gradient(135deg, #000 45%, rgba(0,0,0,.7) 80%, transparent 100%); }
@media print { .rays-fixed { display: none; } }

/* theme switch: frosted layers turn solid for the length of the transition (no black flash) */
.vt-run *, .vt-run *::before, .vt-run *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.vt-run .site-header { background: rgba(5,6,11,.94) !important; }

/* section hand-off line: drawn on the top edge of the section sliding over (sharp, never blurred with the section
   sinking underneath), full width so the horizontal rule reaches both edges, brighter over the content frame */
.sheet-ln { display: none; }
.sheet-tl { position: absolute; left: 0; right: 0; top: -1px; height: 1px; z-index: 32; pointer-events: none; opacity: var(--gdn, 0);
  background: linear-gradient(90deg, rgba(150,200,255,.25), rgba(150,200,255,.45) 20%, rgba(150,200,255,.45) 80%, rgba(150,200,255,.25));
  box-shadow: 0 0 18px 1px rgba(75,149,255,.3), 0 0 60px 6px rgba(75,149,255,.12); }
.sheet-tl::after { content: ""; position: absolute; top: 0; height: 1px; left: max(0px, calc((100% - var(--frame) - var(--rs)) / 2)); right: max(var(--rs), calc((100% - var(--frame) - var(--rs)) / 2 + var(--rs)));
  background: linear-gradient(90deg, transparent, rgba(170,210,255,.7) 18%, #e6f2ff 50%, rgba(170,210,255,.7) 82%, transparent);
  box-shadow: 0 0 10px 1px rgba(96,165,250,.5), 0 0 34px 4px rgba(75,149,255,.22); }

/* error page buttons share one height (the icon must not stretch one of them) */
.err .btn-row .btn { height: 44px; line-height: 1; }
.err .btn-row .btn svg, .err .btn-row .btn .i { width: 16px; height: 16px; flex: none; }

/* error page search: clear button, spinner, result cards */
.err-search input { padding-right: 48px; }
.err-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.err-clear { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; background: none; color: var(--text-3); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, color .2s, border-color .2s; }
.err-clear svg { width: 12px; height: 12px; }
.err-search.has-q .err-clear { opacity: 1; pointer-events: auto; }
.err-clear:hover { color: #fff; border-color: rgba(110,175,255,.4); }
.err-spin { position: absolute; right: 52px; top: 19px; width: 14px; height: 14px; border: 1px solid rgba(110,175,255,.25); border-top-color: var(--ice); opacity: 0; animation: er-spin .7s linear infinite; }
.err-search.busy .err-spin { opacity: 1; }
@keyframes er-spin { to { transform: rotate(360deg); } }
.err-results { margin-top: 10px; max-height: 440px; overflow-y: auto; border: 1px solid rgba(110,175,255,.25); background: rgba(7,9,15,.96);
  box-shadow: 0 0 0 1px rgba(5,6,11,.6), 0 24px 60px -24px rgba(0,0,0,.9), 0 0 30px -10px rgba(75,149,255,.35); scrollbar-width: thin; }
.err-results a { position: relative; display: block; padding: 14px 18px 14px 20px; border-bottom: 1px solid var(--line); animation: er-in .35s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 35ms); transition: background-color .2s; }
.err-results a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan)); transform: scaleY(0); transition: transform .3s var(--ease); }
.err-results a:hover, .err-results a.on, .err-results a:focus-visible { background: rgba(75,149,255,.08); outline: none; }
.err-results a:hover::before, .err-results a.on::before { transform: scaleY(1); }
@keyframes er-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.er-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.er-top b { font: 600 var(--fs-sm)/1.3 var(--f-display); color: var(--text); }
.er-top em { font: 500 11px/1.3 var(--f-mono); font-style: normal; color: var(--text-3); letter-spacing: .04em; }
.er-chip { flex: none; padding: 3px 6px; font: 600 9px/1 var(--f-mono); letter-spacing: .12em; font-style: normal; border: 1px solid; }
.er-grade { color: #ffb4d8; border-color: rgba(255,90,170,.45); background: rgba(255,60,150,.08); }
.er-mosaic { color: #9fd0ff; border-color: rgba(90,162,255,.45); background: rgba(75,149,255,.08); }
.er-snip { display: block; margin-top: 6px; font: 400 12.5px/1.55 var(--f-text); color: var(--text-2); }
.err-results mark { background: rgba(75,149,255,.22); color: #fff; padding: 0 1px; }
.er-foot { display: flex; justify-content: space-between; margin: 0; padding: 9px 18px; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); background: rgba(255,255,255,.015); }
.er-none .er-top b { color: var(--text-2); }
.err-results .er-top { font: inherit; color: inherit; }
.err-results .er-snip { font: 400 12.5px/1.55 var(--f-text); color: var(--text-2); }
.err-results mark { border-radius: 0; }
/* primary buttons: a real 1px border instead of an outer ring, so they are exactly as tall as their neighbours */
.btn-primary { border: 1px solid #fff; box-shadow: 0 0 22px rgba(255,255,255,.14); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(255,255,255,.3); }

/* ================================================================ v6.4 */
/* ruler numbers glide aside smoothly */
.ruler-tick b { transition: transform .22s ease-out, opacity .25s ease, color .25s; }

/* ================================================================ v6.7 */
/* ruler numbers move in the same frame as their ticks (no transition lag) */
.ruler-tick b { transition: color .25s; }
/* hand-off line fades out toward both ends */
.sheet-tl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
/* the mask would cut the glow of a 1px box: the line lives inside a taller, horizontally masked strip */
.sheet-tl { top: -61px; height: 121px; background: none; box-shadow: none; }
.sheet-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 60px; height: 1px;
  background: linear-gradient(90deg, rgba(150,200,255,.25), rgba(150,200,255,.45) 20%, rgba(150,200,255,.45) 80%, rgba(150,200,255,.25));
  box-shadow: 0 0 18px 1px rgba(75,149,255,.3), 0 0 60px 6px rgba(75,149,255,.12); }
.sheet-tl::after { top: 60px; }
.story-frame picture { display: block; width: 100%; height: 100%; }
.story-frame figure.contain { background: #0e0f12; }
/* story screenshots: border glow around the cursor and a gentle tilt (spot + tilt from site.js) */
.story-frame.spot { overflow: visible; }
.story-frame.spot::before, .story-frame.spot::after { z-index: 3; }
.story-frame figure { transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease), border-color .3s; }
.story-frame:hover figure.is-active { border-color: rgba(110,175,255,.45); box-shadow: 0 0 0 1px rgba(110,175,255,.12), 0 0 34px -6px rgba(75,149,255,.45); }

/* ================================================================ v6.8 real-picture gallery + site lightbox */
.collage-9 .cl-grid { grid-template-rows: repeat(3, clamp(120px, 13vw, 190px)); grid-template-areas: "a a a b b c" "a a a d e e" "f f g h h i"; }
.cl-6 { grid-area: f; } .cl-7 { grid-area: g; } .cl-8 { grid-area: h; } .cl-9 { grid-area: i; }
.cl-pic { padding: 12px 14px; border-style: solid; border-color: var(--line-2); background: #0b0d14; cursor: zoom-in; isolation: isolate; }
.cl-pic::before { display: none; }
.cl-pic::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5,6,11,.35), transparent 30%, transparent 55%, rgba(5,6,11,.75)); transition: opacity .4s; }
.cl-img { position: absolute; inset: 0; z-index: 0; }
.cl-img picture, .cl-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease), filter .5s; }
.cl-pic b, .cl-pic em { z-index: 2; }
.cl-pic:hover { border-color: rgba(110,175,255,.6); box-shadow: 0 0 0 1px rgba(110,175,255,.15), 0 0 30px -6px rgba(75,149,255,.55); }
.cl-pic:hover .cl-img img { transform: scale(1.045); filter: brightness(1.08); }
.cl-pic:hover::after { opacity: .55; }
.cl-pic:focus-visible { outline: 1px solid var(--ice); outline-offset: 2px; }
@media (max-width: 760px) {
  .collage-9 .cl-grid { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(150px, 42vw, 220px) repeat(4, clamp(100px, 28vw, 150px)); grid-template-areas: "a a" "b c" "d e" "f g" "h i"; }
}
.site-lb { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(3,4,8,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-lb[hidden] { display: none; }
.site-lb figure { margin: 0; text-align: center; }
.site-lb img { display: block; max-width: 90vw; max-height: 82vh; object-fit: contain; border: 1px solid rgba(110,175,255,.25); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 40px -10px rgba(75,149,255,.35); background: #0b0d14; }
.site-lb figcaption { margin-top: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); opacity: 0; transform: translateY(8px); transition: opacity .5s .25s, transform .6s .25s var(--ease); }
.site-lb.is-open figcaption { opacity: 1; transform: none; }
.slb-close, .slb-nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text-2); cursor: pointer; transition: color .25s, border-color .25s, background-color .25s, box-shadow .3s; }
.slb-close { top: 18px; right: 18px; } .slb-prev { left: 18px; top: 50%; translate: 0 -50%; } .slb-next { right: 18px; top: 50%; translate: 0 -50%; }
.slb-close svg, .slb-nav svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.slb-close:hover, .slb-nav:hover { color: #fff; border-color: rgba(110,175,255,.6); background: rgba(75,149,255,.14); box-shadow: 0 0 22px rgba(75,149,255,.45); }
.slb-close:hover svg { transform: rotate(90deg); }

/* ================================================================ v6.9 CTA picture reel */
.cta-reel { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, #000 35%, transparent 100%); }
.cr-in { position: absolute; inset: -18% -12%; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  transform: translate3d(var(--rx2, 0px), var(--ry2, 0px), 0) rotate(-5deg) scale(1.04); filter: blur(2.6px) saturate(.85) brightness(.5); transition: filter .6s ease; }
.cr-row { overflow: visible; }
.cr-track { display: flex; gap: 14px; width: max-content; animation: cr-left 120s linear infinite; will-change: transform; }
.cr-2 .cr-track { animation-name: cr-right; animation-duration: 150s; }
.cr-3 .cr-track { animation-duration: 135s; }
.cr-track img { display: block; height: clamp(120px, 15vw, 210px); width: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; border: 1px solid rgba(255,255,255,.06); }
@keyframes cr-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes cr-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.cta:hover .cr-in { filter: blur(2px) saturate(.95) brightness(.58); }
/* keep the copy readable over the pictures */
.cta-reel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(5,6,11,.55), rgba(5,6,11,.25) 60%, rgba(5,6,11,.1)); }
.cta-reel:not(.on) .cr-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cr-track { animation: none; } }
#px-cursor.on { transition: opacity .08s; }
/* reel: deeper parallax (rows move by different amounts) and a stronger blue light at the foot of the panel */
.cr-in { transform: rotate(-5deg) scale(1.08); transition: filter .6s ease; }
.cr-row { transform: translate3d(calc(var(--rx2, 0px) * var(--d, 1)), calc(var(--ry2, 0px) * var(--d, 1)), 0); }
.cr-1 { --d: 1.5; } .cr-2 { --d: 1; } .cr-3 { --d: .6; }
.cta:hover .cr-in { filter: blur(2.2px) saturate(.95) brightness(.56); }
.cta-glow { bottom: -26%; height: 70%; background: radial-gradient(closest-side, rgba(70,130,255,.85), rgba(52,100,220,.32) 50%, transparent); mix-blend-mode: screen; z-index: 1; }

/* v7.0 — CTA panel tilts like a card toward the pointer (about ±3.5° sideways, ±3° up and down) */
.cta-zoom { perspective: none; }
.cta-zoom .cta { transform: perspective(1500px) rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg)) scale(calc(.8 + .2 * var(--in, 1))) translate3d(0, calc((1 - var(--in, 1)) * 40px), 0); }
@media (hover: none), (prefers-reduced-motion: reduce) { .cta-zoom .cta { transform: scale(calc(.8 + .2 * var(--in, 1))) translate3d(0, calc((1 - var(--in, 1)) * 40px), 0); } }

/* home collage: framing of the narrow tiles */
.collage-5 .cl-3 .cl-img img { object-position: 50% 45%; }
.collage-5 .cl-4 .cl-img img { object-position: 30% 40%; }
.collage-5 .cl-5 .cl-img img { object-position: 20% 20%; }

/* v7.1 — cursor across page changes: the pixel cursor is in the page markup (drawn by CSS until site.js takes over) and
   has its own view-transition layer, so during the page-change animation it stays on top of the header and the
   system cursor never shows (html.px-cur is set by the head script before the first paint) */
#px-cursor { width: 20px; height: 20px; view-transition-name: px-cursor; }
#px-cursor:not(.drawn) { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' shape-rendering='crispEdges'><rect x='1' y='1' width='4' height='4' fill='%234b95ff'/><rect x='1' y='3' width='4' height='4' fill='%234b95ff'/><rect x='3' y='3' width='4' height='4' fill='%234b95ff'/><rect x='1' y='5' width='4' height='4' fill='%234b95ff'/><rect x='3' y='5' width='4' height='4' fill='%234b95ff'/><rect x='5' y='5' width='4' height='4' fill='%234b95ff'/><rect x='1' y='7' width='4' height='4' fill='%234b95ff'/><rect x='3' y='7' width='4' height='4' fill='%234b95ff'/><rect x='5' y='7' width='4' height='4' fill='%234b95ff'/><rect x='7' y='7' width='4' height='4' fill='%234b95ff'/><rect x='1' y='9' width='4' height='4' fill='%234b95ff'/><rect x='3' y='9' width='4' height='4' fill='%234b95ff'/><rect x='5' y='9' width='4' height='4' fill='%234b95ff'/><rect x='7' y='9' width='4' height='4' fill='%234b95ff'/><rect x='9' y='9' width='4' height='4' fill='%234b95ff'/><rect x='1' y='11' width='4' height='4' fill='%234b95ff'/><rect x='3' y='11' width='4' height='4' fill='%234b95ff'/><rect x='5' y='11' width='4' height='4' fill='%234b95ff'/><rect x='7' y='11' width='4' height='4' fill='%234b95ff'/><rect x='9' y='11' width='4' height='4' fill='%234b95ff'/><rect x='11' y='11' width='4' height='4' fill='%234b95ff'/><rect x='1' y='13' width='4' height='4' fill='%234b95ff'/><rect x='3' y='13' width='4' height='4' fill='%234b95ff'/><rect x='5' y='13' width='4' height='4' fill='%234b95ff'/><rect x='7' y='13' width='4' height='4' fill='%234b95ff'/><rect x='9' y='13' width='4' height='4' fill='%234b95ff'/><rect x='11' y='13' width='4' height='4' fill='%234b95ff'/><rect x='13' y='13' width='4' height='4' fill='%234b95ff'/><rect x='1' y='15' width='4' height='4' fill='%234b95ff'/><rect x='3' y='15' width='4' height='4' fill='%234b95ff'/><rect x='5' y='15' width='4' height='4' fill='%234b95ff'/><rect x='7' y='15' width='4' height='4' fill='%234b95ff'/><rect x='9' y='15' width='4' height='4' fill='%234b95ff'/><rect x='1' y='17' width='4' height='4' fill='%234b95ff'/><rect x='3' y='17' width='4' height='4' fill='%234b95ff'/><rect x='7' y='17' width='4' height='4' fill='%234b95ff'/><rect x='9' y='17' width='4' height='4' fill='%234b95ff'/><rect x='1' y='19' width='4' height='4' fill='%234b95ff'/><rect x='7' y='19' width='4' height='4' fill='%234b95ff'/><rect x='9' y='19' width='4' height='4' fill='%234b95ff'/><rect x='7' y='21' width='4' height='4' fill='%234b95ff'/><rect x='9' y='21' width='4' height='4' fill='%234b95ff'/><rect x='9' y='23' width='4' height='4' fill='%234b95ff'/><rect x='2' y='2' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='4' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='4' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='6' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='6' width='2' height='2' fill='%23eaf3ff'/><rect x='6' y='6' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='8' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='8' width='2' height='2' fill='%23eaf3ff'/><rect x='6' y='8' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='8' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='10' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='10' width='2' height='2' fill='%23eaf3ff'/><rect x='6' y='10' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='10' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='10' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='12' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='12' width='2' height='2' fill='%23eaf3ff'/><rect x='6' y='12' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='12' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='12' width='2' height='2' fill='%23eaf3ff'/><rect x='12' y='12' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='14' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='14' width='2' height='2' fill='%23eaf3ff'/><rect x='6' y='14' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='14' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='14' width='2' height='2' fill='%23eaf3ff'/><rect x='12' y='14' width='2' height='2' fill='%23eaf3ff'/><rect x='14' y='14' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='16' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='16' width='2' height='2' fill='%23eaf3ff'/><rect x='6' y='16' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='16' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='16' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='18' width='2' height='2' fill='%23eaf3ff'/><rect x='4' y='18' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='18' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='18' width='2' height='2' fill='%23eaf3ff'/><rect x='2' y='20' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='20' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='20' width='2' height='2' fill='%23eaf3ff'/><rect x='8' y='22' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='22' width='2' height='2' fill='%23eaf3ff'/><rect x='10' y='24' width='2' height='2' fill='%23eaf3ff'/></svg>") 0 0 / 20px 20px no-repeat; image-rendering: pixelated; }
html[data-theme="light"] #px-cursor:not(.drawn) { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' shape-rendering='crispEdges'><rect x='1' y='1' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='3' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='3' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='5' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='5' width='4' height='4' fill='%232f7bf0'/><rect x='5' y='5' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='7' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='7' width='4' height='4' fill='%232f7bf0'/><rect x='5' y='7' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='7' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='9' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='9' width='4' height='4' fill='%232f7bf0'/><rect x='5' y='9' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='9' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='9' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='11' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='11' width='4' height='4' fill='%232f7bf0'/><rect x='5' y='11' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='11' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='11' width='4' height='4' fill='%232f7bf0'/><rect x='11' y='11' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='13' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='13' width='4' height='4' fill='%232f7bf0'/><rect x='5' y='13' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='13' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='13' width='4' height='4' fill='%232f7bf0'/><rect x='11' y='13' width='4' height='4' fill='%232f7bf0'/><rect x='13' y='13' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='15' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='15' width='4' height='4' fill='%232f7bf0'/><rect x='5' y='15' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='15' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='15' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='17' width='4' height='4' fill='%232f7bf0'/><rect x='3' y='17' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='17' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='17' width='4' height='4' fill='%232f7bf0'/><rect x='1' y='19' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='19' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='19' width='4' height='4' fill='%232f7bf0'/><rect x='7' y='21' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='21' width='4' height='4' fill='%232f7bf0'/><rect x='9' y='23' width='4' height='4' fill='%232f7bf0'/><rect x='2' y='2' width='2' height='2' fill='%2305070d'/><rect x='2' y='4' width='2' height='2' fill='%2305070d'/><rect x='4' y='4' width='2' height='2' fill='%2305070d'/><rect x='2' y='6' width='2' height='2' fill='%2305070d'/><rect x='4' y='6' width='2' height='2' fill='%2305070d'/><rect x='6' y='6' width='2' height='2' fill='%2305070d'/><rect x='2' y='8' width='2' height='2' fill='%2305070d'/><rect x='4' y='8' width='2' height='2' fill='%2305070d'/><rect x='6' y='8' width='2' height='2' fill='%2305070d'/><rect x='8' y='8' width='2' height='2' fill='%2305070d'/><rect x='2' y='10' width='2' height='2' fill='%2305070d'/><rect x='4' y='10' width='2' height='2' fill='%2305070d'/><rect x='6' y='10' width='2' height='2' fill='%2305070d'/><rect x='8' y='10' width='2' height='2' fill='%2305070d'/><rect x='10' y='10' width='2' height='2' fill='%2305070d'/><rect x='2' y='12' width='2' height='2' fill='%2305070d'/><rect x='4' y='12' width='2' height='2' fill='%2305070d'/><rect x='6' y='12' width='2' height='2' fill='%2305070d'/><rect x='8' y='12' width='2' height='2' fill='%2305070d'/><rect x='10' y='12' width='2' height='2' fill='%2305070d'/><rect x='12' y='12' width='2' height='2' fill='%2305070d'/><rect x='2' y='14' width='2' height='2' fill='%2305070d'/><rect x='4' y='14' width='2' height='2' fill='%2305070d'/><rect x='6' y='14' width='2' height='2' fill='%2305070d'/><rect x='8' y='14' width='2' height='2' fill='%2305070d'/><rect x='10' y='14' width='2' height='2' fill='%2305070d'/><rect x='12' y='14' width='2' height='2' fill='%2305070d'/><rect x='14' y='14' width='2' height='2' fill='%2305070d'/><rect x='2' y='16' width='2' height='2' fill='%2305070d'/><rect x='4' y='16' width='2' height='2' fill='%2305070d'/><rect x='6' y='16' width='2' height='2' fill='%2305070d'/><rect x='8' y='16' width='2' height='2' fill='%2305070d'/><rect x='10' y='16' width='2' height='2' fill='%2305070d'/><rect x='2' y='18' width='2' height='2' fill='%2305070d'/><rect x='4' y='18' width='2' height='2' fill='%2305070d'/><rect x='8' y='18' width='2' height='2' fill='%2305070d'/><rect x='10' y='18' width='2' height='2' fill='%2305070d'/><rect x='2' y='20' width='2' height='2' fill='%2305070d'/><rect x='8' y='20' width='2' height='2' fill='%2305070d'/><rect x='10' y='20' width='2' height='2' fill='%2305070d'/><rect x='8' y='22' width='2' height='2' fill='%2305070d'/><rect x='10' y='22' width='2' height='2' fill='%2305070d'/><rect x='10' y='24' width='2' height='2' fill='%2305070d'/></svg>"); }
#px-cursor canvas { display: block; }
::view-transition-group(px-cursor) { animation-duration: 0s; z-index: 10; }
::view-transition-old(px-cursor) { display: none; }
::view-transition-new(px-cursor) { animation: none; }

/* v7.2 — the fixed rays sit under the page content (cards, tables, pictures cover them), over the background scene */
.rays-fixed { z-index: 1; }

/* v7.3 — header progress line: grows in width instead of scaleX, so its glow is never squeezed into a tall blurred blob
   at small values or during fast scrolling; hidden at the very top */
.nav-progress i { transform: none; width: calc(var(--p, 0) * 100%); opacity: calc(var(--p, 0) * 60); will-change: width; }

/* ================================================================ v7.4 feature tour (GRADE [02])
   A pinned stage: chapter rail on top, a large picture with three detail pictures beside it, and the copy below. */
.tour { position: relative; height: calc(var(--n, 7) * 78vh + 100vh); margin-top: clamp(24px, 3vw, 40px); }
.tour-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: calc(var(--header-h) + 18px) 0 18px; }
.tour-rail { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 8px; flex: none; }
.tr-tab { appearance: none; border: 0; background: none; color: var(--text-3); text-align: left; cursor: pointer; padding: 6px 0 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; row-gap: 9px; font: inherit; transition: color .35s; }
.tr-n { font: 500 10px/1 var(--f-mono); letter-spacing: .12em; color: inherit; opacity: .8; }
.tr-t { font: 500 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-bar { grid-column: 1 / -1; position: relative; display: block; height: 2px; background: var(--line-2); }
.tr-bar b:not(.bar-spark) { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--f, 0) * 100%); background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 8px rgba(75,149,255,.8); opacity: calc(var(--f, 0) * 40); }
.tr-tab:hover { color: var(--text-2); }
.tr-tab.is-active { color: #fff; }
.tr-tab.is-active .tr-n { color: var(--sky); opacity: 1; }
.tr-tab:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; }
.tour-stage { position: relative; flex: 1; min-height: 0; }
.tour-ch { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 18px; visibility: hidden; pointer-events: none; transition: visibility 0s linear .7s; }
.tour-ch.is-active { visibility: visible; pointer-events: auto; transition: none; }
.tc-media { display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 19%, 250px); gap: 12px; min-height: 0; }
.tc-hero, .tc-th { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #0c0e14; cursor: zoom-in; isolation: isolate; }
.tc-img, .tc-img picture { position: absolute; inset: 0; display: block; }
.tc-img img { width: 100%; height: 100%; display: block; }
.tc-hero .tc-img img { object-fit: contain; transform: scale(calc(1 + var(--lp, 0) * .035)); transform-origin: 50% 40%; transition: transform .25s linear; }
.tc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(75,149,255,.08), transparent 70%), repeating-linear-gradient(0deg, rgba(159,180,255,.035) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(159,180,255,.035) 0 1px, transparent 1px 32px); }
.tc-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(5,6,11,.7); color: var(--ice); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.tc-hero:hover .tc-zoom { opacity: 1; transform: none; }
.tc-thumbs { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.tc-th .tc-img img { object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease), filter .5s; }
.tc-th em { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; font: 500 10px/1.3 var(--f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #e4e4e7; text-shadow: 0 1px 6px rgba(0,0,0,.9); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.tc-th::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(5,6,11,.8)); opacity: 0; transition: opacity .3s; }
.tc-th:hover em, .tc-th:hover::after { opacity: 1; transform: none; }
.tc-th:hover .tc-img img { transform: scale(1.06); filter: brightness(1.08); }
.tc-hero:hover, .tc-th:hover { border-color: rgba(110,175,255,.55); box-shadow: 0 0 0 1px rgba(110,175,255,.12), 0 0 34px -6px rgba(75,149,255,.5); }
.tc-hero:focus-visible, .tc-th:focus-visible { outline: 1px solid var(--ice); outline-offset: 2px; }
.tc-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 44px); align-items: start; border-top: 1px solid var(--line); padding-top: 16px; }
.tc-head .count { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .12em; color: var(--text-3); margin-bottom: 12px; }
.tc-head .count b { color: var(--sky); font-weight: 500; }
.tc-head h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.875rem); line-height: 1.1; letter-spacing: -.03em; }
.tc-text { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.65; }
.tc-side { display: grid; gap: 16px; justify-items: start; }
.tc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-facts li { position: relative; padding-left: 16px; font: 500 11px/1.35 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #dfe6f3; }
.tc-facts li::before { content: ""; position: absolute; left: 0; top: .42em; width: 6px; height: 6px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tc-link { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #7db4ff; border-bottom: 1px solid rgba(125,180,255,.35); padding-bottom: 2px; transition: color .25s, text-shadow .25s; }
.tc-link:hover { color: #bfe0ff; text-shadow: 0 0 12px rgba(75,149,255,.8); }
.tour-foot { display: flex; justify-content: flex-end; flex: none; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
/* chapter change: the picture wipes in from the scroll direction with a short blur, the details and copy follow */
.tour-ch .tc-hero { opacity: 0; clip-path: inset(0 0 0 0 round var(--r-lg)); transform: translate3d(calc(var(--dir, 1) * 28px), 0, 0) scale(.985); filter: blur(10px);
  transition: opacity .55s var(--ease), transform .9s var(--ease), filter .6s var(--ease), border-color .3s, box-shadow .3s; }
.tour-ch .tc-th { opacity: 0; transform: translate3d(0, calc(var(--dir, 1) * 18px), 0); filter: blur(6px); transition: opacity .5s var(--ease), transform .8s var(--ease), filter .5s var(--ease), border-color .3s, box-shadow .3s; }
.tour-ch .tc-copy > * { opacity: 0; transform: translate3d(0, calc(var(--dir, 1) * 14px), 0); transition: opacity .45s var(--ease), transform .7s var(--ease); }
.tour-ch.is-active .tc-hero { opacity: 1; transform: none; filter: none; transition-delay: .05s; }
.tour-ch.is-active .tc-th { opacity: 1; transform: none; filter: none; transition-delay: calc(.18s + var(--k, 0) * .08s); }
.tour-ch.is-active .tc-copy > * { opacity: 1; transform: none; }
.tour-ch.is-active .tc-copy > :nth-child(1) { transition-delay: .12s; } .tour-ch.is-active .tc-copy > :nth-child(2) { transition-delay: .18s; }
.tour-ch.is-active .tc-copy > :nth-child(3) { transition-delay: .26s; }
/* stacked layout: phones, tablets and short screens */
@media (max-width: 960px), (max-height: 620px) {
  .tour { height: auto; }
  .tour-pin { position: relative; height: auto; padding: 0; gap: 0; }
  .tour-rail, .tour-foot { display: none; }
  .tour-ch { position: relative; inset: auto; visibility: visible; pointer-events: auto; grid-template-rows: auto auto; margin-bottom: clamp(48px, 8vw, 72px); }
  .tc-media { grid-template-columns: 1fr; }
  .tc-hero { aspect-ratio: 16 / 9.4; }
  .tc-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-th { aspect-ratio: 4 / 3; }
  .tc-copy { grid-template-columns: 1fr; gap: 14px; }
  .tour-ch .tc-hero, .tour-ch .tc-th, .tour-ch .tc-copy > * { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .tour-ch .tc-hero, .tour-ch .tc-th, .tour-ch .tc-copy > * { transition-duration: .01s !important; } .tc-hero .tc-img img { transform: none; } }
/* v7.5 — tour: square corners like the rest of the frames; rail fill like the old chapter bars (thin crisp line, a lit
   head riding the fill, sparks when a chapter is done) */
.tc-hero, .tc-th { border-radius: 0; }
.tour-ch .tc-hero { clip-path: none; }
.tr-bar b:not(.bar-spark) { box-shadow: 0 0 6px rgba(75,149,255,.55); }
.tc-zoom { border-radius: 0; }
.tr-bar::before { content: ""; position: absolute; top: 50%; left: calc(var(--f, 0) * 100%); width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #dff0ff; box-shadow: 0 0 6px 1px var(--blue), 0 0 12px var(--cyan); opacity: calc(var(--f, 0) * 40 * (1 - var(--f, 0))); z-index: 1; }

/* ================================================================ v7.6 tour tied to the scroll
   Every value below is driven by the scroll (site.js sets, per chapter: --t position in its chapter, --tc the same
   clamped to 0..1, --in / --out the slide in and out, --vis = visibility). No time-based transitions on these. */
.tc-scan { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(150,200,255,.55) 15%, rgba(225,240,255,.95) 50%, rgba(150,200,255,.55) 85%, transparent); box-shadow: 0 0 14px 2px rgba(75,149,255,.45); }
.tc-head { position: relative; isolation: isolate; }
.tc-big { position: absolute; right: 0; top: -.32em; z-index: -1; font: 600 clamp(84px, 9vw, 140px)/1 var(--f-mono); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(159,190,255,.16); pointer-events: none; user-select: none; }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-ch { visibility: hidden; transition: none; }
  .tour-ch.is-on { visibility: visible; }
  .tour-ch:not(.is-active) { pointer-events: none; }
  .tour-ch .tc-hero, .tour-ch.is-active .tc-hero { opacity: var(--vis, 0); filter: blur(calc((1 - var(--vis, 0)) * 6px));
    transform: translate3d(0, calc((1 - var(--in, 0)) * 90px - var(--out, 0) * 90px), 0) scale(calc(.95 + .05 * var(--in, 0) - .035 * var(--out, 0)));
    transition: border-color .3s, box-shadow .3s; transition-delay: 0s; will-change: transform, opacity, filter; }
  .tc-hero .tc-img img { transform: translate3d(0, calc((.5 - var(--tc, 0)) * 3%), 0) scale(calc(1.02 + var(--tc, 0) * .07)); transition: none; transform-origin: 50% 45%; }
  .tour-ch .tc-scan { top: calc(var(--tc, 0) * 100%); opacity: calc(var(--vis, 0) * (1 - var(--tc, 0) * .4) * .9); }
  .tour-ch .tc-th, .tour-ch.is-active .tc-th { opacity: var(--vis, 0); filter: blur(calc((1 - var(--vis, 0)) * 6px));
    transform: translate3d(0, calc(((1 - var(--in, 0)) - var(--out, 0)) * (120px + var(--k, 0) * 55px) + (.5 - var(--tc, 0)) * (var(--k, 0) - 1) * 34px), 0);
    transition: border-color .3s, box-shadow .3s; transition-delay: 0s; }
  .tour-ch .tc-copy > *, .tour-ch.is-active .tc-copy > * { opacity: var(--vc, 0); transition: none; transition-delay: 0s; }
  .tour-ch .tc-copy > :nth-child(1) { transform: translate3d(0, calc(((1 - var(--in, 0)) - var(--out, 0)) * 50px), 0); }
  .tour-ch .tc-copy > :nth-child(2) { transform: translate3d(0, calc(((1 - var(--in, 0)) - var(--out, 0)) * 75px), 0); }
  .tour-ch .tc-copy > :nth-child(3) { transform: translate3d(0, calc(((1 - var(--in, 0)) - var(--out, 0)) * 100px), 0); }
  .tour-ch .tc-big { transform: translate3d(0, calc((.5 - var(--tc, 0)) * 60px), 0); }
  .tour-ch .tc-copy { border-top-color: rgba(255,255,255, calc(var(--vc, 0) * .06)); }
}
@media (max-width: 960px), (max-height: 620px) { .tc-scan { display: none; } .tc-big { display: none; } }

/* v7.8 — tour: the picture box takes the picture's own proportions (no empty bands above and below), the detail column
   matches its height; pictures stay perfectly still and sharp once a chapter is in place (motion only while it slides
   in or out, whole-pixel steps for the details); the chapter number stays inside the copy row */
.tc-copy { position: relative; overflow: hidden; }
.tc-big { top: 0; }
@media (min-width: 961px) and (min-height: 621px) {
  /* sized against the stage: the picture is as large as the width and the height left after the copy allow, and the
     chapter (picture + copy) sits in the middle of the stage, so any spare height is shared above and below */
  .tour-stage { container-type: size; }
  .tour-ch { grid-template-rows: auto auto; align-content: center; }
  .tc-media { --thw: clamp(170px, 16vw, 250px); --hw: min(calc(100cqw - var(--thw) - 12px), calc((100cqh - var(--copyh, 200px) - 18px) * var(--ar, 1.78)));
    --copyh: clamp(150px, 22vh, 200px); display: flex; align-items: stretch; justify-content: center; gap: 12px; }
  .tc-hero { flex: none; width: var(--hw); height: auto; aspect-ratio: var(--ar, 1.78); }
  .tc-thumbs { flex: none; width: var(--thw); height: calc(var(--hw) / var(--ar, 1.78)); }
  .tc-hero .tc-img img { object-fit: cover; transform: none; }
  .tour-ch .tc-th, .tour-ch.is-active .tc-th { transform: translate3d(0, round(nearest, calc(((1 - var(--in, 0)) - var(--out, 0)) * (120px + var(--k, 0) * 55px) + (.5 - var(--tc, 0)) * (var(--k, 0) - 1) * 34px), 1px), 0); }
  .tour-ch.is-full .tc-hero { transform: none; filter: none; will-change: auto; }
  .tour-ch.is-full .tc-th { filter: none; }
  .tour-ch.is-full .tc-copy > * { transform: none; }
}
/* chapter copy set justified (hyphenated, last line flush left) */
.tc-text { text-align: justify; text-align-last: left; -webkit-hyphens: auto; hyphens: auto; }
.tc-big { font-size: clamp(64px, 6.2vw, 104px); top: 2px; }

/* v7.9 — chapter number: larger, solid (a stroked outline showed the font's overlapping contours as stray lines in
   some digits), fading out downward; it only rises into place, never above the copy row, so the row no longer needs
   to clip (no hard edge while the copy slides) */
.tc-copy { overflow: visible; }
.tc-big { top: -6px; font: 700 clamp(104px, 9.5vw, 156px)/.9 var(--f-display); letter-spacing: -.04em; -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(180deg, rgba(150,185,255,.15), rgba(150,185,255,.05) 55%, rgba(150,185,255,0) 92%); -webkit-background-clip: text; background-clip: text; font-variant-numeric: tabular-nums; }
@media (min-width: 961px) and (min-height: 621px) { .tour-ch .tc-big { transform: translate3d(0, round(nearest, calc((1 - var(--tc, 0)) * 34px), 1px), 0); } }

/* v8.0 — lightbox: soft-edged circle like the theme switch; the close button and arrows fade in after it opens */
.site-lb.is-masked { -webkit-mask-image: radial-gradient(circle at var(--lb-x, 50%) var(--lb-y, 50%), #000 calc(var(--lb-r, 0px) - 240px), transparent var(--lb-r, 0px));
  mask-image: radial-gradient(circle at var(--lb-x, 50%) var(--lb-y, 50%), #000 calc(var(--lb-r, 0px) - 240px), transparent var(--lb-r, 0px)); }
.site-lb .slb-close, .site-lb .slb-nav { opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .3s var(--ease), color .25s, border-color .25s, background-color .25s, box-shadow .3s; }
.site-lb .slb-close { transform: scale(.82) rotate(-45deg); }
.site-lb .slb-prev { transform: translateX(-12px); } .site-lb .slb-next { transform: translateX(12px); }
.site-lb.is-ready .slb-close, .site-lb.is-ready .slb-nav { opacity: 1; pointer-events: auto; transform: none; transition: opacity .55s ease, transform .7s var(--ease), color .25s, border-color .25s, background-color .25s, box-shadow .3s; }
.site-lb.is-ready .slb-prev { transition-delay: .08s; } .site-lb.is-ready .slb-next { transition-delay: .14s; }
.site-lb.is-ready .slb-prev:hover, .site-lb.is-ready .slb-next:hover, .site-lb.is-ready .slb-close:hover { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .site-lb .slb-close, .site-lb .slb-nav { transform: none !important; } }

/* v8.1 — chapter rail: the fill uses the header progress line's colours; hovering (or holding) a chapter opens its
   letters slightly and its little square grows */
.tr-bar b:not(.bar-spark) { background: linear-gradient(90deg, var(--blue), var(--ice)); box-shadow: 0 0 12px var(--blue), 0 0 4px rgba(150,200,255,.9); }
.tr-t { transition: letter-spacing .45s var(--ease), color .35s; }
.tr-n { transition: color .35s, opacity .35s, transform .45s var(--ease); display: inline-block; }
.tr-bar::before { background: #eaf4ff; box-shadow: 0 0 6px 1px var(--blue), 0 0 12px var(--ice); transform: scale(var(--hs, 1)); transition: transform .45s var(--ease), opacity .3s; }
.tr-tab:hover .tr-t, .tr-tab:focus-visible .tr-t { letter-spacing: .16em; }
.tr-tab:hover .tr-n, .tr-tab:focus-visible .tr-n { transform: translateX(-2px); opacity: 1; }
.tr-tab:hover .tr-bar::before, .tr-tab:focus-visible .tr-bar::before { opacity: 1; --hs: 1.6; }
.tr-tab:active .tr-t { letter-spacing: .2em; }
.tr-tab:active .tr-bar::before { --hs: 2.1; }
.tr-tab:hover .tr-bar b:not(.bar-spark) { box-shadow: 0 0 16px var(--blue), 0 0 5px rgba(170,215,255,.95); }

/* v8.2 — tour: no scan line; the detail pictures stack like cards when the scroll slides them over each other (each
   later one lies on top, casts a soft shadow upward and has a fine lit top edge), so overlaps read as depth */
.tc-scan { display: none !important; }
.tc-thumbs { position: relative; isolation: isolate; }
.tc-th { z-index: calc(1 + var(--k, 0)); box-shadow: 0 -16px 30px -14px rgba(0,0,0,.85), 0 18px 34px -18px rgba(0,0,0,.8); }
.tc-th::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 3; background: linear-gradient(90deg, transparent, rgba(170,205,255,.35), transparent); pointer-events: none; }
.tc-th:hover { z-index: 5; }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-ch .tc-th, .tour-ch.is-active .tc-th { transform: translate3d(0, round(nearest, calc(((1 - var(--in, 0)) - var(--out, 0)) * (120px + var(--k, 0) * 55px) + (.5 - var(--tc, 0)) * (var(--k, 0) - 1) * 26px), 1px), 0); }
}
/* leaving upward, the top picture goes first, so the three spread apart instead of piling up */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-ch .tc-th, .tour-ch.is-active .tc-th { transform: translate3d(0, round(nearest, calc((1 - var(--in, 0)) * (120px + var(--k, 0) * 55px) - var(--out, 0) * (120px + (2 - var(--k, 0)) * 55px) + (.5 - var(--tc, 0)) * (var(--k, 0) - 1) * 26px), 1px), 0); }
}

/* v8.4 — one terminal label style everywhere: the bracketed kickers ([ Legal // Privacy ], [ Support // … ], …) take
   the look of the error-code line (phosphor blue, soft glow, faint scanlines), and the list squares share its colour */
.kicker { padding: 6px 12px; color: #a9dcff; text-shadow: 0 0 8px rgba(75,170,255,.7); background: repeating-linear-gradient(to bottom, rgba(110,175,255,.06) 0 1px, transparent 1px 3px); animation: crt-flicker 5s steps(1) infinite; }
.kicker.tw { display: inline-block; }
.ticks:not(.lime) li::before, .contact ul li::before, .release li::before, .tc-facts li::before, .plan.personal .plan-inc li::before { background: #a9dcff; box-shadow: 0 0 6px rgba(75,170,255,.85), 0 0 2px rgba(169,220,255,.9); }
@media (prefers-reduced-motion: reduce) { .kicker { animation: none; } }

/* v8.7 — tour detail pictures dressed like the gallery tiles: the dark shading (top and bottom) and the name label are
   always shown, in both themes */
.tc-th::after { opacity: 1; background: linear-gradient(180deg, rgba(5,6,11,.35), transparent 30%, transparent 55%, rgba(5,6,11,.75)); }
.tc-th em { left: 10px; right: auto; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 9px; border-radius: 4px; background: rgba(5,6,11,.75); border: 1px solid var(--line-2);
  font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; color: #e4e4e7; text-shadow: none; opacity: 1; transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-th:hover::after { opacity: .55; }

/* ================================================================ v9.0 MOSAIC tour (wide): one large picture per chapter,
   the copy in a column beside it; chapters with several pictures play them in turn with the scroll */
.tour-wide .tour-ch { grid-template-columns: minmax(0, 1fr) clamp(280px, 25%, 380px); grid-template-rows: minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.tc-media-wide { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.tc-stack { position: relative; flex: 1; min-height: 0; container-type: size; }
.tc-slide { position: absolute; left: 50%; top: 50%; width: min(100cqw, calc(100cqh * var(--ar, 1.6))); aspect-ratio: var(--ar, 1.6); translate: -50% -50%; display: block; overflow: hidden;
  border: 1px solid var(--line-2); background: #0c0e14; cursor: zoom-in; isolation: isolate; opacity: 0; pointer-events: none;
  transform: translate3d(0, 18px, 0) scale(.985); filter: blur(6px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease), border-color .3s, box-shadow .3s; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); }
.tc-slide.is-past { transform: translate3d(0, -18px, 0) scale(.985); }
.tc-slide.is-cur { opacity: 1; pointer-events: auto; transform: none; filter: none; }
.tc-slide .tc-img img { object-fit: cover; }
.tc-slide:hover { border-color: rgba(110,175,255,.55); box-shadow: 0 0 0 1px rgba(110,175,255,.12), 0 0 34px -6px rgba(75,149,255,.5); }
.tc-slide:hover .tc-zoom { opacity: 1; transform: none; }
.tc-slide:focus-visible { outline: 1px solid var(--ice); outline-offset: 2px; }
.tc-views { display: flex; justify-content: center; gap: 22px; flex: none; }
.tc-view { position: relative; display: inline-flex; flex-direction: column; gap: 7px; min-width: 90px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); transition: color .35s; }
.tc-view i { display: block; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.tc-view i::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--ice)); box-shadow: 0 0 8px var(--blue); }
.tc-view.is-done i::after { transform: scaleX(1); }
.tc-view.is-cur { color: #fff; }
.tc-view.is-cur i::after { transform: scaleX(var(--sp, 0)); }
.tour-ch .tc-view.is-cur i::after { transform: scaleX(calc(var(--sp, 0))); }
.tour-ch:not(.sp-on) .tc-view.is-cur i::after { transform: scaleX(1); }
/* the side copy */
.tc-copy-side { display: flex; flex-direction: column; justify-content: center; gap: 18px; border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: clamp(18px, 2vw, 30px); }
.tc-copy-side .tc-head h3 { font-size: clamp(1.5rem, 1.05rem + 1.1vw, 2.125rem); }
.tc-copy-side .tc-big { right: auto; left: -4px; top: -.62em; }
.tc-copy-side .tc-head { padding-top: clamp(40px, 6vh, 70px); }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-ch .tc-stack { opacity: var(--vis, 0); filter: blur(calc((1 - var(--vis, 0)) * 6px));
    transform: translate3d(0, calc((1 - var(--in, 0)) * 90px - var(--out, 0) * 90px), 0) scale(calc(.95 + .05 * var(--in, 0) - .035 * var(--out, 0))); will-change: transform, opacity; }
  .tour-wide .tour-ch.is-full .tc-stack { transform: none; filter: none; will-change: auto; }
  .tour-wide .tour-ch .tc-views { opacity: var(--vc, 0); }
}
@media (max-width: 960px), (max-height: 620px) {
  .tour-wide .tour-ch { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .tc-stack { container-type: normal; display: grid; gap: 12px; }
  .tc-slide { position: relative; left: auto; top: auto; translate: none; width: 100%; opacity: 1; transform: none; filter: none; pointer-events: auto; }
  .tc-views { display: none; }
  .tc-copy-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .tc-copy-side .tc-head { padding-top: 0; }
}

/* GRADE scopes wall: 13 scope panels, the first one large */
.collage-13 .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, clamp(110px, 12.4vw, 185px)); grid-template-areas: none; }
.collage-13 .cl { grid-area: auto; }
.collage-13 .cl-1 { grid-column: span 2; grid-row: span 2; }
.collage-13 .cl-img img { object-fit: cover; object-position: 50% 50%; }
@media (max-width: 760px) { .collage-13 .cl-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(100px, 28vw, 150px); } .collage-13 .cl-1 { grid-column: span 2; grid-row: span 2; } }

/* wide tour: stays inside the page frame like every other section; picture views listed in the copy column */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-ch { grid-template-columns: minmax(0, 1fr) clamp(250px, 26%, 310px); }
}
.tc-copy-side .tc-views { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 10px; margin-bottom: 4px; }
.tc-copy-side .tc-view { min-width: 0; flex-direction: row; align-items: center; gap: 12px; }
.tc-copy-side .tc-view i { width: 46px; flex: none; }
.tour-wide .tour-ch .tc-views { opacity: 1; }

/* v9.0 — on narrow screens the three detail labels get smaller type and may wrap, so short names never get cut */
@media (max-width: 600px) {
  .tc-th em { left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 6px; font-size: 8.5px; letter-spacing: .06em; white-space: normal; line-height: 1.25; }
}

/* v9.2 — MOSAIC tour: the picture sits at the top of its area with the hint line right under it; the "LIDA Tools"
   wordmark closes the pinned stage, drawn through a lens (chromatic aberration + distortion) that drifts and follows the mouse */
.tc-hint { display: none; }
.tour-wm { position: relative; display: flex; text-transform: none; justify-content: center; gap: .2em; height: .92em; overflow: hidden; user-select: none; pointer-events: none; white-space: nowrap;
  font: 700 clamp(44px, 5vw, 92px)/1 var(--f-display); letter-spacing: -.055em;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.25) 100%); mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.25) 100%); }
.tour-wm span { background: linear-gradient(180deg, rgba(214,228,255,.17), rgba(75,149,255,.035)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .3s ease-out; }
.tour-wm .t { font-weight: 400; }
.tour-wm .wm-lens { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s ease-out; }
.tour-wm.lens-on .wm-lens { opacity: 1; }
.tour-wm.lens-on > span { opacity: 0; }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-pin { gap: 10px; padding-bottom: 26px; }
  .tour-foot-wm { justify-content: center; margin-top: -4px; }
  .tour-wide .tc-stack { padding-bottom: 30px; }
  .tour-wide .tc-slide { top: 0; translate: -50% 0; }
  .tour-wide .tc-hint { display: block; position: absolute; left: 50%; translate: -50% 0; top: calc(min(100cqh, 100cqw / var(--ar, 1.6)) + 12px); width: min(100cqw, calc(100cqh * var(--ar, 1.6)));
    text-align: right; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; transition: top .6s var(--ease), width .6s var(--ease); }
}
@media (min-width: 961px) and (min-height: 621px) { .tour-wide .tc-copy-side .tc-big { font-size: clamp(80px, 7.4vw, 124px); top: -.5em; } }


/* v9.3 — both tours use the wide layout. The picture area starts lower (air under the rail); the pictures carry a name
   label like the gallery tiles; four CAD corners frame the current picture (no line, no glow) and step outward on
   hover; the picture drifts up as the chapter scrolls by while the corners drift the other way (a subtle parallax). */
.tc-pan { position: relative; }
.tc-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 5px 9px; border-radius: 4px; background: rgba(5,6,11,.78); border: 1px solid var(--line-2);
  font: 500 10px/1.2 var(--f-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tc-frame { display: none; }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-stack { padding-bottom: 0; container-type: normal; }
  .tour-wide .tc-pan { position: absolute; inset: 30px 0 48px; container-type: size; transform: translate3d(0, round(nearest, calc((.5 - var(--tc, .5)) * 26px), 1px), 0); }
  .tour-wide .tc-hint { top: calc(min(100cqh, 100cqw / var(--ar, 1.6)) + 22px); }
  .tour-wide .tc-frame { display: block; position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 3; pointer-events: none;
    width: min(100cqw, calc(100cqh * var(--ar, 1.6))); height: min(100cqh, calc(100cqw / var(--ar, 1.6)));
    transform: translate3d(0, round(nearest, calc((var(--tc, .5) - .5) * 10px), 1px), 0); transition: width .6s var(--ease), height .6s var(--ease); }
  .tc-frame i { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(159,208,255,.6); transition: translate .45s var(--ease), border-color .3s, filter .3s; }
  .tc-frame .a { top: -11px; left: -11px; border-top-width: 1px; border-left-width: 1px; } .tc-frame .b { top: -11px; right: -11px; border-top-width: 1px; border-right-width: 1px; }
  .tc-frame .c { bottom: -11px; left: -11px; border-bottom-width: 1px; border-left-width: 1px; } .tc-frame .d { bottom: -11px; right: -11px; border-bottom-width: 1px; border-right-width: 1px; }
  .tc-pan.is-hov .tc-frame i { border-color: rgba(190,225,255,.95); filter: drop-shadow(0 0 4px rgba(75,149,255,.8)); }
  .tc-pan.is-hov .tc-frame .a { translate: -4px -4px; } .tc-pan.is-hov .tc-frame .b { translate: 4px -4px; }
  .tc-pan.is-hov .tc-frame .c { translate: -4px 4px; } .tc-pan.is-hov .tc-frame .d { translate: 4px 4px; }
}
@media (max-width: 960px), (max-height: 620px) {
  .tc-pan { display: grid; gap: 12px; }
  .tc-tag { left: 8px; bottom: 8px; padding: 3px 7px; font-size: 9px; }
}
/* big chapter numbers: the hover lens of the wordmarks (see site.js); while it is on, the canvas draws the number */
.tc-big .wm-lens { position: absolute; inset: -25%; width: 150%; height: 150%; max-width: none; pointer-events: none; opacity: 0; transition: opacity .18s ease-out; }
.tc-big.lens-on .wm-lens { opacity: 1; }

/* ================================================================ v9.3 Gallery: the community wall (ArtStation-like collage).
   Until the first pictures arrive every tile is a dead monitor: drifting static, scan lines, a blinking NO SIGNAL label,
   a big channel number (hover lens, see site.js) and an empty caption. */
.gw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.gw-filter span { padding: 8px 12px; border: 1px solid var(--line-2); color: var(--text-3); }
.gw-filter span.is-on { color: #fff; border-color: rgba(110,175,255,.55); background: rgba(75,149,255,.08); }
.gw-filter b { margin-left: auto; font-weight: 500; color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; }
.gw-filter b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 8px rgba(255,90,90,.8); animation: gw-blink 1.6s steps(2, end) infinite; }
.gw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 230px); grid-auto-flow: dense; gap: 14px; }
.gw-tile { position: relative; margin: 0; display: flex; flex-direction: column; min-height: 0; }
.gw-tile.w2 { grid-column: span 2; } .gw-tile.h2 { grid-row: span 2; }
.gw-screen { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid var(--line-2); background: #07080d; isolation: isolate; transition: border-color .3s, box-shadow .3s; }
.gw-screen::before { content: ""; position: absolute; inset: -40px; z-index: 0; background-image: var(--gw-noise, none); background-size: 160px 160px; opacity: .12; mix-blend-mode: screen; animation: gw-static .9s linear infinite; }
.gw-screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(0,0,0,.55)); }
.gw-tile:hover .gw-screen { border-color: rgba(110,175,255,.5); box-shadow: 0 0 0 1px rgba(110,175,255,.1), 0 0 34px -8px rgba(75,149,255,.45); }
.gw-tile:hover .gw-screen::before { opacity: .26; }
.gw-num { position: absolute; left: 14px; bottom: 6px; z-index: 2; font: 700 clamp(64px, 7vw, 120px)/.9 var(--f-display); letter-spacing: -.04em; color: transparent; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(150,185,255,.2), rgba(150,185,255,.04)); -webkit-background-clip: text; background-clip: text; pointer-events: none; user-select: none; }
.gw-tile:not(.w2):not(.h2) .gw-num { font-size: clamp(54px, 5vw, 84px); }
.gw-num .wm-lens { position: absolute; inset: -25%; width: 150%; height: 150%; max-width: none; pointer-events: none; opacity: 0; transition: opacity .18s ease-out; }
.gw-num.lens-on .wm-lens { opacity: 1; }
.gw-sig { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; background: rgba(5,6,11,.8); border: 1px solid var(--line-2);
  font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: #e4e4e7; white-space: nowrap; }
.gw-sig i { width: 7px; height: 7px; background: #ff5a5a; box-shadow: 0 0 8px rgba(255,90,90,.8); animation: gw-blink 1.6s steps(2, end) infinite; }
.gw-ch { position: absolute; right: 12px; top: 11px; z-index: 2; font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.gw-tile figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.gw-tile figcaption b { font-weight: 500; color: var(--text-2); }
@keyframes gw-static { 0%, 19.99% { transform: translate(0, 0); } 20%, 39.99% { transform: translate(-23px, 11px); } 40%, 59.99% { transform: translate(17px, -19px); } 60%, 79.99% { transform: translate(-9px, 27px); } 80%, 100% { transform: translate(29px, 5px); } }
@keyframes gw-blink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .gw-screen::before, .gw-sig i, .gw-filter b::before { animation: none; } }
@media (max-width: 960px) { .gw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 30vw, 200px); } }
@media (max-width: 520px) { .gw-grid { gap: 10px; } .gw-ch { display: none; } .gw-sig { font-size: 9.5px; padding: 6px 9px; letter-spacing: .14em; } }
/* the side copy starts at the top of the stage, so the big number never climbs into the rail */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-copy-side { justify-content: flex-start; padding-top: 30px; gap: 16px; }
  .tour-wide .tc-copy-side .tc-big { font-size: clamp(76px, 6.6vw, 112px); top: -.08em; }
  .tour-wide .tc-copy-side .tc-head { padding-top: clamp(52px, 5.6vw, 84px); }
}
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-ch { grid-template-columns: minmax(0, 1fr) clamp(300px, 32%, 440px); gap: clamp(24px, 2.6vw, 44px); }
  .tour-wide .tc-copy-side .tc-head h3 { font-size: clamp(1.4rem, .95rem + 1vw, 1.95rem); }
  .tour-wide .tc-copy-side .tc-text { font-size: clamp(.84rem, .74rem + .22vw, .94rem); line-height: 1.6; }
}
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-copy-side .tc-big { left: auto; right: -2px; top: -.06em; }
  .tour-wide .tc-copy-side .tc-head { padding-top: clamp(22px, 2.6vw, 40px); }
}

@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-copy-side { padding-top: 14px; gap: 14px; }
  .tour-wide .tc-copy-side .tc-text { line-height: 1.55; }
  .tour-wide .tc-copy-side .tc-side { gap: 14px; }
}
.tour-wm { font-size: clamp(40px, 4.4vw, 84px); }
@media (min-width: 961px) and (min-height: 621px) and (max-height: 720px) {
  .tour-wide .tc-copy-side .tc-text { font-size: .8rem; line-height: 1.5; }
  .tour-wide .tc-copy-side .tc-head h3 { font-size: 1.3rem; }
}
@media (min-width: 961px) and (min-height: 621px) { .tour-wide .tour-ch { grid-template-columns: minmax(0, 1fr) clamp(290px, 27%, 390px); } }
/* views of a chapter as one compact row (bar over the label) */
.tc-copy-side .tc-views { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
.tc-copy-side .tc-view { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 64px; }
.tc-copy-side .tc-view i { width: 100%; min-width: 64px; }
@media (max-width: 520px) { .gw-tile figcaption { flex-direction: column; gap: 3px; font-size: 9.5px; } .gw-tile:not(.w2):not(.h2) .gw-num { font-size: 48px; } }

/* v9.4 — tour pictures: CAD corners inside the picture like the CTA panel (no line, no glow), stepping outward on hover;
   the picture leans toward the pointer like the CTA panel and still drifts with the scroll; it sits a little above the
   middle of its area; "LIDA Tools" sits on the left under it */
.tc-cn { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tc-cn i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(159,208,255,.6); transition: translate .45s var(--ease), border-color .3s, filter .3s; }
.tc-cn .a { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; } .tc-cn .b { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.tc-cn .c { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; } .tc-cn .d { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.tc-slide:hover .tc-cn i { border-color: rgba(190,225,255,.95); filter: drop-shadow(0 0 4px rgba(75,149,255,.8)); }
.tc-slide:hover .tc-cn .a { translate: -4px -4px; } .tc-slide:hover .tc-cn .b { translate: 4px -4px; }
.tc-slide:hover .tc-cn .c { translate: -4px 4px; } .tc-slide:hover .tc-cn .d { translate: 4px 4px; }
.tc-slide .tc-tag { left: 38px; bottom: 34px; }
.tc-slide .tc-zoom { right: 38px; bottom: 34px; }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-pan { inset: 24px 0 40px; transform: translate3d(0, round(nearest, calc((.5 - var(--tc, .5)) * 22px), 1px), 0) perspective(1400px) rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg)); }
  .tour-wide .tc-slide { top: calc((100cqh - min(100cqh, 100cqw / var(--ar, 1.6))) * .22); }
  .tour-wide .tc-hint { top: calc((100cqh - min(100cqh, 100cqw / var(--ar, 1.6))) * .22 + min(100cqh, 100cqw / var(--ar, 1.6)) + 14px); transition: top .6s var(--ease), width .6s var(--ease); }
  .tour-foot-wm { justify-content: flex-start; }
  .tour-wide .tour-wm { justify-content: flex-start; }
}
@media (max-width: 960px), (max-height: 620px) { .tc-cn { display: none; } .tc-slide .tc-tag { left: 8px; bottom: 8px; } }

/* GRADE scopes wall (v9.4): 13 panels, all the same size, the last row centred */
.collage-13 .cl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; grid-template-rows: none; }
.collage-13 .cl, .collage-13 .cl-1 { flex: 0 0 calc((100% - 48px) / 5); aspect-ratio: 3 / 2; height: auto; grid-area: auto; grid-column: auto; grid-row: auto; }
@media (max-width: 960px) { .collage-13 .cl, .collage-13 .cl-1 { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 560px) { .collage-13 .cl, .collage-13 .cl-1 { flex-basis: calc((100% - 12px) / 2); } }
/* nine chapters: the rail labels get a little tighter so "Live Grading" fits */
.tour.tour-n9 .tr-t { font-size: 11px; letter-spacing: .07em; }

/* the tour wordmark is placed by site.js under the current picture (left edge), so it fills the room below it;
   it fades out when a picture leaves no room */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-pin { padding-bottom: 22px; }
  .tour-wide .tour-foot-wm { position: absolute; left: var(--wmx, 0); top: var(--wmy, 100%); margin: 0; z-index: 1; display: block; transition: left .6s var(--ease), top .6s var(--ease), opacity .4s; }
  .tour-wide .tour-foot-wm.is-off { opacity: 0; }
  .tour-wide .tour-wm { height: .86em; font-size: clamp(44px, 4.6vw, 84px); }
}

/* ================================================================ v9.5 tour pictures
   - corners outside the picture again (they follow its size and lean with it)
   - a card stock sheet behind the picture; it lifts while the pictures change
   - pictures change like a turned sheet: the old one folds away on its edge with a sheen, the new one unfolds in
   - a strip of extra notes fills the room under the picture; "LIDA Tools" closes the stage at the bottom left */
.tc-cn { display: none; }
.tc-slide .tc-tag { left: 12px; bottom: 12px; }
.tc-slide .tc-zoom { right: 12px; bottom: 12px; }
.tc-card, .tc-notes { display: none; }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-pan { --iw: min(100cqw, calc(100cqh * var(--ar, 1.6))); --ih: min(100cqh, calc(100cqw / var(--ar, 1.6))); inset: 26px 0 40px; perspective: 1800px; }
  .tour-wide .tc-slide { top: 0; z-index: 1; transform-origin: 100% 50%; opacity: 0; transform: rotateY(24deg) translateZ(-60px); filter: brightness(1.35) blur(3px);
    transition: transform 1.05s cubic-bezier(.62,.04,.2,1), opacity .8s ease, filter .9s ease, border-color .3s, box-shadow .3s; backface-visibility: hidden; }
  .tour-wide .tc-slide.is-past { transform-origin: 0% 50%; transform: rotateY(-24deg) translateZ(-60px); filter: brightness(.55) blur(3px); }
  .tour-wide .tc-slide.is-cur { opacity: 1; transform: none; filter: none; }
  .tour-wide .tc-slide .tc-img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 47%, rgba(190,220,255,.1) 53%, transparent 70%); background-size: 260% 100%; background-position: 120% 0; }
  .tour-wide .tc-slide.is-cur .tc-img::after { animation: tc-sheen 1.3s cubic-bezier(.4,.1,.2,1) .25s both; }
  .tour-wide .tc-slide.is-past .tc-img::after { opacity: 1; background: linear-gradient(90deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); transition: opacity .6s; }
  .tour-wide .tc-hint { top: calc(var(--ih) + 14px); }
  .tour-wide .tc-frame { display: block; position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 3; pointer-events: none; width: var(--iw); height: var(--ih);
    transform: translate3d(0, round(nearest, calc((var(--tc, .5) - .5) * 8px), 1px), 0); transition: width .6s var(--ease), height .6s var(--ease); }
  .tc-frame i { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(159,208,255,.6); transition: translate .45s var(--ease), border-color .3s, filter .3s; }
  .tc-frame .a { top: -11px; left: -11px; border-top-width: 1px; border-left-width: 1px; } .tc-frame .b { top: -11px; right: -11px; border-top-width: 1px; border-right-width: 1px; }
  .tc-frame .c { bottom: -11px; left: -11px; border-bottom-width: 1px; border-left-width: 1px; } .tc-frame .d { bottom: -11px; right: -11px; border-bottom-width: 1px; border-right-width: 1px; }
  .tc-pan.is-hov .tc-frame i { border-color: rgba(190,225,255,.95); filter: drop-shadow(0 0 4px rgba(75,149,255,.8)); }
  .tc-pan.is-hov .tc-frame .a { translate: -4px -4px; } .tc-pan.is-hov .tc-frame .b { translate: 4px -4px; }
  .tc-pan.is-hov .tc-frame .c { translate: -4px 4px; } .tc-pan.is-hov .tc-frame .d { translate: 4px 4px; }
  .tour-wide .tc-card { display: block; position: absolute; left: 50%; top: 0; z-index: 0; width: var(--iw); height: var(--ih); translate: -50% 0; pointer-events: none;
    background: linear-gradient(160deg, #1d212b, #111319 70%); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
    opacity: .5; transform: rotate(-1.4deg) translate(9px, 8px); transform-origin: 30% 100%; transition: transform .9s cubic-bezier(.3,.7,.2,1), opacity .6s, width .6s var(--ease), height .6s var(--ease); }
  .tour-wide .tc-stack[data-n="1"] .tc-card { opacity: 0; }
  .tour-wide .tc-pan.is-turning .tc-card { opacity: .95; transform: rotate(-3.2deg) translate(18px, 14px); }
  .tour-wide .tc-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: absolute; left: 50%; translate: -50% 0; top: calc(var(--ih) + 46px); width: var(--iw); margin: 0;
    padding-top: 14px; border-top: 1px solid var(--line); transition: top .6s var(--ease), width .6s var(--ease), opacity .4s; }
  .tour-wide .tc-notes.is-off { opacity: 0; pointer-events: none; }
  .tc-notes div { min-width: 0; border-left: 1px solid var(--line-2); padding-left: 12px; }
  .tc-notes dt { font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
  .tc-notes dd { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
  .tour-wide .tour-foot-wm { position: static; display: flex; justify-content: flex-start; opacity: 1; }
  .tour-wide .tour-foot-wm.is-off { opacity: 1; }
  .tour-wide .tour-wm { justify-content: flex-start; font-size: clamp(40px, 4.2vw, 78px); height: .84em; }
  .tour-wide .tour-pin { padding-bottom: 20px; }
}
@keyframes tc-sheen { 0% { opacity: 0; background-position: 120% 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .tour-wide .tc-slide, .tour-wide .tc-card { transition: opacity .3s; } .tour-wide .tc-slide.is-cur .tc-img::after { animation: none; } }
/* rail: hovering a chapter lights its label and opens its letters (also with nine chapters) */
.tr-tab:hover .tr-t, .tr-tab:focus-visible .tr-t { color: #fff; text-shadow: 0 0 12px rgba(75,149,255,.7); }
.tour.tour-n9 .tr-tab:hover .tr-t, .tour.tour-n9 .tr-tab:focus-visible .tr-t { letter-spacing: .13em; }
/* scopes wall: 16 equal tiles, 4 x 4 */
.collage-16 .cl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: none; grid-auto-rows: auto; gap: 12px; }
.collage-16 .cl { grid-area: auto; aspect-ratio: 4 / 3; height: auto; background: #17181c; }
.collage-16 .cl-img img { object-fit: contain; object-position: 50% 50%; }
@media (max-width: 760px) { .collage-16 .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v9.6 — the hover lens (the original one of the hero / footer wordmark) needs each span to be a block with its own
   gradient, like "LIDA Tools": the big numbers follow that build, so the lens redraws them exactly in place */
.tc-big, .gw-num { display: flex; background: none; }
.tc-big > span, .gw-num > span { display: block; color: transparent; -webkit-background-clip: text; background-clip: text; }
.tc-big > span { background-image: linear-gradient(180deg, rgba(150,185,255,.15), rgba(150,185,255,0)); }
.gw-num > span { background-image: linear-gradient(180deg, rgba(150,185,255,.2), rgba(150,185,255,.03)); }

/* v9.6 — the picture, its hint and the notes form one block, set a little above the middle of the stage, so the room
   is shared above and below instead of pooling under the notes; the notes become small cards */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-pan { --off: max(0px, calc((100cqh - var(--ih) - 172px) * .42)); }
  .tour-wide .tc-slide, .tour-wide .tc-frame, .tour-wide .tc-card { top: var(--off); }
  .tour-wide .tc-hint { top: calc(var(--off) + var(--ih) + 14px); }
  .tour-wide .tc-notes { top: calc(var(--off) + var(--ih) + 44px); gap: 12px; padding-top: 0; border-top: 0; counter-reset: tcn; }
  .tour-wide .tc-slide, .tour-wide .tc-frame, .tour-wide .tc-card, .tour-wide .tc-hint, .tour-wide .tc-notes { transition-property: transform, opacity, filter, border-color, box-shadow, top, width, height; }
  .tc-notes div { position: relative; padding: 13px 14px 14px; border: 1px solid var(--line-2); border-left: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(120,170,255,.045), rgba(120,170,255,.01)); counter-increment: tcn; }
  .tc-notes div::before { content: counter(tcn, decimal-leading-zero); position: absolute; right: 12px; top: 12px; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; color: var(--text-3); opacity: .7; }
  .tc-notes div::after { content: ""; position: absolute; left: -1px; top: -1px; width: 22px; height: 1px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
  .tc-notes dt { margin-bottom: 7px; }
  .tc-notes dd { font-size: 13px; color: var(--text-2); }
}

/* v9.7 — big numbers: proportional figures, like the canvas the hover lens draws them with (same "1") */
.tc-big, .gw-num, .tc-big > span, .gw-num > span { font-variant-numeric: normal; font-feature-settings: normal; }
/* wide tours: the pinned stage is as tall as its content needs (picture + notes, or the copy), never taller than the
   screen, and it sits centred in the viewport, so there is no empty band under the pictures */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide { container-type: inline-size; }
  .tour-wide .tour-pin { --imgw: calc(100cqw - clamp(290px, 27cqw, 390px) - clamp(24px, 2.6vw, 44px));
    --pin-h: min(100vh, calc(var(--header-h) + 18px + 48px + max(540px, calc(var(--imgw) / 1.72 + 196px)) + 20px));
    height: var(--pin-h); top: calc((100vh - var(--pin-h)) / 2); padding-bottom: 20px; }
}

/* v9.8 — big numbers: at the moment the lens takes over, the canvas draws exactly what the text shows, so the swap is
   instant (a cross-fade made both half transparent for a moment and read as a flicker) */
.tc-big > span, .gw-num > span, .tc-big .wm-lens, .gw-num .wm-lens { transition: none !important; }
/* wide tours: the section title sits right above the chapter rail; when pinned, the stage is centred in the space
   under the site header */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide { margin-top: 10px; }
  .tour-wide .tour-pin { --pin-c: calc(18px + 48px + max(540px, calc(var(--imgw) / 1.72 + 196px)) + 20px);
    --pin-top: max(calc(var(--header-h) + 6px), calc((100vh - var(--header-h) - var(--pin-c)) / 2 + var(--header-h)));
    padding-top: 18px; top: var(--pin-top); height: min(var(--pin-c), calc(100vh - var(--pin-top))); }
}

/* v9.9 — the section title travels with the tour: it sits inside the pinned stage, above the chapter rail, as one
   compact row (title left, lead right) */
.tour-head .sec-head { margin: 0 0 clamp(20px, 3vw, 32px); }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-head { flex: none; }
  .tour-wide .tour-head .sec-head { margin: 0; display: block; }
  .tour-wide .tour-head .sec-head > div { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 12px clamp(24px, 4vw, 64px); }
  .tour-wide .tour-head .h2 { font-size: clamp(1.7rem, 1.05rem + 1.6vw, 2.6rem); line-height: 1.05; margin: 0; }
  .tour-wide .tour-head .lead { margin: 0; max-width: 52ch; font-size: clamp(.9rem, .8rem + .25vw, 1.02rem); line-height: 1.55; }
  .tour-wide .tour-pin { --pin-c: calc(18px + 96px + 48px + max(520px, calc(var(--imgw) / 1.72 + 196px)) + 20px); }
}
@media (min-width: 961px) and (min-height: 621px) and (max-height: 760px) {
  .tour-wide .tour-head .lead { display: none; }
  .tour-wide .tour-pin { --pin-c: calc(18px + 52px + 48px + max(480px, calc(var(--imgw) / 1.72 + 196px)) + 20px); }
}
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-head .sec-head > div { max-width: none; width: 100%; grid-template-columns: auto minmax(0, 1fr); }
  .tour-wide .tour-head .h2 { white-space: nowrap; }
  .tour-wide .tour-head .lead { justify-self: end; text-align: right; max-width: 46ch; }
  .tour-wide .tour-pin { --pin-c: calc(18px + 70px + 48px + max(520px, calc(var(--imgw) / 1.72 + 196px)) + 20px); }
}

/* v9.10 — tour title block: a mono kicker line, the title, and the lead as a framed note on the right, all on one
   baseline grid */
.tour-kick { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.tour-kick b { font-weight: 500; color: var(--sky); }
.tour-kick span { opacity: .6; }
.tour-kick i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); margin-left: 6px; }
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-head { padding-bottom: 6px; }
  .tour-wide .tour-head .sec-head > div { grid-template-columns: minmax(0, 1fr) minmax(260px, 30%); align-items: center; gap: clamp(24px, 4vw, 64px); }
  .tour-wide .tour-head .lead { justify-self: stretch; text-align: left; max-width: none; padding: 2px 0 2px 18px; border-left: 1px solid var(--line-2); position: relative; color: var(--text-2); }
  .tour-wide .tour-head .lead::after { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 22px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
  .tour-wide .tour-pin { --pin-c: calc(18px + 96px + 48px + max(520px, calc(var(--imgw) / 1.72 + 196px)) + 20px); }
}
@media (min-width: 961px) and (min-height: 621px) and (max-height: 760px) { .tour-kick { display: none; } }
/* the lead lines up with the copy column of the chapters below (same columns and gap as .tour-ch) */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-head .sec-head > div { grid-template-columns: minmax(0, 1fr) clamp(290px, 27%, 390px); gap: clamp(24px, 2.6vw, 44px); }
  .tour-wide .tour-head .lead { padding-left: clamp(18px, 2vw, 30px); }
}
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-head .lead { font-size: .875rem; line-height: 1.5; }
  .tour-wide .tour-kick { margin-bottom: 8px; }
  .tour-wide .tour-pin { gap: 8px; }
}
/* the notes always have their room: the picture area stops above them, so they never have to hide */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-pan { inset: 26px 0 150px; --off: max(0px, calc((100cqh - var(--ih)) * .4)); }
}
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-pan { inset: 22px 0 162px; }
  .tour-wide .tc-notes { top: calc(var(--off) + var(--ih) + 40px); }
  .tour-wide .tc-notes dd { font-size: 12.5px; line-height: 1.45; }
}
@media (max-width: 960px), (max-height: 620px) { .tour .tc-big { display: none; } }
/* the blue accent of the tour lead sits at the end of its line (at the top it read like a scroll indicator) */
@media (min-width: 961px) and (min-height: 621px) { .tour-wide .tour-head .lead::after { top: auto; bottom: 0; } }

/* v9.11 — gallery static, lighter: no blend mode (it forced every tile to be re-composited each frame), the grain jumps
   between five positions only (discrete steps, no in-between frames) and only while the tile is on screen */
.gw-screen::before { mix-blend-mode: normal; opacity: .1; animation: gw-grain .6s steps(1, end) infinite paused; will-change: transform; }
.gw-tile.is-live .gw-screen::before { animation-play-state: running; }
.gw-tile:hover .gw-screen::before { opacity: .18; }
@keyframes gw-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-23px, 11px); } 40% { transform: translate(17px, -19px); } 60% { transform: translate(-9px, 27px); } 80% { transform: translate(29px, 5px); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .gw-screen::before { animation: none; } }

/* v9.12 — one fixed divider for the copy column of the wide tours: each chapter had its own border, and while two
   chapters crossed the two lines stacked and the divider brightened */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tc-copy-side { border-left-color: transparent; }
  .tour-wide .tour-stage::before { content: ""; position: absolute; top: 0; bottom: 0; right: clamp(290px, 27%, 390px); width: 1px; background: var(--line); pointer-events: none; z-index: 0; }
  /* the lead of the tour title: its whole line is the blue accent */
  .tour-wide .tour-head .lead { border-left: 1px solid var(--blue); box-shadow: -4px 0 10px -6px var(--blue); }
  .tour-wide .tour-head .lead::after { display: none; }
}
/* the tour lead: no glow above or below its line, only a faint glow to the right of it; no blur panel behind */
@media (min-width: 961px) and (min-height: 621px) {
  .tour-wide .tour-head .lead { box-shadow: none; }
  .tour-wide .tour-head .lead::before { display: none; }
  .tour-wide .tour-head .lead::after { display: block; content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; height: auto; background: linear-gradient(90deg, rgba(75,149,255,.22), rgba(75,149,255,0)); box-shadow: none; }
}
/* the kicker line sits above the soft blur panel of the title under it (the panel reaches up over it) */
.tour-kick { position: relative; z-index: 2; }
/* v9.17 — fields keep the site's pixel cursor too (no system text cursor over them) */
html.px-cur input[type="search"], html.px-cur input[type="text"], html.px-cur textarea { cursor: none !important; }
.err-search > .i-seek { top: 50%; translate: 0 -50%; width: 16px; height: 16px; transition: color .2s; }
.err-search:focus-within > .i-seek { color: var(--ice); }
/* v9.19 — error page search reacts to the pointer like the manual searches */
.err-search input { transition: border-color .25s, background-color .25s, box-shadow .3s; }
.err-search:hover input:not(:focus) { border-color: rgba(125,180,255,.4); background-color: rgba(75,149,255,.05); box-shadow: 0 0 0 3px rgba(75,149,255,.06), 0 8px 26px -14px rgba(75,149,255,.55); }
.err-search > .i-seek { transition: color .25s, transform .3s var(--ease); }
.err-search:hover > .i-seek { color: #9fd0ff; transform: rotate(-8deg) scale(1.08); }
html[data-theme="light"] .err-search:hover input:not(:focus) { border-color: rgba(40,110,240,.38); background-color: rgba(40,110,240,.04); box-shadow: 0 0 0 3px rgba(40,110,240,.06), 0 8px 24px -14px rgba(40,110,240,.4); }
html[data-theme="light"] .err-search:hover > .i-seek { color: #2f6fe0; }
/* v9.20 — over text fields the pixel cursor is a pixel I-beam, centred on the pointer */
#px-cursor.tx canvas { translate: -4.6px -9.6px; transform: none !important; }

/* v9.21 — chapter copy in short paragraphs (one per sentence) */
.tc-text p { margin: 0; }
.tc-text p + p { margin-top: .6em; }
/* the magnifier stays above the field when it gets focus (the focused field is lifted for its glow) */
.err-search > .i-seek, .docs-search > .i-seek, .hub-search > .i-seek { z-index: 2; pointer-events: none; }
/* the field is 52 px tall and the results list grows the form under it: centre the magnifier on the field, not the form */
.err-search > .i-seek { top: 26px; }
/* v9.24 — the hero's own section line (with its cursor glow) is drawn inside the hero; the hero content sits above it,
   so a dropdown that opens over that line (the docs search results) hides it */
.page-hero > .frame, .hero > .frame { position: relative; z-index: 7; }
