@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/newsreader-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
}

:root {
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-text: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --paper: #ffffff;
  --paper-warm: #f7f6f2;
  --paper-tint: #efede7;
  --ink: #1b1c1a;
  --ink-2: #4a4a45;
  --ink-3: #686761;
  --rule: #e6e4dd;
  --rule-strong: #d5d2c8;

  --dark-bg: #1c1e21;
  --dark-surface: #25282c;
  --dark-rule: rgba(255, 255, 255, 0.14);
  --dark-fg: #f4f3ee;
  --dark-muted: #a6aba8;

  --brand-blue: #2997ff;
  --brand-blue-light: #82c4ff;
  --cta-bg: #1d64c8;
  --cta-bg-hover: #1753a8;
  --cta-fg: #ffffff;
  --band-blue: #b8cfe8;
  --band-blue-deep: #9cb9da;
  --band-ink: #141f2b;
  --band-muted: #2c4157;
  --wash-blue: #edf3fa;
  --mat-linen: #ece7dc;
  --mat-slate: #dce5ee;
  --mat-sage: #dfe6de;
  --mat-dusk: #2b3440;

  --measure: 62ch;
  --page: 1180px;
  --gutter: 28px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; }

h1, h2, h3 {
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 450;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}
h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
strong { font-weight: 700; }
p { margin: 0 0 16px; max-width: var(--measure); }
a { color: var(--cta-bg); text-underline-offset: 3px; }
a:hover { color: var(--cta-bg-hover); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
  background: var(--paper-tint);
  border-radius: 6px;
  padding: 2px 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:not(:focus-visible) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.button:hover {
  background: var(--cta-bg-hover);
  color: var(--cta-fg);
}
.button.large {
  min-height: 48px;
  padding: 12px 26px;
  font-size: 15px;
}
.button.dark {
  background: var(--ink);
  color: var(--paper);
}
.button.dark:hover {
  background: #30322f;
  color: var(--paper);
}
.button.quiet {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.button.quiet:hover {
  background: var(--paper-warm);
  border-color: #bfbcae;
  color: var(--ink);
}
.button.soft-blue {
  background: var(--wash-blue);
  color: var(--band-ink);
  border-color: rgba(20, 31, 43, 0.12);
}
.button.soft-blue:hover {
  background: #dfeaf7;
  color: var(--band-ink);
}
.button:focus-visible, a:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 3px;
}
button.button { cursor: pointer; }
button.button:disabled { opacity: 0.6; cursor: default; }

.top-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 228, 221, 0.72);
}
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14px var(--gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  justify-self: start;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark-svg { height: 24px; width: auto; display: block; }
.mark-svg { height: 28px; width: auto; flex: none; display: block; }
.mark-back { fill: var(--brand-blue); }
.mark-front { fill: var(--brand-blue-light); }

.top-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.top-links a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 2px;
}
.top-links a:hover, .top-links a[aria-current="page"] { color: var(--ink); }

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}
.top-actions .button { min-height: 36px; padding: 0 16px; font-size: 14px; white-space: nowrap; }

