  :root {
    --bg: #F6F4EF; --bg-panel: #EDEBE4; --bg-dark: #1A1916;
    --ink: #1A1916; --ink-secondary: #5C5A54; --ink-tertiary: #8A8880;
    --accent: #D44E0A; --accent-light: #F5E8DF;
    --alert-red: #C0392B; --alert-amber: #C07A00;
    --border: rgba(26,25,22,0.12); --border-strong: rgba(26,25,22,0.25);
    --mono: 'IBM Plex Mono', monospace;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(246,244,239,0.93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 0 48px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
  .nav-logo { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
  .nav-links a { font-size: 13px; font-family: var(--mono); color: var(--ink-secondary); text-decoration: none; letter-spacing: 0.01em; transition: color 0.15s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta { background: var(--ink) !important; color: var(--bg) !important; padding: 8px 18px; border-radius: 3px; font-size: 12px !important; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.15s !important; }
  .nav-cta:hover { background: var(--accent) !important; color: white !important; }

  .hero {
    padding: 120px 48px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
  }
  .hero-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
  .hero-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent); }
  h1 { font-family: var(--serif); font-size: clamp(38px, 4vw, 56px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--ink); }
  h1 em { font-style: italic; color: var(--accent); }
  .hero-sub { font-size: 16px; line-height: 1.7; color: var(--ink-secondary); font-weight: 300; margin-bottom: 18px; max-width: 440px; }
  .hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
  .btn-primary { background: var(--accent); color: white; padding: 12px 28px; border-radius: 3px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: background 0.15s, transform 0.1s; display: inline-block; }
  .btn-primary:hover { background: #B84008; transform: translateY(-1px); }
  .btn-ghost { font-family: var(--mono); font-size: 12px; color: var(--ink-secondary); text-decoration: none; letter-spacing: 0.04em; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; transition: color 0.15s; }
  .btn-ghost:hover { color: var(--ink); }

  .alert-panel { background: var(--bg-dark); border-radius: 6px; overflow: hidden; font-family: var(--mono); font-size: 12px; box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.1); position: relative; }
  .panel-header { background: #252420; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .panel-dots { display: flex; gap: 6px; }
  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot-r { background: #FF5F57; } .dot-y { background: #FEBC2E; } .dot-g { background: #28C840; }
  .panel-title { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; }
  .panel-body { padding: 20px; }
  .alert-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(196,57,43,0.2); border: 1px solid rgba(196,57,43,0.5); color: #FF6B5B; padding: 4px 10px; border-radius: 2px; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
  .alert-pulse { width: 6px; height: 6px; border-radius: 50%; background: #FF6B5B; animation: blink 1.5s ease-in-out infinite; }
  @keyframes blink { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.7); } }
  .alert-title { font-size: 15px; font-weight: 600; color: #F0EDE6; margin-bottom: 18px; line-height: 1.4; }
  .alert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
  .alert-field { background: #1E1D1A; padding: 10px 12px; }
  .field-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
  .field-value { font-size: 12px; color: #C8C4BC; font-weight: 500; }
  .fv-danger { color: #FF6B5B; } .fv-warning { color: #F5A623; } .fv-big { font-size: 16px; font-weight: 600; }
  .budget-bar { margin-bottom: 14px; }
  .budget-lbl { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 10px; }
  .budget-lbl span:first-child { color: rgba(255,255,255,0.35); letter-spacing: 0.06em; }
  .budget-lbl span:last-child { color: #F5A623; }
  .budget-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
  .budget-fill { height: 100%; background: linear-gradient(90deg, #4CD964 0%, #F5A623 60%, #FF6B5B 100%); border-radius: 2px; width: 0%; transition: width 1.8s cubic-bezier(0.4,0,0.2,1); }
  .alert-consequence { background: rgba(196,57,43,0.12); border-left: 2px solid #FF6B5B; padding: 10px 12px; border-radius: 0 3px 3px 0; margin-bottom: 14px; }
  .consequence-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,100,80,0.7); margin-bottom: 4px; }
  .consequence-text { font-size: 11px; color: #FF9080; line-height: 1.5; }
  .alert-action { background: rgba(212,78,10,0.15); border: 1px solid rgba(212,78,10,0.4); padding: 10px 12px; border-radius: 3px; display: flex; align-items: flex-start; gap: 10px; }
  .action-text { font-size: 11px; color: #E8855A; line-height: 1.5; }
  .action-deadline { color: rgba(255,255,255,0.3); font-size: 9px; margin-top: 3px; letter-spacing: 0.04em; }
  .panel-footer { padding: 10px 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: space-between; }
  .panel-footer-meta { font-size: 9px; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; font-family: var(--mono); }
  .scanline { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(212,78,10,0.4), transparent); animation: scan 3s ease-in-out infinite; pointer-events: none; }
  @keyframes scan { 0% { top: 56px; opacity:0; } 10% { opacity:1; } 90% { opacity:0.3; } 100% { top:100%; opacity:0; } }

  .section-divider { border: none; border-top: 1px solid var(--border); margin: 0 48px; }
  .section-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-tertiary); margin-bottom: 48px; display: flex; align-items: center; gap: 12px; }
  .section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  .consequence-section { padding: 80px 48px; max-width: 1280px; margin: 0 auto; }
  .consequence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
  .consequence-card { background: var(--bg); padding: 36px 28px; }
  .cfr-tag { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 16px; display: block; }
  .consequence-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.2; margin-bottom: 12px; }
  .consequence-card p { font-size: 14px; color: var(--ink-secondary); line-height: 1.65; font-weight: 300; }
  .consequence-stat { font-family: var(--mono); font-size: 11px; color: var(--alert-red); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); letter-spacing: 0.04em; }

  .arch-section { background: var(--bg-dark); padding: 80px 48px; color: white; }
  .arch-inner { max-width: 1280px; margin: 0 auto; }
  .arch-section .section-label { color: rgba(255,255,255,0.25); }
  .arch-section .section-label::after { background: rgba(255,255,255,0.1); }
  .arch-header { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 56px; align-items: end; }
  .arch-header h2 { font-family: var(--serif); font-size: clamp(28px,3vw,40px); font-weight: 400; line-height: 1.15; color: #F0EDE6; }
  .arch-header p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; font-weight: 300; }

  .browser-mockup { background: #252320; border-radius: 10px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.3); margin-bottom: 32px; }
  .browser-chrome { background: #2E2C29; padding: 10px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .browser-dots { display: flex; gap: 6px; }
  .browser-dot { width: 11px; height: 11px; border-radius: 50%; }
  .bd-red { background: #FF5F57; } .bd-yellow { background: #FEBC2E; } .bd-green { background: #28C840; }
  .browser-tabs { display: flex; gap: 2px; flex: 1; overflow: hidden; }
  .browser-tab { background: #1A1916; border-radius: 6px 6px 0 0; padding: 5px 14px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.7); white-space: nowrap; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,0.08); border-bottom: none; }
  .browser-tab.active { background: #0E0D0B; color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.12); }
  .browser-tab-dot { width: 7px; height: 7px; border-radius: 50%; }
  .browser-tab-inactive { background: #242220; color: rgba(255,255,255,0.35); }
  .browser-url { background: #1A1916; border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 4px 12px; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.3); width: 220px; display: flex; align-items: center; gap: 6px; }
  .url-lock { font-size: 9px; opacity: 0.5; }
  #graph-viz { width: 100%; height: 520px; position: relative; cursor: grab; background: #0E0D0B; }
  #graph-viz:active { cursor: grabbing; }
  #graph-canvas { width: 100%; height: 100%; display: block; }
  .graph-legend { position: absolute; bottom: 16px; left: 20px; display: flex; flex-direction: column; gap: 7px; }
  .graph-legend-row { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; }
  .graph-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .graph-hint { position: absolute; bottom: 16px; right: 20px; font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }
  .graph-tooltip { position: absolute; pointer-events: none; background: rgba(20,18,14,0.96); border: 1px solid rgba(255,255,255,0.13); border-radius: 4px; padding: 10px 14px; font-family: var(--mono); font-size: 11px; color: #F0EDE6; max-width: 220px; line-height: 1.5; display: none; z-index: 10; }
  .graph-tooltip-type { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
  .graph-node-count { position: absolute; top: 14px; right: 20px; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.22); letter-spacing: 0.06em; }

  .flow-row { display: flex; align-items: stretch; gap: 0; margin-top: 8px; }
  .flow-node { flex: 1; min-width: 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; padding: 18px 16px; display: flex; flex-direction: column; gap: 5px; }
  .flow-node-gate { background: rgba(212,78,10,0.08); flex: 1.1; }
  .flow-node-out { flex: 0.7; background: rgba(212,78,10,0.06); }
  .flow-node-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; margin-bottom: 6px; }
  .flow-node-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(212,78,10,0.6); margin-bottom: 2px; }
  .flow-node-detail { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.38); line-height: 1.5; }
  .flow-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; font-family: var(--mono); font-size: 16px; color: rgba(255,255,255,0.2); }
  .flow-arrow-reverse { color: rgba(255,255,255,0.18); }
  .flow-arrow-out { color: rgba(212,78,10,0.5); }
  @media (max-width: 900px) {
    .flow-row { flex-direction: column; }
    .flow-arrow { width: auto; height: 24px; transform: rotate(90deg); }
    .flow-arrow-reverse { transform: rotate(-90deg); }
  }

  .specimen-section { padding: 80px 48px; max-width: 1280px; margin: 0 auto; }
  .specimen-header { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
  .specimen-header h2 { font-family: var(--serif); font-size: clamp(28px,3vw,38px); font-weight: 400; line-height: 1.15; }
  .specimen-header p { font-size: 14px; color: var(--ink-secondary); line-height: 1.7; font-weight: 300; }
  .specimen { background: #F0EDE5; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; font-family: var(--mono); }
  .specimen-topbar { background: var(--bg-panel); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .specimen-badge { display: flex; align-items: center; gap: 8px; background: #FFE5DF; border: 1px solid rgba(196,57,43,0.25); color: var(--alert-red); padding: 4px 10px; border-radius: 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
  .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--alert-red); animation: blink 1.5s ease-in-out infinite; }
  .specimen-meta { font-size: 10px; color: var(--ink-tertiary); letter-spacing: 0.04em; }
  .specimen-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .spec-block { background: #F6F4EF; border: 1px solid var(--border); border-radius: 3px; padding: 14px 16px; }
  .spec-block.span2 { grid-column: span 2; }
  .spec-block.span3 { grid-column: span 3; }
  .spec-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-tertiary); margin-bottom: 6px; }
  .spec-value { font-size: 13px; color: var(--ink); font-weight: 500; }
  .sv-danger { color: var(--alert-red); } .sv-warning { color: var(--alert-amber); } .sv-big { font-size: 22px; font-weight: 600; }
  .spec-bar-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--ink-tertiary); margin: 8px 0 4px; letter-spacing: 0.04em; }
  .spec-bar-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
  .spec-bar-fill { height: 100%; border-radius: 3px; background: var(--alert-red); width: 0%; transition: width 1.8s cubic-bezier(0.4,0,0.2,1) 0.3s; }
  .spec-consequence { background: #FFF0EE; border: 1px solid rgba(192,57,43,0.2); border-left: 3px solid var(--alert-red); border-radius: 0 3px 3px 0; padding: 14px 16px; grid-column: span 3; }
  .spec-consequence .spec-label { color: rgba(192,57,43,0.6); }
  .spec-consequence .spec-value { color: var(--alert-red); font-size: 12px; line-height: 1.6; font-weight: 400; }
  .spec-action { background: var(--accent-light); border: 1px solid rgba(212,78,10,0.2); border-radius: 3px; padding: 14px 16px; grid-column: span 3; display: flex; gap: 16px; align-items: flex-start; }
  .action-num { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: white; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
  .action-body .spec-label { color: rgba(212,78,10,0.6); }
  .action-body .spec-value { color: var(--accent); font-size: 12px; font-weight: 400; line-height: 1.6; }
  .action-deadline-tag { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; background: rgba(212,78,10,0.1); border: 1px solid rgba(212,78,10,0.2); padding: 3px 8px; border-radius: 2px; font-size: 9px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }

  .apps-section { padding: 80px 48px; background: var(--bg-panel); }
  .apps-inner { max-width: 1280px; margin: 0 auto; }
  .apps-header { margin-bottom: 48px; }
  .apps-header h2 { font-family: var(--serif); font-size: clamp(28px,3vw,38px); font-weight: 400; max-width: 500px; margin-top: 16px; line-height: 1.2; }
  .apps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
  .app-card { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 28px; transition: border-color 0.2s, transform 0.15s; }
  .app-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
  .app-number { font-family: var(--mono); font-size: 10px; color: var(--ink-tertiary); letter-spacing: 0.08em; margin-bottom: 16px; }
  .app-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 10px; }
  .app-card p { font-size: 13px; color: var(--ink-secondary); line-height: 1.65; font-weight: 300; }
  .app-tag { margin-top: 16px; display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-tertiary); border: 1px solid var(--border); padding: 3px 8px; border-radius: 2px; }

  .who-section { padding: 80px 48px; max-width: 1280px; margin: 0 auto; }
  .who-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; margin-top: 48px; }
  .who-left h2 { font-family: var(--serif); font-size: clamp(28px,2.5vw,36px); font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
  .who-left p { font-size: 14px; color: var(--ink-secondary); line-height: 1.7; font-weight: 300; }
  .who-segments { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
  .segment { background: var(--bg); padding: 24px; }
  .segment h4 { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: 0.02em; line-height: 1.4; }
  .segment p { font-size: 12px; color: var(--ink-secondary); line-height: 1.6; font-weight: 300; }
  .segment-cfr { font-family: var(--mono); font-size: 9px; color: var(--ink-tertiary); margin-top: 10px; letter-spacing: 0.04em; }

  footer { background: var(--bg-dark); padding: 48px; color: rgba(255,255,255,0.5); }
  .footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
  .footer-logo { font-family: var(--mono); font-weight: 600; font-size: 18px; color: #F0EDE6; letter-spacing: -0.02em; }
  .footer-logo span { color: var(--accent); }
  .footer-tagline { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 6px; font-family: var(--mono); letter-spacing: 0.03em; }
  .footer-cta-block { text-align: right; }
  .footer-cta-block p { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }

  .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .arch-header { grid-template-columns: 1fr; }
    .specimen-header { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: 1fr; }
    .consequence-grid { grid-template-columns: 1fr; }
    .who-grid { grid-template-columns: 1fr; gap: 40px; }
  }
  @media (max-width: 768px) {
    nav { padding: 0 20px; } .nav-links { display: none; }
    .hero, .consequence-section, .specimen-section, .who-section { padding-left: 20px; padding-right: 20px; }
    .arch-section, .apps-section { padding-left: 20px; padding-right: 20px; }
    footer { padding: 32px 20px; }
    .footer-inner { flex-direction: column; gap: 32px; text-align: center; }
    .footer-cta-block { text-align: center; }
    .section-divider { margin: 0 20px; }
    .specimen-body { grid-template-columns: 1fr 1fr; }
    .spec-block.span2 { grid-column: span 1; }
    .spec-consequence, .spec-action { grid-column: span 2; }
    .who-segments { grid-template-columns: 1fr; }
    #stack-viz { height: 340px; }
  }
