:root {
  /* Shared visual tokens for the dark lab theme. */
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #101620;
  --panel: rgba(16, 22, 32, 0.78);
  --panel-strong: rgba(22, 31, 45, 0.94);
  --text: #f4efe6;
  --muted: #b8b6ad;
  --quiet: #a7adb2;
  --line: rgba(244, 239, 230, 0.14);
  --amber: #f1b45f;
  --blue: #75a7ff;
  --green: #88d6b4;
  --red: #e66f65;
  --max: 1160px;
}

/* Base reset and page-level background layers. */

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
input,
textarea {
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(244, 239, 230, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.skip-link:focus-visible {
  display: inline-flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(117, 167, 255, 0.23),
      transparent 30%
    ),
    radial-gradient(
      circle at 82% 26%,
      rgba(241, 180, 95, 0.18),
      transparent 27%
    ),
    radial-gradient(
      circle at 55% 82%,
      rgba(136, 214, 180, 0.14),
      transparent 32%
    ),
    linear-gradient(145deg, #06070b 0%, #111824 48%, #080a0e 100%);
}

/* Fixed header and responsive primary navigation. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 46px);
  background: linear-gradient(
    to bottom,
    rgba(7, 9, 13, 0.9),
    rgba(7, 9, 13, 0)
  );
}

.brand,
nav,
.nav-toggle {
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: rgba(7, 9, 13, 0.62);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 8px;
  padding: 6px 12px 6px 8px;
  font-size: 0.82rem;
  font-weight: 750;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
  min-width: 0;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(244, 239, 230, 0.8);
  font-size: 0.83rem;
  font-weight: 650;
}

nav a {
  flex: 0 0 auto;
  padding: 8px 2px;
  white-space: nowrap;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* First viewport hero composition. */

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 72px) clamp(64px, 9vw, 108px);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, rgba(7, 9, 13, 0.96), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: min(960px, 100%);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.9;
}

.scanline,
.orbital {
  position: absolute;
  display: block;
  pointer-events: none;
}

.scanline {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 239, 230, 0.34),
    transparent
  );
  transform-origin: left center;
}

.scanline-a {
  top: 31%;
  left: 9%;
  width: 54vw;
  transform: rotate(-12deg);
}

.scanline-b {
  right: 4%;
  bottom: 29%;
  width: 42vw;
  transform: rotate(18deg);
}

.orbital {
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 999px;
}

.orbital-a {
  top: 12%;
  right: 9%;
  width: min(42vw, 520px);
  aspect-ratio: 1;
}

