@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('./fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('./fonts/schibsted-grotesk-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Kasi BrandPalette.signature tokens + dynamic heat shift variables */
  --kasi-dark: #380613;
  --kasi-deep: #24030c;
  --kasi-mid: #5e1d30;
  --kasi-light: #b8375a;
  --kasi-heat: #ff9a5a;
  --kasi-bloom: #ffd6b4;
  --heat-mix: 0.18;

  /* Ink hierarchy (high contrast on Kasi dark/mid grounds, zero neutral grays) */
  --ink-primary: #ffffff;
  --ink-warm: #ffd2b8;
  --ink-soft: #ffe8d9;
  --ink-on-light: #2a0a14;

  /* Status tokens from KadgetColors */
  --status-jade: #5fc690;
  --status-honey: #ebb352;
  --status-cornflower: #6eb4f0;
  --status-coral: #f2606f;
  --status-violet: #c9a7f5;
  --status-aqua: #8fe3d9;

  /* Glass surfaces (elevation declared via 1px border only, no ghost-card shadows) */
  --surface-glass: rgba(34, 4, 14, 0.56);
  --surface-glass-strong: rgba(24, 2, 10, 0.74);
  --surface-elevated: rgba(255, 255, 255, 0.11);
  --surface-hover: rgba(255, 255, 255, 0.17);
  --border-rim: rgba(255, 224, 206, 0.32);
  --border-subtle: rgba(255, 224, 206, 0.18);

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-sans: 'Schibsted Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Browser surface theming */
::selection {
  background: var(--kasi-heat);
  color: var(--ink-on-light);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  caret-color: var(--kasi-heat);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-warm) var(--kasi-deep);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--kasi-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 210, 184, 0.38);
  border-radius: 5px;
  border: 2px solid var(--kasi-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--kasi-heat);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-primary);
  background-color: var(--kasi-dark);
  background-image:
    radial-gradient(
      circle at 86% 10%,
      color-mix(in srgb, var(--kasi-bloom) calc(var(--heat-mix) * 65%), transparent) 0%,
      transparent 44%
    ),
    radial-gradient(
      circle at 72% 28%,
      color-mix(in srgb, var(--kasi-heat) calc(var(--heat-mix) * 80%), var(--kasi-light)) 0%,
      transparent 55%
    ),
    linear-gradient(
      38deg,
      var(--kasi-deep) 0%,
      var(--kasi-dark) 36%,
      var(--kasi-mid) 74%,
      color-mix(in srgb, var(--kasi-heat) calc(var(--heat-mix) * 100%), var(--kasi-light)) 100%
    );
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo);
}

a:hover {
  color: var(--ink-warm);
}

:focus-visible {
  outline: 2px solid var(--kasi-heat);
  outline-offset: 3px;
}

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

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Top macOS 26 Menu Bar + Pure Black Hardware Notch */
.macos-top-rim {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 0 clamp(16px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(20, 2, 8, 0.88) 0%, rgba(20, 2, 8, 0) 100%);
  backdrop-filter: blur(12px);
}

.menubar-wing {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  padding-top: 8px;
  font-size: 0.875rem;
}

.menubar-wing-right {
  justify-content: flex-end;
}

.brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-anchor img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.menubar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.menubar-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.menubar-nav a:hover {
  background: var(--surface-elevated);
  color: var(--ink-primary);
}

.menubar-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

/* Hardware Notch */
.notch-shell {
  background: #000000;
  color: var(--ink-primary);
  width: min(560px, 92vw);
  border-radius: 0 0 20px 20px;
  padding: 10px 18px 14px;
  box-shadow: 0 18px 42px rgba(12, 0, 5, 0.68);
  transition: transform 280ms var(--ease-out-expo);
}

.notch-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.camera-lens-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-warm);
}

.camera-housing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a5d8c 0%, #0d1624 65%, #050505 100%);
}

.notch-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 999px;
}

.notch-tab {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo);
}

