@font-face {
  font-family: Gelasio;
  src: url("../fonts/Gelasio.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Gelasio;
  src: url("../fonts/Gelasio-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Tokens: warm paper, near-black ink, one quiet blue.                  */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --paper: #fffcf0;
  --inset: #f2f0e5;
  --raised: #e6e4d9;
  --ink: #100f0f;
  --muted: #575653;
  --rule: #dad8ce;
  --blue: #205ea6;
  --button: #205ea6;
  --button-ink: #fffcf0;
  --serif: Georgia, Gelasio, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(24px, 4vw, 64px);
  --content: 1200px;
  --wide: 1344px;
  --header: 72px;
  --shadow: 0 8px 24px #100f0f06, 0 28px 72px #100f0f09;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #100f0f;
  --inset: #1c1b1a;
  --raised: #282726;
  --ink: #e6e4d9;
  --muted: #b7b5ac;
  --rule: #403e3c;
  --blue: #83b5d4;
  --button: #66a0c8;
  --button-ink: #100f0f;
  --shadow: 0 12px 42px #0005;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --paper: #100f0f;
    --inset: #1c1b1a;
    --raised: #282726;
    --ink: #e6e4d9;
    --muted: #b7b5ac;
    --rule: #403e3c;
    --blue: #83b5d4;
    --button: #66a0c8;
    --button-ink: #100f0f;
    --shadow: 0 12px 42px #0005;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  scroll-padding-top: calc(var(--header) + 28px);
  font-size: 16px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body,
button,
input,
select {
  font-synthesis: none;
}
body.quarto-light,
body.quarto-dark {
  background: var(--paper);
  color: var(--ink);
}
#quarto-content,
#quarto-document-content,
main.content {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#title-block-header,
.quarto-title-block,
#quarto-margin-sidebar,
#quarto-sidebar {
  display: none !important;
}
.page-columns {
  display: block !important;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
figure,
p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
  font-family: var(--serif);
  color: inherit;
  text-wrap: balance;
}
h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.075;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
em {
  font-weight: 400;
}
p {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
::selection {
  background: #4385be35;
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.external-icon {
  width: 14px;
  height: 14px;
}
kbd {
  font: 11px var(--mono);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 5px;
  line-height: 1.5;
}
.content-width {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--content);
  margin-inline: auto;
}
.wide-width {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--wide);
  margin-inline: auto;
}
.section-space {
  padding-block: clamp(72px, 8vw, 120px);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 20px;
  transform: translateY(-150%);
  font-family: var(--sans);
  font-size: 14px;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Shared header: a compact, quiet frame; the work below is the focus. */
/* ------------------------------------------------------------------ */
.site-header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--wide);
  margin: auto;
}
.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  flex-shrink: 0;
}
.wordmark img {
  width: 36px;
  height: 36px;
}
.main-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
}
.main-navigation > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 13px/1.4 var(--sans);
  font-weight: 500;
  min-height: 44px;
  color: var(--muted);
}
.main-navigation > a:hover,
.main-navigation > a[aria-current="page"] {
  color: var(--ink);
}
.main-navigation > a[aria-current="page"] {
  color: var(--blue);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 13px/1.4 var(--sans);
}
.search-open {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  font: 12px var(--sans);
  min-height: 36px;
}
.search-open:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.theme-select {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  color: var(--muted);
}
.theme-select::after {
  content: "";
  position: absolute;
  right: 3px;
  top: calc(50% - 4px);
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.theme-select > .icon {
  width: 17px;
  height: 17px;
}
.theme-select select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  padding: 12px 16px 12px 2px;
  max-width: 82px;
  font: 12px var(--sans);
  cursor: pointer;
}
.header-start {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 550;
  transition: filter 0.15s;
}
.header-start .icon {
  width: 16px;
  height: 16px;
}
.header-start:hover {
  filter: brightness(1.1);
}
.menu-toggle {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Controls                                                           */
/* ------------------------------------------------------------------ */
.button {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 14px/1.5 var(--sans);
  font-weight: 550;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.button .icon {
  width: 19px;
  height: 19px;
}
.button-primary {
  background: var(--button);
  color: var(--button-ink);
  border-color: var(--button);
}
.button-primary:hover {
  filter: brightness(1.1);
}
.button-secondary {
  border-color: var(--rule);
  background: transparent;
  color: var(--ink);
}
.button-secondary:hover {
  border-color: var(--muted);
  background: var(--inset);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 14px/1.5 var(--sans);
  color: var(--blue);
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link > .icon {
  width: 19px;
  height: 19px;
}
.text-link > span[aria-hidden] {
  font-size: 18px;
  line-height: 1;
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.section-heading > p:not(.eyebrow) {
  font-size: 1.12rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.visual-credit {
  font: 11px/1.7 var(--sans);
  color: var(--muted);
  max-width: 820px;
  margin: 20px auto 0;
  text-align: center;
}
.visual-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  padding-top: 40px;
}
.hero-copy {
  text-align: center;
}
.hero-mark {
  display: block;
  width: clamp(76px, 8.4vw, 112px);
  height: auto;
  margin: 0 auto 26px;
  overflow: visible;
}
.hero-mark circle {
  transform-box: fill-box;
  transform-origin: center;
}
.hero .eyebrow {
  margin-bottom: 20px;
  color: var(--blue);
}
.hero h1 {
  max-width: 14em;
  margin-inline: auto;
}
.hero h1 em {
  color: var(--blue);
}
.hero-description {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.hero-platforms {
  margin-top: 22px;
  font: 12px/1.6 var(--sans);
  color: var(--muted);
  text-wrap: balance;
}
.hero-figure {
  margin-top: 48px;
}
.figure-overline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 14px;
  font: 11px/1.5 var(--sans);
  color: var(--muted);
}
.figure-overline > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66800b;
  flex-shrink: 0;
}
.hero-image {
  box-shadow: var(--shadow);
  aspect-ratio: 1500 / 950;
}
.hero-image img {
  height: 100%;
  object-fit: contain;
}
.media-enlarge {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--inset);
}
.media-enlarge img {
  width: 100%;
  height: auto;
}
.zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 11px/1.4 var(--sans);
  padding: 9px 12px;
  border-radius: 4px;
  border: 1px solid #dad8ce80;
  background: #fffcf0ed;
  color: #100f0f;
  box-shadow: 0 2px 10px #100f0f10;
  opacity: 0;
  transition: opacity 0.15s;
}
.zoom-hint > .icon {
  width: 17px;
  height: 17px;
}
.media-enlarge:hover .zoom-hint,
.media-enlarge:focus-visible .zoom-hint {
  opacity: 1;
}
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 3px 0;
  font: 12px/1.5 var(--sans);
  color: var(--muted);
}
.hero-figure figcaption > [data-workspace-caption] {
  max-width: none;
}
.workspace-guide {
  white-space: nowrap;
  font-size: 12px;
}
.workspace-choices:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: var(--paper);
}
.workspace-choices button {
  position: relative;
  display: grid;
  grid-template-columns: 20px auto;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  padding: 16px 8px;
  min-height: 76px;
  border: 0;
  border-right: 1px solid var(--rule);
  color: var(--muted);
  background: transparent;
  font: 14px/1.3 var(--sans);
  transition:
    background 0.2s,
    color 0.2s;
}
.workspace-choices button:last-child {
  border-right: 0;
}
.workspace-choices button span {
  grid-column: 2;
  font-size: 10px;
  text-align: left;
  font-weight: 400;
}
.workspace-choices button::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  inset-inline: 0;
  background: var(--workspace-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.workspace-choices button:hover,
.workspace-choices button[aria-pressed="true"] {
  background: var(--inset);
  color: var(--ink);
}
.workspace-choices button[aria-pressed="true"]::after {
  transform: scaleX(1);
}
.workspace-choices button:focus-visible {
  outline-offset: -5px;
}
.has-workspace-choices .hero-image {
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

/* The film: a poster that becomes the native video player on request (film.js). */
.hero-film {
  margin-top: 48px;
}
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #100f0f;
  box-shadow: var(--shadow);
}
.film-launch {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #100f0f;
  cursor: pointer;
}
/* The frame clips overflow, so the focus ring is drawn inside the button. */
.film-launch:focus-visible {
  outline-offset: -4px;
}
.film-launch > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}
.film-launch:hover > img {
  filter: brightness(0.94);
}
.film-launch-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 22px 12px 13px;
  border: 1px solid #dad8ce;
  border-radius: 999px;
  background: #fffcf0;
  color: #100f0f;
  box-shadow: 0 10px 36px #100f0f40;
  white-space: nowrap;
  text-align: left;
  font: 15px/1.35 var(--sans);
  font-weight: 550;
}
.film-launch-prompt small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: #575653;
}
.film-launch-prompt .play-disc {
  width: 44px;
  height: 44px;
}
.film-launch-prompt .play-disc svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}
.film-launch:hover .play-disc {
  background: #174f8f;
}
.film-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #100f0f;
}
.film-video:focus-visible {
  outline-offset: -4px;
}
html:not(.js) .film-launch {
  display: none;
}
.hero-film figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 3px 0;
  font: 12px/1.5 var(--sans);
  color: var(--muted);
}
.hero-film figcaption .text-link {
  white-space: nowrap;
  font-size: 12px;
}
.workspace-figure {
  margin-top: clamp(64px, 7vw, 96px);
}