.orbital-b {
  bottom: 14%;
  left: 6%;
  width: min(30vw, 360px);
  aspect-ratio: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: min(8.4ch, 100%);
  margin-bottom: 24px;
  font-size: clamp(4.4rem, 14vw, 12.4rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.84;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(244, 239, 230, 0.78);
  font-size: clamp(1.16rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.hero-status {
  display: grid;
  width: min(840px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.hero-status a {
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 8px;
  background: rgba(16, 22, 32, 0.72);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.hero-status a:hover,
.hero-status a:focus-visible {
  border-color: rgba(117, 167, 255, 0.5);
  background: rgba(22, 31, 45, 0.9);
  transform: translateY(-2px);
}

.hero-status span,
.hero-status strong {
  display: block;
}

.hero-status span {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status strong {
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(0.98rem, 1.6vw, 1.18rem);
  line-height: 1.12;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links a,
.contact-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(244, 239, 230, 0.07);
  color: var(--text);
  font-weight: 700;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.hero-links a:hover,
.hero-links a:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(244, 239, 230, 0.38);
  background: rgba(244, 239, 230, 0.12);
  transform: translateY(-2px);
}

/* Shared section, heading, and card primitives. */

.section {
  position: relative;
  scroll-margin-top: 88px;
  padding: clamp(78px, 11vw, 134px) clamp(18px, 5vw, 72px);
}

.section::before {
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(244, 239, 230, 0.18),
    transparent
  );
}

.section-kicker {
  width: min(var(--max), 100%);
  margin: 0 auto 28px;
  color: rgba(244, 239, 230, 0.14);
  font-size: clamp(3.4rem, 12vw, 10.5rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.82;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.section-grid {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.section-grid.compact {
  align-items: center;
}

.section-heading {
  max-width: 620px;
}

.section-heading.wide {
  width: min(var(--max), 100%);
  max-width: 880px;
  margin: 0 auto 34px;
}

.section-intro {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(244, 239, 230, 0.76);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.section-intro a {
  color: var(--amber);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(241, 180, 95, 0.44);
  text-underline-offset: 4px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 6vw, 5.8rem);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 0.94;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.now-stack {
  display: grid;
  gap: 14px;
}

.now-card,
.feature-card,
.experiment-card,
.about-panel,
.analyzer-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.now-card {
  padding: 22px;
}

.now-card-featured {
  border: 1px solid rgba(88, 166, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.16), rgba(241, 180, 95, 0.08)),
    rgba(16, 22, 32, 0.78);
}

.now-card-featured strong {
  display: inline-flex;
  margin-top: 6px;
  color: var(--text);
  font-weight: 850;
}

.now-card span,
.card-meta,
.archive-list span,
.archive-list em {
  color: var(--quiet);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.now-card h3,
.feature-card h3,
.experiment-card h3 {
  color: var(--text);
}

.now-card p,
.feature-card p,
.experiment-card p,
.about-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 470px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.feature-card:hover {
  border-color: rgba(244, 239, 230, 0.3);
  transform: translateY(-4px);
}

.card-visual {
  min-height: 230px;
  border-bottom: 1px solid var(--line);
  background-color: #121a26;
}

.visual-agents {
  background:
    radial-gradient(
      circle at 22% 28%,
      rgba(117, 167, 255, 0.72) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 72% 34%,
      rgba(241, 180, 95, 0.72) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 48% 72%,
      rgba(136, 214, 180, 0.72) 0 2px,
      transparent 3px
    ),
    linear-gradient(135deg, rgba(117, 167, 255, 0.32), transparent 32%),
    repeating-linear-gradient(
      35deg,
      rgba(244, 239, 230, 0.09) 0 1px,
      transparent 1px 20px
    ),
    #101824;
}

.visual-site {
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.26) 1px, transparent 1px),
    linear-gradient(rgba(244, 239, 230, 0.18) 1px, transparent 1px),
    radial-gradient(
      circle at 72% 26%,
      rgba(230, 111, 101, 0.32),
      transparent 31%
    ),
    #13161d;
  background-size:
    42px 42px,
    42px 42px,
    auto,
    auto;
}

.visual-stack {
  background:
    linear-gradient(150deg, rgba(136, 214, 180, 0.26), transparent 36%),
    linear-gradient(
      18deg,
      transparent 0 42%,
      rgba(244, 239, 230, 0.22) 42% 43%,
      transparent 43%
    ),
    linear-gradient(
      110deg,
      transparent 0 58%,
      rgba(117, 167, 255, 0.2) 58% 59%,
      transparent 59%
    ),
    #10171e;
}

.visual-secure-stack {
  background:
    radial-gradient(
      circle at 26% 28%,
      rgba(136, 214, 180, 0.58) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 70% 28%,
      rgba(230, 111, 101, 0.54) 0 2px,
      transparent 3px
    ),
    linear-gradient(
      90deg,
      transparent 0 49%,
      rgba(241, 180, 95, 0.38) 49% 50%,
      transparent 50%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(244, 239, 230, 0.08) 0 1px,
      transparent 1px 22px
    ),
    linear-gradient(135deg, rgba(136, 214, 180, 0.22), transparent 36%), #10171e;
}

.card-body {
  padding: 22px;
}

/* Agent OS case study and inline workflow diagram. */

.agent-os-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.2), rgba(16, 22, 32, 0.38)),
    rgba(7, 9, 13, 0.58);
}

.agent-os-layout {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 16px;
  align-items: stretch;
}

.agent-os-panel,
.agent-os-diagram {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.agent-os-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: clamp(22px, 4vw, 34px);
}

.agent-os-panel p {
  color: var(--muted);
}

.agent-os-panel p:last-child,
.diff-list p:last-child {
  margin-bottom: 0;
}

.agent-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.agent-principles span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(117, 167, 255, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(117, 167, 255, 0.09);
  color: rgba(244, 239, 230, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-os-diagram {
  grid-row: span 2;
  margin: 0;
  padding: clamp(14px, 3vw, 20px);
  background:
    linear-gradient(135deg, rgba(117, 167, 255, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(241, 180, 95, 0.1), transparent 44%),
    var(--panel-strong);
}

.agent-os-diagram figcaption {
  margin-bottom: 14px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-os-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.agent-mobile-flow {
  display: none;
}

.agent-os-diagram text {
  fill: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  text-anchor: middle;
}

.agent-os-diagram .subtext {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.agent-os-diagram .zone {
  fill: rgba(7, 9, 13, 0.28);
  stroke: rgba(244, 239, 230, 0.14);
}

.agent-os-diagram .zone-label {
  fill: rgba(244, 239, 230, 0.62);
  font-size: 14px;
  font-weight: 800;
  text-anchor: start;
}

.agent-os-diagram .node rect {
  stroke-width: 1.4;
}

.agent-os-diagram .node-human rect {
  fill: rgba(241, 180, 95, 0.12);
  stroke: rgba(241, 180, 95, 0.42);
}

.agent-os-diagram .node-core rect {
  fill: rgba(117, 167, 255, 0.14);
  stroke: rgba(117, 167, 255, 0.48);
}

.agent-os-diagram .node-specialist rect {
  fill: rgba(244, 239, 230, 0.06);
  stroke: rgba(244, 239, 230, 0.18);
}

.agent-os-diagram .node-memory rect {
  fill: rgba(136, 214, 180, 0.12);
  stroke: rgba(136, 214, 180, 0.42);
}

.agent-os-diagram .node-policy rect {
  fill: rgba(230, 111, 101, 0.1);
  stroke: rgba(230, 111, 101, 0.38);
}

.agent-os-diagram .node-output rect {
  fill: rgba(244, 239, 230, 0.07);
  stroke: rgba(244, 239, 230, 0.22);
}

.agent-os-diagram .flow {
  fill: none;
  stroke: rgba(244, 239, 230, 0.42);
  stroke-width: 2;
  marker-end: url("#agent-arrow");
}

.agent-os-diagram .muted-flow {
  stroke: rgba(136, 214, 180, 0.35);
}

.agent-os-diagram marker path {
  fill: rgba(244, 239, 230, 0.62);
}

.diff-list {
  display: grid;
  gap: 12px;
}

.diff-list strong {
  color: var(--text);
}

.agent-stack-map {
  display: grid;
  width: min(var(--max), 100%);
  margin: 16px auto 0;
  scroll-margin-top: 96px;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(117, 167, 255, 0.12), transparent 38%),
    rgba(7, 9, 13, 0.46);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.agent-stack-heading {
  min-width: 0;
}

.agent-stack-heading h3 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3.4vw, 2.65rem);
}

.agent-stack-heading p:last-child,
.agent-roster p {
  margin-bottom: 0;
  color: var(--muted);
}

.agent-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agent-roster article {
  min-width: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(16, 22, 32, 0.66);
}

.agent-roster span {
  display: block;
  margin-bottom: 9px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-roster h4 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.1;
}

/* Secure AI stack guide. The visual separates private work from public action. */

.secure-stack-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.14), rgba(16, 22, 32, 0.42)),
    rgba(7, 9, 13, 0.6);
}

.secure-stack-layout {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 16px;
  align-items: stretch;
}

.secure-stack-panel,
.secure-stack-visual,
.secure-checklist article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.secure-stack-panel {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 34px);
}

.secure-stack-panel p {
  color: var(--muted);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.source-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(136, 214, 180, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(136, 214, 180, 0.08);
  color: rgba(244, 239, 230, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.secure-stack-visual {
  grid-row: span 2;
  margin: 0;
  padding: clamp(14px, 3vw, 20px);
  background:
    linear-gradient(135deg, rgba(136, 214, 180, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(230, 111, 101, 0.1), transparent 44%),
    var(--panel-strong);
}

.secure-stack-visual figcaption {
  margin-bottom: 14px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secure-stack-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.secure-mobile-flow {
  display: none;
}

.secure-stack-visual text {
  fill: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  text-anchor: middle;
}

.secure-stack-visual .subtext {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.secure-stack-visual .secure-zone {
  fill: rgba(7, 9, 13, 0.26);
  stroke: rgba(244, 239, 230, 0.14);
}

.secure-stack-visual .private-zone {
  stroke: rgba(136, 214, 180, 0.28);
}

.secure-stack-visual .public-zone {
  stroke: rgba(230, 111, 101, 0.26);
}

.secure-stack-visual .zone-label {
  fill: rgba(244, 239, 230, 0.66);
  font-size: 14px;
  font-weight: 800;
  text-anchor: start;
}

.secure-stack-visual .secure-node rect {
  stroke-width: 1.4;
}

.secure-stack-visual .node-context rect,
.secure-stack-visual .node-secrets rect {
  fill: rgba(136, 214, 180, 0.12);
  stroke: rgba(136, 214, 180, 0.42);
}

.secure-stack-visual .node-agent rect,
.secure-stack-visual .node-review rect {
  fill: rgba(117, 167, 255, 0.13);
  stroke: rgba(117, 167, 255, 0.42);
}

.secure-stack-visual .node-gate rect {
  fill: rgba(241, 180, 95, 0.13);
  stroke: rgba(241, 180, 95, 0.42);
}

.secure-stack-visual .node-deploy rect {
  fill: rgba(230, 111, 101, 0.1);
  stroke: rgba(230, 111, 101, 0.38);
}

.secure-stack-visual .secure-flow {
  fill: none;
  stroke: rgba(244, 239, 230, 0.42);
  stroke-width: 2;
  marker-end: url("#secure-arrow");
}

.secure-stack-visual .muted-flow {
  stroke: rgba(117, 167, 255, 0.35);
}

.secure-stack-visual marker path {
  fill: rgba(244, 239, 230, 0.62);
}

.secure-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.secure-checklist article {
  min-height: 212px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(135deg, rgba(244, 239, 230, 0.04), transparent 44%),
    rgba(7, 9, 13, 0.42);
}

.secure-checklist span {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(241, 180, 95, 0.28);
  border-radius: 999px;
  color: var(--amber);
  font-weight: 850;
}

.secure-checklist p {
  margin-bottom: 0;
  color: var(--muted);
}

.secure-stack-panel.is-diff {
  min-height: 0;
}

/* Field notes/tools library. Featured cards can span desktop columns. */

.experiments-section {
  background:
    linear-gradient(180deg, rgba(16, 22, 32, 0.34), rgba(7, 9, 13, 0.1)),
    rgba(7, 9, 13, 0.64);
}

.experiment-list {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.experiment-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
  min-height: 230px;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(
    110deg,
    rgba(22, 31, 45, 0.95),
    rgba(13, 17, 24, 0.72)
  );
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.experiment-card:hover,
.experiment-card:focus-visible {
  border-color: rgba(241, 180, 95, 0.36);
  background: linear-gradient(
    110deg,
    rgba(29, 39, 56, 0.98),
    rgba(13, 17, 24, 0.82)
  );
  transform: translateY(-3px);
}

.experiment-card.is-featured {
  grid-column: span 2;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(241, 180, 95, 0.17), transparent 38%),
    linear-gradient(315deg, rgba(117, 167, 255, 0.12), transparent 44%),
    rgba(22, 31, 45, 0.96);
}

.experiment-number {
  display: grid;
  width: 70px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 999px;
  color: var(--amber);
  font-weight: 850;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.is-live {
  border-color: rgba(136, 214, 180, 0.34);
  background: rgba(136, 214, 180, 0.1);
  color: rgba(244, 239, 230, 0.92);
}

/* Model Usage Map. All charts are static so the section stays dependency-free. */

.model-usage-section {
  background:
    linear-gradient(180deg, rgba(10, 14, 21, 0.2), rgba(16, 22, 32, 0.42)),
    rgba(7, 9, 13, 0.62);
}

.model-usage-layout {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 14px;
}

.usage-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(244, 239, 230, 0.04), transparent 42%),
    rgba(16, 22, 32, 0.72);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.24);
}

.usage-panel h3 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.03;
}

.usage-chart-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.usage-chart-panel .card-meta,
.usage-chart-panel h3,
.usage-chart-panel .usage-note {
  grid-column: 1 / -1;
}

.usage-pie {
  display: grid;
  width: min(100%, 300px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(
      circle at center,
      rgba(7, 9, 13, 0.92) 0 50%,
      transparent 51%
    ),
    conic-gradient(
      var(--amber) 0 36.9%,
      var(--blue) 36.9% 56.3%,
      var(--green) 56.3% 72.3%,
      var(--red) 72.3% 88%,
      #cbb7ff 88% 100%
    );
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.34);
}

.usage-pie span {
  color: rgba(244, 239, 230, 0.9);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.usage-legend {
  display: grid;
  gap: 9px;
}

.usage-legend span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: rgba(244, 239, 230, 0.86);
  font-size: 0.92rem;
  line-height: 1.25;
}

.usage-color {
  flex: 0 0 auto;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--amber);
}

.usage-color.is-claude {
  background: var(--blue);
}

.usage-color.is-gemini {
  background: var(--green);
}

.usage-color.is-reasoning {
  background: var(--red);
}

.usage-color.is-image {
  background: #cbb7ff;
}

.usage-bars {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.usage-bars div {
  display: grid;
  gap: 7px;
}

.usage-bars span {
  color: rgba(244, 239, 230, 0.84);
  font-size: 0.9rem;
  font-weight: 750;
}

.usage-bars strong {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(7, 9, 13, 0.36);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.usage-bars strong::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: var(--bar);
  content: "";
  background: linear-gradient(
    90deg,
    rgba(117, 167, 255, 0.46),
    rgba(136, 214, 180, 0.32)
  );
}

.usage-bars strong {
  isolation: isolate;
}

.usage-bars strong::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.router-rankings {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.router-rankings li {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(7, 9, 13, 0.34);
}

.router-rankings span {
  min-width: 0;
  color: rgba(244, 239, 230, 0.86);
  font-weight: 750;
}

.router-rankings strong {
  color: var(--amber);
}

.usage-note,
.usage-method p {
  margin-bottom: 0;
  color: var(--muted);
}

.usage-note {
  margin-top: 18px;
  font-size: 0.94rem;
}

.usage-method {
  grid-column: 1 / -1;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.source-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(244, 239, 230, 0.06);
  color: rgba(244, 239, 230, 0.88);
  font-size: 0.86rem;
  font-weight: 800;
}

.source-links a:hover,
.source-links a:focus-visible {
  border-color: rgba(241, 180, 95, 0.36);
  color: var(--amber);
}

/* AI readiness scorecard. The assessment is local-only and updates instantly. */

.readiness-section {
  background:
    linear-gradient(180deg, rgba(16, 22, 32, 0.36), rgba(7, 9, 13, 0.12)),
    rgba(7, 9, 13, 0.62);
}

.readiness-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.readiness-form,
.readiness-result {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.readiness-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: clamp(14px, 3vw, 22px);
}

.readiness-form fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 9, 13, 0.24);
}

.readiness-form legend {
  padding: 0 6px;
  color: rgba(244, 239, 230, 0.94);
  font-size: 0.9rem;
  font-weight: 850;
}

.readiness-form label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 46px;
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 8px;
  padding: 11px;
  background: rgba(244, 239, 230, 0.04);
  color: rgba(244, 239, 230, 0.82);
  font-size: 0.9rem;
  line-height: 1.28;
}

.readiness-form input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.readiness-form label:has(input:checked) {
  border-color: rgba(136, 214, 180, 0.34);
  background: rgba(136, 214, 180, 0.08);
  color: var(--text);
}

.readiness-result {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(136, 214, 180, 0.13), transparent 42%),
    linear-gradient(315deg, rgba(241, 180, 95, 0.1), transparent 40%),
    var(--panel-strong);
}

.readiness-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.readiness-score strong {
  color: var(--green);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
}

.readiness-score span {
  color: rgba(244, 239, 230, 0.64);
  font-size: 1.15rem;
  font-weight: 800;
}

.readiness-result h3 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.readiness-result > p:not(.card-meta),
.readiness-next p {
  margin: 0;
  color: var(--muted);
}

.readiness-next {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  padding-top: 16px;
}

.readiness-next span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pilot-brief-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 16px auto 0;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.92fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.pilot-brief-intro,
.pilot-brief-form,
.pilot-brief-output {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.pilot-brief-intro {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.pilot-brief-intro h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.pilot-brief-intro p:last-child {
  margin: 0;
  color: var(--muted);
}

.pilot-brief-form {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 3vw, 22px);
}

.pilot-brief-form label {
  display: grid;
  gap: 6px;
}

.pilot-brief-form span {
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pilot-brief-form input,
.pilot-brief-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(7, 9, 13, 0.34);
  color: var(--text);
  font: inherit;
  outline: none;
}

.pilot-brief-form textarea {
  min-height: 72px;
  line-height: 1.35;
  resize: vertical;
}

.pilot-brief-form input:focus,
.pilot-brief-form textarea:focus {
  border-color: rgba(136, 214, 180, 0.42);
  box-shadow: 0 0 0 3px rgba(136, 214, 180, 0.1);
}

.pilot-brief-output {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  gap: 12px;
  padding: clamp(14px, 3vw, 22px);
  background:
    linear-gradient(135deg, rgba(117, 167, 255, 0.1), transparent 42%),
    rgba(16, 22, 32, 0.78);
}

.pilot-brief-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pilot-brief-output-head .card-meta {
  margin: 0;
}

.pilot-brief-output button {
  min-height: 44px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(244, 239, 230, 0.07);
  color: rgba(244, 239, 230, 0.9);
  font-size: 0.82rem;
  font-weight: 850;
}

.pilot-brief-output button:hover,
.pilot-brief-output button:focus-visible {
  border-color: rgba(241, 180, 95, 0.4);
  color: var(--amber);
}

.pilot-brief-output pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 9, 13, 0.44);
  color: rgba(244, 239, 230, 0.86);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.pilot-copy-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 0.84rem;
}

/* Automation menu. Static workflow cards turn the scorecard into concrete starts. */

.automation-menu-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.16), rgba(16, 22, 32, 0.34)),
    rgba(7, 9, 13, 0.54);
}