.wrap {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.hero {
  padding: 40px 0 80px;
  background: var(--paper);
}
.hero-header {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px;
  align-items: start;
}
.hero-title h1 {
  margin: 0;
  max-width: 14ch;
}
.hero-aside {
  padding-top: 6px;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 40ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.stage {
  position: relative;
  margin-top: 28px;
}
.hero-preview {
  min-inline-size: 0;
}
.hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  border: 0;
  padding: 0;
  margin: 0;
  max-width: 100%;
}
.hero-tabs label {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.hero-tabs span {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.hero-tabs label:hover span { color: var(--ink); }
.hero-tabs input:checked + span {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.hero-tabs input:focus-visible + span {
  outline: 2px solid var(--cta-bg);
  outline-offset: 4px;
  border-radius: 4px;
}

.hero-appearance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.theme-current {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-right: 4px;
}
.hero-appearance label {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.swatch-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.hero-appearance label:hover .swatch-btn { transform: scale(1.1); }
.hero-appearance input:checked + .swatch-btn {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink);
}
.hero-appearance input:focus-visible + .swatch-btn {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}
.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}
.theme-dot-light { background: linear-gradient(135deg, #ffffff 50%, #1d60ae 50%); }
.theme-dot-dark { background: linear-gradient(135deg, #1c2024 50%, #2997ff 50%); }
.theme-dot-berg { background: linear-gradient(135deg, #101214 50%, #85d9f7 50%); }
.theme-dot-trading { background: linear-gradient(135deg, #111820 50%, #ffcc00 50%); }
.theme-dot-darkroom { background: linear-gradient(135deg, #12100e 50%, #b7d1cd 50%); }
.theme-dot-so { background: linear-gradient(135deg, #ffffff 50%, #45818e 50%); }
.theme-dot-custom {
  background: conic-gradient(#b84a27, #e0b341, #4fb477, #2997ff, #b84a27);
}

.hero-custom-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
}
.hero-preview:has(input[name="hero-appearance"][value="custom"]:checked) .hero-custom-bar {
  display: flex;
}
.hero-custom-inputs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-color-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.hero-color-field input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}
.hero-custom-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-preset-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.hero-preset-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.hero-preset-btn:focus-visible { outline: 2px solid var(--cta-bg); outline-offset: 2px; }

.hw-creative-only,
.hw-money-only,
.hw-everyday-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="creative"]:checked) .hw-dev-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="creative"]:checked) .hw-creative-only { display: inline-flex; }
.hero-preview:has(input[name="hero-scenario"][value="creative"]:checked) .hw-panes.hw-creative-only { display: grid; }
.hero-preview:has(input[name="hero-scenario"][value="money"]:checked) .hw-dev-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="money"]:checked) .hw-money-only { display: inline-flex; }
.hero-preview:has(input[name="hero-scenario"][value="money"]:checked) .hw-panes.hw-money-only { display: grid; }
.hero-preview:has(input[name="hero-scenario"][value="everyday"]:checked) .hw-dev-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="everyday"]:checked) .hw-everyday-only { display: inline-flex; }
.hero-preview:has(input[name="hero-scenario"][value="everyday"]:checked) .hw-panes.hw-everyday-only { display: grid; }

@media (forced-colors: active) {
  .hero-tabs input:checked + span,
  .hero-appearance input:checked + .swatch-btn { outline: 2px solid CanvasText; outline-offset: -4px; }
  .hero-tabs input:focus-visible + span,
  .hero-appearance input:focus-visible + .swatch-btn { outline: 2px solid Highlight; outline-offset: 2px; }
}

.hero-collage {
  position: relative;
  padding: 32px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(20, 31, 43, 0.06) 100%),
    url('/brand/backdrop-hero.jpg') center / cover no-repeat,
    #ece8df;
  border: 1px solid rgba(27, 28, 26, 0.1);
}
.hero-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: center;
}
.hero-before-col {
  position: relative;
  z-index: 1;
  margin-right: -18px;
  padding-right: 10px;
}

.hero-shot {
  --hw-bg: #ffffff;
  --hw-side: #f3f2ee;
  --hw-panel: #ffffff;
  --hw-raised: #ebeae6;
  --hw-fg: #1b1c1e;
  --hw-muted: #4d5157;
  --hw-line: #dcdcd8;
  --hw-selected: #ebeae6;
  --hw-accent: #1d60ae;
  --hw-on-accent: #ffffff;
  --hw-ok: #1e7a4c;
  --hw-attention: #c47614;
  --hw-problem: #a3261d;
  position: relative;
  z-index: 2;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hw-bg);
  color: var(--hw-fg);
  box-shadow:
    0 28px 64px -16px rgba(20, 31, 43, 0.34),
    0 0 0 1px rgba(27, 28, 26, 0.12);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-shot { transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
}

.hero-preview:has(input[name="hero-appearance"][value="dark"]:checked) .hero-shot {
  --hw-bg: #1c2024;
  --hw-side: #0e1012;
  --hw-panel: #1c2024;
  --hw-raised: #242930;
  --hw-fg: #e8eaec;
  --hw-muted: #b0b6bd;
  --hw-line: #2d3237;
  --hw-selected: #242930;
  --hw-accent: #2997ff;
  --hw-on-accent: #111315;
  --hw-ok: #6fcf97;
  --hw-attention: #f49f31;
  --hw-problem: #ff9e94;
}
.hero-preview:has(input[name="hero-appearance"][value="berg"]:checked) .hero-shot {
  --hw-bg: #101214;
  --hw-side: #0a0b0c;
  --hw-panel: #101214;
  --hw-raised: #1b1f22;
  --hw-fg: #e0e3df;
  --hw-muted: #acacae;
  --hw-line: #2c3033;
  --hw-selected: #242d2e;
  --hw-accent: #85d9f7;
  --hw-on-accent: #101214;
  --hw-ok: #a8ff60;
  --hw-attention: #e0c010;
  --hw-problem: #ff6c60;
}
.hero-preview:has(input[name="hero-appearance"][value="trading-desk"]:checked) .hero-shot {
  --hw-bg: #111820;
  --hw-side: #0b1016;
  --hw-panel: #111820;
  --hw-raised: #1a2430;
  --hw-fg: #e6edf3;
  --hw-muted: #a8afb8;
  --hw-line: #26323e;
  --hw-selected: #172d42;
  --hw-accent: #ffcc00;
  --hw-on-accent: #111820;
  --hw-ok: #2ea043;
  --hw-attention: #d29922;
  --hw-problem: #f85149;
}
.hero-preview:has(input[name="hero-appearance"][value="darkroom"]:checked) .hero-shot {
  --hw-bg: #12100e;
  --hw-side: #0b0a09;
  --hw-panel: #12100e;
  --hw-raised: #1e1a16;
  --hw-fg: #e3ddd3;
  --hw-muted: #b3aa9e;
  --hw-line: #2f2923;
  --hw-selected: #302820;
  --hw-accent: #b7d1cd;
  --hw-on-accent: #12100e;
  --hw-ok: #78a957;
  --hw-attention: #c3964a;
  --hw-problem: #d0978b;
}
.hero-preview:has(input[name="hero-appearance"][value="so"]:checked) .hero-shot {
  --hw-bg: #ffffff;
  --hw-side: #f1f3f4;
  --hw-panel: #ffffff;
  --hw-raised: #e8eaed;
  --hw-fg: #202124;
  --hw-muted: #5f6368;
  --hw-line: #dadce0;
  --hw-selected: #e3eef0;
  --hw-accent: #45818e;
  --hw-on-accent: #ffffff;
  --hw-ok: #38761d;
  --hw-attention: #bf9000;
  --hw-problem: #990000;
}
.hero-preview:has(input[name="hero-appearance"][value="custom"]:checked) .hero-shot {
  --hw-bg: var(--custom-bg, #f6f1e7);
  --hw-side: var(--custom-side, #ebe4d7);
  --hw-panel: var(--custom-bg, #f6f1e7);
  --hw-raised: var(--custom-raised, #e2d9c8);
  --hw-fg: var(--custom-fg, #1c1917);
  --hw-muted: var(--custom-muted, #57534e);
  --hw-line: var(--custom-line, #d6ccba);
  --hw-selected: var(--custom-selected, #e7dcd1);
  --hw-accent: var(--custom-accent, #b84a27);
  --hw-on-accent: var(--custom-on-accent, #ffffff);
  --hw-ok: var(--custom-ok, #1e7a4c);
  --hw-attention: var(--custom-attention, #b45309);
  --hw-problem: var(--custom-problem, #b91c1c);
}

.chaos-surface {
  background: #1a1c20;
  color: #e6e8ec;
  padding: 14px 18px 14px 14px;
  border-radius: 14px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 18px 40px -16px rgba(20, 31, 43, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.chaos-surface.chaos-creative,
.chaos-surface.chaos-money,
.chaos-surface.chaos-everyday { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="creative"]:checked) .chaos-surface.chaos-dev { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="creative"]:checked) .chaos-surface.chaos-creative { display: flex; }
.hero-preview:has(input[name="hero-scenario"][value="money"]:checked) .chaos-surface.chaos-dev { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="money"]:checked) .chaos-surface.chaos-money { display: flex; }
.hero-preview:has(input[name="hero-scenario"][value="everyday"]:checked) .chaos-surface.chaos-dev { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="everyday"]:checked) .chaos-surface.chaos-everyday { display: flex; }
.before-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nle-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nle-compact .nle-frame-wrap { max-height: 136px; }
.term-win-warn { border-color: rgba(244, 159, 49, 0.42); }
.term-win-err { border-color: rgba(255, 110, 100, 0.4); }
.term-win-dim { opacity: 0.72; }
.chaos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chaos-tab {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #a6acb4;
  white-space: nowrap;
}
.chaos-tab.is-hot {
  background: rgba(244, 159, 49, 0.18);
  color: #f4c27f;
  box-shadow: inset 0 0 0 1px rgba(244, 159, 49, 0.35);
}
.chaos-tab.is-err-tab {
  background: rgba(255, 110, 100, 0.18);
  color: #ff9c94;
  box-shadow: inset 0 0 0 1px rgba(255, 110, 100, 0.35);
}
.chaos-tab-more {
  background: rgba(255, 255, 255, 0.11);
  color: #e6e8ec;
}
.term-win {
  background: #111317;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.7);
}
.term-body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #d6dbe2;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body code { background: none; padding: 0; color: inherit; font-size: inherit; }
.term-err { color: #ff9c94; font-weight: 700; }
.term-ok { color: #6fcf97; font-weight: 700; }
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #f4c27f;
  vertical-align: -2px;
}

.nle-monitor,
.nle-timeline {
  background: #121418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.nle-mon-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 10px;
  background: #1b1e24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #b7bec8;
}
.nle-pill-warn {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(244, 159, 49, 0.18);
  color: #f6b963;
  font-weight: 700;
}
.nle-pill-err {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 110, 100, 0.18);
  color: #ff9c94;
  font-weight: 700;
}
.nle-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 196px;
  width: 100%;
  overflow: hidden;
  background: #0b0d10;
}
.nle-raw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.24) contrast(0.72) brightness(1.08) sepia(0.06);
}
.nle-tc {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(10, 12, 16, 0.84);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff9c94;
  font-weight: 700;
}
.nle-export-box {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 110, 100, 0.09);
  border: 1px solid rgba(255, 110, 100, 0.28);
}
.nle-export-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #ff9c94;
  margin-bottom: 3px;
}
.nle-export-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #d0d5dd;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nle-export-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.nle-export-bar span {
  display: block;
  height: 100%;
  background: #ff6e64;
}
.nle-timeline {
  padding: 0 0 10px;
}
.nle-render-bar {
  height: 3px;
  background: linear-gradient(90deg, #ff5f57 0 65%, #f49f31 65% 100%);
}
.nle-ruler {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8f97a3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nle-flag {
  color: #f6b963;
  font-weight: 600;
}
.nle-track {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 0;
  min-width: 0;
}
.nle-track em {
  width: 24px;
  flex: none;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8f97a3;
}
.nle-clip {
  display: block;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nle-clip.c-v2 { background: #5a4899; }
.nle-clip.c-v1 { background: #2c5b8c; }
.nle-clip.c-a2 { background: #8a4332; }

.mess-app {
  background: #23262c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mess-mail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mess-mail-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}
.mess-mail-list strong { color: #f3f5f8; white-space: nowrap; }
.mess-mail-list span { color: #a6acb4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mess-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.mess-table th,
.mess-table td {
  text-align: left;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mess-table th { background: rgba(255, 255, 255, 0.06); color: #a6acb4; font-weight: 600; }
.mess-err { color: #ff9c94; font-weight: 700; }
.mess-warn { color: #f6b963; font-weight: 700; }
.mess-chat-q {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #e6e8ec;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.chaos-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chaos-dots {
  display: inline-flex;
  gap: 4px;
}
.chaos-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}
.chaos-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #d6dbe2;
}
.chaos-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.chaos-badge.is-warn { background: rgba(244, 159, 49, 0.16); color: #f6b963; }
.chaos-badge.is-err { background: rgba(255, 110, 100, 0.16); color: #ff9c94; }
.chaos-badge.is-muted { background: rgba(255, 255, 255, 0.08); color: #a6acb4; }

.hw-shell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 492px;
  background: var(--hw-bg);
  color: var(--hw-fg);
}
.hw-rail {
  background: var(--hw-side);
  border-right: 1px solid var(--hw-line);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hw-traffic {
  display: flex;
  gap: 5px;
}
.hw-traffic i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.hw-traffic i:nth-child(1) { background: #ff5f57; }
.hw-traffic i:nth-child(2) { background: #febc2e; }
.hw-traffic i:nth-child(3) { background: #28c840; }
.hw-rail-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.hw-rail-ico {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--hw-muted);
}
.hw-rail-ico svg { width: 17px; height: 17px; }
.hw-rail-ico.is-active {
  background: var(--hw-selected);
  color: var(--hw-fg);
}
.hw-rail-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--hw-accent);
  color: var(--hw-on-accent);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.hw-rail-badge.is-clear {
  background: var(--hw-ok);
  color: #ffffff;
}
.hw-rail-mark {
  margin-top: auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.hw-rail-mark svg { width: 18px; height: 22px; }

.hw-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--hw-bg);
}
.hw-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  background: var(--hw-bg);
}
.hw-page-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--hw-fg);
}
.hw-agents-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 7px;
  border-radius: 999px;
  background: var(--hw-raised);
  color: var(--hw-fg);
  font-size: 12.5px;
  font-weight: 600;
}
.hw-agent-dots {
  display: inline-flex;
  align-items: center;
}
.hw-agent-dots i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  border: 1.5px solid var(--hw-bg);
  margin-left: -5px;
}
.hw-agent-dots i:first-child { margin-left: 0; background: #5a4899; }
.hw-agent-dots i:nth-child(2) { background: #2c5b8c; }
.hw-agent-dots i:nth-child(3) { background: #706019; }
.hw-topbar-spacer { display: block; }

.hw-panes-single {
  grid-template-columns: minmax(0, 1fr);
}
.app-inbox-stage {
  display: grid;
  place-items: center;
  padding: 28px 24px 48px;
  min-height: 420px;
  background: var(--hw-bg);
}
.app-inbox-deck {
  width: 100%;
  max-width: 580px;
}
.app-inbox-card {
  position: relative;
  padding: 26px 28px 22px;
  border-radius: 20px;
  background: var(--hw-side);
  border: 1px solid var(--hw-line);
  box-shadow: 0 8px 0 -4px var(--hw-side), 0 8px 0 -3px var(--hw-line);
}
.app-inbox-card.is-compact {
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: none;
}
.app-inbox-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.app-inbox-head h3,
.app-inbox-head h4 {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hw-fg);
}
.app-inbox-head h4 { font-size: 14px; }
.app-inbox-head span {
  font-size: 12px;
  color: var(--hw-muted);
  white-space: nowrap;
}
.app-inbox-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hw-muted);
}
.app-inbox-body code {
  background: var(--hw-raised);
  color: var(--hw-fg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}
.app-inbox-rule {
  height: 1px;
  background: var(--hw-line);
  margin: 18px 0 14px;
}
.app-inbox-label {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hw-fg);
}
.app-answer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border-radius: 999px;
  background: var(--hw-bg);
  border: 1px solid var(--hw-line);
}
.app-answer-placeholder {
  font-size: 13px;
  color: var(--hw-muted);
}
.app-answer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.app-inbox-card.is-compact .app-answer-btns {
  margin-top: 14px;
}
.app-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--hw-line);
  background: var(--hw-raised);
  color: var(--hw-fg);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}
.app-pill-btn.is-primary {
  background: var(--hw-accent);
  border-color: var(--hw-accent);
  color: var(--hw-on-accent);
}
.app-pill-btn kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
}
.app-pill-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.app-pill-btn:focus-visible { outline: 2px solid var(--hw-accent); outline-offset: 2px; }
.app-inbox-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--hw-muted);
}
.app-inbox-empty {
  text-align: center;
  padding: 56px 24px;
}
.app-inbox-empty.is-compact { padding: 36px 16px; }
.app-empty-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hw-fg);
}
.app-empty-sub {
  margin: 0;
  font-size: 13px;
  color: var(--hw-muted);
}

.app-chat-stream {
  padding: 18px 22px 12px;
  gap: 12px;
  flex: 1;
}
.app-user-bubble {
  align-self: flex-end;
  max-width: 90%;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--hw-raised);
  color: var(--hw-fg);
  font-size: 13px;
  line-height: 1.5;
}
.app-tool-line {
  margin: 0;
  font-size: 12px;
  color: var(--hw-muted);
}
.app-agent-bubble {
  align-self: flex-start;
  max-width: 92%;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--hw-side);
  color: var(--hw-fg);
  font-size: 13px;
  line-height: 1.5;
}
.app-chat-footer {
  padding: 0 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-chat-footer .creative-approve-bar { margin: 0; }
.app-inline-done {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hw-ok);
}
.app-steer-box {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--hw-line);
  background: var(--hw-bg);
  font-size: 12.5px;
  color: var(--hw-muted);
}

.hw-pane-doc {
  border-right: 1px solid var(--hw-line);
  padding: 24px 28px 40px;
}

.hw-pane-side-inbox {
  display: flex;
  flex-direction: column;
}
.side-inbox-wrap {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spend-sheet {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.spend-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.spend-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--hw-muted);
}
.spend-total {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  color: var(--hw-fg);
}
.spend-delta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hw-ok) 14%, transparent);
  color: var(--hw-ok);
  white-space: nowrap;
}
.spend-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spend-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.spend-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}
.spend-row-head span {
  color: var(--hw-fg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.spend-row-head em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hw-attention) 16%, transparent);
  color: var(--hw-attention);
}
.spend-row.is-saved .spend-row-head em {
  background: color-mix(in srgb, var(--hw-ok) 15%, transparent);
  color: var(--hw-ok);
}
.spend-row-head strong {
  font-family: var(--font-mono);
  color: var(--hw-fg);
}
.spend-track {
  height: 6px;
  border-radius: 999px;
  background: var(--hw-raised);
  overflow: hidden;
}
.spend-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--hw-accent);
}
@media (prefers-reduced-motion: no-preference) {
  .spend-track i { transition: width 240ms ease, background-color 240ms ease; }
}
.spend-track i.is-warn { background: var(--hw-attention); }
.spend-track i.is-ok { background: var(--hw-ok); }
.spend-foot {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hw-line);
  font-size: 12px;
  color: var(--hw-muted);
}

