:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #F5F5F5;
  --surface: #292929;
  --banner-fill: #17171a;
  --band: rgba(245, 245, 245, .10);
  --hairline: rgba(245, 245, 245, .18);
  --unit: clamp(.75px, .069444vw, 1.5px);
  --slogan-width: min(92vw, 128svh);
  --taskbar-h: calc(72 * var(--unit) + 1px);
  /* Editorial scale. One side margin, one gutter, one vertical rhythm and a
     three-step type ladder â€” display, heading, body â€” that every section on
     the page shares, so the page reads as one document instead of a stack of
     separately designed blocks. */
  --pad: clamp(20px, 6vw, 150px);
  --gutter: clamp(16px, 1.5vw, 32px);
  --section-y: clamp(96px, 15svh, 220px);
  --display: min(13.2vw, 22svh);
  --heading: clamp(34px, 4.9vw, 104px);
  --body: clamp(16.5px, 1.32vw, 26px);
  --lead: clamp(19px, 1.62vw, 32px);
  --measure: 34em;
  font-family: "Times New Roman", Times, serif;
  background: var(--background);
  color: var(--foreground);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, code { font: inherit; }

/* Top taskbar: site nav on the left, download on the right. Sits at the
   very top of the page; once the page scrolls, the liquid banner takes
   over the top edge. */
.taskbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4vw;
  height: var(--taskbar-h);
  padding: 0 var(--pad);
  background: var(--band);
  border-bottom: 1px solid var(--hairline);
}
.taskbar-nav {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--unit));
}
.taskbar-left {
  display: flex;
  align-items: center;
  gap: calc(26 * var(--unit));
  min-width: 0;
}
.taskbar-brand {
  display: grid;
  place-items: center;
  flex: none;
}
.taskbar-brand img {
  display: block;
  width: calc(44 * var(--unit));
  height: calc(44 * var(--unit));
}
.taskbar a {
  text-decoration: none;
  transition: opacity 160ms ease;
}
.taskbar a:hover { opacity: .65; }
.taskbar-nav a { font-size: calc(19 * var(--unit)); }
.taskbar-download {
  padding: calc(7 * var(--unit)) calc(22 * var(--unit));
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: calc(17 * var(--unit));
}

.hero {
  position: relative;
  z-index: 3;
  height: calc(100svh - var(--taskbar-h));
  /* Spacing: a little air under the taskbar, a wide gap above the controls and a
     tighter one below them, so the title and the mark sit in the optical centre
     of what is left rather than floating. */
  padding: clamp(28px, 5.4svh, 76px) var(--pad) clamp(24px, 3.4svh, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: var(--gutter);
  row-gap: clamp(28px, 5svh, 64px);
  align-items: center;
}

.hero-title {
  margin: 0;
  font-size: var(--display);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.05em;
}
/* One line per word, and one span per letter: the letters of Real Time Manim
   rise in one after another, top line first. */
.hero-title .w { display: block; }
.hero-title .c {
  display: inline-block;
  line-height: .86;
  opacity: 0;
  transform: translateY(40px);
  animation: hero-letter-up 900ms cubic-bezier(.215, .61, .355, 1) forwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes hero-letter-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Start-time stagger: Manim + 150ms, then social links + 100ms. */
.social-links { animation: title-enter 600ms ease-out 250ms both; }
.installation { animation: controls-enter-right 600ms ease-out 350ms both; }
.social-links.entrance-complete, .installation.entrance-complete {
  animation: none;
  opacity: 1;
}

@keyframes controls-enter-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* The page's own background: a faint network of drifting points and the lines
   between them, drawn by network-background.js on a canvas fixed behind every
   section. It sits at -1, so it paints above the black page and below all
   content without needing each section to be positioned. */
.network-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The figures are drawn by hero-particles.js: this canvas covers the hero and
   the particles assemble on .hero-stage's box, which is all the layout they
   need. The canvas paints behind the hero's own content (the hero is a
   stacking context, so -1 still sits above the page behind it). */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-stage {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
}

.social-slot {
  justify-self: start;
  align-self: start;
  margin-top: calc(4 * var(--unit));
}
.installation-slot {
  justify-self: end;
  width: auto;
  max-width: 100%;
}
.social-links {
  display: flex;
  align-items: center;
  justify-self: start;
  align-self: start;
  padding: calc(6 * var(--unit)) calc(16 * var(--unit));
  border-radius: 999px;
  background: var(--surface);
}
.social-links a {
  display: grid;
  place-items: center;
  width: calc(52 * var(--unit));
  height: calc(52 * var(--unit));
  border-radius: 50%;
}
.social-links img {
  display: block;
  width: calc(24 * var(--unit));
  height: calc(24 * var(--unit));
}
.social-links .wiki-icon {
  /* Preserve the PSD export's proportions within the shared icon space. */
  width: calc(24 * var(--unit));
  height: calc(24 * var(--unit));
  object-fit: contain;
}
.social-links a, .download, #copy-command { transition: opacity 160ms ease; }
.social-links a:hover, .download:hover, #copy-command:hover { opacity: .65; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

.installation {
  position: relative;
  justify-self: end;
  width: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--unit));
  height: calc(64 * var(--unit));
  padding: calc(8 * var(--unit)) calc(10 * var(--unit)) calc(8 * var(--unit)) calc(20 * var(--unit));
  border-radius: calc(20 * var(--unit));
  background: var(--surface);
}
.install-command {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--unit));
  min-height: 0;
  padding: 0;
  font-size: calc(18 * var(--unit));
  white-space: nowrap;
}
#copy-command {
  display: grid;
  place-items: center;
  width: calc(40 * var(--unit));
  height: calc(40 * var(--unit));
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: calc(8 * var(--unit));
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.check-icon { display: none; }
#copy-command svg {
  width: calc(20 * var(--unit));
  height: calc(20 * var(--unit));
}
#copy-command[data-copied="true"] .copy-icon { display: none; }
#copy-command[data-copied="true"] .check-icon { display: block; }
.download {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  height: calc(48 * var(--unit));
  padding: 0 calc(28 * var(--unit));
  border-radius: calc(12 * var(--unit));
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  font-size: calc(21 * var(--unit));
}
.copy-status {
  position: absolute;
  right: 0;
  top: calc(-26 * var(--unit));
  font-size: calc(16 * var(--unit));
}
.slogan {
  position: relative;
  overflow-x: clip;
  margin-top: var(--slogan-overlap, 0px);
  /* JS supplies the hold and scrub distance from the actual control positions. */
  height: var(--slogan-height, 200svh);
  margin-bottom: var(--slogan-tail, 0px);
}
/* The top bar the hero controls become. It is its own element, wiped in from
   the right: --banner-wipe is the clipped left edge, 100% (hidden) â†’ 0 (full).
   Only the fill is clipped; the contents sit in their own layer and fade in as
   the wipe passes each of them, so no word is ever cut in half. It sits above
   the page and the hero so it can take over as they scroll away. */
