/* Mollis Group — operational intelligence visual system */
:root {
  --mx: 50vw;
  --my: 50vh;
  --bg: #0A0B0D;
  --bg-2: #101216;
  --bg-3: #161A1F;
  --surface: #13161B;
  --fg: #E6E8EC;
  --fg-2: #B6BAC2;
  --muted: #6B7079;
  --muted-2: #494E57;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.32);

  --accent: #F2B544;     /* phosphor amber — system signal */
  --accent-2: #6FE0B0;    /* signal green — nominal */
  --accent-3: #FF6B57;    /* alert red — critical */
  --accent-active: var(--accent);
  --accent-ink: #0A0B0D;

  --fs-display: clamp(56px, 8.8vw, 168px);
  --fs-h1: clamp(36px, 5.2vw, 80px);
  --fs-h2: clamp(28px, 3.2vw, 52px);
  --fs-h3: clamp(20px, 1.6vw, 28px);
  --fs-body: 16px;
  --fs-small: 13px;
  --fs-mono: 11px;

  --gut: 24px;
  --col-gap: 24px;
  --section-pad: clamp(72px, 8vw, 140px);

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-mode="automation"] { --accent-active: var(--accent-2); }
[data-mode="creative"]   { --accent-active: var(--accent); }

[data-density="dense"] {
  --gut: 16px; --col-gap: 16px; --section-pad: clamp(56px, 6vw, 100px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg); color: var(--fg); }
html[data-theme="light"],
html[data-theme="light"] body {
  background-color: #f6f3ec;
  color: #111111;
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(1px 1px at 25% 30%, rgba(17,17,17,0.035) 1px, transparent 1.5px),
    radial-gradient(1px 1px at 70% 80%, rgba(17,17,17,0.025) 1px, transparent 1.5px),
    linear-gradient(180deg, #f9f7f0 0%, #f1ece2 100%);
}
html[data-theme="dark"],
html[data-theme="dark"] body {
  background-color: #0d0f10;
  color: #f0ede5;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(1px 1px at 25% 30%, rgba(255,255,255,0.04) 1px, transparent 1.5px),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.03) 1px, transparent 1.5px),
    linear-gradient(180deg, #0B0C0F 0%, #0A0B0D 100%);
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(1px 1px at 25% 30%, var(--noise-a) 1px, transparent 1.5px),
    radial-gradient(1px 1px at 70% 80%, var(--noise-b) 1px, transparent 1.5px),
    linear-gradient(180deg, var(--body-start) 0%, var(--body-end) 100%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
body:has(.cursor) a,
body:has(.cursor) button,
body:has(.cursor) input,
body:has(.cursor) textarea,
body:has(.cursor) select { cursor: none; }

::selection { background: var(--accent-active); color: var(--accent-ink); }

.cursor {
  position: fixed;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
html[data-theme="light"] .cursor {
  mix-blend-mode: normal;
}
.cursor-ring,
.cursor-dot,
.cursor-vector {
  position: absolute;
  display: block;
  transition: transform .16s ease, opacity .16s ease, border-color .16s ease, background .16s ease;
}
.cursor-ring {
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent-active) 82%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-active) 28%, transparent);
}
html[data-theme="light"] .cursor-ring {
  border-color: var(--accent-active);
  background: color-mix(in srgb, var(--accent-active) 8%, transparent);
  box-shadow: 0 12px 24px rgba(17, 17, 17, .16), 0 0 0 1px rgba(255, 255, 255, .55) inset;
}
.cursor-dot {
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-active);
  transform: translate(-50%, -50%);
}
.cursor-vector {
  right: 1px;
  top: 5px;
  width: 12px;
  height: 1px;
  background: var(--accent-active);
  transform: rotate(45deg);
  transform-origin: right center;
}
.cursor.is-active .cursor-ring { transform: scale(.62); background: color-mix(in srgb, var(--accent-active) 18%, transparent); }
.cursor.is-active .cursor-vector { transform: translate(7px, -7px) rotate(45deg); }
.cursor.is-down .cursor-ring { transform: scale(.46); }

.frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .72;
  background:
    radial-gradient(360px 360px at var(--mx) var(--my), color-mix(in srgb, var(--accent-active) 16%, transparent), transparent 70%),
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(0deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  animation: grid-drift 28s linear infinite;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
}
.frame::before {
  background: linear-gradient(90deg, transparent, var(--accent-active), transparent);
  width: 32vw;
  transform: translateX(-40vw);
  animation: scan-x 9s ease-in-out infinite;
}
.frame::after {
  background: linear-gradient(180deg, transparent, var(--accent-active), transparent);
  height: 28vh;
  transform: translateY(-30vh);
  animation: scan-y 12s ease-in-out infinite;
}
html[data-theme="light"] .frame { opacity: .48; }
@keyframes grid-drift { to { background-position: 0 0, 96px 48px, 48px 96px; } }
@keyframes scan-x {
  0%, 18% { transform: translateX(-40vw); opacity: 0; }
  40%, 58% { opacity: .18; }
  100% { transform: translateX(110vw); opacity: 0; }
}
@keyframes scan-y {
  0%, 28% { transform: translateY(-30vh); opacity: 0; }
  50%, 68% { opacity: .14; }
  100% { transform: translateY(110vh); opacity: 0; }
}

.mono {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.tag {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Subtle global grid overlay */
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(0deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

/* TOP CHROME — system bar + nav */
.sysbar {
  position: fixed; top: 0; left: 0; right: 0; height: 28px; z-index: 110;
  display: flex; align-items: center; gap: 22px;
  padding: 0 18px;
  background: var(--chrome); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.sysbar .pulse { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.sysbar .pulse::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: pulse 1.8s infinite;
}
.sysbar .telem { display: flex; gap: 22px; flex: 1; overflow: hidden; }
.sysbar .telem .cell { display: inline-flex; gap: 7px; }
.sysbar .telem .cell .k { color: var(--muted-2); }
.sysbar .telem .cell .v { color: var(--fg-2); }
.sysbar .ts { color: var(--muted-2); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-2); }
  60%      { box-shadow: 0 0 0 6px transparent; }
}

.topbar {
  position: fixed; top: 28px; left: 0; right: 0; height: 60px; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0 20px;
  background: var(--chrome); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--bg) 26%, transparent);
}
.topbar .logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 500; letter-spacing: -0.01em; font-size: 17px;
}
.topbar .logo .mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  position: relative;
}
.topbar .logo .mark svg { width: 22px; height: 22px; display: block; }
.topbar .logo .name { display: inline-flex; align-items: center; gap: 8px; }
.topbar .logo .name b { font-weight: 600; }
.topbar .logo .name .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; padding-top: 2px; }