.trip-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.trip-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--hw-fg);
}
.trip-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hw-attention) 16%, transparent);
  color: var(--hw-attention);
  white-space: nowrap;
}
.trip-pill.is-done {
  background: color-mix(in srgb, var(--hw-ok) 15%, transparent);
  color: var(--hw-ok);
}
.trip-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trip-day {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hw-side);
}
.trip-day-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hw-accent);
  padding-top: 1px;
}
.trip-day div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.trip-day strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--hw-fg);
}
.trip-day div span {
  font-size: 12px;
  color: var(--hw-muted);
}

.hw-panes {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.hw-panes.hw-panes-single {
  grid-template-columns: minmax(0, 1fr);
}
.hw-panes.hw-creative-only,
.hw-panes.hw-money-only,
.hw-panes.hw-everyday-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="creative"]:checked) .hw-panes.hw-dev-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="creative"]:checked) .hw-panes.hw-creative-only { display: grid; }
.hero-preview:has(input[name="hero-scenario"][value="money"]:checked) .hw-panes.hw-dev-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="money"]:checked) .hw-panes.hw-money-only { display: grid; }
.hero-preview:has(input[name="hero-scenario"][value="everyday"]:checked) .hw-panes.hw-dev-only { display: none; }
.hero-preview:has(input[name="hero-scenario"][value="everyday"]:checked) .hw-panes.hw-everyday-only { display: grid; }
.hw-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--hw-panel);
}
.hw-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hw-line);
}
.hw-pane-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hw-fg);
}
.hw-pane-meta {
  font-size: 12px;
  color: var(--hw-muted);
}
.hw-link-reset {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 6px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--hw-accent);
  text-decoration: underline;
  cursor: pointer;
}