.banner-background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(74 * var(--unit));
  z-index: 4;
  pointer-events: none;
}
.banner-background::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  background-color: var(--banner-fill);
  background-image: linear-gradient(180deg, #303036, #111113);
  border-bottom: 1px solid rgba(245, 245, 245, .24);
  box-shadow: inset 0 1px 0 rgba(245, 245, 245, .07);
  clip-path: inset(0 0 0 var(--banner-wipe, 100%));
}
.banner-background::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  --feather: min(160px, 32vw);
  left: calc(var(--banner-front, 100%) - var(--feather));
  width: calc(var(--feather) + 2px);
  box-sizing: border-box;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #303036, #111113);
  border-bottom: 1px solid rgba(245, 245, 245, .24);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: var(--banner-feather, 0);
}
.banner-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: calc(20 * var(--unit));
  pointer-events: none;
}
.banner-social {
  display: flex;
  align-items: center;
  justify-self: start;
  padding-left: calc(16 * var(--unit));
  opacity: var(--reveal, 0);
  pointer-events: none;
}
.banner-social a {
  display: grid;
  place-items: center;
  width: calc(52 * var(--unit));
  height: calc(52 * var(--unit));
  border-radius: 50%;
  transition: opacity 160ms ease;
}
.banner-social a:hover { opacity: .65; }
.banner-social img {
  display: block;
  width: calc(24 * var(--unit));
  height: calc(24 * var(--unit));
}
.banner-social .wiki-icon {
  width: calc(24 * var(--unit));
  height: calc(24 * var(--unit));
  object-fit: contain;
}
.banner-title {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--unit));
  justify-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: calc(24 * var(--unit));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
  cursor: pointer;
  opacity: var(--reveal, 0);
  pointer-events: none;
}
.banner-logo {
  display: block;
  width: calc(44 * var(--unit));
  height: calc(44 * var(--unit));
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(245, 245, 245, .12));
}
.banner-title:hover { color: rgba(245, 245, 245, .65); }
.banner-download {
  justify-self: end;
  display: grid;
  place-items: center;
  height: calc(48 * var(--unit));
  padding: 0 calc(28 * var(--unit));
  border-radius: calc(12 * var(--unit));
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
  white-space: nowrap;
  font-size: calc(21 * var(--unit));
  opacity: var(--reveal, 0);
  pointer-events: none;
}
.banner-download:hover { background: rgba(245, 245, 245, .85); }

/* The stack: the top-bar logo's particles fall into Python, C and Vulkan on
   the left; the design note sits on the right. The canvas is fixed so the
   stream can start at the bar logo and finish exactly on the icons. */
.stack-section {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--taskbar-h) + clamp(48px, 10svh, 120px)) var(--pad) var(--section-y);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--hairline);
}
.stack-particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}
.stack-section.is-animating .stack-particles { opacity: 1; }
.stack-section.is-handing-off .stack-particles { opacity: 0; }
.stack-section.is-formed .stack-particles { opacity: 0; }
.stack-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(40px, 8svh, 90px);
  align-items: center;
}
.stack-art {
  grid-column: 1 / 7;
  position: relative;
  width: 100%;
  max-width: calc(570 * var(--unit));
  aspect-ratio: 1 / 1;
}
.stack-mark {
  position: absolute;
  margin: 0;
}
.stack-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 600ms ease;
}
.stack-section.is-animating .stack-mark img { opacity: 0; }
.stack-mark-python {
  top: 0;
  left: 0;
  width: 52%;
  height: 52%;
  transform: rotate(-9deg);
  z-index: 3;
}
.stack-mark-c {
  top: 21%;
  left: 50%;
  width: 50%;
  height: 50%;
  z-index: 2;
}
.stack-mark-vulkan {
  top: 47%;
  left: 1%;
  width: 54%;
  height: 54%;
  z-index: 4;
}
.stack-copy {
  grid-column: 7 / 13;
  max-width: var(--measure);
}
.stack-eyebrow {
  margin: 0 0 1.3em;
  font-size: calc(11 * var(--unit));
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .45);
}
.stack-heading {
  margin: 0 0 .55em;
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.stack-lead {
  margin: 0 0 1.3em;
  font-size: var(--lead);
  line-height: 1.4;
}
.stack-copy p:not(.stack-eyebrow):not(.stack-lead):not(.stack-contract) {
  margin: 0 0 1.05em;
  font-size: var(--body);
  line-height: 1.55;
  color: rgba(245, 245, 245, .78);
}
.stack-contract {
  margin: 1.6em 0 0;
  padding-top: 1.1em;
  border-top: 1px solid var(--hairline);
  font-size: calc(12 * var(--unit));
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .5);
}
@media (max-width: 900px) {
  .stack-inner { grid-template-columns: minmax(0, 1fr); }
  .stack-art, .stack-copy { grid-column: 1; }
  .stack-art { max-width: 500px; margin: 0 auto; }
  .stack-copy { max-width: var(--measure); }
}
@media (max-width: 600px) {
  .stack-art { max-width: 360px; }
}
.stack-section.is-exporting .stack-particles { opacity: 0; }

/* Export: the same dots leave the stack and gather on the right as a monitor.
   The screen is the video slot; the path and stand are particle geometry, so
   the DOM only carries the screen, the video and the methods list. */
