/* Gracián Baena — systems-lab · FINAL EXTREME
   Technical world · ice neon accent track
   Family chrome → hub FINAL EXTREME (Fraunces · Inter · JetBrains · GB).
   Accents as tracks: ice = PLAY. No deck champagne mark. No Syne / Plex / hot pink.
*/
:root,
[data-theme="dark"] {
  /* Family chrome → hub FINAL EXTREME; ice = PLAY track */
  --bg: #06080d;
  --bg2: #0a0d13;
  --surface: #0e131a;
  --surface2: #141b24;
  --surface3: #18212b;
  --ink: #f7f9fc;
  --muted: #9aa8b6;
  --line: rgba(247, 249, 252, 0.10);
  --line-strong: rgba(247, 249, 252, 0.22);
  --accent: #f7f9fc;
  --accent-ink: #06080d;
  --yellow: #f3d437;
  --yellow-dim: rgba(243, 212, 55, 0.16);
  --yellow-glow: rgba(243, 212, 55, 0.32);
  --nude: #e8d9c3;
  --sage: #7dcaa5;
  --sage-dim: rgba(125, 202, 165, 0.16);
  --sage-glow: rgba(125, 202, 165, 0.28);
  --ice: #62e8ff;
  --ice-dim: rgba(98, 232, 255, 0.16);
  --ice-glow: rgba(98, 232, 255, 0.34);
  --pad: clamp(16px, 4.5vw, 80px);
  --max: 1180px;
  --header: 72px;
  --r: 6px;
  --r-lg: 18px;
  --display: "Fraunces", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-ice: 0 20px 60px rgba(122, 243, 255, 0.14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --tap: 44px;
  --glass: rgba(14, 19, 26, 0.76);
  --vignette: rgba(0, 0, 0, 0.58);
  --film: rgba(247, 249, 252, 0.45);
}

[data-theme="light"] {
  --bg: #f5f7fa;
  --bg2: #e9eef3;
  --surface: #ffffff;
  --surface2: #f3f6f8;
  --surface3: #eaf0f4;
  --ink: #101820;
  --muted: #53616e;
  --line: rgba(16, 24, 32, 0.12);
  --line-strong: rgba(16, 24, 32, 0.23);
  --accent: #101820;
  --accent-ink: #f5f7fa;
  --yellow: #8c6700;
  --yellow-dim: rgba(166, 124, 18, 0.16);
  --yellow-glow: rgba(166, 124, 18, 0.22);
  --nude: #a98a63;
  --sage: #216844;
  --sage-dim: rgba(36, 104, 72, 0.14);
  --sage-glow: rgba(36, 104, 72, 0.2);
  --ice: #006674;
  --ice-dim: rgba(0, 127, 142, 0.13);
  --ice-glow: rgba(0, 127, 142, 0.20);
  --shadow: 0 28px 60px rgba(16, 24, 32, 0.13);
  --shadow-sm: 0 12px 30px rgba(16, 24, 32, 0.10);
  --shadow-ice: 0 18px 46px rgba(0, 127, 142, 0.12);
  --glass: rgba(255, 255, 255, 0.84);
  --vignette: rgba(70, 80, 90, 0.10);
  --film: rgba(16, 24, 32, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
html, body { margin: 0; min-height: 100%; }
body {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-on { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
iframe { border: 0; width: 100%; display: block; }
::selection { background: var(--ice); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px; }

/* atmosphere */
.fx { pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.fx-noise {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px; mix-blend-mode: overlay;
}
.fx-grid {
  position: absolute; inset: 0; opacity: .055;
  background-image:
    linear-gradient(var(--ice) 1px, transparent 1px),
    linear-gradient(90deg, var(--ice) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 5%, transparent 70%);
}
.fx-scan {
  position: absolute; left: 0; right: 0; height: 28%;
  background: linear-gradient(180deg, transparent, var(--ice-dim), transparent);
  animation: scan 9s linear infinite;
  opacity: .45;
}
@keyframes scan {
  0% { top: -30%; }
  100% { top: 110%; }
}
.fx-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .55; }
.fx-orb-a {
  width: min(560px, 75vw); height: min(560px, 75vw);
  top: -20%; right: -10%;
  background: radial-gradient(circle, var(--ice-glow), transparent 68%);
}
.fx-orb-b {
  width: min(420px, 60vw); height: min(420px, 60vw);
  bottom: 10%; left: -12%;
  background: radial-gradient(circle, rgba(243,212,55,.18), transparent 70%);
}

.skip {
  position: absolute; left: 14px; top: 14px; z-index: 100;
  padding: 12px 16px; min-height: var(--tap);
  background: var(--ice); color: var(--accent-ink);
  font: 800 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--r); transform: translateY(-220%);
}
.skip:focus { transform: none; }

/* chrome → hub */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; }
.brand-mark {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 4px;
  font: 800 12px/1 var(--mono);
  letter-spacing: .04em;
  background: var(--surface);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.brand:hover .brand-mark {
  background: var(--ice); color: var(--accent-ink); border-color: var(--ice);
  box-shadow: 0 0 0 4px var(--ice-dim);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-text b { font: 800 11px/1.1 var(--mono); letter-spacing: .16em; white-space: nowrap; }
.brand-text small {
  font: 700 9px/1.2 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 12px; min-height: var(--tap);
  display: inline-flex; align-items: center;
  font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border-radius: var(--r);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface2); }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.seg {
  display: inline-flex; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.seg-btn {
  min-width: 40px; min-height: 38px; padding: 0 10px; border-radius: 999px;
  font: 700 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg-btn.is-active, .seg-btn[aria-pressed="true"] {
  background: var(--ink); color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap); padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.burger { display: grid; gap: 4px; width: 16px; }
.burger i { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle.is-open .burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.is-open .burger i:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.shell {
  position: relative; z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad) clamp(64px, 10vw, 120px);
}

/* hero */
.hero {
  display: grid; gap: 28px;
  padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 64px);
  align-items: stretch;
}
.hero-frame {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid color-mix(in srgb, var(--ice) 35%, transparent);
  border-radius: calc(var(--r-lg) + 4px);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, var(--ice-dim), transparent 55%),
    linear-gradient(160deg, var(--surface2), var(--surface));
  box-shadow: var(--shadow-ice);
  overflow: hidden;
}
.hero-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ice);
  box-shadow: 0 0 0 0 var(--ice-glow);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--ice-glow); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.eyebrow {
  margin: 0;
  font: 700 11px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  margin: 0 0 18px;
  font: 700 clamp(40px, 9vw, 84px)/.98 var(--display);
  letter-spacing: -.04em; max-width: 13ch;
}
.hero h1 em {
  font-style: italic; font-weight: 500;
  color: var(--ice);
  text-shadow: 0 0 40px var(--ice-glow);
}
.lead {
  margin: 0 0 24px;
  font: 500 clamp(15px, 1.6vw, 18px)/1.55 var(--sans);
  color: var(--muted); max-width: 48ch;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 20px; border-radius: 999px;
  font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-play {
  background: var(--ice); color: var(--accent-ink);
  box-shadow: 0 12px 36px var(--ice-glow);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font: 600 11px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted);
}
.pill.live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ice);
  box-shadow: 0 0 0 3px var(--ice-dim);
}
.hero-rail {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
.rail-card {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid; gap: 4px;
}
.rail-card .rail-code {
  font: 800 10px var(--mono); letter-spacing: .14em; color: var(--ice);
}
.rail-card b { font: 700 13px/1.2 var(--mono); letter-spacing: .06em; }
.rail-card small { font: 600 10px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.rail-live {
  border-color: color-mix(in srgb, var(--ice) 45%, transparent);
  background: linear-gradient(160deg, var(--ice-dim), var(--surface));
}

/* sections */
.section-head { margin-bottom: clamp(20px, 3vw, 32px); }
.section-head h2 {
  margin: 8px 0 0;
  font: 600 clamp(30px, 5vw, 52px)/1.05 var(--display);
  letter-spacing: -.03em;
}
.play, .cs { padding: clamp(18px, 4vw, 36px) 0; }

.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.feat {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .25s;
}
.feat:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--ice) 40%, transparent);
  box-shadow: var(--shadow-ice);
}
.feat-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ice), transparent);
}
.feat-stage {
  position: relative; height: 160px; margin: 2px 0 6px;
  border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background: #05070c;
}
.stage-live {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font: 800 9px var(--mono); letter-spacing: .14em;
  padding: 4px 8px; border-radius: 999px;
  background: var(--ice); color: var(--accent-ink);
}
.stage-ring {
  position: absolute; inset: 18%;
  border: 1px solid color-mix(in srgb, var(--ice) 30%, transparent);
  border-radius: 50%;
  animation: ring 5s ease-in-out infinite;
}
@keyframes ring {
  0%, 100% { transform: scale(.92); opacity: .35; }
  50% { transform: scale(1.05); opacity: .7; }
}

