/* 00-tokens.css */
/* mateuszsury.eu: "Redshift". Red is light here: glow, emission, embers on black. */

@property --r { syntax: '<length-percentage>'; inherits: false; initial-value: 0%; }
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --fx { syntax: '<length-percentage>'; inherits: false; initial-value: 50%; }

:root {
  --void: #000;
  --s1: #0b0b0d;
  --s2: #121215;
  --s3: #18181c;
  --line: #1f1f23;
  --line-2: #2c2c31;
  --text: #f5f5f4;
  --muted: #a8a8ad;
  --dim: #6b6b72;

  --red: #ff1e3c;
  --ember: #ff5a36;
  --blood: #8a0018;
  --glow: rgba(255, 30, 60, .45);
  --glow-soft: rgba(255, 30, 60, .14);

  /* Status keeps its own colours because red is the brand. */
  --up: #2ee08a;
  --warn: #ffb020;

  --display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr: 68px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --glass: rgba(14, 14, 17, .66);
  --glass-line: rgba(255, 255, 255, .08);
}

/* 10-base.css */
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); background: var(--void); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 30, 60, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

main, .ftr { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1em; height: 1em; flex: none; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--void); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Star field behind the whole page (WebGL, see fx/field.js). */
.starfield { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; display: block; }

/* Scroll progress */
.progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--blood), var(--red) 60%, var(--ember));
  box-shadow: 0 0 12px var(--glow);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* Cursor glow on fine pointers */
.has-pointer body::after {
  content: ''; position: fixed; z-index: 2; pointer-events: none;
  left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: radial-gradient(circle, rgba(255, 30, 60, .09), rgba(255, 30, 60, .03) 40%, transparent 70%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
  mix-blend-mode: screen;
}

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78), rgba(0, 0, 0, .5));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.hdr.scrolled { border-bottom-color: rgba(255, 30, 60, .16); box-shadow: 0 10px 40px -20px rgba(255, 30, 60, .35); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.125rem/1 var(--display); letter-spacing: .02em; text-decoration: none; color: var(--text);
}
.brand-dot { color: var(--red); }
.brand-mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--red) 45%, var(--blood));
  box-shadow: 0 0 14px var(--red), 0 0 30px var(--glow);
}
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  position: relative; display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--ember)); box-shadow: 0 0 10px var(--glow);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--expo);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--text); }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.lang {
  font: 500 .8125rem/1 var(--mono); color: var(--muted); text-decoration: none;
  padding: 10px 10px; border: 1px solid var(--line-2); border-radius: 8px; transition: color .2s, border-color .2s;
}
.lang:hover { color: var(--text); border-color: var(--red); }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: none; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--red); box-shadow: 0 0 16px -4px var(--glow); }
.icon-btn .i { width: 16px; height: 16px; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn {
    display: inline-block; background: none; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; font-size: .875rem; font-weight: 500;
  }
  .hdr-tools { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--hdr) 0 auto; margin: 0;
    background: #000; border-bottom: 1px solid rgba(255, 30, 60, .2);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 13px 4px; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a::after { left: 0; right: auto; width: 3px; top: 10px; bottom: 10px; height: auto; transform: scaleY(0); }
  .nav a[aria-current="true"]::after { transform: scaleY(1); }
  .nav a[aria-current="true"] { padding-left: 14px; }
  .nav li:last-child a { border-bottom: 0; }
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform .35s var(--expo), box-shadow .3s, background-color .2s, border-color .2s, color .2s;
}
.btn > span { position: relative; z-index: 1; }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--blood) -10%, var(--red) 45%, var(--ember) 110%);
  box-shadow: 0 0 0 1px rgba(255, 90, 54, .35) inset, 0 10px 36px -10px var(--glow);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--expo);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 140, 110, .5) inset, 0 14px 50px -8px rgba(255, 30, 60, .7); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .02); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--red); box-shadow: 0 0 30px -10px var(--glow); }
.ripple {
  position: absolute; z-index: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); pointer-events: none; animation: ripple .7s var(--expo) forwards;
}
@keyframes ripple { to { transform: scale(18); opacity: 0; } }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(255, 30, 60, .5); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link:hover { color: #fff; border-bottom-color: var(--red); }
.link .i { width: .85em; height: .85em; color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li, .chips button {
  font: 500 .75rem/1 var(--mono); color: var(--muted);
  padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .015);
}
.chips button { cursor: pointer; transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s; }
.chips button:hover, .chips button.on {
  color: #fff; border-color: var(--red); background: rgba(255, 30, 60, .12); box-shadow: 0 0 18px -6px var(--glow);
}

.hint { font-size: .875rem; color: var(--dim); }

/* Card border that glows where the cursor is (fx/cursor.js sets --gx/--gy). */
[data-glow] { position: relative; }
[data-glow]::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 60, 80, .85), rgba(255, 30, 60, .15) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
[data-glow]:hover::before, [data-glow]:focus-within::before { opacity: 1; }

/* ---------- Sections & reveal ---------- */
.sec { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2, .about h2, .contact h2 {
  font: 700 clamp(1.75rem, 3.3vw, 2.75rem)/1.1 var(--display); letter-spacing: -.02em;
}
.sec-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.sec-head h2::before {
  content: ''; display: block; width: 44px; height: 3px; margin-bottom: 22px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--ember)); box-shadow: 0 0 18px var(--glow);
}

.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px);
  transition: opacity .9s var(--expo), transform .9s var(--expo), filter .9s var(--expo);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .has-pointer body::after { display: none; }
}

/* Failsafes: if scripts fail, never leave content hidden. */
@keyframes failsafe-show { to { opacity: 1; transform: none; filter: none; } }
.js:not(.run) [data-reveal] { animation: failsafe-show .01s 3s forwards; }
.js:not(.ready) .hero-copy > *, .js:not(.ready) .agent { animation: failsafe-show .01s 4.6s forwards; }

/* The accent line above each section title draws in with the reveal. */
.sec-head h2::before { transform-origin: left center; transition: transform 1.1s var(--expo) .15s; }
.js .sec-head:not(.in) h2::before { transform: scaleX(0); }

/* 20-hero.css */
/* ---------- Boot intro (first visit per session, see gate.js and fx/boot.js) ---------- */
.boot { display: none; }
.intro .boot {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 50%, #120004 0%, #000 60%);
  /* Failsafe: never keep the page covered if the script does not run. */
  animation: boot-failsafe .01s linear 4.5s forwards;
}
.intro .boot.out {
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1.5%));
  mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1.5%));
  animation: boot-open .75s var(--expo) forwards;
}
@keyframes boot-open { from { --r: 0%; } to { --r: 150%; } }
@keyframes boot-failsafe { to { visibility: hidden; opacity: 0; } }
.boot::before {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: 0 0 24px var(--red);
  animation: boot-scan 1.4s linear infinite;
}
@keyframes boot-scan { from { transform: translateY(0); } to { transform: translateY(100vh); } }
.boot-in { width: min(560px, calc(100% - 48px)); }
.boot-log {
  margin: 0; min-height: 8.4em; font: 400 .9375rem/1.75 var(--mono); color: var(--muted); white-space: pre-wrap;
}
.boot-log b { color: #fff; font-weight: 500; }
.boot-log .ok { color: var(--up); }
.boot-log .r { color: var(--red); }
.boot-bar { margin-top: 18px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.boot-bar i {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--b, 0));
  background: linear-gradient(90deg, var(--red), var(--ember)); box-shadow: 0 0 12px var(--red);
  transition: transform .25s var(--ease);
}
.boot-skip { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font: 400 .8125rem/1 var(--mono); color: var(--dim); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow-x: clip;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--hdr) + 40px); padding-bottom: 96px;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .65));
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero-role {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8125rem/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); margin-bottom: 22px;
}
.hero-role::before { content: ''; width: 28px; height: 1px; background: var(--red); box-shadow: 0 0 8px var(--red); }

.hero-name {
  position: relative; font: 800 clamp(2.75rem, 6vw, 6.25rem)/.92 var(--display); letter-spacing: -.035em;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--expo);
}
.hero-name .nl {
  position: relative; display: block; width: fit-content; padding-bottom: .06em;
  background: linear-gradient(100deg, #fff 0%, #fff 28%, #ffd2c6 38%, var(--ember) 48%, var(--red) 58%, #fff 74%, #fff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: name-shift 9s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(255, 30, 60, .28));
}
.hero-name .nl + .nl { animation-delay: -1.2s; }
@keyframes name-shift { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
/* Glitch: two offset copies flash for a moment (fx/hero.js toggles .glitch). */
.hero-name .nl::before, .hero-name .nl::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-text-fill-color: currentColor; background: none;
}
.hero-name .nl::before { color: var(--red); }
.hero-name .nl::after { color: #fff; }
.hero-name.glitch .nl::before { opacity: .9; animation: glitch-a .32s steps(2) both; }
.hero-name.glitch .nl::after { opacity: .7; animation: glitch-b .32s steps(2) both; }
@keyframes glitch-a {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-6px, 0); }
  33% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 0); }
  66% { clip-path: inset(30% 0 45% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
}
@keyframes glitch-b {
  0% { clip-path: inset(65% 0 10% 0); transform: translate(5px, 0); }
  50% { clip-path: inset(15% 0 60% 0); transform: translate(-5px, 0); }
  100% { clip-path: inset(40% 0 35% 0); transform: translate(3px, 0); }
}

.hero-typed {
  margin-top: 26px; min-height: 1.6em; display: flex; align-items: center; gap: 10px;
  font: 500 clamp(.9375rem, 1.3vw, 1.0625rem)/1.4 var(--mono); color: #fff;
}
.typed-p { color: var(--red); text-shadow: 0 0 10px var(--red); }
.caret { width: .55em; height: 1.15em; background: var(--red); box-shadow: 0 0 10px var(--red); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero-lead { margin-top: 22px; max-width: 560px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: #c9c9cd; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.live {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 8px 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0, 0, 0, .4);
  color: var(--muted); font-size: .875rem; text-decoration: none; transition: color .2s, border-color .2s;
}
.live:hover { color: var(--text); border-color: rgba(46, 224, 138, .5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex: none; }
.live.down .dot { background: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: ping 2.4s var(--ease) infinite; }
  .live.down .dot { animation-name: ping-warn; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 224, 138, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(46, 224, 138, 0); } }
@keyframes ping-warn { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 176, 32, 0); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 400 .6875rem/1 var(--mono); letter-spacing: .12em; color: var(--dim); text-decoration: none;
}
.mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--red); box-shadow: 0 0 8px var(--red); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: .2; } }