.automation-menu-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.automation-menu-lead,
.automation-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.automation-menu-lead {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(241, 180, 95, 0.11), transparent 42%),
    linear-gradient(315deg, rgba(117, 167, 255, 0.11), transparent 46%),
    var(--panel-strong);
}

.automation-menu-lead h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
}

.automation-menu-lead p:not(.card-meta) {
  margin: 0;
  color: var(--muted);
}

.automation-menu-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  padding-top: 14px;
}

.automation-menu-signals span {
  min-height: 34px;
  border: 1px solid rgba(136, 214, 180, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(136, 214, 180, 0.07);
  color: rgba(244, 239, 230, 0.86);
  font-size: 0.78rem;
  font-weight: 850;
}

.automation-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.automation-card {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2.2vw, 22px);
}

.automation-index {
  width: max-content;
  margin: 0;
  border: 1px solid rgba(241, 180, 95, 0.24);
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(241, 180, 95, 0.08);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
}

.automation-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.automation-card > p:not(.automation-index) {
  margin: 0;
  color: var(--muted);
}

.automation-card dl {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
}

.automation-card dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(244, 239, 230, 0.09);
  padding-top: 8px;
}

.automation-card dt,
.automation-card dd {
  min-width: 0;
  margin: 0;
}

.automation-card dt {
  color: rgba(244, 239, 230, 0.58);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.automation-card dd {
  color: rgba(244, 239, 230, 0.84);
  font-size: 0.88rem;
  line-height: 1.32;
}

/* OpenClaw setup calculator. Inputs are split between setup and monthly costs. */

.cost-page-hero {
  position: relative;
  display: flex;
  min-height: 86svh;
  align-items: flex-end;
  overflow: hidden;
  padding: 124px clamp(18px, 5vw, 72px) clamp(58px, 8vw, 92px);
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.04), rgba(7, 9, 13, 0.76)),
    radial-gradient(
      circle at 18% 30%,
      rgba(117, 167, 255, 0.22),
      transparent 34%
    ),
    radial-gradient(
      circle at 78% 22%,
      rgba(241, 180, 95, 0.18),
      transparent 30%
    );
}

