/* ==========================================================================
   ENGENIUS, page components
   Hero, diagrams, reference screens, pricing, founders, ASCII, directory.
   ========================================================================== */

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-issue {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.hero-issue .tag {
  border: 2px solid var(--ink); background: var(--bone);
  padding: 5px 10px 3px; line-height: 1;
  font-family: var(--label); font-weight: 600; text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3);
  text-align: center;
}
.hero-issue .tag b { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: 0; color: var(--ink); margin-top: 2px; }
.hero-issue .meta { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxide-rust); line-height: 1.5; }
.hero-issue .meta span { display: block; color: var(--ink-3); }

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8.5vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.hero h1 .hl {
  font-style: italic; color: var(--oxide-rust);
  position: relative; display: inline-block; text-transform: uppercase;
}
.hero h1 .hl::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: 0.12em; height: 0.18em;
  background: var(--safety); z-index: -1; transform: skewX(-6deg);
}
.hero-strap {
  font-family: var(--display); font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.45; color: var(--ink-2); max-width: 52ch; margin: 0 0 30px;
}
.hero-strap em { font-style: italic; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 22px; }
.hero-reassure {
  margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--rule-hard);
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-family: var(--label); font-weight: 600; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.hero-reassure b { color: var(--ink); font-weight: 600; }

/* ── CRT composite, the app running on an old machine ────────────────── */
.crt { position: relative; width: 100%; }
.crt-img { width: 100%; height: auto; mix-blend-mode: multiply; }
:root[data-theme="bedrock"] .crt-img { mix-blend-mode: screen; filter: brightness(0.85) contrast(1.05); }
.crt-screen {
  position: absolute;
  left: 23.2%; top: 32.4%; width: 34.5%; height: 45.8%;
  background: #0d0b06;
  overflow: hidden;
  box-shadow: inset 0 0 18px 4px rgba(0,0,0,0.8), inset 0 0 4px rgba(255,190,80,0.15);
  border-radius: 18px / 26px;
}
.crt-screen .scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.28) 2px 3px);
  mix-blend-mode: multiply;
}
.crt-screen .glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 90% at 50% 40%, rgba(255,176,66,0.14), transparent 70%);
}
.crt[data-crt] { cursor: pointer; outline: none; }
.crt .paper { filter: url(#paperRough); }

/* ── Paper Earth (spins on the screen) ────────────────────────────────── */
.crt-earth {
  position: absolute; z-index: 1;
  left: 50%; top: 48%; width: 74%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
}
.crt-earth svg { width: 100%; height: 100%; display: block; }
.earth-band { transform: translateX(0); }
.crt-play-earth .earth-band { animation: earthspin 7s linear infinite; }
@keyframes earthspin { to { transform: translateX(-200px); } }
.crt-play-earth .crt-earth { animation: earthpop 2.8s ease both; }
@keyframes earthpop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.4); }
  16%  { opacity: 1; transform: translate(-50%,-50%) scale(1.02); }
  24%  { transform: translate(-50%,-50%) scale(1); }
  82%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(0.72); }
}

/* ── Reaching paper arms ──────────────────────────────────────────────── */
.crt-arm { position: absolute; z-index: 6; width: 42%; pointer-events: none; opacity: 0; }
.crt-arm svg { width: 100%; height: auto; display: block; filter: drop-shadow(4px 7px 0 rgba(58,42,28,0.22)); }
.crt-arm-r svg { transform: scaleX(-1); }
.crt-arm-l { left: -8%; top: 32%; transform-origin: left center; }
.crt-arm-r { right: -8%; top: 32%; transform-origin: right center; }
.crt-play-arms .crt-arm-l { animation: armL 2.6s cubic-bezier(.34,1.2,.5,1) both; }
.crt-play-arms .crt-arm-r { animation: armR 2.6s cubic-bezier(.34,1.2,.5,1) both; }
@keyframes armL {
  0%   { opacity: 0; transform: translateX(-66%) rotate(6deg); }
  14%  { opacity: 1; }
  44%  { opacity: 1; transform: translateX(20%) rotate(-4deg); }
  56%  { transform: translateX(14%) rotate(-1deg); }
  66%  { transform: translateX(24%) rotate(-6deg); }
  74%  { transform: translateX(4%) rotate(13deg); }
  100% { opacity: 0; transform: translateX(-74%) rotate(20deg); }
}
@keyframes armR {
  0%   { opacity: 0; transform: translateX(66%) rotate(-6deg); }
  14%  { opacity: 1; }
  44%  { opacity: 1; transform: translateX(-20%) rotate(4deg); }
  56%  { transform: translateX(-14%) rotate(1deg); }
  66%  { transform: translateX(-24%) rotate(6deg); }
  74%  { transform: translateX(-4%) rotate(-13deg); }
  100% { opacity: 0; transform: translateX(74%) rotate(-20deg); }
}