.hw-pane-chat {
  border-right: 1px solid var(--hw-line);
  display: flex;
  flex-direction: column;
}
.chat-stream {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.creative-approve-bar {
  margin: auto 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aspect-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--hw-raised);
  border: 1px solid var(--hw-line);
}
.aspect-btn {
  border: 0;
  background: transparent;
  color: var(--hw-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.aspect-btn.is-active {
  background: var(--hw-bg);
  color: var(--hw-fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
.grade-stage {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.grade-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1014;
  border: 1px solid var(--hw-line);
  margin: 0 auto;
  width: 100%;
  transition: max-width 200ms ease;
}
.grade-viewport.is-vertical {
  max-width: 185px;
  aspect-ratio: 9 / 14;
}
.grade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grade-raw-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--wipe, 46%)) 0 0);
  will-change: clip-path;
}
.grade-img-raw {
  filter: saturate(0.24) contrast(0.72) brightness(1.08) sepia(0.06);
}
.grade-divider {
  position: absolute;
  inset: 0;
  transform: translateX(var(--wipe, 46%));
  will-change: transform;
  pointer-events: none;
}
.grade-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.55);
}
.grade-divider span {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #14171a;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.grade-viewport:has(.grade-range:focus-visible) {
  outline: 2px solid var(--hw-accent);
  outline-offset: 2px;
}
.grade-viewport:has(.grade-range:focus-visible) .grade-divider span {
  outline: 2px solid var(--hw-accent);
  outline-offset: 2px;
}
.grade-tag {
  position: absolute;
  top: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.76);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  pointer-events: none;
}
.grade-tag.is-left { left: 9px; }
.grade-tag.is-right { right: 9px; background: rgba(20, 42, 34, 0.82); }
.grade-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.play-cut-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--hw-line);
  background: var(--hw-side);
  color: var(--hw-fg);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.play-cut-btn[aria-pressed="true"] {
  background: var(--hw-accent);
  border-color: var(--hw-accent);
  color: var(--hw-on-accent);
}
.cut-track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--hw-raised);
}
.cut-progress {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--hw-accent);
  transform-origin: left center;
  will-change: transform;
}
.cut-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hw-ok);
  border: 2px solid var(--hw-bg);
}
.cut-tc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--hw-muted);
  min-width: 36px;
  text-align: right;
}