.cost-page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, rgba(7, 9, 13, 0.98), transparent);
}

.cost-page-inner {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  max-width: 980px;
}

.cost-page-inner h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3.1rem, 8.8vw, 8.7rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.88;
  overflow-wrap: anywhere;
}

.cost-guide-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.24), rgba(16, 22, 32, 0.38)),
    rgba(7, 9, 13, 0.64);
}

.cost-guide-layout {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.cost-article,
.launch-note {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.cost-article {
  padding: clamp(20px, 4vw, 36px);
}

.cost-article h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.9rem);
}

.cost-article p {
  max-width: 780px;
  color: rgba(244, 239, 230, 0.8);
  font-size: 1.02rem;
}

.cost-article p:last-child {
  margin-bottom: 0;
}

.launch-note {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(136, 214, 180, 0.12), transparent 42%),
    var(--panel-strong);
}

.launch-note h3,
.launch-note p {
  margin: 0;
}

.launch-note p {
  color: var(--muted);
}

.sample-budget {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.sample-budget div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  padding-top: 10px;
}

.sample-budget span {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sample-budget strong {
  color: var(--green);
  font-size: 1.1rem;
}

.calculator-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.1), rgba(16, 22, 32, 0.36)),
    rgba(7, 9, 13, 0.58);
}