/* Hero entrance (after the intro, or right away) */
.js .hero-copy > *, .js .agent { opacity: 0; transform: translate3d(0, 24px, 0); }
.ready .hero-copy > *, .ready .agent { opacity: 1; transform: none; transition: opacity 1s var(--expo), transform 1s var(--expo); }
.ready .hero-copy > :nth-child(2) { transition-delay: .08s; }
.ready .hero-copy > :nth-child(3) { transition-delay: .2s; }
.ready .hero-copy > :nth-child(4) { transition-delay: .28s; }
.ready .hero-copy > :nth-child(5) { transition-delay: .36s; }
.ready .hero-copy > :nth-child(6) { transition-delay: .44s; }
.ready .agent { transition-delay: .3s; transition-duration: 1.2s; }
.ready .hero-name { transition: transform .6s var(--expo), opacity 1s var(--expo); }

@media (max-width: 560px) { .hero-name { font-size: 14vw; } }
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .scroll-cue { display: none; }
}
.ready .hero-copy > .hero-name { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (min-width: 561px) and (max-width: 1080px) { .hero-name { font-size: 9vw; } }

/* 30-agent.css */
/* ---------- AI agent console in the hero (fx/console/*.js) ---------- */
.agent { position: relative; min-width: 0; }
.agent::before {
  /* red bloom behind the window */
  content: ''; position: absolute; inset: 8% -6% -4% 6%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 60% 50%, rgba(255, 30, 60, .32), transparent 70%);
  filter: blur(30px);
}
.agent-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.agent-tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.agent-tabs::-webkit-scrollbar { display: none; }
.agent-tabs button {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 .8125rem/1 var(--mono); color: var(--dim); cursor: pointer;
  padding: 11px 14px 10px; background: transparent;
  border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0;
  transition: color .2s, background-color .2s;
}
.agent-tabs button:hover { color: var(--text); }
.agent-tabs [aria-selected="true"] { color: var(--text); background: #0a0a0c; border-color: var(--line-2); position: relative; }
.agent-tabs [aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #0a0a0c; }
.tab-ico { font-weight: 700; }
[data-tool="claude"] .tab-ico { color: #d97757; }
[data-tool="codex"] .tab-ico { color: #fff; font-size: .75rem; }
.agent-ctl { display: flex; gap: 4px; padding-bottom: 6px; }
.agent-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
  background: none; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.agent-btn:hover { color: #fff; border-color: var(--red); }
.agent-btn .i { width: 13px; height: 13px; }

.agent-win {
  --bg: #0a0a0c;
  position: relative; display: flex; flex-direction: column; height: 468px;
  background: var(--bg); color: #d7d7da;
  border: 1px solid var(--line-2); border-radius: 0 14px 14px 14px;
  box-shadow: 0 0 0 1px rgba(255, 30, 60, .06), 0 40px 110px -40px rgba(255, 30, 60, .55), 0 30px 60px -30px #000;
  font: 400 12.5px/1.62 var(--mono);
  overflow: hidden;
}
.agent-win::after {
  /* faint CRT scanlines */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
}
.agent-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2f; }
.lights i:first-child { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.agent-path { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-cmd { color: #4a4a50; }

.agent-out {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  padding: 14px 16px 6px; white-space: pre-wrap; word-break: break-word;
}
.agent-out::-webkit-scrollbar { display: none; }
.agent-out > * { margin-bottom: 9px; animation: line-in .35s var(--expo) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }

.agent-in { display: flex; align-items: center; gap: 10px; margin: 6px 12px 0; padding: 9px 12px; border: 1px solid #3a3a40; border-radius: 8px; }
.agent-caret { color: #8a8a90; }
.agent-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: inherit; color: #fff; caret-color: #d97757; }
.agent-in input::placeholder { color: #55555b; }
.agent-in:focus-within { border-color: #6a6a72; }
.agent-foot { display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px 9px; font-size: 11px; white-space: nowrap; overflow: hidden; }
.agent-foot .perm { color: #ff6b81; overflow: hidden; text-overflow: ellipsis; }
.agent-foot .model { color: #55555b; }
.agent-note { margin-top: 12px; font-size: .8125rem; color: #8a8a90; text-shadow: 0 1px 8px #000, 0 0 2px #000; }

/* shared pieces */
.a-dim { color: #75757c; }
.a-b { color: #fff; font-weight: 700; }
.a-ok { color: #4ade80; }
.a-err { color: #ff6b81; }
.a-warn { color: var(--warn); }
.a-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 30, 60, .6); text-underline-offset: 3px; }
.a-live {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 7px; vertical-align: 1px;
  font-size: 10px; line-height: 1.5; color: #fff; border-radius: 999px; background: rgba(255, 30, 60, .2); border: 1px solid rgba(255, 30, 60, .5);
}
.a-live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); animation: caret 1.2s steps(1) infinite; }
.a-cursor { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #d7d7da; animation: caret 1s steps(1) infinite; }
.a-sub { padding-left: 2ch; color: #8a8a90; }
.a-sub::before { content: '⎿  '; color: #55555b; }
.a-code { margin-top: 4px; padding-left: 4ch; color: #c8c8cc; }
.a-code .ln { display: inline-block; width: 3ch; margin-right: 1.5ch; text-align: right; color: #4a4a50; }
.a-diff { margin-top: 4px; padding-left: 4ch; }
.a-diff > div { padding-right: 6px; }
.a-diff .add { background: rgba(46, 224, 138, .12); color: #b7f5d0; }
.a-diff .del { background: rgba(255, 30, 60, .14); color: #ffc2cc; }
.a-diff .ln { display: inline-block; width: 3ch; margin-right: 1ch; text-align: right; color: #55555b; }
.a-diff .sg { display: inline-block; width: 2ch; color: inherit; }
.tk-k { color: #ff7b8e; } .tk-f { color: #ffb86b; } .tk-s { color: #a5e8b8; } .tk-n { color: #ffd58a; } .tk-c { color: #5f5f66; }

/* Claude Code */
.cc-welcome { border: 1px solid #d97757; border-radius: 6px; padding: 8px 12px; margin-bottom: 14px !important; width: fit-content; max-width: 100%; }
.cc-welcome .t { color: #fff; }
.cc-welcome .t b { color: #d97757; font-weight: 400; }
.cc-user { color: #8a8a90; }
.cc-user::before { content: '> '; }
.cc-think { color: #d97757; }
.cc-think .g { display: inline-block; width: 1.4ch; }
.cc-think .m { color: #75757c; }
.cc-blk > .h::before { content: '⏺ '; color: #4ade80; }
.cc-blk.say > .h::before { color: #fff; }
.cc-blk.err > .h::before { color: #ff6b81; }
.cc-blk .h .n { color: #fff; font-weight: 700; }
.cc-blk .h .a { color: #9a9aa0; }
.cc-todo { padding-left: 4ch; }
.cc-todo > div::before { content: '☐ '; color: #8a8a90; }
.cc-todo > div.on { color: #fff; font-weight: 700; }
.cc-todo > div.done { color: #6a6a70; text-decoration: line-through; }
.cc-todo > div.done::before { content: '☒ '; color: #4ade80; text-decoration: none; }

/* Codex CLI */
[data-tool="codex"] .agent-in { border-color: transparent; border-radius: 0; border-top: 1px solid #2a2a30; padding-left: 4px; }
[data-tool="codex"] .agent-caret { color: #fff; }
[data-tool="codex"] .agent-foot .perm { color: #75757c; }
.cx-head { border: 1px solid #3a3a40; border-radius: 6px; padding: 8px 12px; width: fit-content; max-width: 100%; margin-bottom: 14px !important; }
.cx-head .t { color: #fff; font-weight: 700; }
.cx-user { padding: 6px 10px; background: #16161a; border-left: 2px solid #fff; color: #fff; }
.cx-user::before { content: '› '; color: #8a8a90; }
.cx-work { color: #c8c8cc; }
.cx-work .sh { background: linear-gradient(90deg, #75757c 0%, #fff 50%, #75757c 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.cx-ev > .h::before { content: '• '; color: #fff; }
.cx-ev > .h { color: #fff; font-weight: 700; }
.cx-ev > .h .a { font-weight: 400; color: #c8c8cc; }
.cx-ev .plus { color: #4ade80; font-weight: 400; } .cx-ev .minus { color: #ff6b81; font-weight: 400; }
.cx-sub { padding-left: 2ch; color: #8a8a90; }
.cx-sub::before { content: '└ '; color: #55555b; }
.cx-say { color: #e8e8ea; }

@media (max-width: 1080px) {
  .agent { max-width: 680px; }
  .agent-win { height: 420px; }
}
@media (max-width: 560px) {
  .agent-win { height: 380px; font-size: 11.5px; border-radius: 0 12px 12px 12px; }
  .agent-tabs button { padding: 10px 10px 9px; font-size: .75rem; }
  .agent-out { padding: 12px 12px 6px; }
  .agent-foot .model { display: none; }
}
.a-sub.cont::before { content: '   '; }
/* Hanging indent after the bullet, as in the real CLIs. */
.cc-blk > .h, .cx-ev > .h { padding-left: 2ch; text-indent: -2ch; }
.a-sub { padding-left: 5ch; text-indent: -3ch; }
.cx-sub { padding-left: 4ch; text-indent: -2ch; }

/* 40-products.css */
/* ---------- Stats strip ---------- */
.stats { position: relative; padding-block: 8px; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 30, 60, .04), rgba(0, 0, 0, .6) 30%, rgba(0, 0, 0, .6) 70%, rgba(255, 30, 60, .04)); }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 34px 24px; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font: 700 clamp(2.25rem, 4.2vw, 3.5rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #ff9a8a 75%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 30, 60, .3));
}
.stat-label { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
@media (max-width: 860px) {
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat { padding: 24px 16px; }
}

/* ---------- Products ---------- */
/* One quiet layout: a large motion frame (42-films.css) next to the facts. */
.prod {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-block: clamp(40px, 6vw, 80px);
}
/* Every other product mirrors the layout, so the media keeps the wide column. */
.prod:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.prod:nth-of-type(even) .prod-media { order: 2; }
.prod-body h3 { font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.05 var(--display); letter-spacing: -.025em; }
.prod-tag { margin-top: 14px; font-size: 1.1875rem; line-height: 1.45; color: #fff; font-weight: 500; }
.prod-desc { margin-top: 14px; color: var(--muted); }
.prod-stack { margin-top: 18px; font: 400 .8125rem/1.6 var(--mono); color: var(--dim); }
.prod-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.prod-live { display: inline-flex; align-items: center; gap: 8px; font: 400 .8125rem/1 var(--mono); color: var(--muted); }
.prod-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px rgba(46, 224, 138, .7); }
.prod-live.down { color: var(--warn); }
.prod-live.down::before { background: var(--warn); box-shadow: 0 0 10px rgba(255, 176, 32, .7); }

.sub { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); font: 600 1.125rem/1.3 var(--display); color: var(--muted); }
.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); margin-top: 32px; }
.prod-next .prod-body { margin-top: 28px; }
.prod-next h3 { font-size: 1.5rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.stage { font: 500 .75rem/1 var(--mono); letter-spacing: 0; color: var(--warn); padding: 5px 8px; border: 1px solid rgba(255, 176, 32, .4); border-radius: 999px; }
.prod-next .prod-tag { font-size: 1.0625rem; }

@media (max-width: 960px) {
  .prod, .prod:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .prod:nth-of-type(even) .prod-media { order: 0; }
  .next { grid-template-columns: 1fr; }
}

/* 42-films.css */
/* ---------- Product media: the PlanMyTeam recording and the motion films ---------- */
.prod-media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px;
  background: var(--s1); border: 1px solid var(--line-2); isolation: isolate;
  box-shadow: 0 50px 90px -50px #000, 0 40px 90px -70px rgba(255, 30, 60, .55);
}
.prod-media > picture, .prod-media > video, .film { position: absolute; inset: 0; width: 100%; height: 100%; }
.prod-media img, .prod-media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.film { overflow: hidden; }
/* Without JavaScript the screenshot stays; once the film runs it covers it. */
.film.mounted > picture { visibility: hidden; }
.film-stage {
  position: absolute; left: 0; top: 0; width: 560px; height: 350px; overflow: hidden;
  transform: scale(var(--fk, 1)); transform-origin: 0 0; font-family: var(--font); contain: layout paint;
  -webkit-font-smoothing: antialiased;
}
.film-stage :where(div, span, p, b, i, em, svg) { margin: 0; }
.film-stage .typing::after {
  content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em;
  background: currentColor; animation: film-caret .8s steps(1) infinite;
}
@keyframes film-caret { 50% { opacity: 0; } }

/* Reveal: the frame opens from a narrower window. */
.js .prod-media[data-reveal] {
  opacity: 1; filter: none; transform: none;
  clip-path: inset(8% 6% 8% 6% round 18px);
  transition: clip-path 1.5s var(--expo);
}
.js .prod-media[data-reveal].in { clip-path: inset(0 0 0 0 round 18px); }

/* Pause control (WCAG 2.2.2): always reachable, quiet until the frame is hovered or focused. */
.media-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 10, 12, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: .55; transition: opacity .25s, transform .3s var(--expo), border-color .2s;
}
.prod-media:hover .media-toggle, .media-toggle:focus-visible { opacity: 1; }
.media-toggle:hover { transform: scale(1.08); border-color: rgba(255, 255, 255, .5); }
.media-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.media-toggle .i-play { display: none; }
.media-toggle[aria-pressed="true"] .i-play { display: block; }
.media-toggle[aria-pressed="true"] .i-pause { display: none; }

/* Shared film pieces: every animated node is positioned by CSS and moved by transform only. */
.film-stage > *, .film-stage .abs { position: absolute; }

/* ---------- Fonvel ---------- */
.fv { background: radial-gradient(90% 80% at 12% 0%, #ff8d62 0%, transparent 62%), radial-gradient(70% 70% at 100% 100%, #e24f28 0%, transparent 70%), #ff6a3d; color: #17130f; }
.fv-glow { inset: 0; background: radial-gradient(40% 50% at 30% 55%, rgba(255, 214, 180, .35), transparent 70%); }
.fv-phone {
  left: 36px; top: 26px; width: 148px; height: 296px; border-radius: 30px; background: #17130f;
  box-shadow: 0 34px 50px -22px rgba(90, 25, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 60%;
}
.fv-screen { position: absolute; inset: 6px; border-radius: 24px; background: #fff7f0; overflow: hidden; }
.fv-screen > * { position: absolute; }
.fv-clock { left: 22px; top: 12px; font: 600 9px/1 var(--font); }
.fv-ava, .fv-ring { left: 41px; top: 44px; width: 56px; height: 56px; border-radius: 50%; }
.fv-ava { display: grid; place-items: center; background: #ffd36b; font: 700 22px/1 var(--font); color: #17130f; }
.fv-ring { border: 2px solid #ff6a3d; }
.fv-name { left: 0; right: 0; top: 112px; text-align: center; font: 700 15px/1.1 var(--font); letter-spacing: -.01em; }
.fv-sub { left: 0; right: 0; top: 131px; text-align: center; font: 500 10px/1 var(--font); color: #8a7d72; }
.fv-inc { left: 0; right: 0; top: 156px; display: grid; gap: 5px; text-align: center; }
.fv-inc span { font: 500 10px/1 var(--font); color: #8a7d72; }
.fv-inc b { font: 600 11px/1 var(--mono); }
.fv-pill { left: 6px; right: 6px; top: 156px; display: flex; justify-content: center; }
.fv-pill > span {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px;
  background: #dcf4d4; color: #1d5a26; font: 600 9.5px/1 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.fv-pill i { width: 5px; height: 5px; border-radius: 50%; background: #2fb35d; box-shadow: 0 0 6px #2fb35d; }
.fv-pill.end > span { background: #eee5dc; color: #6b5f55; }
.fv-pill.end i { background: #a2968b; box-shadow: none; }
.fv-wave { left: 14px; right: 14px; top: 188px; height: 48px; display: flex; align-items: center; gap: 2px; }
.fv-wave i { flex: 1; height: 100%; border-radius: 2px; background: #17130f; transform: scaleY(.1); transition: background .3s; }
.fv-wave.ai i { background: #ff6a3d; }
.fv-btn { bottom: 16px; width: 38px; height: 38px; border-radius: 50%; }
.fv-btn::after {
  content: ''; position: absolute; inset: 0; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / 17px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.fv-answer { left: 22px; background: #2fc76a; box-shadow: 0 0 0 6px rgba(47, 199, 106, .18); }
.fv-decline, .fv-hang { background: #ff4a3d; }
.fv-decline { right: 22px; }
.fv-decline::after, .fv-hang::after { transform: rotate(135deg); }
.fv-hang { left: 50px; }

.fv-b {
  left: 206px; top: 0; max-width: 300px; padding: 9px 13px 11px; border-radius: 16px; background: #fff;
  box-shadow: 0 18px 30px -20px rgba(90, 25, 0, .7); transform-origin: 0 50%;
}
.fv-a { left: 232px; background: #17130f; color: #fff7f0; }
.fv-who { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font: 600 9.5px/1.2 var(--mono); color: #b0532f; }
.fv-a .fv-who { color: #ff9a72; }
.fv-src { padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(255, 154, 114, .45); font: 500 9px/1.2 var(--mono); transition: background .3s, color .3s, box-shadow .3s; }
.fv-src.hit { background: #ff6a3d; color: #17130f; box-shadow: 0 0 14px rgba(255, 106, 61, .8); }
.fv-txt { position: relative; }
.fv-txt p { font: 500 13.5px/1.38 var(--font); letter-spacing: -.005em; }
.fv-sz { visibility: hidden; }
.fv-ty { position: absolute; inset: 0; }

.fv-cal {
  left: 236px; top: 0; width: 300px; height: 172px; border-radius: 16px; background: #fff7f0; overflow: hidden;
  box-shadow: 0 24px 40px -24px rgba(90, 25, 0, .8);
}
.fv-cal-h { position: absolute; left: 0; right: 0; top: 0; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid #efe3d8; }
.fv-cal-h b { font: 700 13px/1 var(--font); }
.fv-cal-s { display: inline-flex; align-items: center; gap: 5px; font: 500 9.5px/1 var(--mono); color: #b0532f; }
.fv-cal-s i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #ff6a3d; border-right-color: transparent; animation: film-spin .7s linear infinite; }
.fv-cal-s.ok { color: #1d7a3a; }
.fv-cal-s.ok i { border: 0; background: #2fb35d; animation: none; box-shadow: 0 0 8px rgba(47, 179, 93, .7); }
.fv-cal-src { margin-left: auto; font: 500 9px/1 var(--mono); color: #a2968b; }
.fv-grid { position: absolute; left: 0; right: 0; top: 38px; }
.fv-row { display: block; height: 26px; padding: 4px 0 0 12px; border-top: 1px dashed #efe3d8; font: 500 9px/1 var(--mono); color: #a2968b; }
.fv-row:first-child { border-top: 0; }
.fv-grid > .fv-ev, .fv-slot { position: absolute; left: 54px; right: 10px; }
.fv-old { top: 2px; height: 22px; border-radius: 7px; background: #efe3d8; padding: 0 9px; display: flex; align-items: center; }
.fv-old b { font: 600 10px/1 var(--font); color: #6b5f55; }
.fv-slot { top: 54px; height: 48px; border-radius: 9px; border: 1.5px dashed #ff6a3d; background: rgba(255, 106, 61, .08); }
.fv-new {
  left: 0; top: 0; width: 236px; height: 48px; border-radius: 9px; padding: 8px 11px; display: grid; gap: 3px; align-content: center;
  background: linear-gradient(135deg, #ff7a4d, #ff5a2e); color: #fff; transform-origin: 50% 50%;
  box-shadow: 0 10px 24px -8px rgba(255, 74, 30, .8);
}
.fv-new b { font: 700 11.5px/1.1 var(--font); }
.fv-new span { font: 500 9.5px/1.1 var(--mono); opacity: .9; }
.fv-new.landed { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 10px 26px -6px rgba(255, 74, 30, .9); }
.fv-chip {
  left: 236px; top: 296px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: rgba(23, 19, 15, .92); color: #fff7f0; font: 600 10px/1 var(--mono);
}
.fv-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2fc76a; box-shadow: 0 0 8px #2fc76a; }
.fv-note {
  left: 236px; top: 0; width: 300px; padding: 14px 16px 12px; border-radius: 16px; background: #17130f; color: #fff7f0;
  box-shadow: 0 30px 50px -24px rgba(60, 15, 0, .9);
}
.fv-note b { display: block; margin-bottom: 10px; font: 600 10px/1 var(--mono); color: #ff9a72; }
.fv-note p { position: relative; padding-left: 20px; font: 500 13px/1.25 var(--font); margin-bottom: 8px; }
.fv-note p::before {
  content: ''; position: absolute; left: 2px; top: 3px; width: 9px; height: 5px;
  border-left: 2px solid #ff6a3d; border-bottom: 2px solid #ff6a3d; transform: rotate(-45deg);
}
@keyframes film-spin { to { transform: rotate(360deg); } }

/* ---------- ChatbotAssistant ---------- */
.ca { background: radial-gradient(70% 90% at 0% 0%, rgba(88, 214, 232, .16), transparent 60%), radial-gradient(60% 70% at 100% 100%, rgba(40, 90, 180, .28), transparent 70%), #07111f; color: #eaf3fb; }
.ca-win, .ca-call {
  left: 24px; top: 22px; width: 296px; height: 306px; border-radius: 18px; overflow: hidden;
  background: rgba(12, 26, 44, .94); border: 1px solid rgba(88, 214, 232, .18);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); transform-origin: 50% 50%; backface-visibility: hidden;
}
.ca-hd { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid rgba(88, 214, 232, .1); }
.ca-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #c9f7fd, #58d6e8 45%, #17668f); box-shadow: 0 0 16px rgba(88, 214, 232, .45); }
.ca-who b { display: block; font: 600 12px/1.25 var(--font); }
.ca-who span { display: block; font: 500 10px/1.3 var(--font); color: #8aa0b6; font-variant-numeric: tabular-nums; }
.ca-msgs { position: absolute; left: 0; right: 0; top: 52px; height: 194px; overflow: hidden; }
.ca-m { position: absolute; top: 0; max-width: 218px; padding: 8px 11px; border-radius: 14px; font: 500 12.5px/1.38 var(--font); }
.ca-m.bot { left: 12px; background: #13283f; border-bottom-left-radius: 4px; transform-origin: 0 100%; }
.ca-m.me { right: 12px; background: #58d6e8; color: #04121f; border-bottom-right-radius: 4px; transform-origin: 100% 100%; }
.ca-dots { display: flex; gap: 4px; padding: 11px 12px; }
.ca-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8aa0b6; }
.ca-offer > span { display: block; margin-bottom: 7px; }
.ca-chips { position: relative; display: flex; gap: 6px; }
.ca-chip { padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(88, 214, 232, .5); color: #58d6e8; font: 600 11px/1 var(--mono); transition: background .25s, color .25s, box-shadow .25s; }
.ca-chip.on { background: #58d6e8; color: #04121f; box-shadow: 0 0 14px rgba(88, 214, 232, .6); }
.ca-ok { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(88, 214, 232, .2), #13283f 70%); border: 1px solid rgba(88, 214, 232, .35); }
.ca-check { flex: none; width: 26px; height: 26px; fill: none; stroke: #58d6e8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ca-ok b { display: block; font: 600 12.5px/1.3 var(--font); }
.ca-ok span { display: block; font: 500 10.5px/1.3 var(--font); color: #a6dde7; }
.ca-in {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  padding: 0 6px 0 12px; background: #0a1828; border: 1px solid rgba(88, 214, 232, .16); font: 500 11px/1 var(--font);
}
.ca-in-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.ca-in-ph { position: absolute; left: 12px; top: 14px; color: #5d7590; }
.ca-send { flex: none; width: 28px; height: 28px; border-radius: 9px; background: #58d6e8; position: relative; }
.ca-send::after { content: ""; position: absolute; left: 9px; top: 10px; width: 7px; height: 7px; border-top: 2px solid #04121f; border-right: 2px solid #04121f; transform: rotate(45deg); }
.ca-call { background: radial-gradient(80% 60% at 50% 30%, rgba(88, 214, 232, .12), transparent 70%), rgba(12, 26, 44, .96); }
.ca-disc { position: absolute; left: 73px; top: 62px; width: 150px; height: 150px; }
.ca-disc i:not(.ca-core) {
  position: absolute; left: 73.5px; top: 41px; width: 3px; height: 34px; border-radius: 2px; background: rgba(234, 243, 251, .75);
  transform-origin: 50% 100%; transform: rotate(var(--a)) translateY(-40px) scaleY(var(--s, .15)); transition: background .3s;
}
.ca-disc.ai i:not(.ca-core) { background: #58d6e8; box-shadow: 0 0 6px rgba(88, 214, 232, .6); }
.ca-core { position: absolute; left: 43px; top: 43px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9f7fd, #58d6e8 45%, #145a80); box-shadow: 0 0 30px rgba(88, 214, 232, .45); }
.ca-cap { position: absolute; left: 18px; right: 18px; }
.ca-cap.c { top: 222px; }
.ca-cap.a { top: 262px; }
.ca-cap-o { font: 500 12.5px/1.3 var(--font); color: #fff; white-space: nowrap; overflow: hidden; }
.ca-cap.a .ca-cap-o { color: #8fe6f3; }
.ca-cap-t { margin-top: 2px; font: 500 10.5px/1.3 var(--font); color: #7d93ab; }
.ca-lang, .ca-cal { left: 336px; width: 200px; border-radius: 16px; background: rgba(12, 26, 44, .88); border: 1px solid rgba(88, 214, 232, .14); }
.ca-lang { top: 22px; height: 112px; overflow: hidden; }
.ca-lang-h { position: absolute; left: 14px; top: 14px; font: 500 10.5px/1 var(--font); color: #8aa0b6; }
.ca-hi { position: absolute; left: 14px; top: 38px; font: 600 22px/1.1 var(--font); letter-spacing: -.02em; white-space: nowrap; }
.ca-codes { position: absolute; left: 14px; right: 10px; bottom: 13px; display: flex; gap: 4px; }
.ca-codes span { padding: 4px 5px; border-radius: 6px; font: 600 9px/1 var(--mono); color: #6f86a0; background: rgba(255, 255, 255, .05); transition: background .3s, color .3s; }
.ca-codes span.on { background: #58d6e8; color: #04121f; }
.ca-codes .ca-more { background: none; color: #58d6e8; }
.ca-cal { top: 146px; height: 182px; overflow: hidden; }
.ca-cal-h { position: absolute; left: 14px; right: 12px; top: 12px; height: 18px; display: flex; align-items: center; gap: 8px; }
.ca-cal-h b { font: 600 12px/1 var(--font); }
.ca-tag { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: #58d6e8; color: #04121f; font: 600 9px/1 var(--mono); }
.ca-grid { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; }
.ca-grid > * { position: absolute; }
.ca-day { top: 2px; font: 600 9.5px/1 var(--mono); color: #8aa0b6; }
.ca-day.d0, .ca-busy.d0 { left: 40px; }
.ca-day.d1, .ca-busy.d1 { left: 119px; }
.ca-hr { left: 10px; font: 500 8.5px/1 var(--mono); color: #5d7590; }
.ca-hr::after { content: ""; position: absolute; left: 28px; top: 4px; width: 152px; border-top: 1px dashed rgba(88, 214, 232, .08); }
.ca-busy { width: 75px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.ca-ev {
  left: 0; top: 0; width: 75px; height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 7px;
  background: linear-gradient(135deg, #8aeaf5, #3cb8d8); color: #04121f; transition: box-shadow .4s;
}
.ca-ev b { font: 700 9.5px/1 var(--font); white-space: nowrap; }
.ca-ev.glow { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 0 22px rgba(88, 214, 232, .85); }
.ca-ripple { left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%; border: 2px solid #58d6e8; }
.ca-cursor { left: 0; top: 0; width: 22px; height: 22px; fill: #fff; stroke: #04121f; stroke-width: 1; stroke-linejoin: round; transform-origin: 4px 3px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); z-index: 5; }
.ca-tap { left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #58d6e8; z-index: 4; }

/* ---------- MicroAssistant ---------- */
.ma { background: radial-gradient(70% 80% at 32% 52%, rgba(230, 0, 18, .12), transparent 70%), #050505; color: #f2f2f2; }
.ma-grid {
  inset: 0; background-image: linear-gradient(rgba(230, 0, 18, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 0, 18, .08) 1px, transparent 1px);
  background-size: 20px 20px; background-position: 2px 10px;
  -webkit-mask-image: radial-gradient(70% 80% at 35% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 80% at 35% 50%, #000 30%, transparent 85%);
}
.ma-plan { left: 0; top: 0; width: 560px; height: 350px; overflow: visible; }
.ma-walls path { stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ma-window { stroke: #3ae0ff; stroke-width: 3; opacity: .75; }
.ma-blind { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.ma-blind rect { fill: rgba(255, 255, 255, .1); }
.ma-blind path { stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.ma-radiator { stroke: rgba(255, 255, 255, .3); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 3; transition: stroke .5s; }
.ma-radiator.on { stroke: #ff6a2a; }
.ma-door { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; transform-box: view-box; transform-origin: 356px 300px; }
.ma-swing { stroke: rgba(255, 255, 255, .45); stroke-dasharray: 3 3; opacity: 0; }
.ma-labels text { font: 500 9px var(--mono); fill: rgba(255, 255, 255, .45); opacity: 0; }
.ma-links line { stroke: rgba(230, 0, 18, .5); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ma-nodes circle { fill: #0b0b0d; stroke: #ff2a3a; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; transition: fill .2s; }
.ma-nodes circle.hit { fill: #ff2a3a; }
.ma-hub { opacity: 0; }
.ma-hub rect { fill: #0d0d10; stroke: #ff2a3a; stroke-width: 1.6; }
.ma-hub .ma-die { fill: #e60012; stroke: none; }
.ma-hub path { stroke: rgba(255, 42, 58, .75); stroke-width: 1.2; }
.ma-pk { opacity: 0; }
.ma-pk circle { fill: #3ae0ff; }
.ma-pk .h { fill: rgba(58, 224, 255, .28); }
.ma-pk.evt circle { fill: #ff4a55; }
.ma-pk.evt .h { fill: rgba(255, 42, 58, .32); }
.ma-lights circle { opacity: 0; }
.ma-mesh { left: 22px; top: 10px; font: 500 9.5px/1 var(--mono); color: #ff2a3a; }
.ma-mesh.ok { color: #3ae0ff; }
.ma-panel { left: 372px; top: 24px; width: 166px; height: 302px; display: flex; flex-direction: column; gap: 7px; }
.ma-ph { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(230, 0, 18, .4); background: rgba(18, 4, 6, .88); }
.ma-ph b { display: block; font: 700 10.5px/1.2 var(--display); letter-spacing: .01em; }
.ma-ph > span { display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 500 9.5px/1 var(--mono); color: #9a9aa2; }
.ma-on { width: 6px; height: 6px; border-radius: 50%; background: #2ee08a; box-shadow: 0 0 6px #2ee08a; }
.ma-tile { position: relative; padding: 7px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(14, 14, 17, .92); transition: border-color .4s, background .4s; }
.ma-t0 { padding-bottom: 15px; }
.ma-tl { display: block; font: 500 9.5px/1 var(--mono); color: #8a8a92; }
.ma-tv { display: block; margin-top: 6px; font: 600 16px/1 var(--font); font-variant-numeric: tabular-nums; transition: color .3s; }
.ma-ts { position: absolute; right: 12px; top: 7px; font: 500 9px/1 var(--mono); color: #8a8a92; }
.ma-tile:not(.ma-t0) .ma-ts { top: auto; bottom: 10px; }
.ma-tile.warm { border-color: rgba(255, 106, 42, .55); background: rgba(40, 12, 6, .92); }
.ma-tile.warm .ma-ts { color: #ff8a5a; }
.ma-tile.alert { border-color: rgba(58, 224, 255, .45); }
.ma-tile.alert .ma-tv { color: #3ae0ff; }
.ma-bar { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ma-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #ffb35c, #ffd59a); transform-origin: 0 50%; transform: scaleX(0); }
.ma-sun { position: absolute; right: 13px; top: 21px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle, #ffe0aa, #ff9a3c); box-shadow: 0 0 10px #ff9a3c; }
.ma-log { flex: 1; min-height: 0; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(8, 8, 10, .92); font: 500 8.5px/1.5 var(--mono); color: #7d7d86; overflow: hidden; }
.ma-log p { white-space: nowrap; transition: color .5s; }
.ma-log p::before { content: "› "; color: #ff2a3a; }
.ma-log p:empty::before { content: none; }
.ma-log p.new { color: #f2f2f2; }
.ma-cloud { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(58, 224, 255, .35); font: 600 9.5px/1 var(--mono); color: #3ae0ff; white-space: nowrap; }
.ma-cloud svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #3ae0ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ma-cloud path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ma-cloud .x { stroke: #ff2a3a; }

/* ---------- DeskChord ---------- */
.dc { background: radial-gradient(60% 70% at 62% 38%, rgba(157, 235, 213, .09), transparent 70%), #090d0f; color: #e8f0ee; }
.dc-mon, .dc-tab { background: #1a2123; box-shadow: 0 30px 50px -30px #000, inset 0 0 0 1px rgba(255, 255, 255, .07); }
.dc-mon { left: 20px; top: 28px; width: 312px; height: 198px; border-radius: 12px; }
.dc-scr { position: absolute; left: 6px; top: 6px; width: 300px; height: 186px; border-radius: 7px; overflow: hidden; background: #0b1012; }
.dc-scr > * { position: absolute; }
.dc-neck { left: 156px; top: 226px; width: 40px; height: 24px; background: linear-gradient(#1a2123, #11171a); opacity: var(--dc-in, 1); }
.dc-base { left: 112px; top: 249px; width: 128px; height: 6px; border-radius: 4px; background: #1d2528; opacity: var(--dc-in, 1); }
.dc-wall { inset: 0; background: radial-gradient(90% 90% at 20% 0%, rgba(157, 235, 213, .14), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(60, 120, 140, .28), transparent 70%), #0b1012; }
.dc-task { left: 0; right: 0; bottom: 0; height: 18px; display: flex; justify-content: center; align-items: center; gap: 6px; background: rgba(10, 14, 16, .92); border-top: 1px solid rgba(255, 255, 255, .05); }
.dc-task i { width: 9px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.dc-task i:first-child { background: #9debd5; }
.dc-note { left: 14px; top: 16px; width: 150px; height: 84px; border-radius: 7px; background: #141b1e; border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.dc-note b { display: block; padding: 6px 9px; font: 600 9px/1 var(--font); color: #9aa8a5; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dc-note p { position: relative; z-index: 1; padding: 9px 9px 0; font: 500 10.5px/1.3 var(--font); white-space: nowrap; }
.dc-sel { position: absolute; left: 7px; top: 28px; width: 128px; height: 16px; border-radius: 3px; background: rgba(157, 235, 213, .3); transform-origin: 0 50%; transform: scaleX(0); }
.dc-file { left: 0; top: 0; width: 60px; display: grid; justify-items: center; gap: 4px; z-index: 3; }
.dc-file i { width: 22px; height: 26px; border-radius: 3px; background: linear-gradient(#d6dfdd, #9fb0ac); clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%); transition: background .2s; }
.dc-file span { font: 500 8.5px/1 var(--font); color: #d6dfdd; text-shadow: 0 1px 3px #000; }
.dc-file.deny i { background: linear-gradient(#ffd27a, #ffb020); }
.dc-panel { left: 172px; top: 12px; width: 118px; height: 146px; padding: 0 8px; border-radius: 9px; background: rgba(16, 22, 24, .96); border: 1px solid rgba(157, 235, 213, .2); box-shadow: 0 14px 30px -14px #000; }
.dc-ph { padding: 8px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dc-ph b { display: block; font: 700 10px/1.2 var(--font); color: #9debd5; }
.dc-ph span { display: block; font: 500 8.5px/1.3 var(--font); color: #7f8f8b; }
.dc-row { height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 500 8.5px/1 var(--font); color: #aebbb8; transition: color .25s; }
.dc-tog { flex: none; position: relative; width: 20px; height: 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .25s, box-shadow .25s; }
.dc-tog::after { content: ""; position: absolute; left: 2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #e8f0ee; transition: transform .25s var(--expo), background .25s; }
.dc-row.on { color: #e8f0ee; }
.dc-row.on .dc-tog { background: #9debd5; }
.dc-row.on .dc-tog::after { transform: translateX(9px); background: #0b1012; }
.dc-row.deny { color: #ffb020; }
.dc-row.deny .dc-tog { box-shadow: 0 0 0 2px rgba(255, 176, 32, .55); }
.dc-toast { left: 112px; top: 128px; width: 176px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(20, 28, 30, .97); border: 1px solid rgba(157, 235, 213, .28); font: 500 9px/1.2 var(--font); }
.dc-toast span { white-space: nowrap; }
.dc-toast b { position: absolute; right: 10px; font: 700 10.5px/1 var(--mono); color: #9debd5; letter-spacing: .05em; white-space: nowrap; }
.dc-keys { left: 58px; top: 104px; display: flex; align-items: center; gap: 4px; }
.dc-keys kbd { padding: 4px 6px; border-radius: 5px; background: #e8f0ee; color: #0b1012; font: 700 9px/1 var(--mono); box-shadow: 0 2px 0 #9aa8a5; }
.dc-keys span { font: 500 9px/1 var(--font); color: #9aa8a5; }
.dc-tab { left: 372px; top: 104px; width: 168px; height: 116px; border-radius: 14px; }
.dc-tscr { position: absolute; left: 6px; top: 6px; right: 6px; bottom: 6px; border-radius: 9px; overflow: hidden; background: radial-gradient(90% 90% at 80% 0%, rgba(157, 235, 213, .16), transparent 60%), #0b1012; }
.dc-tscr > * { position: absolute; }
.dc-home { inset: 0; }
.dc-app { position: absolute; width: 36px; display: grid; justify-items: center; gap: 3px; }
.dc-app i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #2a3538, #1a2326); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .2s; }
.dc-app span { font: 500 6.5px/1 var(--font); color: #aebbb8; }
.dc-app.a1 i { background: linear-gradient(135deg, #b9f3e2, #6fcfb3); }
.dc-app.a4 i { background: linear-gradient(135deg, #5d7b85, #2c3d43); }
.dc-app.hit i { box-shadow: 0 0 0 2px #9debd5, 0 0 12px rgba(157, 235, 213, .7); }
.dc-app.a0 { left: 6px; top: 12px; } .dc-app.a1 { left: 44px; top: 12px; } .dc-app.a2 { left: 82px; top: 12px; } .dc-app.a3 { left: 120px; top: 12px; }
.dc-app.a4 { left: 6px; top: 56px; } .dc-app.a5 { left: 44px; top: 56px; } .dc-app.a6 { left: 82px; top: 56px; } .dc-app.a7 { left: 120px; top: 56px; }
.dc-tcode { inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; background: rgba(11, 16, 18, .95); }
.dc-tcode span { font: 500 8.5px/1 var(--font); color: #7f8f8b; }
.dc-tcode b { font: 700 18px/1 var(--mono); letter-spacing: .08em; transition: color .3s; }
.dc-tcode.ok b { color: #9debd5; }
.dc-tnote { inset: 0; padding: 8px 10px; background: #141b1e; }
.dc-tnote b { font: 600 9px/1 var(--font); color: #9aa8a5; }
.dc-tnote p { margin-top: 10px; font: 500 10px/1.3 var(--font); }
.dc-tap { left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #9debd5; z-index: 5; }
.dc-svg { left: 0; top: 0; width: 560px; height: 350px; overflow: visible; }
.dc-link { fill: none; stroke: rgba(157, 235, 213, .45); stroke-width: 1.5; stroke-dasharray: .05 .035; }
.dc-link-on { fill: none; stroke: #9debd5; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dc-lock { left: 345px; top: 136px; width: 14px; height: 18px; }
.dc-shackle { position: absolute; left: 3px; top: 0; width: 8px; height: 9px; border: 2px solid #7f8f8b; border-bottom: 0; border-radius: 5px 5px 0 0; transition: border-color .3s; }
.dc-body { position: absolute; left: 0; top: 7px; width: 14px; height: 10px; border-radius: 3px; background: #7f8f8b; transition: background .3s, box-shadow .3s; }
.dc-lock.on .dc-shackle { border-color: #9debd5; }
.dc-lock.on .dc-body { background: #9debd5; box-shadow: 0 0 10px rgba(157, 235, 213, .8); }
.dc-ring { left: 226px; top: 28px; width: 200px; height: 200px; border-radius: 50%; border: 1.5px solid rgba(157, 235, 213, .6); }
.dc-dot { left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #9debd5; box-shadow: 0 0 8px #9debd5; z-index: 4; }
.dc-clip { left: 0; top: 0; height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 9px; border-radius: 999px; background: #9debd5; color: #0b1012; font: 600 8.5px/1 var(--font); white-space: nowrap; box-shadow: 0 6px 16px -4px rgba(157, 235, 213, .65); z-index: 4; }
.dc-clip i { width: 8px; height: 10px; border: 1.5px solid #0b1012; border-radius: 2px; }
.dc-status { left: 0; right: 0; top: 290px; display: flex; justify-content: center; }
.dc-status span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(16, 22, 24, .9); font: 500 10px/1 var(--font); color: #aebbb8; transition: color .3s, border-color .3s; }
.dc-status span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7f8f8b; }
.dc-status.ok span { color: #e8f0ee; border-color: rgba(157, 235, 213, .3); }
.dc-status.ok span::before { background: #9debd5; box-shadow: 0 0 8px #9debd5; }
.dc-status.deny span { color: #ffb020; border-color: rgba(255, 176, 32, .4); }
.dc-status.deny span::before { background: #ffb020; box-shadow: 0 0 8px #ffb020; }
.dc-cursor { left: 0; top: 0; width: 20px; height: 20px; fill: #fff; stroke: #0b1012; stroke-width: 1; stroke-linejoin: round; z-index: 6; transform-origin: 4px 3px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }

/* ---------- Veilcord ---------- */
.vc { background: radial-gradient(60% 60% at 50% 45%, rgba(255, 90, 69, .09), transparent 70%), #070707; color: #f3ede6; }
.vc-net { left: 0; top: 0; width: 560px; height: 350px; overflow: visible; }
.vc-relay-l { fill: none; stroke: rgba(243, 237, 230, .25); stroke-width: 1; stroke-dasharray: 3 4; }
.vc-link { fill: none; stroke: #ff5a45; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vc-x { fill: none; stroke: #ff5a45; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vc-relay { left: 309px; top: 54px; width: 28px; height: 28px; display: grid; gap: 3px; align-content: center; padding: 0 3px; }
.vc-relay i { height: 6px; border-radius: 2px; background: #221d1c; box-shadow: inset 0 0 0 1px rgba(243, 237, 230, .16); }
.vc-relay-t { left: 248px; width: 150px; top: 86px; text-align: center; }
.vc-relay-t span { display: block; font: 500 9px/1.3 var(--font); color: #8a817c; }
.vc-relay-t b { display: block; font: italic 400 12px/1.2 Georgia, 'Times New Roman', serif; color: #ff5a45; }
.vc-link-t { left: 248px; width: 150px; top: 164px; text-align: center; font: 500 9px/1 var(--mono); color: #8a817c; }
.vc-hs { left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: #f3ede6; box-shadow: 0 0 8px #ff5a45; }
.vc-dev { overflow: hidden; background: #110f0f; border: 1px solid rgba(243, 237, 230, .1); box-shadow: 0 30px 50px -30px #000; }
.vc-web { left: 22px; top: 44px; width: 214px; height: 232px; border-radius: 12px; }
.vc-phone { left: 410px; top: 26px; width: 128px; height: 270px; border-radius: 22px; border: 5px solid #1c1918; }
.vc-dev > * { position: absolute; left: 0; right: 0; }
.vc-bar { top: 0; height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #171414; border-bottom: 1px solid rgba(243, 237, 230, .06); }
.vc-bar i { width: 6px; height: 6px; border-radius: 50%; background: #3a3332; }
.vc-bar span { margin-left: 10px; font: 500 8.5px/1 var(--mono); color: #8a817c; }
.vc-head { top: 24px; height: 34px; padding: 8px 12px 0; border-bottom: 1px solid rgba(243, 237, 230, .06); }
.vc-phone .vc-head { top: 0; height: 38px; padding: 12px 10px 0; }
.vc-head b { display: block; font: 600 11px/1 var(--font); }
.vc-head span { display: block; margin-top: 3px; font: 500 8px/1 var(--mono); color: #8a817c; white-space: nowrap; }
.vc-area { top: 58px; bottom: 44px; overflow: hidden; }
.vc-phone .vc-area { top: 38px; bottom: 40px; }
.vc-dev > .vc-in { left: 8px; right: 8px; bottom: 8px; height: 28px; display: flex; align-items: center; padding: 0 9px; border-radius: 8px; background: #171414; border: 1px solid rgba(243, 237, 230, .08); font: 500 9.5px/1 var(--mono); }
.vc-phone > .vc-in { left: 6px; right: 6px; bottom: 6px; font-size: 8.5px; }
.vc-in-t { white-space: nowrap; overflow: hidden; }
.vc-in-ph { position: absolute; left: 9px; color: #5c5452; }
.vc-b { position: absolute; top: 0; max-width: 158px; padding: 6px 9px; border-radius: 10px; font: 500 10px/1.35 var(--mono); }
.vc-b.out { right: 10px; background: rgba(255, 90, 69, .14); border: 1px solid rgba(255, 90, 69, .35); transform-origin: 100% 100%; }
.vc-b.in { left: 10px; background: #1b1817; border: 1px solid rgba(243, 237, 230, .08); transform-origin: 0 100%; }
.vc-phone .vc-b { max-width: 98px; font-size: 9px; }
.vc-phone .vc-b.out { right: 6px; }
.vc-phone .vc-b.in { left: 6px; }
.vc-txt { position: relative; }
.vc-sz { visibility: hidden; }
.vc-ty { position: absolute; inset: 0; }
.vc-b.sealed .vc-ty { color: #ff7a66; }
.vc-file { display: flex; align-items: center; gap: 7px; width: 132px; }
.vc-phone .vc-file { width: 100px; }
.vc-doc { flex: none; width: 15px; height: 19px; border-radius: 2px; background: #f3ede6; clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%); }
.vc-file > div { flex: 1; min-width: 0; }
.vc-file b { display: block; font: 600 9.5px/1.2 var(--mono); }
.vc-file span { display: block; font: 500 8px/1.3 var(--mono); color: #8a817c; }
.vc-prog { display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: rgba(243, 237, 230, .1); overflow: hidden; }
.vc-prog i { display: block; height: 100%; background: #ff5a45; transform-origin: 0 50%; transform: scaleX(0); }
.vc-file.done .vc-prog i { background: #f3ede6; }
.vc-sys { position: absolute; left: 0; right: 0; top: 0; text-align: center; font: 500 8px/16px var(--mono); color: #ff5a45; }
.vc-cap {
  left: 0; top: 0; width: 60px; height: 20px; display: flex; align-items: center; gap: 4px; padding: 0 7px; overflow: hidden; z-index: 3;
  border-radius: 999px; border: 1px solid #ff5a45; background: #1b1211; box-shadow: 0 0 16px rgba(255, 90, 69, .55);
  font: 600 8px/1 var(--mono); color: #ff7a66; white-space: nowrap;
}
.vc-lock { flex: none; position: relative; width: 7px; height: 6px; margin-top: 3px; border-radius: 1.5px; background: #ff5a45; }
.vc-lock::before { content: ""; position: absolute; left: 1px; top: -4px; width: 5px; height: 5px; box-sizing: border-box; border: 1.3px solid #ff5a45; border-bottom: 0; border-radius: 3px 3px 0 0; }
.vc-dot { left: 0; top: 0; width: 5px; height: 5px; border-radius: 50%; background: #ff5a45; box-shadow: 0 0 6px #ff5a45; }
.vc-chunk { left: 0; top: 0; width: 6px; height: 6px; border-radius: 1.5px; background: #f3ede6; box-shadow: 0 0 6px rgba(255, 90, 69, .85); }
.vc-tree { opacity: 0; }
.vc-tree line { stroke: rgba(243, 237, 230, .2); stroke-width: 1.2; transition: stroke .3s; }
.vc-tree line.lit { stroke: #ff5a45; }
.vc-tree circle { fill: #110f0f; stroke: rgba(243, 237, 230, .45); stroke-width: 1.3; transform-box: fill-box; transform-origin: center; transition: fill .3s, stroke .3s; }
.vc-tree circle.empty { stroke-dasharray: 2 2; }
.vc-tree circle.lit { fill: #ff5a45; stroke: #ff5a45; }
.vc-epoch { left: 233px; width: 180px; top: 276px; display: flex; justify-content: center; align-items: center; gap: 5px; font: 500 9px/1 var(--mono); color: #8a817c; white-space: nowrap; }
.vc-epoch b { display: inline-block; font: 700 11px/1 var(--mono); color: #f3ede6; transition: color .3s; }
.vc-epoch em { font: italic 400 11px/1 Georgia, 'Times New Roman', serif; color: #ff5a45; }
.vc-key { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #8a817c; transition: border-color .3s; }
.vc-epoch.new .vc-key { border-color: #ff5a45; }
.vc-epoch.new b { color: #ff5a45; }
.vc-scrim { inset: 0; z-index: 7; opacity: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(7, 7, 7, .93), rgba(7, 7, 7, .78)); }
.vc-tag { left: 0; right: 0; top: 118px; z-index: 8; text-align: center; }
.vc-tag p { font: 400 36px/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.02em; color: #f3ede6; }
.vc-tag p + p { font-style: italic; color: #ff5a45; }

/* 45-workflow.css */
/* ---------- AI workflows (fx/workflow.js) ---------- */
/* A node canvas in the spirit of workflow editors: steps light up column by column, packets run along the edges
   and the panel below shows the data each step produces. */
.wf { margin-bottom: clamp(56px, 7vw, 96px); }
.wf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wf-tabs button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--muted);
  font: 500 .9375rem/1 var(--font); transition: color .2s, border-color .2s, background-color .2s;
}
.wf-tabs button i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color .2s, box-shadow .2s; }
.wf-tabs button:hover { color: var(--text); border-color: rgba(255, 30, 60, .5); }
.wf-tabs [aria-selected="true"] { color: #fff; border-color: rgba(255, 30, 60, .6); background: rgba(255, 30, 60, .1); }
.wf-tabs [aria-selected="true"] i { background: var(--red); box-shadow: 0 0 10px var(--red); }

.wf-stage {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(70% 120% at 35% 50%, rgba(255, 30, 60, .07), transparent 65%), rgba(6, 6, 8, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wf-graph {
  position: relative; min-height: 360px; padding: 24px;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: 11px 11px;
}
.wf-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wf-edges .e { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; transition: stroke .4s; }
.wf-edges .e.on { stroke: rgba(255, 60, 80, .7); stroke-dasharray: 5 7; animation: wf-dash .9s linear infinite; }
.wf-edges .e.done { stroke: rgba(255, 60, 80, .35); }
@keyframes wf-dash { to { stroke-dashoffset: -24; } }
.wf-edges .pk { fill: #fff; filter: drop-shadow(0 0 4px #ff1e3c) drop-shadow(0 0 10px #ff1e3c); }
.wf-edges .pk-trail { fill: none; stroke: #ff1e3c; stroke-width: 2.4; stroke-linecap: round; opacity: .8; filter: drop-shadow(0 0 6px #ff1e3c); }

/* Without the script the steps are a plain wrapped list. */
.wf-flow { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.wf.laid .wf-flow { position: absolute; inset: 0; display: block; }
.wf-node {
  display: flex; align-items: center; gap: 10px; width: var(--nw, 176px); padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line-2); background: #0b0b0e;
  box-shadow: 0 12px 30px -14px #000;
  transition: border-color .45s, box-shadow .6s, opacity .45s;
}
.wf.laid .wf-node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
.wf.laid .wf-node:not(.on) { opacity: .42; }
.wf-node.on { border-color: rgba(255, 255, 255, .24); }
.wf-node.k-ai.on { border-color: rgba(255, 30, 60, .75); box-shadow: 0 0 0 1px rgba(255, 30, 60, .25), 0 0 36px -6px rgba(255, 30, 60, .6); }
.wf-node.k-human.on { border-color: rgba(255, 255, 255, .55); }
.wf-node.k-out.on { border-color: rgba(46, 224, 138, .55); box-shadow: 0 0 30px -10px rgba(46, 224, 138, .5); }
.wf-node.hit { animation: wf-hit .7s var(--expo); }
@keyframes wf-hit { 35% { scale: 1.07; } }
.wf-ico {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--s3); color: var(--muted); transition: color .4s, background-color .4s;
}
.wf-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.k-ai .wf-ico { background: linear-gradient(135deg, var(--blood), var(--red)); color: #fff; }
.k-ai.on .wf-ico { box-shadow: 0 0 16px -2px var(--red); }
.k-out.on .wf-ico { color: var(--up); }
.k-human.on .wf-ico { color: #fff; }
.wf-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wf-txt b { font-size: .875rem; font-weight: 600; color: #fff; }
.wf-txt small { margin-top: 2px; font: 400 .6875rem/1.3 var(--mono); color: var(--dim); }
@media (prefers-reduced-motion: no-preference) {
  .k-ai.on.busy .wf-ico svg { animation: wf-spin 1.6s var(--ease) infinite; }
}
@keyframes wf-spin { 50% { rotate: 90deg; scale: .8; } 100% { rotate: 180deg; } }

.wf-inspect {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 168px; padding: 20px 24px 22px;
  border-top: 1px solid var(--line); background: rgba(0, 0, 0, .45);
}
.wf-ins-h { display: flex; align-items: center; gap: 8px; font: 500 .75rem/1 var(--mono); color: var(--dim); }
.wf-ins-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: caret 1.2s steps(1) infinite; }
.wf-ins-body { display: flex; flex-wrap: wrap; gap: 14px 28px; font: 400 .8125rem/1.6 var(--mono); color: #d7d7da; white-space: pre-wrap; word-break: break-word; }
.wf-ins-body .blk { flex: 1 1 260px; min-width: 0; animation: line-in .35s var(--expo) both; }
.wf-ins-body .blk + .blk { padding-left: 28px; border-left: 1px dashed var(--line-2); }
.wf-ins-body .blk-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #fff; font-weight: 500; }
.wf-ins-body .blk-h::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--muted); }
.wf-ins-body .k-ai .blk-h::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.wf-ins-body .k-out .blk-h::before { background: var(--up); }
.wf-ins-body .k-human .blk-h::before { background: #fff; }
.wf-ins-body .cur::after { content: ''; display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--red); animation: caret 1s steps(1) infinite; }
.wf-note { margin-top: 14px; }

@media (max-width: 640px) {
  .wf-ins-body .blk + .blk { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px dashed var(--line-2); }
}
@media (max-width: 560px) {
  .wf-inspect { padding: 16px; min-height: 190px; }
  .wf-graph { padding: 16px; }
  .wf-tabs button { padding: 9px 13px; font-size: .875rem; }
  .wf-txt b { font-size: .8125rem; }
  .wf-node { gap: 8px; padding: 9px 10px; }
  .wf-ico { width: 26px; height: 26px; }
}

/* ---------- Services ---------- */
.svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.svc-item { padding: 34px 0 38px; border-top: 1px solid var(--line); }
.svc-ico { width: 44px; height: 44px; margin-bottom: 18px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255, 30, 60, .55)); overflow: visible; }
.svc-ico path, .svc-ico circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .svc-item:not(.in) .svc-ico :is(path, circle) { stroke-dashoffset: 1; }
.js .svc-item.in .svc-ico :is(path, circle) { transition: stroke-dashoffset 1.4s var(--expo) .2s; }
.svc-ico .pk { fill: #fff; stroke: none; display: none; }
.ico-lens .spark { fill: rgba(255, 30, 60, .22); }
@media (prefers-reduced-motion: no-preference) {
  .ico-voice path { transform-box: fill-box; transform-origin: center; animation: eq 1.3s ease-in-out infinite; }
  .ico-voice path:nth-child(2) { animation-delay: -.2s; } .ico-voice path:nth-child(3) { animation-delay: -.5s; }
  .ico-voice path:nth-child(4) { animation-delay: -.9s; } .ico-voice path:nth-child(5) { animation-delay: -.3s; }
  .ico-voice path:nth-child(6) { animation-delay: -.7s; }
  .ico-saas path:nth-child(5) { animation: caret 1.1s steps(1) infinite; }
  .ico-lens .spark { transform-box: fill-box; transform-origin: center; animation: spark 2.6s ease-in-out infinite; }
  @supports (offset-path: path('M0 0')) {
    .ico-flow .pk { display: block; offset-path: path('M16 13H24V35H32'); animation: pk-run 2.4s var(--ease) infinite; }
  }
}
@keyframes eq { 50% { transform: scaleY(.45); } }
@keyframes spark { 50% { transform: scale(.7) rotate(45deg); fill: rgba(255, 30, 60, .55); } }
@keyframes pk-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.svc-item h3 { font: 600 1.25rem/1.25 var(--display); letter-spacing: -.01em; }
.svc-item p { margin-top: 12px; color: var(--muted); max-width: 56ch; }
.svc-item .tech-line { font: 400 .8125rem/1.6 var(--mono); color: var(--dim); }
.svc-item .proof { font-size: .9375rem; color: var(--dim); }
.proof a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 30, 60, .5); }
.proof a:hover { border-bottom-color: var(--red); }
@media (max-width: 760px) { .svcs { grid-template-columns: 1fr; } }

/* 50-tech-oss.css */
/* ---------- Tech map ---------- */
.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.constellation {
  position: relative; min-height: 580px; border-radius: 20px; overflow: hidden; cursor: grab; touch-action: pan-y;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255, 30, 60, .1), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .2), rgba(0, 0, 0, .75));
}
.constellation.drag { cursor: grabbing; }
.constellation canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.const-hint { position: absolute; left: 18px; bottom: 14px; font: 400 .75rem/1 var(--mono); color: var(--dim); pointer-events: none; }
.const-tip, .mesh-tip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 270px;
  background: rgba(8, 8, 10, .94); border: 1px solid rgba(255, 30, 60, .35); border-radius: 10px;
  padding: 10px 12px; font-size: .8125rem; line-height: 1.45; color: var(--muted);
  box-shadow: 0 14px 40px -12px #000, 0 0 30px -12px var(--glow);
}
.const-tip strong { display: block; color: #fff; font-weight: 600; margin-bottom: 3px; }
.const-tip em { font-style: normal; color: var(--red); font: 500 .6875rem/1 var(--mono); display: block; margin-bottom: 6px; }

.radar-box {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.radar-box h3 { font: 600 1rem/1.2 var(--display); }
.radar { width: 100%; aspect-ratio: 6 / 5; display: block; }
.areas { display: grid; gap: 4px; }
.areas button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer;
  color: var(--muted); font-size: .9375rem; text-align: left; transition: all .2s;
}
.areas .lvl { flex: none; display: inline-flex; gap: 3px; }
.areas .lvl i { width: 11px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.areas .lvl i.on { background: var(--red); box-shadow: 0 0 6px rgba(255, 30, 60, .45); }
.areas button:hover, .areas button[aria-pressed="true"] { color: #fff; border-color: rgba(255, 30, 60, .4); background: rgba(255, 30, 60, .08); }

.tech-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; margin-top: 40px; }
.tech-area h3 { font: 500 .75rem/1 var(--mono); letter-spacing: .04em; color: var(--dim); margin-bottom: 12px; }
@media (max-width: 960px) {
  .tech-grid { grid-template-columns: 1fr; }
  .constellation { min-height: 440px; }
  .radar-box { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; }
  .radar-box h3, .radar-box .hint { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .constellation { min-height: 380px; }
  .radar-box { grid-template-columns: 1fr; }
  .radar { max-width: 260px; margin-inline: auto; }
}

/* ---------- Open source ---------- */
.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.repo { border-radius: 16px; }
.repo > a {
  position: relative; height: 100%; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .5s var(--expo), border-color .3s, box-shadow .4s;
}
.repo > a:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(255, 30, 60, .45); }
.repo-anim {
  display: block; position: relative; height: 172px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(80% 120% at 50% 100%, rgba(255, 30, 60, .08), transparent 70%), #060607;
}
.repo-anim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.repo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.repo-top .i { color: var(--dim); transition: color .2s, transform .3s var(--expo); }
.repo > a:hover .repo-top .i { color: var(--red); transform: translate(2px, -2px); }
.repo-name { font: 700 1.0625rem/1.2 var(--display); color: #fff; }
.repo-desc { padding: 10px 20px 0; color: var(--muted); font-size: .9375rem; flex: 1; }
.repo-meta { display: flex; flex-wrap: wrap; gap: 14px; padding: 16px 20px 18px; color: var(--dim); font: 400 .75rem/1 var(--mono); }
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.stars .i { width: 12px; height: 12px; color: var(--red); filter: drop-shadow(0 0 4px var(--red)); }
.more { margin-top: 32px; }
/* DevBridge, the AI tool, leads the list across the full width. */
@media (min-width: 760px) {
  .repo.feat { grid-column: 1 / -1; }
  .repo.feat > a { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .repo.feat .repo-anim { grid-row: 1 / -1; height: auto; min-height: 250px; border-bottom: 0; border-right: 1px solid var(--line); }
  .repo.feat .repo-top { padding-top: 26px; }
  .repo.feat .repo-name { font-size: 1.375rem; }
  .repo.feat .repo-desc { font-size: 1rem; }
}
@media (max-width: 400px) { .repos { grid-template-columns: 1fr; } }

/* 60-status-rest.css */
/* ---------- Mission control (status) ---------- */
.mission { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.radar-wrap { position: sticky; top: calc(var(--hdr) + 24px); }
.mission-radar { position: relative; aspect-ratio: 1; border-radius: 50%; }
.mission-radar canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.radar-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.radar-center strong { font: 700 1.75rem/1 var(--display); color: #fff; text-shadow: 0 0 20px var(--glow); }
.radar-center span { font: 400 .6875rem/1 var(--mono); color: var(--dim); letter-spacing: .08em; }
.radar-wrap .hint { margin-top: 16px; text-align: center; }

.svc { border-top: 1px solid var(--line); }
.svc li {
  display: grid; grid-template-columns: 10px minmax(150px, 200px) minmax(0, 1fr) 70px 112px; gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.svc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.up .svc-dot { background: var(--up); box-shadow: 0 0 12px rgba(46, 224, 138, .6); }
.down .svc-dot { background: var(--warn); box-shadow: 0 0 12px rgba(255, 176, 32, .6); animation: caret 1s steps(1) infinite; }
.svc-name { font-weight: 600; display: flex; flex-direction: column; line-height: 1.3; }
.svc-name small { font: 400 .75rem/1.3 var(--mono); color: var(--dim); }
.svc-bars { position: relative; display: flex; gap: 2px; height: 34px; align-items: stretch; min-width: 0; overflow: hidden; }
.svc-bars i { flex: 1 1 0; min-width: 2px; max-width: 8px; margin-block: 6px; border-radius: 2px; background: var(--line-2); }
.svc-bars i.u { background: rgba(46, 224, 138, .55); }
.svc-bars i.d { background: var(--warn); }
.svc-bars canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ekg .svc-bars i { visibility: hidden; }
.svc-ms { font: 400 .8125rem/1 var(--mono); color: var(--muted); text-align: right; }
.svc-state { font-size: .875rem; color: var(--muted); text-align: right; }
.up .svc-state { color: var(--up); }
.down .svc-state { color: var(--warn); }
.status-foot { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--dim); }
.status-next { font-family: var(--mono); font-size: .8125rem; }
.svc li.ping .svc-dot { animation: ping 1s var(--ease); }
@media (max-width: 960px) {
  .mission { grid-template-columns: 1fr; }
  .radar-wrap { position: static; max-width: 360px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .svc li { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px 14px; }
  .svc-bars { grid-column: 2 / -1; grid-row: 2; height: 28px; }
  .svc-ms { display: none; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--s1); box-shadow: 0 40px 80px -40px #000; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; max-width: 64ch; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info > p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.contact dl { margin-top: 36px; display: grid; gap: 20px; }
.contact dt { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: .875rem; }
.contact dt .i { color: var(--red); }
.contact dd { margin-top: 4px; font-size: 1.125rem; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.contact dd a:hover { border-bottom-color: var(--red); }
.contact dd small { display: block; color: var(--dim); font-size: .875rem; margin-top: 2px; }
.contact-loc { margin-top: 20px; color: var(--dim); }
.social { display: flex; gap: 12px; margin-top: 28px; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-size: .9375rem; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.social-link:hover { color: var(--text); border-color: var(--red); }
.social-link > .i:last-of-type { display: none; }

.form {
  display: grid; gap: 20px; padding: clamp(24px, 4vw, 36px); border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 30, 60, .18), 0 0 30px -10px var(--glow); }
.field [aria-invalid="true"] { border-color: var(--warn); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-msg { font-size: .9375rem; min-height: 1.5em; }
.form-msg.ok { color: var(--up); }
.form-msg.err { color: var(--warn); }
.form-msg a { color: inherit; }

.route { display: flex; align-items: center; gap: 0; font: 500 .6875rem/1 var(--mono); color: var(--dim); }
.route-node { padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; transition: all .3s; }
.route-line { position: relative; flex: 1; min-width: 14px; height: 1px; background: var(--line-2); }
.route-line i { position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); opacity: 0; }
.route.sending .route-line i { animation: pkt .5s linear forwards; }
.route.sending .route-line:nth-of-type(2) i { animation-delay: .5s; }
.route.sending .route-line:nth-of-type(3) i { animation-delay: 1s; }
@keyframes pkt { 0% { opacity: 1; left: 0; } 100% { opacity: 1; left: calc(100% - 5px); } }
.route.sending .route-node { color: var(--muted); }
.route.ok .route-node { color: #fff; border-color: rgba(46, 224, 138, .5); }
.route.ok .route-node:last-child { background: rgba(46, 224, 138, .12); box-shadow: 0 0 18px -4px rgba(46, 224, 138, .6); }
.route.ok .route-line { background: rgba(46, 224, 138, .5); }
.route.err .route-node:not(:first-child) { border-color: rgba(255, 176, 32, .5); color: var(--warn); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }
@media (max-width: 420px) { .route { font-size: .625rem; } .route-node { padding: 5px 6px; } }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding-bottom: 40px; color: var(--dim); font-size: .9375rem; overflow: hidden; background: linear-gradient(to bottom, transparent, rgba(40, 0, 8, .35)); }
.ftr-big { padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 2vw, 24px); text-align: center; user-select: none; }
.ftr-big span {
  display: inline-block; white-space: nowrap; font: 800 clamp(2rem, 10.4vw, 12.5rem)/.9 var(--display); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
  background: radial-gradient(30vw circle at var(--fx) 65%, var(--red), rgba(255, 30, 60, .25) 38%, transparent 62%);
  -webkit-background-clip: text; background-clip: text;
}
@media (prefers-reduced-motion: no-preference) {
  .ftr-big:not(.hot) span { animation: ftr-sweep 10s ease-in-out infinite alternate; }
}
@keyframes ftr-sweep { from { --fx: -10%; } to { --fx: 110%; } }
.ftr-in { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr a { text-decoration: none; transition: color .2s; }
.ftr a:hover { color: var(--text); }
.ftr-hint { margin-left: auto; }
.text-btn { background: none; border: 0; padding: 0; color: var(--dim); cursor: pointer; font-size: .9375rem; text-align: left; }
.text-btn:hover { color: var(--text); }
@media (max-width: 760px) { .ftr-hint { margin-left: 0; display: none; } }

/* ---------- Terminal dialog ---------- */
.term {
  width: min(760px, calc(100% - 32px)); height: min(70vh, 520px); padding: 0;
  background: #060607; color: #d7d7da; border: 1px solid rgba(255, 30, 60, .35); border-radius: 12px;
  box-shadow: 0 40px 100px -20px rgba(255, 30, 60, .35), 0 30px 60px -20px #000;
  font: 400 .875rem/1.6 var(--mono);
}
.term[open] { display: flex; flex-direction: column; }
.term::backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--font); font-size: .875rem; }
.term-bar .icon-btn { width: 30px; height: 30px; border: 0; }
.term-out { flex: 1; overflow-y: auto; padding: 16px; white-space: pre-wrap; word-break: break-word; }
.term-out .c { color: var(--text); }
.term-out .c b { color: var(--red); font-weight: 500; }
.term-out .m { color: var(--dim); }
.term-out .e { color: var(--warn); }
.term-out .k { color: var(--up); }
.term-out a { color: #fff; text-decoration-color: var(--red); }
.term-line { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.term-line label { color: var(--red); white-space: nowrap; }
.term-line input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: inherit; caret-color: var(--red); }
@media (max-width: 560px) { .term-line label { display: none; } }

/* ---------- Easter egg ---------- */
.matrix { position: fixed; inset: 0; z-index: 150; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.matrix.on { opacity: .9; }

/* ---------- 404 ---------- */
.nf { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.nf .hero-name { font-size: clamp(2.25rem, 6vw, 4.5rem); }
.nf .hero-lead { margin-top: 8px; }
