/* Page styles — owned by the content pass. Tokens only (see tokens.css). */

/* ============ Rhythm & shared primitives ============ */
.page { position: relative; }
.page p, .page li { text-wrap: pretty; }
.page h1, .page h2, .page h3 { text-wrap: balance; }
.muted { color: var(--text-muted); }
.stack > * + * { margin-top: 16px; }

/* Floor tag above an h1: "PISO 1 · CARACTERÍSTICAS". */
.floor-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.floor-tag__num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px;
  background: var(--amber); color: var(--night-0); font: 400 10px/1 var(--font-pixel);
  box-shadow: inset 0 -3px 0 0 color-mix(in srgb, var(--night-0) 28%, var(--amber)); }
.floor-tag__label { font: 400 10px/1.4 var(--font-pixel); letter-spacing: .08em; color: var(--text-muted);  }

.page-hero { padding-block: clamp(40px, 8vw, 96px) clamp(28px, 5vw, 56px); }
.page-hero .lede { margin: 0; }
.page-hero h1 { margin-bottom: 18px; }

/* Section plaque: a small brass-like sign that names each "room" of a floor. */
.plaque { display: inline-flex; align-items: stretch; margin: 0 0 18px; font: 400 9px/1 var(--font-pixel); letter-spacing: .08em;  }
.plaque__num { display: inline-grid; place-items: center; padding: 7px 8px; background: var(--violet-0); color: var(--mint-3); }
.plaque__name { display: inline-grid; place-items: center; padding: 7px 10px; background: var(--surface-2); color: var(--text);
  box-shadow: inset 0 0 0 2px var(--line); }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { margin-bottom: 10px; }
.section-head p { margin: 0; color: var(--text-muted); max-width: 60ch; }
.section-head .plaque, .page .plaque { margin: 0 0 18px; }

/* Bands: solid floors that sit over the sky, with a dithered top edge. */
.band { position: relative; background: var(--bg); margin-top: 16px; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; pointer-events: none;
  background:
    conic-gradient(from 90deg at 4px 4px, var(--bg) 25%, transparent 0) 0 0 / 8px 8px repeat-x,
    conic-gradient(var(--bg) 25%, transparent 0 50%, var(--bg) 0 75%, transparent 0) 0 8px / 8px 8px repeat-x; }
.band--deep { background: var(--bg-deep); }
.band--deep::before { background:
    conic-gradient(from 90deg at 4px 4px, var(--bg-deep) 25%, transparent 0) 0 0 / 8px 8px repeat-x,
    conic-gradient(var(--bg-deep) 25%, transparent 0 50%, var(--bg-deep) 0 75%, transparent 0) 0 8px / 8px 8px repeat-x; }

/* Stepped divider: a staircase of pixels, used between blocks inside a band. */
.step-rule { height: 8px; margin-block: clamp(32px, 5vw, 56px); border: 0;
  background:
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50% / 48px 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 48px 50% / 2px 6px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 0 0 / 16px 4px no-repeat; }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
.card h3, .card .card__title { margin: 0; font-size: 17px; line-height: 1.35; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.card__icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent);
  font: 400 12px/1 var(--font-pixel); box-shadow: inset 0 -3px 0 0 var(--line); }
.card__more { margin-top: auto; padding-top: 6px; font: 400 9px/1.4 var(--font-pixel); color: var(--link); letter-spacing: .04em; }
a.card { transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) ease; }
a.card:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--violet-1), inset 0 -6px 0 0 color-mix(in srgb, var(--violet-1) 50%, transparent); }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Living elements: reserve space so layout never jumps when the visual pass mounts them. */
.office-frame { position: relative; margin: 0; padding: 8px; background: var(--bg-deep); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 2px var(--bg-deep); }
/* The office script sets the exact aspect (whole tiles at an integer scale);
   these placeholders match it closely so the page doesn't jump on mount. The
   thin letterbox left by the integer scale shows the frame colour. */