.export-section {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--taskbar-h) + clamp(64px, 8svh, 96px)) var(--pad) clamp(56px, 8svh, 96px);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--hairline);
}
.export-particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 450ms ease;
}
.export-section.is-active .export-particles { opacity: 1; }
.export-section.is-handing-off .export-particles { opacity: 0; }
.export-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(40px, 8svh, 90px);
  align-items: center;
}
.export-copy {
  grid-column: 1 / 7;
  max-width: var(--measure);
}
.export-eyebrow {
  margin: 0 0 1.3em;
  font-size: calc(11 * var(--unit));
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .45);
}
.export-heading {
  margin: 0 0 .55em;
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.export-lead {
  margin: 0 0 1.3em;
  font-size: var(--lead);
  line-height: 1.4;
}
.export-copy p:not(.export-eyebrow):not(.export-lead):not(.export-contract) {
  margin: 0 0 1.05em;
  font-size: var(--body);
  line-height: 1.55;
  color: rgba(245, 245, 245, .78);
}
.export-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  color: rgba(245, 245, 245, .92);
}
.export-contract {
  margin: 1.6em 0 0;
  padding-top: 1.1em;
  border-top: 1px solid var(--hairline);
  font-size: calc(12 * var(--unit));
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .5);
}
.export-visual {
  grid-column: 7 / 13;
  display: grid;
  align-items: center;
}
.export-monitor {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(245, 245, 245, .14);
  border-radius: calc(14 * var(--unit));
  background: linear-gradient(180deg, rgba(245, 245, 245, .035), rgba(245, 245, 245, .008));
  box-shadow: inset 0 0 46px rgba(0, 0, 0, .72);
  transition: opacity 480ms ease, transform 600ms ease;
}
/* The collapsing monitor and the list share the cell, so the section never
   changes height when the screen disappears. */
.export-section.is-collapsing .export-monitor,
.export-section.is-list .export-monitor {
  opacity: 0;
  pointer-events: none;
}
.export-screen {
  position: absolute;
  inset: 5% 3.5% 12%;
  overflow: hidden;
  border-radius: calc(6 * var(--unit));
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(245, 245, 245, .08), 0 0 42px rgba(245, 245, 245, .05);
}
.export-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 420ms ease, transform 900ms ease;
}
.export-section.video-ready .export-video,
.export-section.is-playing .export-video,
.export-section.has-played .export-video {
  opacity: 1;
  transform: none;
}
.export-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: calc(10 * var(--unit));
  text-align: center;
  border: 1px dashed rgba(245, 245, 245, .15);
  border-radius: inherit;
  background: radial-gradient(circle at 50% 46%, rgba(245, 245, 245, .055), transparent 62%);
  color: rgba(245, 245, 245, .52);
}
.export-section.video-ready .export-placeholder,
.export-section.is-playing .export-placeholder,
.export-section.has-played .export-placeholder { opacity: 0; }
.export-placeholder-mark {
  width: calc(46 * var(--unit));
  height: calc(31 * var(--unit));
  border: 1px solid rgba(245, 245, 245, .34);
  border-radius: calc(4 * var(--unit));
  box-shadow: inset 0 calc(6 * var(--unit)) 0 rgba(245, 245, 245, .10);
}
.export-placeholder-label {
  font-size: calc(10 * var(--unit));
  letter-spacing: .22em;
  text-transform: uppercase;
}
.export-placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: calc(11 * var(--unit));
  color: rgba(245, 245, 245, .74);
}
.export-list {
  grid-area: 1 / 1;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  visibility: hidden;
  opacity: 0;
}
.export-section.is-listing .export-list,
.export-section.is-list .export-list {
  visibility: visible;
  opacity: 1;
}
.export-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(16 * var(--unit));
  padding: clamp(7px, calc(9 * var(--unit)), 11px) 0;
  border-top: 1px solid rgba(245, 245, 245, .11);
  opacity: 0;
  transform: translateY(var(--rise, 12px));
}
.export-row:last-child { border-bottom: 1px solid rgba(245, 245, 245, .11); }
/* The transition lives only in the final state: setting --rise before the
   class arrives positions the row on the line without animating there first;
   adding the class then flies it out of the line with the dots. */
.export-section.is-listing .export-row,
.export-section.is-list .export-row {
  opacity: 1;
  transform: none;
  transition:
    transform 720ms cubic-bezier(.2, .7, .2, 1) var(--row-delay, 0ms),
    opacity 460ms ease calc(var(--row-delay, 0ms) + 40ms);
}
.export-row-index {
  padding-top: .15em;
  font-size: clamp(9px, calc(10 * var(--unit)), 11px);
  letter-spacing: .16em;
  color: rgba(245, 245, 245, .34);
}
.export-row-copy {
  display: grid;
  gap: .18em;
  min-width: 0;
}
.export-row-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(13px, calc(15 * var(--unit)), 17px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--foreground);
  overflow-wrap: anywhere;
}
.export-row-copy > span {
  font-size: clamp(11.5px, calc(12 * var(--unit)), 14px);
  line-height: 1.4;
  color: rgba(245, 245, 245, .55);
}
.export-row-copy > span code {
  font-size: .95em;
  color: rgba(245, 245, 245, .7);
}
@media (max-width: 900px) {
  .export-section {
    display: block;
    min-height: 0;
    padding-bottom: var(--section-y);
  }
  .export-inner { grid-template-columns: minmax(0, 1fr); row-gap: clamp(32px, 5svh, 48px); }
  .export-copy, .export-visual { grid-column: 1; }
  .export-visual { margin-top: 0; align-items: start; }
  .export-monitor { max-width: 560px; margin: 0 auto; align-self: start; }
  .export-list { max-width: 560px; margin: 0 auto; }
  .export-placeholder-label { font-size: 10px; }
  .export-placeholder code { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .export-particles { display: none; }
  .export-monitor,
  .export-video,
  .export-placeholder,
  .export-row,
  .export-inner { transition: none !important; }
}

/* Fourth page: the live wiki architecture graph. The export list's dots are
   reused as the window frame; the graph itself is the old D3 note map. */
.wiki-architecture-section {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  padding: calc(var(--taskbar-h) + clamp(20px, 3svh, 32px)) var(--pad) clamp(40px, 5svh, 56px);
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--hairline);
}
.architecture-particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 450ms ease;
}
.wiki-architecture-section.is-active .architecture-particles { opacity: 1; }
.wiki-architecture-section.is-handing-off .architecture-particles { opacity: 0; }
.wiki-architecture-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3svh, 32px);
}
.wiki-architecture-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--gutter);
  align-items: end;
}
.wiki-architecture-eyebrow {
  margin: 0 0 1.1em;
  font-size: calc(11 * var(--unit));
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .45);
}
.wiki-architecture-heading {
  margin: 0;
  font-size: var(--heading);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.03em;
}
.wiki-architecture-copy {
  max-width: 30em;
  justify-self: end;
}
.wiki-architecture-lead {
  margin: 0;
  font-size: var(--lead);
  line-height: 1.4;
}
.wiki-architecture-note {
  margin: .9em 0 0;
  font-size: calc(12 * var(--unit));
  letter-spacing: .04em;
  color: rgba(245, 245, 245, .48);
}
.wiki-architecture-section .architecture-graph {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  border-color: rgba(245, 245, 245, .09);
  background: #0c0c0c;
  transition: opacity 400ms ease;
}
.wiki-architecture-section.is-handing-off .architecture-graph {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .wiki-architecture-section {
    height: auto;
    min-height: 0;
    display: block;
    padding-bottom: var(--section-y);
  }
  .wiki-architecture-inner { height: auto; }
  .wiki-architecture-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(18px, 3svh, 28px);
  }
  .wiki-architecture-copy {
    justify-self: start;
    max-width: var(--measure);
  }
  .wiki-architecture-section .architecture-graph {
    flex: none;
    height: clamp(420px, 62svh, 560px);
    margin-top: clamp(28px, 5svh, 44px);
    border-color: rgba(245, 245, 245, .20);
  }
  .wiki-architecture-section .architecture-graph-search-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .architecture-particles { display: none; }
  .wiki-architecture-section .architecture-graph { border-color: rgba(245, 245, 245, .20); }
}