.topbar nav {
  display: flex; gap: 26px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2);
}
.topbar nav a { opacity: .68; transition: opacity .2s, color .2s, transform .2s; }
.topbar nav a:hover { opacity: 1; color: var(--accent-active); transform: translateY(-1px); }

.topbar .right { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.lang-switch, .theme-switch { display: flex; gap: 2px; font-family: var(--font-mono); font-size: 11px; }
.lang-switch button, .theme-switch button { padding: 5px 9px; opacity: .5; letter-spacing: 0.08em; border: 1px solid transparent; border-radius: 2px; transition: opacity .2s, color .2s, border-color .2s, transform .2s; }
.lang-switch button.on, .theme-switch button.on { opacity: 1; border-color: var(--line-2); color: var(--accent-active); }
.lang-switch button:hover, .theme-switch button:hover { opacity: 1; transform: translateY(-1px); }
.theme-switch { font-size: 10px; }
.menu-toggle,
.mobile-menu { display: none; }
.menu-toggle {
  width: 38px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--fg);
  transition: transform .2s, opacity .2s, background .2s;
}
.topbar.menu-open .menu-toggle span { background: var(--accent-active); }
.topbar.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.topbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.cta-btn {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px;
  background: var(--accent-active); color: var(--accent-ink);
  border-radius: 2px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: filter .2s, transform .2s;
}
.cta-btn::after { content: "→"; font-family: var(--font-body); font-size: 13px; }
.cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cta-btn.ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line-2);
}
.cta-btn.ghost:hover { border-color: var(--accent-active); color: var(--accent-active); }