.office-frame canvas[data-office] { width: 100%; aspect-ratio: 15 / 13; background: var(--bg-deep); }
.office-frame canvas[data-office]:not([data-scene="lobby"]) { aspect-ratio: 5 / 4; }
@media (max-width: 719px) { .office-frame canvas[data-office][data-scene="lobby"] { aspect-ratio: 10 / 13; } }
.office-frame__caption { display: flex; justify-content: space-between; gap: 8px; margin: 8px 2px 0; font: 400 9px/1.5 var(--font-pixel); color: var(--text-muted); letter-spacing: .04em; }
.office-frame__caption .live { color: var(--focus); white-space: nowrap; flex-shrink: 0; }
.office-frame__caption .live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--focus); vertical-align: 1px; }
[data-demo] { position: relative; min-height: 180px; width: 100%; background: var(--bg-deep); box-shadow: inset 0 0 0 2px var(--line); }
[data-demo="team"], [data-demo="rooms"], [data-demo="missions"] { min-height: 220px; }

/* Code & commands */
.cmd { display: block; margin: 12px 0; }
.cmd pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

/* Callouts */
.callout { position: relative; margin: 20px 0; padding: 14px 16px 14px 20px; background: var(--surface); box-shadow: inset 4px 0 0 0 var(--accent), inset 0 0 0 1px var(--line); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout--warn { box-shadow: inset 4px 0 0 0 var(--amber), inset 0 0 0 1px var(--line); }
.callout--soon { box-shadow: inset 4px 0 0 0 var(--coral), inset 0 0 0 1px var(--line); }
.callout__title { display: block; margin-bottom: 6px; font: 400 9px/1.4 var(--font-pixel); letter-spacing: .06em; color: var(--text); }

/* Prose (guide articles, privacy, about) */
.prose { font-size: 17px; line-height: 1.7; }
.prose > * { max-width: 68ch; }
.prose h2 { margin: 2.2em 0 .6em; font: 400 14px/1.6 var(--font-pixel); letter-spacing: .02em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose ol > li::marker { font-family: var(--font-mono); font-weight: 600; }
.prose code { padding: 1px 5px; background: var(--surface-2); overflow-wrap: anywhere; }
.prose pre code { padding: 0; background: none; }
.prose pre { margin: 0 0 1.2em; font-size: 14px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font: 400 9px/1.5 var(--font-pixel); letter-spacing: .04em; color: var(--text-muted); }
.table-scroll { max-width: 100%; overflow-x: auto; }

/* Chips row */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.chip--muted { background: transparent; color: var(--text-muted); box-shadow: inset 0 0 0 2px var(--line); }

/* Search field + filter pills (guide, faq) */
.search { position: relative; max-width: 560px; }
.search input { width: 100%; min-height: 48px; padding: 12px 14px 12px 44px; border: 0; background: var(--surface); color: var(--text);
  font: 16px/1.4 var(--font-body); box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 0 color-mix(in srgb, var(--bg-deep) 40%, transparent); }
.search input::placeholder { color: var(--text-muted); }
.search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search__glyph { position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -8px; box-shadow: inset 0 0 0 2px var(--text-muted); pointer-events: none; }
.search__glyph::after { content: ""; position: absolute; left: 11px; top: 11px; width: 6px; height: 2px; background: var(--text-muted); transform: rotate(45deg); transform-origin: left center; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.pill { min-height: 40px; padding: 8px 12px; border: 0; cursor: pointer; background: transparent; color: var(--text-muted);
  font: 400 9px/1.3 var(--font-pixel); letter-spacing: .04em; box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.pill[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.pill:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .pill:not([aria-pressed="true"]):hover { color: var(--text); background: var(--surface); } }
.result-count { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; min-height: 1.6em; }
.empty { padding: 28px 20px; text-align: center; color: var(--text-muted); }
.empty[hidden] { display: none; }

/* ============ Home (PB) ============ */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 48px); padding-block: clamp(36px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(18px, 4.4vw, 30px); line-height: 1.5; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin: 0; }
.hero__note { margin: 16px 0 0; font-size: 14px; color: var(--text-muted); }
@media (min-width: 1080px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } .hero h1 { font-size: clamp(22px, 2.2vw, 30px); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; counter-increment: step; padding: 24px 20px 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  background: var(--amber); color: var(--night-0); font: 400 14px/1 var(--font-pixel); box-shadow: inset 0 -4px 0 0 color-mix(in srgb, var(--night-0) 25%, var(--amber)); }
.steps h3 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--text-muted); font-size: 15px; }

.highlights { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.life { display: grid; gap: 16px; }
@media (min-width: 900px) { .life { grid-template-columns: repeat(3, 1fr); } }
.life figure { margin: 0; }
.life [data-demo] { min-height: 0; aspect-ratio: 16 / 9; }
.life .office-frame { padding: 0; }
.life figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.life figcaption strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px; background: var(--surface); }
.trust li strong { display: block; font: 400 10px/1.5 var(--font-pixel); letter-spacing: .04em; margin-bottom: 6px; }
.trust li span { color: var(--text-muted); font-size: 14px; }
.trust__mark { flex: none; width: 12px; height: 12px; margin-top: 2px; background: var(--accent); box-shadow: 4px 4px 0 0 var(--violet-0); }

.cta-final { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; background: var(--surface); }
.cta-final h2 { margin-inline: auto; }
.cta-final p { margin-inline: auto; color: var(--text-muted); }
.cta-final .actions { justify-content: center; }

/* ============ Features (1) ============ */
.feat-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.feat-layout > * { min-width: 0; }
@media (min-width: 1080px) { .feat-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; } }
.mini-index { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mini-index__title { display: none; }
.mini-index ol { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; }
.mini-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; white-space: nowrap; text-decoration: none;
  color: var(--text-muted); font: 400 9px/1.3 var(--font-pixel); letter-spacing: .03em; box-shadow: inset 0 0 0 2px var(--line);
  transition: color var(--dur-hover) ease, background-color var(--dur-hover) ease; }
