/* Landing page. Same visual language as the explorer: the dotted canvas, IBM Plex for text and labels,
   Space Grotesk for titles, the accent blue and the teal / orange tones. The hero is always dark;
   the bands below follow the operating system's light or dark setting. */
:root {
  --ink: #0b1320; --ink-2: #101b2b; --ink-3: #16212d; --ink-line: #24344a;
  --sky: #8fb8de; --sky-soft: #1b3045; --teal: #4fc3d9; --orange: #f39a62;
  --on-ink: #e5ebf1; --on-ink-muted: #94a6ba;

  --bg: #f5f3ee; --surface: #ffffff; --text: #142231; --muted: #5a6878; --line: #d9dee6;
  --accent: #1d4f7a; --accent-soft: #e2edf7; --code-bg: #edf1f5;

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1280px;
  /* fixed chrome heights: the hero fills exactly the first screen below them */
  --mq-h: 34px; --nav-h: 58px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e151d; --surface: #16212d; --text: #e5ebf1; --muted: #9aa8b7; --line: #2a3847;
    --accent: #8fb8de; --accent-soft: #1b3045; --code-bg: #1b2734; color-scheme: dark; }
}

* { box-sizing: border-box; }
/* `hidden` wins over the display of .btn, .hints and the like (the tour button, the explorer's key hints) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--f-body); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: var(--f-mono); font-size: .86em; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; font-weight: 700; max-width: 18ch; }
h3 { font-size: 20px; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kicker { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 60ch; margin: 18px 0 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--f-body); text-decoration: none; padding: 12px 20px;
  border-radius: 10px; background: var(--sky); color: var(--ink); border: 1.5px solid var(--sky); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #a8c9e8; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-small { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.band .btn:not(.btn-ghost) { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.band .btn:not(.btn-ghost):hover { filter: brightness(1.12); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- marquee: one line about the project, right to left ---------- */
/* a quiet dark ticker that belongs to the nav: muted text, the project and the link lit, teal square separators,
   edges faded into the strip's own colour (not masked, which would fade to the page background) */
.marquee { --mq-bg: #070d16; position: relative; height: var(--mq-h); overflow: hidden; background: var(--mq-bg);
  border-bottom: 1px solid var(--ink-line); color: var(--on-ink-muted); font: 400 13px/var(--mq-h) var(--f-body); letter-spacing: .01em; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--mq-bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--mq-bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-msg { margin: 0; white-space: nowrap; display: flex; align-items: center; }
.marquee-msg span { white-space: nowrap; }
.marquee-msg span::after { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; margin: 0 26px; border: 1.5px solid var(--teal); border-radius: 1.5px; opacity: .8; }
.marquee b { font-weight: 600; color: var(--on-ink); }
.marquee a { color: var(--teal); font-weight: 500; text-decoration: none; margin: 0 .3em; border-bottom: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); line-height: 1.2; }
.marquee a:hover, .marquee a:focus-visible { color: var(--on-ink); border-bottom-color: var(--on-ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; }
  .marquee-msg[aria-hidden="true"] { display: none; }
  .marquee-msg { padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); overflow: hidden; }
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: var(--nav-h); padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line); color: var(--on-ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 16px var(--f-display); }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav nav a { text-decoration: none; color: var(--on-ink-muted); }
.nav nav a:hover { color: var(--on-ink); }
@media (max-width: 760px) { .nav nav a:not(.gh) { display: none; } .brand span { font-size: 14px; } .nav { gap: 14px; } }
@media (max-width: 420px) { .nav nav { display: none; } .brand { margin-right: auto; white-space: nowrap; } }

/* ---------- hero ---------- */
/* The hero fills the first screen below the marquee and the nav; the example window takes what the text leaves,
   keeping 16:9, so it is never cut off at the bottom on load. Short screens get tighter spacing via vh units. */
.hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: calc(100vh - var(--mq-h) - var(--nav-h)); min-height: calc(100svh - var(--mq-h) - var(--nav-h));
  padding: clamp(24px, 5vh, 72px) 24px clamp(20px, 4vh, 56px); }
.hero-text { flex: none; }
.hero-area { flex: 1 1 0; min-height: 300px; margin-top: clamp(18px, 3.6vh, 52px); container-type: size;
  display: flex; justify-content: center; align-items: flex-start; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1.3px 1.3px, rgba(143, 184, 222, .16) 1.3px, transparent 0); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 1100px; height: 700px; transform: translate(-50%, -20%);
  background: radial-gradient(closest-side, rgba(79, 195, 217, .16), transparent 70%); pointer-events: none; }