.notch-tab[aria-selected="true"] {
  background: var(--ink-primary);
  color: var(--ink-on-light);
}

.notch-stage {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notch-pane {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notch-pane.is-active {
  display: flex;
}

.notch-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notch-track img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.track-meta strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

.track-meta span {
  font-size: 0.8rem;
  color: var(--ink-warm);
}

.lyrics-stack {
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.35;
}

.lyric-dim {
  color: #d6beb2;
}

.lyric-active {
  color: var(--ink-primary);
  font-weight: 600;
}

.notch-wing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.notch-mini-stat {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.notch-mini-stat strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-warm);
}

.shelf-dropzone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 210, 184, 0.42);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.shelf-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shelf-chip {
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Main Container */
.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px) 96px;
}

/* First Viewport Hero Command Deck */
.first-viewport {
  padding-top: 28px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.command-deck {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: stretch;
}

.hero-thesis-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.hero-thesis-col h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 65ch;
}

.conversion-cluster {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-dmg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-primary);
  color: var(--ink-on-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--ink-primary);
  transition: transform 160ms var(--ease-out-expo), background-color 160ms var(--ease-out-expo);
}

.btn-dmg:hover {
  background: var(--ink-warm);
  color: var(--ink-on-light);
  transform: translateY(-1px);
}

.btn-brew {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-glass-strong);
  color: var(--ink-warm);
  border: 1px solid var(--border-rim);
  padding: 15px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out-expo), border-color 160ms var(--ease-out-expo);
}

.btn-brew:hover {
  background: var(--surface-hover);
  border-color: var(--ink-warm);
}

.brew-copy-badge {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink-primary);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.release-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-warm);
}

.Subsystem-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.jump-pill:hover {
  background: var(--surface-hover);
  color: var(--ink-primary);
}

/* Right Column: Live Thermal & AI Observatory Console */
.observatory-console {
  background: var(--surface-glass);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(18px);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.console-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(95, 198, 144, 0.18);
  color: var(--status-jade);
  border: 1px solid rgba(95, 198, 144, 0.42);
}

.status-badge.is-warning {
  background: rgba(235, 179, 82, 0.22);
  color: var(--status-honey);
  border-color: rgba(235, 179, 82, 0.5);
}

.status-badge.is-alert {
  background: rgba(242, 96, 111, 0.24);
  color: var(--ink-warm);
  border-color: var(--status-coral);
}

/* Sensor Matrix inside Observatory */
.sensor-clusters {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.instrument-bay {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bay-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--ink-warm);
}

.bay-title-row strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.core-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  height: 54px;
  align-items: end;
  padding: 6px 0 2px;
}

.core-bar {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.core-bar-fill {
  width: 100%;
  background: var(--status-jade);
  border-radius: 4px;
  transition: height 220ms var(--ease-out-expo), background-color 220ms var(--ease-out-expo);
}

.sensor-readouts {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Process Hog Action Row */
.process-hog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.btn-kill {
  background: rgba(242, 96, 111, 0.22);
  color: var(--ink-primary);
  border: 1px solid rgba(242, 96, 111, 0.55);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-kill:hover {
  background: var(--status-coral);
  color: var(--ink-on-light);
}

/* Dual Claude + Codex + Antigravity + T3 Code Bay */
.usage-meters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage-row {
  display: grid;
  grid-template-columns: 112px 1fr 46px;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.usage-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--status-jade);
}

.usage-fill.honey {
  background: var(--status-honey);
}

.usage-fill.cornflower {
  background: var(--status-cornflower);
}

.t3-threads-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.t3-thread-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--ink-warm);
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.t3-thread-btn:hover {
  background: var(--surface-hover);
  color: var(--ink-primary);
}

/* Interactive Thermal Heat-Shift & Threshold Trigger Scrubber Bar */
.thermal-scrubber-bar {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
}

.scrubber-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scrubber-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.scrubber-label-row h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.scrubber-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.preset-chip:hover,
.preset-chip.is-active {
  background: var(--kasi-heat);
  color: var(--ink-on-light);
  border-color: var(--kasi-heat);
  font-weight: 600;
}

.thermal-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5fc690 0%, #ebb352 52%, #ff9a5a 76%, #f2606f 100%);
  outline: none;
  cursor: pointer;
}