/* ------------------------------------------------------------------ */
/* How it fits together                                                */
/* ------------------------------------------------------------------ */
.flow {
  max-width: 1000px;
  margin: 0 auto;
}
.flow svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--sans);
}
/* The wide diagram reads left to right; narrower screens get the same
   diagram stacked in two columns instead of a sideways-scrolling strip. */
.flow-tall {
  display: none !important;
}
@media (max-width: 999px) {
  .flow {
    max-width: 440px;
  }
  .flow-wide {
    display: none !important;
  }
  .flow-tall {
    display: block !important;
  }
}
.flow-edges path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.flow-edges .flow-return {
  stroke-dasharray: 4 5;
}
.flow marker path {
  fill: var(--muted);
}
.flow-labels text {
  font-size: 13px;
  fill: var(--muted);
  text-anchor: middle;
}
.flow-labels text[text-anchor="start"] {
  text-anchor: start;
}
.flow-labels text[text-anchor="end"] {
  text-anchor: end;
}
.desktop-break {
  display: inline;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 561px) {
  .nav-install {
    display: none !important;
  }
}
.flow-box {
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--inset);
  color: var(--muted);
  font: 13.5px/1.3 var(--sans);
  overflow: hidden;
}
.flow-tall .flow-box {
  padding: 12px 13px;
  font-size: 14px;
}
.flow-tall .flow-formats > span {
  padding: 1px 5px;
  font-size: 12.5px;
}
.flow-box.is-code {
  border-style: dashed;
}
.flow-box-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 22px/1.15 var(--serif);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.flow-box-title i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.flow-box-note {
  display: block;
}
.flow-box code {
  display: block;
  font: 12px/1.4 var(--mono);
  color: var(--ink);
  background: none;
  padding: 0;
}
.flow-box.is-export {
  background: var(--paper);
}
.flow-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
.flow-formats > span {
  padding: 1px 7px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: 12.5px/1.5 var(--sans);
  color: var(--ink);
  white-space: nowrap;
}
.flow-points {
  list-style: none;
  padding: 0;
  margin: 44px auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  font: 15px/1.65 var(--sans);
  color: var(--muted);
}
.flow-points li {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.flow-points strong {
  display: block;
  font: 20px/1.3 var(--serif);
  color: var(--ink);
  margin-bottom: 8px;
}

/* ------------------------------------------------------------------ */
/* Semantic plots                                                      */
/* ------------------------------------------------------------------ */
.structure-section .part-explorer {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--sans);
}
.structure-section .section-heading {
  max-width: 820px;
}
.structure-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ------------------------------------------------------------------ */
/* Made in Flux                                                        */
/* ------------------------------------------------------------------ */
.showcase-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.showcase-plates figure {
  margin: 0;
  min-width: 0;
}
.showcase-plates figure:nth-child(2) {
  padding-top: 64px;
}
.showcase-plates img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 35px #100f0f0b;
}
.showcase-plates a[data-enlarge] {
  display: block;
  cursor: zoom-in;
}
.showcase-plates figcaption {
  padding: 19px 0;
  font-size: 1.04rem;
  line-height: 1.5;
}
.showcase-plates figcaption > span {
  display: block;
  font: 11px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 7px;
}
.showcase-plates figcaption > a {
  display: block;
  font: 14px/1.5 var(--sans);
  margin-top: 9px;
  color: var(--blue);
}