.calculator-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.stack-form,
.stack-summary {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.stack-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: clamp(14px, 3vw, 22px);
}

.calculator-presets {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 6px;
  background: rgba(7, 9, 13, 0.34);
}

.preset-button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(244, 239, 230, 0.76);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.preset-button:hover,
.preset-button:focus-visible,
.preset-button.is-active {
  border-color: rgba(241, 180, 95, 0.42);
  background: rgba(241, 180, 95, 0.12);
  color: var(--text);
}

.cost-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.cost-group-title {
  margin: 0;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stack-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 9, 13, 0.34);
}

.stack-form span {
  color: var(--text);
  font-weight: 800;
}

.stack-form small {
  color: var(--quiet);
  font-size: 0.78rem;
  line-height: 1.3;
}

.stack-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(7, 9, 13, 0.62);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  outline: none;
}

.stack-form input:focus {
  border-color: rgba(241, 180, 95, 0.58);
}

.stack-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(135deg, rgba(241, 180, 95, 0.14), transparent 40%),
    var(--panel-strong);
}

.stack-total {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.08em;
  row-gap: 0.04em;
  color: var(--text);
  font-size: clamp(3.1rem, 7vw, 5.2rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.86;
  overflow-wrap: anywhere;
}

.stack-total-amount {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stack-total-period {
  flex: 0 0 auto;
  font-size: 0.42em;
  white-space: nowrap;
}

.stack-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.stack-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stack-metrics div {
  min-width: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(7, 9, 13, 0.26);
}

.stack-metrics span,
.stack-metrics strong {
  display: block;
  min-width: 0;
}

.stack-metrics span {
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 750;
}

.stack-metrics strong {
  color: var(--text);
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.stack-breakdown {
  display: grid;
  gap: 8px;
}

.stack-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  padding-top: 8px;
  color: rgba(244, 239, 230, 0.84);
  font-size: 0.92rem;
}

.stack-breakdown span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stack-breakdown span:last-child {
  flex: 0 0 auto;
  color: var(--amber);
  font-weight: 800;
  text-align: right;
}

/* Moderated discussion shell for conversation-driving tools. */

.discussion-section,
.admin-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.1), rgba(16, 22, 32, 0.42)),
    rgba(7, 9, 13, 0.62);
}

.discussion-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.discussion-policy {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto 16px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 22px);
  background: rgba(7, 9, 13, 0.46);
}

.discussion-policy > * {
  min-width: 0;
}

.discussion-policy h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.discussion-policy p,
.discussion-policy ul {
  margin-bottom: 0;
}

.discussion-policy ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.discussion-form,
.discussion-list,
.admin-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.discussion-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.discussion-form h3,
.discussion-form p,
.discussion-list h3,
.discussion-list p,
.admin-panel h2,
.admin-panel h3,
.admin-panel p {
  margin-bottom: 0;
}

.discussion-form p,
.discussion-list p,
.admin-panel p,
.moderation-rules {
  color: var(--muted);
}

.discussion-form label {
  display: grid;
  gap: 8px;
}

.discussion-form label span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.discussion-form input,
.discussion-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(7, 9, 13, 0.62);
  color: var(--text);
  outline: none;
  resize: vertical;
}

.discussion-turnstile {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.discussion-turnstile iframe {
  max-width: 100%;
}

.discussion-verification-status {
  margin-top: -4px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(7, 9, 13, 0.4);
  color: var(--muted);
  display: flex;
  align-items: center;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.discussion-verification-status[data-state="success"] {
  border-color: rgba(97, 219, 165, 0.34);
  color: #9ee6c4;
}

.discussion-verification-status[data-state="warning"] {
  border-color: rgba(245, 181, 99, 0.38);
  color: var(--amber);
}

.discussion-verification-status[data-state="error"] {
  border-color: rgba(255, 120, 120, 0.38);
  color: #ffb0a8;
}

.discussion-form input:disabled,
.discussion-form textarea:disabled,
.discussion-form button:disabled,
.discussion-sort button:disabled,
.comment-votes button:disabled,
.comment-reply:disabled,
.admin-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.discussion-form-footer {
  display: grid;
  gap: 12px;
}

.discussion-form-footer button,
.discussion-sort button,
.comment-votes button,
.comment-reply,
.admin-panel button {
  min-height: 40px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(244, 239, 230, 0.07);
  color: var(--text);
  font-weight: 800;
}

.discussion-form-footer button {
  justify-self: start;
  border-color: rgba(241, 180, 95, 0.34);
  background: rgba(241, 180, 95, 0.1);
}

.admin-login-form button[type="submit"] {
  border-color: rgba(241, 180, 95, 0.44);
  background: rgba(241, 180, 95, 0.16);
  color: #fff7e8;
}

.discussion-list {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.comment-list,
.admin-comments-list,
.admin-guide-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-guide-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  gap: 18px;
}

.discussion-toolbar,
.admin-toolbar,
.admin-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.discussion-sort,
.admin-actions,
.moderation-buttons,
.moderation-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discussion-sort button {
  min-height: 34px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.discussion-sort button.is-active {
  border-color: rgba(241, 180, 95, 0.42);
  background: rgba(241, 180, 95, 0.12);
}

.discussion-form-footer button:hover,
.discussion-sort button:hover,
.comment-votes button:hover,
.comment-reply:hover,
.admin-panel button:hover {
  border-color: rgba(244, 239, 230, 0.32);
  background: rgba(244, 239, 230, 0.12);
}

.comment-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 9, 13, 0.32);
}

.comment-card.is-reply {
  margin-left: clamp(20px, 5vw, 58px);
}

.comment-votes {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.comment-votes button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
}

.comment-votes strong {
  color: var(--green);
  font-size: 1.04rem;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-meta strong {
  color: var(--text);
}

.comment-meta span,
.moderation-flags span,
.status-pill {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comment-reply {
  min-height: 34px;
  margin-top: 12px;
}

.discussion-empty-state,
.admin-note {
  border: 1px solid rgba(136, 214, 180, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(136, 214, 180, 0.08);
}

.discussion-empty-state strong,
.admin-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.discussion-empty-state a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(136, 214, 180, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  font-weight: 800;
}

/* Admin moderation shell. */

.admin-hero {
  position: relative;
  display: flex;
  min-height: 62svh;
  align-items: flex-end;
  overflow: hidden;
  padding: 124px clamp(18px, 5vw, 72px) clamp(58px, 8vw, 92px);
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.08), rgba(7, 9, 13, 0.78)),
    radial-gradient(
      circle at 20% 30%,
      rgba(136, 214, 180, 0.2),
      transparent 34%
    ),
    radial-gradient(
      circle at 78% 22%,
      rgba(230, 111, 101, 0.16),
      transparent 30%
    );
}

.admin-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, rgba(7, 9, 13, 0.98), transparent);
}