.window {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #14171a;
  box-shadow:
    0 20px 50px -18px rgba(20, 31, 43, 0.26),
    0 0 0 1px rgba(27, 28, 26, 0.1);
}
.window img, .window video {
  display: block;
  width: 100%;
  height: auto;
}
.window.light-surface { background: #ffffff; }

.principles {
  padding: 96px 0;
  background: var(--paper);
}
.principles-rail {
  position: relative;
  border-left: 1px dashed var(--rule-strong);
  border-right: 1px dashed var(--rule-strong);
  padding: 48px 56px;
}
.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.principles-copy h2 {
  max-width: 14ch;
  margin-bottom: 36px;
}
.ruled-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.ruled-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.ruled-list strong { color: var(--ink); font-weight: 700; }
.ruled-icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
  margin-top: 1px;
}
.principles-visual .frame {
  padding: 28px;
}

.seam-heading {
  background: var(--paper);
  padding: 72px 0 0;
  text-align: center;
}
.seam-heading h2 {
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0;
  padding-bottom: 18px;
  color: var(--ink);
}

.ecosystem {
  background: var(--dark-bg);
  color: var(--dark-fg);
  padding: 72px 0 88px;
  position: relative;
}
.ecosystem-kicker {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--dark-fg);
  margin: 0 auto 48px;
  max-width: 60ch;
}
.logo-wall {
  max-width: 1020px;
  margin: 0 auto;
}
.logo-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}
.logo-row li {
  padding: 18px 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: rgba(244, 243, 238, 0.92);
}
.logo-row li span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-muted);
  letter-spacing: 0;
}
.crosshair-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  padding: 12px 10%;
  color: rgba(255, 255, 255, 0.28);
  font-size: 18px;
  font-weight: 300;
  user-select: none;
}
.ecosystem-note {
  text-align: center;
  color: var(--dark-muted);
  font-size: 15px;
  max-width: 58ch;
  margin: 48px auto 0;
}

.workflow {
  padding: 108px 0 112px;
  background: var(--paper);
}
.workflow-intro {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr);
  gap: 48px;
  margin-bottom: 56px;
}
.workflow-intro h2 {
  grid-column: 2;
  max-width: 16ch;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  margin: 0;
}
.workflow-body {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr);
  gap: 48px;
  align-items: start;
}
.workflow-nav {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.workflow-nav a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: color 140ms ease;
}
.workflow-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(var(--step-progress, 0));
  transition: transform 140ms linear;
}
.workflow-nav a:hover { color: var(--ink); }
.workflow-nav a.is-active {
  color: var(--ink);
}
.workflow-nav a.is-active::after {
  transform: scaleX(var(--step-progress, 0.35));
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.workflow-step {
  scroll-margin-top: 104px;
}
.workflow-step h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 30px);
}
.workflow-step p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 54ch;
  margin: 0 0 28px;
}

.frame {
  position: relative;
  padding: 32px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(27, 28, 26, 0.08);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.frame > * { position: relative; z-index: 1; }
.frame-linen {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(27, 28, 26, 0.04)),
    url('/brand/backdrop-linen.jpg') center / cover no-repeat,
    #eae4d8;
}
.frame-slate {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(20, 31, 43, 0.06)),
    url('/brand/backdrop-horizon.jpg') center / cover no-repeat,
    #d8e3ef;
}
.frame-sage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(20, 31, 43, 0.06)),
    url('/brand/backdrop-lake.jpg') center / cover no-repeat,
    #d7e2da;
}
.frame-dusk {
  background: linear-gradient(145deg, #27323f 0%, #1d2530 100%);
  border-color: rgba(255, 255, 255, 0.08);
}
.frame-bottom {
  padding-bottom: 0;
}
.frame-bottom .window {
  border-radius: 14px 14px 0 0;
}

.media video, .media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: #14171a;
}
.media video.wide { aspect-ratio: 1680 / 760; }
.media.zoom img { transform: scale(1.36); transform-origin: 50% 25%; }

.spotlight {
  position: relative;
  background: var(--band-blue);
  color: var(--band-ink);
  padding: 104px 0;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.spotlight-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6.5fr);
  gap: 56px;
  align-items: center;
}
.spotlight .eyebrow { color: var(--band-muted); margin-bottom: 12px; }
.spotlight h2 {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--band-ink);
  margin-bottom: 22px;
  max-width: 10ch;
}
.spotlight-copy p {
  color: var(--band-muted);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 40ch;
}