/* ------------------------------------------------------------------ */
/* Slides: the native Flux player, loaded on request.                  */
/* ------------------------------------------------------------------ */
.scene-tabs:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 1000px;
  margin: 0 auto 12px;
}
.scene-tabs button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 16px;
  min-height: 60px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font: 14px/1.3 var(--sans);
  color: var(--ink);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.scene-tabs button small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scene-tabs button:hover {
  border-color: var(--muted);
}
.scene-tabs button[aria-pressed="true"] {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, var(--paper));
  color: var(--blue);
}
.slide-demo {
  background: #fffcf0;
  aspect-ratio: 16/9;
  padding-bottom: 60px;
  box-sizing: content-box;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  max-width: 1000px;
  margin: auto;
  box-shadow: 0 12px 35px #100f0f0b;
}
/* Before it loads, the player is previewed as its own layout: the whole slide, then
   a control strip that holds the play prompt, so nothing on the slide is covered. */
.slide-demo:has(> .demo-launch) {
  aspect-ratio: auto;
  padding-bottom: 0;
}
.demo-launch {
  position: relative;
  border: 0;
  background: #ffffff;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
/* The player frame clips overflow, so the focus ring is drawn inside the button. */
.demo-launch:focus-visible {
  outline-offset: -4px;
}
.demo-launch > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.demo-launch-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: #f2f0e5;
  border-top: 1px solid #dad8ce;
  padding: 12px 16px;
  color: #100f0f;
  white-space: nowrap;
  text-align: left;
  font: 14px/1.4 var(--sans);
  font-weight: 550;
}
.demo-launch-prompt small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 3px;
  color: #575653;
}
.play-disc {
  width: 36px;
  height: 36px;
  background: #205ea6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fffcf0;
  flex-shrink: 0;
}
.play-disc svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.demo-launch:hover .play-disc {
  background: #174f8f;
}
.slide-demo iframe {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
  background: #fffcf0;
}
.demo-loading-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 14px var(--sans);
  color: #575653;
  background: #fffcf0;
}
.demo-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  max-width: 1000px;
  margin: 12px auto 0;
}
.demo-caption p {
  font: 13px/1.7 var(--sans);
  color: var(--muted);
}
.demo-caption .text-link {
  white-space: nowrap;
  font-size: 13px;
  min-height: 32px;
}

