  :root {
    --void: #060a0f;
    --ink: #0a1118;
    --ink-2: #0e1720;
    --line: rgba(155, 232, 255, .13);
    --line-2: rgba(155, 232, 255, .3);
    --ice: #9be8ff;
    --ice-2: #5fc9e6;
    --ice-deep: #0e6f8a;
    --text: #e4f1f6;
    --muted: #9db3bf;
    --warm: #ffb27a;
    --paper: #e7ecef;
    --graphite: #2c3339;
    --display: "Saira", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --pad: clamp(1.25rem, 5vw, 4rem);
    --max: 1240px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; background: var(--void); }
  .rm { scroll-behavior: auto; }
  body {
    overflow-x: clip;
    margin: 0; color: var(--text); background: transparent;
    font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  ::selection { background: rgba(155, 232, 255, .3); color: #fff; }
  a { color: var(--ice); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
  a:hover { color: #fff; }
  :focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
  .skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ice); color: var(--void); padding: .6rem 1rem; }
  .skip:focus { left: 1rem; top: 1rem; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---------- Background instrumentation ---------- */
  .bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .bg-glow { position: absolute; inset: -10%; background:
      radial-gradient(50% 45% at 18% 8%, rgba(95, 201, 230, .14), transparent 70%),
      radial-gradient(40% 40% at 92% 96%, rgba(255, 178, 122, .07), transparent 70%),
      radial-gradient(70% 60% at 60% 40%, rgba(14, 23, 32, .9), transparent 80%); }
  .bg-grid { position: absolute; inset: -40px; background-image:
      linear-gradient(rgba(155, 232, 255, .05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(155, 232, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%); }
  .bg-arcs { position: absolute; right: -260px; top: -220px; width: 780px; height: 780px; opacity: .55; }
  .bg-arcs .spin { transform-origin: 390px 390px; animation: spin 140s linear infinite; }
  .bg-arcs .spin-r { transform-origin: 390px 390px; animation: spin 200s linear infinite reverse; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .paused * , .paused *::before, .paused *::after { animation-play-state: paused !important; }

  /* ---------- HUD bar ---------- */
  .hud { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(6, 10, 15, .62);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line); }
  .hud-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .brand { display: flex; align-items: center; gap: .7rem; color: var(--text); background: none; font-family: var(--display); font-weight: 500; font-variation-settings: "wdth" 110; letter-spacing: .02em; }
  .brand svg { width: 26px; height: 26px; }
  .hud nav ul { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
  .hud nav a { position: relative; color: var(--muted); background: none; font-size: .95rem; padding-left: 13px; transition: color .25s; }
  .hud nav a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--warm); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s; }
  .hud nav a:hover { color: var(--text); }
  .hud nav a:hover::before { opacity: .35; transform: scale(.8); }
  .hud nav a[aria-current="true"] { color: #fff; }
  .hud nav a[aria-current="true"]::before { opacity: 1; transform: none; box-shadow: 0 0 8px var(--warm); }
  @media (prefers-reduced-motion: reduce) { .hud nav a::before { transition: none; } }
  .clock { font-family: var(--display); font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
  .clock i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
  .progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--ice-2), var(--ice)); }
  @supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }

  /* ---------- Shared type ---------- */
  .eyebrow { font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; font-variation-settings: "wdth" 112; }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px var(--warm); }
  h2.title { font-family: var(--display); font-weight: 300; font-variation-settings: "wdth" 112; font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1rem; color: #f2f9fc; }
  .deck { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 42ch; margin: 0 0 3rem; line-height: 1.5; }
  section.sec { padding: clamp(5rem, 12vw, 9rem) 0 0; scroll-margin-top: 60px; }

  /* ---------- Modules: glass with corner brackets ---------- */
  .module { position: relative; border: 1px solid var(--line); border-radius: 16px;
    background: linear-gradient(180deg, rgba(155, 232, 255, .05), rgba(155, 232, 255, .012));
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: clamp(1.25rem, 3vw, 2.5rem); }
  .module::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; pointer-events: none;
    --c: var(--ice); --l: 18px;
    background:
      linear-gradient(var(--c), var(--c)) top left / var(--l) 1px no-repeat,
      linear-gradient(var(--c), var(--c)) top left / 1px var(--l) no-repeat,
      linear-gradient(var(--c), var(--c)) top right / var(--l) 1px no-repeat,
      linear-gradient(var(--c), var(--c)) top right / 1px var(--l) no-repeat,
      linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px no-repeat,
      linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l) no-repeat,
      linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px no-repeat,
      linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l) no-repeat;
    opacity: .55; }
  .mhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .9rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line);
    font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 112; }
  .mhead span:first-child { color: var(--ice); }

  /* ---------- Reveal on scroll ---------- */
  .js:not(.rm) [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js:not(.rm) [data-reveal].is-in { opacity: 1; transform: none; }

  /* ---------- Boot sequence ---------- */
  #boot { display: none; }
  .boot #boot { display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: var(--void); transition: opacity .7s var(--ease), visibility .7s; }
  .boot-done #boot { opacity: 0; visibility: hidden; }
  .boot-inner { width: min(420px, 84vw); font-family: var(--display); font-variation-settings: "wdth" 108; }
  .boot-mark { width: 54px; height: 54px; margin-bottom: 1.6rem; }
  .boot-mark [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; }
  .boot-mark .bm-l [pathLength] { animation-delay: .3s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .boot-lines { list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: .95rem; color: var(--muted); }
  .boot-lines li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); animation: line .5s var(--ease) forwards; }
  .boot-lines li span { color: var(--ice); }
  .boot-lines li:nth-child(1) { animation-delay: .3s; } .boot-lines li:nth-child(2) { animation-delay: .65s; } .boot-lines li:nth-child(3) { animation-delay: 1s; } .boot-lines li:nth-child(4) { animation-delay: 1.35s; }
  .boot-lines li:last-child { color: var(--text); }
  .boot-lines li:last-child span { color: var(--warm); }
  @keyframes line { to { opacity: 1; transform: none; } }
  .boot-bar { height: 2px; background: var(--line); overflow: hidden; }
  .boot-bar i { display: block; height: 100%; width: 100%; background: var(--ice); transform-origin: 0 50%; transform: scaleX(0); animation: fill 1.7s cubic-bezier(.65, 0, .35, 1) .2s forwards; box-shadow: 0 0 12px var(--ice); }
  @keyframes fill { to { transform: scaleX(1); } }
  .boot-skip { display: none; }
  .boot .boot-skip { display: block; position: fixed; z-index: 91; right: 1.5rem; bottom: 1.5rem; font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: .45rem 1rem; cursor: pointer; transition: color .2s, border-color .2s, opacity .4s; }
  .boot .boot-skip:hover { color: var(--text); border-color: var(--ice); }
  .boot-done .boot-skip { opacity: 0; pointer-events: none; }

  /* ---------- Hero ---------- */
  .hero { min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding: 110px 0 4rem; }
  .js:not(.rm) [data-hero] { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
  .ready [data-hero] { opacity: 1 !important; transform: none !important; }
  .ready [data-hero]:nth-child(2) { transition-delay: .08s; } .ready [data-hero]:nth-child(3) { transition-delay: .18s; } .ready [data-hero]:nth-child(4) { transition-delay: .26s; } .ready [data-hero]:nth-child(5) { transition-delay: .34s; }
  .ready .hero-instr[data-hero] { transition-delay: .2s; }
  h1 { margin: 0 0 1.6rem; font-family: var(--display); font-weight: 250; font-variation-settings: "wdth" 118; font-size: clamp(3.3rem, 10.5vw, 9.4rem); line-height: .9; letter-spacing: -.035em;
    background: linear-gradient(180deg, #ffffff 30%, #b9eefc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  h1 span { display: block; }
  .focus { text-wrap: balance; font-family: var(--display); font-variation-settings: "wdth" 104; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 400; color: var(--ice); margin: 0 0 1rem; letter-spacing: .005em; }
  .intro { font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 36ch; color: var(--text); margin: 0 0 2.2rem; }
  .ctas { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; }
  .btn { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.35rem; border-radius: 99px; background: var(--ice); color: var(--void); font-weight: 600; background-image: none; transition: background-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease); }
  .btn:hover { color: var(--void); background: #c8f3ff; box-shadow: 0 0 0 6px rgba(155, 232, 255, .12), 0 0 30px rgba(155, 232, 255, .25); }
  .btn-ghost { display: inline-flex; padding: .8rem 1.35rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); background: none; transition: border-color .25s, background-color .25s; }
  .btn-ghost:hover { border-color: var(--ice); background: rgba(155, 232, 255, .06); color: #fff; }
  .hero-instr { overflow: visible; justify-self: center; width: min(100%, 440px); }
  .instr { width: 100%; height: auto; display: block; overflow: visible; }
  .instr .ring { fill: none; stroke: rgba(155, 232, 255, .22); }
  .instr .tick { stroke: rgba(155, 232, 255, .35); }
  .instr .tick-major { stroke: var(--ice); }
  .instr .dash { fill: none; stroke: rgba(155, 232, 255, .35); stroke-dasharray: 2 7; transform-origin: 220px 220px; animation: spin 90s linear infinite; }
  .instr .arc { fill: none; stroke: var(--ice); stroke-width: 1.5; stroke-dasharray: 90 900; transform-origin: 220px 220px; animation: spin 40s linear infinite reverse; opacity: .7; }
  .instr .bearing { stroke: var(--warm); stroke-width: 2; }
  .instr .marker { transform-origin: 220px 220px; transform: rotate(var(--rot, -45deg)); transition: transform 1.4s var(--ease); }
  .instr .marker path { fill: var(--warm); filter: drop-shadow(0 0 6px rgba(255, 178, 122, .7)); }
  .instr .ctr-small { font-family: var(--display); font-size: 12px; letter-spacing: .16em; fill: var(--muted); text-transform: uppercase; }
  .instr .ctr-big { font-family: var(--display); font-weight: 400; font-variation-settings: "wdth" 104; font-size: 21px; fill: #f2f9fc; transition: opacity .5s var(--ease); }
  .instr .ctr-big.fade { opacity: 0; }

  /* ---------- About ---------- */
  .about-grid { display: grid; grid-template-columns: 1fr; max-width: 46rem; }
  .about-copy p { margin: 0 0 1.1rem; max-width: 60ch; }
  .about-copy p:first-child { font-family: var(--display); font-weight: 300; font-variation-settings: "wdth" 106; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; color: #f2f9fc; margin-bottom: 1.6rem; }
  .readouts { margin: 0; display: grid; gap: 0; align-content: start; }
  .readouts div { padding: .95rem 0; border-top: 1px solid var(--line); display: grid; gap: .15rem; }
  .readouts div:last-child { border-bottom: 1px solid var(--line); }
  .readouts dt { font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 112; }
  .readouts dd { margin: 0; color: var(--text); }

  /* ---------- Featured: Layers (sticky, scroll-driven) ---------- */
  .feature { overflow-x: clip; position: relative; scroll-margin-top: 60px; margin-top: clamp(4rem, 10vw, 8rem); }
  .js:not(.rm) .feature { height: 330vh; }
  .js:not(.rm) .feature > .wrap { height: 100%; }
  .feature-sticky { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2rem; align-items: center; padding: 90px 0 40px; }
  .js:not(.rm) .feature-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
  .steps { list-style: none; margin: 1.8rem 0 2rem; padding: 0; counter-reset: s; }
  .steps li { counter-increment: s; position: relative; padding: .9rem 0 .9rem 3rem; border-top: 1px solid var(--line); transition: opacity .6s var(--ease); }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .steps li::before { content: counter(s); position: absolute; left: 0; top: .95rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--display); font-size: .85rem; color: var(--muted); transition: all .5s var(--ease); }
  .steps b { display: block; font-family: var(--display); font-weight: 500; font-variation-settings: "wdth" 106; font-size: 1.2rem; color: #f2f9fc; }
  .steps span { display: block; color: var(--muted); font-size: 1rem; }
  .js:not(.rm) .steps li { opacity: .38; }
  .js:not(.rm) .steps li.on { opacity: 1; }
  .steps li.on::before { border-color: var(--ice); color: var(--void); background: var(--ice); box-shadow: 0 0 16px rgba(155, 232, 255, .45); }
  .sep-ctl { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .95rem; }
  .sep-ctl input { -webkit-appearance: none; appearance: none; width: 180px; height: 2px; background: var(--line-2); border-radius: 2px; }
  .sep-ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--void); border: 2px solid var(--ice); box-shadow: 0 0 12px rgba(155, 232, 255, .5); cursor: grab; }
  .sep-ctl input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--void); border: 2px solid var(--ice); cursor: grab; }
  .feature-note { color: var(--muted); font-size: .95rem; margin-top: 1.2rem; max-width: 46ch; }

  .holo { position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1; margin: 0 auto; perspective: 1700px; cursor: ew-resize; touch-action: pan-y; }
  .holo-base { position: absolute; left: 50%; bottom: 7%; width: 74%; height: 16%; transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(closest-side, rgba(155, 232, 255, .18), rgba(155, 232, 255, .04) 70%, transparent);
    box-shadow: inset 0 0 0 1px rgba(155, 232, 255, .22); }
  .holo-base::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(155, 232, 255, .3); }
  .holo-cone { position: absolute; left: 50%; bottom: 14%; width: 70%; height: 70%; transform: translateX(-50%); background: linear-gradient(0deg, rgba(155, 232, 255, .07), transparent 80%); clip-path: polygon(30% 100%, 70% 100%, 100% 0, 0 0); pointer-events: none; }
  .holo-stack { --sep: .7; --tilt: 0deg; --shift: 0%; position: absolute; left: 50%; top: 47%; width: 54%; aspect-ratio: 1; transform-style: preserve-3d;
    transform: translate(-50%, -50%) translateY(calc(var(--sep) * 64px)) rotateX(58deg) rotateZ(calc(-42deg + var(--tilt))); }
  .hl { position: absolute; inset: 0; border-radius: 8px; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--sep) * 74px));
    border: 1px solid rgba(155, 232, 255, calc(.12 + var(--sep) * .55));
    background: rgba(155, 232, 255, calc(var(--sep) * .045));
    box-shadow: 0 0 calc(var(--sep) * 28px) rgba(95, 201, 230, calc(var(--sep) * .22)); }
  .hl0 { background: linear-gradient(160deg, #123444, #0a1822 70%); }
  .hl0::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background-image: linear-gradient(rgba(155, 232, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 232, 255, .1) 1px, transparent 1px); background-size: 12.5% 12.5%; }
  .h-sun { position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%; right: 12%; top: 10%; transform: translateX(calc(var(--shift) * -1.4));
    background: radial-gradient(circle, #ffe2c6 0, var(--warm) 42%, rgba(255, 178, 122, 0) 72%); }
  .h-ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; transform: translateX(var(--shift));
    background: linear-gradient(180deg, rgba(155, 232, 255, .9), rgba(95, 201, 230, .25));
    clip-path: polygon(0 60%, 22% 22%, 40% 46%, 66% 0, 100% 50%, 100% 100%, 0 100%); }
  .h-type { position: absolute; left: 8%; bottom: 8%; font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 112; font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: #fff; letter-spacing: -.01em; text-shadow: 0 0 12px rgba(155, 232, 255, .6); }
  .htag { position: absolute; left: calc(100% + 12px); top: 0; white-space: nowrap; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--ice);
    border: 1px solid var(--line-2); background: rgba(6, 10, 15, .75); padding: 1px 8px; border-radius: 4px; opacity: var(--sep); }
  .holo-export { position: absolute; inset: 14% 14% 24%; opacity: var(--exp, 0); pointer-events: none; transition: opacity .2s linear; }
  .holo-export::before { content: ""; position: absolute; inset: 0; border-radius: 10px; --c: var(--warm); --l: 22px;
    background: linear-gradient(var(--c), var(--c)) top left / var(--l) 2px no-repeat, linear-gradient(var(--c), var(--c)) top left / 2px var(--l) no-repeat,
      linear-gradient(var(--c), var(--c)) top right / var(--l) 2px no-repeat, linear-gradient(var(--c), var(--c)) top right / 2px var(--l) no-repeat,
      linear-gradient(var(--c), var(--c)) bottom left / var(--l) 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 2px var(--l) no-repeat,
      linear-gradient(var(--c), var(--c)) bottom right / var(--l) 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 2px var(--l) no-repeat; }
  .holo-export span { position: absolute; left: 0; bottom: -2.2rem; font-family: var(--display); font-size: .85rem; letter-spacing: .1em; color: var(--warm); }
  .holo-export svg { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; }

  /* ---------- Systems explorer ---------- */
  .systems { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: repeat(5, min-content) 1fr; gap: 0 2rem; align-items: start; }
  .sys { display: contents; }
  .sys-h { margin: 0; grid-column: 1; font-weight: 400; font-size: 1rem; }
  .sys-btn { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: .9rem; align-items: center; text-align: left; font: inherit; color: var(--text); cursor: pointer;
    background: transparent; border: 1px solid transparent; border-radius: 12px; padding: .85rem .9rem; margin-bottom: .35rem; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
  .sys-btn:hover { background: rgba(155, 232, 255, .04); }
  .sys-btn[aria-expanded="true"] { background: rgba(155, 232, 255, .07); border-color: var(--line-2); }
  .sys-ico { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ice); transition: box-shadow .3s; }
  .sys-ico svg { width: 22px; height: 22px; }
  .sys-btn[aria-expanded="true"] .sys-ico { box-shadow: 0 0 18px rgba(155, 232, 255, .25); border-color: var(--ice); }
  .sys-name { font-family: var(--display); font-weight: 500; font-variation-settings: "wdth" 106; font-size: 1.12rem; line-height: 1.2; display: block; }
  .sys-sub { display: block; font-size: .9rem; color: var(--muted); }
  .sys-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .4s var(--ease); }
  .sys-btn[aria-expanded="true"] .sys-chev { transform: rotate(90deg); color: var(--ice); }
  .sys-body { grid-column: 2; grid-row: 1 / span 6; }
  .sys-body[hidden] { display: none; }
  .js:not(.rm) .sys-body.enter { animation: bodyIn .7s var(--ease); }
  @keyframes bodyIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .sys-title { font-family: var(--display); font-weight: 300; font-variation-settings: "wdth" 110; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; color: #f2f9fc; margin: 0 0 .9rem; }
  .sys-body p { margin: 0 0 1rem; max-width: 64ch; }
  .meta-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .meta-row dt { font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 112; }
  .meta-row dd { margin: .15rem 0 0; font-size: .98rem; }
  .meta-row dd.warm { color: var(--warm); }
  .tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
  .tags li { font-size: .88rem; padding: .25rem .7rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); }

  .skills-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .skills-list li { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: rgba(155, 232, 255, .03); }
  .skills-list b { display: block; font-family: var(--display); font-weight: 500; font-variation-settings: "wdth" 106; font-size: 1.05rem; color: #f2f9fc; margin-bottom: .2rem; }
  .skills-list span { color: var(--muted); font-size: .95rem; }

  /* ---------- Contact ---------- */
  .channels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
  .channel { display: grid; grid-template-columns: 52px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.4rem 1.5rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(155, 232, 255, .03); color: var(--text);
    transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .5s var(--ease); }
  .channel:hover { border-color: var(--ice); background-color: rgba(155, 232, 255, .07); color: var(--text); transform: translateY(-2px); }
  .channel .ci { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ice); }
  .channel .ci svg { width: 26px; height: 26px; }
  .channel b { display: block; font-family: var(--display); font-weight: 500; font-variation-settings: "wdth" 106; font-size: 1.3rem; }
  .channel small { display: block; color: var(--muted); font-size: .95rem; }
  .channel .go { width: 22px; height: 22px; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
  .channel:hover .go { transform: translate(3px, -3px); color: var(--ice); }
  footer { margin-top: clamp(5rem, 10vw, 8rem); border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; color: var(--muted); font-size: .9rem; }

  /* ---------- Knowledge graph ---------- */
  /* ================= v2 additions ================= */
  .logo { display: inline-flex; width: 34px; height: 34px; color: var(--text); }
  .logo svg { width: 100%; height: 100%; }
  .visually-hidden:focus { position: static; width: auto; height: auto; clip: auto; }

  /* Hologram with Arjun's photo layers */
  .hl0::after { display: none; }
  .hl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; pointer-events: none; user-select: none; }
  .hl1, .hl2, .hl3 { background: rgba(155, 232, 255, calc(var(--sep) * .04)); }
  .hl img.shift { transform: translateX(var(--shift)); }
  .hl3 { background: none; }
  .h-type { position: absolute; left: 7%; bottom: 9%; font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 112; font-size: clamp(1rem, 2.4vw, 1.6rem); color: #fff; letter-spacing: -.01em; text-shadow: 0 0 14px rgba(155, 232, 255, .7); }
  .holo-sm { width: min(100%, 420px); }

  /* Visualizer consoles */
  .viz { position: relative; margin: 1.2rem 0 1.4rem; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, rgba(95, 201, 230, .08), transparent 60%), #071017; }
  .viz:empty { display: none; }
  .viz-bar { display: flex; align-items: center; gap: 1rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 110; }
  .viz-live { display: inline-flex; align-items: center; gap: .45rem; color: var(--ice); }
  .viz-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
  .viz-title { flex: 1; }
  .viz-bp { font: inherit; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: .2rem .7rem; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
  .viz-bp:hover { color: var(--text); border-color: var(--ice); }
  .viz-bp[aria-pressed="true"] { color: var(--void); background: var(--paper); border-color: var(--paper); }
  .viz-stage { position: relative; min-height: 260px; }
  .viz-live-layer { position: relative; padding: .8rem; }
  .viz-sketch { position: absolute; inset: 0; background-color: var(--paper); overflow: auto;
    background-image: linear-gradient(rgba(44, 51, 57, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 51, 57, .07) 1px, transparent 1px); background-size: 22px 22px; display: grid; place-items: center; }
  .viz-sketch[hidden] { display: none; }
  .viz-sketch svg { width: 100%; min-width: 540px; height: auto; display: block; }
  .viz.bp .viz-live-layer { visibility: hidden; }
  .viz-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; padding: .7rem .9rem; border-top: 1px solid var(--line); }
  .viz-ctl-l { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
  .viz-note { font-size: .82rem; color: var(--muted); }
  .seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .88rem; }
  .seg-l { color: var(--muted); margin-right: .3rem; font-size: .85rem; }
  .seg button, .vbtn { font: inherit; font-size: .86rem; color: var(--text); background: rgba(155, 232, 255, .04); border: 1px solid var(--line-2); border-radius: 99px; padding: .3rem .8rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
  .seg button:hover, .vbtn:hover { border-color: var(--ice); }
  .seg button[aria-pressed="true"], .vbtn-primary { background: var(--ice); color: var(--void); border-color: var(--ice); }
  .vbtn-primary:hover { background: #c8f3ff; }
  .seg input[type="range"] { accent-color: var(--ice); width: 150px; }
  .tog { display: inline-flex; align-items: center; gap: .4rem; }
  .tog i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
  .tog[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
  .tog[aria-pressed="true"] { background: rgba(155, 232, 255, .1); color: var(--text); border-color: var(--line-2); }
  .tog.c-ice i { background: var(--ice); } .tog.c-warm i { background: var(--warm); } .tog.c-vio i { background: #c4b5fd; } .tog.c-mint i { background: #86efac; }

  /* SVG console primitives */
  svg.vz { display: block; width: 100%; height: auto; }
  .vz-t { fill: #dceaf1; font-family: var(--body); font-size: 13px; }
  .vz-s { font-size: 12px; } .vz-xs { font-size: 11px; } .vz-m { fill: var(--muted); }
  .vz-box { fill: rgba(155, 232, 255, .05); stroke: rgba(155, 232, 255, .28); stroke-width: 1; }
  .vz-strong { stroke: rgba(155, 232, 255, .55); }
  .vz-core { fill: rgba(16, 44, 58, .95); stroke: var(--ice); filter: drop-shadow(0 0 8px rgba(155, 232, 255, .25)); }
  .vz-pill { fill: rgba(155, 232, 255, .05); stroke: rgba(155, 232, 255, .28); transition: fill .4s, stroke .4s; }
  .vz-bar { fill: rgba(155, 232, 255, .25); } .vz-bar-hi { fill: rgba(242, 249, 252, .75); }
  .vz-wire { fill: none; stroke: rgba(155, 232, 255, .25); stroke-width: 1.2; }
  .vz-none { fill: none; stroke: none; }
  .vz-link { fill: none; stroke: var(--ice); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
  .vz-route { fill: none; stroke: rgba(155, 232, 255, .18); stroke-width: 1.2; stroke-dasharray: 3 5; transition: stroke .4s; }
  .vz-route.on { stroke: var(--warm); stroke-dasharray: none; stroke-width: 1.6; }
  .vz-prov .vz-box { transition: stroke .4s, fill .4s; }
  .vz-prov.on .vz-box { stroke: var(--warm); fill: rgba(255, 178, 122, .1); }
  .vz-chip.on .vz-pill, .vz-step.on .vz-pill { fill: rgba(155, 232, 255, .2); stroke: var(--ice); }
  .vz-shield { fill: rgba(134, 239, 172, .08); stroke: #86efac; stroke-width: 1.3; }
  .vz-check { fill: none; stroke: #86efac; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .vz-tile { opacity: 0; transition: opacity .5s var(--ease); } .vz-tile.on { opacity: 1; }
  .vz-img { fill: rgba(155, 232, 255, .35); } .vz-img.v1 { fill: rgba(255, 178, 122, .45); } .vz-img.v2 { fill: rgba(196, 181, 253, .45); }
  .vz-packet { fill: var(--ice); filter: drop-shadow(0 0 6px var(--ice)); }
  .vz-pulse { fill: var(--warm); filter: drop-shadow(0 0 6px var(--warm)); }
  .vz-ext .vz-box { fill: rgba(155, 232, 255, .06); }
  .vz-dot, .vz-ev { fill: var(--ice); }
  .vz-ext.c-warm .vz-dot, .vz-ev.c-warm { fill: var(--warm); } .vz-ext.c-vio .vz-dot, .vz-ev.c-vio { fill: #c4b5fd; } .vz-ext.c-mint .vz-dot, .vz-ev.c-mint { fill: #86efac; }
  .vz-ev { filter: drop-shadow(0 0 4px currentColor); }

  /* OmniGen */
  .og-set { display: grid; gap: .45rem; }
  .og-set[data-hue="coffee"] .og-img { background: linear-gradient(160deg, #6b4a32, #24170f); } .og-set[data-hue="coffee"] .og-img span { height: 100%; background: rgba(255, 178, 122, .45); clip-path: circle(30% at 50% 70%); }
  .og-set[data-hue="coffee"] .og-ad:nth-child(2) .og-img span { clip-path: circle(24% at 35% 60%); } .og-set[data-hue="coffee"] .og-ad:nth-child(3) .og-img span { clip-path: circle(34% at 65% 75%); }
  .og-set[data-hue="school"] .og-img { background: linear-gradient(160deg, #3d3a6b, #16152b); } .og-set[data-hue="school"] .og-img span { height: 100%; background: rgba(196, 181, 253, .45); clip-path: inset(25% 30% 0 30% round 6px); }
  .og-set[data-hue="school"] .og-ad:nth-child(2) .og-img span { clip-path: inset(35% 20% 0 40% round 6px); } .og-set[data-hue="school"] .og-ad:nth-child(3) .og-img span { clip-path: inset(20% 38% 0 22% round 6px); }

  /* Skills console */
  .viz-sk .viz-live-layer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; padding: 1rem; }
  .sk-con { border: 1px solid var(--line-2); border-radius: 10px; background: #050b10; overflow: hidden; }
  .sk-top { display: flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
  .sk-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(155, 232, 255, .25); }
  .sk-top span { margin-left: .5rem; }
  .sk-lines { padding: .7rem .8rem; min-height: 9.5em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.6; }
  .sk-lines p { margin: 0; color: #c5d6de; min-height: 1.6em; }
  .sk-lines p.cmd { color: var(--ice); }
  .sk-lines p.last { color: #86efac; }
  .sk-sum { margin: 0 .8rem .8rem; padding: .6rem .7rem; border-radius: 8px; border: 1px solid rgba(134, 239, 172, .4); background: rgba(134, 239, 172, .06); font-size: .9rem; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .6s var(--ease); }
  .sk-sum.on { opacity: 1; transform: none; }
  .sk-sum b { display: block; color: #86efac; font-weight: 600; font-size: .8rem; }
  .sk-team { display: grid; align-content: start; gap: .7rem; }
  .sk-mate { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; }
  .sk-mate svg { grid-row: span 2; width: 40px; height: 40px; }
  .sk-ring { fill: none; stroke: var(--line-2); transition: stroke .4s, filter .4s; }
  .sk-head { fill: rgba(155, 232, 255, .25); }
  .sk-mate.on .sk-ring { stroke: var(--ice); filter: drop-shadow(0 0 6px rgba(155, 232, 255, .6)); }
  .sk-who { font-size: .9rem; } .sk-st { font-size: .82rem; color: var(--muted); }
  .sk-mate.on .sk-st { color: var(--ice); }

  /* Voyager */
  .viz-vy .viz-live-layer { padding: 1rem; }
  .vy-prompt { border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .8rem; }
  .vy-prompt p { margin: 0; color: #f2f9fc; }
  .vy-panes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
  .vy-pane { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; background: rgba(155, 232, 255, .03); min-height: 7.5em; }
  .vy-h { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .35rem; }
  .vy-h b { font-weight: 600; color: var(--ice); } .vy-lat { color: var(--muted); font-size: .8rem; }
  .vy-out { margin: 0; font-size: .92rem; }
  .vy-out.typing::after { content: ""; display: inline-block; width: 7px; height: 1em; vertical-align: -.15em; margin-left: 2px; background: var(--ice); }
  .vy-load { margin-top: .8rem; }
  .vy-lh { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .vy-u { font-size: .8rem; color: var(--muted); }
  .vy-load svg { width: 100%; height: 56px; display: block; }
  .vy-line { fill: none; stroke: var(--ice); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .vy-area { fill: rgba(155, 232, 255, .1); }

  /* Layers console */
  .viz-holo .viz-live-layer { display: grid; justify-items: center; padding: .6rem 1rem 1rem; }
  .step-dots { display: inline-flex; gap: .5rem; align-items: center; }
  .step-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; position: relative; padding: 0; }
  .step-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(155, 232, 255, .3); transition: background-color .3s, transform .3s var(--ease); }
  .step-dot[aria-current="step"] { border-color: var(--ice); }
  .step-dot[aria-current="step"]::after { background: var(--ice); transform: scale(1.3); }
  .step-dot:hover { border-color: var(--ice); }
  .holo-phase { margin: .2rem 0 0; font-family: var(--display); font-size: .95rem; color: var(--ice); min-height: 1.4em; }

  /* Sketchbook strokes (blueprint view) */
  .sk-stroke { fill: none; stroke: var(--graphite); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .sk-stroke.faint { stroke-width: 1.1; opacity: .45; }
  .sk-text { font-family: var(--hand); font-size: 23px; font-weight: 500; fill: var(--graphite); }
  .sk-note { font-family: var(--hand); font-size: 20px; fill: #56616b; }
  .sk-fill { fill: rgba(44, 51, 57, .08); }
  .js:not(.rm) .viz-sketch .sk-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js:not(.rm) .viz-sketch .sk-text, .js:not(.rm) .viz-sketch .sk-note { opacity: 0; }
  .js:not(.rm) .viz-sketch.drawn .sk-stroke { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.45, 0, .25, 1) calc(var(--k, 0) * 30ms); }
  .js:not(.rm) .viz-sketch.drawn .sk-text, .js:not(.rm) .viz-sketch.drawn .sk-note { opacity: 1; transition: opacity .6s var(--ease) .5s; }

  /* Knowledge graph v2 */
  .kg2 { --kg-hl: var(--ice); }
  .kg-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; margin-bottom: 1rem; }
  .kg-filters, .kg-tools, .kg-zoom { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
  .kg-tools { gap: 1.2rem; }
  .kg-filter, .kg-zoom button, .arch-filters button { font: inherit; font-size: .88rem; color: var(--text); background: rgba(155, 232, 255, .04); border: 1px solid var(--line-2); border-radius: 99px; padding: .3rem .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; transition: background-color .25s, border-color .25s, opacity .25s; }
  .kg-filter:hover, .kg-zoom button:hover, .arch-filters button:hover { border-color: var(--ice); }
  .arch-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
  .kg-filter[aria-pressed="false"] { opacity: .45; }
  .kg-filter i { width: 14px; height: 10px; }
  .f-work i { border: 1px solid var(--ice); border-radius: 3px; background: rgba(16, 44, 58, .95); } .f-tech i { border: 1px solid rgba(155, 232, 255, .45); border-radius: 6px; } .f-domain i { border: 1px solid var(--warm); border-radius: 1px; }
  .kg-zoom button { min-width: 2.2rem; justify-content: center; }
  .kg-spacing { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
  .kg-spacing input { accent-color: var(--ice); width: 120px; }
  .kg-stage { position: relative; height: clamp(560px, 72vh, 760px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: radial-gradient(60% 60% at 50% 50%, rgba(95, 201, 230, .06), transparent 70%); touch-action: none; cursor: grab; }
  .kg-panning .kg-stage { cursor: grabbing; }
  .kg-svg { display: block; width: 100%; height: 100%; }
  .kg-hint { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }
  .kg-edge { stroke: rgba(155, 232, 255, .18); stroke-width: 1; opacity: 0; transition: opacity .35s, stroke .25s; }
  .kg-in .kg-edge { opacity: 1; }
  .kg-node { cursor: pointer; outline: none; transition: opacity .25s; }
  .kg-label { pointer-events: none; font-family: var(--body); font-size: 13px; }
  .kg-compact .kg-label { font-size: 12px; } .kg-compact .kg-domain .kg-label { font-size: 12.5px; }
  .kg-note { margin: -.3rem 0 .8rem; font-size: .88rem; color: var(--muted); }
  .kg-note[hidden] { display: none; }
  .kg-shape { transition: fill .2s, stroke .2s; }
  .kg-work .kg-shape { fill: rgba(16, 44, 58, .96); stroke: var(--ice); filter: drop-shadow(0 0 5px rgba(155, 232, 255, .25)); }
  .kg-work .kg-label { fill: #f2f9fc; font-weight: 600; }
  .kg-tech .kg-shape { fill: #0a1118; stroke: rgba(155, 232, 255, .32); }
  .kg-tech .kg-label { fill: #c5d6de; }
  .kg-domain .kg-shape { fill: rgba(40, 26, 16, .96); stroke: var(--warm); }
  .kg-domain .kg-label { fill: var(--warm); font-family: var(--display); font-weight: 500; font-variation-settings: "wdth" 110; letter-spacing: .03em; font-size: 14px; }
  .kg-has-hl .kg-node:not(.is-hl) { opacity: .16; }
  .kg-has-hl .kg-edge:not(.is-hl) { opacity: .08; }
  .kg-edge.is-hl { stroke: var(--ice); stroke-width: 1.6; }
  .kg-node:focus-visible .kg-shape, .kg-node.is-focus .kg-shape { stroke: #fff; stroke-width: 1.8; }
  .kg2.hide-work .kg-node.kg-work, .kg2.hide-work .ek-work, .kg2.hide-work .kg-g-work,
  .kg2.hide-tech .kg-node.kg-tech, .kg2.hide-tech .ek-tech, .kg2.hide-tech .kg-g-tech,
  .kg2.hide-domain .kg-node.kg-domain, .kg2.hide-domain .ek-domain, .kg2.hide-domain .kg-g-domain { display: none; }
  .kg-drawer { position: absolute; top: .8rem; right: .8rem; bottom: .8rem; width: min(330px, 46%); overflow: auto; padding: 1.1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line-2);
    background: rgba(8, 14, 20, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); cursor: auto; }
  .js:not(.rm) .kg-drawer:not([hidden]) { animation: drawerIn .45s var(--ease); }
  @keyframes drawerIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
  .kg-close { position: absolute; top: .6rem; right: .6rem; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
  .kg-close:hover { border-color: var(--ice); }
  .kg-p-kind { margin: 0 0 .3rem; font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 110; }
  .kg-p-kind.kg-domain { color: var(--warm); }
  .kg-p-title { margin: 0 0 .6rem; padding-right: 2rem; font-family: var(--display); font-weight: 400; font-variation-settings: "wdth" 108; font-size: 1.45rem; line-height: 1.15; color: #f2f9fc; }
  .kg-p-desc { margin: 0 0 .8rem; font-size: .95rem; }
  .kg-p-sub { margin: .8rem 0 .5rem; font-size: .82rem; color: var(--muted); }
  .kg-p-conn, .kg-chip-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
  .kg-chip { font: inherit; font-size: .85rem; cursor: pointer; padding: .28rem .7rem; border-radius: 99px; background: #0a1118; color: #c5d6de; border: 1px solid rgba(155, 232, 255, .32); transition: opacity .2s, border-color .2s; }
  .kg-chip:hover { border-color: var(--ice); }
  .kg-chip.kg-work { color: #f2f9fc; border-color: var(--ice); background: rgba(16, 44, 58, .95); border-radius: 8px; }
  .kg-chip.kg-domain { color: var(--warm); border-color: var(--warm); border-radius: 3px; background: rgba(40, 26, 16, .95); }
  .kg-chip[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
  .kg-chips { display: none; }
  .kg-group { margin-bottom: 1rem; }
  .kg-group-h { margin: 0 0 .45rem; font-size: .85rem; color: var(--muted); }
  .kg-has-hl .kg-chips .kg-chip:not(.is-hl) { opacity: .35; }
  .kg-mpanel { display: none; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: rgba(155, 232, 255, .03); }
  .kg-intro { margin: 0; color: var(--muted); }

  /* Archive */
  .record { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr; gap: 1.4rem; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; background: rgba(155, 232, 255, .025); }
  .record h3 { margin: 0 0 .4rem; font-family: var(--display); font-weight: 400; font-variation-settings: "wdth" 110; font-size: 1.7rem; letter-spacing: -.01em; color: #f2f9fc; }
  .record .rmeta { font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); margin: 0 0 .6rem; font-variation-settings: "wdth" 112; }
  .record p { margin: 0 0 .8rem; }
  .record-wide { margin-bottom: 1.25rem; }
  .record > *, .arch-body > * { min-width: 0; }
  .records { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
  .record .quote { font-family: var(--display); font-weight: 300; font-variation-settings: "wdth" 104; font-size: 1.08rem; color: #f2f9fc; }
  .demo-cap { color: var(--muted); font-size: .92rem; }
  .links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

  /* ---------- Demo building blocks ---------- */
  .demo { position: relative; justify-self: center; font-family: var(--body); }
  .demo:not(.on) *, .demo:not(.on) *::before, .demo:not(.on) *::after { animation-play-state: paused !important; }
  .demo .v, .demo .v-places > div, .demo [class^="v-"] { transition: opacity .45s var(--ease), transform .55s var(--ease); }
  .demo .v { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
  .tap { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(155, 232, 255, .55); box-shadow: 0 0 0 6px rgba(155, 232, 255, .2); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; z-index: 5; }
  .phone { width: 196px; height: 396px; border-radius: 30px; padding: 9px; background: linear-gradient(160deg, #1b2530, #0b1117); border: 1px solid rgba(155, 232, 255, .28); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04); }
  .ph-scr { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: #f2f3f5; display: flex; flex-direction: column; }
  .ph-status { display: flex; justify-content: space-between; align-items: center; height: 16px; padding: 0 10px; background: #000; color: #fff; font-size: 9px; flex: none; }
  .ph-ic { display: flex; gap: 2px; } .ph-ic i { width: 6px; height: 6px; border-radius: 1px; background: #fff; opacity: .8; }
  .ph-app { position: relative; flex: 1; overflow: hidden; }
  .ph-nav { height: 24px; flex: none; background: #000; display: flex; justify-content: space-around; align-items: center; }
  .ph-nav i { width: 10px; height: 10px; border: 1.5px solid #cfd6dc; }
  .ph-nav .nb { border-radius: 0; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); width: 7px; height: 7px; }
  .ph-nav .nh { border-radius: 50%; } .ph-nav .nr { border-radius: 2px; }
  .ph-land { width: 330px; height: 176px; padding: 8px; }
  .ph-land .ph-status, .ph-land .ph-nav { display: none; }
  .ph-sm { width: 150px; height: 300px; border-radius: 24px; padding: 7px; }
  .ph-sm .ph-scr { border-radius: 18px; }
  .bwin { width: 360px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(155, 232, 255, .28); background: #f4f6f8; color: #1d2733; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); font-size: 12px; }
  .bw-top { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #dfe5ea; color: #546170; font-size: 10.5px; }
  .bw-top i { width: 8px; height: 8px; border-radius: 50%; background: #b9c3cc; }
  .bw-top span { margin-left: 10px; padding: 2px 10px; border-radius: 99px; background: #fff; flex: 1; }
  .bw-body { position: relative; height: 230px; overflow: hidden; }

  /* SnappLock (Holo-era Android) */
  .ph-holo .ph-app { background: #f3f3f3; }
  .demo-snapplock .v-list { opacity: 0; }
  .demo-snapplock[data-v="list"] .v-list, .demo-snapplock[data-v="home"] .v-home, .demo-snapplock[data-v="pin"] .v-pin, .demo-snapplock[data-v="log"] .v-log { opacity: 1; pointer-events: auto; }
  .sl-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; background: #222; color: #fff; font-size: 12px; }
  .sl-ic { width: 18px; height: 18px; } .sl-bar b { flex: 1; font-weight: 500; }
  .sl-q { color: #ddd; font-weight: 700; } .sl-dots { width: 3px; height: 13px; background: radial-gradient(circle, #ddd 1.2px, transparent 1.4px) 0 0 / 3px 4.5px; }
  .sl-tabs { display: flex; background: #eaeaea; font-size: 7.5px; font-weight: 700; text-transform: uppercase; color: #333; letter-spacing: .02em; }
  .sl-tabs span { flex: 1; text-align: center; padding: 7px 0 5px; border-bottom: 2px solid transparent; }
  .sl-tabs span.on { border-color: #33b5e5; }
  .sl-list { list-style: none; margin: 0; padding: 0; background: #fafafa; }
  .sl-list li { display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 8px; height: 37px; padding: 0 8px; border-bottom: 1px solid #e3e3e3; font-size: 11px; color: #333; }
  .sl-list .ai svg { width: 22px; height: 22px; display: block; }
  .sl-list .an { text-align: center; }
  .lk { width: 15px; height: 15px; } .lk-b { fill: #c9ced3; } .lk-s { stroke: #c9ced3; stroke-width: 1.8; transform: translate(2.5px, -1px) rotate(12deg); transform-origin: 13px 9px; transition: transform .3s; }
  .sl-photos .lk-b, .sl-mail .lk-b, .demo-snapplock[data-c~="locked"] .sl-chat .lk-b { fill: #33b5e5; }
  .sl-photos .lk-s, .sl-mail .lk-s, .demo-snapplock[data-c~="locked"] .sl-chat .lk-s { stroke: #33b5e5; transform: none; }
  .sl-btns { position: absolute; left: 0; right: 0; bottom: 0; display: flex; font-size: 8px; color: #fff; text-align: center; }
  .sl-btns span { flex: 1; padding: 8px 2px; } .sl-btns span:nth-child(1) { background: #33b5e5; } .sl-btns span:nth-child(2) { background: #99cc00; } .sl-btns span:nth-child(3) { background: #cc0000; }
  .tap-chat { left: 140px; top: 120px; }
  .demo-snapplock[data-c~="tapchat"] .tap-chat, .demo-snapplock[data-c~="taphome"] .tap-home { opacity: 1; transform: scale(1); }
  .v-home { background: radial-gradient(120% 80% at 30% 20%, #34506a, #101820); }
  .hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px; padding: 40px 12px; }
  .hm-grid span { display: grid; justify-items: center; gap: 4px; color: #fff; font-size: 9px; }
  .hm-grid svg { width: 34px; height: 34px; } .hm-grid em { font-style: normal; }
  .tap-home { left: 76px; top: 44px; }
  .v-pin { background: #151719; color: #e8eaed; text-align: center; }
  .pin-head { padding-top: 22px; } .pin-head .sl-ic { width: 34px; height: 34px; }
  .pin-head p { margin: 4px 0 0; font-size: 12px; } .pin-head .pin-sub { color: #9aa3ad; font-size: 10px; }
  .pin-dots { display: flex; justify-content: center; gap: 12px; margin: 14px 0 6px; }
  .pin-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #33b5e5; }
  .demo-snapplock[data-c~="a1"] .pin-dots i, .demo-snapplock[data-c~="a2"] .pin-dots i, .demo-snapplock[data-c~="a3"] .pin-dots i { background: #33b5e5; }
  .js:not(.rm) .demo-snapplock[data-c~="a1"] .pin-dots, .js:not(.rm) .demo-snapplock[data-c~="a2"] .pin-dots, .js:not(.rm) .demo-snapplock[data-s="6"] .pin-dots { animation: shake .45s; }
  @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
  .pin-err { height: 14px; margin: 0; font-size: 9.5px; color: #ff6b6b; }
  .pin-err span { display: none; }
  .demo-snapplock[data-c~="a1"] .e1, .demo-snapplock[data-c~="a2"] .e2, .demo-snapplock[data-c~="a3"] .e3 { display: inline; }
  .pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 12px 0; border-top: 1px solid #2b2f33; }
  .pin-keys span { height: 34px; display: grid; place-items: center; font-size: 15px; border-bottom: 1px solid #2b2f33; color: #e8eaed; }
  .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
  .js:not(.rm) .demo-snapplock[data-c~="flash"] .flash { animation: flash .6s ease-out; }
  @keyframes flash { 0% { opacity: 0; } 15% { opacity: .9; } 100% { opacity: 0; } }
  .snap { position: absolute; right: 8px; top: 8px; width: 58px; padding: 3px; border-radius: 6px; background: #fff; color: #222; font-size: 7.5px; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease); }
  .snap .sil { width: 52px; height: 52px; display: block; border-radius: 3px; }
  .notif { position: absolute; left: 6px; right: 6px; top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(40, 44, 50, .96); text-align: left; font-size: 8.5px; display: grid; gap: 2px; transform: translateY(-120%); transition: transform .5s var(--ease); }
  .notif b { color: #33b5e5; font-size: 9px; } .tone { display: inline-flex; align-items: center; gap: 4px; color: #ffb27a; } .tone svg { width: 11px; height: 11px; }
  .demo-snapplock[data-c~="snap"] .snap { opacity: 1; transform: none; top: 62px; }
  .demo-snapplock[data-c~="sms"] .notif { transform: none; }
  .sl-shield { display: flex; align-items: center; gap: 5px; padding: 5px 8px; background: #111; color: #e8eaed; font-size: 9px; }
  .sl-shield svg { width: 10px; height: 10px; }
  .sl-log { list-style: none; margin: 0; padding: 6px; }
  .sl-log li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 6px; margin-bottom: 6px; background: #fff; border-radius: 4px; font-size: 9.5px; color: #333; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
  .sl-log li:not(.new) { opacity: .6; }
  .sl-log .sil { width: 40px; height: 40px; border-radius: 3px; }
  .sl-log b { display: block; font-size: 10.5px; } .sl-log em { display: block; font-style: normal; color: #6b7280; } .sl-log time { font-size: 8.5px; color: #6b7280; }
  .sl-sample { margin: 0; text-align: center; font-size: 8.5px; color: #6b7280; }

  /* Places */
  .ph-light .ph-app { background: #f6f7f9; color: #1d2733; }
  .v-places { position: absolute; inset: 0; }
  .pl-bar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px; background: #0f766e; color: #fff; font-size: 12px; }
  .pl-tabs { display: flex; gap: 10px; font-size: 9.5px; } .pl-tabs em { font-style: normal; opacity: .7; padding-bottom: 2px; border-bottom: 2px solid transparent; }
  .demo-places[data-v="feed"] .t-feed, .demo-places[data-v="map"] .t-map { opacity: 1; border-color: #fff; }
  .pl-feed, .pl-map { position: absolute; left: 0; right: 0; top: 34px; bottom: 0; }
  .demo-places[data-v="map"] .pl-feed, .demo-places[data-v="feed"] .pl-map { opacity: 0; }
  .pl-feed { padding: 8px; display: grid; gap: 7px; align-content: start; }
  .pl-card { display: grid; grid-template-columns: 50px 1fr; gap: 8px; align-items: center; background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-size: 9.5px; }
  .pl-card b { display: block; font-size: 10.5px; } .pl-card span { color: #6b7280; }
  .pl-card p { margin: 0; }
  .pl-ph { height: 42px; border-radius: 6px; background: linear-gradient(160deg, #fbbf24, #f97316 50%, #7c2d12); }
  .pl-ph2 { background: linear-gradient(180deg, #fda4af, #fb923c 55%, #1e3a5f 56%); }
  .pl-cal { height: 42px; border-radius: 6px; background: #ecfeff; color: #0f766e; display: grid; place-items: center; align-content: center; line-height: 1; }
  .pl-cal b { font-size: 16px; } .pl-cal span { font-size: 8px; color: #0f766e; }
  .pl-fab { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: #f97316; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
  .pl-fab::after { content: ""; position: absolute; inset: 11px 10px; border: 2px solid #fff; border-radius: 3px; }
  .pl-map { background-color: #e8eef2; background-image: linear-gradient(#fff 3px, transparent 3px), linear-gradient(90deg, #fff 3px, transparent 3px), linear-gradient(30deg, transparent 48%, #d4e4d0 48% 60%, transparent 60%); background-size: 46px 46px, 46px 46px, 100% 100%; }
  .pin { position: absolute; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: #ef4444; transform: rotate(-45deg) translateY(-30px); opacity: 0; transition: transform .5s var(--ease), opacity .3s; }
  .pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
  .p1 { left: 40px; top: 70px; } .p2 { left: 120px; top: 60px; transition-delay: .15s; } .p3 { left: 80px; top: 150px; transition-delay: .3s; } .p4 { left: 140px; top: 190px; transition-delay: .45s; }
  .demo-places[data-c~="pins"] .pin { opacity: 1; transform: rotate(-45deg); }
  .me { position: absolute; left: 92px; top: 110px; width: 12px; height: 12px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 6px rgba(59, 130, 246, .25); }
  .pl-place { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 9.5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); display: grid; gap: 2px; transform: translateY(130%); transition: transform .5s var(--ease); }
  .pl-place b { font-size: 11.5px; } .pl-place span, .pl-place em { color: #6b7280; font-style: normal; }
  .demo-places[data-c~="card"] .pl-place { transform: none; }
  .tap-tab { right: 6px; top: 6px; } .tap-pin { left: 116px; top: 52px; }
  .demo-places[data-c~="tapmap"] .tap-tab, .demo-places[data-c~="tappin"] .tap-pin { opacity: 1; transform: scale(1); }

  /* WeatherApp */
  .v-weather { position: absolute; inset: 0; padding: 0 0 8px; text-align: center; background: linear-gradient(180deg, #dbeafe, #f6f7f9 55%); }
  .wx-top { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 10px; font-size: 12px; }
  .wx-unit { display: flex; border: 1px solid #93c5fd; border-radius: 99px; overflow: hidden; font-size: 9.5px; }
  .wx-unit em { font-style: normal; padding: 2px 7px; }
  .wx-unit .uf { background: #3b82f6; color: #fff; }
  .demo-weather[data-c~="c"] .wx-unit .uf { background: none; color: #1d2733; } .demo-weather[data-c~="c"] .wx-unit .uc { background: #3b82f6; color: #fff; }
  .v-weather .uc { display: none; } .demo-weather[data-c~="c"] .v-weather .uc { display: inline; } .demo-weather[data-c~="c"] .v-weather .uf:not(.wx-unit .uf) { display: none; }
  .wx-unit em.uc { display: inline !important; } .wx-unit em.uf { display: inline !important; }
  .wx-city { margin: 6px 0 0; font-size: 11px; color: #475569; }
  .wx-now { display: flex; justify-content: center; align-items: center; gap: 6px; }
  .wx-now svg { width: 44px; height: 44px; }
  .wx-t em { font-style: normal; font-size: 34px; font-weight: 300; }
  .wx-cond { margin: 0 0 8px; font-size: 10.5px; color: #475569; }
  .wx-days { display: flex; justify-content: space-around; list-style: none; margin: 0 8px; padding: 6px 0; background: #fff; border-radius: 8px; font-size: 9.5px; }
  .wx-days li { display: grid; gap: 2px; } .wx-days em { font-style: normal; font-weight: 600; }
  .wx-sensor { margin: 8px 8px 0; padding: 7px 9px; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 9.5px; text-align: left; display: grid; gap: 1px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
  .wx-sensor b { color: #7dd3fc; } .wx-sensor small { color: #94a3b8; font-size: 8px; } .wx-sensor em { font-style: normal; }
  .demo-weather[data-c~="sensor"] .wx-sensor { opacity: 1; transform: none; }
  .wx-sample { margin: 6px 0 0; font-size: 8.5px; color: #64748b; }
  .tap-unit { right: 12px; top: 4px; } .demo-weather[data-c~="tapu"] .tap-unit { opacity: 1; transform: scale(1); }

  /* Wi-Fi & Brightness */
  .v-wifi { position: absolute; inset: 0; padding: 0 10px; background: #eef2f6; }
  .wf-top { height: 34px; display: flex; align-items: center; font-size: 12px; }
  .wf-tile { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: 12px; background: #fff; color: #0f766e; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
  .wf-tile svg { width: 28px; height: 28px; } .wf-tile span { color: #1d2733; font-size: 11px; display: grid; }
  .wf-tile em { font-style: normal; color: #64748b; font-size: 9.5px; } .wf-w .off { display: none; }
  .sw { width: 30px; height: 17px; border-radius: 99px; background: #0f766e; position: relative; transition: background-color .3s; }
  .sw::after { content: ""; position: absolute; top: 2px; left: 15px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .3s var(--ease); }
  .demo-wifi[data-c~="woff"] .wf-w { color: #94a3b8; } .demo-wifi[data-c~="woff"] .sw { background: #cbd5e1; } .demo-wifi[data-c~="woff"] .sw::after { left: 2px; }
  .demo-wifi[data-c~="woff"] .wf-w .on { display: none; } .demo-wifi[data-c~="woff"] .wf-w .off { display: inline; }
  .wf-b { grid-template-columns: 30px 1fr; } .wf-b .sl { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: #e2e8f0; position: relative; }
  .wf-b .sl i { position: absolute; left: 0; top: 0; bottom: 0; width: 85%; border-radius: 4px; background: #0f766e; transition: width .6s var(--ease); }
  .wf-b .sl i::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #0f766e; }
  .demo-wifi[data-c~="d1"] .wf-b .sl i { width: 50%; } .demo-wifi[data-c~="d2"] .wf-b .sl i { width: 18%; }
  .dim { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
  .demo-wifi[data-c~="d1"] .dim { opacity: .28; } .demo-wifi[data-c~="d2"] .dim { opacity: .55; }

  /* ABC3D */
  .ab-cam, .ab-game { position: absolute; inset: 0; transition: opacity .5s; }
  .demo-abc3d[data-v="cam"] .ab-game, .demo-abc3d[data-v="game"] .ab-cam { opacity: 0; }
  .ab-cam { background: linear-gradient(180deg, #4b5563, #6b5a46 55%, #8a7458); overflow: hidden; }
  .ab-table { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: repeating-linear-gradient(90deg, #8a7458 0 22px, #7d684e 22px 24px); }
  .ab-card { position: absolute; left: 50%; bottom: 18px; width: 70px; height: 50px; margin-left: -35px; background: #fff; border-radius: 4px; transform: perspective(200px) rotateX(48deg); display: grid; place-items: center; box-shadow: 0 6px 10px rgba(0, 0, 0, .3); }
  .ab-card b { font-size: 30px; color: #2563eb; font-family: Georgia, serif; }
  .ab-reticle { position: absolute; left: 50%; bottom: 10px; width: 100px; height: 70px; margin-left: -50px; transition: transform .4s var(--ease); }
  .ab-reticle i { position: absolute; width: 14px; height: 14px; border: 2px solid #fff; opacity: .85; }
  .ab-reticle i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .ab-reticle i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
  .ab-reticle i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .ab-reticle i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
  .demo-abc3d[data-c~="found"] .ab-reticle { transform: scale(.82); } .demo-abc3d[data-c~="found"] .ab-reticle i { border-color: #9be8ff; }
  .ab-obj { position: absolute; left: 50%; bottom: 66px; width: 70px; margin-left: -35px; text-align: center; transform: translateY(20px) scale(0); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2, 1.4, .4, 1); }
  .ab-obj svg { width: 64px; height: 64px; }
  .ab-obj span { display: block; font-size: 9.5px; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; }
  .demo-abc3d[data-c~="pop"] .ab-obj { transform: none; }
  .js:not(.rm) .demo-abc3d[data-c~="pop"] .ab-obj svg { animation: bob 2s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-5px) rotate(4deg); } }
  .ab-game { background: #ecfccb; }
  .ab-game svg { position: absolute; left: 17px; top: 4px; width: 280px; height: 120px; }
  .ab-road { fill: none; stroke: #a3a3a3; stroke-width: 14; stroke-linecap: round; }
  .ab-l circle { fill: #fde68a; stroke: #f59e0b; } .ab-l text { font: 700 11px var(--body); fill: #92400e; text-anchor: middle; dominant-baseline: central; }
  .ab-l { transition: opacity .3s; }
  .ab-car { position: absolute; width: 30px; height: 18px; offset-path: path("M10 95 C70 95 70 30 140 30 S210 95 270 95"); offset-distance: 0%; offset-anchor: center; offset-rotate: auto; left: 17px; top: 4px; }
  .ab-score { position: absolute; left: 8px; bottom: 2px; margin: 0; font-size: 10px; color: #365314; }
  .ab-score b { display: none; }
  .ab-score .s0 { display: inline; }
  .js:not(.rm) .demo-abc3d[data-c~="drive"] .ab-car { animation: drive 3.8s ease-in-out forwards; }
  .js:not(.rm) .demo-abc3d[data-c~="drive"] .l1 { animation: grab .2s 1s forwards; } .js:not(.rm) .demo-abc3d[data-c~="drive"] .l2 { animation: grab .2s 1.9s forwards; } .js:not(.rm) .demo-abc3d[data-c~="drive"] .l3 { animation: grab .2s 2.8s forwards; }
  .js:not(.rm) .demo-abc3d[data-c~="drive"] .s0 { animation: hideS 0s 1s forwards; } .js:not(.rm) .demo-abc3d[data-c~="drive"] .s1 { animation: showS 0s 1s forwards, hideS 0s 1.9s forwards; }
  .js:not(.rm) .demo-abc3d[data-c~="drive"] .s2 { animation: showS 0s 1.9s forwards, hideS 0s 2.8s forwards; } .js:not(.rm) .demo-abc3d[data-c~="drive"] .s3 { animation: showS 0s 2.8s forwards; }
  @keyframes drive { to { offset-distance: 100%; } } @keyframes grab { to { opacity: 0; } } @keyframes showS { to { display: inline; } } @keyframes hideS { to { display: none; } }

  /* ABC3D v2: Drive & Collect */
  .ph-game { width: 392px; height: 214px; }
  .ph-game .ph-scr { border-radius: 18px; }
  .ab-game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 16px; touch-action: none; outline: none; }
  .ab-game canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--ice); }
  .ab-mode { position: absolute; left: 10px; top: 8px; margin: 0; padding: 2px 9px; border-radius: 99px; background: rgba(15, 23, 42, .6); color: #fff; font-size: 10px; }
  .demo-abc3d .ab-hint { display: none; margin: .5rem 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
  .demo-abc3d.driving .ab-hint { display: block; }
  .demo-abc3d.driving[data-v] .ab-cam { opacity: 0; }
  .drive-btn { font: inherit; cursor: pointer; }
  .drive-btn[aria-pressed="true"] { border-color: var(--ice); background: rgba(155, 232, 255, .1); }

  /* Search Engine */
  .se-q { margin: 10px; padding: 6px 10px; border-radius: 99px; background: #fff; border: 1px solid #cbd5e1; font-size: 12px; display: flex; align-items: center; }
  .se-txt { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; transition: width 1.2s steps(17); }
  .demo-search[data-c~="type"] .se-txt { width: 9.6em; }
  .se-caret { display: inline-block; width: 1.5px; height: 1em; background: #1d2733; margin-left: 1px; }
  .se-main { display: grid; grid-template-columns: 130px 1fr; gap: 8px; padding: 0 10px; }
  .se-crawl { width: 100%; height: 150px; }
  .se-crawl line { stroke: #94a3b8; stroke-width: 1.2; opacity: 0; transition: opacity .3s calc(var(--i) * 120ms); }
  .se-crawl circle { fill: #e2e8f0; stroke: #64748b; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .3s calc(var(--i) * 140ms), transform .4s calc(var(--i) * 140ms); }
  .se-crawl circle.seed { fill: #0e7490; stroke: #0e7490; }
  .demo-search[data-c~="crawl"] .se-crawl line, .demo-search[data-c~="crawl"] .se-crawl circle { opacity: 1; transform: none; }
  .se-res { position: relative; list-style: none; margin: 0; padding: 0; height: 150px; }
  .se-res li { position: absolute; left: 0; right: 0; height: 32px; padding: 3px 6px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 10px; opacity: 0; transition: top .7s var(--ease), opacity .4s; }
  .se-res b { display: block; font-size: 10.5px; color: #1d4ed8; font-weight: 600; } .se-res .pg { color: #64748b; font-size: 8.5px; }
  .se-res i { position: absolute; right: 6px; bottom: 6px; width: 40px; height: 4px; border-radius: 4px; background: #e2e8f0; }
  .se-res i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: #0e7490; }
  .demo-search[data-c~="res"] .se-res li { opacity: 1; }
  .se-res .r0 { top: 76px; } .se-res .r1 { top: 0; } .se-res .r2 { top: 114px; } .se-res .r3 { top: 38px; }
  .demo-search[data-c~="rank"] .r0 { top: 0; } .demo-search[data-c~="rank"] .r1 { top: 38px; } .demo-search[data-c~="rank"] .r2 { top: 76px; } .demo-search[data-c~="rank"] .r3 { top: 114px; }
  .se-note { position: absolute; left: 10px; bottom: 6px; margin: 0; font-size: 9.5px; color: #64748b; }

  /* Health Care portal */
  .eh-main { position: absolute; inset: 0; }
  .demo-ehealth[data-v="pat"] .v-pat, .demo-ehealth[data-v="doc"] .v-doc { opacity: 1; }
  .eh-nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #0e7490; color: #fff; font-size: 11px; }
  .eh-nav b { flex: 1; } .who { padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-size: 9.5px; }
  .eh-tabs { display: flex; gap: 4px; padding: 8px 12px 0; }
  .eh-tabs em { font-style: normal; padding: 4px 10px; border-radius: 99px; background: #e2e8f0; font-size: 10px; color: #334155; transition: background-color .3s, color .3s; }
  .demo-ehealth[data-c~="tab1"] .t1, .demo-ehealth[data-c~="tab2"] .t2, .demo-ehealth[data-c~="tab3"] .t3 { background: #0e7490; color: #fff; }
  .eh-pane { position: absolute; left: 12px; right: 12px; top: 72px; display: grid; gap: 6px; opacity: 0; transition: opacity .35s; }
  .demo-ehealth[data-c~="tab1"] .p1, .demo-ehealth[data-c~="tab2"] .p2, .demo-ehealth[data-c~="tab3"] .p3 { opacity: 1; }
  .eh-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 10.5px; }
  .eh-row span { color: #64748b; } .eh-row i { font-style: normal; font-size: 9px; padding: 1px 6px; border-radius: 99px; background: #fef3c7; color: #92400e; } .eh-row i.ok { background: #dcfce7; color: #166534; }
  .eh-s { position: absolute; left: 12px; bottom: 6px; margin: 0; font-size: 9px; color: #64748b; }
  .eh-h { margin: 10px 12px 6px; font-size: 11.5px; font-weight: 600; }
  .eh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px; }
  .eh-grid span { display: grid; gap: 2px; padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-size: 10px; }
  .eh-grid em { font-style: normal; color: #64748b; font-size: 9px; }
  .eh-grid .s1 em, .eh-grid .s4 em { color: #0e7490; }
  .eh-grid .s3 { transition: background-color .4s, box-shadow .4s; }
  .demo-ehealth[data-c~="new"] .eh-grid .s3 { background: #ecfeff; box-shadow: 0 0 0 2px #0e7490; } .demo-ehealth[data-c~="new"] .eh-grid .s3 em { color: #0e7490; font-weight: 600; }

  /* ChatApp */
  .b-chat .bw-body { display: grid; grid-template-columns: 96px 1fr; }
  .ch-side { background: #1e293b; color: #cbd5e1; padding: 8px; display: grid; align-content: start; gap: 4px; font-size: 10.5px; }
  .ch-side b { color: #fff; margin-bottom: 4px; }
  .ch-side span { padding: 4px 6px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; }
  .demo-chat[data-v="gen"] .r-gen, .demo-chat[data-v="proj"] .r-proj { background: #334155; color: #fff; }
  .ch-side em { font-style: normal; font-size: 8.5px; background: #f97316; color: #fff; border-radius: 99px; padding: 0 5px; opacity: 0; transition: opacity .3s; }
  .demo-chat[data-c~="badge"] .ch-side em { opacity: 1; }
  .ch-main { position: relative; }
  .demo-chat[data-v="gen"] .v-gen, .demo-chat[data-v="proj"] .v-proj { opacity: 1; }
  .v-gen, .v-proj { padding: 8px 10px; }
  .m { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 7px; font-size: 10.5px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease); }
  .m i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #93c5fd; } .m i.a2 { background: #fca5a5; } .m i.a3 { background: #86efac; }
  .m span { background: #fff; padding: 5px 8px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
  .m b { display: block; font-size: 9px; color: #64748b; font-weight: 600; }
  .demo-chat[data-c~="m1"] .m1, .demo-chat[data-c~="m2"] .m2, .demo-chat[data-c~="m3"] .m3, .demo-chat[data-c~="typing"] .typing, .demo-chat[data-c~="p1"] .p1, .demo-chat[data-c~="p2"] .p2 { opacity: 1; transform: none; }
  .demo-chat[data-c~="m3"] .typing { display: none; }
  .typing em { display: inline-block; width: 5px; height: 5px; margin: 0 1px; border-radius: 50%; background: #94a3b8; }
  .js:not(.rm) .typing em { animation: blink 1s infinite; } .typing em:nth-child(2) { animation-delay: .2s; } .typing em:nth-child(3) { animation-delay: .4s; }
  @keyframes blink { 50% { opacity: .2; } }
  .ch-input { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 6px; background: #fff; border: 1px solid #cbd5e1; color: #94a3b8; font-size: 10px; }

  /* Canon pipeline dashboard */
  .cn-main { display: grid; grid-template-columns: 1fr; padding: 8px; }
  .cn-dag { width: 100%; height: 150px; }
  .cn-e { fill: none; stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 4 4; }
  .js:not(.rm) .cn-e { animation: flow 1.2s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -16; } }
  .demo-canon[data-c~="fail"] .e2, .demo-canon[data-c~="fail"] .e3 { stroke: #cbd5e1; animation: none; }
  .cn-n rect { fill: #fff; stroke: #cbd5e1; } .cn-n circle { fill: #22c55e; } .cn-n text { font: 600 10.5px var(--body); fill: #1d2733; dominant-baseline: central; text-anchor: middle; }
  .demo-canon[data-c~="fail"] .n2 rect { stroke: #ef4444; fill: #fef2f2; } .demo-canon[data-c~="fail"] .n2 circle { fill: #ef4444; }
  .demo-canon[data-c~="fail"] .n3 circle, .demo-canon[data-c~="fail"] .n4 circle { fill: #cbd5e1; }
  .cn-drill { position: absolute; right: 8px; top: 8px; bottom: 44px; width: 170px; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); font-size: 10px; transform: translateX(115%); transition: transform .5s var(--ease); }
  .cn-drill b { font-size: 10.5px; } .cn-drill ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
  .cn-drill li { padding: 4px 6px; border-radius: 5px; background: #f0fdf4; color: #166534; } .cn-drill li.bad { background: #fef2f2; color: #b91c1c; }
  .cn-drill small { color: #64748b; }
  .demo-canon[data-c~="drill"] .cn-drill { transform: none; }
  .cn-toast { position: absolute; left: 10px; right: 10px; bottom: 8px; padding: 7px 10px; border-radius: 8px; background: #1e293b; color: #fff; font-size: 10px; transform: translateY(150%); transition: transform .5s var(--ease); }
  .demo-canon[data-c~="toast"] .cn-toast { transform: none; }

  /* ISTE VESIT */
  .is-split { display: flex; align-items: center; gap: 14px; }
  .b-iste { width: 250px; } .b-iste .bw-body { height: 210px; }
  .is-hero { padding: 16px 12px; background: linear-gradient(120deg, #1e3a8a, #0e7490); color: #fff; display: grid; gap: 2px; }
  .is-hero b { font-size: 15px; } .is-hero span { font-size: 10px; opacity: .8; }
  .is-nav { display: flex; gap: 10px; padding: 7px 12px; font-size: 10px; color: #334155; border-bottom: 1px solid #e2e8f0; }
  .is-nav em { font-style: normal; } .is-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px; }
  .is-cards i { height: 60px; border-radius: 6px; background: #e2e8f0; }
  .is-app { position: absolute; inset: 0; }
  .is-top { height: 28px; display: flex; align-items: center; padding: 0 8px; background: #1e3a8a; color: #fff; font-size: 10px; }
  .is-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 8px; transition: opacity .4s; }
  .is-grid span { height: 56px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); display: grid; place-items: center; font-size: 9.5px; color: #1e3a8a; }
  .is-events { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; padding: 8px; background: #f6f7f9; opacity: 0; transform: translateX(20px); transition: opacity .4s, transform .5s var(--ease); }
  .is-events p { margin: 0 0 6px; font-size: 11px; font-weight: 600; }
  .is-ev { display: grid; gap: 1px; padding: 6px 8px; margin-bottom: 6px; border-radius: 6px; background: #fff; font-size: 9.5px; } .is-ev span { color: #64748b; }
  .demo-iste[data-c~="ev"] .is-events { opacity: 1; transform: none; }
  .tap-ev { left: 18px; top: 42px; } .demo-iste[data-c~="tap"] .tap-ev { opacity: 1; transform: scale(1); }

  /* GameMaker game (original sprite) */
  .gm { position: relative; width: 340px; height: 170px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(155, 232, 255, .28); image-rendering: pixelated; }
  .gm-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #1e1b4b, #4c1d95 60%, #9d174d); }
  .gm-hills { position: absolute; left: 0; right: 0; bottom: 28px; height: 50px; background: repeating-linear-gradient(90deg, transparent 0 0); background-image: radial-gradient(60px 40px at 40px 50px, #312e81 98%, transparent 100%), radial-gradient(70px 46px at 140px 50px, #3730a3 98%, transparent 100%); background-size: 200px 50px; background-repeat: repeat-x; }
  .gm-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: repeating-linear-gradient(90deg, #14532d 0 14px, #166534 14px 28px); border-top: 4px solid #4ade80; }
  .js:not(.rm) .demo-game[data-c~="fight"] .gm-ground { animation: scrollX 1s linear infinite; } .js:not(.rm) .demo-game[data-c~="fight"] .gm-hills { animation: scrollH 6s linear infinite; }
  @keyframes scrollX { to { background-position: -28px 0; } } @keyframes scrollH { to { background-position: -200px 0, -200px 0; } }
  .gm-hero i, .ch i { display: block; width: 3px; height: 3px; background: transparent; box-shadow:
      6px 0 #fde68a, 9px 0 #fde68a, 3px 3px #fde68a, 6px 3px #1f2937, 9px 3px #fde68a, 12px 3px #1f2937, 6px 6px #fde68a, 9px 6px #fde68a,
      3px 9px #38bdf8, 6px 9px #38bdf8, 9px 9px #38bdf8, 12px 9px #38bdf8, 0 12px #fde68a, 6px 12px #38bdf8, 9px 12px #38bdf8, 15px 12px #fde68a,
      6px 15px #1e3a8a, 9px 15px #1e3a8a, 3px 18px #1e3a8a, 12px 18px #1e3a8a; transform: scale(1.6); transform-origin: 0 0; }
  .gm-hero { position: absolute; left: 70px; bottom: 28px; width: 30px; height: 36px; opacity: 0; transition: opacity .3s; }
  .demo-game[data-c~="fight"] .gm-hero { opacity: 1; }
  .js:not(.rm) .demo-game[data-c~="fight"] .gm-hero { animation: jump 2.5s ease-in-out infinite; }
  @keyframes jump { 0%, 40%, 100% { transform: translateY(0); } 55% { transform: translate(40px, -36px); } 70% { transform: translate(80px, 0); } 85% { transform: translate(40px, 0); } }
  .gm-enemy { position: absolute; left: 180px; bottom: 28px; width: 34px; height: 22px; border-radius: 16px 16px 4px 4px; background: #22c55e; opacity: 0; box-shadow: inset 0 -5px #15803d; }
  .gm-enemy i { position: absolute; left: 8px; top: 7px; width: 4px; height: 4px; background: #052e16; box-shadow: 12px 0 #052e16; }
  .demo-game[data-c~="fight"] .gm-enemy { opacity: 1; }
  .js:not(.rm) .demo-game[data-c~="fight"] .gm-enemy { animation: enemy 2.5s ease-in-out infinite; }
  @keyframes enemy { 0%, 60% { transform: translateX(0); opacity: 1; } 70% { transform: translateX(10px) scale(1.1); opacity: 1; filter: brightness(2); } 80%, 100% { transform: translateX(20px) scale(.2); opacity: 0; } }
  .gm-pick { position: absolute; inset: 0 0 28px; display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; align-content: center; transition: opacity .4s; }
  .gm-pick p { width: 100%; margin: 0; text-align: center; color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .ch { width: 46px; height: 50px; padding: 6px 8px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 6px; }
  .c2 i { filter: hue-rotate(140deg); }
  .demo-game[data-c~="chosen"] .c1 { border-color: #fde68a; box-shadow: 0 0 12px rgba(253, 230, 138, .6); }
  .demo-game[data-c~="fight"] .gm-pick { opacity: 0; }
  .gm-label { position: absolute; right: 8px; top: 6px; margin: 0; font-size: 9px; color: rgba(255, 255, 255, .7); }

  /* MOTI (generic civic site) */
  .b-moti .bw-body { height: 250px; }
  .mo { position: absolute; inset: 0; overflow: hidden; }
  .mo-page { transition: transform .9s var(--ease); }
  .demo-moti[data-c~="team"] .mo-page { transform: translateY(-120px); } .demo-moti[data-c~="foot"] .mo-page { transform: translateY(-190px); }
  .mo-nav { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; }
  .mo-mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1e3a8a; } .mo-nav span { width: 34px; height: 5px; border-radius: 3px; background: #cbd5e1; }
  .mo-hero { padding: 14px 12px; background: linear-gradient(120deg, #eef2ff, #ecfeff); display: grid; gap: 5px; opacity: 0; transition: opacity .5s; }
  .demo-moti[data-c~="hero"] .mo-hero { opacity: 1; }
  .mo-hero b { font-size: 12.5px; color: #1e3a8a; line-height: 1.25; } .mo-hero span { font-size: 10px; color: #475569; }
  .mo-cta { justify-self: start; font-style: normal; font-size: 10px; padding: 4px 10px; border-radius: 99px; background: #1e3a8a; color: #fff; margin-top: 3px; }
  .js:not(.rm) .demo-moti[data-c~="cta"] .mo-cta { animation: ctaPulse 1.4s ease-in-out infinite; }
  @keyframes ctaPulse { 50% { box-shadow: 0 0 0 6px rgba(30, 58, 138, .2); } }
  .mo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px 2px; }
  .mo-stats i { height: 42px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); position: relative; }
  .mo-stats i::before { content: ""; position: absolute; left: 10px; top: 10px; width: 30px; height: 9px; border-radius: 3px; background: #c7d2fe; }
  .mo-stats i::after { content: ""; position: absolute; left: 10px; top: 25px; width: 50px; height: 5px; border-radius: 3px; background: #e2e8f0; }
  .mo-stats i:nth-child(2) { transition-delay: .12s; } .mo-stats i:nth-child(3) { transition-delay: .24s; }
  .demo-moti[data-c~="stats"] .mo-stats i { opacity: 1; transform: none; }
  .mo-team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 6px 12px 12px; }
  .mo-team i { aspect-ratio: 1; border-radius: 50%; background: #cbd5e1; }
  .mo-foot { display: flex; align-items: center; gap: 8px; padding: 12px; background: #1e293b; color: #e2e8f0; font-size: 10px; }
  .mo-foot i { flex: 1; height: 18px; border-radius: 4px; background: #334155; } .mo-foot em { font-style: normal; padding: 3px 8px; border-radius: 4px; background: #0e7490; }

  /* Intelligent Business Analytics */
  .ib { position: absolute; inset: 0; }
  .demo-iba[data-v="cmp"] .v-cmp, .demo-iba[data-v="trend"] .v-trend { opacity: 1; }
  .v-cmp, .v-trend { padding: 10px 12px; }
  .ib-h { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; }
  .ib-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ib-cmp div { display: grid; gap: 5px; padding: 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-size: 10px; color: #475569; }
  .ib-cmp b { font-size: 12px; color: #1d2733; } .ib-cmp .pr { color: #0e7490; font-weight: 600; }
  .ib-s { position: absolute; left: 12px; bottom: 6px; margin: 0; font-size: 9px; color: #64748b; }
  .ib-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid #cbd5e1; font-size: 11px; color: #0e7490; margin-bottom: 6px; }
  .ib-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .ib-posts li { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 4px 8px; border-radius: 6px; background: #fff; font-size: 9.5px; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s var(--ease); }
  .ib-posts em { font-style: normal; font-size: 8.5px; padding: 0 6px; border-radius: 99px; align-self: center; }
  .ib-posts em.pos { background: #dcfce7; color: #166534; } .ib-posts em.neu { background: #e2e8f0; color: #334155; } .ib-posts em.neg { background: #fee2e2; color: #b91c1c; }
  .ib-posts i { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #0e7490 var(--c), #e2e8f0 var(--c)); }
  .demo-iba[data-c~="s1"] .ps0, .demo-iba[data-c~="s2"] .ps1, .demo-iba[data-c~="s3"] .ps2, .demo-iba[data-c~="s4"] .ps3 { opacity: 1; transform: none; }
  .ib-sum { display: grid; gap: 3px; margin-top: 6px; font-size: 9px; opacity: 0; transition: opacity .4s; }
  .ib-sum span { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 6px; }
  .ib-sum i { height: 6px; border-radius: 3px; width: var(--w); } .ib-sum .pos { background: #22c55e; } .ib-sum .neu { background: #94a3b8; } .ib-sum .neg { background: #ef4444; }
  .demo-iba[data-c~="sum"] .ib-sum { opacity: 1; }

  /* The D-Deal */
  .dd { padding: 10px 12px; }
  .dd-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; }
  .dd-live { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #dc2626; }
  .dd-live i { width: 7px; height: 7px; border-radius: 50%; background: #dc2626; }
  .js:not(.rm) .dd-live i { animation: blink 1.2s infinite; }
  .dd-t, .inv-t, .cr-t { width: 100%; border-collapse: collapse; font-size: 10.5px; }
  .dd-t th, .inv-t th, .cr-t th { text-align: left; font-weight: 600; color: #64748b; font-size: 9.5px; padding: 4px 6px; border-bottom: 1px solid #e2e8f0; }
  .dd-t td, .inv-t td, .cr-t td { padding: 7px 6px; border-bottom: 1px solid #eef2f6; transition: background-color .4s; }
  .bid span, .q span { display: none; }
  .bid .b0, .q .q0 { display: inline; }
  .demo-ddeal[data-c~="k1"] .b0, .demo-ddeal[data-c~="k2"] .b0, .demo-ddeal[data-c~="k3"] .b0 { display: none; }
  .demo-ddeal[data-c~="k1"] .b1 { display: inline; } .demo-ddeal[data-c~="k2"] .b2, .demo-ddeal[data-c~="k3"] .b2 { display: inline; }
  .demo-ddeal[data-c~="k1"] .bid, .demo-ddeal[data-c~="k2"] .bid { color: #0e7490; font-weight: 600; }
  .st .sold { display: none; color: #166534; font-weight: 600; } .st .open { color: #64748b; }
  .demo-ddeal[data-c~="sold0"] .lot0 .open, .demo-ddeal[data-c~="sold2"] .lot2 .open { display: none; }
  .demo-ddeal[data-c~="sold0"] .lot0 .sold, .demo-ddeal[data-c~="sold2"] .lot2 .sold { display: inline; }
  .demo-ddeal[data-c~="sold0"] .lot0 td, .demo-ddeal[data-c~="sold2"] .lot2 td { background: #f0fdf4; }
  .dd-s { margin: 8px 0 0; font-size: 9px; color: #64748b; }

  /* Run & Urn */
  .ru { padding: 12px; display: grid; gap: 8px; }
  .ru-hero { display: grid; gap: 2px; padding: 12px; border-radius: 8px; background: linear-gradient(120deg, #fef3c7, #ffedd5); }
  .ru-hero b { font-size: 14px; color: #9a3412; } .ru-hero span { font-size: 9.5px; color: #9a3412; }
  .ru-prog { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
  .ru-prog i { display: block; height: 100%; width: 22%; background: #f97316; transition: width .8s var(--ease); }
  .demo-runurn[data-c~="r1"] .ru-prog i { width: 40%; } .demo-runurn[data-c~="r2"] .ru-prog i { width: 62%; } .demo-runurn[data-c~="r3"] .ru-prog i { width: 78%; } .demo-runurn[data-c~="full"] .ru-prog i { width: 100%; }
  .ru-stats { display: flex; justify-content: space-between; font-size: 10px; color: #475569; }
  .ru-stats b { display: none; color: #1d2733; } .ru-stats .n0 { display: inline; }
  .demo-runurn[data-c~="r1"] .n0, .demo-runurn[data-c~="r2"] .n0, .demo-runurn[data-c~="r3"] .n0 { display: none; }
  .demo-runurn[data-c~="r1"] .n1, .demo-runurn[data-c~="r2"] .n2, .demo-runurn[data-c~="r3"] .n3 { display: inline; }
  .ru-sp { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .ru-sp li { padding: 5px 8px; border-radius: 6px; background: #fff; font-size: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
  .demo-runurn[data-c~="sp1"] .sp1, .demo-runurn[data-c~="sp2"] .sp2 { opacity: 1; transform: none; }
  .ru-btn { justify-self: start; font-style: normal; font-size: 10.5px; padding: 5px 12px; border-radius: 99px; background: #f97316; color: #fff; }
  .ru-s { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: 9px; color: #64748b; }

  /* Inventory */
  .inv { padding: 10px 12px; }
  .inv-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; }
  .inv-top b { flex: 1; }
  .inv-top em { font-style: normal; font-size: 9px; padding: 3px 8px; border-radius: 99px; background: #e2e8f0; color: #334155; opacity: .45; transition: opacity .3s, background-color .3s, color .3s; }
  .demo-inventory[data-c~="s1"] .a-sell, .demo-inventory[data-c~="s2"] .a-sell2, .demo-inventory[data-c~="s3"] .a-buy { opacity: 1; background: #0e7490; color: #fff; }
  .demo-inventory[data-c~="s1"] .q .q0, .demo-inventory[data-c~="s2"] .q .q0, .demo-inventory[data-c~="s3"] .q .q0 { display: none; }
  .demo-inventory[data-c~="s1"] .q .q1, .demo-inventory[data-c~="s2"] .q .q2, .demo-inventory[data-c~="s3"] .q .q3 { display: inline; }
  .q { font-weight: 600; font-variant-numeric: tabular-nums; }
  .flag span { display: none; font-size: 9px; padding: 1px 6px; border-radius: 99px; background: #fee2e2; color: #b91c1c; }
  .demo-inventory[data-c~="s2"] .it1 .flag span, .demo-inventory[data-c~="s3"] .it1 .flag span { display: inline; }
  .demo-inventory[data-c~="s1"] .it0 td, .demo-inventory[data-c~="s3"] .it0 td, .demo-inventory[data-c~="s2"] .it1 td { background: #ecfeff; }

  /* Project management */
  .pmg { position: absolute; inset: 0; }
  .demo-projmgmt[data-v="up"] .v-up, .demo-projmgmt[data-v="rv"] .v-rv, .demo-projmgmt[data-v="gr"] .v-gr { opacity: 1; }
  .v-up, .v-rv, .v-gr { padding: 14px; }
  .pm-h { margin: 0 0 10px; font-size: 12px; font-weight: 600; }
  .pm-file { display: grid; grid-template-columns: 22px 1fr; gap: 4px 8px; align-items: center; padding: 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-size: 10.5px; color: #334155; }
  .pm-file svg { width: 20px; height: 20px; grid-row: span 2; color: #0e7490; }
  .pm-file i { height: 5px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
  .pm-file b { display: block; height: 100%; width: 0; background: #0e7490; transition: width 1.3s var(--ease); }
  .demo-projmgmt[data-c~="upl"] .pm-file b { width: 100%; }
  .pm-btn { display: inline-block; margin-top: 10px; font-style: normal; font-size: 10.5px; padding: 5px 12px; border-radius: 6px; background: #0e7490; color: #fff; }
  .pm-c { padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; background: #fff; border-left: 3px solid #0e7490; font-size: 10.5px; display: grid; gap: 2px; } .pm-c span { color: #475569; }
  .pm-grade { margin: 10px auto; width: 150px; text-align: center; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); display: grid; gap: 2px; }
  .pm-grade span { font-size: 10px; color: #64748b; } .pm-grade b { font-size: 46px; line-height: 1; color: #0e7490; } .pm-grade em { font-style: normal; font-size: 9px; color: #64748b; }

  /* Cricket league database (classic desktop app) */
  .cr { width: 360px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(155, 232, 255, .28); background: #ececec; color: #111; font-size: 11px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
  .cr-title { display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: linear-gradient(180deg, #4a6a9c, #2f4f7f); color: #fff; font-size: 11px; }
  .cr-title span { flex: 1; } .cr-title i { width: 12px; height: 11px; background: #d6dbe3; border: 1px solid #1e3050; }
  .cr-body { padding: 8px 8px 20px; position: relative; min-height: 212px; }
  .cr-body label { font-size: 10px; color: #333; }
  .cr-q { margin: 3px 0 6px; padding: 5px 6px; background: #fff; border: 1px solid #8a8a8a; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 9.5px; min-height: 30px; }
  .cr-q span { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; vertical-align: top; transition: max-width 1.3s steps(40); }
  .demo-cricket[data-c~="q"] .cr-q span { max-width: 100%; white-space: normal; }
  .cr-run { display: inline-block; font-style: normal; padding: 2px 14px; border: 1px solid #707070; background: linear-gradient(180deg, #f6f6f6, #dcdcdc); font-size: 10.5px; }
  .demo-cricket[data-c~="run"] .cr-run { background: #cfe0f7; border-color: #3a6fb0; }
  .cr-t { margin-top: 6px; background: #fff; border: 1px solid #8a8a8a; }
  .cr-t td { padding: 4px 6px; }
  .cr-t tbody tr { opacity: 0; transition: opacity .3s; }
  .cr-t tr.cr1 { transition-delay: .15s; } .cr-t tr.cr2 { transition-delay: .3s; } .cr-t tr.cr3 { transition-delay: .45s; }
  .demo-cricket[data-c~="res"] .cr-t tbody tr { opacity: 1; }
  .cr-s { position: absolute; right: 8px; bottom: 3px; margin: 0; font-size: 9px; color: #555; }

  /* Your visit */
  .vt-promise { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.6rem; padding: .7rem 1rem; border-radius: 10px; border: 1px solid rgba(134, 239, 172, .35); background: rgba(134, 239, 172, .05); color: #d6f5e0; }
  .vt-promise svg { width: 18px; height: 18px; flex: none; color: #86efac; }
  .vt-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
  .vt-h { margin: 0 0 1rem; font-family: var(--display); font-weight: 500; font-variation-settings: "wdth" 106; font-size: 1.15rem; color: #f2f9fc; }
  .vt-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .vt-g { display: flex; align-items: center; gap: .8rem; }
  .vt-g svg { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
  .ring-bg { fill: none; stroke: var(--line); stroke-width: 4; }
  .ring-fg { fill: none; stroke: var(--ice); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease); filter: drop-shadow(0 0 4px rgba(155, 232, 255, .5)); }
  .vt-depth .ring-fg { stroke: var(--warm); filter: drop-shadow(0 0 4px rgba(255, 178, 122, .5)); }
  .vt-g b, .vt-speed b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: #f2f9fc; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .vt-g span, .vt-speed span { font-size: .85rem; color: var(--muted); } .vt-g em, .vt-speed em { font-style: normal; }
  .vt-speed { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
  .vt-spark { width: 100%; height: 40px; }
  .vt-spark .l { fill: none; stroke: var(--ice); stroke-width: 1.5; vector-effect: non-scaling-stroke; } .vt-spark .a { fill: rgba(155, 232, 255, .1); }
  .vt-list { margin: 0; display: grid; }
  .vt-list div { display: grid; grid-template-columns: minmax(9rem, 1fr) 1.3fr; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
  .vt-list dt { color: var(--muted); } .vt-list dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .vt-list .na dd { color: #7f95a1; font-style: italic; }
  .vt-ip { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(155, 232, 255, .03); }
  .vt-ip p { margin: 0; }
  .vt-ipact { display: grid; justify-items: start; gap: .6rem; }
  .vt-ipbtn { font: inherit; cursor: pointer; }
  .vt-ipbtn[disabled] { opacity: .6; cursor: progress; }
  .vt-ipout { color: var(--muted); font-size: .92rem; min-height: 1.4em; }
  .vt-ip b.vt-ip { all: unset; color: var(--ice); font-family: var(--display); font-size: 1.2rem; }
  .vt-close { margin: 2rem 0 0; font-family: var(--display); font-weight: 300; font-variation-settings: "wdth" 106; font-size: clamp(1.2rem, 2vw, 1.5rem); color: #f2f9fc; }


  /* View project links */
  .view-project { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-weight: 500; background-size: 0 1px; }
  .view-project svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
  .view-project:hover { background-size: 100% 1px; }
  .view-project:hover svg { transform: translateX(3px); }
  .sys-body .view-project { margin-top: 0; }

  /* Deep links */
  html { scroll-padding-top: 76px; }
  [data-pid], .anchor { scroll-margin-top: 76px; }
  .copy-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
  .sys-body > .copy-wrap { float: right; margin: .3rem 0 0 1rem; }
  .copy-link { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .82rem; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 99px; padding: .2rem .65rem; cursor: pointer; transition: color .2s, border-color .2s; }
  .copy-link:hover { color: var(--text); border-color: var(--ice); }
  .copy-link svg { width: 14px; height: 14px; }
  .copy-field { font: inherit; font-size: .82rem; color: var(--text); background: #050b10; border: 1px solid var(--line-2); border-radius: 6px; padding: .25rem .5rem; width: min(100%, 290px); }
  .toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; transform: translate(-50%, 12px); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; padding: .6rem 1.1rem; border-radius: 99px; background: rgba(14, 23, 32, .95); border: 1px solid var(--line-2); color: var(--text); font-size: .92rem; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); transition: transform .45s var(--ease); pointer-events: none; }
  .toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s; }
  .toast:empty { display: none; }
  .ping { animation: ping 2.2s var(--ease); border-radius: 14px; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(155, 232, 255, .0); } 15% { box-shadow: 0 0 0 3px rgba(155, 232, 255, .7), 0 0 30px rgba(155, 232, 255, .25); } 100% { box-shadow: 0 0 0 3px rgba(155, 232, 255, 0); } }
  .rm .ping { animation: none; outline: 2px solid var(--ice); outline-offset: 4px; }
  /* ---------- Your visit: instrument-panel widgets ---------- */
  .vt-head-r { display: inline-flex; align-items: center; gap: .7rem; }
  .gears-head { width: 126px; height: 46px; margin: -8px 0; }
  .gear-body { fill: rgba(155, 232, 255, .05); stroke: rgba(155, 232, 255, .55); stroke-width: 1; stroke-linejoin: round; }
  .gear-hole { fill: var(--void); stroke: rgba(155, 232, 255, .55); stroke-width: 1; }
  .gear-spoke { stroke: rgba(155, 232, 255, .35); stroke-width: 1; }
  .vgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: .8rem; }
  .w { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 168px; padding: .95rem 1rem 1rem; border-radius: 14px; border: 1px solid var(--line);
    background: radial-gradient(120% 90% at 0% 0%, rgba(95, 201, 230, .07), transparent 60%), rgba(8, 15, 21, .6); }
  .w.s1 { grid-column: span 1; } .w.s2 { grid-column: span 2; } .w.s3 { grid-column: span 3; }
  .w > * { position: relative; z-index: 1; }
  .w-k { margin: 0 0 .6rem; font-family: var(--display); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 108; }
  .w-v { margin: .3rem 0 0; font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; color: #f2f9fc; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .w-s { margin: .15rem 0 0; font-size: .8125rem; color: var(--muted); }
  .w-s b { color: var(--warm); font-weight: 500; }
  .w-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; }
  .w-viz { display: block; width: 100%; max-width: 116px; height: auto; margin: 0 auto; }
  .w-gear { position: absolute; z-index: 0 !important; right: -16px; bottom: -16px; width: 64px; height: 64px; opacity: .35; }
  .w .ring-bg { fill: none; stroke: var(--line); stroke-width: 5; }
  .w .ring-fg { fill: none; stroke: var(--ice); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 50% 50%; transform-box: fill-box; filter: drop-shadow(0 0 3px rgba(155, 232, 255, .5)); transition: stroke-dashoffset .4s var(--ease); }
  .w .rf-depth { stroke: var(--warm); filter: drop-shadow(0 0 3px rgba(255, 178, 122, .5)); }
  .w .tick { stroke: rgba(155, 232, 255, .4); stroke-width: 1.2; }
  .w .hand { stroke: var(--warm); stroke-width: 2; stroke-linecap: round; }
  .w .hub { fill: var(--ice); }
  .peak-mark { stroke: var(--warm); stroke-width: 2.4; stroke-linecap: round; }
  /* speed gauge */
  .w-speed .gauge { max-width: 240px; }
  .g-track { fill: none; stroke: var(--line); stroke-width: 8; stroke-linecap: round; }
  .g-fill { fill: none; stroke: rgba(155, 232, 255, .55); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .g-needle { stroke: #f2f9fc; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(155, 232, 255, .7)); }
  .g-ghost { stroke: var(--ice); stroke-width: 2; stroke-linecap: round; }
  .g-peak { stroke: var(--warm); stroke-width: 3; stroke-linecap: round; }
  .g-lbl { fill: var(--muted); font-family: var(--body); font-size: 11px; }
  /* sections */
  .seg { fill: none; stroke: rgba(155, 232, 255, .14); stroke-width: 9; stroke-linecap: butt; transition: stroke .5s; }
  .seg.on { stroke: var(--ice); filter: drop-shadow(0 0 3px rgba(155, 232, 255, .5)); }
  /* interactions */
  .minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: auto; }
  .mini { display: grid; justify-items: center; text-align: center; gap: .1rem; }
  .mini svg { width: 100%; max-width: 64px; }
  .mini b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: #f2f9fc; }
  .mini span { font-size: .8125rem; color: var(--muted); line-height: 1.25; }
  .w .m-nodes { stroke: var(--warm); } .w .m-demos { stroke: #86efac; }
  /* activity */
  .kv { margin: 0; display: grid; gap: .1rem; }
  .kv div { display: flex; justify-content: space-between; gap: .6rem; padding: .28rem 0; border-top: 1px solid var(--line); font-size: .875rem; }
  .kv dt { color: var(--muted); } .kv dd { margin: 0; color: #f2f9fc; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
  .idlebar { margin-top: auto; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .idlebar i { display: block; height: 100%; background: var(--warm); transform-origin: 0 50%; transform: scaleX(0); transition: transform .4s; }
  /* network */
  .bars { max-width: 90px; } .bars rect { fill: rgba(155, 232, 255, .14); } .bars rect.on { fill: var(--ice); }
  /* device */
  .dev { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: auto; margin-bottom: auto; }
  .dev-glyph { width: 96px; height: 64px; }
  .dg { fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linejoin: round; } .dg-s { fill: rgba(155, 232, 255, .12); stroke: none; }
  /* screen */
  .scr { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 1rem; align-items: center; }
  .scr-viz { width: 100%; height: auto; }
  .scr-s { fill: rgba(155, 232, 255, .05); stroke: rgba(155, 232, 255, .5); stroke-width: 1.2; }
  .scr-v { fill: rgba(255, 178, 122, .16); stroke: var(--warm); stroke-width: 1.2; }
  /* time zone */
  .tzline { max-width: none; margin-top: auto; }
  .tz-dot { fill: rgba(155, 232, 255, .35); } .tz-dot.z { fill: var(--ice); }
  .tz-mark line { stroke: var(--warm); stroke-width: 1.5; } .tz-mark circle { fill: none; stroke: var(--warm); stroke-width: 2; }
  /* preferences */
  .badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .badges li { display: grid; gap: .1rem; padding: .5rem .65rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(155, 232, 255, .03); }
  .badges span { font-size: .8125rem; color: var(--muted); } .badges b { font-weight: 500; color: #f2f9fc; font-size: 1rem; overflow-wrap: anywhere; }
  /* privacy */
  .lights { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
  .lights li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
  .lights li:first-child { border-top: 0; }
  .lights i { width: 9px; height: 9px; border-radius: 50%; background: #5d6f79; }
  .lights i.ok { background: #86efac; box-shadow: 0 0 6px rgba(134, 239, 172, .7); } .lights i.info { background: var(--ice); }
  .lights span { color: var(--muted); } .lights b { font-weight: 500; color: #f2f9fc; text-align: right; overflow-wrap: anywhere; }
  /* CPU */
  .w-cpu .w-viz { max-width: 96px; }
  .cog-body { fill: rgba(155, 232, 255, .08); stroke: var(--ice); stroke-width: 1.4; }
  .mem { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; align-items: center; margin-top: .5rem; font-size: .8125rem; color: var(--muted); }
  .mem i { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
  .mem b { display: block; height: 100%; background: var(--ice); transform-origin: 0 50%; transform: scaleX(0); }
  .mem em { grid-column: 1 / -1; font-style: normal; color: #f2f9fc; font-size: .9rem; }
  .w .na { color: #8aa1ad; font-style: italic; }
  /* IP */
  .w.vt-ip { display: flex; align-items: stretch; text-align: left; margin: 0; padding: .95rem 1rem 1rem; border-radius: 14px; border: 1px solid var(--line-2); grid-template-columns: none; }
  .w.vt-ip p { margin: 0 0 .7rem; font-size: .95rem; max-width: 56ch; }
  .w.vt-ip .vt-ipact { margin-top: auto; justify-items: start; }
  @media (max-width: 1099px) {
    .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .w.s3 { grid-column: span 2; }
    .w.w-ip { grid-column: span 4; }
  }
  @media (max-width: 759px) {
    .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .w.s3, .w.w-ip { grid-column: span 3; }
    /* Pair every two-column widget with a one-column widget so rows stay full. */
    .w-speed { order: 1; } .w-time { order: 2; } .w-inter { order: 3; } .w-depth { order: 4; } .w-device { order: 5; } .w-net { order: 6; }
    .w-screen { order: 7; } .w-sections { order: 8; } .w-tz { order: 9; } .w-cpu { order: 10; } .w-prefs { order: 11; } .w-activity { order: 12; }
    .w-privacy { order: 13; } .w-ip { order: 14; }
  }
  @media (max-width: 599px) {
    .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .vgrid > .w { order: 0; }
    .w { padding: .8rem .8rem .9rem; min-height: 150px; }
    .w.s2, .w.s3, .w.w-ip { grid-column: span 2; }
    .scr { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
    .dev { grid-template-columns: 72px minmax(0, 1fr); } .dev-glyph { width: 72px; height: 48px; }
    .gears-head { display: none; }
  }
  /* ---------- Responsive ---------- */
  /* The systems explorer becomes an accordion below 1180px so each console gets the full width. */
  @media (max-width: 1180px) {
    .systems { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .sys-h, .sys-body { grid-column: 1; grid-row: auto !important; }
    .sys-body { padding: .6rem .2rem 2rem; }
  }
  @media (max-width: 760px) {
    .viz-live-layer:has(> svg.vz) { overflow-x: auto; overscroll-behavior-x: contain; }
    svg.vz { min-width: 640px; }
  }
  @media (max-width: 960px) {
    .hud nav { display: none; }
    .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; padding-top: 104px; min-height: auto; }
    .hero-instr { width: min(100%, 300px); justify-self: center; }
    h1 { font-size: clamp(3rem, 9.5vw, 6rem); }
    .about-grid { grid-template-columns: 1fr; }
    .feature-sticky { grid-template-columns: 1fr; gap: .5rem; align-content: center; padding: 70px 0 16px; }
    .feature-sticky .holo { width: min(100%, 44vh, 420px); order: -1; }
    .js:not(.rm) .steps li { display: none; border-bottom: 1px solid var(--line); }
    .js:not(.rm) .steps li.on { display: block; }
    .steps { margin: .6rem 0 1rem; }
    .feature-copy h2.title { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: .3rem; }
    .feature-copy .deck, .feature-note { display: none; }
    .skills-list { grid-template-columns: 1fr; }
    .records, .channels { grid-template-columns: 1fr; }
    .record, .record-wide { grid-template-columns: minmax(0, 1fr); justify-items: center; min-width: 0; }
    .records { grid-template-columns: minmax(0, 1fr); }
    .record-text { justify-self: stretch; }
    .arch-body { grid-template-columns: 1fr; justify-items: center; }
    .arch-text { justify-self: stretch; }
    .vt-grid, .vt-ip { grid-template-columns: 1fr; }
    .viz-sk .viz-live-layer { grid-template-columns: 1fr; } .sk-team { grid-template-columns: repeat(3, 1fr); } .sk-team .og-k { grid-column: 1 / -1; }
    .sk-mate { grid-template-columns: 1fr; justify-items: center; text-align: center; } .sk-mate svg { grid-row: auto; }
  }
  @media (max-width: 860px) {
    .arch summary { grid-template-columns: minmax(0, 1fr) auto 28px; }
    .arch summary .al { grid-column: 1 / -1; grid-row: 2; }
  }
  @media (max-width: 639px) {
    .hero { grid-template-columns: 1fr; }
    .hero-instr { order: 2; width: min(78%, 260px); justify-self: center; margin-top: .5rem; }
  }
  @media (max-width: 599px) {
    body { font-size: 1rem; }
    .clock .lbl { display: none; }
    .mhead span:last-child { display: none; }
    .record { padding: 1rem; }
    .vy-panes { grid-template-columns: 1fr; }
    .kg-stage, .kg-tools, .kg-hint { display: none; }
    .kg-chips, .kg-mpanel { display: block; }
    .kg-mpanel { margin-top: .5rem; }
    .vt-gauges { grid-template-columns: 1fr; }
    .vt-list div { grid-template-columns: 1fr; gap: .1rem; }
    .meta-row { grid-template-columns: 1fr 1fr; }
    .more li { grid-template-columns: 1fr auto; }
    .more li .ln { grid-column: 1 / -1; grid-row: 2; }
    .channel { grid-template-columns: 44px 1fr auto; padding: 1.1rem; }
    .channel .ci { width: 44px; height: 44px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .bg-arcs .spin, .bg-arcs .spin-r, .instr .dash, .instr .arc { animation: none; }
    *, *::before, *::after { transition-duration: 0s !important; }
  }

  /* ================= Project pages ================= */
  .work-page main { padding-top: 92px; }
  .p-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); background-size: 0 1px; font-size: .95rem; }
  .p-back svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
  .p-back:hover { color: var(--text); } .p-back:hover svg { transform: translateX(-3px); }
  .p-head { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); max-width: 900px; }
  h1.p-title { margin: 0 0 1rem; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .98; font-weight: 300; font-variation-settings: "wdth" 112; letter-spacing: -.025em; }
  .p-sum { margin: 0 0 1.8rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 46ch; }
  .p-facts { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; margin: 0; }
  .p-facts div { display: grid; gap: .1rem; }
  .p-facts dt { font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 110; }
  .p-facts dd { margin: 0; color: #f2f9fc; }

  .bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1rem; }
  .tile { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--line);
    background: radial-gradient(120% 80% at 0% 0%, rgba(95, 201, 230, .07), transparent 60%), rgba(8, 15, 21, .7); padding: 1.3rem; }
  .t-hero, .t-w { grid-column: span 6; } .t-l { grid-column: span 4; } .t-m { grid-column: span 3; } .t-s, .t-t { grid-column: span 2; }
  .t-hero { padding: clamp(1rem, 2.5vw, 2rem); border-color: var(--line-2); background: radial-gradient(90% 70% at 50% 0%, rgba(95, 201, 230, .1), transparent 70%), rgba(8, 15, 21, .75); }
  .t-hero .viz { margin: 0; }
  .hero-demo { display: grid; place-items: center; padding: 1rem 0; min-height: 240px; }
  .hero-cap { margin: 1rem auto 0; max-width: 70ch; text-align: center; color: var(--muted); font-size: .95rem; }
  .hero-act { text-align: center; margin: .8rem 0 0; }
  .tile-vis { position: relative; display: grid; place-items: center; height: 220px; margin: -.3rem -.3rem 1.1rem; border-radius: 14px; overflow: hidden;
    background: radial-gradient(80% 80% at 50% 40%, rgba(95, 201, 230, .08), transparent 70%), rgba(5, 10, 15, .5); }
  .t-l .tile-vis { height: 300px; } .t-t .tile-vis { height: 340px; } .t-s .tile-vis { height: 300px; }
  .t-l + .t-s .tile-vis { height: 300px; }
  .tile-vis .illu { width: min(100%, 300px); height: auto; max-height: 92%; }
  .t-l .tile-vis .illu { width: min(100%, 380px); }
  .vis-icon .ic-lg { width: 84px; height: 84px; color: var(--ice); filter: drop-shadow(0 0 12px rgba(155, 232, 255, .35)); }
  .vis-demo .demo { pointer-events: none; }
  .vis-holo .holo-tile { width: min(100%, 280px); cursor: default; }
  .t-l .vis-holo .holo-tile { width: min(100%, 330px); }
  .vis-slot { background: none; }
  .slot { display: grid; place-items: center; gap: .6rem; width: calc(100% - 1rem); height: calc(100% - 1rem); border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--muted); text-align: center; padding: 1rem; font-size: .9rem; }
  .slot .ic { width: 36px; height: 36px; color: var(--ice); }
  .tile-body { display: flex; flex-direction: column; flex: 1; }
  .tile-k { margin: 0 0 .35rem; font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); font-variation-settings: "wdth" 110; }
  .tile h3 { margin: 0 0 .4rem; font-family: var(--display); font-weight: 400; font-variation-settings: "wdth" 106; font-size: 1.3rem; line-height: 1.2; color: #f2f9fc; }
  .t-l h3, .t-w h3 { font-size: 1.55rem; }
  .tile p { margin: 0 0 .5rem; color: var(--muted); }
  .tile-note { font-size: .85rem; }
  .tile-chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: .4rem 0 0; padding: 0; }
  .tile-chips li { font-size: .9rem; padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); }
  .tile-links { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
  .tile-links a { display: inline-flex; align-items: center; gap: .55rem; background-size: 0 1px; }
  .tile-links a:hover { background-size: 100% 1px; }
  .tile-links .ic { width: 18px; height: 18px; flex: none; }
  .p-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); }
  .p-navcard { display: grid; gap: .2rem; padding: 1.2rem 1.4rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(8, 15, 21, .6); color: var(--text); transition: border-color .3s, background-color .3s; }
  .p-navcard:hover { border-color: var(--ice); background: rgba(155, 232, 255, .05); color: var(--text); }
  .p-navcard.next { text-align: right; }
  .p-nk { font-size: .82rem; color: var(--muted); } .p-nt { font-family: var(--display); font-size: 1.2rem; color: #f2f9fc; }
  .work-page footer { margin-top: 3rem; }
  @media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .t-hero, .t-w, .t-l { grid-column: span 4; } .t-m, .t-s, .t-t { grid-column: span 2; }
  }
  @media (max-width: 760px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .t-hero, .t-w, .t-l, .t-m { grid-column: span 2; } .t-s, .t-t { grid-column: span 1; }
    .t-s .tile-vis, .t-t .tile-vis { height: 230px; } .t-l .tile-vis { height: 260px; }
    .tile { padding: 1rem; border-radius: 18px; }
  }
  @media (max-width: 520px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
    .t-hero, .t-w, .t-l, .t-m, .t-s, .t-t { grid-column: span 1; }
    .p-nav { grid-template-columns: 1fr; } .p-navcard.next { text-align: left; }
  }
  .t-hero .ph-game { width: 620px; height: 336px; }
  .t-hero .ph-game .ab-card { transform: perspective(200px) rotateX(48deg) scale(1.4); bottom: 30px; }
  .t-hero .ph-game .ab-obj { bottom: 96px; transform-origin: 50% 100%; }
  .demo-abc3d.fixed .ab-hint { display: none; }

  /* ================= v4: cards, decks, modal ================= */
  .card-btn { all: unset; cursor: pointer; display: inline; color: inherit; }
  .card-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; }
  .card-btn:focus-visible { outline: none; }
  .scard:focus-within, .dcard:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; }
  .card-prev { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; pointer-events: none;
    background: radial-gradient(90% 80% at 50% 30%, rgba(95, 201, 230, .09), transparent 70%), #061017; }
  .prev-inner { display: inline-block; flex: none; }
  .card-prev .viz { width: 760px; margin: 0; border: 0; background: none; }
  .card-prev .viz-bar, .card-prev .viz-ctl { display: none; }
  .card-prev svg.vz { min-width: 0; }
  .card-prev .viz-live-layer { overflow: visible !important; }
  .live-badge { position: absolute; left: .8rem; top: .7rem; display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .6rem; border-radius: 99px; background: rgba(6, 10, 15, .7); border: 1px solid var(--line-2); font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); font-variation-settings: "wdth" 110; }
  .live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
  .card-line { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
  .card-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .9rem 0 0; padding: 0; }
  .card-tags li { font-size: .82rem; padding: .18rem .65rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text); }

  /* Cards: one design for Systems and the archive */
  .pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  @media (min-width: 1180px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 700px) { .pcards { grid-template-columns: minmax(0, 1fr); } }
  .pcard { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(8, 15, 21, .72);
    transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
  .pcard[hidden] { display: none; }
  .pcard:hover { transform: translateY(-3px); border-color: rgba(155, 232, 255, .45); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(155, 232, 255, .08); }
  .pcard .card-prev { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
  .pcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.3rem 1.25rem; }
  .pcard h3 { margin: 0 0 .35rem; font-family: var(--display); font-weight: 400; font-variation-settings: "wdth" 108; font-size: 1.4rem; line-height: 1.2; color: #f2f9fc; }
  .pc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: auto; padding-top: .9rem; }
  .pc-year { font-size: .85rem; color: var(--warm); font-variant-numeric: tabular-nums; }
  .pc-foot .card-tags { margin: 0; }
  .astage { width: 500px; height: 312px; display: flex; align-items: center; justify-content: center; }
  .astage .demo { pointer-events: none; }
  /* Re-tone light mockups to the dark palette (hue-preserving inversion). */
  .dk .bwin, .dk .ph-scr, .dk .cr { filter: invert(.9) hue-rotate(180deg) saturate(.85) brightness(1.05); }
  .fc-n { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

  /* Modal */
  .modal { position: fixed; inset: 0; z-index: 95; overflow-y: auto; overscroll-behavior: contain; padding: 4vh 2rem 6vh; }
  .modal[hidden] { display: none; }
  .modal-bg { position: fixed; inset: 0; background: rgba(2, 5, 8, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s var(--ease); }
  .modal.open .modal-bg { opacity: 1; }
  .modal-sheet { position: relative; max-width: 1180px; margin: 0 auto; border-radius: 26px; border: 1px solid var(--line-2);
    background: radial-gradient(80% 40% at 50% 0%, rgba(95, 201, 230, .08), transparent 70%), #070d13; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
    padding: 0 clamp(1rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem); opacity: 0; transform: scale(.94); }
  .modal.open .modal-sheet { opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .34s var(--ease); }
  .modal.closing .modal-sheet { opacity: 0; transform: scale(.96); transition: opacity .22s ease, transform .24s ease; }
  .modal.closing .modal-bg { opacity: 0; }
  .rm .modal-sheet, .rm .modal-bg { transition: none !important; }
  .rm .modal .modal-sheet { opacity: 1; transform: none; }
  .modal-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 1rem 0 0; margin-bottom: -2.6rem; pointer-events: none; }
  .modal-close { pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(8, 14, 20, .85); color: var(--text); display: grid; place-items: center; cursor: pointer;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .25s, background-color .25s; }
  .modal-close:hover { border-color: var(--ice); background: rgba(155, 232, 255, .1); }
  .modal-close svg { width: 18px; height: 18px; }
  .modal-body.swap { animation: bodyIn .45s var(--ease); }
  .m-head { padding: 2.2rem 3.5rem 1.8rem 0; max-width: 880px; }
  .m-title { margin: 0 0 .8rem; font-family: var(--display); font-weight: 300; font-variation-settings: "wdth" 112; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; color: #f2f9fc; outline: none; }
  .m-head .p-sum { margin-bottom: 1.2rem; }
  .m-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
  .m-link { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .9rem; color: var(--text); background: rgba(155, 232, 255, .05); border: 1px solid var(--line-2); border-radius: 99px; padding: .35rem .9rem; cursor: pointer; text-decoration: none; transition: border-color .25s, background-color .25s; }
  .m-link:hover { border-color: var(--ice); background: rgba(155, 232, 255, .1); color: #fff; }
  .m-link .ic { width: 16px; height: 16px; flex: none; }
  .m-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
  .m-nav .p-navcard { font: inherit; text-align: left; cursor: pointer; }
  .m-nav .p-navcard.next { text-align: right; }
  html.modal-open { overflow: hidden; }
  html.modal-open body { padding-right: var(--sbw, 0); }
  .kg-open { margin: 0 0 .8rem; font: inherit; font-size: .9rem; color: var(--void); background: var(--ice); border: 0; border-radius: 99px; padding: .35rem .9rem; cursor: pointer; }
  .toast { z-index: 120; }
  .ns-list { color: var(--muted); }
  @media (max-width: 599px) {
    .modal { padding: 0; }
    .modal-sheet { min-height: 100%; border-radius: 0; border: 0; }
    .m-head { padding-right: 3rem; }
    .m-nav { grid-template-columns: 1fr; } .m-nav .p-navcard.next { text-align: left; }
  }

  /* ================= v5: matte glass headers ================= */
  .glass { position: relative; isolation: isolate; border: 1px solid rgba(155, 232, 255, .12); border-radius: 18px;
    background: radial-gradient(70% 160% at 0% 0%, rgba(155, 232, 255, .13), transparent 62%), radial-gradient(55% 140% at 100% 100%, rgba(255, 178, 122, .08), transparent 60%),
      linear-gradient(180deg, rgba(155, 232, 255, .07), rgba(155, 232, 255, .02)), rgba(12, 21, 29, .5);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 30px -22px rgba(0, 0, 0, .8); }
  .glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: #0d1720; } }
  .sec-head { padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.2rem); margin-bottom: 1.6rem; }
  .sec-head .title { margin-bottom: .6rem; }
  .sec-head .deck { margin: 0; }
  .sec-head .eyebrow { margin-bottom: .8rem; }
  .mhead.glass { padding: .75rem 1rem; margin-bottom: 1.4rem; border-radius: 12px; }

  /* ================= v5: flatter modal ================= */
  .modal-top.glass { margin: 0 calc(-1 * clamp(1rem, 3vw, 2.4rem)); padding: .7rem clamp(1rem, 3vw, 2.4rem); border-radius: 26px 26px 0 0; border-width: 0 0 1px;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; pointer-events: auto; }
  .mt-name { font-family: var(--display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 110; }
  .modal-top.glass .modal-close { width: 36px; height: 36px; }
  .m-head { padding: 1.6rem 0 1.2rem; }
  .p-facts { gap: .4rem 2rem; }
  .m-acts { gap: .2rem 1.4rem; margin-bottom: 1.2rem; }
  .m-link, .m-link:hover { border: 0; background: none; padding: .2rem 0; border-radius: 0; color: var(--ice); }
  .m-link:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
  .m-hero { margin: .4rem 0 2.2rem; }
  .m-hero .viz { margin: 0; overflow: visible; }
  .m-hero .viz-stage { overflow: hidden; border-radius: 0 0 14px 14px; }
  .m-hero .viz-ctl ~ .info-pop, .m-hero .viz-stage:not(:last-child) { border-radius: 0; }
  .m-hero .hero-demo { padding: 1.4rem 0; min-height: 260px; }
  .m-hero .viz-note, .modal .ab-hint { display: none !important; }
  .info-btn { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
  .info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--ice); background: rgba(155, 232, 255, .1); }
  .info-btn svg { width: 18px; height: 18px; }
  .viz-bar .viz-title { flex: 1; }
  .info-pop { position: absolute; z-index: 10; right: .6rem; top: 2.6rem; width: min(340px, calc(100% - 1.2rem)); padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line-2);
    background: rgba(10, 18, 26, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9);
    font-size: .9rem; line-height: 1.5; color: var(--text); text-transform: none; letter-spacing: 0; }
  .info-pop p { margin: 0 0 .45rem; } .info-pop p:last-child { margin: 0; }
  .modal .bento { gap: 2.2rem 2.4rem; }
  .modal .tile { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 1.2rem 0 0; overflow: visible; }
  .modal .tile-vis { height: auto; min-height: 0; margin: 0 0 .9rem; background: none; border-radius: 0; place-items: start; overflow: visible; }
  .modal .tile-vis .illu { width: min(100%, 220px); max-height: 170px; }
  .modal .vis-icon .ic-lg { width: 34px; height: 34px; filter: none; }
  .modal .bento .tile .tile-vis { height: auto; } /* beat the old .t-l + .t-s fixed height that left a gap under icons */
  .modal .bento { align-items: start; }
  .modal .vis-holo .holo-tile { width: min(100%, 220px); }
  .modal .vis-slot .slot { width: auto; height: auto; border: 0; padding: 0; display: flex; gap: .6rem; text-align: left; place-items: center start; }
  .modal .tile-chips { gap: .3rem 1.1rem; }
  .modal .tile-chips li { border: 0; padding: 0; color: var(--text); font-size: .95rem; }
  .m-nav { border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .m-nav .p-navcard { border: 0; background: none; padding: .4rem 0; border-radius: 0; }
  .m-nav .p-navcard:hover { background: none; }
  .m-nav .p-navcard:hover .p-nt { color: var(--ice); }
  @media (max-width: 599px) { .modal-top.glass { border-radius: 0; } }

  /* OmniGen v5: brief strip + three variant cards generated in parallel */
  .viz-og .viz-live-layer { padding: 1rem; transition: opacity .4s; container-type: inline-size; }
  .og-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1.2rem; padding: 0 .1rem .8rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
  .og-top.on { opacity: 1; }
  .og-brief { margin: 0; display: flex; gap: .6rem; align-items: baseline; min-width: 0; color: #f2f9fc; font-size: .98rem; }
  .og-k { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 110; white-space: nowrap; }
  .og-status { margin: 0; display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--muted); }
  .og-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 8px var(--warm); }
  .og-ready .og-dot { background: #86efac; box-shadow: 0 0 8px #86efac; }
  .og-ready .og-status { color: #d6f5e0; }
  .og-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .og-ad { display: flex; flex-direction: column; gap: .45rem; min-width: 0; padding: .7rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(155, 232, 255, .03);
    opacity: .35; transition: opacity .4s, border-color .4s; }
  .og-ad.on { opacity: 1; }
  .og-ad.done { border-color: rgba(134, 239, 172, .4); }
  .og-vn { margin: 0; display: flex; justify-content: space-between; font-family: var(--display); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 110; }
  .og-part { margin: 0; display: grid; grid-template-columns: 14px minmax(0, 1fr) 12px; gap: .4rem; align-items: start; }
  .og-head span { font-family: var(--display); font-size: .92rem; line-height: 1.25; color: #fff; min-height: 2.5em; }
  .og-body span { font-size: .8rem; line-height: 1.35; color: var(--muted); min-height: 2.7em; }
  .og-ic { display: inline-flex; width: 14px; height: 14px; color: var(--muted); margin-top: .15em; }
  .og-ic svg { width: 100%; height: 100%; }
  .og-ok { font-size: .72rem; font-weight: 700; font-style: normal; color: #86efac; opacity: 0; transition: opacity .3s; }
  .done > .og-ok, .og-ad.done .og-all { opacity: 1; }
  .og-img { position: relative; overflow: hidden; height: 64px; border-radius: 6px; background: linear-gradient(160deg, #3b5f72, #13232d); opacity: 0; transform: scale(.94); transition: opacity .5s, transform .7s var(--ease); }
  .og-img.on { opacity: 1; transform: none; }
  .og-img span { position: absolute; inset: auto 0 0 0; height: 55%; background: rgba(155, 232, 255, .35); clip-path: polygon(0 60%, 30% 10%, 55% 55%, 75% 25%, 100% 70%, 100% 100%, 0 100%); }
  .og-img .og-ok { position: absolute; right: 5px; top: 3px; }
  .og-vid { display: grid; grid-template-columns: 14px minmax(0, 1fr) 12px; gap: .4rem; align-items: center; opacity: .3; transition: opacity .4s; }
  .og-vid.on { opacity: 1; }
  .og-vid .og-ic { margin: 0; color: var(--ice); }
  .og-tl { display: block; height: 4px; border-radius: 4px; background: rgba(155, 232, 255, .14); overflow: hidden; }
  .og-tl b { display: block; height: 100%; background: var(--ice); transform-origin: 0 50%; transform: scaleX(0); }
  /* Narrow: keep three in a row but simplify; stack only when very narrow */
  @container (max-width: 560px) { .og-body { display: none; } .og-img { height: 44px; } .og-head span { font-size: .82rem; } .og-ad { padding: .55rem; } }

  .card-prev .og-body { display: none; }
  .og-ad:nth-child(2) .og-img { background: linear-gradient(200deg, #44707f, #13232d); }
  .og-ad:nth-child(2) .og-img span { height: 70%; clip-path: polygon(0 40%, 25% 70%, 50% 20%, 80% 60%, 100% 30%, 100% 100%, 0 100%); }
  .og-ad:nth-child(3) .og-img span { clip-path: circle(30% at 70% 80%); height: 100%; background: rgba(255, 178, 122, .45); }
  @container (max-width: 340px) {
    .og-set { gap: .4rem; } .og-ad { padding: .45rem; gap: .35rem; }
    .og-part { grid-template-columns: minmax(0, 1fr); } .og-part .og-ic, .og-part .og-ok { display: none; }
    .og-head span { font-size: .74rem; min-height: 3.75em; }
    .og-img { height: 34px; } .og-vid { grid-template-columns: 10px minmax(0, 1fr); } .og-vid .og-ok { display: none; }
    .og-vn { font-size: .62rem; } .og-brief { font-size: .88rem; }
  }
  @container (max-width: 240px) { .og-set { grid-template-columns: 1fr; } }
  @media (max-width: 599px) { .viz-bar .viz-title { display: none; } }

  /* ================= v5.1: tinted frosted glass on card descriptions ================= */
  .pcard { --tint: 155, 232, 255; }
  .pcard .card-prev { border-bottom-color: rgba(var(--tint), .22); }
  .pcard-body { position: relative; isolation: isolate;
    background: radial-gradient(110% 90% at 0% 0%, rgba(var(--tint), .16), transparent 60%), linear-gradient(180deg, rgba(var(--tint), .08), rgba(var(--tint), .02)), rgba(12, 21, 29, .45);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
  .pcard-body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .pcard .card-tags li { border-color: rgba(var(--tint), .28); background: rgba(var(--tint), .06); }
  .pcard:hover { border-color: rgba(var(--tint), .5); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9), 0 0 40px -18px rgba(var(--tint), .45); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pcard-body { background: radial-gradient(110% 90% at 0% 0%, rgba(var(--tint), .16), transparent 60%), #0d1720; } }

  /* v5.1: section names as frosted pills instead of boxed headers */
  .sec-head { padding: 0; }
  .glass-pill { display: inline-flex; width: auto; align-items: center; gap: .55rem; padding: .4rem .95rem; border-radius: 99px; }
  .sec-head .eyebrow.glass-pill { margin-bottom: 1.1rem; }
  .mhead .glass-pill { font: inherit; }

  /* ================= v5.1: Layers demo with a selectable layers panel ================= */
  .viz-lyr .viz-live-layer { display: block; padding: .8rem 1rem 1rem; }
  .lyr-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(170px, 1fr); gap: 1.2rem; align-items: center; }
  .lyr-left { display: grid; justify-items: center; }
  .viz-lyr .hl { transition: opacity .45s, filter .45s, border-color .3s; transform: translateZ(calc(var(--i) * var(--sep) * 74px + var(--lift, 0px))); }
  .viz-lyr .hl.is-off { opacity: 0; --lift: 60px; }
  .viz-lyr .hl.is-dim { opacity: .22; filter: saturate(.4); }
  .viz-lyr .hl.is-sel { --lift: 26px; border-color: var(--warm); box-shadow: 0 0 26px rgba(255, 178, 122, .35); }
  .viz-lyr .hl.is-sel .htag { color: var(--warm); border-color: rgba(255, 178, 122, .5); opacity: 1; }
  .viz-lyr .hl .htag { transition: opacity .3s; }
  .lyr-panel { display: grid; gap: .8rem; align-self: stretch; align-content: center; }
  .lyr-k { margin: 0; font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 110; }
  .lyr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
  .lyr-row { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .6rem; padding: .3rem .45rem; border-radius: 8px; border: 1px solid transparent;
    background: none; color: var(--text); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; transition: background-color .25s, border-color .25s, opacity .3s; }
  .lyr-row:hover { background: rgba(155, 232, 255, .06); }
  .lyr-row[aria-pressed="true"] { border-color: rgba(255, 178, 122, .55); background: rgba(255, 178, 122, .08); }
  .lyr-row.is-off { opacity: .4; }
  .lyr-st { font-size: .72rem; color: var(--muted); }
  .lyr-thumb, .lyr-art { position: relative; display: block; overflow: hidden; border-radius: 5px; border: 1px solid var(--line-2);
    background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0 25%, transparent 0 50%) 0 0 / 10px 10px, #0b141b; }
  .lyr-thumb { width: 34px; height: 34px; }
  .lyr-thumb img, .lyr-art img, .lyr-comp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .lyr-type { position: absolute; left: 8%; bottom: 8%; font-family: var(--display); font-weight: 600; color: #fff; text-shadow: 0 0 10px rgba(155, 232, 255, .7); font-size: 1.1rem; }
  .lyr-thumb .lyr-type { font-size: .6rem; left: 3px; bottom: 3px; }
  .lyr-art { width: 100%; aspect-ratio: 1; max-width: 190px; }
  .lyr-comp { position: absolute; inset: 0; }
  .lyr-prev { display: grid; gap: .45rem; }
  @media (max-width: 640px) {
    .lyr-wrap { grid-template-columns: 1fr; }
    .lyr-left { padding-top: 2.2rem; }
    .lyr-panel { grid-template-columns: 1fr 110px; align-items: start; }
    .lyr-panel > .lyr-k { grid-column: 1 / -1; }
  }

  /* v5.1: Voyager tool rail + history/report */
  .vy-rail { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .8rem; }
  .vy-tool { font-size: .78rem; padding: .2rem .65rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
  .vy-tool.on { color: #04131a; background: var(--ice); border-color: var(--ice); }
  .vy-hist { margin-left: auto; display: inline-flex; gap: .6rem; align-items: center; font-size: .78rem; opacity: .25; transition: opacity .4s; }
  .vy-hist.on { opacity: 1; }
  .vy-saved { font-weight: 500; color: var(--ice); }
  .vy-rep { color: var(--warm); border-bottom: 1px solid rgba(255, 178, 122, .5); }

  /* v5.1: archived site embedded in the modal */
  .site-frame .viz-bar { gap: .8rem; }
  .site-open { margin-left: auto; font-size: .72rem; letter-spacing: .08em; color: var(--ice); text-decoration: none; border-bottom: 1px solid rgba(155, 232, 255, .4); }
  .site-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
  .site-view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; }

  /* v5.1: "Your visit" as a hidden, compact easter-egg drawer */
  button.clock { font: inherit; font-family: var(--display); font-size: .9rem; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 99px; padding: .3rem .7rem; cursor: pointer; transition: border-color .3s, color .3s; }
  button.clock:hover, button.clock[aria-expanded="true"] { color: var(--text); border-color: var(--line-2); }
  button.clock:hover i { animation: egg-pulse 1.2s ease-in-out infinite; }
  @keyframes egg-pulse { 50% { box-shadow: 0 0 18px var(--ice); transform: scale(1.35); } }
  .egg-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .55; border-bottom: 1px dotted currentColor; }
  .egg-link:hover { opacity: 1; color: var(--ice); }
  .visit-drawer { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); overflow-y: auto; overscroll-behavior: contain;
    padding: 1.2rem 1.3rem 1.6rem; border-left: 1px solid rgba(155, 232, 255, .18);
    background: radial-gradient(80% 50% at 100% 0%, rgba(155, 232, 255, .1), transparent 60%), rgba(6, 12, 18, .82);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .9); transform: translateX(0); transition: transform .45s var(--ease), opacity .3s; }
  .visit-drawer[hidden] { display: block; transform: translateX(104%); opacity: 0; pointer-events: none; visibility: hidden; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .visit-drawer { background: #070d13; } }
  .vd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
  .vd-k { margin: 0 0 .3rem; font-size: .8rem; color: var(--warm); }
  .vd-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: #f2f9fc; }
  .visit-drawer .module.visit { padding: 0; border: 0; background: none; box-shadow: none; }
  .visit-drawer .mhead { display: none; }
  .visit-drawer .vt-promise { margin-bottom: 1rem; font-size: .85rem; padding: .55rem .8rem; }
  .visit-drawer .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .visit-drawer .w { min-height: 0; padding: .75rem .85rem; }
  .visit-drawer .w.s1, .visit-drawer .w.s2 { grid-column: span 1; } .visit-drawer .w.s3 { grid-column: 1 / -1; }
  .visit-drawer .w-speed, .visit-drawer .w-cpu, .visit-drawer .w-activity, .visit-drawer .w-net, .visit-drawer .w-prefs { display: none; }
  .visit-drawer .vt-close { font-size: 1rem; margin-top: 1.2rem; }
  @media (prefers-reduced-motion: reduce) { .visit-drawer { transition: none; } button.clock:hover i { animation: none; } }
  .visit-drawer .w-viz:not(.tzline) { width: 72px; height: 72px; margin: .1rem 0 .4rem; }
  .visit-drawer .w.w-device, .visit-drawer .w.w-screen, .visit-drawer .w.w-tz { grid-column: 1 / -1; }
  .visit-drawer .mini svg { width: 44px; height: 44px; }
  .visit-drawer .w-gear { opacity: .5; }
  @media (max-width: 480px) { .visit-drawer .w.w-inter, .visit-drawer .w.w-sections { grid-column: 1 / -1; } }
  .vd-count { color: var(--muted); }

  /* v5.3: frosted-glass core for the hero dial (sits under the SVG; r=118 of a 440 viewBox) */
  .instr-wrap { position: relative; }
  .instr-wrap .instr { position: relative; z-index: 1; }
  .instr-glass { position: absolute; z-index: 0; left: 23.18%; top: 23.18%; width: 53.64%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(120% 120% at 30% 20%, rgba(155, 232, 255, .16), rgba(155, 232, 255, .04) 55%, rgba(155, 232, 255, .02)), rgba(10, 20, 28, .38);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 40px rgba(155, 232, 255, .08), 0 18px 50px -20px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(95, 201, 230, .25); }
  .instr-glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .09; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .instr-glass { background: radial-gradient(120% 120% at 30% 20%, rgba(155, 232, 255, .14), rgba(13, 23, 32, .92) 60%); } }