.mini-index a span { color: var(--accent); }
.mini-index a[aria-current="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--violet-1); }
@media (hover: hover) and (pointer: fine) { .mini-index a:hover { color: var(--text); } }
@media (min-width: 1080px) {
  .mini-index { align-self: start; margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; top: calc(var(--header-h) + 24px); }
  .mini-index__title { display: block; margin: 0 0 12px; }
  .mini-index ol { flex-direction: column; gap: 2px; overflow: visible; }
  .mini-index a { width: 100%; white-space: normal; box-shadow: none; }
  .mini-index a[aria-current="true"] { box-shadow: inset 3px 0 0 0 var(--amber); }
}
.feat-group { scroll-margin-top: calc(var(--header-h) + 72px); padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 1080px) { .feat-group { scroll-margin-top: calc(var(--header-h) + 24px); } }
.feat-group + .feat-group { padding-top: clamp(40px, 6vw, 72px); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 2px no-repeat; }
.feat-group__intro { color: var(--text-muted); max-width: 60ch; margin: 0 0 24px; }
.feat-show { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 900px) { .feat-show { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.feat-list li { padding: 18px; }
.feat-list h3 { margin: 0 0 6px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feat-list p { margin: 0; font-size: 15px; color: var(--text-muted); }
.provider-table { width: 100%; }

/* ============ Guide (2) ============ */
.lib-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lib-grid li[hidden] { display: none; }
.lib-card { height: 100%; }
.lib-card .chip { align-self: flex-start; }
.lib-cat { margin-top: 40px; }
.crumbs { margin: 0 0 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1080px) { .article { grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; } .article__toc { order: 2; } }
.toc { padding: 16px; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 4px; font-size: 14px; line-height: 1.4; color: var(--text-muted); text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 400 8px/1.9 var(--font-pixel); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--text); } }
@media (min-width: 1080px) { .article__toc .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.pager { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 720px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { padding: 16px 18px; }
.pager .next { text-align: end; align-items: flex-end; }
@media (min-width: 720px) { .pager .next:only-child { grid-column: 2; } }
.pager small { font: 400 9px/1.4 var(--font-pixel); color: var(--text-muted); letter-spacing: .04em; }
.pager strong { font-size: 16px; }

/* ============ Downloads (3) ============ */
.os-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .os-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.os-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; }
.os-card.is-yours { box-shadow: inset 0 0 0 2px var(--amber), inset 0 -6px 0 0 color-mix(in srgb, var(--amber) 55%, transparent); }
.os-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.os-card__head h2 { margin: 0; font: 400 14px/1.4 var(--font-pixel); }
.os-card__status { margin: 0; font-size: 14px; color: var(--text-muted); min-height: 1.6em; font-variant-numeric: tabular-nums; }
.os-card__files { display: grid; gap: 10px; }
.os-card__files .btn { width: 100%; }
.os-card h3 { margin: 6px 0 0; font: 400 9px/1.4 var(--font-pixel); letter-spacing: .04em; color: var(--text-muted); }
.os-card ul, .os-card ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.os-card li { margin: 4px 0; }
.hash { font-size: 14px; }
.hash summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 8px; color: var(--link); list-style: none; }
.hash summary::-webkit-details-marker { display: none; }
.hash summary::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-inline-start: 6px solid currentColor; transition: transform var(--dur-hover) var(--ease-out); }
.hash[open] summary::before { transform: rotate(90deg); }
.hash code { display: block; padding: 10px; background: var(--bg-deep); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; word-break: break-all; }
.verify { margin-top: 8px; }

/* ============ FAQ (4) ============ */
.faq-group { margin-top: 40px; }
.faq-group[hidden] { display: none; }
.faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.faq-item[hidden] { display: none; }
.faq-item { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-item:target, .faq-item.is-target { box-shadow: inset 0 0 0 2px var(--amber); }
.faq-q { margin: 0; font-size: 16px; }
.faq-q button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px;
  border: 0; background: none; color: var(--text); text-align: start; cursor: pointer; font: 600 16px/1.4 var(--font-body); }
.faq-q button::after { content: ""; flex: none; width: 10px; height: 10px; background:
  linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
  transition: transform var(--dur-menu) var(--ease-out); }
.faq-q button[aria-expanded="true"]::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq-q button:hover { color: var(--link); } }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-menu) var(--ease-out); }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a[data-open="true"] { grid-template-rows: 1fr; }
.faq-a .prose { padding: 0 18px 18px; font-size: 16px; }
.faq-a .prose p:last-child { margin-bottom: 0; }
.faq-link { font: 400 8px/1 var(--font-pixel); letter-spacing: .04em; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-q button::after { transition: none; } }