/* Bottom channel switcher (kept) */
.mode-switcher {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 5px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.mode-switcher .lbl { padding: 0 12px 0 14px; color: var(--muted); }
.mode-switcher button {
  padding: 9px 14px; border-radius: 999px;
  color: var(--fg-2); opacity: .7; transition: opacity .25s, transform .2s;
}
.mode-switcher button:hover { opacity: 1; transform: translateY(-1px); }
.mode-switcher button.on {
  background: var(--accent-active); color: var(--accent-ink);
  opacity: 1;
}

/* SECTIONS */
section { padding: var(--section-pad) 32px; position: relative; }
.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  margin-bottom: 48px; align-items: end;
  border-top: 1px solid var(--line); padding-top: 20px;
}
.section-head .lbl { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.section-head .lbl::before {
  content: ""; width: 6px; height: 6px; background: var(--accent-active); display: inline-block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.02;
  max-width: 18ch; margin-top: 12px;
}
.section-head .sub {
  font-size: var(--fs-h3); max-width: 42ch; color: var(--fg-2);
  letter-spacing: -0.005em; line-height: 1.3;
}

/* HERO */
.hero {
  min-height: 100vh; padding-top: 130px; padding-bottom: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.hero-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px; gap: 24px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500; letter-spacing: -0.04em; line-height: 0.92;
  font-size: var(--fs-display);
  max-width: 18ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent { color: var(--accent-active); font-style: italic; }
.hero-title .corp { color: var(--fg-2); }

.hero-grid {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.hero-sub {
  font-size: clamp(16px, 1.35vw, 20px); max-width: 46ch;
  color: var(--fg-2); line-height: 1.45;
}
.hero-meta { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-meta .v { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.015em; color: var(--fg); }

.hero-cta { display: flex; gap: 12px; margin-top: 28px; }

/* Hero terminal — bottom-left corner — system identifier */
.hero-frame {
  position: absolute; left: 32px; right: 32px; bottom: 64px;
  pointer-events: none;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Corner crosshairs (decorative) */
.crosshair { position: absolute; width: 12px; height: 12px; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--line-strong); }
.crosshair::before { left: 0; top: 50%; right: 0; height: 1px; }
.crosshair::after  { top: 0; left: 50%; bottom: 0; width: 1px; }

/* MARQUEE -> ticker tape, very subtle */
.ticker-tape {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 12px 0;
  background: var(--bg-2);
  display: flex; gap: 60px; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 48px; padding-right: 48px;
  animation: marquee 50s linear infinite;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-track span::before { content: "▮"; color: var(--accent-active); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* LAYERS — three-card stack */
.layers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.layer {
  background: var(--bg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 460px;
  position: relative;
  transition: background .3s;
}
.layer:hover { background: var(--bg-2); }
.layer .lhead { display: flex; justify-content: space-between; align-items: flex-start; }
.layer .lcode { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent-active); }
.layer .lnum  { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.layer h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 36px; letter-spacing: -0.025em; line-height: 1;
}
.layer .ldesc { font-size: 15px; color: var(--fg-2); line-height: 1.45; max-width: 32ch; }
.layer ul { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 0; }
.layer ul li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 0; border-top: 1px solid var(--line); color: var(--fg-2);
  display: flex; gap: 10px; align-items: center;
}
.layer ul li::before { content: "▸"; color: var(--accent-active); }

/* CAPABILITIES (matrix grid 2x3 of all 6) */
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.cap {
  background: var(--bg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 340px;
  transition: background .3s;
  position: relative;
}
.cap:hover { background: var(--bg-2); }
.cap .top { display: flex; justify-content: space-between; align-items: center; }
.cap .code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent-active); }
.cap .arm-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 2px; }
.cap h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; min-height: 50px;
}
.cap .for { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cap ul { list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.cap ul li {
  font-size: 13.5px; line-height: 1.4; padding-left: 14px; position: relative; color: var(--fg-2);
}
.cap ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 1px; background: var(--accent-active);
}
.cap .price {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--fg);
}

/* PROCESS / engagement steps */
.process-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.proc-step {
  background: var(--bg);
  padding: 28px 26px 56px;
  position: relative; min-height: 250px;
  display: flex; flex-direction: column; gap: 14px;
}
.proc-step .n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent-active);
}
.proc-step h5 { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; }
.proc-step p { font-size: 14.5px; color: var(--fg-2); line-height: 1.5; max-width: 30ch; }