/* ------------------------------------------------------------------ */
/* Closing                                                             */
/* ------------------------------------------------------------------ */
.closing-section {
  text-align: center;
  border-top: 1px solid var(--rule);
}
.closing-mark {
  margin: 0 auto 28px;
  width: 72px;
  height: 72px;
}
.closing-section h2 {
  font-size: clamp(54px, 6.3vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.closing-section h2 em {
  color: var(--blue);
}
.closing-lead {
  margin: 22px auto 0;
  font-size: 18px;
  max-width: 560px;
  text-wrap: balance;
}
.install-command {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: left;
}
.install-command .code-example {
  margin: 0;
}
.install-command .code-example pre {
  margin: 0;
  padding: 20px 96px 20px 22px;
  background: var(--inset);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font: 14px/1.6 var(--mono);
  overflow: auto;
  color: var(--ink);
}
.install-command pre code {
  font: inherit;
  background: none;
  padding: 0;
}
.install-command .copy-code {
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
  font-size: 12px;
  padding: 6px 12px;
}
.closing-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.availability {
  font: 12px/1.6 var(--sans);
  color: var(--muted);
  text-wrap: balance;
  margin-top: 20px;
}

/* ------------------------------------------------------------------ */
/* Shared footer                                                       */
/* ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--inset);
  font-family: var(--sans);
}
.footer-inner {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--wide);
  margin: auto;
  padding: 48px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px 60px;
}
.footer-brand .wordmark {
  font-size: 28px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-columns h2 {
  font: 12px/1.4 var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.footer-columns a {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  padding: 5px 0;
  color: var(--muted);
}
.footer-columns a:hover {
  color: var(--blue);
}
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  text-wrap: balance;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 12px/1.6 var(--sans);
  color: var(--muted);
}
.footer-bottom > a:hover {
  color: var(--blue);
}

/* ------------------------------------------------------------------ */
/* Full-size images: an enhancement; every image is also a normal link.*/
/* ------------------------------------------------------------------ */
.media-dialog {
  border: 1px solid var(--rule);
  border-radius: 9px;
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 40px);
  width: 1450px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 30px 100px #0006;
}
.media-dialog::backdrop {
  background: #100f0fdb;
}
.media-dialog-inner {
  position: relative;
  padding: 56px 14px 16px;
}
.dialog-close {
  position: absolute;
  top: 8px;
  right: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  font: 12px var(--sans);
}
.media-dialog img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
  border-radius: 3px;
}
/* Landscape views fit the window whole, caption included; tall plates keep their
   full width and scroll, so their detail stays legible. */
