  :root {
    --bg: #f4f1ea;
    --ink: #0e0e10;
    --muted: #8a857a;
    --rule: rgba(14, 14, 16, 0.12);
    --accent: #ff5b1f;
  }
  html.dark {
    --bg: #0b0b0d;
    --ink: #f4f1ea;
    --muted: #6e6a62;
    --rule: rgba(244, 241, 234, 0.12);
    --accent: #ff7a3a;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
  body {
    background: var(--bg); color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s, color 0.4s;
    font-feature-settings: "ss01", "cv11";
  }
  .mono { font-family: 'JetBrains Mono', monospace; }
  .serif { font-family: 'Newsreader', Georgia, serif; }
  a { color: inherit; text-decoration: none; }

  /* ── Stage ── */
  .stage {
    position: relative;
    width: 100vw; height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  /* Background grid — subtle */
  .grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(to right, var(--rule) 1px, transparent 1px),
      linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: 0 0;
    opacity: 0.5;
    pointer-events: none;
  }

  /* Floating particles */
  .particle {
    position: absolute;
    background: var(--ink);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    animation: float-up linear infinite;
  }
  @keyframes float-up {
    0% { transform: translateY(20px); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-110vh); opacity: 0; }
  }

  /* ── Header ── */
  header {
    position: relative; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 40px;
    border-bottom: 1px solid var(--rule);
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500;
    letter-spacing: -0.01em;
  }
  .logo-mark {
    width: 18px; height: 18px;
    background: var(--ink);
    position: relative;
  }
  .logo-mark::after {
    content: ''; position: absolute;
    top: 4px; left: 4px;
    width: 10px; height: 10px;
    background: var(--bg);
    transition: background 0.25s ease;
  }
  .logo:hover .logo-mark::after {
    background: var(--accent);
    animation: logo-wake 1.4s ease-in-out infinite;
  }
  @keyframes logo-wake {
    0%, 100% { transform: scale(1);    }
    50%      { transform: scale(0.55); }
  }
  @media (prefers-reduced-motion: reduce) {
    .logo:hover .logo-mark::after { animation: none; }
  }
  nav { display: flex; gap: 28px; align-items: center; }
  nav a {
    font-size: 12px; font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
  }
  nav a:hover { color: var(--ink); }
  .theme-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: transparent; border: 1px solid var(--rule);
    padding: 6px 12px; border-radius: 999px;
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    color: var(--muted); cursor: pointer;
    letter-spacing: 0.05em;
    line-height: 1;
    min-width: 72px;
    transition: all 0.2s;
  }
  .theme-btn:hover { border-color: var(--ink); color: var(--ink); }
  .theme-dot {
    width: 6px; height: 6px;
    border: 1px solid currentColor;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.25s ease;
  }
  html.dark .theme-dot { background: currentColor; }

  /* ── Hero ── */
  .hero {
    position: relative; z-index: 4;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 0 40px;
  }

  .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: end;
    padding-bottom: 32px;
    width: 100%;
  }

  /* Massive headline */
  h1 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(56px, 13vw, 200px);
    line-height: 0.86;
    letter-spacing: -0.05em;
    color: var(--ink);
    white-space: nowrap;
  }
  h1 .alt {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: -0.045em;
  }
  h1 .dot-wrap {
    position: relative;
    display: inline-block;
  }
  h1 .dot {
    /* button defaults to its own font-size; we need em-units relative to h1 */
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    width: 0.18em; height: 0.18em;
    background: var(--accent);
    border: 0;
    padding: 0;
    border-radius: 50%;
    margin-left: 0.05em;
    vertical-align: baseline;
    animation:
      dot-arrival 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 2s backwards,
      dot-pulse   2.4s ease-in-out 2.55s infinite;
  }
  h1 .dot { cursor: pointer; }
  h1 .dot:hover {
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 22%, transparent);
  }
  h1 .dot:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
  }
  /* Pin every hero-inner child explicitly so adding the hint doesn't reshuffle the layout */
  .hero-inner > h1     { grid-column: 1; grid-row: 1; }
  .hero-inner > .aside { grid-column: 2; grid-row: 1 / span 2; }
  /* Tiny hint below the headline — visible to everyone; click handler adapts on non-WebGPU */
  .hero-hint {
    display: block;
    grid-column: 1;
    grid-row: 2;
    margin-top: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
    opacity: 0;
    animation: hint-in 0.5s ease 3s forwards;
  }
  @keyframes hint-in {
    to { opacity: 0.7; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-hint { animation: none; opacity: 0.7; }
  }
  /* Bubble that floats below the headline when the dot is woken */
  .dot-bubble {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4em;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: transparent;
    max-width: min(320px, 80vw);
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
  }
  .dot-bubble[data-visible] {
    opacity: 1;
    transform: translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .dot-bubble {
      transition: opacity 0.001s linear;
      transform: none;
    }
  }
  @keyframes dot-arrival {
    0%   { opacity: 0; transform: translateY(-0.3em) scale(0.4); }
    100% { opacity: 1; transform: translateY(0)      scale(1);   }
  }
  @keyframes dot-pulse {
    0%, 100% { opacity: 1;    transform: scale(1);    }
    50%      { opacity: 0.55; transform: scale(0.85); }
  }
  @media (prefers-reduced-motion: reduce) {
    /* keep the gentle pulse, drop the dramatic drop-and-overshoot arrival */
    h1 .dot {
      animation: dot-pulse 2.4s ease-in-out infinite;
    }
  }

  /* Aside column */
  .aside {
    align-self: end;
    padding-bottom: 8px;
    max-width: 320px;
  }
  .aside-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.5;
  }
  .aside-mark {
    display: inline-block;
    color: var(--accent);
    font-size: 1.1em;
    line-height: 1;
    margin-right: 0.2em;
    animation: aside-mark-pulse 2.4s ease-in-out infinite;
  }
  .aside-verb,
  .aside-task {
    display: inline-block;
    transition: opacity 0.25s ease;
  }
  .aside-meta {
    display: block;
    opacity: 0.6;
    margin-top: 2px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  @keyframes aside-mark-pulse {
    0%, 100% { opacity: 0.9; transform: scale(1);    }
    50%      { opacity: 0.4; transform: scale(0.92); }
  }
  /* aside-mark pulse is already gentle (opacity + small scale); leave it alone for reduced-motion */
  .aside-text {
    font-family: 'Newsreader', serif;
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.35;
    font-weight: 400;
    color: var(--ink);
    max-width: 32ch;
  }
  .aside-text em {
    color: var(--muted);
    font-style: italic;
  }

  /* utility — accessible visually-hidden labels */
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* ── Footer strip ── */
  .footer {
    position: relative; z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 24px 40px;
    border-top: 1px solid var(--rule);
    align-items: center;
  }
  .foot-cell {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 12px;
  }
  .foot-cell .k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .foot-cell .v { color: var(--ink); font-weight: 500; }
  .foot-cell .v a:hover { color: var(--accent); }

  .product-list {
    display: flex; gap: 18px; flex-wrap: wrap;
  }
  .product-list a {
    font-size: 12px; font-weight: 500;
    transition: color 0.2s;
  }
  .product-list a:hover { color: var(--accent); }
  .product-list a span {
    color: var(--muted); margin-left: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
  }

  /* ── Marquee at very top ── */
  .ticker {
    position: absolute; top: 12px; left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.08em;
    display: flex; gap: 22px; align-items: center;
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 999px;
  }
  .ticker .pulse {
    width: 6px; height: 6px;
    background: #2dba6c;
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
  }

  /* ── Blob accent ── */
  .blob {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
  }
  .blob.a { width: 540px; height: 540px; background: var(--accent); top: -180px; right: -120px; animation: drift-a 18s ease-in-out infinite; }
  .blob.b { width: 380px; height: 380px; background: var(--ink); bottom: -120px; left: 30%; opacity: 0.06; animation: drift-b 22s ease-in-out infinite; }
  @keyframes drift-a {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 60px); }
  }
  @keyframes drift-b {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -40px); }
  }

  /* "agents" magnetic snap — each letter arrives from a randomized offset */
  .agent-word { white-space: nowrap; }
  .agent-word > span {
    display: inline-block;
    opacity: 0;
    transform: translate(var(--x, 0), var(--y, 0));
    animation: agent-snap 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(1.2s + var(--i) * 0.06s);
    will-change: opacity, transform;
  }
  @keyframes agent-snap {
    to { opacity: 1; transform: translate(0, 0); }
  }
  @media (prefers-reduced-motion: reduce) {
    /* drop the magnetic-snap translate, keep the staggered fade-in */
    .agent-word > span {
      animation-name: agent-fade;
      transform: none;
    }
  }
  @keyframes agent-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Glow-spawn — the orange dot ignites once after the headline settles */
  .dot { position: relative; }
  .dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
    animation: glow-spawn 1.0s ease-out 2.45s forwards;
  }
  @keyframes glow-spawn {
    0%   { opacity: 0.7; transform: scale(1);   }
    100% { opacity: 0;   transform: scale(2.8); }
  }
  @media (prefers-reduced-motion: reduce) {
    .dot::after { animation: none; opacity: 0; }
  }

  /* Headline entrance — one-time staggered reveal, then stillness */
  .reveal-line {
    display: block;
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
    animation: reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform, filter;
  }
  .reveal-line:nth-child(1) { animation-delay: 0.1s; }
  .reveal-line:nth-child(2) { animation-delay: 0.25s; }

  @keyframes reveal {
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    /* drop the blur and translate, keep the staggered fade-in */
    .reveal-line {
      animation-name: reveal-fade;
      animation-duration: 0.6s;
      transform: none;
      filter: none;
    }
  }
  @keyframes reveal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Footer-end cell aligns right on desktop, falls back to left on stacked layouts */
  .foot-end { text-align: right; }

  /* ── Responsive ──────────────────────────────────────────────────────── */

  /* Tablet down: stack hero, allow scrolling, drop decorative corners */
  @media (max-width: 900px), (max-height: 640px) {
    html, body { overflow: visible; height: auto; }
    .stage { height: auto; min-height: 100vh; }
  }

  @media (max-width: 900px) {
    header { padding: 18px 24px; }

    .hero { padding: 32px 24px; }
    .hero-inner {
      grid-template-columns: 1fr;
      gap: 28px;
      align-items: start;
      padding-bottom: 0;
    }
    /* keep h1 nowrap — the two .reveal-line blocks already produce the desktop
       break ("solid," / "native agents."); allowing wrap here splits "agents"
       mid-word because its letters are individual inline-block spans. */
    h1 { line-height: 0.92; }
    .aside { max-width: 480px; padding-bottom: 0; }
    /* unset desktop column pinning so children stack in a single column */
    .hero-inner > h1     { grid-column: 1; grid-row: auto; }
    .hero-inner > .aside { grid-column: 1; grid-row: auto; }
    .hero-hint           { grid-column: 1; grid-row: auto; }

    .footer {
      grid-template-columns: 1fr auto;
      gap: 22px;
      padding: 20px 24px;
    }
    .foot-end { text-align: left; }
  }

  /* Mobile: single-column footer, tighter rhythm */
  @media (max-width: 520px) {
    header { padding: 14px 18px; }
    nav { gap: 18px; }
    nav a { font-size: 11px; padding: 8px 0; } /* 44px-ish tap target */

    .ticker {
      font-size: 9px;
      gap: 12px;
      letter-spacing: 0.12em;
      padding: 5px 10px;
    }

    .hero { padding: 24px 18px; }
    /* shrink so "native agents." (incl. orange dot) fits on one line at phone widths */
    h1 { font-size: clamp(36px, 10.5vw, 200px); }

    .footer {
      grid-template-columns: 1fr;
      padding: 18px 18px 22px;
      gap: 16px;
    }
  }

  /* Very narrow phones (≤360px): drop one more notch */
  @media (max-width: 360px) {
    h1 { font-size: clamp(32px, 10vw, 200px); }
  }