/* DOCTRINE */
.doctrine {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.doc {
  background: var(--bg);
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
}
.doc .roman {
  font-family: var(--font-display); font-size: 56px; line-height: 1;
  letter-spacing: -0.02em; color: var(--accent-active);
}
.doc h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.1;
}
.doc p { color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* ARCHITECTURE / stack */
.stack-block {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 32px; padding: 22px 0;
  border-top: 1px solid var(--line);
}
.stack-block:last-child { border-bottom: 1px solid var(--line); }
.stack-block .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-active); }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags .tag-chip {
  padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-2);
  transition: border-color .2s, color .2s;
}
.stack-tags .tag-chip:hover { border-color: var(--accent-active); color: var(--accent-active); }

/* DEPLOYMENTS / cases */
.cases { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.case-row {
  display: grid; grid-template-columns: 130px 1fr 1.5fr 1fr 40px;
  gap: 24px; padding: 22px 0; align-items: center;
  border-bottom: 1px solid var(--line);
  transition: padding .25s, background .25s;
}
.case-row:hover { padding-left: 16px; padding-right: 16px; background: var(--bg-2); }
.case-row .id { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.case-row .name {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 500; letter-spacing: -0.015em;
}
.case-row .line { font-size: 14.5px; color: var(--fg-2); line-height: 1.45; }
.case-row .metric {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 2px;
  justify-self: start; color: var(--accent-active);
}
.case-row .arr {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
  color: var(--fg-2);
}
.case-row:hover .arr { background: var(--accent-active); color: var(--accent-ink); border-color: var(--accent-active); transform: rotate(-45deg); }

/* PRICING / engagement tiers */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tier {
  background: var(--bg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 540px; position: relative;
  transition: background .25s;
}
.tier:hover { background: var(--bg-2); }
.tier.featured { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.tier.featured::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-active);
}
.tier .name { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.tier .sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tier .price { font-family: var(--font-display); font-size: 52px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--accent-active); }
.tier .unit { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.tier .for { font-size: 14.5px; color: var(--fg-2); line-height: 1.5; max-width: 32ch; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.tier ul li { font-size: 13.5px; padding-left: 18px; position: relative; color: var(--fg-2); }
.tier ul li::before { content: "+"; position: absolute; left: 0; color: var(--accent-active); font-family: var(--font-mono); }

/* ABOUT / founder */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-row h3 {
  font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; max-width: 18ch;
}
.about-row p { font-size: 17px; color: var(--fg-2); line-height: 1.55; max-width: 52ch; }
.about-row ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 0; }
.about-row ul li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; color: var(--fg-2);
  text-transform: uppercase;
}
.about-row ul li::before { content: "✓"; color: var(--accent-active); }

/* CONTACT */
.contact {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: var(--section-pad) 40px;
  margin: 32px; position: relative; overflow: hidden;
}
.contact .corner { position: absolute; width: 28px; height: 28px; border-color: var(--accent-active); }
.contact .corner.tl { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.contact .corner.tr { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.contact .corner.bl { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.contact .corner.br { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }
.contact h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 7vw, 120px); letter-spacing: -0.04em; line-height: 0.92;
  max-width: 16ch;
}
.contact h2 .accent { color: var(--accent-active); font-style: italic; }
.contact .meta {
  margin-top: 48px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.contact .meta a { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.015em; transition: color .25s; color: var(--fg); }
.contact .meta a:hover { color: var(--accent-active); }
.contact .meta .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* FOOTER */
footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 36px 32px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line);
}
footer .right { text-align: right; display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }

/* MISC */
.live-pill {
  position: fixed; right: 24px; bottom: 22px;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 2px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2); z-index: 80;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: pulse 1.8s infinite; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .layers, .caps-grid, .process-row, .doctrine, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
}
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  body { padding-bottom: 92px; }
  .cursor { display: none; }
  .frame {
    background-size: auto, 72px 72px, 72px 72px;
    opacity: .38;
  }
  .sysbar { display: none; }
  .topbar {
    top: 0;
    min-height: 56px;
    height: auto;
    padding: 8px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .topbar .logo { min-width: 0; gap: 8px; font-size: 15px; }
  .topbar .logo .mark,
  .topbar .logo .mark svg { width: 20px; height: 20px; }
  .topbar .logo .name { min-width: 0; gap: 6px; }
  .topbar .logo .name .sub {
    font-size: 9px;
    letter-spacing: .12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
  }
  .topbar .right { gap: 8px; }
  .topbar .right > .cta-btn,
  .topbar .right > .lang-switch,
  .topbar .right > .theme-switch { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    padding: 12px 0 2px;
    border-top: 1px solid var(--line);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--muted);
  }
  .mobile-menu .theme-switch,
  .mobile-menu .lang-switch { display: flex; font-size: 10px; }
  .mobile-menu .theme-switch button,
  .mobile-menu .lang-switch button { padding: 6px 8px; min-height: 32px; }
  .mobile-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
  }
  .mobile-menu-links a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-2);
  }
  .mobile-menu-links a:active { color: var(--accent-active); }

  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 48px;
    justify-content: flex-start;
    overflow: visible;
  }
  .hero-eyebrow {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: clamp(52px, 18vw, 92px);
    font-size: 10px;
    line-height: 1.45;
  }
  .hero-eyebrow > div:first-child { max-width: 20ch; }
  .hero-title {
    font-size: clamp(42px, 15vw, 66px);
    line-height: .98;
    letter-spacing: -0.035em;
    max-width: 10ch;
  }
  .hero-title .line { overflow: visible; }
  .hero-grid {
    margin-top: 48px;
    padding-top: 24px;
    gap: 24px;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-cta .cta-btn {
    width: 100%;
    justify-content: space-between;
    min-height: 56px;
    padding: 12px 14px;
    white-space: normal;
  }
  .hero-meta .v { font-size: 22px; }
  .hero-frame {
    position: static;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 9.5px;
    line-height: 1.35;
  }
  .crosshair { opacity: .55; }
  .ticker-tape { padding: 10px 0; }
  .ticker-track { gap: 32px; padding-right: 32px; font-size: 10px; }

  .layers, .caps-grid, .process-row, .doctrine, .pricing-grid, .about-row { grid-template-columns: 1fr; }
  .layer, .cap, .proc-step, .doc, .tier {
    min-height: auto;
    padding: 24px 20px;
  }
  .layer h3 { font-size: 30px; }
  .cap h4 { min-height: auto; }
  .cap .top {
    align-items: flex-start;
    gap: 12px;
  }
  .cap .arm-tag {
    max-width: 14ch;
    text-align: right;
    line-height: 1.25;
  }
  .proc-step { padding-bottom: 28px; }
  .doc .roman { font-size: 44px; }
  .stack-block {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }
  .stack-tags .tag-chip { font-size: 10px; }
  .case-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .case-row:hover { padding-left: 0; padding-right: 0; }
  .case-row .arr { display: none; }
  .section-head, .hero-grid { grid-template-columns: 1fr; }
  .section-head {
    gap: 18px;
    margin-bottom: 28px;
  }
  .section-head h2 {
    max-width: none;
    font-size: clamp(30px, 10vw, 42px);
  }
  .section-head .sub {
    font-size: 18px;
    line-height: 1.35;
  }
  .tier .price { font-size: clamp(38px, 13vw, 50px); }
  .contact { margin: 16px; padding: 56px 22px; }
  .contact .meta { grid-template-columns: 1fr; }
  .contact h2 {
    font-size: clamp(42px, 14vw, 64px);
    line-height: .96;
  }
  .contact .meta a {
    font-size: 19px;
    overflow-wrap: anywhere;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 18px 112px;
  }
  footer .right {
    justify-content: flex-start;
    text-align: left;
  }
  .live-pill { display: none; }
  .mode-switcher {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    padding: 5px;
    font-size: 9.5px;
    letter-spacing: .1em;
  }
  .mode-switcher .lbl {
    padding: 0 8px;
    white-space: nowrap;
  }
  .mode-switcher button {
    min-height: 40px;
    padding: 9px 8px;
    text-align: center;
  }
  section { padding: 64px 18px; }
}

@media (max-width: 420px) {
  .topbar .logo .name .sub { max-width: 74px; }
  .theme-switch button, .lang-switch button {
    padding-left: 5px;
    padding-right: 5px;
  }
  .hero-title { font-size: clamp(40px, 15vw, 58px); }
  .hero-cta { grid-template-columns: 1fr; }
  .mode-switcher {
    grid-template-columns: 1fr 1fr;
    row-gap: 4px;
  }
  .mode-switcher .lbl {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2px 0 0;
  }
}