.admin-hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.admin-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.admin-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.4fr) minmax(
      240px,
      0.7fr
    );
  gap: 16px;
  align-items: start;
}

.admin-auth-panel {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 16px;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 22px);
  background: rgba(7, 9, 13, 0.54);
  box-shadow: var(--shadow);
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-login-form label {
  display: grid;
  gap: 6px;
}

.admin-login-form span {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-login-form input {
  min-height: 42px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(7, 9, 13, 0.62);
  color: var(--text);
  outline: none;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.admin-sidebar h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.admin-queue-list {
  display: grid;
  gap: 8px;
}

.admin-queue-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  width: 100%;
}

.admin-queue-list button.is-active,
.status-pill {
  border-color: rgba(241, 180, 95, 0.36);
  background: rgba(241, 180, 95, 0.1);
}

.admin-comment {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 9, 13, 0.32);
}

.admin-comment-head span {
  display: block;
  color: var(--quiet);
  font-size: 0.82rem;
}

.admin-status-message {
  min-height: 1.3em;
  color: var(--green);
  font-weight: 800;
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 999px;
  padding: 6px 9px;
}

.status-pill.is-warning {
  border-color: rgba(230, 111, 101, 0.34);
  background: rgba(230, 111, 101, 0.1);
  color: var(--text);
}

.moderation-flags span {
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(244, 239, 230, 0.05);
}

.moderation-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

/* AI Origin Lab. The tool stays local and shows heuristic signal cards. */

.analyzer-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.16), rgba(16, 22, 32, 0.42)),
    rgba(7, 9, 13, 0.56);
}

.analyzer-shell {
  display: grid;
  width: min(var(--max), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(16px, 5vw, 28px);
  background:
    linear-gradient(135deg, rgba(136, 214, 180, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(117, 167, 255, 0.1), transparent 40%),
    var(--panel-strong);
}

.analyzer-intro {
  max-width: 760px;
}

.analyzer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.analyzer-badges span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(136, 214, 180, 0.28);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(136, 214, 180, 0.1);
  color: rgba(244, 239, 230, 0.88);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analyzer-intro h3 {
  font-size: clamp(1.45rem, 7vw, 2.45rem);
  line-height: 1.02;
}

.analyzer-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.analyzer-note {
  margin-top: 14px;
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.96rem;
}

.analyzer-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 6px;
  align-items: center;
  align-self: start;
  padding: 5px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.34);
}

.analyzer-tab,
.primary-action,
.secondary-action {
  min-height: 42px;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  background: rgba(244, 239, 230, 0.06);
  color: var(--text);
  font-weight: 800;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.analyzer-tab {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
}

.analyzer-tab:hover,
.analyzer-tab:focus-visible,
.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(244, 239, 230, 0.34);
  transform: translateY(-1px);
}

.analyzer-tab.is-active,
.primary-action {
  border-color: rgba(136, 214, 180, 0.46);
  background: rgba(136, 214, 180, 0.16);
}

.analyzer-panel {
  display: grid;
  gap: 12px;
  align-self: start;
}

.analyzer-label {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sample-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 700;
}

textarea,
input[type="file"] {
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.54);
  outline: none;
}

textarea {
  min-height: 260px;
  resize: vertical;
  padding: 16px;
  color: var(--text);
  line-height: 1.55;
}

textarea:focus,
input[type="file"]:focus-visible {
  border-color: rgba(136, 214, 180, 0.58);
}

input[type="file"] {
  padding: 13px;
  color: var(--muted);
}

.analyzer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action {
  padding: 0 16px;
}

.image-preview {
  display: grid;
  min-height: 280px;
  padding: 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(244, 239, 230, 0.08) 1px, transparent 1px),
    rgba(7, 9, 13, 0.38);
  background-size: 28px 28px;
  color: var(--quiet);
  text-align: center;
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.analyzer-results {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.score-card,
.signal-grid article {
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.42);
}

.score-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 16px;
}

.score-card h3 {
  margin-bottom: 8px;
}

.score-ring {
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(
      circle at center,
      rgba(7, 9, 13, 0.92) 56%,
      transparent 57%
    ),
    conic-gradient(var(--green) 0deg, rgba(244, 239, 230, 0.12) 0deg);
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 850;
}

.score-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.signal-grid {
  display: grid;
  gap: 10px;
}

.signal-grid article {
  border-color: rgba(244, 239, 230, 0.1);
  padding: 14px 0 0;
  background: transparent;
}

.signal-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.02rem;
}

.signal-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Closing content blocks: build log, interests, archive, and about/contact. */

.build-log-section {
  background:
    linear-gradient(180deg, rgba(16, 22, 32, 0.28), rgba(7, 9, 13, 0.12)),
    rgba(7, 9, 13, 0.62);
}

.build-log-list {
  display: grid;
  gap: 12px;
}

.build-log-list article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background: var(--panel);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.build-log-list time {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.build-log-list h3 {
  margin-bottom: 9px;
}

.updated-stamp {
  margin: 12px 0 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.build-log-list p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.project-story-section {
  background:
    radial-gradient(circle at 82% 14%, rgba(88, 166, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.86), rgba(7, 9, 13, 0.66));
}

.project-story-hero {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  margin-top: clamp(24px, 5vw, 44px);
  margin-inline: auto;
}

.story-copy,
.story-panel,
.obstacle-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 32, 0.74);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.story-copy {
  padding: clamp(20px, 4vw, 32px);
}

.story-copy h3,
.story-panel h3,
.obstacle-grid h3 {
  margin-bottom: 10px;
}

.story-copy p:last-child,
.story-panel p:last-child,
.obstacle-grid p:last-child {
  margin-bottom: 0;
}

.story-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.story-status-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: rgba(244, 239, 230, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.story-status-grid strong {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.2;
}

.stack-total,
.readiness-score strong,
.story-status-grid strong {
  font-variant-numeric: tabular-nums;
}

.story-visual {
  margin: 0;
}

.story-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.48);
  box-shadow: 0 30px 96px rgba(0, 0, 0, 0.32);
}