.workspace-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 24px 26px 22px;
  box-shadow:
    0 24px 56px -18px rgba(20, 31, 43, 0.28),
    0 0 0 1px rgba(20, 31, 43, 0.08);
}
.workspace-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 12px;
}
.workspace-dots {
  display: inline-flex;
  gap: 7px;
}
.workspace-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dedcd5;
}
.workspace-dots span:nth-child(1) { background: #ec6a5e; }
.workspace-dots span:nth-child(2) { background: #f4bf4f; }
.workspace-dots span:nth-child(3) { background: #61c554; }
.workspace-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.workspace-rows {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.workspace-rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.workspace-rows li:last-child { border-bottom: 0; }
.ws-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  background: var(--paper-warm);
  padding: 2px 7px;
  border-radius: 6px;
}
.ws-title {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--ink-2);
  white-space: nowrap;
}
.ws-badge-ask {
  background: var(--wash-blue);
  color: var(--cta-bg);
}
.workspace-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.workspace-composer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.everything {
  padding: 104px 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.everything.paper {
  background: var(--paper);
  border-bottom: 0;
}
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px 48px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
  margin-bottom: 48px;
}
.split-head h2 { margin: 0; max-width: 18ch; }
.split-head p { margin: 0; color: var(--ink-2); font-size: 16px; }
.everything .split-head { border-top: 0; padding-top: 0; }

.cap-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
}
.cap-grid li {
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.cap-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

.ownership {
  padding: 104px 0;
  background: var(--paper);
}
.ownership .split-head {
  border-top: 0;
  padding-top: 0;
}
.own-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.own-grid li {
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.own-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 12px 0 8px;
}
.own-icon {
  width: 24px;
  height: 24px;
  color: var(--cta-bg);
}

.built-strip {
  margin-top: 72px;
  padding: 40px 44px;
  border-radius: 22px;
  background: var(--dark-bg);
  color: var(--dark-fg);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 48px;
  align-items: center;
}
.built-strip h3 {
  color: var(--dark-fg);
  font-size: 28px;
  margin: 0 0 8px;
}
.built-strip p {
  color: var(--dark-muted);
  font-size: 15px;
  margin: 0;
}
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.stats li {
  padding-left: 20px;
  border-left: 1px solid var(--dark-rule);
  color: var(--dark-muted);
  font-size: 13px;
  line-height: 1.45;
}
.stats strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 450;
  font-size: 38px;
  line-height: 1.05;
  color: var(--dark-fg);
  margin-bottom: 6px;
}

.closing-band {
  padding: 24px 0 96px;
  background: var(--paper);
}
.closing-mat {
  position: relative;
  padding: 36px 40px 0;
  border-radius: 26px;
  background: var(--band-blue);
  overflow: hidden;
}
.closing-mat::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.closing-window {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  padding: 20px 56px 64px;
  box-shadow: 0 24px 60px -20px rgba(20, 31, 43, 0.25);
}
.closing-window .workspace-dots { margin-bottom: 36px; }
.closing-window h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  max-width: 15ch;
  margin-bottom: 18px;
}
.closing-window h2 em {
  font-style: italic;
  color: var(--cta-bg);
}
.closing-window .closing-lede {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 48ch;
}
.closing-window .closing-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 20px 0 0;
  max-width: 60ch;
}

.page-hero {
  padding: 48px 0 36px;
  background: var(--paper);
}
.page-hero .hero-title h1 {
  max-width: 15ch;
}
.page-hero .hero-aside {
  padding-top: 32px;
}
.features-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin-top: 36px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.features-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms ease;
}
.features-jump a:hover {
  color: var(--ink);
}
.features-jump a:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 3px;
  border-radius: 6px;
}