/* ============ Changelog (5) ============ */
.release { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .release { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } }
.release__meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.release__ver { font: 400 20px/1.2 var(--font-pixel); color: var(--amber); }
.page .release__meta .chip { max-width: 100%; white-space: normal; line-height: 1.5; padding-block: 4px; }
.release__meta time { font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .release__meta { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.release h3 { font: 400 11px/1.6 var(--font-pixel); letter-spacing: .03em; margin: 28px 0 10px; }
.release h3:first-child { margin-top: 0; }

/* ============ About (7) ============ */
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.credits li { padding: 18px; }
.credits h3 { margin: 0 0 6px; font-size: 16px; }
.credits p { margin: 0; font-size: 15px; color: var(--text-muted); }
.credits .chip { margin-top: 12px; }

/* ============ 404 (S) ============ */
.basement { text-align: center; padding-block: clamp(48px, 10vw, 120px); }
.basement .lede { margin-inline: auto; }
.basement .actions { justify-content: center; }
.basement__panel { display: inline-flex; gap: 6px; padding: 10px; margin-bottom: 28px; background: var(--bg-deep); box-shadow: inset 0 0 0 2px var(--line); }
.basement__panel span { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--surface-2); color: var(--text-muted); font: 400 10px/1 var(--font-pixel); }
.basement__panel span.is-lit { background: var(--coral); color: var(--night-0); animation: basement-blink 1.2s steps(2, end) infinite; }
@keyframes basement-blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .basement__panel span.is-lit { animation: none; } }

/* ============ Small screens ============ */
@media (max-width: 480px) {
  .panel { padding: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .prose { font-size: 16px; }
}
.prose td code { white-space: nowrap; overflow-wrap: normal; }
.page .chip { white-space: nowrap; line-height: 1.2; }
.page [hidden] { display: none !important; }
.os-card__files .btn { text-align: center; line-height: 1.6; }
.os-card li code { padding: 1px 4px; background: var(--surface-2); overflow-wrap: anywhere; font-size: 13px; }
.page code, .page pre, .page kbd { font-variant-ligatures: none; }
.prose > section + section { margin-top: clamp(36px, 5vw, 56px); }
.prose .plaque + h2 { margin-top: 0; }
.mini-index a span { flex: none; white-space: nowrap; }
.feat-show [data-demo] { min-height: 0; aspect-ratio: 16 / 9; }
.feat-show [data-demo="rooms"] { aspect-ratio: auto; } /* the live canvas sets its own height */
.feat-show:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* Legibility over the living sky: a soft halo in the page colour behind hero copy. */
.stage h1, .stage .lede { text-shadow: 0 0 12px var(--bg), 0 0 2px var(--bg); }