.hero-text { max-width: 880px; margin: 0 auto; text-align: center; }
.hero .kicker { color: var(--teal); }
.hero h1 { font-size: clamp(40px, min(8.4vw, 9vh), 96px); line-height: .98; font-weight: 700; letter-spacing: -0.035em; }
/* Landscape screens: the height is the limit, so text goes left and the example window right,
   both centred in the first screen. Portrait screens and phones keep the stacked layout. */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .hero { flex-direction: row; align-items: center; gap: clamp(32px, 4vw, 64px);
    padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); padding-right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
  .hero-text { width: clamp(420px, 40%, 600px); margin: 0; text-align: left; container-type: inline-size; }
  /* "Read any codebase" is about 9.2em wide: size the headline to the column so it stays on two lines */
  .hero h1 { font-size: min(10.6cqi, 9vh, 72px); }
  .hero .lead { margin-left: 0; font-size: clamp(16px, min(1.35vw, 2.4vh), 19px); }
  .hero .cta { justify-content: flex-start; }
  .hero .get { margin-left: 0; }
  .hero-area { align-self: stretch; min-width: 0; min-height: 0; margin-top: 0; align-items: center; }
}
.mark { position: relative; color: var(--sky); white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .14em; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--sky)); opacity: .55; z-index: -1; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--on-ink-muted); max-width: 62ch; margin: clamp(14px, 2.6vh, 26px) auto 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(18px, 3.2vh, 32px); }

/* the install picker under the hero's buttons: a tab per way to install, the commands, a copy button */
.get { max-width: 640px; margin: clamp(18px, 3vh, 30px) auto 0; text-align: left; border: 1px solid var(--ink-line); border-radius: 12px;
  background: color-mix(in srgb, var(--ink-2) 88%, transparent); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.get-tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: var(--ink-3); border-bottom: 1px solid var(--ink-line); overflow-x: auto; scrollbar-width: none; }
.get-tabs::-webkit-scrollbar { display: none; }
.get-tabs button { flex: none; font: 500 12.5px/1 var(--f-mono); color: var(--on-ink-muted); background: none; border: 0; border-radius: 8px 8px 0 0; padding: 9px 10px 10px;
  cursor: pointer; position: relative; white-space: nowrap; }
