/*
 * The architecture page. Colours are the application's own palettes
 * (src/styles/tokens.css and the dark block of src/styles/themes.css), used
 * the way the README's static figure uses them: the four item-type colours
 * for the four floors, accent for the scan, success for the toggle, error
 * for what is banned. The scene reads these same custom properties.
 */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --ground: #f2f3f5;
  --ground-deep: #e6e8ec;
  --panel: #ffffff;
  --panel-alt: #f5f6f8;
  --panel-veil: rgba(255, 255, 255, 0.86);
  --border: #dcdee3;
  --hover: rgba(0, 0, 0, 0.045);
  --text: #1f2124;
  --muted: #5c6068;
  --faint: #8a8f98;
  --accent: #5b6ef5;
  --on-accent: #ffffff;
  --scan: #5b6ef5;
  --toggle: #1f8b4c;
  --ban: #c0392b;
  --seam: #5c6068;
  --l0: #8a5c0a;
  --l1: #5546b8;
  --l2: #146054;
  --l3: #a23048;
  --l0-bg: #f8eeda;
  --l1-bg: #ece9fd;
  --l2-bg: #e0f0ee;
  --l3-bg: #fbe7ec;
  --slab: 0.62;
  --glow: 0.55;
  --shadow: 0 1px 2px rgba(20, 22, 30, 0.06), 0 8px 28px rgba(20, 22, 30, 0.1);
  --shadow-soft: 0 1px 2px rgba(20, 22, 30, 0.05), 0 2px 8px rgba(20, 22, 30, 0.05);
  --sans:
    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --col: 440px;
  --gutter: 40px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #17181a;
    --ground-deep: #111214;
    --panel: #1e1f22;
    --panel-alt: #26282c;
    --panel-veil: rgba(30, 31, 34, 0.86);
    --border: #35383d;
    --hover: rgba(255, 255, 255, 0.055);
    --text: #e4e6ea;
    --muted: #a0a5ae;
    --faint: #6f757e;
    --accent: #7c8cff;
    --on-accent: #111215;
    --scan: #7c8cff;
    --toggle: #4cc38a;
    --ban: #e06c5f;
    --seam: #c3c7ce;
    --l0: #e0b070;
    --l1: #b9a6ff;
    --l2: #64d6c2;
    --l3: #f09aad;
    --l0-bg: rgba(224, 164, 88, 0.16);
    --l1-bg: rgba(157, 124, 255, 0.16);
    --l2-bg: rgba(45, 190, 170, 0.16);
    --l3-bg: rgba(240, 120, 145, 0.16);
    --slab: 0.5;
    --glow: 0.9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 32px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #17181a;
  --ground-deep: #111214;
  --panel: #1e1f22;
  --panel-alt: #26282c;
  --panel-veil: rgba(30, 31, 34, 0.86);
  --border: #35383d;
  --hover: rgba(255, 255, 255, 0.055);
  --text: #e4e6ea;
  --muted: #a0a5ae;
  --faint: #6f757e;
  --accent: #7c8cff;
  --on-accent: #111215;
  --scan: #7c8cff;
  --toggle: #4cc38a;
  --ban: #e06c5f;
  --seam: #c3c7ce;
  --l0: #e0b070;
  --l1: #b9a6ff;
  --l2: #64d6c2;
  --l3: #f09aad;
  --l0-bg: rgba(224, 164, 88, 0.16);
  --l1-bg: rgba(157, 124, 255, 0.16);
  --l2-bg: rgba(45, 190, 170, 0.16);
  --l3-bg: rgba(240, 120, 145, 0.16);
  --slab: 0.5;
  --glow: 0.9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 32px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

a {
  color: inherit;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

code {
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--hover);
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: top 150ms ease-out;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ stage */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 70% 35%, transparent 0 55%, var(--ground-deep) 100%), var(--ground);
}

.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  outline: none;
}

.stage.is-live canvas {
  pointer-events: auto;
  touch-action: pan-y;
  cursor: grab;
}
.stage.is-live canvas:active {
  cursor: grabbing;
}
.stage.is-live.is-hovering canvas {
  cursor: pointer;
}

.labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* A module's name, pinned to its block in the scene. */
.tag {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px 2px 5px;
  border: 0;
  border-radius: 6px;
  background: var(--panel-veil);
  box-shadow: var(--shadow-soft);
  font: 600 11.5px / 1.3 var(--mono);
  white-space: nowrap;
  opacity: 0;
  transition-property: opacity, background-color;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
  will-change: transform;
}
.tag::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--c, var(--accent));
}
.tag.is-sans {
  font-family: var(--sans);
}
.tag.is-shown {
  opacity: 1;
}
.tag.is-dim {
  opacity: 0.42;
}
.tag.is-current {
  background: var(--panel);
  outline: 1.5px solid var(--c);
}
.stage.is-live .tag {
  pointer-events: auto;
  cursor: pointer;
}
.stage.is-live .tag:hover,
.tag.is-hover {
  background: var(--panel);
}
.tag.is-selected {
  background: var(--c);
  color: var(--panel);
}
.tag.is-selected::before {
  background: var(--panel);
}