.feature-band {
  padding: 64px 0 72px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.feature-band.warm { background: var(--paper-warm); }
.feature-band[id],
.points-section[id],
.everything[id] { scroll-margin-top: 84px; }
.feature-band .split-head {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 32px;
}

.points-section {
  padding: 8px 0 72px;
  background: var(--paper);
}
.point {
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.point:first-of-type {
  border-top: 0;
  padding-top: 36px;
}
.point.flip { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); }
.point.flip .point-copy { order: 2; }
.point-copy h3 { margin-bottom: 12px; }
.point-copy p { color: var(--ink-2); font-size: 16px; margin-bottom: 0; }
.point .frame { padding: 24px; }
.point .window:has(img[width="772"]) { max-width: 772px; margin: 0 auto; }

.term { background: #16181c; }
.term pre {
  margin: 0;
  padding: 28px 32px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.75;
}
.term code {
  background: none;
  padding: 0;
  color: #f3f2ee;
  font-size: 1em;
}
.term .prompt, .term .aside { color: #8c939d; }

.filing { --loop: 10s; background: #ffffff; }
.filing-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  aspect-ratio: 2 / 1;
  font-size: clamp(12px, 1.45vw, 17px);
  line-height: 1.45;
  color: var(--ink);
  background: #ffffff;
}
.filing p { margin: 0; max-width: none; }
.filing-list {
  padding: 1.5em 1.4em;
  background: #ffffff;
  border-right: 1px solid var(--rule);
}
.filing-head {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.55em;
  margin-bottom: 0.7em !important;
}
.filing-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.filing-list li {
  display: flex;
  gap: 0.9em;
  align-items: center;
  height: 2.35em;
  padding: 0 0.6em;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  overflow: hidden;
}
.filing-list li span:last-child { overflow: hidden; text-overflow: ellipsis; }
.filing-list li.working { background: var(--wash-blue); }
.filing-id { font-family: var(--font-mono); font-size: 0.85em; color: var(--ink-3); flex: none; }
.filing-chat { display: flex; flex-direction: column; background: var(--paper-warm); min-width: 0; }
.filing-strip {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 1em 1.2em;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
  font-size: 0.88em;
}
.filing-dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ink-3); flex: none; }
.filing-state { display: grid; }
.filing-state > span { grid-area: 1 / 1; opacity: 0; }
.filing-state > .s4 { opacity: 1; }
.filing-log { display: flex; flex-direction: column; gap: 0.75em; padding: 1.2em; }
.filing-bubble {
  align-self: flex-start;
  max-width: 92%;
  padding: 0.6em 0.9em;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.filing-line { display: flex; gap: 0.5em; align-items: baseline; font-size: 0.88em; color: var(--ink-3); min-width: 0; }
.filing-line > span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filing-line .filing-id { color: var(--ink); }
.filing-mark { color: #1d7a46; font-weight: 700; }
.filing-verb { flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .filing-stage * { animation-duration: var(--loop); animation-iteration-count: infinite; animation-timing-function: ease-out; animation-fill-mode: both; }
  .filing.paused .filing-stage * { animation-play-state: paused; }
  .filing-dot { animation-name: filing-dot; }
  .filing-state > .s1 { animation-name: filing-s1; }
  .filing-state > .s2 { animation-name: filing-s2; }
  .filing-state > .s3 { animation-name: filing-s3; }
  .filing-state > .s4 { animation-name: filing-s4; }
  .filing-log > .b1 { animation-name: filing-b1; }
  .filing-log > .b2 { animation-name: filing-b2; }
  .filing-log > .filing-line { animation-name: filing-line; }
  .filing-log > .b3 { animation-name: filing-b3; }
  .filing-list li.filing-new { animation-name: filing-row; }
}
@keyframes filing-dot { 0%, 71% { background: #1d7a46; } 73%, 100% { background: var(--ink-3); } }
@keyframes filing-s1 { 0%, 27% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes filing-s2 { 0%, 27% { opacity: 0; } 28%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes filing-s3 { 0%, 49% { opacity: 0; } 50%, 71% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes filing-s4 { 0%, 71% { opacity: 0; } 72%, 100% { opacity: 1; } }
@keyframes filing-b1 { 0%, 2% { opacity: 0; transform: translateY(0.5em); } 5%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes filing-b2 { 0%, 13% { opacity: 0; transform: translateY(0.5em); } 16%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes filing-line { 0%, 40% { opacity: 0; transform: translateY(0.5em); } 43%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes filing-b3 { 0%, 72% { opacity: 0; transform: translateY(0.5em); } 75%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes filing-row {
  0%, 44% { opacity: 0; height: 0; border-bottom-width: 0; }
  47% { opacity: 1; height: 2.35em; border-bottom-width: 1px; background: var(--wash-blue); }
  66%, 94% { opacity: 1; height: 2.35em; background: transparent; }
  99%, 100% { opacity: 0; height: 2.35em; }
}
@keyframes filing-row-fade {
  0%, 44% { opacity: 0; }
  47% { opacity: 1; background: var(--wash-blue); }
  66%, 94% { opacity: 1; background: transparent; }
  99%, 100% { opacity: 0; }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .filing-list li.filing-new { animation-name: filing-row-fade; }
}

.pi-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.pi-grid li {
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font-size: 15px;
}
.pi-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}

.legal-wrap {
  padding: 64px 0 96px;
}
.legal {
  max-width: var(--measure);
}
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: 28px; margin: 44px 0 12px; }
.legal .lede { font-size: 18px; color: var(--ink-2); }
.legal .dates { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.legal ul { padding-left: 1.2em; color: var(--ink-2); }
.legal li { margin-bottom: 10px; }

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin-top: 28px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input, .contact-form textarea {
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  background: var(--paper);
  border-color: var(--cta-bg);
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}
.contact-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .actions, .contact-form .status { margin: 0; }
.contact-form .status { font-size: 14px; color: var(--ink-2); }
.contact-form .status:empty { display: none; }

.bottom-wrap {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.bottom {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 64px var(--gutter) 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.footer-brand p {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 34ch;
}
.footer-col h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-legal p { margin: 0; max-width: none; }

@media (max-width: 1024px) {
  .hero-header,
  .hero-split,
  .principles-grid,
  .spotlight-grid,
  .built-strip,
  .split-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .page-hero .hero-aside { padding-top: 0; }
  .hero-before-col { margin-right: 0; padding-right: 0; }
  .chaos-surface { min-height: 0; padding: 14px; }
  .principles-rail { padding: 36px 28px; }
  .workflow-intro,
  .workflow-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .workflow-intro h2 { grid-column: 1; }
  .workflow-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .cap-grid, .own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 18px; }
  .top {
    grid-template-columns: auto 1fr;
    padding: 12px var(--gutter);
  }
  .top-links { display: none; }
  .top-actions .button.quiet { display: none; }
  .hero { padding: 36px 0 56px; }
  .hero-collage { padding: 16px; border-radius: 20px; }
  .hw-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hw-rail { display: none; }
  .hw-panes { grid-template-columns: minmax(0, 1fr); }
  .hw-pane-chat,
  .hw-pane-doc { border-right: 0; border-bottom: 1px solid var(--hw-line); }
  .hw-topbar { grid-template-columns: auto 1fr; }
  .hw-topbar-spacer { display: none; }
  .app-inbox-stage { padding: 20px 14px 40px; min-height: 360px; }
  .app-inbox-card { padding: 20px 18px; }
  .app-answer-bar { border-radius: 14px; padding: 10px 12px; }
  .chaos-surface { min-height: 0; padding: 16px; }
  .principles { padding: 56px 0; }
  .principles-rail { border: 0; padding: 0; }
  .seam-heading { padding-top: 40px; }
  .ecosystem { padding: 48px 0 60px; }
  .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crosshair-row { display: none; }
  .workflow { padding: 64px 0; }
  .workflow-steps { gap: 56px; }
  .frame { padding: 16px; border-radius: 16px; }
  .frame-bottom { padding-bottom: 0; }
  .spotlight { padding: 64px 0; }
  .everything, .ownership { padding: 64px 0; }
  .cap-grid, .own-grid, .pi-grid, .stats { grid-template-columns: minmax(0, 1fr); }
  .stats li { border-left: 0; border-top: 1px solid var(--dark-rule); padding: 16px 0 0; }
  .built-strip { padding: 28px 24px; }
  .closing-band { padding: 56px 0 64px; }
  .closing-mat { padding: 20px 16px 0; border-radius: 20px; }
  .closing-window { padding: 18px 22px 40px; }
  .page-hero { padding: 36px 0 28px; }
  .features-jump { gap: 2px 18px; margin-top: 24px; }
  .feature-band { padding: 48px 0 56px; }
  .point, .point.flip { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 36px 0; }
  .point.flip .point-copy { order: 0; }
  .filing-stage { grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; font-size: 13px; }
  .filing-list { border-right: 0; border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 480px) {
  .hero-toolbar { justify-content: flex-start; }
  .workspace-card { padding: 18px; }
  .workspace-composer { flex-direction: column; align-items: flex-start; }
}

.calm-demo {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 56px -18px rgba(20, 31, 43, 0.28),
    0 0 0 1px rgba(27, 28, 26, 0.1);
}
.calm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.calm-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-tint);
}
.calm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.calm-tab:hover { color: var(--ink); }
.calm-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(27, 28, 26, 0.1);
}
.calm-tab:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}
.calm-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}
.calm-badge.is-done {
  background: #1d7a46;
}
.calm-body {
  padding: 20px;
  min-height: 256px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calm-panel[hidden] { display: none; }
.calm-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 0 8px;
}
.calm-bubble {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: none;
}
.calm-note {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: none;
}
.calm-checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.calm-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calm-check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--wash-blue);
  color: var(--cta-bg);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.calm-status-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}
.calm-status-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.calm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f8a4c;
  flex: none;
}
.calm-status-dot.is-waiting { background: var(--cta-bg); }
.inbox-card-live {
  background: #1b1e23;
  color: #f4f3ee;
  border-radius: 14px;
  padding: 18px 20px;
}
.inbox-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #a3abb5;
  margin: 0 0 10px;
}
.inbox-card-q {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px;
  max-width: none;
}
.inbox-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.inbox-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #282d34;
  color: #f4f3ee;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.inbox-opt:hover {
  background: #1d64c8;
  border-color: #2997ff;
  color: #ffffff;
}
.inbox-opt.is-primary {
  background: #1d64c8;
  border-color: #2997ff;
  color: #ffffff;
}
.inbox-opt.is-primary:hover { background: #1753a8; }
.inbox-opt:focus-visible {
  outline: 2px solid #82c4ff;
  outline-offset: 2px;
}
.inbox-opt kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.inbox-hint {
  font-size: 12px;
  color: #9ca4af;
  margin: 0;
  max-width: none;
}
.inbox-resolved {
  background: #1b2a22;
  border: 1px solid rgba(100, 210, 145, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.inbox-resolved strong {
  display: block;
  color: #8ee2b2;
  font-size: 14px;
  margin-bottom: 4px;
}
.inbox-resolved p {
  margin: 0;
  font-size: 13px;
  color: #dcebe2;
  max-width: none;
}
.calm-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cta-bg);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.calm-link-btn:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 3px;
  border-radius: 4px;
}
.inbox-card-live .calm-link-btn { color: #82c4ff; }

.logo-row li { padding: 4px; }
.agent-tile {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(244, 243, 238, 0.9);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding: 14px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.agent-tile span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-muted);
  letter-spacing: 0;
}
.agent-tile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.agent-tile[aria-pressed="true"] {
  background: var(--dark-surface);
  border-color: rgba(130, 196, 255, 0.55);
  color: #ffffff;
}
.agent-tile:focus-visible {
  outline: 2px solid #82c4ff;
  outline-offset: 2px;
}
.handoff-bar {
  max-width: 920px;
  margin: 40px auto 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
}
.handoff-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}
.handoff-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}
.handoff-runner {
  font-size: 13px;
  font-weight: 700;
  color: #82c4ff;
}
.handoff-msg {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--dark-fg);
  max-width: none;
}
.handoff-kept {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--dark-muted);
}
.handoff-kept span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.handoff-kept b { color: #7ed9a4; font-weight: 700; }
.handoff-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.handoff-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(130, 196, 255, 0.6);
}
.handoff-btn:focus-visible {
  outline: 2px solid #82c4ff;
  outline-offset: 2px;
}