.get-tabs button:hover { color: var(--on-ink); }
.get-tabs button[aria-selected="true"] { color: var(--on-ink); background: var(--ink-2); }
.get-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--sky)); }
.get-tabs button:focus-visible, .get-panel:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.get-panel { padding: 12px 14px 12px; }
.get-code { display: flex; align-items: flex-start; gap: 10px; min-height: 4.9em; }
.get-code pre { flex: 1; min-width: 0; margin: 0; font: 13px/1.7 var(--f-mono); color: var(--on-ink); white-space: pre; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: var(--ink-line) transparent; }
.get-code pre.get-msg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.6; }
.get-code .p { color: var(--teal); margin-right: 8px; user-select: none; }
.get-code .copy { flex: none; margin-top: 1px; }
.get-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--on-ink-muted); }
.get-note code { color: var(--on-ink); background: var(--ink-3); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.get-note a { color: var(--sky); }

/* app windows */
.window { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--ink-line); background: var(--ink-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(143, 184, 222, .05) inset; }
.window-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--ink-3); border-bottom: 1px solid var(--ink-line); color: var(--on-ink); flex-wrap: wrap; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2c3c52; }
.dots i:first-child { background: var(--orange); opacity: .8; } .dots i:nth-child(2) { background: #e3c06a; opacity: .7; } .dots i:last-child { background: var(--teal); opacity: .7; }
.window-title { font: 12.5px var(--f-mono); color: var(--on-ink-muted); }
/* width from the space left: 100cqh is the hero-area height, 56px the window bar */
.hero-window { margin: 0; width: min(1120px, 100cqw, (100cqh - 56px) * 16 / 9); container-type: inline-size; }
/* keep the window bar on one line when the window is narrow */
@container (max-width: 900px) { .hero-window .window-title { display: none; } }
@container (max-width: 640px) { .hero-window .seg button small { display: none; } }
@container (max-width: 420px) { .hero-window .seg button { padding: 6px 8px; } }
section[id] { scroll-margin-top: var(--nav-h); }
.hero-window .window-bar .seg { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--ink-line); border-radius: 9px; overflow: hidden; background: var(--ink-2); }
.seg button { font: 500 12.5px var(--f-mono); color: var(--on-ink-muted); background: none; border: 0; border-right: 1px solid var(--ink-line); padding: 6px 11px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button small { font-size: 11px; opacity: .8; }
.seg button:hover { color: var(--on-ink); }
.seg button[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.pause { font: 12px var(--f-mono); width: 30px; height: 28px; border-radius: 8px; border: 1px solid var(--ink-line); background: var(--ink-2); color: var(--on-ink-muted); cursor: pointer; }
.pause:hover { color: var(--on-ink); }
@media (max-width: 760px) { .seg button small, .window-title { display: none; } }
.zoom-stage { position: relative; aspect-ratio: 16 / 9; background: #0e151d;
  background-image: radial-gradient(circle at 1.2px 1.2px, rgba(143, 184, 222, .1) 1.2px, transparent 0); background-size: 24px 24px; }
#zoom { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zoom-cap { position: absolute; left: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; max-width: calc(100% - 32px);
  padding: 10px 14px; border-radius: 10px; background: rgba(11, 19, 32, .82); border: 1px solid var(--ink-line); backdrop-filter: blur(6px); }
.zoom-cap b { font: 700 15px var(--f-display); color: var(--on-ink); }
.zoom-cap span { font-size: 13.5px; color: var(--on-ink-muted); }
@media (max-width: 560px) { .zoom-cap span { display: none; } }

/* SVG scene (world units; the camera scales them) */
#zoom text { font-family: var(--f-body); }
.z-tag { font: 500 13px var(--f-mono); letter-spacing: .14em; fill: #8fa3b8; }
.z-name { font: 600 24px var(--f-body); fill: var(--on-ink); }
.z-open-name { font: 700 30px var(--f-display); fill: var(--on-ink); }
.z-sub { font: 14px var(--f-mono); fill: #8fa3b8; }
.z-closed { stroke-width: 2; }
.z-open { fill: rgba(143, 184, 222, .045); stroke: var(--sky); stroke-width: 2; stroke-dasharray: 12 9; }
.person .z-closed { fill: var(--sky); stroke: var(--sky); }
.person text { fill: var(--ink) !important; }
.system .z-closed { fill: var(--sky-soft); stroke: var(--sky); stroke-width: 3; }
.container .z-closed { fill: #121d2b; stroke: var(--sky); }
.container.hl .z-closed { stroke: var(--teal); stroke-width: 3; }
.container.hl .z-open { stroke: var(--teal); }
.store .z-closed { fill: #172433; stroke: #8995a3; }
.component .z-closed { fill: #121d2b; stroke: #3d536d; }
.z-edge { fill: none; stroke: #7f93a8; stroke-width: 2.2; }
.z-edge.dash { stroke-dasharray: 9 7; }
.z-edge.accent { stroke: var(--sky); }
.z-lab rect { fill: #0e151d; stroke: var(--ink-line); }
.z-lab text { font: 13px var(--f-mono); fill: #a9b8c8; }
.z-mk { fill: #7f93a8; } .z-mk-accent { fill: var(--sky); } .z-mk-teal { fill: var(--teal); }
.s-card rect { fill: #121d2b; stroke: var(--sky); stroke-width: 1.6; }
.s-card.out rect { fill: #172433; stroke: #8995a3; stroke-dasharray: 7 6; }
.s-card text { font: 600 16px var(--f-body); fill: var(--on-ink); }
.s-card .s-tag { font: 500 11px var(--f-mono); letter-spacing: .12em; fill: #8fa3b8; }
.s-life { stroke: #3d536d; stroke-width: 1.6; stroke-dasharray: 3 7; }
.s-msg { stroke: var(--teal); stroke-width: 2.4; fill: none; }
.s-msg.reply { stroke-dasharray: 8 6; stroke: var(--sky); }
.s-num { fill: var(--teal); } .s-num-t { font: 600 12px var(--f-mono); fill: var(--ink); }
.s-lbl { font: 15px var(--f-mono); fill: var(--on-ink); }
.s-lbl-bg { fill: #0e151d; }
.s-chip rect { fill: rgba(79, 195, 217, .14); stroke: var(--teal); }
.s-chip text { font: 600 14px var(--f-mono); fill: var(--teal); letter-spacing: .04em; }

/* ---------- bands ---------- */
.band { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.split-head { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.split-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* pipeline */
.pipeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.pipeline li { position: relative; padding: 26px 24px 8px 0; border-top: 2px solid var(--line); }
.pipeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; top: -7px; right: 10px; width: 0; height: 0;
  border-left: 9px solid var(--line); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pipeline .num { font: 500 13px var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.pipeline h3 { font-size: 24px; margin: 6px 0 10px; }
.pipeline p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.files code { overflow-wrap: anywhere; background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--text); font-size: 12.5px; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: minmax(0, 1fr); } .pipeline li::after { display: none; } }

/* live */
.band-live { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--accent-soft) 55%, var(--bg))); }
.live-window .window-bar { gap: 12px; }
.tabs { display: inline-flex; gap: 4px; }
.tabs button { font: 600 13.5px var(--f-body); color: var(--on-ink-muted); background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.tabs button:hover { color: var(--on-ink); }
.tabs button[aria-selected="true"] { color: var(--on-ink); background: var(--ink-2); border-color: var(--ink-line); }
.spacer { flex: 1; }
.live-window .btn-ghost { color: var(--on-ink); border-color: var(--ink-line); }
.btn-tour { background: var(--teal) !important; border-color: var(--teal) !important; color: var(--ink) !important; }
.live-stage { position: relative; height: min(76vh, 760px); min-height: 460px; background: var(--ink-2); }
.live-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #f4f6f9; }
.tour-cap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 40px);
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font: 500 14.5px var(--f-body);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); border: 1px solid var(--ink-line); pointer-events: none; }
.tour-cap b { color: var(--teal); font-family: var(--f-mono); font-weight: 500; margin-right: 8px; }
.hints { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
kbd { font: 12px var(--f-mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); color: var(--text); }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }
.glyph { width: 120px; height: 72px; margin-bottom: 18px; overflow: visible; }
.glyph rect, .glyph circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.glyph circle { fill: var(--accent); }
.glyph .g-soft { fill: var(--accent-soft); }
.glyph .g-dash { fill: none; stroke-dasharray: 5 4; stroke: var(--muted); }
.glyph .g-life { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 2 4; fill: none; }
.glyph .g-msg { stroke: var(--accent); stroke-width: 2; fill: none; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* deck */
.deck-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px; border: 2px solid var(--accent); border-radius: 3px; }
.fan { position: relative; display: block; aspect-ratio: 16 / 11; }
.fan img { position: absolute; width: 78%; left: 11%; top: 8%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(20, 34, 49, .45);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1); background: var(--surface); }
.fan img:nth-child(1) { transform: rotate(-9deg) translate(-12%, 6%); }
.fan img:nth-child(2) { transform: rotate(-3deg) translate(-4%, 2%); }
.fan img:nth-child(3) { transform: rotate(4deg) translate(6%, 4%); }
.fan img:nth-child(4) { transform: rotate(0deg) translate(0, -2%); }
.fan:hover img:nth-child(1), .fan:focus-visible img:nth-child(1) { transform: rotate(-14deg) translate(-26%, 12%); }
.fan:hover img:nth-child(2), .fan:focus-visible img:nth-child(2) { transform: rotate(-6deg) translate(-12%, 4%); }
.fan:hover img:nth-child(3), .fan:focus-visible img:nth-child(3) { transform: rotate(8deg) translate(16%, 8%); }
.fan:hover img:nth-child(4), .fan:focus-visible img:nth-child(4) { transform: rotate(-1deg) translate(0, -6%) scale(1.03); }
@media (max-width: 900px) { .deck-grid { grid-template-columns: minmax(0, 1fr); } .fan { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .fan img { transition: none; } }

/* data: a screenshot of the Data view beside the text, laid out like the history band */
.band-data { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--accent-soft) 40%, var(--bg))); }
.data-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.data-shot { margin: 0; min-width: 0; }
.data-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 24px 50px -20px rgba(20, 34, 49, .45); }
.data-shot figcaption { margin-top: 10px; font: 12.5px var(--f-mono); color: var(--muted); }
@media (max-width: 900px) { .data-grid { grid-template-columns: minmax(0, 1fr); } .data-shot { order: 2; } }

/* history: a screenshot of compare mode beside the text, the other way round from the deck */
.band-stories { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--accent-soft) 40%, var(--bg))); }
.stories-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.stories-shot { margin: 0; min-width: 0; }
.stories-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 30px 60px -34px rgba(11, 19, 32, .45); }
.stories-shot figcaption { margin-top: 10px; font: 12.5px var(--f-mono); color: var(--muted); }
.stories-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .stories-grid { grid-template-columns: minmax(0, 1fr); } }
.band-history { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 45%, var(--bg)), var(--bg)); }
.history-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.history-shot { margin: 0; min-width: 0; }
.history-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 24px 50px -20px rgba(20, 34, 49, .45); }
.history-shot figcaption { margin-top: 10px; font: 12.5px var(--f-mono); color: var(--muted); }
@media (max-width: 900px) { .history-grid { grid-template-columns: minmax(0, 1fr); } .history-shot { order: 2; } }