.thermal-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink-primary);
  border: 3px solid var(--ink-on-light);
  cursor: grab;
}

.scrubber-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-warm);
}

.agent-trigger-console {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-trigger-console.is-woken {
  background: rgba(255, 154, 90, 0.16);
  border-color: var(--kasi-heat);
}

.agent-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.agent-console-body {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.agent-action-btns {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.btn-approve-agent {
  background: var(--status-jade);
  color: var(--ink-on-light);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Section Rhythm: More space above a heading than below it */
.surface-section {
  padding-top: 88px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border-subtle);
}

.section-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-header-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-top: 0;
  margin-bottom: 12px;
}

.section-header-copy p {
  color: var(--ink-soft);
  max-width: 68ch;
  font-size: 1rem;
}

/* Knowledge 2 Interactive Observatory */
.knowledge-privacy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-rim);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 24px;
}

.privacy-toggle-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.privacy-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.privacy-btn[aria-pressed="true"] {
  background: var(--status-jade);
  color: var(--ink-on-light);
}

.knowledge-workspace {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.knowledge-stage-panel {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mode-pills {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px;
  border-radius: 999px;
}

.mode-pill {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.mode-pill[aria-selected="true"] {
  background: var(--ink-primary);
  color: var(--ink-on-light);
}

.graph-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.graph-search {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--ink-primary);
  width: 190px;
}

.graph-search::placeholder {
  color: var(--ink-warm);
}

.graph-canvas-wrap {
  position: relative;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1c0817 0%, #090309 100%);
  border: 1px solid var(--border-subtle);
}

#knowledge-graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.graph-legend {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-warm);
  background: rgba(12, 2, 7, 0.78);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

/* Brief (Özet) & Double Tap Subviews inside Knowledge Stage */
.knowledge-subview {
  display: none;
}

.knowledge-subview.is-active {
  display: block;
}

.brief-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brief-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.brief-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(235, 179, 82, 0.22);
  color: var(--status-honey);
}

.brief-tag.jade {
  background: rgba(95, 198, 144, 0.22);
  color: var(--status-jade);
}

.brief-tag.cornflower {
  background: rgba(110, 180, 240, 0.22);
  color: var(--status-cornflower);
}

/* Double Tap Simulator */
.double-tap-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.reply-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(14, 2, 7, 0.72);
  border: 1px solid var(--border-rim);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink-primary);
  resize: vertical;
}

.double-tap-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-double-tap {
  background: var(--ink-primary);
  color: var(--ink-on-light);
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-double-tap:hover {
  background: var(--ink-warm);
}

/* Vault Inspector Pane (Right side of Knowledge Workspace) */
.vault-inspector {
  background: var(--surface-glass);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.vault-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-warm);
}

.vault-markdown-body {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-markdown-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-primary);
}

.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.source-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-warm);
}

/* Interactive Developer Cleaner & Disk Block Map */
.disk-map-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.treemap-stage {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.treemap-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  grid-template-rows: 150px 130px;
  gap: 10px;
}

.disk-block {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 180ms var(--ease-out-expo), opacity 180ms var(--ease-out-expo);
  text-align: left;
}

.disk-block:hover {
  transform: scale(0.99);
}

.disk-block.is-cleaned {
  opacity: 0.28;
  text-decoration: line-through;
}

.disk-block.cat-worktrees {
  grid-row: span 2;
  background: rgba(235, 179, 82, 0.24);
  border-color: var(--status-honey);
}

.disk-block.cat-xcode {
  background: rgba(110, 180, 240, 0.24);
  border-color: var(--status-cornflower);
}