/* Fifth and last page: a full-screen mosaic of one frame from every sample
   clip. The page is three screens tall: it pins for two screens while the
   scroll scrubs the tiles in one by one, and scrolling back up scrubs them out
   in reverse. The document ends on the fully revealed wall. */
.wiki-collage-section {
  position: relative;
  height: 300svh;
  padding: 0;
  border-top: 1px solid var(--hairline);
  background: #050505;
}
.wiki-collage-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #050505;
}
.wiki-collage-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}
.wiki-collage-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc(100svh * 2.1648));
  aspect-ratio: 3416 / 1578;
  transform: translate(-50%, -50%);
  background: #050505;
}
.wiki-collage-tile {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  opacity: 0;
}
.wiki-collage-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--taskbar-h) + clamp(20px, 3svh, 36px)) var(--pad) clamp(24px, 4svh, 48px);
  pointer-events: none;
  background: none;
}
.wiki-collage-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(920px, 88vw);
  gap: clamp(14px, 2.2svh, 24px);
}
.wiki-collage-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wiki-collage-eyebrow {
  margin: 0 0 1em;
  font-size: calc(11 * var(--unit));
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .62);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .9);
}
.wiki-collage-heading {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 82px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.03em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 2px 28px rgba(0, 0, 0, .85);
}
.wiki-collage-morph {
  display: inline-grid;
  place-items: center;
}
.wiki-collage-morph-word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  filter: blur(0);
  opacity: 1;
  will-change: filter, opacity;
}
.wiki-collage-morph-word + .wiki-collage-morph-word {
  filter: blur(100px);
  opacity: 0;
}
.wiki-collage-copy {
  max-width: 38em;
}
.wiki-collage-lead {
  margin: 0;
  font-size: var(--lead);
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 2px 18px rgba(0, 0, 0, .85);
}
.wiki-collage-caption {
  margin: .9em 0 0;
  font-size: clamp(9px, calc(11 * var(--unit)), 12px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, .62);
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
.wiki-collage-fullsize {
  color: rgba(245, 245, 245, .82);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 245, 245, .38);
  pointer-events: auto;
  transition: color 160ms ease, border-color 160ms ease;
}
.wiki-collage-fullsize:hover {
  color: #ffffff;
  border-color: rgba(245, 245, 245, .9);
}
.wiki-collage-fullsize:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .wiki-collage-overlay {
    padding-top: calc(var(--taskbar-h) + 22px);
  }
  .wiki-collage-head {
    max-width: min(100%, 88vw);
    gap: clamp(14px, 2.4svh, 22px);
  }
  .wiki-collage-copy {
    max-width: var(--measure);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiki-collage-tile {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


.slogan-pin {
  position: sticky;
  top: var(--slogan-top, 0px);
  width: var(--slogan-width);
  margin-left: calc((100% - var(--slogan-width)) / 2);
  height: var(--slogan-stage-height, 100svh);
  overflow: clip;
}
.slogan-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 625 / 134;
  object-fit: contain;
  /* The clip's background is pure black; screen blending drops black entirely,
     so only the baked text shows and the page's own black shows through it.
     (True alpha WebM was attempted but both local ffmpeg builds silently drop
     the VP9 alpha plane; screen blend gives the same result in every browser
     including Safari.) */
  mix-blend-mode: screen;
}
.real-life-details {
  margin-top: -4svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(28px, 4.4svh, 64px);
  align-items: start;
  padding: var(--section-y) var(--pad);
  font-size: var(--body);
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}
.real-life-heading {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-align: left;
}
.real-life-details p { margin: 0; max-width: var(--measure); }
.real-life-image {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: clamp(320px, 50svh, 700px);
  object-fit: cover;
  object-position: center;
}
/* The two paragraphs sit side by side under the picture, each at a readable
   measure â€” two columns of a spread, not one line stretched across the page. */
.real-life-copy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 120px);
  row-gap: 1.4em;
}
.real-life-copy p:first-child { font-size: var(--lead); line-height: 1.45; }
.real-life-details.reveal-pending > .real-life-heading,
.real-life-details.reveal-pending > .real-life-image,
.real-life-details.reveal-pending > .real-life-copy {
  opacity: 0;
  transform: translateY(24px);
}
.real-life-details.reveal-visible > .real-life-heading,
.real-life-details.reveal-visible > .real-life-image,
.real-life-details.reveal-visible > .real-life-copy {
  animation: details-enter 650ms ease-out both;
}
/* Next-generation sections: staggered fade-in + shift-up for their parts. */
.next-generation-section.reveal-pending .ng-fade-item {
  opacity: 0;
  transform: translateY(24px);
}
.next-generation-section.reveal-visible .ng-fade-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease-out, transform 650ms ease-out;
  transition-delay: var(--ng-delay, 0ms);
}
.real-life-details.reveal-visible .real-life-image {
  animation-delay: 500ms;
}
@keyframes details-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.next-generation {
  margin: 0;
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-align: left;
}
.next-generation-section {
  padding: 0 var(--pad);
  text-align: left;
  font-size: var(--body);
  line-height: 1.55;
}
/* Each text + diagram group owns one full viewport. The heading takes the left
   half and the copy the right, then the card runs the full width of the page â€”
   the diagram is the argument, so it gets the whole stage. */