/* ChatGPT and Claude (MCP): text first, then the view drawn in a chat, the other way round from the history band */
.band-mcp { border-top: 1px solid var(--line); }
.mcp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.mcp-shot { margin: 0; min-width: 0; }
.mcp-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 24px 50px -20px rgba(20, 34, 49, .45); }
.mcp-shot figcaption { margin-top: 10px; font: 12.5px var(--f-mono); color: var(--muted); }
.mcp-hosts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.mcp-hosts li { font: 12.5px var(--f-mono); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) { .mcp-grid { grid-template-columns: minmax(0, 1fr); } }

/* numbers counted on the example (dark band) */
.band-ink { background: var(--ink); color: var(--on-ink); border-top: 0; position: relative; overflow: hidden; }
.band-ink::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1.3px 1.3px, rgba(143, 184, 222, .1) 1.3px, transparent 0); background-size: 28px 28px; pointer-events: none; }
.numbers { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.band-ink .kicker { color: var(--teal); }
.band-ink .sub { color: var(--on-ink-muted); }
.numbers-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; }
.numbers-links a { color: var(--sky); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--sky) 40%, transparent); }
.numbers-links a:hover { border-bottom-color: var(--sky); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.stats li { display: grid; align-content: start; gap: 4px; padding-top: 16px; border-top: 2px solid var(--teal); }
.stats b { font: 700 clamp(38px, 4vw, 52px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--on-ink); }
.stats .stat-k { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-top: 6px; }
.stats span:last-child { color: var(--on-ink-muted); font-size: 14.5px; line-height: 1.5; }
.stats code { color: var(--on-ink); font-size: .9em; }
@media (max-width: 900px) { .numbers { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; } }

/* install */
.install { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.term { background: var(--ink); color: var(--on-ink); border-radius: 14px; border: 1px solid var(--ink-line); padding: 8px 0 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.term-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 0; }
.term .c { font: 12px var(--f-mono); color: var(--on-ink-muted); letter-spacing: .06em; }
.copy { font: 12px var(--f-mono); color: var(--on-ink-muted); background: none; border: 1px solid var(--ink-line); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.copy:hover { color: var(--on-ink); border-color: var(--sky); }
.term pre { margin: 6px 0 4px; padding: 0 18px; font: 14px/1.75 var(--f-mono); white-space: pre; overflow-x: auto; }
.term .p { color: var(--teal); margin-right: 6px; }
.term pre.msg { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.65; color: var(--on-ink); }
.term .arg { color: var(--on-ink-muted); }
@media (max-width: 900px) { .install { grid-template-columns: minmax(0, 1fr); } }

/* footer */
/* background: the C4 model and its author */
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.origin .sub a { color: var(--accent); text-underline-offset: 3px; }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.refs a { display: grid; gap: 4px; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; transition: border-color .2s, transform .2s; }
.refs a:hover, .refs a:focus-visible { border-color: var(--accent); transform: translateX(3px); }
.refs .ref-kind { font: 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.refs b { font: 700 17px var(--f-display); }
.refs b::after { content: " ↗"; color: var(--muted); font-weight: 400; }
.refs span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .origin { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .refs a { transition: none; } .refs a:hover { transform: none; } }

.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { text-decoration: none; } .foot nav a:hover { color: var(--text); }
.foot .brand { color: var(--text); }
.small { font-size: 13px; margin-left: auto; }