.feat header { display: flex; justify-content: space-between; align-items: center; }
.code { font: 700 11px var(--mono); letter-spacing: .16em; color: var(--muted); }
.badge {
  font: 800 10px var(--mono); letter-spacing: .12em;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ice) 40%, transparent);
  color: var(--ice); background: var(--ice-dim);
}
.feat h3 {
  margin: 0;
  font: 600 clamp(28px, 3.4vw, 38px)/1.08 var(--display);
  letter-spacing: -.02em;
}
.feat p { margin: 0; color: var(--muted); flex: 1; }
.feat-cta {
  margin-top: auto;
  font: 800 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ice);
}

/* CS */
.cs-hero {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, var(--ice) 32%, transparent);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--surface3), var(--surface));
  overflow: hidden; isolation: isolate;
  margin-bottom: 16px;
}
.cs-glow {
  position: absolute; right: -15%; top: -35%; width: 55%; height: 80%;
  background: radial-gradient(circle, var(--ice-dim), transparent 60%);
  z-index: -1;
}
.cs-hero header { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.live-b {
  background: var(--ice); color: var(--accent-ink); border-color: var(--ice);
}
.cs-hero h3 {
  margin: 0 0 10px;
  font: 600 clamp(28px, 4vw, 42px)/1.08 var(--display);
}
.cs-hero > p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }
.method {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}
.method li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  min-height: var(--tap);
  border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}