.annotate-demo {
  margin-top: 28px;
  background: var(--paper);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 14px 34px -18px rgba(20, 31, 43, 0.16);
}
.annotate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.annotate-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.annotate-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.annotate-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.annotate-mini-btn {
  border: 1px solid var(--rule-strong);
  background: var(--paper-warm);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.annotate-mini-btn:hover { background: var(--paper-tint); }
.annotate-mini-btn.is-primary {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: #ffffff;
}
.annotate-mini-btn.is-primary:hover { background: var(--cta-bg-hover); }
.annotate-mini-btn:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}
.annotate-canvas {
  position: relative;
  border-radius: 14px;
  background: #16191e;
  padding: 18px 20px 14px;
  cursor: crosshair;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.annotate-canvas-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.annotate-metric {
  font-size: 13px;
  font-weight: 600;
  color: #d6dce4;
}
.annotate-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #82c4ff;
}
.annotate-svg {
  display: block;
  width: 100%;
  height: auto;
}
.annotate-series-split { opacity: 0; transition: opacity 260ms ease; }
.annotate-demo.is-split .annotate-series-single { opacity: 0.14; }
.annotate-demo.is-split .annotate-series-split { opacity: 1; }
.annotate-pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e5484d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.28), 0 6px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.annotate-pin[hidden] { display: none; }
.annotate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.annotate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.annotate-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.annotate-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.workspace-stage {
  position: relative;
}
.workspace-rows li { padding: 0; border-bottom: 1px solid var(--rule); display: block; }
.ws-row-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 8px;
  border: 0;
  background: transparent;
  font-family: var(--font-text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 120ms ease;
}
.ws-row-btn:hover { background: var(--paper-warm); }
.ws-row-btn[aria-pressed="true"] { background: var(--wash-blue); }
.ws-row-btn:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: -2px;
}
.ws-preview {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}
.ws-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ws-preview-head strong { color: var(--ink); font-size: 13px; }
.ws-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-tint);
  overflow: hidden;
  margin: 8px 0 6px;
}
.ws-progress-fill {
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: var(--cta-bg);
}
.ws-chip-btn {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.ws-chip-btn:hover { color: var(--ink); border-color: #aeb8c4; }
.ws-chip-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.ws-chip-btn:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}
.composer-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--cta-bg);
  vertical-align: -0.15em;
  margin-left: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .composer-caret { animation: caret-blink 1.05s steps(1) infinite; }
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.disk-peek {
  margin-top: 48px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--paper-warm);
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}
.disk-tree {
  padding: 18px 14px;
  border-right: 1px solid var(--rule);
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.disk-tree-head {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 4px 10px 10px;
  margin: 0;
}
.disk-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.disk-file {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 120ms ease, color 120ms ease;
}
.disk-file:hover { background: var(--paper-tint); color: var(--ink); }
.disk-file[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(27, 28, 26, 0.08);
}
.disk-file:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: -2px;
}
.disk-file span {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.disk-viewer {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.disk-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-3);
}
.disk-viewer-bar code {
  background: var(--paper-warm);
  font-size: 12px;
}
.disk-viewer pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}
.disk-viewer pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 1em;
}

@media (max-width: 860px) {
  .handoff-bar { grid-template-columns: minmax(0, 1fr); }
  .disk-peek { grid-template-columns: minmax(0, 1fr); }
  .disk-tree { border-right: 0; border-bottom: 1px solid var(--rule); }
  .ws-row-btn { grid-template-columns: auto minmax(0, 1fr); }
  .ws-badge { grid-column: 2; justify-self: start; }
}