.media-dialog:not(.is-tall) img {
  width: auto;
  max-height: calc(100dvh - 172px);
}
.media-dialog p {
  padding: 14px 7px 0;
  font: 12px/1.6 var(--sans);
}
html.dialog-open {
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Error page                                                          */
/* ------------------------------------------------------------------ */
.error-page {
  min-height: calc(100svh - var(--header) - 320px);
  display: grid;
  place-content: center;
  max-width: 42rem;
  margin: auto;
  padding: 4rem var(--gutter);
  text-align: center;
}
.error-page h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.1;
}
.error-page p:not(.eyebrow) {
  line-height: 1.7;
  margin-top: 1.4rem;
  text-wrap: pretty;
}
.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (min-width: 1600px) {
  .hero {
    padding-top: 72px;
  }
  .hero-figure,
  .hero-film {
    margin-top: 72px;
  }
  .workspace-figure {
    margin-top: 104px;
  }
}
@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }
  .header-inner {
    gap: 22px;
  }
  .main-navigation {
    gap: 20px;
  }
  .header-actions {
    gap: 12px;
  }
  .main-navigation > a {
    font-size: 12px;
  }
  .flow-points {
    gap: 22px;
  }
}
@media (max-width: 800px) {
  :root {
    --gutter: 24px;
    --header: 66px;
  }
  h1 {
    font-size: clamp(44px, 8vw, 66px);
  }
  .header-inner {
    gap: 16px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 28px;
  }
  .wordmark img {
    width: 34px;
    height: 34px;
  }
  .header-actions {
    margin-left: auto;
    gap: 10px;
  }
  .header-start {
    font-size: 12px;
    padding: 7px 12px;
    min-height: 36px;
  }
  .header-start .icon {
    width: 15px;
    height: 15px;
  }
  .js .menu-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    order: 2;
    border: 0;
    background: none;
    padding: 8px 0 8px 8px;
    font: 12px var(--sans);
    min-height: 44px;
  }
  .menu-toggle > .icon {
    width: 21px;
    height: 21px;
  }
  .main-navigation {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 5px 0 12px;
  }
  .main-navigation > a {
    padding: 9px 0;
    min-height: 44px;
    font-size: 15px;
  }
  .js .main-navigation {
    display: none;
  }
  .js .main-navigation.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(var(--header) - 1px);
    left: 0;
    right: 0;
    padding: 16px var(--gutter) 24px;
    box-shadow: 0 16px 25px #100f0f08;
  }
  .site-header:has(.main-navigation.is-open) {
    border-color: transparent;
  }
  html:not(.js) .site-header {
    height: auto;
    min-height: var(--header);
    position: relative;
  }
  html:not(.js) .header-inner {
    padding-top: 15px;
  }
  html:not(.js) .main-navigation {
    justify-content: space-between;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-description {
    font-size: 18px;
    max-width: 560px;
  }
  .hero-figure,
  .hero-film {
    margin-top: 40px;
  }
  .workspace-figure {
    margin-top: 64px;
  }
  .hero-actions {
    gap: 22px;
  }
  .hero-figure figcaption {
    font-size: 12px;
  }
  .workspace-choices button {
    column-gap: 6px;
    padding: 13px 4px;
    min-height: 60px;
    font-size: 12px;
  }
  .workspace-choices button span {
    display: none;
  }
  .section-heading {
    text-align: left;
    margin-left: 0;
  }
  .flow-points {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }
  .showcase-plates {
    gap: 18px;
  }
  .showcase-plates figure:nth-child(2) {
    padding-top: 32px;
  }
  .scene-tabs:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .scene-tabs button {
    min-height: 48px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
  }
  .footer-columns {
    gap: 16px;
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --header: 62px;
  }
  .section-space {
    padding-block: 56px;
  }
  .header-inner {
    gap: 8px;
  }
  .wordmark {
    font-size: 27px;
    gap: 7px;
  }
  .wordmark img {
    width: 32px;
    height: 32px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-start {
    display: none;
  }
  .search-open {
    font-size: 11px;
    padding: 6px 8px;
  }
  .search-open kbd {
    display: none;
  }
  .theme-select > .icon {
    width: 15px;
    height: 15px;
  }
  .theme-select select {
    font-size: 11px;
    max-width: 72px;
  }
  .js .menu-toggle {
    margin-left: 8px;
    font-size: 11px;
    gap: 5px;
  }
  .hero {
    padding-top: 26px;
  }
  .hero-mark {
    margin-bottom: 20px;
  }
  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: clamp(36px, 9.4vw, 52px);
    letter-spacing: -0.045em;
    line-height: 1.08;
  }
  .hero-description {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 20px;
    max-width: 360px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
  }
  .hero-platforms {
    font-size: 11px;
    margin-top: 16px;
  }
  .desktop-break {
    display: none;
  }
  .button {
    min-height: 48px;
    font-size: 13px;
    gap: 16px;
    padding: 12px 18px;
  }
  .hero .text-link {
    font-size: 13px;
    min-height: 40px;
  }
  .hero-figure,
  .hero-film {
    margin-top: 28px;
  }
  .workspace-figure {
    margin-top: 48px;
  }
  .film-frame {
    border-radius: 6px;
  }
  .film-launch-prompt {
    gap: 10px;
    padding: 8px 15px 8px 9px;
    font-size: 13px;
  }
  .film-launch-prompt small {
    font-size: 10px;
  }
  .film-launch-prompt .play-disc {
    width: 34px;
    height: 34px;
  }
  .film-launch-prompt .play-disc svg {
    width: 18px;
    height: 18px;
  }
  .hero-film figcaption {
    flex-direction: column;
    gap: 6px;
    padding-top: 11px;
  }
  .figure-overline {
    padding-bottom: 10px;
    font-size: 10px;
    gap: 10px;
  }
  .figure-overline > span:last-child {
    display: none;
  }
  .media-enlarge {
    border-radius: 6px;
  }
  .workspace-choices:not([hidden]) {
    border-radius: 6px 6px 0 0;
  }
  .has-workspace-choices .hero-image {
    border-radius: 0 0 6px 6px;
  }
  .workspace-choices button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 65px;
    font-size: 11px;
  }
  .workspace-choices button .icon {
    width: 18px;
    height: 18px;
  }
  .hero-figure figcaption {
    font-size: 12px;
    gap: 14px;
    padding-top: 11px;
  }
  .workspace-guide {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .section-heading h2 {
    font-size: 2.1rem;
  }
  .section-heading > p:not(.eyebrow) {
    font-size: 1rem;
  }
  .flow-points strong {
    font-size: 18px;
  }
  .flow-points {
    font-size: 14px;
  }
  .showcase-plates {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase-plates figure:nth-child(2) {
    padding-top: 0;
  }
  .showcase-plates img {
    max-height: 650px;
    object-fit: contain;
  }
  .showcase-plates figcaption {
    font-size: 0.95rem;
  }
  .visual-credit {
    text-align: left;
  }
  .slide-demo {
    border-radius: 6px;
  }
  .demo-launch-prompt {
    padding: 10px 12px;
    gap: 10px;
    font-size: 13px;
  }
  .demo-launch-prompt small {
    font-size: 11px;
    margin-top: 2px;
  }
  .play-disc {
    width: 29px;
    height: 29px;
  }
  .play-disc svg {
    width: 16px;
    height: 16px;
  }
  .demo-caption {
    display: block;
  }
  .structure-links {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .closing-section h2 {
    font-size: 50px;
  }
  .closing-mark {
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
  }
  .closing-lead {
    font-size: 16px;
  }
  .install-command .code-example pre {
    padding: 50px 16px 16px;
    font-size: 12px;
    /* The whole command stays visible; copying uses the text, not the line breaks. */
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }
  .install-command .copy-code {
    top: 10px;
    transform: none;
    right: 10px;
  }
  .closing-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .closing-actions > .button {
    min-width: 220px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
  }
  .media-dialog {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 6px;
  }
  .media-dialog-inner {
    padding: 53px 7px 13px;
  }
  .media-dialog p {
    font-size: 11px;
    padding-inline: 6px;
  }
  .zoom-hint {
    right: 8px;
    bottom: 8px;
    padding: 5px 7px;
    font-size: 9px;
    gap: 4px;
  }
  .zoom-hint > .icon {
    width: 13px;
    height: 13px;
  }
}
/* The smallest phones keep the whole header on one row: the menu button keeps
   "Menu" as its accessible name but shows only the icon. */
@media (max-width: 380px) {
  .header-inner {
    gap: 6px;
  }
  .wordmark {
    gap: 5px;
  }
  .search-open {
    padding-inline: 6px;
  }
  .theme-select select {
    padding-right: 13px;
  }
  .theme-select::after {
    right: 2px;
  }
  .js .menu-toggle {
    margin-left: 2px;
    min-width: 40px;
    padding-inline: 0;
    justify-content: flex-end;
  }
  .js .menu-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (hover: none) {
  .zoom-hint {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* WebKit's native picker can resolve variable text colors to black on reload.
   These literal fallbacks mirror the light/dark muted tokens above. */
.theme-select select {
  color: #575653;
  -webkit-text-fill-color: #575653;
}
html[data-theme="dark"] .theme-select select {
  color: #b7b5ac;
  -webkit-text-fill-color: #b7b5ac;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-select select {
    color: #b7b5ac;
    -webkit-text-fill-color: #b7b5ac;
  }
}
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .closing-actions,
  .zoom-hint,
  .demo-launch-prompt,
  .film-launch-prompt,
  .menu-toggle,
  .media-dialog,
  .scene-tabs,
  .workspace-choices {
    display: none !important;
  }
  .section-space {
    padding-block: 28px;
  }
  .hero {
    padding-top: 0;
  }
  .hero-figure {
    margin-top: 30px;
  }
  .media-enlarge,
  .slide-demo,
  .showcase-plates figure {
    break-inside: avoid;
  }
  .hero h1 {
    font-size: 44px;
  }
  .content-width,
  .wide-width {
    width: 100%;
  }
  .text-link {
    color: inherit;
  }
}

/* ------------------------------------------------------------------ */
/* Entrance: the mark blooms, the page unfolds from it (one-shot).      */
/* Base styles are the resting state; html.intro adds the choreography, */
/* so no-JS visitors and reduced-motion visitors see the page at once.  */
/* ------------------------------------------------------------------ */
html.intro .hero-mark {
  animation: mark-settle 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
html.intro .hero-mark circle {
  animation: mark-bloom 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 8ms);
}
html.intro .intro-rise {
  animation: intro-rise 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--intro-delay, 0ms);
}
html.intro .site-header {
  animation: intro-fade 520ms ease-out both;
  animation-delay: 120ms;
}
@keyframes mark-settle {
  from {
    transform: rotate(-26deg) scale(0.82);
  }
  to {
    transform: none;
  }
}
@keyframes mark-bloom {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes intro-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