.disk-block.cat-caches {
  background: rgba(95, 198, 144, 0.22);
  border-color: var(--status-jade);
}

.disk-block.cat-flutter {
  background: rgba(201, 167, 245, 0.24);
  border-color: var(--status-violet);
}

.disk-block.cat-logs {
  background: rgba(242, 96, 111, 0.24);
  border-color: var(--status-coral);
}

.disk-block strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
}

.disk-block .block-size {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
}

.cleaner-summary-panel {
  background: var(--surface-glass);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.reclaim-readout {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink-warm);
}

.btn-reclaim {
  width: 100%;
  background: var(--ink-primary);
  color: var(--ink-on-light);
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.btn-reclaim:hover {
  background: var(--ink-warm);
}

/* 20+ Native Mac Tools Specification Matrix */
.tools-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tool-filter-btn {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--ink-soft);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.tool-filter-btn[aria-pressed="true"] {
  background: var(--ink-primary);
  color: var(--ink-on-light);
  border-color: var(--ink-primary);
}

.tools-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  overflow: hidden;
}

.tools-spec-table th,
.tools-spec-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.tools-spec-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-warm);
  background: rgba(255, 255, 255, 0.06);
}

.tools-spec-table tr:last-child td {
  border-bottom: none;
}

.tools-spec-table tr[hidden] {
  display: none;
}

.tool-name-cell {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.tool-trigger-cell {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-warm);
  white-space: nowrap;
}

/* Permissions, MCP & Final Release Anchor */
.architecture-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-glass);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  overflow: hidden;
}

.permissions-table th,
.permissions-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.permissions-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-warm);
  background: rgba(255, 255, 255, 0.06);
}

.mcp-card {
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mcp-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.code-snippet {
  background: rgba(10, 1, 5, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-warm);
  overflow-x: auto;
}

/* Closing Anchor */
.closing-anchor {
  margin-top: 88px;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-rim);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.closing-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.closing-copy p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-warm);
}

.icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 1040px) {
  .macos-top-rim {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-bottom: 10px;
  }

  .menubar-wing {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .command-deck,
  .thermal-scrubber-bar,
  .knowledge-workspace,
  .disk-map-layout,
  .architecture-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .menubar-nav {
    display: none;
  }

  .sensor-clusters {
    grid-template-columns: 1fr;
  }

  .treemap-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .disk-block.cat-worktrees {
    grid-row: span 1;
  }

  .tools-spec-table th:nth-child(2),
  .tools-spec-table td:nth-child(2) {
    display: none;
  }
}

/* Responsive overflow protection across 1280px, 1080px, and 390px mobile */
.macos-top-rim {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
}

.menubar-wing {
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.notch-shell {
  width: min(500px, 100%);
  max-width: 100%;
}

.btn-brew {
  max-width: 100%;
  flex-wrap: wrap;
}

@media (max-width: 1260px) {
  .macos-top-rim {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .menubar-wing,
  .menubar-wing-right {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 0 16px 64px;
  }

  .notch-top-row,
  .notch-pane.is-active,
  .t3-threads-strip,
  .scrubber-label-row,
  .stage-toolbar,
  .vault-file-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lyrics-stack {
    text-align: left;
  }

  .notch-wing-grid {
    grid-template-columns: 1fr;
  }

  .btn-dmg,
  .btn-brew {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 13px 16px;
  }

  .scrubber-scale {
    flex-wrap: wrap;
    gap: 8px;
  }

  .brief-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .graph-search {
    width: 100%;
  }

  .tools-spec-table th,
  .tools-spec-table td,
  .permissions-table th,
  .permissions-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .tool-name-cell,
  .tool-trigger-cell {
    white-space: normal;
  }

  .closing-anchor {
    padding: 24px;
  }
}

/* First-viewport vertical proportion tuning so the full thesis + observatory + thermal scrubber land inside 1440x900 */
.notch-shell {
  padding: 8px 16px 10px;
}

.notch-top-row {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.notch-stage {
  min-height: 44px;
}

.notch-track img {
  width: 38px;
  height: 38px;
}

.first-viewport {
  padding-top: 14px;
  padding-bottom: 32px;
  gap: 16px;
}

.hero-thesis-col {
  gap: 16px;
  padding: 4px 0;
}

.hero-thesis-col h1 {
  font-size: clamp(2.15rem, 3.4vw, 2.75rem);
  line-height: 1.03;
  margin-bottom: 10px;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.52;
}

.conversion-cluster {
  gap: 10px;
}

.btn-dmg {
  font-size: 0.95rem;
  padding: 11px 20px;
}

.btn-brew {
  font-size: 0.8rem;
  padding: 11px 16px;
}

.release-meta-strip {
  gap: 12px;
  font-size: 0.75rem;
}

.jump-pill {
  padding: 5px 11px;
  font-size: 0.8rem;
}

.observatory-console {
  padding: 16px 18px;
  gap: 12px;
}

.console-header {
  padding-bottom: 10px;
}

.console-header h2 {
  font-size: 1.15rem;
}

.instrument-bay {
  padding: 11px 14px;
  gap: 8px;
}

.core-bars {
  height: 42px;
}

.t3-threads-strip {
  padding: 8px 12px;
}

.thermal-scrubber-bar {
  padding: 14px 20px;
  gap: 18px;
}

.agent-trigger-console {
  padding: 11px 14px;
  gap: 6px;
}

/* Keep primary DMG + Homebrew CTA pair on a single horizontal line on desktop */
@media (min-width: 1041px) {
  .first-viewport .cta-button-row {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .first-viewport .btn-dmg {
    padding: 11px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .first-viewport .btn-brew {
    padding: 11px 14px;
    font-size: 0.75rem;
    gap: 8px;
    white-space: nowrap;
  }
}

/* Prevent grid blowout on narrow viewports */
.command-deck > *,
.thermal-scrubber-bar > *,
.knowledge-workspace > *,
.disk-map-layout > *,
.architecture-split > * {
  min-width: 0;
  max-width: 100%;
}

.code-snippet,
.code-snippet code,
code.tabular {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 680px) {
  .tools-spec-table th:nth-child(3),
  .tools-spec-table td:nth-child(3) {
    display: none;
  }

  .tools-spec-table,
  .permissions-table {
    table-layout: fixed;
    width: 100%;
  }

  .tools-spec-table th:first-child,
  .tools-spec-table td:first-child,
  .permissions-table th:first-child,
  .permissions-table td:first-child {
    width: 36%;
  }
}

/* Compact specification table rhythm and mobile vertical pacing */
.tools-spec-table th,
.tools-spec-table td {
  padding: 9px 15px;
  font-size: 0.85rem;
}

.permissions-table th,
.permissions-table td {
  padding: 10px 15px;
  font-size: 0.85rem;
}

.surface-section {
  padding-top: 64px;
  padding-bottom: 24px;
}

.section-header-bar {
  margin-bottom: 22px;
}

@media (max-width: 680px) {
  .surface-section {
    padding-top: 44px;
    padding-bottom: 16px;
  }

  .hero-thesis-col h1 {
    font-size: 1.85rem;
  }

  .section-header-copy h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .section-header-copy p,
  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .graph-canvas-wrap {
    height: 220px;
  }

  .treemap-grid {
    gap: 8px;
  }

  .disk-block {
    padding: 10px 12px;
  }

  .tools-spec-table th,
  .tools-spec-table td,
  .permissions-table th,
  .permissions-table td {
    padding: 7px 10px;
    font-size: 0.75rem;
    line-height: 1.38;
  }
}

@media (max-width: 680px) {
  .menubar-wing-right,
  .Subsystem-jump-pills {
    display: none;
  }

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

  .disk-block.cat-worktrees {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .surface-section {
    padding-top: 28px;
    padding-bottom: 10px;
  }

  .section-header-bar {
    margin-bottom: 14px;
  }

  .observatory-console,
  .knowledge-stage-panel,
  .vault-inspector,
  .treemap-stage,
  .cleaner-summary-panel,
  .mcp-card,
  .thermal-scrubber-bar {
    padding: 14px;
    gap: 10px;
  }

  .closing-anchor {
    margin-top: 32px;
    padding: 18px;
    gap: 16px;
  }
}


/* === Sleek Site Navbar & Hero MacBook Display Notch Stage === */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 2, 8, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.site-navbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: 48px;
  padding: 0 clamp(20px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-version-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--ink-warm);
}

.site-navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-gh-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.nav-gh-link:hover {
  color: var(--ink-primary);
}

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink-primary);
  color: var(--ink-on-light);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta-pill:hover {
  background: var(--ink-warm);
  color: var(--ink-on-light);
}

/* Hero MacBook Pro Display Frame */
.observatory-console.hero-display-frame {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 210, 184, 0.38);
  background: rgba(20, 2, 8, 0.88);
  gap: 0;
}

.hero-screen-top {
  background: linear-gradient(180deg, rgba(20, 2, 8, 0.88) 0%, rgba(34, 4, 14, 0.56) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 12px 8px;
}

.hero-menubar-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
}

.hero-menubar-left,
.hero-menubar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hero-menubar-right {
  justify-content: flex-end;
}

.hero-menubar-left strong {
  color: var(--ink-primary);
}

.apple-glyph {
  font-size: 0.85rem;
  color: var(--ink-primary);
}

.hero-menubar-right .menubar-item-pill {
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--ink-primary);
}

/* Proportional Hardware Notch Docked at the Top Edge of the Hero Screen */
.hero-display-frame .notch-shell {
  position: relative;
  justify-self: center;
  width: min(356px, 100%);
  background: #000000;
  border-radius: 0 0 16px 16px;
  padding: 6px 12px 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.72);
}

.hero-display-frame .notch-shell::before,
.hero-display-frame .notch-shell::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.hero-display-frame .notch-shell::before {
  left: -10px;
  background: radial-gradient(circle at 0 100%, transparent 10px, #000000 10.5px);
}

.hero-display-frame .notch-shell::after {
  right: -10px;
  background: radial-gradient(circle at 100% 100%, transparent 10px, #000000 10.5px);
}

.hero-display-frame .notch-top-row {
  margin-bottom: 5px;
  padding-bottom: 4px;
  gap: 6px;
}

.hero-display-frame .notch-tab {
  padding: 2px 7px;
  font-size: 0.75rem;
}

.hero-display-frame .notch-stage {
  min-height: 32px;
  gap: 8px;
}

.hero-display-frame .notch-track {
  gap: 8px;
  min-width: 0;
}

.hero-display-frame .notch-track img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.hero-display-frame .track-meta {
  min-width: 0;
}

.hero-display-frame .track-meta strong {
  font-size: 0.75rem;
  color: #d6beb2;
  font-weight: 500;
}

.hero-display-frame .track-meta .lyric-active {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notch-wave-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 154, 90, 0.16);
  color: var(--ink-warm);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.hero-display-frame .notch-mini-stat {
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.hero-display-frame .notch-mini-stat strong {
  font-size: 0.75rem;
}

.hero-display-frame .shelf-dropzone {
  padding: 4px 8px;
  font-size: 0.75rem;
  gap: 6px;
}

.hero-screen-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 680px) {
  .site-navbar-inner {
    padding: 0 16px;
    height: 46px;
  }

  .nav-version-pill,
  .nav-gh-link {
    display: none;
  }

  .hero-menubar-left,
  .hero-menubar-right {
    display: none;
  }

  .hero-menubar-row {
    grid-template-columns: 1fr;
  }

  .hero-display-frame .notch-shell::before,
  .hero-display-frame .notch-shell::after {
    display: none;
  }
}
