:root {
  /* ---- Surfaces (dark-first) ---- */
  --bg:          #050710; /* page base: near-black, navy-tinted */
  --bg-2:        #080b16; /* raised surface / list rows */
  --panel:       #0b0f1d; /* cards, panels */
  --midnight:    #121331; /* deep brand navy: cores, glass base */
  --line:        rgba(150, 170, 220, 0.10); /* hairline dividers */
  --line-strong: rgba(150, 170, 220, 0.18); /* visible borders */

  /* ---- Text ---- */
  --ink:      #eef2fb; /* primary */
  --ink-soft: #c0c8da; /* secondary */
  --muted:    #8b95ac; /* tertiary / captions */
  --faint:    #5c6680; /* disabled / faintest */

  /* ---- Brand accents (sampled from the raven logo) ---- */
  --cyan:        #4be1ec; /* primary accent */
  --cyan-deep:   #28b8d8;
  --violet:      #cb5eee; /* secondary accent */
  --violet-deep: #9a57e8;
  --teal:        #08a88a; /* system status ("online") ONLY */
  --gold:        #d9b25f; /* founder signal ONLY */

  /* bridge tone used inside brand gradients */
  --bridge:      #7db8f0; /* the cyan to violet midpoint */

  /* ---- Type ---- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "Space Grotesk", ui-monospace, monospace; /* chrome / terminal / status */

  /* ---- Radius ---- */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 100px;

  /* ---- Spacing / layout ---- */
  --maxw:   1240px;
  --gut:    clamp(20px, 5vw, 64px);
  --band-y: clamp(84px, 12vh, 150px);

  /* ---- Motion ---- */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur:      0.4s;
  --dur-slow: 0.9s;

  /* ---- Glows ---- */
  --glow-cyan:   0 18px 60px -22px rgba(75, 225, 236, 0.45);
  --glow-violet: 0 18px 60px -22px rgba(203, 94, 238, 0.45);
  --shadow-card: 0 30px 70px -36px rgba(0, 0, 0, 0.6);

  /* ---- Z-index ladder ---- */
  --z-ambient: 0; --z-content: 1; --z-status: 49; --z-nav: 50; --z-menu: 60;
}

/* ---- the public site (65-site.md 5.4): the console's look, read without a script ----
   Colours are the tokens above; a glow or a veil uses a token's own channels with an alpha. Motion is CSS
   only, and all of it stops under prefers-reduced-motion (the last rule). */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/1b1a8131d9edf975/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/685bbbf69fa616df/fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/787b3fdd0b7e6d59/fonts/hanken-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/58f23b7ae3e13b21/fonts/hanken-grotesk-600.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink-soft);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(75, 225, 236, 0.28); color: var(--ink); }
a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

/* ---- the ground: a faint grid, a violet glow at the top right, a few glowing dots ---- */
.ambient { position: absolute; inset: 0 0 auto 0; height: min(1100px, 140vh); z-index: var(--z-ambient); pointer-events: none; overflow: hidden;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 55%, transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 55%, transparent); }
.ambient::before { content: ""; position: absolute; top: -260px; right: -200px; width: 820px; height: 820px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(203, 94, 238, 0.30), rgba(154, 87, 232, 0.12) 45%, transparent 72%); }
.ambient::after { content: ""; position: absolute; top: 120px; left: -260px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(75, 225, 236, 0.10), transparent 70%); }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(75, 225, 236, 0.55); opacity: 0.7; animation: twinkle 6s var(--ease-in-out) infinite; }
.spark.s1 { top: 14%; left: 12%; }
.spark.s2 { top: 9%; right: 22%; background: var(--violet); box-shadow: 0 0 12px 2px rgba(203, 94, 238, 0.6); animation-delay: -2s; }
.spark.s3 { top: 38%; right: 8%; width: 3px; height: 3px; animation-delay: -4s; }
.spark.s4 { top: 56%; left: 44%; width: 3px; height: 3px; background: var(--bridge); box-shadow: 0 0 10px 2px rgba(125, 184, 240, 0.5); animation-delay: -1s; }
.spark.s5 { top: 27%; left: 58%; width: 2px; height: 2px; animation-delay: -3s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.15); } }

