/* ============ Tokens — dark-first (Bureauflow's native register) ============ */
  :root {
    --ground: #0a0e10;
    --surface: #11181b;
    --surface-2: #172023;
    --line: #223034;
    --line-strong: #2f4247;
    --cyan: #17d6ea;
    --cyan-deep: #066b80;
    --cyan-dim: #0a4b5a;
    --ink: #eaf5f6;
    --ink-muted: #7fa0a6;
    --ink-faint: #4d6469;
    --stamp: #d99a45;
    --stamp-ink: #1a1108;
    --shadow: rgba(0,0,0,0.45);
  }

  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --ground: #eef1ee;
      --surface: #ffffff;
      --surface-2: #e7ecea;
      --line: #d3dcda;
      --line-strong: #b7c4c1;
      --cyan: #037c8f;
      --cyan-deep: #0a5b6b;
      --cyan-dim: #cfe9ec;
      --ink: #0f1a1c;
      --ink-muted: #4c6266;
      --ink-faint: #869896;
      --stamp: #9c5f21;
      --stamp-ink: #fff7ec;
      --shadow: rgba(20,30,30,0.12);
    }
  }
  :root[data-theme="light"] {
    --ground: #eef1ee;
    --surface: #ffffff;
    --surface-2: #e7ecea;
    --line: #d3dcda;
    --line-strong: #b7c4c1;
    --cyan: #037c8f;
    --cyan-deep: #0a5b6b;
    --cyan-dim: #cfe9ec;
    --ink: #0f1a1c;
    --ink-muted: #4c6266;
    --ink-faint: #869896;
    --stamp: #9c5f21;
    --stamp-ink: #fff7ec;
    --shadow: rgba(20,30,30,0.12);
  }

  * { box-sizing: border-box; }
  body {
    background: var(--ground);
    color: var(--ink);
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--cyan); }
  ::selection { background: var(--cyan-dim); color: var(--ink); }

  .mono {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-variant-numeric: tabular-nums;
  }
  .display {
    font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    text-transform: uppercase;
  }

  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
  }

  /* ============ Ticker ============ */
  .ticker {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .ticker-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 9px 28px;
    max-width: 1080px;
    margin: 0 auto;
    font-size: 11.5px;
    letter-spacing: 0.09em;
    color: var(--ink-muted);
  }
  .ticker-inner span { white-space: nowrap; }
  .ticker-inner b { color: var(--cyan); font-weight: 600; }

  /* ============ Header ============ */
  header.masthead {
    padding: 40px 0 34px;
    border-bottom: 3px double var(--line-strong);
  }
  .masthead-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
  }
  .logotype {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 0.9;
    margin: 0;
    text-wrap: balance;
  }
  .logotype span { color: var(--cyan); }
  .masthead-tag {
    margin: 6px 0 0;
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    color: var(--ink-muted);
    font-size: 15px;
  }
  nav.masthead-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    padding-bottom: 6px;
  }
  nav.masthead-nav a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-muted);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
  }
  nav.masthead-nav a:hover { color: var(--cyan); border-color: var(--cyan); }

  /* ============ Hero ============ */
  .hero {
    padding: 64px 0 58px;
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
  .eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--cyan);
    border: 1px solid var(--cyan-dim);
    background: color-mix(in srgb, var(--cyan) 8%, transparent);
    padding: 5px 10px;
    margin-bottom: 20px;
  }
  h1.headline {
    font-size: clamp(38px, 5.2vw, 62px);
    font-weight: 700;
    line-height: 0.98;
    margin: 0 0 22px;
    text-wrap: balance;
    max-width: 15ch;
  }
  .hero p.lede {
    max-width: 46ch;
    font-size: 19px;
    color: var(--ink);
    margin: 0 0 28px;
  }
  .cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .btn {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ground);
    background: var(--cyan);
    padding: 13px 22px;
    border: 1px solid var(--cyan);
  }
  .btn:hover { background: transparent; color: var(--cyan); }
  .cta-note { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-faint); }

  .badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
  }
  .badge-glow {
    position: relative;
    width: min(280px, 70vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .badge-glow::before {
    content: "";
    position: absolute;
    inset: -22%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 32%, transparent) 0%, transparent 68%);
    filter: blur(6px);
  }
  .badge-glow img {
    height: auto;   /* October 2026 — the img's height="512" kept it 512 tall while its width shrank: a squeezed icon */
    position: relative;
    width: 92%;
    /* October 2026 — the icon is macOS's own render of the app icon: it carries
       its own rounded shape, glass edge and shadow, so none are added here. */
  }
  .badge-caption {
    margin-top: 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    text-align: center;
  }

  /* ============ Section scaffolding ============ */
  section { padding: 58px 0; border-top: 1px solid var(--line); }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
  }
  .section-head h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    margin: 0;
    text-wrap: balance;
  }
  .section-head .mono { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; }

  /* ============ Dispatch tickets (ingest paths) ============ */
  .tickets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .ticket {
    background: var(--surface);
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .ticket .slug {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--cyan);
  }
  .ticket h3 {
    font-family: 'Big Shoulders Display', sans-serif;
    text-transform: uppercase;
    font-size: 23px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
  }
  .ticket p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }

  /* ============ Long-form pages (privacy, support) — October 2026 ============ */
  .doc { max-width: 68ch; }
  .doc p, .doc li { color: var(--ink-muted); margin: 0 0 14px; }
  .doc strong { color: var(--ink); }
  .doc h3 {
    font-family: 'Big Shoulders Display', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 21px;
    color: var(--ink);
    margin: 30px 0 10px;
  }
  .doc h3:first-child { margin-top: 0; }
  .doc ul { padding-left: 20px; margin: 0 0 14px; }
  .doc .updated { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; margin-bottom: 26px; }
  .imprint .doc-links { margin-top: 8px; }
  .imprint .doc-links a { margin-right: 16px; }

  /* ============ Flow diagram ============ */
  .flow {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
  }
  /* October 2026 — a five-step line: ingest, cull, caption, edit, transmit. */
  .flow.five { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; }
  .tickets + .tickets { margin-top: 18px; }

  /* Screenshots: a dark lightbox in both themes, so the window's own
     rounded corners sit on black whatever the page colour. */
  .shot {
    margin: 0 0 34px;
    padding: 10px;
    background: #050708;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
  .shot figcaption {
    margin-top: 10px;
    padding: 0 4px 2px;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #8aa5ab;
  }
  .tickets + .shot, .shot + .tickets { margin-top: 34px; }
  .flow-node {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    padding: 16px 14px;
    text-align: center;
  }
  .flow-node .mono { display: block; font-size: 11px; color: var(--ink-faint); margin-bottom: 6px; letter-spacing: 0.08em; }
  .flow-node span.label {
    font-family: 'Big Shoulders Display', sans-serif;
    text-transform: uppercase;
    font-size: 19px;
    font-weight: 700;
    color: var(--cyan);
  }
  .flow-arrow { color: var(--ink-faint); }
  .flow-arrow svg { display: block; width: 34px; height: 14px; }

  /* ============ Feature prose block ============ */
  .prose-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .prose-cols p { color: var(--ink-muted); }
  .prose-cols strong { color: var(--ink); }

  /* ============ Manifest (specs) ============ */
  .manifest {
    border: 1px solid var(--line);
  }
  .manifest-row {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    border-top: 1px solid var(--line);
    font-size: 15px;
  }
  .manifest-row:first-child { border-top: none; }
  .manifest-row dt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    padding: 15px 18px;
    background: var(--surface-2);
    border-right: 1px solid var(--line);
  }
  .manifest-row dd {
    margin: 0;
    padding: 15px 18px;
    color: var(--ink);
    background: var(--surface);
  }

  /* ============ Footer / sign-off ============ */
  footer {
    padding: 50px 0 60px;
    border-top: 3px double var(--line-strong);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
  }
  .imprint { color: var(--ink-muted); font-size: 14px; }
  .imprint .mono { color: var(--ink-faint); font-size: 12px; display: block; margin-top: 6px; }
  .sign-off { text-align: right; }
  .sign-off .mark {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 800;
    font-size: 34px;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
    line-height: 1;
  }
  .sign-off .gloss {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-faint);
    margin-top: 6px;
    max-width: 26ch;
  }

  @media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; }
    .badge-wrap { order: -1; }
    .tickets { grid-template-columns: 1fr; }
    .prose-cols { grid-template-columns: 1fr; gap: 26px; }
    .flow, .flow.five { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); margin: 0 auto; }
    .manifest-row { grid-template-columns: 1fr; }
    .manifest-row dt { border-right: none; border-bottom: 1px solid var(--line); }
    footer { grid-template-columns: 1fr; text-align: left; }
    .sign-off { text-align: left; }
  }

  a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

  @media (prefers-reduced-motion: no-preference) {
    .fade-in { animation: fadeIn 0.5s ease-out both; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  }
