  @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;700&display=swap');

  :root {
    --ink: #1a1a18;
    --paper: #f5f4ef;
    --accent: #d45a2a;
    --accent-soft: #f9ede6;
    --muted: rgba(26,26,24,0.55);
    --border: rgba(26,26,24,0.18);
  }

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

  html { font-size: 16px; scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
  }

  .mono { font-family: 'IBM Plex Mono', monospace; }
  .display { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

  /* TICKER */
  .ticker-wrap {
    overflow: hidden;
    border-bottom: 1px solid var(--ink);
    padding: 10px 0;
    --ticker-shift: 20%;
    --ticker-duration: 30s;
  }
  .ticker {
    display: flex;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: ticker var(--ticker-duration, 30s) linear infinite;
  }
  .ticker:hover { animation-play-state: paused; }
  .ticker-item { padding: 0 32px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.75; }
  .ticker-dot { color: var(--accent); margin-left: 24px; }
  @keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--ticker-shift, 50%))); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ticker { animation: none; transform: none; }
  }

  /* TOPBAR */
  .topbar {
    border-bottom: 1px solid var(--ink);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  .topbar-left { display: flex; gap: 20px; align-items: center; }
  .topbar-sep { opacity: 0.25; }
  .topbar-version { color: var(--accent); }

  /* GRID HELPERS */
  .grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .col-2 { grid-column: span 2; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-10 { grid-column: span 10; }
  .col-12 { grid-column: span 12; }

  section { border-bottom: 1px solid var(--ink); }
  .section-inner { padding: 60px 40px; }
  .section-header { padding: 40px 40px; border-bottom: 1px solid var(--ink); }

  .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.55; margin-bottom: 8px; }
  .section-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.55; }

  /* HERO */
  #hero { padding: 80px 40px 80px; }
  #hero h1 { font-size: clamp(56px, 10vw, 148px); font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
  #hero h1 .accent { color: var(--accent); }
  #hero .subhead { font-size: clamp(18px, 2vw, 26px); line-height: 1.45; max-width: 48ch; margin-top: 40px; font-weight: 300; }

  /* CTA BUTTONS */
  .cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
    text-decoration: none; cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
  }
  .btn-primary { background: var(--accent); color: var(--paper); }
  .btn-primary:hover { background: var(--ink); }
  .btn-secondary { background: var(--ink); color: var(--paper); }
  .btn-secondary:hover { background: var(--accent); }
  .btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
  .btn-outline:hover { background: var(--ink); color: var(--paper); }

  /* STATS BAR */
  #stats { background: var(--ink); color: var(--paper); }
  #stats .grid-12 { border: none; }
  .stat-cell {
    padding: 40px 32px;
    border-right: 1px solid rgba(245,244,239,0.12);
  }
  .stat-cell:last-child { border-right: none; }
  .stat-num { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: clamp(40px, 5vw, 68px); line-height: 1; color: var(--accent); }
  .stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; opacity: 0.6; margin-top: 10px; }
  .stat-desc { font-size: 13px; opacity: 0.65; margin-top: 6px; line-height: 1.5; max-width: 22ch; }

  /* FLOW STEPS */
  .flow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
  .flow-step { padding: 24px; background: var(--paper); }
  .flow-step.dark { background: var(--ink); color: var(--paper); }
  .flow-step-num { font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.45; }
  .flow-step-title { font-size: clamp(18px, 2vw, 26px); font-weight: 700; margin-top: 12px; }
  .flow-step-sub { font-size: 12px; opacity: 0.6; margin-top: 6px; }
  .flow-arrow { font-family: 'IBM Plex Mono', monospace; font-size: 14px; opacity: 0.35; margin-top: 20px; }
  .flow-step.dark .flow-step-title { color: var(--accent); }

  /* PRINCIPLES TILES */
  .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
  .tile { padding: 28px 24px; background: var(--paper); }
  .tile:hover { background: var(--accent-soft); }
  .tile-icon { font-size: 20px; opacity: 0.7; }
  .tile-title { font-weight: 700; font-size: 16px; margin-top: 14px; }
  .tile-desc { font-size: 13px; opacity: 0.65; margin-top: 6px; line-height: 1.5; }

  /* HIERARCHY BARS */
  .hier-bars { display: flex; flex-direction: column; gap: 12px; }
  .hier-bar { padding: 20px; border: 2px solid var(--ink); }
  .hier-bar.primary { border-color: var(--accent); background: var(--accent-soft); }
  .hier-bar-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.13em; opacity: 0.5; }
  .hier-bar-title { font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; margin-top: 4px; }
  .hier-bar.primary .hier-bar-title { color: var(--accent); }
  .hier-bar-desc { font-size: 13px; opacity: 0.65; margin-top: 4px; }

  /* WHO TABLE */
  .who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
  .who-cell { padding: 28px 24px; background: var(--paper); }
  .who-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; opacity: 0.4; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
  .who-title { font-size: 20px; font-weight: 700; }
  .who-list { margin-top: 14px; font-size: 14px; opacity: 0.75; line-height: 2; }

  /* DECLARATION BOX */
  .decl-box { border: 2px solid var(--accent); padding: 40px; }
  .decl-box blockquote { font-size: clamp(16px, 1.8vw, 22px); font-weight: 300; line-height: 1.6; max-width: 60ch; }
  .decl-points { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
  .decl-point { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; font-weight: 500; }
  .decl-dot { width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; margin-top: 7px; }

  /* FORM */
  .form-wrap { border: 1px solid var(--ink); padding: 40px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; }
  .field input, .field textarea, .field select {
    background: var(--paper); color: var(--ink);
    border: 1px solid rgba(26,26,24,0.35);
    padding: 10px 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
  }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
  .field textarea { resize: vertical; min-height: 90px; }

  /* PARTNERS */
  .partners-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
  .partner-cell { background: var(--paper); padding: 14px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-align: center; min-height: 156px; border: none; overflow: hidden; }
  .partner-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; }
  .partner-logo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 112px;
    padding: 12px;
    border: 1px solid var(--border);
    object-fit: contain;
    object-position: center;
    background: var(--paper);
  }
  .partner-link:hover .partner-logo { border-color: var(--accent); }
  .partner-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .partner-link:focus-visible .partner-logo { border-color: var(--accent); }
  .partner-cell.placeholder { font-style: italic; opacity: 0.3; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
  @media (max-width: 1300px) {
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 700px) {
    .partners-grid { grid-template-columns: 1fr; }
  }

  /* FOOTER */
  footer { padding: 40px; }
  footer .grid-12 { align-items: start; }
  .footer-brand { font-size: 32px; font-weight: 700; line-height: 1; }
  .footer-brand .accent { color: var(--accent); }
  .footer-tagline { font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.5; margin-top: 10px; }
  .footer-col-title { font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.13em; opacity: 0.45; margin-bottom: 12px; }
  footer ul { list-style: none; }
  footer ul li { font-size: 13px; line-height: 2; }
  footer ul li a { color: var(--ink); text-decoration: none; opacity: 0.75; }
  footer ul li a:hover { opacity: 1; color: var(--accent); }
  .footer-bottom { grid-column: span 12; border-top: 1px solid rgba(26,26,24,0.18); padding-top: 20px; margin-top: 20px; display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.4; }

  /* UTILITY */
  .border-left-accent { border-left: 2px solid var(--ink); padding-left: 20px; }
  .border-left-accent.highlight { border-left-color: var(--accent); }
  .tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
  .tag-dot { width: 6px; height: 6px; background: var(--ink); }
  .tag.active { border-color: var(--accent); color: var(--accent); }
  .tag.active .tag-dot { background: var(--accent); }

  @media (max-width: 900px) {
    .grid-12 { grid-template-columns: 1fr; }
    .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-10, .col-12 { grid-column: span 1; }
    .flow-grid { grid-template-columns: repeat(2, 1fr); }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .who-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid rgba(245,244,239,0.12); }
    #hero { padding: 48px 20px 60px; }
    .section-inner, .section-header { padding: 40px 20px; }
    .topbar { padding: 10px 20px; }
    footer { padding: 40px 20px; }
    #stats .grid-12 { grid-template-columns: 1fr 1fr; }
  }