/* ── Disk-drive stop-sign hand ────────────────────────────────────────── */
.crt-disk { position: absolute; z-index: 6; left: 61%; top: 20%; width: 24%; aspect-ratio: 3 / 4; pointer-events: none; }
.disk-tray {
  position: absolute; left: 8%; top: 46%; width: 78%; height: 6%;
  background: #d8c7a4; border: 1.5px solid #6b5c3a; border-radius: 2px;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.25), 2px 3px 0 rgba(0,0,0,0.18);
  transform: scaleX(0.06); transform-origin: left center; opacity: 0;
}
.disk-hand {
  position: absolute; left: 24%; bottom: 40%; width: 56%;
  transform-origin: bottom center; transform: translateY(58%) scale(0.5); opacity: 0;
}
.disk-hand svg { width: 100%; height: auto; display: block; filter: drop-shadow(3px 6px 0 rgba(0,0,0,0.2)); }
.crt-play-disk .disk-tray { animation: tray 2.8s ease both; }
@keyframes tray {
  0%   { opacity: 0; transform: scaleX(0.06); }
  10%  { opacity: 1; }
  26%  { transform: scaleX(1); }
  80%  { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0.06); }
}
.crt-play-disk .disk-hand { animation: diskhand 2.8s cubic-bezier(.34,1.5,.5,1) both; }
@keyframes diskhand {
  0%   { opacity: 0; transform: translateY(58%) scale(0.5); }
  20%  { opacity: 0; transform: translateY(58%) scale(0.5); }
  40%  { opacity: 1; transform: translateY(-6%) scale(1.04); }
  50%  { transform: translateY(0) scale(1); }
  80%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(46%) scale(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .crt-earth, .crt-arm, .disk-tray, .disk-hand { animation: none !important; }
}

.crt-cap {
  position: absolute; right: 3%; bottom: 4%; z-index: 4;
  font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); background: color-mix(in oklch, var(--paper) 80%, transparent); padding: 2px 8px;
}
.crt .cursor { animation: curblink 1.1s steps(1) infinite; }
@keyframes curblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .crt .cursor { animation: none; } }