.floor-tag {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  gap: 1px;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 250ms ease-out;
  will-change: transform;
}
.floor-tag b {
  font-weight: 600;
  color: var(--c);
  font-size: 15px;
}
.floor-tag span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.floor-tag.is-shown {
  opacity: 1;
}

/* The verb riding along with the pulse of light. */
.verb {
  position: absolute;
  left: 0;
  top: 0;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--c);
  color: var(--panel);
  font: 600 11.5px / 1.5 var(--mono);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 150ms ease-out;
}
.verb.is-shown {
  opacity: 1;
}

.fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 96px 24px 24px calc(var(--col) + var(--gutter) * 2);
}
.fallback img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}
.no-webgl .fallback {
  display: grid;
}

/* ----------------------------------------------------------------- header */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  pointer-events: none;
}
.bar > * {
  pointer-events: auto;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.crumb svg {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.crumb span {
  color: var(--muted);
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.links a,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.links a:hover,
.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}
.icon-btn {
  width: 40px;
  padding: 0;
}
.icon-btn:active,
.btn:active,
.chip:active {
  scale: 0.96;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.theme-icon {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
}
.theme-icon svg {
  grid-area: 1 / 1;
  transition-property: opacity, scale, filter;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.theme-icon .moon,
.is-dark .theme-icon .sun {
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}
.is-dark .theme-icon .moon {
  opacity: 1;
  scale: 1;
  filter: blur(0);
}

/* ------------------------------------------------------------------- main */

main {
  position: relative;
  z-index: 10;
  pointer-events: none;
}
main a,
main button,
.panel,
.explore-ui > * {
  pointer-events: auto;
}

.scene {
  position: relative;
  padding: 0 var(--gutter);
}

/* Hero */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 72px;
}
.hero-copy {
  max-width: var(--col);
}
.js-intro .hero-copy {
  visibility: hidden;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.hero h1 .word {
  display: inline-block;
}
.lede {
  margin: 24px 0 0;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.lede strong {
  color: var(--text);
  font-weight: 500;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition-property: background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.btn:hover {
  box-shadow: var(--shadow);
}
.btn.primary {
  background: var(--text);
  color: var(--ground);
}
.btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  font-size: 14px;
  color: var(--faint);
}

/* Story panels */

.story {
  height: calc(var(--steps, 4) * var(--step-h, 70svh) + 100svh);
}
.pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.panel {
  width: var(--col);
  max-width: 100%;
  padding: 26px 28px 24px;
  border-radius: 20px;
  background: var(--panel-veil);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.panel h2 .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 4px;
  background: var(--c);
  vertical-align: 0.08em;
}
.panel .summary {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* The floors, bottom up */
.floor-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.floor-list li {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0 14px;
  padding: 10px 12px 10px 10px;
  border-radius: 10px;
  opacity: 0.5;
  transition-property: opacity, background-color;
  transition-duration: 250ms;
  transition-timing-function: ease-out;
}
.floor-list li::before {
  content: "";
  grid-row: 1 / span 3;
  border-radius: 2px;
  background: var(--c);
}
.floor-list li.is-current {
  opacity: 1;
  background: var(--hover);
}
.floor-list .name {
  font-weight: 600;
  font-size: 16px;
}
.floor-list .name code {
  margin-left: 8px;
  background: none;
  padding: 0;
  font-weight: 400;
  color: var(--muted);
}
.floor-list .knows {
  font-size: 14.5px;
  color: var(--text);
}
.floor-list .about {
  display: none;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}
.floor-list li.is-current .about {
  display: block;
}

/* Steps: a rail of numbered ticks, and the current step written out */
.steps {
  --n: 10;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 0 3px;
}
.steps li {
  display: contents;
}
.tick {
  position: relative;
  grid-row: 1;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tick::before {
  content: "";
  position: absolute;
  inset: 11px 0;
  border-radius: 3px;
  background: var(--border);
  transition: background-color 150ms ease-out;
}
.tick::after {
  content: "";
  position: absolute;
  inset: -6px 0;
}
.tick.is-past::before {
  background: color-mix(in srgb, var(--c) 45%, var(--border));
}
.tick.is-current::before {
  inset: 9px 0;
  background: var(--c);
}
.tick:hover::before {
  background: color-mix(in srgb, var(--c) 70%, var(--border));
}
.step-body {
  display: none;
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 12px 0 0;
  min-height: 7.2em;
}
.is-current + .step-body,
.steps.is-static .step-body {
  display: block;
}
.step-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 6px;
}
.step-meta .n {
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  font-size: 13px;
}
.step-meta .who {
  font: 600 14.5px / 1.3 var(--mono);
  color: var(--c);
}
.step-meta .who.is-sans {
  font-family: var(--sans);
  font-size: 15.5px;
}
.step-meta .floor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.step-meta .floor i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--fc);
}
.step-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- explore */

.explore {
  position: relative;
  height: 100svh;
}
.explore-ui {
  position: absolute;
  inset: 72px var(--gutter) 24px;
  display: grid;
  grid-template-columns: 320px 1fr 380px;
  gap: 16px;
  pointer-events: none;
}

.explore-side {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 10px 8px;
  border-radius: 20px;
  background: var(--panel-veil);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.explore-head {
  padding: 0 10px;
}
.explore-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.explore-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.filter {
  position: relative;
  display: flex;
  gap: 2px;
  margin: 14px 0 0;
  padding: 3px;
  border-radius: 12px;
  background: var(--hover);
}
.filter-indicator {
  position: absolute;
  left: 0;
  top: 0;
  height: 34px;
  border-radius: 9px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}
.chip {
  position: relative;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  transition-property: color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.chip[aria-checked="true"] {
  color: var(--text);
  font-weight: 500;
}
.chip i {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--c);
}

.index {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 14px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
}
.index h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 10px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c);
}
.index h3:first-child {
  margin-top: 0;
}
.index h3 code {
  padding: 0;
  background: none;
  font-weight: 400;
  color: var(--muted);
}
.index ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.index button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 400 13px / 1.3 var(--mono);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 100ms ease-out,
    opacity 150ms ease-out;
}
.index button.is-sans {
  font-family: var(--sans);
  font-size: 14px;
}
.index button:hover,
.index button.is-hover {
  background: var(--hover);
}
.index button[aria-pressed="true"] {
  background: var(--c-bg);
  color: var(--c);
  font-weight: 600;
}
.index button.is-off {
  opacity: 0.45;
}

.detail {
  grid-column: 3;
  align-self: start;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.detail[hidden] {
  display: none;
}
.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.detail .floor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.detail .floor i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}
.detail h3 {
  margin: 6px 0 0;
  font: 600 20px / 1.25 var(--mono);
  overflow-wrap: anywhere;
}
.detail h3.is-sans {
  font-family: var(--sans);
  font-size: 22px;
}
.detail .line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.detail .close {
  flex: none;
  margin: -8px -10px 0 0;
}
.detail ul.points {
  margin: 16px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.55;
}
.detail ul.points li::marker {
  color: var(--c);
}
.detail .aside {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.detail h4 {
  margin: 18px 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.detail .on {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail .on button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-alt);
  font-size: 13.5px;
  cursor: pointer;
}
.detail .on button i {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--c);
}
.detail ul.files {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.detail ul.files a {
  display: block;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  font: 400 13px / 1.4 var(--mono);
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
  user-select: text;
}
.detail ul.files a:hover {
  background: var(--hover);
  text-decoration: underline;
}
.detail .hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--faint);
}

.explore-foot {
  position: absolute;
  left: calc(var(--gutter) + 336px);
  bottom: 24px;
  font-size: 13.5px;
  color: var(--faint);
  pointer-events: none;
}
.explore-foot a {
  pointer-events: auto;
  color: var(--muted);
}

/* ------------------------------------------------------------ narrow */

@media (max-width: 1100px) {
  :root {
    --col: 400px;
    --gutter: 28px;
  }
  .explore-ui {
    grid-template-columns: 290px 1fr 340px;
  }
  .explore-foot {
    left: calc(var(--gutter) + 306px);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 15.5px;
  }
  .bar {
    padding: 10px var(--gutter);
    background: linear-gradient(var(--ground), color-mix(in srgb, var(--ground) 0%, transparent));
  }
  .links a.wide {
    display: none;
  }
  .hero {
    justify-content: flex-end;
    padding-bottom: 56px;
    min-height: 100svh;
  }
  .hero-copy {
    padding: 22px 20px 20px;
    margin: 0 -4px;
    border-radius: 20px;
    background: var(--panel-veil);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .hero h1 {
    font-size: 32px;
  }
  .lede {
    margin-top: 14px;
    font-size: 15.5px;
  }
  .ctas {
    margin-top: 18px;
  }
  .legend {
    display: none;
  }
  .scroll-cue {
    display: none;
  }
  .pin {
    align-items: flex-end;
    padding: 0 0 16px;
  }
  .panel {
    width: 100%;
    padding: 18px 18px 16px;
  }
  .panel h2 {
    font-size: 21px;
  }
  .panel .summary {
    display: none;
  }
  .floor-list {
    margin-top: 12px;
  }
  .floor-list li {
    display: none;
  }
  .floor-list li.is-current {
    display: grid;
  }
  .step-body {
    min-height: 6.4em;
  }
  .step-text {
    font-size: 15px;
  }
  .explore-ui {
    inset: 60px var(--gutter) 12px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .explore-side {
    grid-row: 2;
    max-height: 44svh;
    padding: 14px 6px 6px;
  }
  .explore-head h2 {
    font-size: 20px;
  }
  .explore-head p {
    display: none;
  }
  .index {
    margin-top: 10px;
  }
  .detail {
    position: fixed;
    inset: auto 8px 8px;
    max-height: 62svh;
    z-index: 30;
    grid-column: auto;
    grid-row: auto;
  }
  .explore-foot {
    display: none;
  }
  .fallback {
    padding: 72px 16px 45svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