/* ---- frame ---- */
.skip { position: absolute; left: -9999px; z-index: var(--z-menu); }
.skip:focus { left: var(--gut); top: 12px; background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); }
.top, main, .bottom { position: relative; z-index: var(--z-content); }
.bar { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.top .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 20px; padding-bottom: 20px; }
.lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
.lockup img { width: 30px; height: 30px; }
.lockup:hover { color: var(--ink); }
.top nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.top nav a { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding: 6px 0; transition: color var(--dur-fast) var(--ease); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top nav .nav-console { color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 7px 14px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.top nav .nav-console:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
main { flex: 1 0 auto; width: 100%; }
main.narrow { max-width: 820px; margin: 0 auto; padding: clamp(48px, 9vh, 110px) var(--gut) 88px; }
.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.bottom .bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 40px; padding-top: 30px; padding-bottom: 44px; }
.sign { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.sign img { width: 22px; height: 22px; }
.sign .sign-name { letter-spacing: 0.01em; }
.sign .year { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; }
.note { max-width: 560px; }
.note p { margin: 0 0 6px; }
.note p:last-child { margin-bottom: 0; }
.note .contact { margin-top: 10px; color: var(--ink-soft); }

/* ---- type ---- */
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 1.6em 0 0.6em; }
h1 { font-size: clamp(34px, 5vw, 50px); margin-top: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.01em; }
h3 { font-size: 21px; }
h4, h5, h6 { font-size: 18px; }
p, ul, ol, blockquote, table, pre { margin: 0 0 1.1em; }
.lede { font-size: 19px; color: var(--ink-soft); }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }
.byline { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.abstract { border-left: 2px solid var(--violet); padding: 4px 0 4px 18px; color: var(--ink-soft); margin-bottom: 40px; }
blockquote { border-left: 2px solid var(--line-strong); margin-left: 0; padding-left: 18px; color: var(--muted); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 5px; color: var(--ink); }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
math { color: var(--ink); font-size: 1.05em; }
math[display="block"] { margin: 1.2em 0; overflow-x: auto; }
.footnotes { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 18px; font-size: 15px; color: var(--muted); }
.footnote-ref, .footnote-back { text-decoration: none; }
.empty { color: var(--muted); }
.source { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- the papers page ---- */
.papers { list-style: none; padding: 0; margin-top: 36px; }
.papers li { border-top: 1px solid var(--line); padding: 26px 0; }
.papers h2 { margin: 0 0 6px; font-size: 24px; }
.papers h2 a { color: var(--ink); text-decoration: none; }
.papers h2 a:hover { color: var(--cyan); }
.papers .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ---- the home page: hero ---- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 9vh, 112px) var(--gut) clamp(64px, 11vh, 132px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 14px 7px 15px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); background: rgba(11, 15, 29, 0.7); font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.cursor { display: inline-block; width: 0.62em; height: 1.1em; background: var(--cyan); box-shadow: 0 0 10px rgba(75, 225, 236, 0.6);
  animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.title { margin: 0 0 18px; font-size: clamp(60px, 13vw, 128px); line-height: 0.95; letter-spacing: -0.04em; color: var(--ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title { background-image: linear-gradient(100deg, var(--ink) 8%, var(--bridge) 48%, var(--violet) 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    padding-bottom: 0.06em; }
}
.hero-text { min-width: 0; }
.tagline { margin: 0 0 18px; max-width: 22em; color: var(--ink); font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.7vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.hero .lede { max-width: 36em; font-size: 18px; color: var(--ink-soft); }
.hero .lede p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-primary { color: var(--bg); background: linear-gradient(120deg, var(--cyan), var(--bridge)); box-shadow: var(--glow-cyan); }
.btn-primary:hover { color: var(--bg); box-shadow: 0 22px 60px -18px rgba(75, 225, 236, 0.65); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: rgba(11, 15, 29, 0.6); }
.btn-ghost:hover { color: var(--ink); border-color: var(--violet); box-shadow: var(--glow-violet); }

/* the raven in its tile, with two orbits and a small body on each */
.orbit { position: relative; justify-self: center; width: min(78vw, 420px); aspect-ratio: 1 / 1; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.ring-outer { inset: 0; animation: spin 36s linear infinite; }
.ring-inner { inset: 15%; border-color: rgba(203, 94, 238, 0.22); animation: spin 22s linear infinite reverse; }
.ring::after { content: ""; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px 3px rgba(75, 225, 236, 0.55); }
.ring-inner::after { top: auto; bottom: -4px; left: calc(50% - 4px); width: 8px; height: 8px; background: var(--violet);
  box-shadow: 0 0 14px 3px rgba(203, 94, 238, 0.55); }
@keyframes spin { to { transform: rotate(360deg); } }
.tile { position: absolute; inset: 29%; display: grid; place-items: center; border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--midnight), var(--panel) 70%); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card), 0 0 90px -20px rgba(203, 94, 238, 0.45), inset 0 1px 0 rgba(238, 242, 251, 0.06); }
.tile img { width: 64%; height: auto; }

/* ---- the home page: bands ---- */
.band { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--gut); border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.band-head { max-width: 640px; margin-bottom: 40px; }
.band-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.band-head p { margin: 0; font-size: 18px; color: var(--ink-soft); }

/* what this is, and a heading beside its text */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 64px; align-items: start; }
.split > h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.prose { max-width: 40em; font-size: 18px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* the two things: two large cards, each with its points, its state rows and its link */
.band-things { padding-top: 0; border-top: 0; }
.things { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.thing { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, var(--panel), var(--bg-2) 70%);
  box-shadow: var(--shadow-card); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.thing::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; opacity: 0.8;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.thing::after { content: ""; position: absolute; top: -200px; right: -180px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(75, 225, 236, 0.13), transparent 70%); }
.thing-memory::before { background: linear-gradient(90deg, transparent, var(--violet), transparent); }
.thing-memory::after { background: radial-gradient(closest-side, rgba(203, 94, 238, 0.16), transparent 70%); }
.thing > * { position: relative; z-index: var(--z-content); }
.thing:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.thing-name { margin: 0 0 14px; font-size: clamp(36px, 4.6vw, 54px); line-height: 1; letter-spacing: -0.03em; }
.thing-line { margin: 0 0 24px; max-width: 30em; color: var(--ink); font-size: 19px; line-height: 1.5; }
.points { list-style: none; margin: 0 0 28px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.points li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 1px; background: var(--cyan); }
.thing-memory .points li::before { background: var(--violet); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-name { color: var(--ink); font-size: 15.5px; line-height: 1.4; }
.thing .rows { margin-top: auto; }
.thing-more { margin: 26px 0 0; }
.tag { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid; font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.tag-built { color: var(--cyan); border-color: rgba(75, 225, 236, 0.35); background: rgba(75, 225, 236, 0.06); }
.tag-research { color: var(--violet); border-color: rgba(203, 94, 238, 0.4); background: rgba(203, 94, 238, 0.07); }
.tag-design { color: var(--bridge); border-color: rgba(125, 184, 240, 0.4); background: rgba(125, 184, 240, 0.06); }
.tag-planned { color: var(--ink-soft); border-color: var(--line-strong); background: rgba(150, 170, 220, 0.05); }

/* the things in design: two small entries, a name, a state tag and a text each; no card as large as a thing's */
.band-design { padding-top: clamp(48px, 7vh, 84px); padding-bottom: clamp(48px, 7vh, 84px); }
.band-design .band-head { margin-bottom: 28px; }
.band-design .band-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.band-design .band-head p { font-size: 17px; }
.designs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.design { padding: 20px 22px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: rgba(8, 11, 22, 0.6); }
.design-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.design-name { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.design-text { margin: 0; max-width: 34em; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* how it fits: apps, then iRaven, then the providers */
.fit { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: stretch; }
.layer { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(8, 11, 22, 0.75); }
.layer-name { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.layer-name img { width: 20px; height: 20px; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chips li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); color: var(--ink); font-size: 15px; line-height: 1.4; }
.layer-core { border-color: rgba(203, 94, 238, 0.35); background: linear-gradient(160deg, rgba(18, 19, 49, 0.9), rgba(11, 15, 29, 0.9));
  box-shadow: 0 0 80px -30px rgba(203, 94, 238, 0.5); }
.layer-core .layer-name { color: var(--ink); }
.chips-core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips-core li { padding: 16px 14px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 17px; border-color: rgba(75, 225, 236, 0.3); }
.chips-core .chip-memory { border-color: rgba(203, 94, 238, 0.4); }
.layer-core .layer-sub { margin: 18px 0 10px; font-size: 11px; color: var(--muted); }
.chips-beside { gap: 6px; }
.chips-beside li, .chips .chip-planned { padding: 8px 12px; border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--ink-soft); font-size: 14px; }
.wire { position: relative; justify-self: center; width: 2px; height: 44px; overflow: hidden;
  background: linear-gradient(180deg, var(--cyan), var(--violet)); opacity: 0.35; }
.wire::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, var(--ink), transparent); animation: flow-down 2.4s var(--ease-in-out) infinite; }
@keyframes flow-down { to { top: 100%; } }
@keyframes flow-right { to { left: 100%; } }
.fit figcaption { grid-column: 1 / -1; max-width: 720px; margin-top: 28px; color: var(--ink-soft); font-size: 16.5px; }

.paper-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paper-list li { border-bottom: 1px solid var(--line); }
.paper-list a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 20px 4px;
  color: var(--ink); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.paper-list a:hover { color: var(--cyan); }
.paper-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.paper-meta { color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }
.more { margin: 26px 0 0; }
.more-link { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.more-link::after { content: " \2192"; }

/* ---- the pages of the two things ---- */
.hero-thing { padding-bottom: clamp(56px, 9vh, 110px); }
.title-thing { font-size: clamp(56px, 10vw, 96px); }
.orbit-small { width: min(56vw, 240px); }
.tags { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.tags li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tags-name { color: var(--ink-soft); font-size: 15.5px; line-height: 1.4; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.step { counter-increment: step; position: relative; padding: 24px 24px 26px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); box-shadow: var(--shadow-card); }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500;
  font-size: 13px; letter-spacing: 0.16em; color: var(--cyan); }
.steps-memory .step::before { color: var(--violet); }
.step h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.005em; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.step-beside { border-style: dashed; border-color: var(--line-strong); background: rgba(8, 11, 22, 0.6); box-shadow: none; }
.steps .step-beside::before { color: var(--muted); }
.step .step-mark { position: absolute; top: 20px; right: 20px; margin: 0; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.state { min-width: 0; max-width: 760px; }
.state .rows { margin-bottom: 26px; }
.state .actions { margin-top: 30px; }

/* ---- wider screens ---- */
@media (max-width: 420px) {
  .top nav { gap: 6px 14px; }
  .top nav a { letter-spacing: 0.1em; }
  .top nav .nav-console { padding: 6px 11px; }
}
@media (min-width: 860px) {
  .things, .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; }
  .orbit { justify-self: end; width: min(100%, 440px); }
  .orbit-small { width: min(100%, 340px); }
  .split { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); }
  .fit { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.25fr) 56px minmax(0, 1fr); align-items: center; }
  .wire { width: 100%; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
  .wire::after { top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--ink), transparent);
    animation-name: flow-right; }
}

/* ---- people who ask for less ---- */
@media (forced-colors: active) {
  .title { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  .cursor, .spark, .ring::after { forced-color-adjust: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .thing:hover { transform: none; }
}