.site-footer {
  display: flex;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 34px;
  gap: 12px 18px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--amber);
}

.story-visual figcaption {
  margin-top: 10px;
  color: rgba(244, 239, 230, 0.58);
  font-size: 0.82rem;
  line-height: 1.45;
}

.project-story-layout {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  margin-top: 18px;
  margin-inline: auto;
}

.story-panel {
  padding: clamp(20px, 4vw, 28px);
}

.story-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: story-step;
}

.story-steps li {
  position: relative;
  min-width: 0;
  padding-left: 46px;
  color: var(--muted);
}

.story-steps li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  color: var(--blue);
  content: counter(story-step, decimal-leading-zero);
  counter-increment: story-step;
  font-size: 0.68rem;
  font-weight: 850;
}

.story-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.story-lessons {
  align-self: start;
}

.lesson-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lesson-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.lesson-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.obstacle-grid {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  margin-inline: auto;
}

.obstacle-grid article {
  padding: clamp(18px, 3vw, 22px);
}

.obstacle-grid p {
  color: var(--muted);
}

.archive-section {
  background: rgba(12, 15, 20, 0.72);
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.archive-list a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 112px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.archive-list strong {
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.25;
}

.archive-list a:hover strong {
  color: var(--amber);
}

.about-section {
  padding-bottom: clamp(54px, 8vw, 88px);
}

.about-panel {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(117, 167, 255, 0.13), transparent 36%),
    var(--panel-strong);
}

.about-panel p {
  max-width: 640px;
  margin: 22px 0 28px;
  font-size: 1.08rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.js .reveal.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Motion and responsive behavior. Keep mobile as the strictest layout target. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
  }

  nav {
    max-width: min(620px, 72vw);
    overflow-x: auto;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .section-grid,
  .card-grid,
  .experiment-list,
  .cost-guide-layout,
  .calculator-shell,
  .discussion-shell,
  .discussion-policy,
  .admin-auth-panel,
  .admin-shell,
  .model-usage-layout,
  .readiness-shell,
  .pilot-brief-shell,
  .automation-menu-shell,
  .agent-os-layout,
  .agent-stack-map,
  .secure-stack-layout,
  .project-story-hero,
  .project-story-layout {
    grid-template-columns: 1fr;
  }

  .agent-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-copy {
    order: 2;
  }

  .story-visual {
    order: 1;
  }

  .obstacle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launch-note {
    position: static;
  }

  .agent-os-diagram,
  .secure-stack-visual {
    grid-row: auto;
  }

  .stack-summary {
    order: -1;
  }

  .admin-sidebar {
    order: 0;
  }

  .experiment-card.is-featured {
    grid-column: auto;
  }

  .usage-chart-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-pie {
    width: min(280px, 100%);
    margin-inline: auto;
  }

  .feature-card {
    min-height: auto;
  }

  .card-visual {
    min-height: 210px;
  }
}