.next-generation-screen {
  min-height: 100svh;
  padding: clamp(48px, 7svh, 110px) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(24px, 3.4svh, 52px);
  align-content: center;
}
.next-generation-screen h2.next-generation { grid-column: 1 / 7; }
.next-generation-screen p { grid-column: 7 / 13; margin: 0; max-width: var(--measure); }
/* The card's caption overhangs 26px below the card; give a trailing
   paragraph room so the caption never collides with it. */
.next-generation-screen p:last-child { margin-top: 1svh; }
.next-generation-screen .diagram-card {
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(340px, 52svh, 620px);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.next-generation-screen .diagram-viewport {
  flex: 1 1 auto;
  min-height: 0;
}
.starts-from-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(28px, 4.4svh, 64px);
  align-items: start;
  padding: var(--section-y) var(--pad);
  font-size: var(--body);
  line-height: 1.55;
}
/* The heading takes the whole width: one sentence per line, the second one
   landing like a verdict. */
.starts-from-section .starts-from {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-align: left;
}
.starts-from span { display: block; }
.starts-from-section .starts-from-copy { display: contents; }
.starts-from-section .starts-from-copy p {
  grid-column: 1 / 6;
  margin: 0;
  max-width: var(--measure);
}
.starts-from-section .starts-from-demo {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: clamp(320px, 50svh, 700px);
  object-fit: cover;
  object-position: center;
}
.starts-from-section .starts-from-copy .starts-from-left {
  grid-column: 7 / 13;
  text-align: left;
}
.starts-from-section .test-number {
  grid-column: 1 / 7;
  margin: 0;
  text-align: left;
  font-size: clamp(52px, min(11vw, 20svh), 220px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
}
.architecture-section {
  padding: var(--section-y) var(--pad);
  text-align: left;
}
.architecture-heading {
  margin: 0 0 .6em;
  font-size: var(--heading);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.architecture-graph {
  position: relative;
  min-height: min(80svh, 900px);
  border: 1px solid rgba(245, 245, 245, .22);
  border-radius: 12px;
  background: #101010;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.architecture-graph.is-wheel-active {
  border-color: rgba(245, 245, 245, .44);
  box-shadow: 0 0 0 1px rgba(245, 245, 245, .06), 0 0 30px rgba(245, 245, 245, .055);
}
.architecture-graph-toolbar {
  position: absolute;
  /* Above the local-graph panel (4) and the label overlay (5): the top
     chrome â€” search, refresh, recenter, fullscreen â€” stays on top when the
     panel is dragged up into it (user-directed). */
  z-index: 7;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.architecture-graph-search-label {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
  pointer-events: auto;
}
.architecture-graph-search {
  display: block;
  width: 100%;
  min-height: 16px;
  padding: 0 2px 1px;
  border: 0;
  border-bottom: 1px solid rgba(245, 245, 245, .2);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1;
  caret-color: var(--foreground);
}
.architecture-graph-search::placeholder { color: rgba(245, 245, 245, .52); }
.architecture-graph-search:focus-visible { border-bottom-color: var(--foreground); }
.architecture-graph-search-hint {
  position: absolute;
  right: 0;
  bottom: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(245, 245, 245, .52);
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.architecture-graph-search:not(:placeholder-shown) ~ .architecture-graph-search-hint { opacity: 0; }
/* Bing-style search options dropdown below the search field. */
.architecture-graph-search-list {
  position: absolute;
  z-index: 6;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  margin: 0;
  padding: 5px;
  max-height: 40vh;
  overflow: auto;
  list-style: none;
  border: 1px solid rgba(245, 245, 245, .22);
  border-radius: 8px;
  background: #171717;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  pointer-events: auto;
}
.architecture-graph-search-option {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.architecture-graph-search-option:hover { background: #242424; }
.architecture-graph-search-option-title {
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.25;
}
.architecture-graph-search-option:hover .architecture-graph-search-option-title { color: #ffffff; }
.architecture-graph-search-option-path {
  overflow: hidden;
  color: rgba(245, 245, 245, .5);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.architecture-graph-toolbar button:focus-visible,
.architecture-graph-node:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}
.architecture-graph-status {
  margin-left: auto;
  padding: 7px 10px;
  color: rgba(245, 245, 245, .6);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}
.architecture-graph-status[data-state="error"] { color: #ff9d9d; }
.architecture-graph-toolbar button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(245, 245, 245, .2);
  border-radius: 8px;
  background: #101010;
  color: var(--foreground);
  cursor: pointer;
  pointer-events: auto;
}
.architecture-graph-toolbar button:hover { background: #1c1c1c; }
.architecture-graph-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
/* Black gradient strip at the top of the graph, matching the local graph's
   head strip: fades the canvas into dark behind the toolbar, click-through. */
.architecture-graph-viewport::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(rgba(23, 23, 23, .92), rgba(23, 23, 23, .55) 65%, transparent);
}
.architecture-graph-viewport:active { cursor: grabbing; }
.architecture-graph-viewport svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  cursor: grab;
}
/* Architecture graph brightness ranking (front = brightest): hovered node
   #fff > neighbor node > incident edge > neighbor-neighbor edge > resting
   node > resting edge > unlinked node > half-unlinked edge > unlinked edge >
   background. Overlapping SVG strokes naturally brighten their shared pixels. */
.architecture-graph-edge {
  stroke: rgba(245, 245, 245, .28);
  transition: stroke 140ms ease, opacity 140ms ease;
}
.architecture-graph-edge.is-incident { stroke: rgba(245, 245, 245, .66); }
.architecture-graph-edge.is-neighbor-edge { stroke: rgba(245, 245, 245, .57); }
.architecture-graph-edge.is-half-unlinked { stroke: rgba(245, 245, 245, .2); }
.architecture-graph-edge.is-unlinked { stroke: rgba(245, 245, 245, .12); }
.architecture-graph-node {
  cursor: pointer;
  outline: none;
  transition: opacity 140ms ease;
}
.architecture-graph-dot {
  fill: #858585;
  stroke: none;
  stroke-width: 0;
  transition: fill 140ms ease, opacity 140ms ease;
}
.architecture-graph-node.is-neighbor .architecture-graph-dot {
  fill: #cfcfcf;
  stroke: none;
}
.architecture-graph-node:hover .architecture-graph-dot,
.architecture-graph-node.is-active .architecture-graph-dot {
  fill: #ffffff;
  stroke: none;
  stroke-width: 0;
}
.architecture-graph-node.is-unlinked { opacity: .41; }
.architecture-graph-node.is-dimmed { opacity: .3; }
.architecture-graph-label {
  fill: rgba(245, 245, 245, .62);
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  cursor: pointer;
  user-select: none;
  transition: opacity 120ms ease;
}
/* Labels are annotations, not hit targets: the hover window opens only over a
   node's dot (see architecture-graph.js). */
.architecture-graph-label,
.local-graph-label {
  pointer-events: none;
}
.architecture-graph.labels-hidden .architecture-graph-label { opacity: 0; }
.architecture-graph-node:hover .architecture-graph-label,
.architecture-graph-node.is-hovered .architecture-graph-label,
.architecture-graph-node.is-active .architecture-graph-label,
.architecture-graph-node.is-neighbor .architecture-graph-label { fill: #ffffff; }
/* Second, purely visual copy of the global labels, stacked BELOW the
   local-graph panel â€” the panel now sits ABOVE the global graph's
   annotations (user-directed 2026-10-18 reversal of the old labels-on-top
   stacking). Mirrors the main svg (same viewBox and transforms);
   pointer-events: none so all input falls through to the panel (inert)
   or the main svg. */
.architecture-graph-label-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.architecture-graph-tooltip {
  position: absolute;
  z-index: 5;
  max-width: min(280px, 68vw);
  padding: 8px 10px;
  border: 1px solid rgba(245, 245, 245, .22);
  border-radius: 7px;
  background: #171717;
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.3;
  pointer-events: none;
}
/* The local-graph panel is drawn in the shared tooltip element, so a dot's
   preview card is a second tooltip stacked above the panel. */
.architecture-graph-tooltip.architecture-graph-hover-card { z-index: 6; }
.architecture-graph-tooltip strong,
.architecture-graph-tooltip span { display: block; }
.architecture-graph-tooltip span { margin-top: 3px; color: rgba(245, 245, 245, .6); font-size: 12px; }
.architecture-graph-tooltip .architecture-graph-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}
.architecture-graph-tooltip .architecture-graph-hint kbd,
.architecture-graph-search-hint kbd {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid rgba(245, 245, 245, .34);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(245, 245, 245, .06);
  color: rgba(245, 245, 245, .82);
  font: 600 10px/1.2 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
/* Local graph mode: the hover card expands into a square panel anchored in
   the right-bottom corner direction of the hovered node. The square resizes
   by dragging a corner grip â€” bottom-right grows from the fixed anchor,
   top-left moves the corner and the main graph pans with it so the panel
   stays at the node's right-bottom. The drawn graph fills the square
   edge-to-edge (the view fits the content bbox), and the title/meta float
   as a translucent strip over the top. */
.architecture-graph-tooltip.is-local-graph {
  display: block;
  box-sizing: border-box;
  max-width: none;
  padding: 0;
  overflow: hidden;
  pointer-events: auto;
  cursor: default;
}
.architecture-graph-tooltip.opening {
  transition: left 260ms cubic-bezier(.3, .85, .35, 1),
    top 260ms cubic-bezier(.3, .85, .35, 1),
    width 260ms cubic-bezier(.3, .85, .35, 1),
    height 260ms cubic-bezier(.3, .85, .35, 1);
}
/* While the panel collapses back into the hover card the box carries the
   hover-card styles (so its content already IS the hovering state) but must
   not be clamped by the card's max-width while it is still panel-sized. */
.architecture-graph-tooltip.collapsing {
  pointer-events: none;
  max-width: none;
}
/* The panel content fades out over the first 140ms of the collapse so the
   swap to the hover card never flashes. The world group (not the svg) is
   faded: the svg carries the reveal animation whose fill-mode would fight a
   class-driven opacity change on the svg itself. */
.architecture-graph-tooltip.collapsing .architecture-graph-local-head,
.architecture-graph-tooltip.collapsing .architecture-graph-resize,
.architecture-graph-tooltip.collapsing .architecture-graph-local-recenter {
  opacity: 0;
  transition: opacity 140ms ease;
}
.architecture-graph-tooltip.collapsing .architecture-graph-local-world {
  opacity: 0;
  transition: opacity 140ms ease;
}
/* The hover card fades in once the content swap happens mid-shrink. */
.architecture-graph-tooltip.collapsing > strong,
.architecture-graph-tooltip.collapsing > .architecture-graph-hint {
  animation: local-graph-card-in 110ms ease both;
}
@keyframes local-graph-card-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.architecture-graph-tooltip.is-local-graph.is-resizing {
  transition: none;
  user-select: none;
}
.architecture-graph-tooltip.is-local-graph strong { font-size: 15px; }
.architecture-graph-local-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  animation: local-graph-reveal 300ms ease both;
}
@keyframes local-graph-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.local-graph-edge {
  stroke: rgba(245, 245, 245, .22);
  stroke-width: 2.5;
}
.local-graph-dot { fill: #9a9a9a; }
.local-graph-dot.is-center { fill: #ffffff; }
.local-graph-label {
  fill: rgba(245, 245, 245, .6);
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  user-select: none;
  transition: opacity 120ms ease;
}
.local-graph-label.is-center { fill: #ffffff; }
/* Labels hide below the graph's absolute drawn-scale threshold. */
.architecture-graph-tooltip.labels-hidden .local-graph-label { opacity: 0; }
.local-graph-node { cursor: pointer; }
.local-graph-node:active { cursor: grabbing; }
.local-graph-node:hover .local-graph-dot { fill: #ffffff; }
.architecture-graph-local-head strong { font-size: 15px; }
.architecture-graph-tooltip.is-local-graph .architecture-graph-local-head {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 36px 16px 14px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(rgba(23, 23, 23, .92), rgba(23, 23, 23, .55) 65%, transparent);
  pointer-events: none;
}
.architecture-graph-local-recenter {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(245, 245, 245, .2);
  border-radius: 7px;
  background: #101010;
  color: rgba(245, 245, 245, .8);
  cursor: pointer;
}
.architecture-graph-local-recenter:hover { background: #1c1c1c; color: #ffffff; }
.architecture-graph-local-meta {
  display: block;
  margin-top: 3px;
  color: rgba(245, 245, 245, .6);
  font-size: 12px;
}
.architecture-graph-resize {
  position: absolute;
  z-index: 2;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 245, .55);
  cursor: nwse-resize;
  touch-action: none;
}
.architecture-graph-resize-top-left {
  right: auto;
  bottom: auto;
  left: 3px;
  top: 3px;
}
.architecture-graph-resize:hover { color: #ffffff; }
body.architecture-graph-open { overflow: hidden; }
.architecture-graph.is-fullscreen {
  position: fixed;
  z-index: 60;
  inset: 0;
  min-height: 0;
  border-radius: 0;
}
.future-section {
  position: sticky;
  top: 0;
  z-index: 1;
  background: transparent;
  opacity: 1;
  transform: none;
  min-height: 100svh;
  padding: 8svh 0 6svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6svh;
  text-align: left;
}
/* Keep the visible content beneath the touch explanation during its pin.
   The section's measured box and later sticky/fade geometry stay unchanged. */
.future-section > * {
  position: relative;
  top: var(--future-handoff-offset, 0px);
}
.future-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(24px, 6vw, 120px);
  padding: 0 var(--pad);
  text-align: left;
  font-size: clamp(17px, min(1.9vw, 3.4svh), 38px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.future-features ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  grid-auto-rows: max-content;
  align-content: space-evenly;
  gap: clamp(18px, 3svh, 32px);
}
.future-features.reveal-pending li {
  opacity: 0;
}
.future-features.reveal-visible li {
  animation: feature-enter 650ms ease-out both;
  animation-delay: var(--feature-delay, 0ms);
}
@keyframes feature-enter {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
.future-features.features-returning li {
  animation: feature-return 650ms ease-out both;
  animation-delay: var(--feature-delay, 0ms);
}
@keyframes feature-return {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
.future-section h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 120px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  transform: none;
}
.future-scroll {
  height: var(--future-scroll-height, auto);
}
.future-pin {
  position: sticky;
  top: var(--future-pin-top, 0px);
}
.future-finale {
  position: absolute;
  top: var(--future-center, 50%);
  left: 6%;
  width: 88%;
  margin: 0;
  text-align: center;
  font-size: clamp(36px, min(9vw, 15svh), 180px);
  font-weight: 700;
  line-height: 1.1;
  visibility: var(--finale-visibility, hidden);
  transform: translateY(calc(-50% + var(--finale-offset, 1px)));
}
.manteraction-future-container {
  position: relative;
  background: rgba(245, 245, 245, calc(.1 * var(--future-surface-opacity, 1)));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.manteraction-scroll {
  height: var(--manteraction-scroll-height, auto);
}
.manteraction-pin {
  position: sticky;
  top: var(--manteraction-pin-top, 0px);
}
.manteraction-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
  padding: var(--section-y) var(--pad) 4svh;
  text-align: left;
  overflow-wrap: anywhere;
  opacity: var(--manteraction-opacity, 1);
}
.manteraction-image {
  grid-column: 1;
  grid-row: 2;
  display: block;
  width: 100%;
  height: auto;
  align-self: start;
}
.manteraction-copy { display: contents; }
.manteraction-stage h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 .5em;
  font-size: clamp(28px, 3.5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.manteraction-stage p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: var(--measure);
  font-size: var(--body);
  line-height: 1.55;
}
.manteraction-stage a {
  text-underline-offset: .15em;
  transition: opacity 160ms ease;
}
.manteraction-stage a:hover { opacity: .65; }
.manteraction-finale-block {
  position: absolute;
  top: var(--manteraction-center, 50%);
  left: 6%;
  width: 88%;
  margin: 0;
  text-align: center;
  /* The future section becomes a stacking context while it fades (transform +
     opacity); keep this block above it so its text is never covered. */
  z-index: 1;
  visibility: var(--manteraction-visibility, hidden);
  transform: translateY(var(--manteraction-stack-y, 100vh));
}
.manteraction-finale {
  margin: 0;
  font-size: clamp(36px, min(9vw, 15svh), 180px);
  font-weight: 400;
  line-height: 1.1;
}
.manteraction-finale strong { font-weight: 700; }
.manteraction-details {
  margin: 1.2em 0 0;
  font-size: var(--lead);
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Section boundaries: alternating light/dark shade bands with hairlines.
   The shade is translucent so a band reads as a lifted surface over the black
   page rather than a separate sheet of colour. */
.band {
  background: var(--band);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.architecture-section.band {
  background: var(--background);
}

@media (max-width: 600px) {
  /* The bar at phone width: the three icons on the left and Download on the
     right; the brand has no room between them, so it steps out. */
  .banner-inner { grid-template-columns: 1fr auto 1fr; column-gap: calc(10 * var(--unit)); }
  .banner-title { display: flex; gap: 0; }
  .banner-title span { display: none; }
  .banner-logo { width: calc(40 * var(--unit)); height: calc(40 * var(--unit)); }
  .banner-social { padding-left: calc(4 * var(--unit)); }
  .banner-social a { width: calc(44 * var(--unit)); height: calc(44 * var(--unit)); }
  .banner-social img, .banner-social .wiki-icon { width: calc(22 * var(--unit)); height: calc(22 * var(--unit)); }
  .banner-download { height: calc(38 * var(--unit)); padding: 0 calc(18 * var(--unit)); font-size: calc(18 * var(--unit)); }
  /* One column: the mark gets its own band under the wordmark instead of a
     narrow half, and the hero grows past the viewport if it must. */
  .hero {
    height: auto;
    min-height: calc(100svh - var(--taskbar-h));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    align-items: end;
    row-gap: clamp(14px, 2.4svh, 28px);
  }
  .hero-title { font-size: min(21vw, 22svh); }
  .hero-stage {
    grid-column: 1;
    width: 100%;
    height: clamp(180px, 34svh, 340px);
  }
  .social-slot { grid-column: 1; justify-self: start; }
  .installation-slot { grid-column: 1; justify-self: stretch; width: 100%; }
  /* One row of command + copy + download is wider than a phone: fold it back
     into two. */
  .installation {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    row-gap: calc(8 * var(--unit));
  }
  .install-command { flex: 1 1 100%; justify-content: space-between; }
  .download { flex: 1 1 100%; height: calc(44 * var(--unit)); padding: 0; }
  .taskbar { gap: 3vw; }
  .taskbar-left { gap: calc(14 * var(--unit)); }
  .taskbar-brand img { width: calc(40 * var(--unit)); height: calc(40 * var(--unit)); }
  .taskbar-nav { gap: calc(14 * var(--unit)); }
  .taskbar-nav a { font-size: calc(16 * var(--unit)); }
  /* The 12-track spreads fold to a single column: heading, copy, picture, one
     after another at full measure. */
  .real-life-details > *,
  .starts-from-section > *,
  .starts-from-section .starts-from-copy p,
  .starts-from-section .starts-from-copy .starts-from-left,
  .next-generation-screen > *,
  .next-generation-screen h2.next-generation,
  .next-generation-screen p { grid-column: 1 / -1; }
  .real-life-copy { grid-template-columns: minmax(0, 1fr); }
  .next-generation-screen p,
  .starts-from-section .starts-from-copy p { max-width: none; }
  .real-life-image,
  .starts-from-section .starts-from-demo { height: clamp(220px, 34svh, 420px); }
  /* The touch preview reads as a stack too: picture, heading, explanation. */
  .manteraction-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 3svh, 32px);
  }
  .manteraction-image, .manteraction-stage h2, .manteraction-stage p {
    grid-column: 1;
    grid-row: auto;
  }
  .architecture-graph-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 34px);
    grid-template-areas: "search refresh recenter fullscreen" "status status status status";
    align-items: center;
    row-gap: 4px;
  }
  .architecture-graph-search-label { grid-area: search; max-width: none; min-width: 0; }
  .architecture-graph-status { grid-area: status; justify-self: end; margin-left: 0; padding: 2px 0; font-size: 12px; }
  .architecture-graph-toolbar .architecture-graph-refresh { grid-area: refresh; }
  .architecture-graph-toolbar .architecture-graph-recenter { grid-area: recenter; }
  .architecture-graph-toolbar .architecture-graph-fullscreen { grid-area: fullscreen; }
}

@media (prefers-reduced-motion: reduce) {
  .future-features { transform: none; }
  .future-features.reveal-pending li { opacity: 1; transform: none; }
  .future-features.reveal-visible li { animation: none; }
  .future-features.features-returning li { animation: none; }
  .manteraction-stage a { transition: none; }
  .real-life-details.reveal-pending > *, .next-generation.reveal-pending {
    opacity: 1;
    transform: none;
  }
  .real-life-details.reveal-visible > *, .next-generation.reveal-visible { animation: none; }
  .next-generation-section.reveal-pending .ng-fade-item { opacity: 1; transform: none; }
  .next-generation-section.reveal-visible .ng-fade-item { transition: none; }
  .hero-title .c, .social-links, .installation { animation: none; opacity: 1; transform: none; }
  .social-links a, .download, #copy-command, .taskbar a { transition: none; }
  .diagram-recenter-btn { transition: none; }
}

/* Interactive diagram cards (next-generation section) */
.diagram-card {
  position: relative;
  margin: 1.5em 0 30px;
  border: 1px solid rgba(245, 245, 245, .22);
  border-radius: 12px;
  background: #101010;
  padding: 0;
}
.diagram-title {
  position: absolute;
  right: 4px;
  bottom: -26px;
  font-size: 13px;
  color: rgba(245, 245, 245, .55);
  text-align: right;
}
.diagram-viewport {
  overflow: hidden;
  border-radius: 11px;
  background: #0d0d0d;
  padding: 0;
  touch-action: none;
  cursor: grab;
}
.diagram-viewport.dragging { cursor: grabbing; }
.diagram-viewport .mermaid { line-height: 0; }
.diagram-viewport svg {
  display: block;
  max-width: none;
  cursor: grab;
}
.diagram-viewport.dragging svg { cursor: grabbing; }
.diagram-fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(245, 245, 245, .2);
  border-radius: 8px;
  background: #101010;
  color: var(--foreground);
  cursor: pointer;
}
.diagram-fullscreen-btn:hover { background: #1c1c1c; }
.diagram-recenter-btn {
  position: absolute;
  top: 12px;
  right: 54px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(245, 245, 245, .2);
  border-radius: 8px;
  background: #101010;
  color: var(--foreground);
  cursor: pointer;
  transition: opacity 160ms ease;
}
.diagram-recenter-btn:hover { background: #1c1c1c; }
/* Hidden while the view already sits at the centered fit state. */
.diagram-recenter-btn.is-centered { opacity: 0; pointer-events: none; }
/* Fullscreen = the card itself fixed at the viewport edges, exactly like
   the architecture graph's fullscreen: inset 0, no gap to the screen edge,
   and the same fullscreen icon button toggles back. */
.diagram-card.is-fullscreen {
  position: fixed;
  z-index: 60;
  inset: 0;
  margin: 0;
  width: auto;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}
/* The reveal transition leaves transform: translateY(0) on the card,
   which would turn it into the containing block for the fixed ::after
   backdrop. Neutralize it while fullscreen. */
.next-generation-section.reveal-visible .diagram-card.is-fullscreen {
  transform: none;
}
.diagram-card.is-fullscreen .diagram-viewport {
  flex: 1 1 auto;
  min-height: 0;
}
.diagram-card.is-fullscreen .diagram-title {
  position: static;
  margin: 0 0 10px;
  text-align: left;
}
body.diagram-fullscreen-open { overflow: hidden; }
.diagram-tooltip {
  position: fixed;
  z-index: 20;
  max-width: min(320px, 80vw);
  padding: 10px 14px;
  border: 1px solid rgba(245, 245, 245, .2);
  border-radius: 8px;
  background: #1a1a1a;
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.5;
  pointer-events: none;
}