/* ── Strata diagram, the lifecycle as a column ───────────────────────── */
.strata { border: 1px solid var(--ink); background: var(--bone); overflow: hidden; }
.strata-band {
  display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 18px;
  padding: 18px 22px; color: var(--paper); position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.strata-band:last-child { border-bottom: none; }
.strata-band.b-raw   { background: var(--raw);     color: oklch(0.24 0.03 55); }
.strata-band.b-top   { background: var(--topsoil); }
.strata-band.b-mid   { background: var(--mid); }
.strata-band.b-bed   { background: var(--bedrock); }
.strata-band .name { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(22px, 3vw, 30px); line-height: 1; }
.strata-band .age { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }
.strata-band .desc { font-size: 14px; line-height: 1.4; opacity: 0.92; }
.strata-band .desc b { font-weight: 600; }
.strata-band .count { font-family: var(--data); font-size: 13px; text-align: right; opacity: 0.9; white-space: nowrap; }
.strata-band .count b { display: block; font-size: 22px; font-weight: 700; }
.strata-depth {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 22px; background: var(--paper-2); color: var(--ink-3);
  font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.strata-depth .arrow { flex: 1; height: 0; border-top: 2px solid var(--rule-hard); position: relative; }
.strata-depth .arrow::after { content: "▼"; position: absolute; right: -2px; top: -9px; color: var(--rule-hard); font-size: 10px; }

/* ── Pipeline diagram, watch → gate → keep ───────────────────────────── */
.pipeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--ink); background: var(--bone);
}
.pipe-step { padding: 26px 24px; position: relative; border-right: 1px solid var(--rule); }
.pipe-step:last-child { border-right: none; }
.pipe-step .n { font-family: var(--data); font-size: 12px; color: var(--oxide-rust); }
.pipe-step .icon { margin: 12px 0 14px; }
.pipe-step .icon svg { width: 34px; height: 34px; color: var(--ink); }
.pipe-step h4 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 24px; margin: 0 0 8px; letter-spacing: -0.01em; }
.pipe-step p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pipe-step .arrow-r {
  position: absolute; right: -13px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
@media (max-width: 760px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipe-step { border-right: none; border-bottom: 1px solid var(--rule); }
  .pipe-step:last-child { border-bottom: none; }
  .pipe-step .arrow-r { right: 50%; top: auto; bottom: -13px; transform: translateX(50%) rotate(90deg); }
}

/* ── Feature callouts ─────────────────────────────────────────────────── */
.feature { padding: 4px 0; }
.feature .icon svg { width: 30px; height: 30px; color: var(--ink); }
.feature h3 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.feature .tag-line { margin-top: 10px; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 2px; border: 1px solid var(--ink); background: var(--bone); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--rule); }
.step:last-child { border-bottom: none; }
.step .num {
  counter-increment: step; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 40px; line-height: 1; color: var(--oxide-rust);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── Reference app window ─────────────────────────────────────────────── */
.appwin { border: 1px solid var(--ink); background: var(--bone); overflow: hidden; box-shadow: 0 18px 44px -22px oklch(0.2 0.02 60 / 0.5); }
.appwin-chrome {
  background: oklch(0.84 0.02 80); border-bottom: 1px solid var(--ink);
  padding: 8px 14px; display: flex; align-items: center; gap: 8px;
  font-family: var(--data); font-size: 12px; color: var(--ink-2);
}
:root[data-theme="bedrock"] .appwin-chrome { background: oklch(0.3 0.02 60); }
.appwin-chrome .dots { display: flex; gap: 6px; }
.appwin-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; border: 1px solid oklch(0.5 0.02 60 / 0.4); }
.appwin-chrome .dots i:nth-child(1) { background: oklch(0.65 0.18 30); }
.appwin-chrome .dots i:nth-child(2) { background: oklch(0.78 0.16 80); }
.appwin-chrome .dots i:nth-child(3) { background: oklch(0.68 0.13 145); }
.appwin-chrome .url { margin-left: auto; }
.appwin-body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.appwin-side { background: var(--paper); border-right: 1px solid var(--rule); padding: 18px 14px; }
.appwin-brand { font-family: var(--display); font-style: italic; font-size: 22px; letter-spacing: -0.02em; padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.appwin-brand svg { width: 22px; height: 22px; }
.appwin-nav { display: flex; flex-direction: column; gap: 1px; }
.appwin-nav a { padding: 7px 10px; font-size: 13px; color: var(--ink-2); text-decoration: none; border-radius: 2px; display: flex; justify-content: space-between; align-items: center; }
.appwin-nav a.on { background: var(--ink); color: var(--paper); }
.appwin-nav a .cnt { font-family: var(--data); font-size: 11px; opacity: 0.7; }
.appwin-status { margin-top: 18px; padding: 10px 12px; background: var(--paper-2); border: 1px solid var(--rule); font-family: var(--data); font-size: 11px; color: var(--ink-2); line-height: 1.6; }
.appwin-status .pill { display: inline-block; padding: 1px 6px; background: var(--verdigris); color: var(--bone); border-radius: 2px; font-family: var(--label); font-weight: 600; font-size: 9.5px; letter-spacing: 0.1em; margin-bottom: 6px; text-transform: uppercase; }
.appwin-main { padding: 22px 26px; }
.appwin-h { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 2px; }
.appwin-h h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap; }
.appwin-h .crumbs { font-family: var(--label); font-weight: 600; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.appwin-sub { color: var(--ink-2); font-size: 13px; margin-bottom: 16px; font-style: italic; font-family: var(--display); }
.knode-list { display: flex; flex-direction: column; gap: 8px; }
.knode { border: 1px solid var(--rule); background: var(--paper); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.knode .ttl { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.knode .body { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.knode .when { font-family: var(--data); font-size: 10.5px; color: var(--ink-3); }
.knode .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 600px) { .appwin-body { grid-template-columns: 1fr; } .appwin-side { display: none; } }

/* ── Big callout / pull ───────────────────────────────────────────────── */
.pull {
  font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.pull em { font-style: italic; color: var(--oxide-rust); }

/* ── Principles ───────────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--bone); }
.principles > div { padding: 22px 22px; border-right: 1px solid var(--rule); }
.principles > div:last-child { border-right: none; }
.principles h4 { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 10px; color: var(--oxide-rust); }
.principles p { font-family: var(--display); font-size: 19px; line-height: 1.25; margin: 0; color: var(--ink); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } .principles > div:nth-child(2) { border-right: none; } .principles > div:nth-child(1), .principles > div:nth-child(2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } .principles > div { border-right: none; border-bottom: 1px solid var(--rule); } .principles > div:last-child { border-bottom: none; } }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); background: var(--bone); }
.price-card { padding: 30px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.price-card:last-child { border-right: none; }
.price-card.featured { background: var(--paper-2); position: relative; }
.price-card.featured::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--oxide-rust); }
.price-card .ptag { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.price-card .pname { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; margin: 6px 0 4px; }
.price-card .pname em { font-style: italic; color: var(--oxide-rust); }
.price-card .price { font-family: var(--display); font-size: 52px; line-height: 1; letter-spacing: -0.02em; margin: 16px 0 2px; }
.price-card .price .cur { font-size: 26px; vertical-align: super; }
.price-card .price .per { font-family: var(--data); font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.price-card .pnote { font-family: var(--data); font-size: 12px; color: var(--ink-3); margin: 0 0 18px; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 8px; border-left: 2px solid var(--verdigris); border-bottom: 2px solid var(--verdigris); transform: rotate(-45deg); }
.price-card li.no { color: var(--ink-3); }
.price-card li.no::before { border: none; content: "–"; top: 0; color: var(--ink-3); }
.price-card .btn { justify-content: center; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } .price-card { border-right: none; border-bottom: 1px solid var(--rule); } .price-card:last-child { border-bottom: none; } }

/* ── Founders ─────────────────────────────────────────────────────────── */
.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.founder { border: 1px solid var(--rule-hard); background: var(--bone); }
.founder .portrait {
  aspect-ratio: 4 / 5; background: var(--paper-3); position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule-hard);
  background-image: repeating-linear-gradient(135deg, oklch(0.86 0.03 78) 0 12px, oklch(0.82 0.035 76) 12px 24px);
}
.founder .portrait .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  font-family: var(--data); font-size: 12px; color: var(--ink-3);
}
.founder .portrait .ph svg { width: 40px; height: 40px; opacity: 0.5; }
.founder .meta { padding: 18px 20px; }
.founder .fname { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 0; }
.founder .role { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxide-rust); margin: 4px 0 12px; }
.founder .bio { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.founder .handle { font-family: var(--data); font-size: 12px; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 820px) { .founder-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ── ASCII block ──────────────────────────────────────────────────────── */
.ascii {
  font-family: var(--data); font-size: clamp(9px, 1.3vw, 13px); line-height: 1.35;
  white-space: pre; overflow-x: auto; color: var(--ink);
  background: var(--bedrock); color: oklch(0.86 0.1 82);
  border: 1px solid var(--ink); padding: 22px 24px;
  text-shadow: 0 0 3px oklch(0.7 0.12 78 / 0.3);
}
.ascii .r { color: oklch(0.72 0.19 40); }
.ascii .g { color: oklch(0.76 0.12 165); }
.ascii .dim { color: oklch(0.6 0.05 74); }

/* ── Field notes / changelog feed ─────────────────────────────────────── */
.field-notes { border: 1px solid var(--rule-hard); background: var(--paper-2); }
.note-row {
  display: grid; grid-template-columns: 100px 96px 1fr; gap: 14px; align-items: baseline;
  padding: 12px 18px; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.note-row:last-child { border-bottom: none; }
.note-date { font-family: var(--data); font-size: 12px; color: var(--ink-3); }
.note-tag { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--oxide-rust); }
.note-h { color: var(--ink); }
@media (max-width: 620px) {
  .note-row { grid-template-columns: 1fr; gap: 3px; }
  .note-tag { justify-self: start; }
}

/* ── Field reports (longform blog) ────────────────────────────────────── */
.field-reports { border-top: 2px solid var(--ink); }
.report-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 28px;
  padding: 26px 4px; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit; transition: background 0.12s;
}
.report-row:hover { background: var(--paper-2); }
.report-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.report-date { font-family: var(--data); font-size: 12px; color: var(--ink-3); }
.report-tag {
  align-self: start; font-family: var(--label); font-weight: 600; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--oxide-rust);
  border: 1px solid var(--rule-hard); padding: 2px 7px;
}
.report-body { display: flex; flex-direction: column; gap: 8px; }
.report-h {
  font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
.report-row:hover .report-h { text-decoration: underline; text-underline-offset: 3px; }
.report-s { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.report-read { font-family: var(--data); font-size: 12px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 620px) {
  .report-row { grid-template-columns: 1fr; gap: 12px; }
  .report-meta { flex-direction: row; align-items: baseline; gap: 12px; }
}

/* ── Directory / tag cloud (old-web nod) ──────────────────────────────── */
.directory { border: 1px solid var(--ink); background: var(--bone); padding: 26px 28px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; line-height: 2; }
.tag-cloud a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.tag-cloud a:hover { color: var(--link-hover); background: var(--safety); text-decoration: none; }
.tag-cloud .s1 { font-size: 13px; }
.tag-cloud .s2 { font-size: 16px; }
.tag-cloud .s3 { font-size: 20px; font-family: var(--display); font-style: italic; }
.tag-cloud .s4 { font-size: 26px; font-family: var(--display); font-style: italic; }
.tag-cloud .sep { color: var(--rule-hard); }

/* ── Under construction (technical page) ──────────────────────────────── */
.uc-banner {
  border: 2px solid var(--ink); background: var(--bone);
  display: grid; grid-template-columns: auto 1fr; align-items: stretch;
}
.uc-banner .bars { width: 72px; background: repeating-linear-gradient(135deg, var(--ink) 0 14px, var(--safety) 14px 28px); }
.uc-banner .body { padding: 26px 30px; }
.uc-banner h3 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0 0 8px; }
.uc-banner p { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .uc-banner { grid-template-columns: 1fr; } .uc-banner .bars { width: auto; height: 16px; } }

/* ── Two-column feature row ───────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.narrow { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 820px) { .split, .split.narrow { grid-template-columns: 1fr; } }
/* Product hero: give the walkthrough video more room than the default narrow split. */
.split.narrow.hero-media { grid-template-columns: 1fr 1.12fr; }
@media (max-width: 820px) { .split.narrow.hero-media { grid-template-columns: 1fr; } }

/* ── Inline callout strip ─────────────────────────────────────────────── */
.callout { border-left: 3px solid var(--oxide-rust); padding: 4px 0 4px 20px; }
.callout .q { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; margin: 0; }
.callout .who { font-family: var(--data); font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* Section eyebrow with number */
.numhead { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: baseline; margin-bottom: 40px; }
.numhead .no { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); border-top: 2px solid var(--ink); padding-top: 8px; }
.numhead .no b { display: block; font-family: var(--display); font-style: normal; font-weight: 500; font-size: 30px; color: var(--ink); letter-spacing: -0.02em; margin-top: 2px; }
@media (max-width: 700px) { .numhead { grid-template-columns: 1fr; gap: 10px; } .numhead .no { border-top: none; padding-top: 0; } }

/* ── Golden-age web chrome, 88×31 buttons, webring, hit counter ──────── */
.webstrip {
  max-width: var(--shell); margin: 0 auto; padding: 22px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 16px;
}
.webstrip-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.btn88 {
  width: 88px; height: 31px; flex-shrink: 0;
  display: grid; grid-template-columns: 7px 1fr; align-items: stretch;
  border: 1px solid var(--ink); background: var(--bone);
  box-shadow: inset -1px -1px 0 rgba(0,0,0,0.32), inset 1px 1px 0 rgba(255,255,255,0.55);
  overflow: hidden; text-decoration: none;
}
.btn88 .bar { background: var(--ink); }
.btn88 .lab { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 5px; min-width: 0; }
.btn88 .l1 { font-family: var(--label); font-weight: 700; font-size: 7px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.btn88 .l2 { font-family: var(--label); font-weight: 700; font-size: 9px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); white-space: nowrap; line-height: 1.05; }
.btn88.b-rust  .bar { background: var(--oxide-rust); } .btn88.b-rust  .l2 { color: var(--oxide-rust); }
.btn88.b-verd  .bar { background: var(--verdigris); }  .btn88.b-verd  .l2 { color: var(--verdigris); }
.btn88.b-ochre .bar { background: var(--gate-ochre); }
.btn88.b-bed   .bar { background: var(--bedrock); }
.btn88.be-brand { grid-template-columns: 10px 1fr; cursor: pointer; }
.btn88.be-brand .bar { background: linear-gradient(180deg, var(--verdigris), var(--oxide-rust) 55%, var(--gate-ochre)); }

.linktous { display: flex; align-items: center; gap: 12px; }
.linktous .lt-code { display: flex; flex-direction: column; gap: 3px; }
.linktous code {
  font-family: var(--data); font-size: 10px; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--rule); padding: 3px 7px;
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.linktous code:hover { border-color: var(--ink); color: var(--ink); }

.webring {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--rule-hard); background: var(--paper-2); padding: 7px 14px;
  font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.webring a { color: var(--ink-2); text-decoration: none; }
.webring a:hover { color: var(--oxide-rust); }
.webring .ring-name b { color: var(--ink); }

.odometer { display: inline-flex; gap: 1px; vertical-align: middle; }
.odometer i {
  font-family: var(--data); font-style: normal; font-weight: 700; font-size: 12px;
  color: oklch(0.84 0.15 78); background: #0d0b06; padding: 1px 3px; border-radius: 1px;
  box-shadow: inset 0 0 3px rgba(255,176,66,0.35);
}

.nav-new {
  display: inline-block; margin-left: 6px; transform: rotate(-7deg);
  background: var(--oxide-rust); color: var(--bone);
  font-family: var(--label); font-weight: 700; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 4px 1px; border-radius: 2px; vertical-align: super;
  animation: newblink 1.3s steps(1) infinite;
}
@keyframes newblink { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .nav-new { animation: none; } }

@media (max-width: 700px) { .webstrip-row { justify-content: center; } }

/* ── Agent crew, the ring of workers around your knowledge ─────────── */
.crew-stage { position: relative; width: 100%; max-width: 620px; margin: 6px auto 0; aspect-ratio: 1 / 1; }
.crew-ring { position: absolute; inset: 13%; border: 1.5px dashed var(--rule-hard); border-radius: 50%; opacity: 0.55; pointer-events: none; }
.crew-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px;
}
.crew-core .k { font-family: var(--display); font-style: italic; font-size: clamp(15px,2.2vw,21px); line-height: 1.08; }
.crew-core .c { font-family: var(--data); font-size: 10.5px; color: var(--gate-ochre); margin-top: 7px; letter-spacing: 0.04em; }
.crew-agent {
  position: absolute; transform: translate(-50%, -50%); width: 44%; max-width: 156px;
  background: var(--bone); border: 1px solid var(--rule-hard); border-radius: 4px; padding: 10px 12px; text-align: left;
}
.crew-agent .an { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12.5px; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.crew-agent .an b { font-family: var(--data); font-weight: 400; font-size: 10px; color: var(--gate-ochre); }
.crew-agent .ad { font-size: 12px; color: var(--ink-2); line-height: 1.35; margin-top: 4px; }
.crew-agent:nth-child(2) { left: 50%; top: 4%; }
.crew-agent:nth-child(3) { left: 90%; top: 30%; }
.crew-agent:nth-child(4) { left: 90%; top: 70%; }
.crew-agent:nth-child(5) { left: 50%; top: 96%; }
.crew-agent:nth-child(6) { left: 10%; top: 70%; }
.crew-agent:nth-child(7) { left: 10%; top: 30%; }
@media (max-width: 760px) {
  .crew-stage { aspect-ratio: auto; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }
  .crew-ring { display: none; }
  .crew-core { position: static; transform: none; width: 100%; aspect-ratio: auto; border-radius: 6px; padding: 20px; order: -1; }
  .crew-agent { position: static; transform: none; width: 100%; max-width: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   INSTALL MODAL, macOS download-and-install instructions
   Opened by the "Download for macOS" button. The app isn't Apple-notarized
   yet, so a plain drag-install trips Gatekeeper; the modal hands over a
   single copy-pastable command that clears the quarantine flag for them.
   ══════════════════════════════════════════════════════════════════════ */
.dl-modal[hidden] { display: none; }
.dl-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 5vh, 64px) var(--gutter);
  overflow-y: auto; overscroll-behavior: contain;
}
body.dl-modal-open { overflow: hidden; }
.dl-modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(0.18 0.018 50 / 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.dl-sheet {
  position: relative; z-index: 1;
  width: 100%; max-width: 660px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 oklch(0.2 0.02 60 / 0.18);
  padding: clamp(24px, 4vw, 40px);
  animation: dl-rise .22s ease;
}
@keyframes dl-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dl-sheet { animation: none; } }

.dl-close {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px; border: 1px solid transparent; border-radius: 2px;
  background: transparent; color: var(--ink-3); cursor: pointer;
  font-size: 24px; line-height: 1;
  transition: color .12s, border-color .12s;
}
.dl-close:hover { color: var(--ink); border-color: var(--rule-hard); }

.dl-kicker {
  font-family: var(--data); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--oxide-rust);
  display: block; margin-bottom: 8px;
}
.dl-head h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(23px, 4vw, 31px); line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 12px; color: var(--ink);
}
.dl-lede { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.dl-lede b { color: var(--ink); }

.dl-step { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.dl-step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.dl-num {
  flex-shrink: 0;
  font-family: var(--data); font-size: 12px; font-weight: 700;
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
}
.dl-step-head h3 {
  font-family: var(--display); font-weight: 500; font-size: 20px;
  letter-spacing: -0.01em; margin: 0; color: var(--ink);
}
.dl-step-head h3 em { font-style: italic; color: var(--oxide-rust); }
.dl-note { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.dl-note b { color: var(--ink); }
.dl-note a { color: var(--oxide-rust); text-decoration: underline; text-underline-offset: 2px; }
.dl-note a:hover { color: oklch(0.48 0.18 38); }
.dl-note .mono, .dl-fine .mono { font-family: var(--data); font-size: 0.92em; color: var(--ink-2); }
.dl-fine { margin: 10px 0 0; color: var(--ink-3); font-size: 12.5px; font-family: var(--data); line-height: 1.5; }

/* ── the one copy-pastable command ─────────────────────────────────── */
.dl-code {
  position: relative;
  background: var(--bedrock); border: 1px solid var(--ink); border-radius: 2px;
}
.dl-code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; }
.dl-code code {
  font-family: var(--data); font-size: 12.5px; line-height: 1.75;
  color: oklch(0.93 0.02 82); white-space: pre;
}
.dl-copy {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-family: var(--label); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 2px; cursor: pointer;
  background: var(--gate-ochre); color: var(--bedrock);
  border: 1px solid var(--gate-ochre);
  transition: background-color .12s, color .12s;
}
.dl-copy:hover { background: oklch(0.80 0.16 78); }
.dl-copy.done { background: var(--verdigris); border-color: var(--verdigris); color: var(--bone); }

/* ── faithful recreation of Google's "hasn't verified this app" screen ─ */
.goog-shot { margin-top: 14px; }
.goog-card {
  background: #131314; border: 1px solid #3c3c3f; border-radius: 12px;
  padding: 20px 22px 18px; color: #e3e3e3;
}
.goog-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px 26px; align-items: start; }
.goog-g { width: 30px; height: 30px; display: block; margin-bottom: 12px; }
.goog-title {
  font-family: var(--sans); font-weight: 400; font-size: 21px; line-height: 1.18;
  color: #e8eaed; letter-spacing: -0.01em;
}
.goog-body { margin: 2px 0 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.5; color: #bdc1c6; }
.goog-body b { color: #8ab4f8; font-weight: 500; }
.goog-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  margin-top: 22px;
}
.goog-continue-wrap { position: relative; display: inline-flex; padding: 6px 16px; }
.goog-continue {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: #8ab4f8; white-space: nowrap;
}
.goog-circle {
  position: absolute; left: -6px; right: -6px; top: -7px; bottom: -7px;
  width: calc(100% + 12px); height: calc(100% + 14px); overflow: visible;
  pointer-events: none;
}
.goog-back {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: #202124; background: #8ab4f8; border-radius: 999px;
  padding: 9px 20px; white-space: nowrap;
}
.goog-cap {
  margin: 10px 2px 0; font-family: var(--data); font-size: 11.5px;
  letter-spacing: 0.02em; color: var(--oxide-rust);
}
.goog-cap b { color: var(--ink); }

.dl-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-family: var(--data); font-size: 12px; color: var(--ink-3);
}
.dl-foot a { color: var(--oxide-rust); }
.dl-foot a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .goog-top { grid-template-columns: 1fr; gap: 10px; }
  .dl-sheet { box-shadow: 5px 5px 0 oklch(0.2 0.02 60 / 0.18); }
}