@media (min-width: 921px) {
  .analyzer-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 18px;
  }

  .analyzer-intro {
    grid-column: 1 / -1;
    max-width: 840px;
  }

  .analyzer-tabs,
  .analyzer-panel {
    grid-column: 1;
  }

  .analyzer-tabs {
    width: max-content;
    min-width: 232px;
  }

  .analyzer-results {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .score-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    min-height: 168px;
    padding: 18px;
  }

  .score-ring {
    width: 96px;
    font-size: 1.45rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 8px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
    border-bottom: 1px solid rgba(244, 239, 230, 0.1);
    background: rgba(7, 9, 13, 0.94);
    backdrop-filter: blur(18px);
  }

  .brand,
  .nav-toggle {
    background: rgba(16, 22, 32, 0.96);
  }

  .brand {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .brand span:last-child {
    display: inline;
  }

  .nav-toggle {
    display: grid;
  }

  nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    display: grid;
    max-width: none;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: rgba(7, 9, 13, 0.94);
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 170ms ease,
      visibility 0ms linear 170ms,
      transform 170ms ease;
  }

  .site-header.is-nav-open nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0ms;
  }

  nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 8px;
    background: rgba(16, 22, 32, 0.86);
  }

  .hero {
    min-height: 92svh;
    padding-top: 96px;
  }

  .cost-page-hero {
    min-height: 82svh;
    padding: 104px 18px 52px;
  }

  .admin-hero {
    min-height: 58svh;
    padding: 104px 18px 52px;
  }

  h1 {
    font-size: clamp(3.4rem, 15vw, 5.4rem);
  }

  .cost-page-inner h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.45rem);
    line-height: 0.96;
  }

  .admin-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.8rem);
    line-height: 0.96;
  }

  .hero-copy {
    max-width: 30ch;
    font-size: 1.08rem;
  }

  .hero-status {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-status a {
    min-height: 64px;
  }

  .hero-links {
    align-items: stretch;
    flex-direction: column;
    margin-top: 18px;
  }

  .hero-links a {
    justify-content: center;
  }

  .hero-links a:not(:first-child) {
    display: none;
  }

  .section-kicker {
    margin-bottom: 14px;
    font-size: clamp(1.6rem, 8vw, 2.35rem);
    line-height: 1;
  }

  .section-heading.wide {
    margin-bottom: 24px;
  }

  .section-heading.wide h2 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .section {
    scroll-margin-top: 92px;
    padding-top: clamp(58px, 16vw, 82px);
    padding-bottom: clamp(58px, 16vw, 82px);
  }

  .stack-form,
  .readiness-form,
  .stack-metrics,
  .discussion-toolbar,
  .admin-toolbar,
  .admin-comment-head {
    grid-template-columns: 1fr;
  }

  .discussion-toolbar,
  .admin-toolbar,
  .admin-comment-head {
    display: grid;
  }

  .calculator-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .preset-button {
    min-height: 46px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .readiness-form fieldset {
    padding: 10px;
  }

  .readiness-result {
    padding: 18px;
  }

  .automation-card-grid {
    grid-template-columns: 1fr;
  }

  .automation-menu-lead {
    position: static;
  }

  .automation-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pilot-brief-shell {
    margin-top: 12px;
  }

  .pilot-brief-output {
    grid-template-rows: auto minmax(220px, auto) auto;
  }

  .readiness-score strong {
    font-size: clamp(3.25rem, 18vw, 4.75rem);
  }

  .readiness-result h3 {
    max-width: 14ch;
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .stack-breakdown div {
    align-items: flex-start;
  }

  .comment-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .comment-card.is-reply {
    margin-left: 16px;
  }

  .comment-votes button {
    width: 32px;
    min-height: 32px;
  }

  .discussion-form,
  .discussion-list,
  .admin-panel {
    padding: 16px;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .agent-os-panel {
    min-height: 0;
  }

  .agent-stack-map {
    gap: 14px;
    padding: 16px;
  }

  .agent-roster,
  .build-log-list article,
  .story-status-grid,
  .obstacle-grid {
    grid-template-columns: 1fr;
  }

  .project-story-hero {
    margin-top: 20px;
  }

  .story-steps {
    gap: 16px;
  }

  .story-steps li {
    padding-left: 40px;
  }

  .story-steps li::before {
    width: 28px;
    height: 28px;
  }

  .agent-roster article {
    padding: 14px;
  }

  .secure-stack-panel {
    min-height: 0;
  }

  .agent-os-diagram {
    overflow: visible;
  }

  .secure-stack-visual {
    overflow: visible;
    min-height: 0;
    height: auto;
  }

  .secure-stack-visual svg {
    display: none;
  }

  .secure-stack-panel.reveal,
  .secure-stack-visual.reveal,
  .secure-checklist.reveal {
    opacity: 1;
    transform: none;
  }

  .secure-stack-visual figcaption {
    margin-bottom: 12px;
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .secure-mobile-flow {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .secure-flow-card {
    position: relative;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(244, 239, 230, 0.14);
    border-radius: 8px;
    padding: 14px 14px 14px 52px;
    background: rgba(7, 9, 13, 0.34);
  }

  .secure-flow-card::after {
    position: absolute;
    bottom: -13px;
    left: 28px;
    width: 1px;
    height: 14px;
    content: "";
    background: rgba(244, 239, 230, 0.24);
  }

  .secure-flow-card:last-child::after {
    display: none;
  }

  .secure-flow-card span {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    width: 28px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(244, 239, 230, 0.18);
    border-radius: 999px;
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .secure-flow-card strong {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .secure-flow-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .secure-flow-card.is-context {
    border-color: rgba(136, 214, 180, 0.32);
    background: rgba(136, 214, 180, 0.08);
  }

  .secure-flow-card.is-agent,
  .secure-flow-card.is-review {
    border-color: rgba(117, 167, 255, 0.34);
    background: rgba(117, 167, 255, 0.09);
  }

  .secure-flow-card.is-gate {
    border-color: rgba(241, 180, 95, 0.3);
    background: rgba(241, 180, 95, 0.08);
  }

  .secure-flow-card.is-deploy {
    border-color: rgba(230, 111, 101, 0.28);
    background: rgba(230, 111, 101, 0.07);
  }

  .secure-checklist {
    grid-template-columns: 1fr;
  }

  .secure-checklist article {
    min-height: 0;
  }

  .agent-os-diagram svg {
    display: none;
  }

  .agent-mobile-flow {
    display: grid;
    gap: 10px;
  }

  .mobile-flow-card {
    position: relative;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(244, 239, 230, 0.14);
    border-radius: 8px;
    padding: 14px 14px 14px 52px;
    background: rgba(7, 9, 13, 0.34);
  }

  .mobile-flow-card::after {
    position: absolute;
    bottom: -13px;
    left: 28px;
    width: 1px;
    height: 14px;
    content: "";
    background: rgba(244, 239, 230, 0.24);
  }

  .mobile-flow-card:last-child::after {
    display: none;
  }

  .mobile-flow-card span {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    width: 28px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(244, 239, 230, 0.18);
    border-radius: 999px;
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .mobile-flow-card strong {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .mobile-flow-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .mobile-flow-card.is-human {
    border-color: rgba(241, 180, 95, 0.3);
    background: rgba(241, 180, 95, 0.08);
  }

  .mobile-flow-card.is-core {
    border-color: rgba(117, 167, 255, 0.34);
    background: rgba(117, 167, 255, 0.09);
  }

  .mobile-flow-card.is-memory {
    border-color: rgba(136, 214, 180, 0.32);
    background: rgba(136, 214, 180, 0.08);
  }

  .mobile-flow-card.is-policy {
    border-color: rgba(230, 111, 101, 0.28);
    background: rgba(230, 111, 101, 0.07);
  }

  .analyzer-section {
    padding-top: 58px;
  }

  .analyzer-shell {
    gap: 12px;
    padding: 14px;
  }

  .analyzer-intro h3 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 8vw, 1.9rem);
  }

  .analyzer-intro p {
    margin-bottom: 8px;
    font-size: 0.98rem;
  }

  .analyzer-badges {
    gap: 6px;
    margin-bottom: 12px;
  }

  .analyzer-badges span {
    min-height: 28px;
    padding-inline: 8px;
    font-size: 0.66rem;
  }

  .analyzer-note {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .analyzer-tabs {
    position: sticky;
    top: 66px;
    z-index: 2;
    backdrop-filter: blur(16px);
  }

  .analyzer-tab,
  .primary-action,
  .secondary-action {
    min-height: 46px;
  }

  textarea {
    min-height: 230px;
    padding: 14px;
  }

  .analyzer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .image-preview {
    min-height: 220px;
  }

  .signal-grid {
    gap: 8px;
  }

  .experiment-card,
  .archive-list a {
    grid-template-columns: 1fr;
  }

  .experiment-card {
    min-height: 0;
  }

  .experiment-number {
    width: 54px;
  }

  .usage-panel {
    padding: 16px;
  }

  .usage-panel h3 {
    max-width: 100%;
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }

  .usage-legend span,
  .usage-bars span,
  .router-rankings span,
  .usage-note {
    font-size: 0.88rem;
  }

  .source-links {
    display: grid;
  }

  .stack-form {
    grid-template-columns: 1fr;
  }

  .stack-summary {
    gap: 16px;
    padding: 22px 18px;
  }

  .stack-total {
    font-size: 2.85rem;
    line-height: 0.94;
  }

  .stack-breakdown {
    gap: 0;
  }

  .stack-breakdown div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 12px;
    padding: 10px 0;
  }

  .archive-list a {
    gap: 6px;
  }

  .score-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    min-height: 124px;
    padding: 14px 0 12px;
    border-width: 1px 0;
    border-radius: 0;
    background: transparent;
  }

  .score-ring {
    width: 68px;
    font-size: 1.04rem;
  }
}