.method li span { font: 800 11px var(--mono); letter-spacing: .1em; color: var(--ice); }
.method li b { display: block; font: 700 14px/1.2 var(--sans); margin-bottom: 4px; }
.method li small { display: block; color: var(--muted); font: 500 12px/1.4 var(--sans); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.pillars article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .2s, transform .25s var(--ease);
}
.pillars article:hover { border-color: color-mix(in srgb, var(--ice) 40%, transparent); transform: translateY(-3px); }
.pillars h3 {
  margin: 10px 0 8px;
  font: 600 22px/1.15 var(--display);
}
.pillars p { margin: 0; color: var(--muted); font-size: 14px; }

/* agent */
.agent-block {
  margin: clamp(28px, 5vw, 48px) 0;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) + 2px);
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, var(--ice-dim), transparent 55%),
    var(--surface);
}
.agent-block header { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.agent-block h3 {
  margin: 0 0 10px;
  font: 600 clamp(26px, 3.5vw, 36px)/1.1 var(--display);
}
.agent-block > p { margin: 0 0 18px; color: var(--muted); max-width: 60ch; }
.agent-stage {
  border: 1px solid color-mix(in srgb, var(--ice) 32%, transparent);
  border-radius: 14px;
  overflow: hidden;
  background: #05070c;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ice) 12%, transparent), var(--shadow-ice);
}
.agent-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}
.agent-chrome span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); opacity: .5;
}
.agent-chrome span:nth-child(1) { background: #ff5f57; opacity: .8; }
.agent-chrome span:nth-child(2) { background: #febc2e; opacity: .8; }
.agent-chrome span:nth-child(3) { background: #28c840; opacity: .8; }
.agent-chrome b {
  margin-left: 8px;
  font: 700 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.agent-stage iframe { height: min(560px, 70vh); min-height: 420px; background: #0a0c12; }
.hint { margin: 14px 0 0; }
.hint a {
  font: 800 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ice);
  border-bottom: 1px solid color-mix(in srgb, var(--ice) 35%, transparent);
}

/* split */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin: clamp(20px, 4vw, 36px) 0;
}
.box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.box.good {
  border-color: color-mix(in srgb, var(--ice) 40%, transparent);
  background: linear-gradient(160deg, var(--ice-dim), var(--surface));
}
.box h3 {
  margin: 0 0 12px;
  font: 600 22px/1.15 var(--display);
}
.box ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); }
.box li { margin: 0 0 8px; }
.note {
  margin: 18px 0 0;
  font: 600 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted);
}

/* footer + drawer */
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 6vw, 72px);
  padding: 26px var(--pad);
  background: var(--bg2);
}
.foot-inner {
  width: min(100%, var(--max)); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
  font: 600 11px var(--mono); letter-spacing: .06em; color: var(--muted);
}
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ice); }

.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
}
.drawer[hidden] { display: none; }
.drawer-panel {
  position: absolute; top: var(--header); right: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header) - 24px); overflow: auto;
}
.drawer-panel a {
  display: flex; align-items: center; min-height: var(--tap); padding: 0 14px;
  border-radius: var(--r);
  font: 700 13px var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.drawer-panel a:hover { background: var(--surface2); }

.reveal { opacity: 1; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.play, .cs, .agent-block { scroll-margin-top: 92px; }
.reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .hero { grid-template-columns: 1.45fr .55fr; gap: 18px; }
  .hero-rail { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .hero-rail { order: 2; }
}
@media (max-width: 640px) {
  .topbar { --header: 64px; min-height: 64px; padding: 0 12px; gap: 8px; }
  .topbar-actions { gap: 6px; }
  .brand-text { display: flex; }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: clamp(36px, 12vw, 56px); }
  .hero-frame { padding: 20px 16px; }
  .feat-stage { height: 130px; }
  .agent-stage iframe { min-height: 380px; height: 60vh; }
  .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .seg-btn { min-width: 36px; padding: 0 8px; }
  .menu-toggle b { display: none; }
  .rail-card b { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress i,
  .hero .actions .btn { transition: none; }
  .fx-scan, .pulse-dot, .stage-ohana i, .stage-vortex b, .stage-ring { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feat:hover, .btn:hover, .pillars article:hover, .rail-card:hover { transform: none; }
}


/* V5 composition: one visual hierarchy, spacious project index. */
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body { background: var(--bg); }
.shell { width: min(100%, 1320px); }
.hero { padding-block: clamp(48px, 7vw, 100px); }
.hero-frame { padding: clamp(28px, 4vw, 56px); border-radius: 24px; background: radial-gradient(ellipse at 0 0, var(--ice-dim), transparent 65%), var(--surface); box-shadow: none; }
.hero h1 { font-size: clamp(48px, 6.8vw, 94px); line-height: 1.02; letter-spacing: -.055em; margin-block: 30px 24px; }
.hero h1 em { text-shadow: none; }
.hero .lead { max-width: 44ch; font-weight: 400; }
.hero-meta-row { margin: 0; }
.hero-rail { gap: 12px; }
.rail-card { position: relative; padding: 24px; border-radius: 18px; align-content: center; gap: 10px; transition: border-color .2s, background .2s; }
.rail-card::after { content: "↗"; position: absolute; top: 22px; right: 22px; color: var(--muted); }
.rail-card b { font-size: clamp(17px, 2vw, 23px); letter-spacing: -.02em; }
.rail-card small { font-size: 11px; line-height: 1.5; }
.rail-card:hover { border-color: var(--ice); background: var(--surface2); }
.rail-code { opacity: .9; }
.rail-building { border-style: dashed; background: var(--surface); }
.rail-building::after { content: none; }
.rail-building:hover { border-color: var(--line); background: var(--surface); }
.rail-status { justify-self: start; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 600 10px/1.4 var(--mono); letter-spacing: .05em; }
.rail-building p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.hero-signal { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; font: 11px/1.5 var(--mono); color: var(--muted); }
.signal-main { color: var(--ice); }
.signal-clock { display: none; }
.section-head { max-width: 760px; }
.section-head h2 { margin-block: 14px 18px; line-height: 1.12; text-wrap: balance; }
.play, .cs { padding-block: 48px; border-top: 1px solid var(--line); }
.feat { min-height: 440px; padding: 28px; }
.feat-stage { height: 180px; border-radius: 12px; }
.feat h3 { font-size: 32px; }
.feat p { max-width: 50ch; }
.feat-cta { margin-top: auto; padding-top: 20px; }
.feat:hover { transform: translateY(-3px); box-shadow: none; }
.btn { text-transform: none; letter-spacing: 0; font: 600 14px/1.3 var(--sans); min-height: 48px; }
.btn-play { color: var(--bg); box-shadow: none; }
.seg-icon { display: grid; place-items: center; padding: 0; }
.seg-btn { min-height: 44px; min-width: 44px; }
.nav a[aria-current="location"] { color: var(--ice); }
.agent-block h2 { font: 600 clamp(28px, 4vw, 40px)/1.15 var(--display); margin-block: 20px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px; border-bottom: 1px solid var(--line); }
.drawer-close { min-width: 44px; min-height: 44px; color: var(--ink); }
body.menu-on { overflow: hidden; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 5px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.fx { opacity: .28; }
.fx-scan, .fx-noise, .fx-orb, .spotlight { display: none; }
.fx-net { width: 100%; height: 100%; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; pointer-events: none; }
.scroll-progress i { display: block; width: var(--sp, 0%); height: 100%; background: var(--ice); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
  .hero-rail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-text { display: none; }
  .hero { padding-block: 32px 40px; }
  .hero h1 { font-size: clamp(42px, 11vw, 68px); }
  .hero-frame { padding: 28px 22px; }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-building:last-child { grid-column: 1 / -1; }
  .rail-card { padding: 20px 14px; }
  .rail-card::after { top: 14px; right: 14px; }
  .rail-card small { font-size: 10px; letter-spacing: 0; }
  .seg-btn { min-width: 38px; }
  .feat { padding: 20px; }
  .fx { display: none; }
  .play, .cs { padding-block: 32px; }
}
@media (max-width: 420px) {
  .topbar-actions { gap: 4px; }
  .seg { padding: 2px; }
  .brand { gap: 0; }
  .menu-toggle { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; scroll-behavior: auto; }
  .fx { display: none; }
}
/* Snapshot overlays are decorative and must never intercept controls. */
::view-transition { pointer-events: none; }
::view-transition-old(root) { display: none; }
::view-transition-new(root) { animation: none; }


/* Systems Lab: editorial layout and interactive field. */
.hero{display:block;padding-block:30px 40px}.hero-frame{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;min-height:480px;padding:40px;border-radius:24px;background:var(--surface);border:1px solid var(--line);overflow:hidden}.hero-content{width:100%;min-width:0;order:-1}.hero-content h1{font-size:clamp(42px,5vw,72px);line-height:1.03;letter-spacing:-.04em;margin:24px 0;max-width:13ch}.hero-content .lead{font-size:16px;line-height:1.8;max-width:46ch}.hero .actions{margin-top:24px}.hero .pills{gap:7px}.hero-signal{margin-top:22px}.hero-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.hero-rail .rail-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-height:84px}.hero-rail .rail-card p{font-size:11px;line-height:1.6}.cover-atlas{position:relative;min-height:410px;width:100%;border:1px solid var(--line);border-radius:18px;background:var(--bg);overflow:hidden;isolation:isolate;scroll-margin-top:100px}#lab-field{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:pan-y}.field-caption{position:absolute;top:18px;left:18px;right:18px;display:flex;justify-content:space-between;gap:16px;pointer-events:none;font:500 9px/1.5 var(--mono);color:var(--muted)}.field-caption span:last-child{max-width:20ch;text-align:right}.cover-links{position:absolute;left:14px;right:14px;bottom:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cover-node{position:relative;display:block;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-decoration:none;transition:border-color .2s,background .2s}.cover-node>span{font:500 8px var(--mono);letter-spacing:.08em;color:var(--muted)}.cover-node strong{display:block;font:500 23px/1.2 var(--display);margin-top:5px}.cover-node b{position:absolute;right:13px;top:13px;color:var(--ice)}.cover-node:hover,.cover-node:focus-visible{border-color:var(--ice);background:var(--surface2)}.cover-node:focus-visible{outline:2px solid var(--ice);outline-offset:2px}
@media(max-width:850px){.hero-frame{grid-template-columns:1fr;gap:24px;padding:28px}.hero-content h1{font-size:clamp(42px,8vw,64px)}.cover-atlas{min-height:370px}.hero-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.hero{padding-block:18px 28px}.hero-frame{padding:22px 18px;border-radius:16px}.hero-content h1{font-size:44px}.hero-content .lead{font-size:14px}.hero-rail{grid-template-columns:1fr}.cover-atlas{min-height:330px}.cover-node strong{font-size:21px}.field-caption{font-size:8px}}
@media(prefers-reduced-motion:reduce){.cover-node{transition:none}}

/* Aigoritmo: four peers in the existing family chrome, no autoplay or remote UI. */
.ai-showcase { margin-top: clamp(70px, 9vw, 130px); scroll-margin-top: calc(var(--header) + 24px); }
.ai-roster { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.ai-persona { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.ai-persona img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; }
.ai-persona-copy { padding: 22px 20px 24px; }
.ai-persona h3 { margin: 10px 0 8px; font: 500 clamp(28px,3vw,38px)/1.15 var(--display); color: var(--ink); }
.ai-persona p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; min-height: 7em; }
.ai-persona code, .ai-character-tag { display: block; color: var(--ice); font: 500 10px/1.6 var(--mono); overflow-wrap: anywhere; }
.ai-arcana .ai-character-tag { color: var(--ink); }
.ai-arcano .ai-character-tag { color: var(--muted); }
.ai-system { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 32px; padding: clamp(22px,3vw,36px); margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(115deg,var(--ice-dim),transparent 65%),var(--surface); }
.ai-system h3 { font: 500 clamp(26px,3vw,38px)/1.2 var(--display); margin: 18px 0 14px; }
.ai-system p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.ai-launch { align-self: center; }
.ai-launch .btn { width: 100%; justify-content: center; }
.ai-launch p { font-size: 12px; margin-top: 12px; }
.ai-method { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: var(--muted); font: 500 11px/1.6 var(--mono); }
.ai-method [aria-hidden] { color: var(--ice); }
@media(max-width:1000px) { .ai-roster { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .ai-roster { gap: 12px; } .ai-persona-copy { padding: 16px 13px; } .ai-persona p { min-height: 10em; font-size: 12px; } .ai-persona .code { font-size: 9px; } .ai-persona code,.ai-character-tag { font-size: 9px; } .ai-system { grid-template-columns: minmax(0,1fr); gap: 22px; } .ai-method { font-size: 10px; gap: 8px; } }
@media(max-width:360px) { .ai-roster { grid-template-columns: minmax(0,1fr); } .ai-persona { display: grid; grid-template-columns: 100px minmax(0,1fr); } .ai-persona img { height: 100%; aspect-ratio: auto; } .ai-persona p { min-height: 0; margin-bottom: 10px; } .ai-persona h3 { font-size: 27px; } }

/* Real project captures; the external GPU experience starts only on demand. */
.project-poster { height: auto; aspect-ratio: 16 / 10; }
.project-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vortex-live { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); scroll-margin-top: 100px; }
.vortex-copy { padding: clamp(20px, 4vw, 36px); }
.vortex-copy h3 { font-size: clamp(26px, 4vw, 42px); margin: 10px 0; }
.vortex-copy p { max-width: 70ch; }
.vortex-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.project-actions [hidden] { display: none; }
.vortex-window { position: relative; aspect-ratio: 16 / 10; background: #05070c; }
.vortex-window > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vortex-window iframe { position: absolute; inset: 0; width: 100%; height: 100%; background: #05070c; }
.vortex-window.is-running > img { visibility: hidden; }
@media (max-width: 640px) { .vortex-window { aspect-ratio: auto; height: 540px; } }

.feat-vortex .project-poster img,.vortex-window>img{object-fit:cover;object-position:center}.feat-vortex .feat-stage{aspect-ratio:1200/630;height:auto}

.hero-frame .hero-content{order:-1}

.hero .btn-ghost{color:var(--ink);border-color:var(--line);background:var(--surface)}

/* Consistent sections and contained previews throughout the page. */
.shell{max-width:1240px}.section-head{margin-bottom:28px;max-width:760px}.section-head h2{font-size:clamp(30px,4vw,46px);line-height:1.15;letter-spacing:-.03em}.section-head .lead{font-size:16px;line-height:1.8;max-width:66ch}.play,.cs{padding-block:48px}.ai-showcase{margin-top:64px}.featured{gap:20px}.feat{padding:20px;border-radius:18px}.feat h3{font-size:32px}.project-poster,.feat-vortex .feat-stage{height:auto;aspect-ratio:1200/630}.project-poster img{object-fit:contain;background:#06090e}.vortex-live{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:stretch;margin-top:24px;border-radius:18px}.vortex-copy{padding:28px}.vortex-copy h3{font-size:32px;line-height:1.15;margin:12px 0 18px}.vortex-copy p{font-size:14px;line-height:1.8}.vortex-window{aspect-ratio:auto;min-height:360px;height:auto;display:grid;place-items:center;overflow:hidden}.vortex-window>img{object-fit:contain;width:100%;height:auto;aspect-ratio:1200/630}.vortex-window.is-running{min-height:480px}.project-actions{gap:10px}.project-actions .btn{padding:11px 16px;font-size:12px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--surface2);color:var(--ink);text-decoration:none}.project-actions button:first-child{background:var(--ice);color:var(--accent-ink)}.ai-roster{gap:16px}.ai-persona{border-radius:16px}.ai-persona img{aspect-ratio:4/3;object-fit:cover;object-position:50% 30%}.ai-persona-copy{padding:20px}.ai-persona h3{font-size:30px}.ai-persona p{font-size:13px;min-height:8em}.ai-system{border-radius:16px;padding:28px}.pillars{gap:20px}.agent-stage{border-radius:18px;overflow:hidden}.hero .btn-ghost{color:var(--ink);background:var(--surface2);border-color:var(--line)}
@media(max-width:900px){.vortex-live{grid-template-columns:1fr}.vortex-window{min-height:0;aspect-ratio:1200/630}.vortex-window.is-running{aspect-ratio:auto;height:520px}.ai-roster{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.featured,.ai-roster{grid-template-columns:1fr}.feat{padding:16px}.vortex-copy,.ai-system{padding:22px}.ai-persona{display:grid;grid-template-columns:110px minmax(0,1fr)}.ai-persona img{width:100%;height:100%;aspect-ratio:auto}.ai-persona-copy{padding:18px}.ai-persona p{min-height:0;font-size:12px}.ai-persona h3{font-size:26px}.play,.cs{padding-block:32px}.ai-showcase{margin-top:40px}.vortex-window.is-running{height:480px}}

.cs-hero{padding:28px;border-radius:18px}.cs-hero h3{font-size:32px;line-height:1.2}.method{gap:12px}.method li{background:var(--surface2);padding:18px}.pillars article{border-radius:16px;padding:24px}.agent-block{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:16px 28px;padding:28px;border-radius:18px;align-content:start}.agent-block>header,.agent-block>h2,.agent-block>p{grid-column:1;margin:0}.agent-block>h2{font:500 clamp(28px,3vw,40px)/1.15 var(--display)}.agent-block>p{font-size:14px;line-height:1.8}.agent-block>.agent-stage{grid-column:2;grid-row:1/span 4;min-width:0}.split{gap:20px}.split .box{border-radius:16px;padding:26px}.split h3{font-size:25px}.split li{font-size:14px;line-height:1.8}.foot{margin-top:48px;border-top:1px solid var(--line)}.foot-inner{padding-block:28px}.foot-links{flex-wrap:wrap;gap:18px}
@media(max-width:850px){.agent-block{grid-template-columns:1fr;padding:22px}.agent-block>.agent-stage{grid-column:1;grid-row:auto}.cs-hero{padding:22px}}
