@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

@font-face {
  font-family: "Cormorant Upright";
  src: url("/assets/fonts/cormorant-upright-semibold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Alegreya";
  src: url("/assets/fonts/alegreya-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: light;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --forest-1000: #0d1710;
  --forest-950: #14261a;
  --forest-900: #1a3321;
  --forest-800: #284a30;
  --forest-700: #376240;
  --leaf-500: #648867;
  --leaf-300: #aecaa2;
  --leaf-100: #e1eadb;
  --ink: #202c20;
  --ink-soft: #465647;
  --muted: #6a7568;
  --paper: #f6f1e5;
  --paper-warm: #eee5d3;
  --paper-deep: #e2d6bd;
  --cream: #fffdf6;
  --coral: #bd6b4e;
  --coral-deep: #884630;
  --gold: #c5a763;
  --line: rgba(32, 44, 32, 0.14);
  --line-dark: rgba(255, 253, 247, 0.18);
  --shadow: 0 22px 70px rgba(4, 23, 26, 0.12);
  --shadow-small: 0 8px 28px rgba(4, 23, 26, 0.09);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --container: 1180px;
  --narrow: 760px;
  --header-height: 72px;
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.25rem;
  --space-7: 5rem;
  --space-8: 7.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 48px);
  background: var(--forest-1000);
}

body {
  margin: 0;
  min-width: 300px;
  background:
    radial-gradient(circle at 10% 6%, rgba(47, 129, 122, 0.05), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

main {
  display: block;
  overflow: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--coral);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 3px;
}

::selection {
  color: var(--cream);
  background: var(--forest-700);
}

.sr-only {
  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: 10px;
  left: 10px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: 99px;
  color: var(--forest-1000);
  background: var(--cream);
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.shell {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), var(--narrow));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--cream);
  background: rgba(4, 23, 26, 0.92);
  backdrop-filter: blur(18px) saturate(130%);
  transition: box-shadow 180ms ease, background 180ms ease;
}

html[data-scrolled="true"] .site-header {
  background: rgba(4, 23, 26, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.72rem;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.brand-name span {
  color: var(--leaf-300);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 99px;
  color: rgba(255, 253, 247, 0.73);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: rotate(-45deg);
}

.preview-banner {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(201, 173, 106, 0.32);
  color: var(--cream);
  background: #12383a;
}

.preview-banner p {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 0.62rem 0;
  color: rgba(255, 253, 247, 0.76);
  font-size: 0.76rem;
  line-height: 1.45;
}

.preview-banner strong {
  color: var(--gold);
  font-weight: 720;
}

.hero,
.home-hero {
  position: relative;
  min-height: min(840px, calc(100svh - var(--header-height)));
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 74% 28%, rgba(139, 207, 193, 0.13), transparent 24rem),
    radial-gradient(circle at 22% 100%, rgba(212, 119, 86, 0.13), transparent 28rem),
    linear-gradient(135deg, var(--forest-1000) 0%, var(--forest-950) 52%, #24412c 100%);
}

.hero.section,
.home-hero.section,
.page-hero.section,
.detail-hero.section,
.not-found.section {
  padding-block: 0;
}

.hero::before,
.home-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(139, 207, 193, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 207, 193, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero-inner,
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: inherit;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.hero-copy,
.hero__content {
  max-width: 680px;
}

.eyebrow,
.overline,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--leaf-500);
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.home-hero .eyebrow {
  color: var(--leaf-300);
}

.eyebrow::before,
.overline::before {
  width: 22px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 72, "WONK" 1;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
  word-spacing: 0.045em;
}

h3,
h4 {
  font-family: var(--font-body);
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.hero h1,
.home-hero h1 {
  color: var(--cream);
  font-size: clamp(3.15rem, 6.5vw, 6.45rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  word-spacing: 0.06em;
}

.hero h1 em,
.home-hero h1 em {
  display: inline-block;
  color: var(--leaf-300);
  font-family: var(--font-hand);
  font-size: 0.96em;
  font-style: normal;
  font-variation-settings: normal;
  font-weight: 620;
  letter-spacing: -0.035em;
  white-space: nowrap;
  word-spacing: normal;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2.15rem, 4.5vw, 4.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

h4 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-lede,
.hero__lede {
  max-width: 630px;
  margin: 1.65rem 0 0;
  color: rgba(255, 253, 247, 0.74);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.button-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.72rem;
  margin-top: 2rem;
}

.button,
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.button-primary,
.btn-primary {
  color: var(--forest-1000);
  border-color: var(--leaf-300);
  background: var(--leaf-300);
}

.button-primary:hover,
.btn-primary:hover {
  border-color: var(--cream);
  background: var(--cream);
}

.button-secondary,
.btn-secondary {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}

.hero .button-secondary,
.home-hero .button-secondary {
  color: var(--cream);
  border-color: rgba(255, 253, 247, 0.32);
}

.hero .button-secondary:hover,
.home-hero .button-secondary:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  color: var(--forest-700);
  font-weight: 720;
  text-decoration: none;
}

.text-link::after {
  content: "↗";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

.hero-art,
.hero__art {
  position: relative;
  width: min(100%, 520px);
  min-height: 620px;
  justify-self: end;
}

.plate,
.plate-frame,
.hero-plate {
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.26);
  border-radius: 4px;
  background: var(--paper-warm);
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.35);
}

.hero-plate {
  position: absolute;
}

.hero-plate img,
.plate img,
.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-plate--main,
.hero-plate.main {
  top: 2%;
  right: 2%;
  width: 69%;
  height: 88%;
  transform: rotate(2deg);
}

.hero-plate--small,
.hero-plate.small {
  bottom: 1%;
  left: 0;
  width: 47%;
  height: 42%;
  transform: rotate(-5deg);
}

.hero-plate--line,
.hero-plate.line {
  top: 8%;
  left: 3%;
  width: 38%;
  height: 33%;
  opacity: 0.9;
  transform: rotate(-7deg);
}

.plate-label {
  position: absolute;
  right: 8%;
  bottom: 5%;
  z-index: 5;
  max-width: 230px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 253, 247, 0.2);
  color: rgba(255, 253, 247, 0.76);
  background: rgba(4, 23, 26, 0.82);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  line-height: 1.45;
}

.plate-label strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.77rem;
}

.stat-band {
  position: relative;
  z-index: 6;
  color: var(--cream);
  background: var(--forest-950);
  border-block: 1px solid var(--line-dark);
}

.stat-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--line-dark);
}

.stat:last-child {
  border-right: 1px solid var(--line-dark);
}

.stat strong,
.stat-number {
  display: block;
  color: var(--leaf-300);
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stat span,
.stat-label {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 253, 247, 0.62);
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.section--compact,
.section-compact {
  padding-block: clamp(3.6rem, 7vw, 5.5rem);
}

.section--dark,
.section-dark,
.dark-section {
  color: rgba(255, 253, 247, 0.76);
  background:
    radial-gradient(circle at 90% 0%, rgba(139, 207, 193, 0.12), transparent 28rem),
    var(--forest-950);
}

.section--dark h2,
.section--dark h3,
.section-dark h2,
.section-dark h3,
.dark-section h2,
.dark-section h3 {
  color: var(--cream);
}

.section--dark .eyebrow,
.section-dark .eyebrow,
.dark-section .eyebrow {
  color: var(--leaf-300);
}

.section--paper,
.section-paper {
  background: var(--paper);
}

.section--cream,
.section-cream {
  background: var(--cream);
}

.section--warm,
.section-warm {
  background: var(--paper-warm);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.42fr);
  align-items: end;
  gap: var(--space-6);
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
}

.section-header > p,
.section-intro,
.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.section-header:not(.section-header--split) {
  display: block;
}

.section-header:not(.section-header--split) h2 {
  max-width: 860px;
}

.section-header:not(.section-header--split) > p:not(.eyebrow) {
  max-width: 690px;
  margin-top: 1.15rem;
}

.section--dark .section-header > p,
.section-dark .section-header > p,
.dark-section .section-header > p,
.section--dark .section-intro,
.section-dark .section-intro {
  color: rgba(255, 253, 247, 0.66);
}

.split,
.split-layout,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.split--reverse > :first-child {
  order: 2;
}

.prose {
  max-width: 72ch;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose ul,
.prose ol {
  color: var(--ink-soft);
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose a {
  color: var(--forest-700);
  font-weight: 650;
}

.card-grid,
.registry-grid,
.kit-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.registry-card,
.kit-card,
.feature-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.registry-card:hover,
.kit-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 86, 90, 0.34);
  box-shadow: var(--shadow-small);
}

.card-body,
.registry-card__body,
.kit-card__body,
.feature-card {
  padding: clamp(1.25rem, 2.7vw, 1.85rem);
}

.registry-card a.stretched-link::after,
.kit-card a.stretched-link::after,
.card a.stretched-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.card h3,
.registry-card h3,
.kit-card h3 {
  margin-top: 0.8rem;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.card p,
.registry-card p,
.kit-card p {
  color: var(--muted);
}

.card-meta,
.meta-row,
.registry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 630;
}

.badge,
.status-pill,
.pill {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(24, 86, 90, 0.22);
  border-radius: 99px;
  color: var(--forest-700);
  background: var(--leaf-100);
  font-size: 0.67rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.badge--planned,
.status-planned {
  color: #7c5438;
  border-color: rgba(156, 73, 46, 0.2);
  background: #f7e7dc;
}

.card-index {
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow,
.process-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}

.flow--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.flow-step {
  position: relative;
  min-height: 148px;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.6rem;
  z-index: 2;
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "→";
  color: var(--forest-700);
  background: var(--cream);
  font-size: 0.7rem;
}

.flow-step span {
  display: block;
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-step strong {
  display: block;
  margin-top: 1.15rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.25;
}

.criteria-grid,
.mode-grid,
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.criterion,
.mode,
.mission {
  position: relative;
  min-height: 260px;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.criterion::before,
.mode::before,
.mission::before {
  display: block;
  margin-bottom: 4rem;
  color: var(--leaf-300);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  content: attr(data-index);
}

.criterion p,
.mode p,
.mission p {
  color: rgba(255, 253, 247, 0.62);
}

.chapter,
.image-chapter,
.botanical-band {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  background: var(--forest-950);
}

.chapter-image,
.image-chapter > img,
.botanical-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter::after,
.image-chapter::after,
.botanical-band::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 23, 26, 0.96) 0%, rgba(4, 23, 26, 0.74) 48%, rgba(4, 23, 26, 0.18) 100%);
}

.chapter-content,
.image-chapter__content,
.botanical-band__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
  padding-block: 7rem;
}

.chapter-panel {
  max-width: 570px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(4, 23, 26, 0.55);
  backdrop-filter: blur(14px);
}

.chapter h2,
.image-chapter h2,
.botanical-band h2 {
  color: var(--cream);
}

.chapter p,
.image-chapter p,
.botanical-band p {
  color: rgba(255, 253, 247, 0.7);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 80% 0%, rgba(139, 207, 193, 0.18), transparent 26rem),
    var(--forest-950);
}

.page-hero-inner,
.page-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 490px;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  align-items: end;
  gap: var(--space-6);
  padding-block: 5rem 4.5rem;
}

.page-hero h1 {
  color: var(--cream);
}

.page-hero p {
  max-width: 680px;
  color: rgba(255, 253, 247, 0.68);
  font-size: 1.08rem;
}

.page-hero-art {
  align-self: stretch;
  border-left: 1px solid var(--line-dark);
  opacity: 0.84;
}

.page-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  margin-bottom: 1.4rem;
  color: rgba(255, 253, 247, 0.56);
  font-size: 0.76rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cream);
}

.registry-tools,
.filter-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  padding-block: 0.9rem;
  border-block: 1px solid var(--line);
  background: rgba(246, 242, 232, 0.92);
  backdrop-filter: blur(15px);
}

.registry-tools__inner,
.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-button {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 720;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--cream);
  border-color: var(--forest-700);
  background: var(--forest-700);
}

.search-field {
  position: relative;
  width: min(100%, 320px);
}

.search-field input,
[data-search] {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.9rem 0.6rem 2.35rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  background: var(--cream);
}

.search-field::before {
  position: absolute;
  top: 50%;
  left: 0.88rem;
  z-index: 1;
  transform: translateY(-50%);
  content: "⌕";
  color: var(--muted);
}

.result-count {
  min-width: 70px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-align: right;
}

[hidden] {
  display: none !important;
}

.empty-state {
  padding: 3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.editorial-grid,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.detail-section {
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.detail-section:first-child {
  padding-top: 0;
}

.detail-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.detail-rail,
.sticky-rail {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.rail-card,
.snapshot-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.rail-card dl,
.snapshot-card dl {
  margin: 1rem 0 0;
}

.rail-card dt,
.snapshot-card dt {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rail-card dd,
.snapshot-card dd {
  margin: 0.16rem 0 0;
  font-size: 0.88rem;
  font-weight: 620;
}

.notice,
.status-notice,
.install-panel {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(156, 73, 46, 0.26);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  background: #f7e7dc;
}

.notice h2,
.notice h3,
.status-notice h2,
.status-notice h3,
.install-panel h2,
.install-panel h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 1.2rem;
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -0.025em;
  word-spacing: normal;
}

.notice p,
.status-notice p,
.install-panel p {
  margin: 0;
  color: #754e39;
}

.check-list,
.plain-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 0.72rem;
  left: 0;
  content: "◇";
  color: var(--leaf-500);
}

.timeline,
.lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  padding: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.timeline-step,
.lifecycle-step {
  position: relative;
  min-height: 170px;
  padding: 1.25rem;
  background: var(--cream);
}

.timeline-step span,
.lifecycle-step span {
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 760;
}

.timeline-step strong,
.lifecycle-step strong {
  display: block;
  margin-top: 2.5rem;
  line-height: 1.25;
}

.research-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.research-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 245px;
  gap: 1.2rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--cream);
}

.research-row h3 {
  font-size: 1.2rem;
}

.research-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.research-label {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: var(--forest-700);
  font-size: 0.73rem;
  font-weight: 680;
}

.credits-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.credit-card,
.asset-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.credit-card img,
.asset-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.credit-card-body,
.asset-card__body {
  padding: 1.35rem;
}

.credit-card h3,
.asset-card h3 {
  font-size: 1.2rem;
}

.credit-card dl,
.asset-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.35rem 0.8rem;
  margin: 1rem 0 0;
  font-size: 0.76rem;
}

.credit-card dt,
.asset-card dt {
  color: var(--muted);
}

.credit-card dd,
.asset-card dd {
  margin: 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 10%, rgba(139, 207, 193, 0.2), transparent 23rem),
    var(--forest-950);
}

.cta-panel h2 {
  max-width: 760px;
  color: var(--cream);
}

.cta-panel p {
  max-width: 620px;
  color: rgba(255, 253, 247, 0.65);
}

.site-footer {
  color: rgba(255, 253, 247, 0.64);
  background: var(--forest-1000);
}

.footer-inner {
  padding-block: 4.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.footer-intro {
  max-width: 320px;
}

.footer-intro p {
  font-size: 0.86rem;
}

.footer-heading {
  margin: 0 0 0.9rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 730;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.48rem;
}

.footer-links a {
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.7rem;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

.error-page {
  min-height: 72svh;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--forest-950);
  text-align: center;
}

.error-page .code {
  color: var(--leaf-300);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 72, "WONK" 1;
  font-size: clamp(7rem, 20vw, 15rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

/* Generated-site components */

.preview-banner__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 0.65rem 1rem;
}

.preview-banner__inner strong {
  flex: none;
  color: var(--gold);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.preview-banner__inner span {
  flex: 1;
}

.preview-banner__inner a {
  flex: none;
  color: var(--cream);
  font-weight: 690;
  text-decoration: none;
}

.wordmark__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 253, 246, 0.25);
  border-radius: 50% 50% 50% 8px;
  color: var(--forest-1000);
  background: var(--leaf-300);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  transform: rotate(-6deg);
}

.wordmark__text {
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.wordmark--footer {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 99px;
  color: rgba(255, 253, 246, 0.73);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}

.hero__inner,
.page-hero__inner,
.detail-hero__inner,
.not-found__inner,
.site-footer__inner,
.section > .section-header,
.section > .anatomy-grid,
.section > .flow,
.section > .review-grid,
.section > .mission-grid,
.section > .mode-grid,
.section > .card-grid,
.section > .research-preview,
.section > .research-grid,
.section > .registry-controls,
.section > .registry-grid,
.section > .registry-empty,
.section > .detail-layout,
.section > .collection-sequence,
.section > .definition-panel,
.section > .process-list,
.section > .notice,
.section > .standard-grid,
.section > .evidence-grid,
.section > .boundary-grid,
.section > .editorial-grid,
.section > .principle-grid,
.section > .credits-grid,
.section > .source-grid,
.section > .section-action,
.section > .demo-teaser,
.section > .demo-intro,
.section > .demo-game,
.section > .curation-grid,
.section > .curator-lab__inner,
.section > .commitment-list,
.section > .curator-contact {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section--botanic,
.section--dark {
  color: rgba(255, 253, 246, 0.75);
  background:
    radial-gradient(circle at 85% 0%, rgba(174, 202, 162, 0.13), transparent 28rem),
    var(--forest-950);
}

.section--botanic h1,
.section--botanic h2,
.section--botanic h3,
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section--botanic .section-header > p,
.section--dark .section-header > p {
  color: rgba(255, 253, 246, 0.65);
}

.section--tint {
  background:
    radial-gradient(circle at 8% 8%, rgba(100, 136, 103, 0.08), transparent 30rem),
    var(--paper-warm);
}

.section--closing {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.eyebrow--bright {
  color: var(--leaf-300);
}

.button--primary {
  color: var(--forest-1000);
  border-color: var(--leaf-300);
  background: var(--leaf-300);
}

.button--primary:hover {
  border-color: var(--cream);
  background: var(--cream);
}

.button--ghost {
  color: var(--cream);
  border-color: rgba(255, 253, 246, 0.34);
}

.button--ghost:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}

.button--quiet {
  color: var(--forest-700);
  border-color: var(--line);
  background: transparent;
}

.button--quiet:hover {
  color: var(--cream);
  border-color: var(--forest-700);
  background: var(--forest-700);
}

.button--block {
  width: 100%;
}

.text-link--bright {
  color: var(--leaf-300);
}

.hero__art {
  isolation: isolate;
}

.hero__art::before,
.hero__art::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 253, 246, 0.2);
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.hero__art::before {
  top: 4%;
  left: -7%;
  width: 48%;
  height: 35%;
  background-image: url("/assets/images/smithsonian-decoration-panel.webp");
  filter: saturate(0.55) sepia(0.12);
  transform: rotate(-6deg);
}

.hero__art::after {
  right: -5%;
  bottom: -1%;
  width: 44%;
  height: 43%;
  background-image: url("/assets/images/usda-surprise-apple.webp");
  background-position: 50% 36%;
  transform: rotate(5deg);
}

.hero__art .hero-plate {
  position: relative;
  z-index: 2;
  top: auto;
  right: auto;
  width: min(70%, 340px);
  height: 610px;
  margin: 0 auto;
  transform: rotate(1.6deg);
}

.botanical-plate {
  position: relative;
}

.botanical-plate figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  padding: 0.55rem 0.68rem;
  border: 1px solid rgba(255, 253, 246, 0.18);
  color: rgba(255, 253, 246, 0.78);
  background: rgba(13, 23, 16, 0.78);
  backdrop-filter: blur(9px);
  font-size: 0.62rem;
  line-height: 1.35;
}

.hero__note {
  max-width: 600px;
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(174, 202, 162, 0.5);
  color: rgba(255, 253, 246, 0.56);
  font-size: 0.76rem;
  line-height: 1.55;
}

.hero__note strong {
  color: var(--leaf-300);
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.anatomy-card {
  min-height: 250px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.42);
}

.anatomy-card > span,
.review-grid article > span,
.standard-card > span,
.principle-grid article > span {
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.anatomy-card h3 {
  margin-top: 4rem;
  font-size: 1.2rem;
}

.anatomy-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow {
  margin-top: 0;
  padding: 0;
  list-style: none;
}

.flow > li {
  position: relative;
  min-height: 160px;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}

.flow > li:last-child {
  border-right: 0;
}

.flow > li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.6rem;
  z-index: 2;
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "→";
  color: var(--forest-700);
  background: var(--cream);
  font-size: 0.7rem;
}

.flow > li > span {
  display: block;
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.flow > li > strong {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.flow > li p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.flow--bright {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}

.flow--bright > li {
  border-color: var(--line-dark);
}

.flow--bright > li > span {
  color: var(--leaf-300);
}

.flow--bright > li p {
  color: rgba(255, 253, 246, 0.6);
}

.flow--bright > li:not(:last-child)::after {
  color: var(--cream);
  border-color: var(--line-dark);
  background: var(--forest-950);
}

.review-grid,
.standard-grid,
.principle-grid,
.evidence-grid,
.boundary-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-grid article,
.standard-card,
.principle-grid article,
.evidence-grid article,
.boundary-grid article,
.source-grid article,
.mode-card,
.mode-grid article,
.mission-card {
  min-height: 230px;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.7);
}

.section--botanic .review-grid article,
.section--botanic .evidence-grid article,
.section--botanic .boundary-grid article,
.section--botanic .principle-grid article,
.section--botanic .mode-grid article,
.review-intro .review-grid article {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}

.review-grid article h3,
.standard-card h3,
.principle-grid article h3,
.evidence-grid article h3,
.boundary-grid article h3,
.source-grid article h3 {
  margin-top: 3.5rem;
}

.review-grid article p,
.section--botanic .evidence-grid article p,
.section--botanic .boundary-grid article p,
.section--botanic .principle-grid article p,
.section--botanic .mode-grid article p {
  color: rgba(255, 253, 246, 0.62);
}

.mission-card {
  min-height: 300px;
}

.mission-card h3 {
  margin-top: 3.7rem;
}

.mission-card > p:last-child,
.mode-card p,
.mode-grid article p {
  color: var(--muted);
}

.mode-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mode-card h3,
.mode-grid article h3 {
  margin-top: 2.7rem;
}

.mode-grid--bright article {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}

.mode-grid--bright article p {
  color: rgba(255, 253, 246, 0.62);
}

.kit-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
}

.kit-card--compact {
  min-height: 320px;
}

.kit-card__meta {
  display: flex;
  min-height: 29px;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
}

.family-pill,
.card-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 253, 246, 0.65);
  font-size: 0.63rem;
  font-weight: 730;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-badge {
  color: var(--coral-deep);
}

.family-pill--bright,
.status-pill--bright {
  color: var(--cream);
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.07);
}

.kit-card .eyebrow {
  margin-top: 1.55rem;
  margin-bottom: 0.3rem;
}

.kit-card h3 {
  margin-top: 0.45rem;
}

.kit-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-list {
  margin: 0.85rem 0 1.2rem;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  list-style: none;
}

.card-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.kit-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 680;
}

.research-preview,
.research-grid {
  display: grid;
  gap: 1rem;
}

.research-preview {
  grid-template-columns: repeat(3, 1fr);
}

.research-grid {
  grid-template-columns: repeat(2, 1fr);
}

.research-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.research-card h3 {
  margin-top: 2.4rem;
}

.research-card > p:not(.eyebrow, .source-note) {
  color: var(--muted);
}

.mini-facts {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0 0;
}

.mini-facts div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.mini-facts dt {
  color: var(--coral-deep);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-facts dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.source-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.source-note span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 720;
}

.page-hero,
.detail-hero {
  min-height: 500px;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(47%, 760px);
  content: "";
  opacity: 0.72;
  background-position: center;
  background-size: cover;
  filter: saturate(0.78);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}

.page-hero::after,
.detail-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, var(--forest-950) 0%, rgba(20, 38, 26, 0.94) 56%, rgba(20, 38, 26, 0.15) 100%);
}

.page-registry .page-hero::before,
.page-detail .detail-hero::before {
  background-image: url("/assets/images/bhl-cape-aitonia.webp");
}

.page-collection .page-hero::before {
  background-image: url("/assets/images/usda-surprise-apple.webp");
  background-position: center 31%;
}

.page-how .page-hero::before {
  background-image: url("/assets/images/bhl-cotinus-dais.webp");
}

.page-review .page-hero::before,
.page-about .page-hero::before {
  background-image: url("/assets/images/bhl-rose-vervain.webp");
}

.page-research .page-hero::before {
  background-image: url("/assets/images/bhl-barbadoes-lily.webp");
}

.page-methodology .page-hero::before {
  background-image: url("/assets/images/bhl-barbadoes-lily.webp");
  background-position: center 34%;
}

.page-contribute .page-hero::before {
  background-image: url("/assets/images/smithsonian-decoration-panel.webp");
}

.page-credits .page-hero::before {
  background-image: url("/assets/images/smithsonian-moon-autumn-plants.webp");
  background-position: center 58%;
}

.page-hero__inner {
  display: block;
  min-height: 0;
  padding-block: 6.5rem 5rem;
}

.page-hero__inner > h1,
.page-hero__inner > p,
.page-hero__inner > div:first-child {
  max-width: 700px;
}

.page-hero__inner > p:not(.eyebrow),
.detail-hero__inner > p:not(.eyebrow) {
  color: rgba(255, 253, 246, 0.68);
  font-size: 1.08rem;
}

.page-hero__inner--split {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
}

.page-hero--about::before {
  opacity: 0.22;
}

.about-plate {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--paper-warm);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.about-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__inner {
  padding-block: 5rem 4rem;
}

.detail-hero__inner h1 {
  max-width: 780px;
  margin-top: 0.65rem;
}

.detail-hero__inner > p:last-child {
  max-width: 700px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  color: rgba(255, 253, 246, 0.52);
  font-size: 0.72rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.detail-main > .prose-section {
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.detail-main > .prose-section:first-child {
  padding-top: 0;
}

.prose-section h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.business-lecture {
  position: relative;
}

.business-lecture__copy {
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.business-lecture__copy p {
  margin-top: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  break-inside: avoid;
}

.business-lecture__takeaway {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: baseline;
  margin-top: 1.6rem;
  padding: 1.25rem;
  border: 1px solid rgba(156, 73, 46, 0.24);
  border-radius: var(--radius);
  background: #f2e3da;
}

.business-lecture__takeaway span {
  color: var(--coral-deep);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.business-lecture__takeaway p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 20, "SOFT" 58, "WONK" 0;
  font-size: 1.05rem;
  font-weight: 570;
  line-height: 1.45;
}

.purpose-list,
.boundary-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  list-style: none;
}

.purpose-list li,
.boundary-list li {
  padding: 0.85rem 1rem;
  background: var(--cream);
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contract-grid > div {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.contract-grid h3 {
  font-size: 1rem;
}

.limitations {
  margin-top: 1.5rem;
  padding-inline: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: #f2e3da;
}

.lineage-note {
  padding: 1.2rem;
  border-left: 3px solid var(--gold);
  background: var(--paper-warm);
  font-weight: 600;
}

.detail-sidebar {
  display: grid;
  gap: 1rem;
}

.sticky-card {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-small);
}

.sticky-card h2 {
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 1.7rem;
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -0.025em;
  word-spacing: normal;
}

.sticky-card > p {
  color: var(--muted);
  font-size: 0.83rem;
}

.fact-list {
  margin: 1.1rem 0;
}

.fact-list div {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0.18rem 0 0;
  font-size: 0.82rem;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.sidebar-note {
  padding: 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.sidebar-note h2 {
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 1rem;
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -0.025em;
  word-spacing: normal;
}

.sidebar-note p {
  color: var(--muted);
  font-size: 0.78rem;
}

.record-pagination {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding-top: 2rem;
}

.record-pagination a {
  min-height: 110px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 620;
  text-decoration: none;
}

.record-pagination a:last-child {
  text-align: right;
}

.record-pagination span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registry-section {
  padding-top: 2.5rem;
}

.registry-controls {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto 110px;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.8);
}

.search-label {
  display: block;
  margin: 0 0 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registry-count {
  margin: 0 0 0.7rem;
}

.collection-sequence {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.sequence-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.sequence-item__number {
  padding-top: 1.1rem;
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 2.7rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sequence-item .kit-card {
  min-height: 0;
}

.definition-panel {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.definition-panel__formula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.definition-panel__formula span {
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--forest-700);
  background: var(--leaf-100);
  font-family: var(--font-body);
  font-weight: 650;
}

.definition-panel__formula b {
  color: var(--coral-deep);
  font-weight: 500;
}

.definition-panel > p {
  max-width: 720px;
  margin: 2rem 0 0;
  color: var(--muted);
}

.process-list {
  margin-top: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list > li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1.2rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.process-list > li > span {
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.process-list h3 {
  font-size: 1.15rem;
}

.process-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.standard-grid {
  grid-template-columns: repeat(3, 1fr);
}

.evidence-grid {
  grid-template-columns: repeat(4, 1fr);
}

.boundary-grid {
  grid-template-columns: repeat(2, 1fr);
}

.section--botanic .boundary-grid--bright article {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}

.section-action {
  margin-top: 2rem;
  text-align: center;
}

.editorial-grid {
  grid-template-columns: 180px minmax(0, 1fr);
}

.principle-grid {
  grid-template-columns: repeat(3, 1fr);
}

.principle-grid--bright {
  grid-template-columns: repeat(4, 1fr);
}

.source-grid article h3,
.principle-grid article h3,
.boundary-grid article h3,
.evidence-grid article h3 {
  margin-top: 2.2rem;
}

.source-grid article p,
.principle-grid article p,
.boundary-grid article p,
.evidence-grid article p {
  color: var(--muted);
}

.source-grid article a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.7rem;
  color: var(--forest-700);
  font-weight: 680;
  text-decoration: none;
}

.credit-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.credit-card__image {
  height: 100%;
  min-height: 420px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.credit-card__image img {
  height: 100%;
  object-fit: cover;
}

.credit-card__body {
  padding: 1.5rem;
}

.credit-card__body h2 {
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 1.5rem;
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -0.025em;
  word-spacing: normal;
}

.credit-card__body > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.8rem;
}

.credit-card__details {
  display: grid;
  gap: 0.4rem;
  margin-block: 1rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.credit-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-top: 1rem;
}

.credit-card__links > a:not(.text-link) {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-decoration: none;
}

.credit-card__links > a:not(.text-link):hover {
  color: var(--forest-700);
}

.not-found {
  min-height: 72svh;
  display: grid;
  align-items: center;
}

.not-found__inner {
  padding-block: 6rem;
}

.not-found__inner h1 {
  max-width: 850px;
}

.not-found__inner > p:not(.eyebrow) {
  color: rgba(255, 253, 246, 0.65);
}

/* Wonderland-inspired method demo */

.demo-teaser {
  position: relative;
  display: grid;
  min-height: 410px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 30%, rgba(197, 167, 99, 0.2), transparent 17rem),
    linear-gradient(135deg, var(--forest-950), #213e2a);
  box-shadow: var(--shadow);
}

.demo-teaser__copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.demo-teaser__copy h2 {
  max-width: 620px;
  color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.demo-teaser__copy > p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(255, 253, 246, 0.68);
}

.demo-teaser__copy .button {
  margin-top: 1.1rem;
  color: var(--cream);
  border-color: rgba(255, 253, 246, 0.3);
}

.demo-teaser__scene {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background:
    linear-gradient(90deg, #213e2a 0%, rgba(20, 38, 26, 0.24) 42%),
    url("/assets/images/bhl-cape-aitonia.webp") center 36% / cover;
}

.demo-teaser__scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 52%, rgba(13, 23, 16, 0.82)),
    radial-gradient(circle at 66% 42%, transparent 0 22%, rgba(13, 23, 16, 0.24) 52%);
}

.demo-teaser__door,
.wonder-door {
  position: absolute;
  z-index: 2;
  display: block;
  width: 138px;
  height: 224px;
  border: 5px solid var(--gold);
  border-bottom: 0;
  border-radius: 74px 74px 4px 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 18% 82%, rgba(0, 0, 0, 0.14)),
    var(--forest-900);
  box-shadow:
    0 0 0 8px rgba(13, 23, 16, 0.42),
    0 28px 55px rgba(0, 0, 0, 0.38);
}

.demo-teaser__door {
  right: 18%;
  bottom: 0;
}

.demo-teaser__door i,
.wonder-door i {
  position: absolute;
  top: 53%;
  right: 17px;
  width: 11px;
  height: 11px;
  border: 2px solid #6d5226;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 167, 99, 0.15);
}

.demo-teaser__card,
.wonder-card {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 72px;
  height: 100px;
  place-items: center;
  border: 1px solid rgba(32, 44, 32, 0.35);
  border-radius: 6px;
  color: var(--coral-deep);
  background: var(--paper);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 720;
}

.demo-teaser__card::after,
.wonder-card::after {
  content: "♦";
  font-size: 1rem;
}

.demo-teaser__card--one {
  top: 14%;
  left: 12%;
  transform: rotate(-12deg);
  animation: card-float 4.8s ease-in-out infinite;
}

.demo-teaser__card--two {
  top: 28%;
  right: 8%;
  transform: rotate(10deg);
  animation: card-float 5.4s ease-in-out 700ms infinite reverse;
}

.rabbit-token {
  position: absolute;
  z-index: 4;
  display: block;
  width: 42px;
  height: 52px;
}

.rabbit-token::before {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 27px;
  height: 33px;
  content: "";
  border-radius: 54% 52% 42% 48%;
  background: var(--cream);
  box-shadow:
    -10px 18px 0 -6px rgba(255, 253, 246, 0.92),
    10px 21px 0 -7px rgba(255, 253, 246, 0.92);
}

.rabbit-token::after {
  position: absolute;
  top: 9px;
  left: 3px;
  width: 25px;
  height: 24px;
  content: "";
  border-radius: 50%;
  background: var(--cream);
  box-shadow: -8px 8px 0 -5px var(--cream);
}

.rabbit-token i::before,
.rabbit-token i::after {
  position: absolute;
  z-index: 1;
  top: -5px;
  width: 8px;
  height: 27px;
  content: "";
  border: 2px solid var(--cream);
  border-radius: 50% 50% 40% 40%;
  background: var(--coral);
  transform-origin: bottom;
}

.rabbit-token i::before {
  left: 8px;
  transform: rotate(-8deg);
}

.rabbit-token i::after {
  left: 19px;
  transform: rotate(12deg);
}

.rabbit-token--teaser {
  right: 41%;
  bottom: 10%;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.35));
  animation: rabbit-hop 2.8s ease-in-out infinite;
}

.demo-hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--header-height)));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 28% 26%, rgba(197, 167, 99, 0.14), transparent 20rem),
    linear-gradient(135deg, var(--forest-1000), #1c3a27 72%, #38523b);
}

.demo-hero::before {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: min(61%, 960px);
  content: "";
  opacity: 0.58;
  background:
    linear-gradient(90deg, var(--forest-950), transparent 46%),
    url("/assets/images/bhl-barbadoes-lily.webp") center 38% / cover;
  filter: saturate(0.72) contrast(1.05);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}

.demo-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, var(--forest-950) 0%, rgba(20, 38, 26, 0.89) 51%, rgba(13, 23, 16, 0.15)),
    linear-gradient(180deg, transparent 55%, rgba(13, 23, 16, 0.5));
}

.demo-hero__inner {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
  padding-block: clamp(6rem, 12vw, 9rem);
}

.demo-hero__inner h1 {
  max-width: 810px;
  color: var(--cream);
  font-size: clamp(3.4rem, 7.6vw, 7.1rem);
  line-height: 0.9;
}

.demo-hero__inner > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 253, 246, 0.72);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.demo-hero__note {
  margin-top: 1rem;
  font-size: 0.78rem !important;
  letter-spacing: 0.035em;
}

.demo-hero__garden {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.wonder-door {
  right: clamp(7%, 13vw, 18%);
  bottom: -14px;
  width: clamp(115px, 13vw, 168px);
  height: clamp(190px, 23vw, 274px);
  transform: perspective(700px) rotateY(-8deg);
  animation: door-glow 4.8s ease-in-out infinite;
}

.wonder-card--one {
  top: 14%;
  right: 12%;
  transform: rotate(12deg);
  animation: card-float 5s ease-in-out infinite;
}

.wonder-card--two {
  right: 38%;
  bottom: 12%;
  transform: rotate(-15deg) scale(0.82);
  animation: card-float 6s ease-in-out 900ms infinite reverse;
}

.wonder-clock {
  position: absolute;
  z-index: 2;
  top: 17%;
  right: 34%;
  display: block;
  width: 104px;
  height: 104px;
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: rgba(246, 241, 229, 0.9);
  box-shadow:
    0 0 0 7px rgba(13, 23, 16, 0.36),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.wonder-clock::before {
  position: absolute;
  inset: 9px;
  content: "";
  border: 1px dashed rgba(136, 70, 48, 0.58);
  border-radius: inherit;
}

.wonder-clock i,
.wonder-clock b {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--coral-deep);
  transform-origin: 50% 100%;
}

.wonder-clock i {
  height: 31px;
  transform: translate(-50%, -100%) rotate(34deg);
  animation: clock-turn 12s linear infinite;
}

.wonder-clock b {
  height: 23px;
  transform: translate(-50%, -100%) rotate(132deg);
}

.rabbit-token--hero {
  right: 28%;
  bottom: 7%;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.38));
  animation: rabbit-hop 2.7s ease-in-out infinite;
}

.demo-section {
  position: relative;
}

.demo-intro {
  margin-bottom: 2rem;
}

.demo-game {
  --demo-progress: 0%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.demo-game__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.demo-game__progress-text {
  margin: 0 0 0.45rem;
  color: var(--forest-700);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.demo-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(32, 44, 32, 0.12);
}

.demo-progress span {
  display: block;
  width: var(--demo-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transition: width 240ms ease;
}

.demo-reset {
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 0;
  color: var(--forest-700);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.24em;
  cursor: pointer;
}

.demo-specimens {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.demo-specimens li {
  display: grid;
  min-height: 74px;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.8rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 680;
  line-height: 1.25;
  transition: color 180ms ease, background 180ms ease;
}

.demo-specimens li:last-child {
  border-right: 0;
}

.demo-specimens li span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.65rem;
}

.demo-specimens li.is-collected {
  color: var(--forest-900);
  background: rgba(174, 202, 162, 0.25);
}

.demo-specimens li.is-collected span {
  color: var(--cream);
  border-color: var(--forest-700);
  background: var(--forest-700);
}

.demo-game__body {
  display: grid;
  min-height: 690px;
  grid-template-columns: 285px minmax(0, 1fr);
}

.demo-route {
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: var(--paper-warm);
}

.demo-route__sky {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(13, 23, 16, 0.48), rgba(13, 23, 16, 0.88)),
    url("/assets/images/bhl-cape-aitonia.webp") center / cover;
}

.demo-route__sky::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 48%, rgba(197, 167, 99, 0.34) 49% 51%, transparent 52%);
  opacity: 0.65;
}

.demo-route ol {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 590px;
  grid-template-rows: repeat(5, 1fr);
  margin: 0;
  padding: 1rem 1rem 1rem 4.2rem;
  list-style: none;
}

.demo-route li {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 253, 246, 0.14);
}

.demo-route li:last-child {
  border-bottom: 0;
}

.demo-route li span {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.66rem;
}

.demo-route li b {
  font-size: 0.72rem;
  line-height: 1.25;
}

.demo-route > p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.rabbit-token--route {
  left: 22px;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.42));
  transition: top 240ms ease;
}

.demo-game[data-demo-position="0"] .rabbit-token--route {
  top: 7%;
}

.demo-game[data-demo-position="1"] .rabbit-token--route {
  top: 26%;
}

.demo-game[data-demo-position="2"] .rabbit-token--route {
  top: 45%;
}

.demo-game[data-demo-position="3"] .rabbit-token--route {
  top: 64%;
}

.demo-game[data-demo-position="4"] .rabbit-token--route,
.demo-game[data-demo-position="5"] .rabbit-token--route {
  top: 83%;
}

.demo-gates {
  display: grid;
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

.demo-gate {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.js .demo-gate:not(.is-active) {
  display: none;
}

.demo-gate > legend {
  display: block;
  width: 100%;
  max-width: 790px;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 52, "SOFT" 68, "WONK" 1;
  font-size: clamp(1.65rem, 3.4vw, 3.1rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.demo-gate > legend span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.demo-gate__scene {
  margin: 0.85rem 0 1.4rem;
  color: var(--muted);
  font-style: italic;
}

.demo-choices {
  display: grid;
  gap: 0.65rem;
}

.demo-choice {
  position: relative;
  display: grid;
  min-height: 92px;
  grid-template-columns: 22px 42px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.demo-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(55, 98, 64, 0.5);
  background: var(--cream);
}

.demo-choice:has(input:checked) {
  border-color: var(--forest-700);
  background: rgba(174, 202, 162, 0.22);
  box-shadow: 0 0 0 2px rgba(55, 98, 64, 0.12);
}

.demo-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--forest-700);
}

.demo-choice__mark {
  display: grid;
  width: 38px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--coral-deep);
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 760;
  box-shadow: var(--shadow-small);
}

.demo-choice__copy {
  display: grid;
  gap: 0.15rem;
}

.demo-choice__copy strong {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.demo-choice__copy > span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.demo-choice.is-correct {
  border-color: var(--forest-700);
  background: rgba(174, 202, 162, 0.27);
}

.demo-choice.is-wrong {
  border-color: var(--coral);
  background: rgba(189, 107, 78, 0.1);
  animation: choice-shake 220ms ease;
}

.demo-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.demo-feedback {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-sm);
  background: #f7e7dc;
}

.demo-feedback[data-state="correct"] {
  border-left-color: var(--forest-700);
  background: rgba(174, 202, 162, 0.27);
}

.demo-feedback .eyebrow {
  margin-bottom: 0.25rem;
}

.demo-feedback h3 {
  font-size: 1.25rem;
}

.demo-feedback > p:last-child {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.demo-next {
  margin-top: 1rem;
}

.demo-noscript-answer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.demo-noscript-answer summary {
  min-height: 44px;
  color: var(--forest-700);
  font-weight: 720;
  cursor: pointer;
}

.js .demo-noscript-answer {
  display: none;
}

.demo-outcome {
  padding: clamp(1.8rem, 5vw, 4.5rem);
  color: var(--cream);
  background:
    radial-gradient(circle at 92% 8%, rgba(197, 167, 99, 0.24), transparent 24rem),
    linear-gradient(135deg, var(--forest-950), #24412c);
}

.js .demo-outcome {
  display: none;
}

.js .demo-outcome.is-visible {
  display: block;
  animation: outcome-open 280ms ease both;
}

.demo-outcome h2 {
  max-width: 760px;
  color: var(--cream);
}

.demo-outcome > p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 253, 246, 0.72);
}

.demo-outcome__facts {
  display: grid;
  max-width: 860px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2rem 0;
  padding: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-dark);
}

.demo-outcome__facts div {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
}

.demo-outcome__facts dt {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.demo-outcome__facts dd {
  margin: 0.4rem 0 0;
  color: var(--cream);
  font-weight: 680;
}

.demo-outcome .button--quiet {
  color: var(--cream);
  border-color: rgba(255, 253, 246, 0.3);
}

/* Curator profile */

.page-curator .page-hero::before {
  background-image: url("/assets/images/bhl-rose-vervain.webp");
  background-position: center 40%;
  opacity: 0.34;
}

.page-hero__inner.curator-hero {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.curator-hero__copy {
  max-width: 790px;
}

.curator-hero__copy h1 {
  max-width: 790px;
}

.curator-hero__copy > p:not(.eyebrow) {
  max-width: 710px;
}

.curator-portrait {
  position: relative;
  width: min(100%, 290px);
  justify-self: end;
  padding: 12px;
  border: 1px solid rgba(255, 253, 246, 0.22);
  border-radius: var(--radius);
  background: rgba(13, 23, 16, 0.58);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(1.5deg);
}

.curator-portrait::before {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 74px;
  height: 26px;
  content: "";
  background: rgba(226, 214, 189, 0.74);
  transform: translateX(-50%) rotate(-2deg);
}

.curator-portrait__frame {
  overflow: hidden;
  border: 1px solid rgba(255, 253, 246, 0.18);
  background: #111a2f;
}

.curator-portrait__frame img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.curator-portrait figcaption {
  display: grid;
  padding: 1rem 0.35rem 0.2rem;
}

.curator-portrait figcaption strong {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.curator-portrait figcaption span,
.curator-portrait figcaption a {
  color: rgba(255, 253, 246, 0.58);
  font-size: 0.7rem;
}

.curator-portrait figcaption a {
  min-height: 34px;
  padding-top: 0.4rem;
}

.curation-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.curation-grid article {
  min-height: 330px;
  padding: 1.35rem;
  background: var(--cream);
}

.curation-grid article > span {
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 760;
}

.curation-grid h3 {
  margin-top: 5rem;
  font-size: 1.4rem;
}

.curation-grid p {
  color: var(--muted);
  font-size: 0.84rem;
}

.curator-lab__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.curator-lab__copy > p {
  margin-top: 0;
  color: rgba(255, 253, 246, 0.7);
}

.curator-lab blockquote {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0 1.5rem;
  border-top: 1px solid var(--line-dark);
  border-left: 3px solid var(--gold);
}

.curator-lab blockquote p {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 70, "WONK" 1;
  font-size: clamp(1.4rem, 2.7vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.commitment-list {
  border-top: 1px solid var(--line);
}

.commitment-list article {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: 2rem;
  align-items: baseline;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.commitment-list strong {
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.commitment-list p {
  margin: 0;
  color: var(--muted);
}

.curator-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.curator-contact h2 {
  max-width: 690px;
}

.curator-contact > div > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
}

.curator-independence {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.curator-independence > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.curator-independence .curator-portrait-rights {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

/* Botanical visual-direction study */

.page-visual-directions {
  background: var(--paper);
}

.direction-hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  padding-block: clamp(5.5rem, 9vw, 8rem) 4rem;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 8%, rgba(170, 209, 159, 0.13), transparent 24rem),
    radial-gradient(circle at 84% 42%, rgba(189, 107, 78, 0.13), transparent 30rem),
    linear-gradient(142deg, #09110d, var(--forest-950) 58%, #213726);
}

.direction-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(#000, transparent 88%);
}

.direction-hero__copy,
.direction-triptych,
.direction-hero__cue {
  position: relative;
  z-index: 2;
}

.direction-hero__copy h1 {
  max-width: 1040px;
  color: var(--cream);
  font-size: clamp(3.8rem, 8.1vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.direction-hero__copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 1.6rem 0 0;
  color: rgba(255, 253, 246, 0.7);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.direction-triptych {
  display: grid;
  height: min(51vw, 610px);
  min-height: 500px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.direction-door {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 253, 246, 0.22);
  border-radius: 18px;
  color: var(--cream);
  background: var(--forest-1000);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.33);
  text-decoration: none;
  transition: border-color 240ms ease, transform 240ms ease;
}

.direction-door:nth-child(1) {
  transform: rotate(-0.65deg);
}

.direction-door:nth-child(2) {
  transform: translateY(1.2rem);
}

.direction-door:nth-child(3) {
  transform: rotate(0.65deg);
}

.direction-door:hover {
  z-index: 3;
  border-color: rgba(255, 253, 246, 0.62);
  transform: translateY(-8px);
}

.direction-door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: direction-breathe 18s ease-in-out infinite alternate;
  transition: filter 400ms ease, transform 500ms ease;
}

.direction-door:nth-child(2) img {
  animation-delay: -6s;
}

.direction-door:nth-child(3) img {
  animation-delay: -12s;
}

.direction-door--night img {
  object-position: center 37%;
  filter: saturate(0.9) contrast(1.05) brightness(0.78);
}

.direction-door--herbarium img {
  object-position: center 34%;
  filter: saturate(0.72) contrast(1.04) brightness(0.82);
}

.direction-door--orchard img {
  object-position: center 30%;
  filter: saturate(0.88) brightness(0.84);
}

.direction-door:hover img {
  filter: saturate(1) contrast(1.02) brightness(0.9);
}

.direction-door__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 12, 8, 0.02) 28%, rgba(6, 12, 8, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 12, 8, 0.15), transparent 55%);
}

.direction-door__copy {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  left: 1.35rem;
  z-index: 2;
}

.direction-door__copy small,
.direction-door__copy strong,
.direction-door__copy em {
  display: block;
}

.direction-door__copy small {
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.14em;
}

.direction-door__copy strong {
  max-width: 280px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 44, "SOFT" 70, "WONK" 1;
  font-size: clamp(1.45rem, 2.6vw, 2.5rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.direction-door__copy em {
  margin-top: 0.55rem;
  color: rgba(255, 253, 246, 0.68);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
  transform: rotate(-1deg);
}

.direction-hero__cue {
  margin-top: 3rem;
  color: rgba(255, 253, 246, 0.55);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.direction-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
  overflow: hidden;
}

.direction-principle-grid article {
  min-height: 300px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--cream);
}

.direction-principle-grid article > span {
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.direction-principle-grid h3 {
  margin-top: 5rem;
}

.direction-principle-grid p {
  color: var(--muted);
}

.visual-direction {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6.5rem, 12vw, 11rem);
  scroll-margin-top: calc(var(--header-height) + 34px);
}

.visual-direction::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 88% 8%, currentColor 0 1px, transparent 1.5px),
    radial-gradient(circle at 10% 90%, currentColor 0 1px, transparent 1.5px);
  background-size: 46px 46px, 69px 69px;
  mask-image: linear-gradient(135deg, #000, transparent 42%, #000);
}

.visual-direction--night {
  --direction-card: rgba(12, 25, 17, 0.91);
  --direction-mat: #09100c;
  --direction-line: rgba(255, 253, 246, 0.18);
  --direction-copy: rgba(255, 253, 246, 0.68);
  --direction-accent: #d2ba78;
  color: rgba(255, 253, 246, 0.78);
  background:
    radial-gradient(circle at 85% 2%, rgba(143, 34, 35, 0.25), transparent 31rem),
    radial-gradient(circle at 9% 56%, rgba(112, 151, 91, 0.13), transparent 26rem),
    #101b14;
}

.visual-direction--herbarium {
  --direction-card: rgba(255, 252, 243, 0.84);
  --direction-mat: #d8d0bd;
  --direction-line: rgba(56, 50, 39, 0.18);
  --direction-copy: #5c6258;
  --direction-accent: #316675;
  color: var(--ink);
  background:
    linear-gradient(rgba(64, 57, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 57, 44, 0.035) 1px, transparent 1px),
    #e7dfce;
  background-size: 28px 28px;
}

.visual-direction--orchard {
  --direction-card: rgba(255, 252, 242, 0.9);
  --direction-mat: #eadfca;
  --direction-line: rgba(81, 50, 32, 0.18);
  --direction-copy: #685c4f;
  --direction-accent: #9a3f2f;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(168, 65, 43, 0.13), transparent 31rem),
    radial-gradient(circle at 7% 64%, rgba(79, 112, 58, 0.12), transparent 26rem),
    #f1e7d3;
}

.direction-set__mast {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(3rem, 9vw, 8rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.direction-set__number {
  margin: 0 0 2rem;
  color: var(--direction-accent);
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 650;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.direction-set__title h2 {
  max-width: 900px;
  color: inherit;
  font-size: clamp(3.5rem, 7.2vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.direction-set__title > p:last-child {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: var(--direction-copy);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.visual-direction--night .eyebrow {
  color: var(--gold);
}

.direction-set__brief {
  padding-top: 1.5rem;
  border-top: 1px solid var(--direction-line);
}

.direction-set__brief > p {
  margin: 0;
  color: var(--direction-copy);
  font-size: 0.9rem;
}

.direction-set__brief > p span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--direction-accent);
  font-size: 0.63rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.direction-palette {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.direction-palette li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--direction-copy);
  font-size: 0.7rem;
}

.palette-dot {
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--direction-line);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.palette-dot--night-1 { background: #101b14; }
.palette-dot--night-2 { background: #8d2f32; }
.palette-dot--night-3 { background: #e7dba9; }
.palette-dot--herbarium-1 { background: #e7dfce; }
.palette-dot--herbarium-2 { background: #504f48; }
.palette-dot--herbarium-3 { background: #2c687a; }
.palette-dot--orchard-1 { background: #a84635; }
.palette-dot--orchard-2 { background: #617449; }
.palette-dot--orchard-3 { background: #f1e7d3; }

.direction-mosaic {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.direction-specimen {
  min-width: 0;
  grid-column: span 3;
  overflow: hidden;
  border: 1px solid var(--direction-line);
  border-radius: 16px;
  background: var(--direction-card);
  box-shadow: 0 20px 60px rgba(26, 27, 20, 0.08);
}

.direction-specimen--feature {
  grid-column: span 7;
}

.direction-specimen:nth-child(2) {
  grid-column: span 5;
}

.direction-specimen__image {
  display: block;
  height: 360px;
  overflow: hidden;
  padding: 0.7rem;
  border-bottom: 1px solid var(--direction-line);
  background: var(--direction-mat);
}

.direction-specimen--feature .direction-specimen__image,
.direction-specimen:nth-child(2) .direction-specimen__image {
  height: 600px;
}

.direction-specimen__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 380ms ease;
}

.direction-specimen__image:hover img {
  transform: scale(1.018);
}

.direction-specimen__body {
  padding: 1.25rem;
}

.direction-specimen__role {
  margin: 0 0 1rem;
  color: var(--direction-accent);
  font-size: 0.62rem;
  font-weight: 790;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.direction-specimen h3 {
  color: inherit;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.direction-specimen__meaning {
  margin: 0.85rem 0 0;
  color: var(--direction-copy);
  font-size: 0.82rem;
  line-height: 1.62;
}

.direction-specimen__credit {
  margin: 1.35rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--direction-line);
  color: var(--direction-copy);
  font-size: 0.64rem;
  line-height: 1.5;
}

.direction-specimen__source {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--direction-accent);
  font-size: 0.7rem;
  font-weight: 730;
  text-decoration: none;
}

.direction-composition {
  background:
    radial-gradient(circle at 10% 15%, rgba(188, 159, 91, 0.14), transparent 23rem),
    radial-gradient(circle at 91% 83%, rgba(124, 171, 112, 0.12), transparent 24rem),
    var(--forest-950);
}

.direction-composition__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 8rem);
}

.direction-composition__inner > div > p:not(.eyebrow) {
  color: rgba(255, 253, 246, 0.66);
}

.direction-composition__map {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.direction-composition__map li {
  display: grid;
  grid-template-columns: 110px minmax(160px, 0.52fr) minmax(0, 0.48fr);
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line-dark);
}

.direction-composition__map span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.direction-composition__map strong {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
}

.direction-composition__map p {
  margin: 0;
  color: rgba(255, 253, 246, 0.58);
  font-size: 0.78rem;
}

@keyframes direction-breathe {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.055);
  }
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes rabbit-hop {
  0%,
  100% {
    translate: 0 0;
  }
  45% {
    translate: 4px -9px;
  }
  55% {
    translate: 7px -7px;
  }
}

@keyframes clock-turn {
  to {
    transform: translate(-50%, -100%) rotate(394deg);
  }
}

@keyframes door-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 8px rgba(13, 23, 16, 0.42),
      0 28px 55px rgba(0, 0, 0, 0.38);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(13, 23, 16, 0.36),
      0 0 34px rgba(197, 167, 99, 0.35),
      0 28px 55px rgba(0, 0, 0, 0.38);
  }
}

@keyframes choice-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-5px);
  }
  70% {
    transform: translateX(4px);
  }
}

@keyframes outcome-open {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 1080px) {
  .card-grid,
  .registry-grid,
  .kit-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner,
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 2rem;
  }

  .hero-art,
  .hero__art {
    min-height: 540px;
  }

  .timeline,
  .lifecycle {
    grid-template-columns: repeat(3, 1fr);
  }

  .anatomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-grid,
  .principle-grid--bright {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }

  .demo-game__body {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .demo-route ol {
    padding-left: 3.8rem;
  }

  .curation-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .direction-triptych {
    min-height: 470px;
  }

  .direction-mosaic .direction-specimen {
    grid-column: span 6;
  }

  .direction-mosaic .direction-specimen--feature {
    grid-column: span 8;
  }

  .direction-mosaic .direction-specimen:nth-child(2) {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 20px 1rem;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(4, 23, 26, 0.98);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.23);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }

  .hero-inner,
  .hero__inner {
    grid-template-columns: 1fr;
    align-content: center;
    padding-block: 4.5rem 2.5rem;
  }

  .hero-art,
  .hero__art {
    width: min(100%, 600px);
    min-height: 490px;
    justify-self: center;
  }

  .section-header,
  .split,
  .split-layout,
  .two-column,
  .page-hero-inner,
  .page-hero__inner,
  .editorial-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-rail,
  .sticky-rail {
    position: static;
  }

  .page-hero-art {
    display: none;
  }

  .page-hero::before,
  .detail-hero::before {
    width: 60%;
    opacity: 0.42;
  }

  .page-hero__inner--split {
    grid-template-columns: 1fr;
  }

  .page-hero__inner--split .about-plate {
    display: none;
  }

  .demo-teaser {
    grid-template-columns: 1fr;
  }

  .demo-teaser__scene {
    min-height: 330px;
  }

  .demo-hero::before {
    width: 72%;
    opacity: 0.38;
  }

  .demo-game__body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .demo-route {
    display: none;
  }

  .page-hero__inner.curator-hero,
  .curator-lab__inner,
  .curator-contact {
    grid-template-columns: 1fr;
  }

  .curator-portrait {
    justify-self: start;
  }

  .curation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow,
  .process-flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    right: 1rem;
    bottom: -0.6rem;
    transform: rotate(90deg);
  }

  .research-row {
    grid-template-columns: 1fr;
  }

  .research-label {
    padding: 0;
    border: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-preview,
  .research-grid,
  .review-grid,
  .standard-grid,
  .principle-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-grid {
    grid-template-columns: 1fr;
  }

  .registry-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .registry-count {
    margin: 0;
    text-align: left;
  }

  .direction-set__mast,
  .direction-composition__inner {
    grid-template-columns: 1fr;
  }

  .direction-set__brief {
    max-width: 620px;
  }

  .direction-composition__map {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .container,
  .shell,
  .narrow,
  .preview-banner p,
  .chapter-content,
  .image-chapter__content,
  .botanical-band__content {
    width: min(calc(100% - 28px), var(--container));
  }

  .preview-banner__inner {
    min-height: 36px;
    justify-content: space-between;
    padding-block: 0.45rem;
  }

  .preview-banner__inner span {
    display: none;
  }

  .preview-banner__inner a {
    font-size: 0.67rem;
  }

  .hero,
  .home-hero {
    min-height: auto;
  }

  .hero h1,
  .home-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-art,
  .hero__art {
    min-height: 400px;
  }

  .hero__art .hero-plate {
    width: min(68%, 280px);
    height: 410px;
  }

  .hero__art::before {
    left: 0;
    height: 37%;
  }

  .hero__art::after {
    right: 0;
  }

  .plate-label {
    right: 2%;
    max-width: 190px;
  }

  .stat-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:last-child {
    display: grid;
    grid-template-columns: 75px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    border-left: 0;
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .stat span,
  .stat-label {
    margin-top: 0;
  }

  .card-grid,
  .registry-grid,
  .kit-grid,
  .feature-grid,
  .criteria-grid,
  .mode-grid,
  .mission-grid,
  .credits-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .research-preview,
  .research-grid,
  .review-grid,
  .standard-grid,
  .principle-grid,
  .principle-grid--bright,
  .source-grid,
  .evidence-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .anatomy-grid {
    grid-template-columns: 1fr;
  }

  .anatomy-card {
    min-height: 200px;
  }

  .anatomy-card h3 {
    margin-top: 2.7rem;
  }

  .registry-tools,
  .filter-bar {
    position: static;
  }

  .registry-tools__inner,
  .filter-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .result-count {
    text-align: left;
  }

  .timeline,
  .lifecycle {
    grid-template-columns: 1fr;
  }

  .timeline-step,
  .lifecycle-step {
    min-height: 125px;
  }

  .timeline-step strong,
  .lifecycle-step strong {
    margin-top: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .flow > li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow > li:not(:last-child)::after {
    top: auto;
    right: 1rem;
    bottom: -0.6rem;
    transform: rotate(90deg);
  }

  .sequence-item,
  .process-list > li {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .business-lecture__copy {
    columns: 1;
  }

  .business-lecture__takeaway {
    grid-template-columns: 1fr;
  }

  .sequence-item__number {
    font-size: 2rem;
  }

  .record-pagination {
    grid-template-columns: 1fr;
  }

  .record-pagination a:last-child {
    text-align: left;
  }

  .credit-card {
    grid-template-columns: 1fr;
  }

  .credit-card__image {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-hero::before,
  .detail-hero::before {
    inset: auto 0 0;
    width: 100%;
    height: 48%;
    opacity: 0.25;
    mask-image: linear-gradient(0deg, #000, transparent);
  }

  .page-hero::after,
  .detail-hero::after {
    background: linear-gradient(180deg, var(--forest-950) 0%, rgba(20, 38, 26, 0.86) 100%);
  }

  .demo-hero__inner,
  .section > .demo-teaser,
  .section > .demo-intro,
  .section > .demo-game,
  .section > .curation-grid,
  .section > .curator-lab__inner,
  .section > .commitment-list,
  .section > .curator-contact {
    width: min(calc(100% - 28px), var(--container));
  }

  .demo-hero {
    min-height: 680px;
  }

  .demo-hero__inner {
    padding-block: 5rem 17rem;
  }

  .demo-hero__inner h1 {
    font-size: clamp(3.1rem, 15vw, 5.5rem);
  }

  .wonder-card--one,
  .wonder-card--two,
  .wonder-clock {
    display: none;
  }

  .wonder-door {
    right: 17%;
  }

  .rabbit-token--hero {
    right: 48%;
  }

  .demo-specimens {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-specimens li {
    min-height: 60px;
    border-bottom: 1px solid var(--line);
  }

  .demo-specimens li:nth-child(2n) {
    border-right: 0;
  }

  .demo-specimens li:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .demo-gates {
    padding: 1.25rem;
  }

  .demo-choice {
    min-height: 0;
    grid-template-columns: 20px 36px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.9rem;
  }

  .demo-choice__mark {
    width: 34px;
    height: 44px;
  }

  .demo-outcome__facts {
    grid-template-columns: 1fr;
  }

  .curation-grid {
    grid-template-columns: 1fr;
  }

  .curation-grid article {
    min-height: 0;
  }

  .curation-grid h3 {
    margin-top: 2.7rem;
  }

  .commitment-list article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .curator-portrait {
    width: 230px;
  }

  .direction-hero {
    min-height: 0;
    padding-block: 4.5rem 3rem;
  }

  .direction-hero__copy h1 {
    font-size: clamp(3.45rem, 17vw, 5.6rem);
  }

  .direction-triptych {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .direction-door,
  .direction-door:nth-child(1),
  .direction-door:nth-child(2),
  .direction-door:nth-child(3) {
    min-height: 360px;
    transform: none;
  }

  .direction-door:hover {
    transform: translateY(-4px);
  }

  .direction-principle-grid {
    grid-template-columns: 1fr;
  }

  .direction-principle-grid article {
    min-height: 230px;
  }

  .direction-principle-grid h3 {
    margin-top: 3.2rem;
  }

  .visual-direction {
    padding-block: 6rem;
  }

  .direction-set__mast {
    gap: 2rem;
  }

  .direction-set__title h2 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .direction-mosaic .direction-specimen,
  .direction-mosaic .direction-specimen--feature,
  .direction-mosaic .direction-specimen:nth-child(2) {
    grid-column: 1 / -1;
  }

  .direction-specimen__image,
  .direction-specimen--feature .direction-specimen__image,
  .direction-specimen:nth-child(2) .direction-specimen__image {
    height: 440px;
  }

  .direction-composition__map li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* =========================================================
   REGISTRY EXPERIENCES
   ========================================================= */

.registry-entry {
  padding-bottom: 2.7rem;
}

.registry-experience-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-small);
}

.registry-experience-switch button {
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 760;
  cursor: pointer;
}

.registry-experience-switch button span {
  margin-right: 0.45rem;
  color: var(--coral-deep);
}

.registry-experience-switch button[aria-pressed="true"] {
  color: var(--cream);
  background: var(--forest-900);
}

html.js .registry-experience[data-mode="world"]
  [data-registry-experience-panel="catalog"],
html.js .registry-experience[data-mode="catalog"]
  [data-registry-experience-panel="world"] {
  display: none;
}

.registry-world {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 7vw, 6rem) max(20px, calc((100vw - var(--container)) / 2));
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 74% 18%, rgba(70, 215, 191, 0.11), transparent 22rem),
    radial-gradient(circle at 12% 82%, rgba(189, 107, 78, 0.14), transparent 28rem),
    linear-gradient(145deg, #07110c, #102218 54%, #0a1510);
}

.registry-world::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.08;
  background:
    url("/assets/images/directions/herbarium-delany.webp") 102% 8% / min(42vw, 560px)
      auto no-repeat,
    url("/assets/images/directions/herbarium-roots.webp") -7% 103% / min(48vw, 680px)
      auto no-repeat;
  filter: grayscale(1) contrast(1.2);
}

.registry-world::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(174, 202, 162, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 202, 162, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.registry-world__canopy {
  position: absolute;
  top: -160px;
  right: -110px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(191, 246, 224, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(191, 246, 224, 0.025),
    0 0 0 86px rgba(191, 246, 224, 0.018);
}

.registry-world__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-5);
  margin-bottom: 2.25rem;
}

.registry-world__header > div:first-child {
  max-width: 780px;
}

.registry-world__header h2 {
  max-width: 760px;
  margin: 0.25rem 0 0.8rem;
  color: var(--cream);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.registry-world__header p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(255, 253, 247, 0.68);
}

.registry-world__views {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 10, 7, 0.48);
  backdrop-filter: blur(16px);
}

.registry-world__views button {
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.66);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 760;
  cursor: pointer;
}

.registry-world__views button[aria-selected="true"] {
  color: #06130d;
  background: var(--leaf-300);
}

.registry-world__announcement {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 1px solid rgba(197, 167, 99, 0.4);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(197, 167, 99, 0.1), rgba(3, 13, 9, 0.7));
}

.registry-world__announcement > div {
  min-width: 0;
}

.registry-world__announcement strong {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.registry-world__announcement p {
  overflow: hidden;
  margin-top: 0.15rem;
  color: rgba(255, 253, 247, 0.72);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-world__beacon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(189, 107, 78, 0.12);
}

.registry-world__beacon i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d88a6d;
  box-shadow: 0 0 0 5px rgba(216, 138, 109, 0.12), 0 0 20px #d88a6d;
  animation: rabbit-signal 1.8s ease-in-out infinite;
}

@keyframes rabbit-signal {
  50% {
    opacity: 0.4;
    transform: scale(0.72);
  }
}

.registry-world__missions {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.55rem;
  scrollbar-width: thin;
}

.registry-world__missions button {
  display: inline-flex;
  min-width: max-content;
  min-height: 42px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 253, 247, 0.68);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 720;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.registry-world__missions button span {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.registry-world__missions button[aria-pressed="true"] {
  border-color: rgba(174, 202, 162, 0.68);
  color: var(--cream);
  background: rgba(100, 136, 103, 0.22);
  box-shadow: inset 0 0 24px rgba(174, 202, 162, 0.07);
}

.warren-floor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 1rem;
}

.warren-floor__rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.warren-room {
  position: relative;
  min-width: 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.warren-room::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 0, rgba(77, 216, 188, 0.09), transparent 9rem),
    linear-gradient(120deg, transparent 48%, rgba(255, 255, 255, 0.035) 49%, transparent 50%);
}

.warren-room > header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.warren-room > header > span {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.warren-room h4 {
  margin: 0;
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.warren-room header p {
  margin-top: 0.12rem;
  color: rgba(255, 253, 247, 0.48);
  font-size: 0.7rem;
  line-height: 1.35;
}

.warren-room__staff {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.65rem;
}

.rabbit-staff {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 214px;
  grid-template-rows: 92px auto auto;
  align-content: start;
  justify-items: center;
  gap: 0.42rem;
  padding: 0.9rem 0.55rem 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(238, 229, 211, 0.22);
  border-radius: 14px;
  color: var(--cream);
  background:
    linear-gradient(160deg, rgba(246, 241, 229, 0.11), rgba(246, 241, 229, 0.025));
  cursor: pointer;
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease,
    background 220ms ease, box-shadow 220ms ease;
}

.rabbit-staff::before,
.rabbit-staff::after {
  position: absolute;
  width: 18px;
  height: 18px;
  color: rgba(197, 167, 99, 0.72);
  content: "♧";
  font-size: 0.72rem;
  line-height: 1;
}

.rabbit-staff::before {
  top: 7px;
  left: 8px;
}

.rabbit-staff::after {
  right: 8px;
  bottom: 7px;
  transform: rotate(180deg);
}

.rabbit-staff:hover,
.rabbit-staff:focus-visible {
  z-index: 3;
  border-color: rgba(174, 202, 162, 0.72);
  transform: translateY(-5px) rotate(-0.45deg);
  background:
    linear-gradient(160deg, rgba(174, 202, 162, 0.19), rgba(246, 241, 229, 0.04));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.rabbit-staff:not(.is-on-shift) {
  opacity: 0.42;
  filter: saturate(0.52);
}

.rabbit-staff.is-on-shift {
  border-color: rgba(108, 224, 199, 0.48);
  box-shadow: inset 0 0 24px rgba(77, 216, 188, 0.07);
}

.rabbit-staff.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(197, 167, 99, 0.14), inset 0 0 28px rgba(197, 167, 99, 0.1);
}

.rabbit-staff__identity {
  display: block;
  min-width: 0;
  text-align: center;
}

.rabbit-staff__identity strong {
  display: block;
  overflow: hidden;
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rabbit-staff__identity small {
  display: -webkit-box;
  min-height: 2.45em;
  margin-top: 0.22rem;
  overflow: hidden;
  color: rgba(255, 253, 247, 0.55);
  font-size: 0.64rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rabbit-staff__tool {
  max-width: 100%;
  overflow: hidden;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.68);
  background: rgba(0, 0, 0, 0.26);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rabbit-staff__status {
  position: absolute;
  top: 7px;
  right: 8px;
  color: rgba(174, 202, 162, 0.67);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rabbit-bot {
  position: relative;
  display: block;
  width: 62px;
  height: 88px;
  margin-inline: auto;
  transform-origin: 50% 100%;
  animation: rabbit-bot-breathe 3.8s ease-in-out infinite;
}

@keyframes rabbit-bot-breathe {
  50% {
    transform: translateY(-2px) rotate(0.7deg);
  }
}

.rabbit-bot__ear {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 13px;
  height: 35px;
  border: 1px solid rgba(237, 228, 205, 0.62);
  border-radius: 70% 70% 45% 45%;
  background:
    linear-gradient(90deg, rgba(238, 229, 211, 0.8), rgba(100, 136, 103, 0.25));
  box-shadow: inset 0 -8px rgba(189, 107, 78, 0.18);
  transform-origin: 50% 100%;
}

.rabbit-bot__ear::after {
  position: absolute;
  inset: 5px 4px 4px;
  border-radius: inherit;
  background: linear-gradient(#a75d47, rgba(197, 167, 99, 0.25));
  content: "";
  opacity: 0.72;
}

.rabbit-bot__ear--left {
  left: 16px;
  transform: rotate(-8deg);
  animation: rabbit-ear-left 5.2s ease-in-out infinite;
}

.rabbit-bot__ear--right {
  right: 14px;
  transform: rotate(10deg);
  animation: rabbit-ear-right 4.8s ease-in-out infinite;
}

@keyframes rabbit-ear-left {
  46%,
  54% {
    transform: rotate(-15deg);
  }
}

@keyframes rabbit-ear-right {
  48%,
  58% {
    transform: rotate(18deg);
  }
}

.rabbit-bot__head {
  position: absolute;
  top: 27px;
  left: 12px;
  z-index: 3;
  width: 40px;
  height: 33px;
  border: 1px solid rgba(255, 253, 247, 0.72);
  border-radius: 44% 44% 52% 52%;
  background:
    radial-gradient(circle at 30% 37%, #6ce0c7 0 2px, #0b2119 3px 5px, transparent 6px),
    linear-gradient(135deg, #e7dcc5 0 47%, #8f6d3d 48% 54%, #253d2b 55%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.rabbit-bot__head::before {
  position: absolute;
  top: 13px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #121d16;
  box-shadow: 0 0 7px #6ce0c7;
  content: "";
}

.rabbit-bot__head > i {
  position: absolute;
  bottom: 4px;
  left: 16px;
  width: 8px;
  height: 5px;
  border: 1px solid #6f3c2c;
  border-radius: 50% 50% 65% 65%;
  background: var(--coral);
}

.rabbit-bot__head > b {
  position: absolute;
  top: 3px;
  left: 18px;
  width: 1px;
  height: 24px;
  background: rgba(62, 47, 28, 0.42);
  box-shadow: 4px 0 rgba(255, 255, 255, 0.14);
}

.rabbit-bot__body {
  position: absolute;
  top: 57px;
  left: 16px;
  width: 32px;
  height: 26px;
  border: 1px solid rgba(197, 167, 99, 0.72);
  border-radius: 10px 10px 14px 14px;
  background:
    linear-gradient(115deg, #1d3a27 0 43%, #a8854c 44% 53%, #182b20 54%);
}

.rabbit-bot__body::after {
  position: absolute;
  top: 6px;
  right: -8px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(238, 229, 211, 0.55);
  border-radius: 50%;
  background: #d9cfbb;
  content: "";
  box-shadow: inset -4px -2px #897044;
}

.rabbit-bot__body > i {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 13px;
  height: 8px;
  border: 1px solid rgba(108, 224, 199, 0.46);
  border-radius: 3px;
  background: rgba(108, 224, 199, 0.12);
  box-shadow: inset 3px 0 #6ce0c7;
}

.rabbit-bot__arm {
  position: absolute;
  top: 61px;
  z-index: -1;
  width: 8px;
  height: 22px;
  border: 1px solid rgba(197, 167, 99, 0.5);
  border-radius: 6px;
  background: #274832;
}

.rabbit-bot__arm--left {
  left: 10px;
  transform: rotate(18deg);
}

.rabbit-bot__arm--right {
  right: 8px;
  transform: rotate(-22deg);
}

.rabbit-bot__foot {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 8px;
  border: 1px solid rgba(238, 229, 211, 0.6);
  border-radius: 55% 75% 40% 40%;
  background: #d9cfbb;
}

.rabbit-bot__foot--left {
  left: 10px;
  transform: rotate(-5deg);
}

.rabbit-bot__foot--right {
  right: 8px;
  transform: rotate(6deg);
}

.rabbit-bot--compact {
  width: 45px;
  height: 66px;
  transform: scale(0.78);
  transform-origin: 50% 100%;
}

.warren-console {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 0.75rem;
}

.warren-console > section {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(2, 12, 8, 0.56);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.warren-console strong {
  color: var(--cream);
  font-size: 0.86rem;
}

.warren-console p:not(.eyebrow),
.warren-console li {
  color: rgba(255, 253, 247, 0.62);
  font-size: 0.72rem;
  line-height: 1.45;
}

.warren-console ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0;
  list-style: none;
}

.warren-console li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.05rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 253, 247, 0.8);
}

.warren-console li span {
  color: rgba(255, 253, 247, 0.42);
  font-size: 0.62rem;
}

.warren-inspector {
  overflow: hidden;
  border-color: rgba(197, 167, 99, 0.38) !important;
  background:
    linear-gradient(145deg, rgba(197, 167, 99, 0.13), rgba(2, 12, 8, 0.62)) !important;
}

.warren-inspector__identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: end;
  gap: 0.7rem;
  margin: 0.2rem 0 0.7rem;
}

.warren-inspector__identity .rabbit-bot {
  margin-left: -0.45rem;
}

.warren-inspector__identity div {
  min-width: 0;
}

.warren-inspector__identity strong,
.warren-inspector__identity span {
  display: block;
}

.warren-inspector__identity span {
  overflow: hidden;
  color: rgba(255, 253, 247, 0.5);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warren-inspector__tool {
  display: block;
  margin-top: 0.65rem;
  color: rgba(255, 253, 247, 0.48);
  font-size: 0.62rem;
}

.warren-inspector__tool b {
  color: var(--gold);
}

.warren-inspector a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--leaf-300);
  font-size: 0.68rem;
  font-weight: 760;
}

html.js [data-world-view="floor"] [data-warren-panel="run"],
html.js [data-world-view="run"] [data-warren-panel="floor"] {
  display: none;
}

.rabbit-run {
  min-height: 670px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 110%, rgba(100, 136, 103, 0.21), transparent 32rem),
    rgba(0, 9, 6, 0.38);
  backdrop-filter: blur(18px);
}

.rabbit-run__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rabbit-run__controls button {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 253, 247, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  font-weight: 760;
  cursor: pointer;
}

.rabbit-run__controls button:first-child {
  border-color: var(--leaf-300);
  color: var(--forest-1000);
  background: var(--leaf-300);
}

.rabbit-run__controls p {
  margin-left: auto;
  color: rgba(255, 253, 247, 0.52);
  font-size: 0.68rem;
}

.rabbit-run__brief {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-5);
  padding: 2rem 1rem 1.4rem;
}

.rabbit-run__brief h3 {
  margin-top: 0.2rem;
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.rabbit-run__brief > p {
  max-width: 540px;
  color: rgba(255, 253, 247, 0.58);
}

.rabbit-run__pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.rabbit-run__pipeline::before {
  position: absolute;
  top: 50%;
  right: 4%;
  left: 4%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(100, 136, 103, 0.25), rgba(108, 224, 199, 0.6), rgba(197, 167, 99, 0.35));
  box-shadow: 0 0 18px rgba(108, 224, 199, 0.25);
}

.rabbit-run__stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  opacity: 0.34;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.rabbit-run__stage article {
  position: relative;
  min-height: 238px;
  padding: 1rem 0.8rem 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(246, 241, 229, 0.1), rgba(7, 19, 12, 0.84));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.rabbit-run__stage.is-current,
.rabbit-run__stage.is-complete {
  opacity: 1;
  transform: translateY(0);
}

.rabbit-run__stage.is-current article {
  border-color: rgba(108, 224, 199, 0.68);
  box-shadow: 0 0 0 2px rgba(108, 224, 199, 0.08), 0 20px 44px rgba(0, 0, 0, 0.28);
}

.rabbit-run__stage.is-complete article {
  border-color: rgba(197, 167, 99, 0.45);
}

.rabbit-run__stage .rabbit-bot {
  height: 70px;
  margin: -0.3rem auto 0.45rem;
}

.rabbit-run__number {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  color: var(--gold);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.rabbit-run__stage p,
.rabbit-run__stage h4,
.rabbit-run__stage span {
  display: block;
  text-align: center;
}

.rabbit-run__stage p {
  color: var(--leaf-300);
  font-size: 0.63rem;
  font-weight: 760;
}

.rabbit-run__stage h4 {
  min-height: 2.4em;
  margin-top: 0.2rem;
  color: var(--cream);
  font-size: 0.82rem;
  line-height: 1.2;
}

.rabbit-run__stage div > span {
  margin-top: 0.45rem;
  color: rgba(255, 253, 247, 0.43);
  font-size: 0.58rem;
}

.rabbit-run__stage a {
  display: block;
  margin-top: 0.75rem;
  color: rgba(255, 253, 247, 0.6);
  font-size: 0.58rem;
  font-weight: 720;
  text-align: center;
}

.rabbit-run__path {
  display: none;
}

.rabbit-run__gate {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 730px;
  margin: 1.2rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(197, 167, 99, 0.42);
  border-radius: 18px 18px 38px 38px;
  background: linear-gradient(145deg, rgba(197, 167, 99, 0.12), rgba(1, 11, 7, 0.52));
}

.rabbit-run__keyhole {
  position: relative;
  width: 32px;
  height: 42px;
  margin-inline: auto;
}

.rabbit-run__keyhole::before {
  position: absolute;
  top: 0;
  left: 6px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 16px rgba(197, 167, 99, 0.34);
}

.rabbit-run__keyhole::after {
  position: absolute;
  top: 16px;
  left: 12px;
  width: 8px;
  height: 22px;
  background: var(--gold);
  content: "";
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.rabbit-run__gate strong {
  color: var(--cream);
  font-size: 0.8rem;
}

/* Curator identity card: Wonderland playing-card grammar, not a reused portrait. */

.curator-playing-card {
  position: relative;
  width: min(340px, 100%);
  min-height: 520px;
  padding: 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 229, 0.82);
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(155deg, #fffaf0, #e8dfca);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(1.4deg);
}

.curator-playing-card::before {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(80, 61, 36, 0.28);
  border-radius: 14px;
  content: "";
}

.curator-playing-card::after {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(136, 70, 48, 0.3);
  border-radius: 10px;
  content: "";
}

.curator-playing-card__corner {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 34px;
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.74rem;
  line-height: 1;
  text-align: center;
}

.curator-playing-card__corner b,
.curator-playing-card__corner i {
  display: block;
  font-style: normal;
}

.curator-playing-card__corner i {
  margin-top: 0.2rem;
  font-size: 1rem;
}

.curator-playing-card__corner--top {
  top: 24px;
  left: 20px;
}

.curator-playing-card__corner--bottom {
  right: 20px;
  bottom: 22px;
  transform: rotate(180deg);
}

.curator-playing-card__portrait {
  position: relative;
  height: 270px;
  margin: 1.25rem 1.4rem 0;
  overflow: hidden;
  border: 1px solid rgba(32, 44, 32, 0.28);
  border-radius: 48% 48% 18px 18px;
  background: var(--forest-950);
}

.curator-playing-card__portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(3, 13, 9, 0.54), transparent 52%);
}

.curator-playing-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.84) contrast(1.08);
}

.curator-playing-card__portrait > span {
  position: absolute;
  right: 0;
  bottom: 0.7rem;
  left: 0;
  z-index: 1;
  color: var(--paper);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
}

.curator-playing-card__identity {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.45rem 0.5rem;
  text-align: center;
}

.curator-playing-card__identity .eyebrow {
  color: var(--coral-deep);
  font-size: 0.56rem;
}

.curator-playing-card__identity > strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32, "SOFT" 70, "WONK" 1;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.curator-playing-card__identity > span,
.curator-playing-card__identity > small {
  display: block;
}

.curator-playing-card__identity > span {
  margin-top: 0.3rem;
  color: var(--forest-800);
  font-size: 0.78rem;
  font-weight: 720;
}

.curator-playing-card__identity > small {
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.curator-playing-card__note {
  position: relative;
  z-index: 2;
  margin-top: 0.15rem;
  color: var(--coral-deep);
  font-family: var(--font-hand);
  font-size: 1.18rem;
  font-weight: 600;
  text-align: center;
  transform: rotate(-2deg);
}

.curator-playing-card > a {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0.45rem auto 0;
  color: var(--forest-800);
  font-size: 0.62rem;
  font-weight: 760;
  text-align: center;
}

.curator-playing-card--compact {
  display: grid;
  width: 100%;
  min-height: 0;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0 1rem;
  margin-top: 2rem;
  padding: 0.8rem;
  transform: none;
}

.curator-playing-card--compact .curator-playing-card__portrait {
  grid-row: 1 / 4;
  height: 190px;
  margin: 0.45rem;
  border-radius: 44% 44% 14px 14px;
}

.curator-playing-card--compact .curator-playing-card__identity {
  align-self: end;
  padding: 1rem 2.2rem 0.2rem 0;
  text-align: left;
}

.curator-playing-card--compact .curator-playing-card__note,
.curator-playing-card--compact > a {
  margin-left: 0;
  padding-right: 2.2rem;
  text-align: left;
}

.curator-playing-card--compact .curator-playing-card__corner--bottom {
  display: none;
}

/* Live typography comparison. */

.type-study-hero h1 {
  max-width: 900px;
}

.type-study {
  padding-top: 4.5rem;
}

.type-direction-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.type-direction {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-small);
}

.type-direction__meta {
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  background: rgba(238, 229, 211, 0.6);
}

.type-direction__meta span,
.type-direction__meta strong,
.type-direction__meta p {
  display: block;
}

.type-direction__meta span {
  color: var(--coral-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.type-direction__meta strong {
  margin-top: 1rem;
  font-size: 1rem;
}

.type-direction__meta p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.type-direction__sample {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.type-direction__headline {
  max-width: 860px;
  color: var(--forest-950);
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.type-direction__headline em {
  display: inline-block;
  color: var(--coral-deep);
  font-style: normal;
  white-space: nowrap;
}

.type-direction__sample > p:not(.type-direction__headline) {
  max-width: 690px;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-family: "Inter", sans-serif;
}

.type-direction__sample > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.3rem;
}

.type-direction__sample button {
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  background: var(--forest-900);
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 760;
}

.type-direction__sample span {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.type-direction__verdict {
  grid-column: 1 / -1;
  padding: 0.8rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(246, 241, 229, 0.7);
  font-size: 0.72rem;
}

.type-direction__verdict strong {
  color: var(--ink);
}

.type-direction--fraunces {
  border-color: rgba(100, 136, 103, 0.48);
  box-shadow: 0 18px 52px rgba(48, 80, 54, 0.13);
}

.type-direction--fraunces .type-direction__headline {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 75, "WONK" 1, "opsz" 90;
  font-weight: 610;
}

.type-direction--fraunces .type-direction__headline em {
  font-family: "Caveat", cursive;
  font-size: 0.84em;
  font-weight: 650;
  letter-spacing: -0.025em;
  transform: rotate(-2deg);
}

.type-direction--cormorant .type-direction__headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.type-direction--cormorant .type-direction__headline em {
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 0.9em;
  font-weight: 600;
  transform: rotate(-1deg);
}

.type-direction--alegreya .type-direction__headline {
  font-family: "Alegreya", Georgia, serif;
  font-weight: 620;
  letter-spacing: -0.018em;
}

.type-direction--alegreya .type-direction__headline em {
  font-family: "Kalam", cursive;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: -0.03em;
  transform: rotate(-1.5deg);
}

.type-study-rules {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: var(--space-6);
}

.type-study-rules ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.type-study-rules li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.type-study-rules li span {
  color: var(--coral-deep);
  font-size: 0.7rem;
}

.type-study-rules li p {
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .registry-world__header {
    grid-template-columns: 1fr;
  }

  .registry-world__views {
    width: fit-content;
  }

  .warren-floor {
    grid-template-columns: 1fr;
  }

  .warren-console {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warren-inspector {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .registry-experience-switch {
    display: grid;
    width: 100%;
  }

  .registry-world {
    padding-inline: 16px;
  }

  .registry-world__header h2 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .registry-world__announcement {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
  }

  .warren-floor__rooms {
    grid-template-columns: 1fr;
  }

  .warren-room__staff {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  }

  .rabbit-run__controls {
    flex-wrap: wrap;
  }

  .rabbit-run__controls p {
    width: 100%;
    margin-left: 0;
  }

  .rabbit-run__brief {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rabbit-run__pipeline {
    grid-template-columns: 1fr;
  }

  .rabbit-run__pipeline::before {
    top: 1rem;
    bottom: 1rem;
    left: 50%;
    width: 2px;
    height: auto;
  }

  .rabbit-run__stage article {
    min-height: 216px;
  }

  .curator-playing-card {
    transform: none;
  }

  .curator-playing-card--compact {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .curator-playing-card--compact .curator-playing-card__portrait {
    height: 170px;
  }

  .type-direction {
    grid-template-columns: 1fr;
  }

  .type-direction__meta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .type-direction__headline {
    font-size: clamp(3.1rem, 14.5vw, 5.5rem);
  }

  .type-study-rules {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 520px) {
  .registry-experience-switch {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .registry-experience-switch button {
    border-radius: 15px;
  }

  .registry-world__views {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .registry-world__missions button {
    min-height: 46px;
  }

  .warren-console {
    grid-template-columns: 1fr;
  }

  .warren-inspector {
    grid-column: auto;
  }

  .rabbit-staff {
    min-height: 204px;
  }

  .curator-playing-card {
    width: 100%;
  }

  .curator-playing-card--compact {
    display: block;
  }

  .curator-playing-card--compact .curator-playing-card__portrait {
    height: 230px;
    margin: 0.6rem 1.3rem 0;
  }

  .curator-playing-card--compact .curator-playing-card__identity {
    padding: 1rem 1.4rem 0.2rem;
    text-align: center;
  }

  .curator-playing-card--compact .curator-playing-card__note,
  .curator-playing-card--compact > a {
    padding-inline: 1.4rem;
    text-align: center;
  }

  .type-direction__sample {
    padding: 1.35rem;
  }

  .type-direction__sample > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   LIVE REGISTRY RPG — the botanical conservatory simulation
   ========================================================= */

.registry-rpg {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 5.5rem)
    max(18px, calc((100vw - var(--container)) / 2));
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 15% 12%, rgba(91, 155, 108, 0.18), transparent 25rem),
    radial-gradient(circle at 82% 82%, rgba(154, 76, 58, 0.15), transparent 32rem),
    linear-gradient(145deg, #06140e, #0b1e15 48%, #07110d);
}

.registry-rpg::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 30%, rgba(255, 255, 255, 0.018)),
    url("/assets/images/directions/herbarium-grapevine.webp") center / cover no-repeat;
  filter: grayscale(0.45) contrast(1.12);
  opacity: 0.08;
}

.registry-rpg__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-5);
  margin-bottom: 2rem;
}

.registry-rpg__header > div {
  max-width: 880px;
}

.registry-rpg__header h2 {
  max-width: 820px;
  margin: 0.3rem 0 0.9rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  font-variation-settings: "opsz" 84, "SOFT" 80, "WONK" 1;
  font-weight: 690;
  line-height: 0.88;
  letter-spacing: -0.04em;
  word-spacing: 0.08em;
}

.registry-rpg__header p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.68);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.registry-rpg__header > a {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 999px;
  color: var(--leaf-300);
  font-size: 0.76rem;
  font-weight: 760;
  text-align: center;
}

.registry-rpg__questbar {
  display: grid;
  grid-template-columns: minmax(210px, 0.48fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 20px;
  background: rgba(2, 12, 8, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.registry-rpg__questbar > div:first-child {
  min-width: 0;
  padding-inline: 0.35rem;
}

.registry-rpg__questbar > div:first-child > span {
  display: block;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.registry-rpg__questbar p {
  overflow: hidden;
  margin-top: 0.2rem;
  color: rgba(255, 250, 240, 0.6);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-rpg__missions {
  display: flex;
  gap: 0.42rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.2rem;
  scrollbar-width: thin;
}

.registry-rpg__missions button {
  display: inline-grid;
  min-width: max-content;
  min-height: 46px;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 250, 240, 0.15);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.62);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.registry-rpg__missions button span {
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.registry-rpg__missions button strong {
  font-size: 0.68rem;
  font-weight: 760;
}

.registry-rpg__missions button[aria-pressed="true"] {
  border-color: rgba(125, 229, 202, 0.6);
  color: #eafff7;
  background: rgba(80, 138, 100, 0.24);
  box-shadow:
    inset 0 0 22px rgba(125, 229, 202, 0.07),
    0 0 18px rgba(73, 200, 167, 0.08);
}

.registry-rpg__viewport {
  position: relative;
  height: clamp(650px, 64vw, 840px);
  overflow: hidden;
  border: 1px solid rgba(242, 233, 211, 0.22);
  border-radius: 30px;
  outline: none;
  background: #07150f;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.06);
}

.registry-rpg__viewport:focus-visible {
  outline: 3px solid var(--leaf-300);
  outline-offset: 4px;
}

.registry-rpg__viewport::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  content: "";
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 19%),
    radial-gradient(circle at 50% 51%, transparent 44%, rgba(0, 0, 0, 0.31));
}

.registry-rpg__viewport canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

.registry-rpg__world-state,
.registry-rpg__controls,
.registry-rpg__questlog,
.registry-rpg__inspector,
.registry-rpg__gate,
.registry-rpg__founder,
.registry-rpg__help {
  position: absolute;
  z-index: 4;
}

.registry-rpg__world-state {
  top: 18px;
  left: 18px;
  display: grid;
  min-height: 50px;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 16px;
  background: rgba(3, 16, 10, 0.77);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.registry-rpg__world-state small,
.registry-rpg__world-state strong {
  display: block;
}

.registry-rpg__world-state small {
  color: rgba(255, 250, 240, 0.42);
  font-size: 0.54rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.registry-rpg__world-state strong {
  color: var(--cream);
  font-size: 0.72rem;
}

.registry-rpg__live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #72e0c4;
  box-shadow: 0 0 0 5px rgba(114, 224, 196, 0.1), 0 0 18px #72e0c4;
  animation: rpg-live-pulse 1.8s ease-in-out infinite;
}

@keyframes rpg-live-pulse {
  50% {
    opacity: 0.4;
    transform: scale(0.72);
  }
}

.registry-rpg[data-world-paused="true"] .registry-rpg__live-dot {
  animation-play-state: paused;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(197, 167, 99, 0.1);
}

.registry-rpg__controls {
  top: 18px;
  right: 18px;
  display: flex;
  max-width: calc(100% - 250px);
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 999px;
  background: rgba(3, 16, 10, 0.77);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.registry-rpg__controls::-webkit-scrollbar {
  display: none;
}

.registry-rpg__controls button {
  min-width: max-content;
  min-height: 44px;
  padding: 0.55rem 0.82rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.7);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.64rem;
  font-weight: 760;
  cursor: pointer;
}

.registry-rpg__controls button:first-child {
  color: #07140e;
  background: var(--leaf-300);
}

.registry-rpg__controls button:focus-visible,
.registry-rpg__missions button:focus-visible,
.registry-rpg__founder:focus-visible,
.registry-rpg__directory button:focus-visible,
.registry-rpg__gate button:focus-visible {
  outline: 3px solid #fff7df;
  outline-offset: 2px;
}

.registry-rpg__questlog {
  bottom: 18px;
  left: 18px;
  width: min(560px, calc(100% - 290px));
  min-height: 126px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 250, 240, 0.17);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(6, 25, 17, 0.91), rgba(3, 14, 10, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.registry-rpg__questlog > span {
  display: block;
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.registry-rpg__questlog > strong {
  display: block;
  margin-top: 0.32rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 650;
}

.registry-rpg__questlog > p {
  max-width: 520px;
  margin-top: 0.25rem;
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.72rem;
  line-height: 1.45;
}

.registry-rpg__questlog > div {
  height: 3px;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.registry-rpg__questlog i {
  display: block;
  width: var(--rpg-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #72e0c4, #f0c97c);
  box-shadow: 0 0 12px rgba(114, 224, 196, 0.5);
  transition: width 260ms ease;
}

.registry-rpg__inspector {
  top: 86px;
  right: 18px;
  width: min(320px, calc(100% - 36px));
  padding: 1.1rem;
  border: 1px solid rgba(240, 201, 124, 0.38);
  border-radius: 22px;
  opacity: 0;
  color: var(--cream);
  background:
    linear-gradient(155deg, rgba(38, 55, 37, 0.94), rgba(4, 16, 11, 0.94));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 200ms ease, transform 200ms ease;
  backdrop-filter: blur(18px);
}

.has-rpg-inspector .registry-rpg__inspector {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.registry-rpg__inspector > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.25rem;
  cursor: pointer;
}

.registry-rpg__inspector > strong,
.registry-rpg__inspector > span {
  display: block;
  padding-right: 2.4rem;
}

.registry-rpg__inspector > strong {
  margin-top: 0.35rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
}

.registry-rpg__inspector > span {
  margin-top: 0.35rem;
  color: var(--leaf-300);
  font-size: 0.72rem;
  font-weight: 720;
}

.registry-rpg__inspector > p:not(.eyebrow) {
  margin-top: 0.8rem;
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.74rem;
  line-height: 1.5;
}

.registry-rpg__inspector b {
  color: var(--gold);
}

.registry-rpg__inspector > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.85rem;
  color: #d7ffed;
  font-size: 0.72rem;
  font-weight: 760;
}

.registry-rpg__gate {
  top: 50%;
  left: 50%;
  z-index: 7;
  display: grid;
  width: min(720px, calc(100% - 36px));
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.25rem;
  border: 1px solid rgba(240, 201, 124, 0.72);
  border-radius: 26px;
  color: var(--cream);
  background:
    radial-gradient(circle at 8% 40%, rgba(240, 201, 124, 0.13), transparent 10rem),
    rgba(4, 16, 11, 0.96);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(240, 201, 124, 0.12);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px);
}

.registry-rpg__gate-mark {
  position: relative;
  width: 48px;
  height: 66px;
  margin-inline: auto;
}

.registry-rpg__gate-mark::before {
  position: absolute;
  top: 2px;
  left: 7px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 18px rgba(240, 201, 124, 0.35);
}

.registry-rpg__gate-mark::after {
  position: absolute;
  top: 31px;
  left: 16px;
  width: 16px;
  height: 30px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.registry-rpg__gate strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.registry-rpg__gate p:not(.eyebrow) {
  margin-top: 0.45rem;
  color: rgba(255, 250, 240, 0.6);
  font-size: 0.78rem;
}

.registry-rpg__gate > div:last-child {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.registry-rpg__gate button {
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  font-weight: 760;
  cursor: pointer;
}

.registry-rpg__gate button:last-child {
  color: #07140e;
  background: var(--leaf-300);
}

.registry-rpg__founder {
  left: var(--founder-x, 50%);
  top: var(--founder-y, 51%);
  display: grid;
  width: 46px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--cream);
  background: transparent;
  cursor: grab;
  transform: translate(-50%, -70%);
  transition: left 70ms linear, top 70ms linear;
}

.registry-rpg__founder i {
  position: relative;
  display: block;
  width: 20px;
  height: 27px;
  border: 2px solid #f0c97c;
  border-radius: 6px 6px 9px 9px;
  background: rgba(240, 201, 124, 0.17);
  box-shadow:
    inset 0 0 12px rgba(255, 246, 204, 0.38),
    0 0 20px rgba(240, 201, 124, 0.66);
}

.registry-rpg__founder i::before {
  position: absolute;
  top: -8px;
  left: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid #f0c97c;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.registry-rpg__founder i::after {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff1b1;
  box-shadow: 0 0 12px #fff1b1;
  content: "";
}

.registry-rpg__founder span {
  color: #fff8df;
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.registry-rpg__help {
  right: 18px;
  bottom: 18px;
  width: 225px;
  margin: 0;
  color: rgba(255, 250, 240, 0.44);
  font-size: 0.62rem;
  line-height: 1.4;
  text-align: right;
}

.registry-rpg__directory {
  margin-top: 1rem;
  border: 1px solid rgba(255, 250, 240, 0.15);
  border-radius: 20px;
  background: rgba(2, 12, 8, 0.54);
}

.registry-rpg__directory > summary {
  min-height: 52px;
  padding: 1rem 1.2rem;
  color: var(--leaf-300);
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.registry-rpg__directory > p {
  padding: 0 1.2rem;
  color: rgba(255, 250, 240, 0.52);
  font-size: 0.76rem;
}

.registry-rpg__directory > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.2rem 1.2rem;
}

.registry-rpg__directory section {
  min-width: 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 250, 240, 0.12);
}

.registry-rpg__directory h4 {
  color: var(--cream);
  font-size: 0.88rem;
}

.registry-rpg__directory section > p {
  color: rgba(255, 250, 240, 0.45);
  font-size: 0.66rem;
}

.registry-rpg__directory ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0;
  list-style: none;
}

.registry-rpg__directory li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.registry-rpg__directory li button {
  min-height: 48px;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 250, 240, 0.11);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
}

.registry-rpg__directory li strong,
.registry-rpg__directory li span {
  display: block;
}

.registry-rpg__directory li strong {
  font-size: 0.68rem;
}

.registry-rpg__directory li span {
  margin-top: 0.1rem;
  color: rgba(255, 250, 240, 0.44);
  font-size: 0.58rem;
}

.registry-rpg__directory li a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--leaf-300);
  font-size: 0.62rem;
  font-weight: 720;
}

.registry-rpg__noscript {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(240, 201, 124, 0.35);
  border-radius: 14px;
  color: var(--cream);
}

@media (max-width: 1040px) {
  .registry-rpg__header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .registry-rpg__header > a {
    width: fit-content;
  }

  .registry-rpg__questbar {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .registry-rpg__directory > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .registry-rpg {
    padding-inline: 12px;
  }

  .registry-rpg__header h2 {
    font-size: clamp(3.25rem, 16vw, 5.7rem);
  }

  .registry-rpg__viewport {
    height: min(78svh, 720px);
    min-height: 590px;
    border-radius: 22px;
  }

  .registry-rpg__world-state {
    top: 10px;
    left: 10px;
    min-height: 46px;
  }

  .registry-rpg__controls {
    top: 64px;
    right: 10px;
    left: 10px;
    display: grid;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 16px;
  }

  .registry-rpg__controls button {
    min-width: 0;
    padding-inline: 0.45rem;
  }

  .registry-rpg__questlog {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    min-height: 118px;
  }

  .registry-rpg__help {
    display: none;
  }

  .registry-rpg__inspector {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .has-rpg-inspector .registry-rpg__questlog {
    opacity: 0;
    pointer-events: none;
  }

  .registry-rpg__gate {
    width: calc(100% - 20px);
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 1rem;
  }

  .registry-rpg__gate > div:last-child {
    grid-column: 1 / -1;
  }

  .registry-rpg__directory > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .registry-rpg__questbar {
    padding: 0.6rem;
  }

  .registry-rpg__missions button {
    min-height: 48px;
  }

  .registry-rpg__viewport {
    min-height: 560px;
  }

  .registry-rpg__world-state {
    right: 10px;
  }

  .registry-rpg__controls button {
    min-height: 46px;
  }

  .registry-rpg__questlog > strong {
    font-size: 1.08rem;
  }
}

@media (forced-colors: active) {
  .registry-rpg__viewport,
  .registry-rpg__controls,
  .registry-rpg__world-state,
  .registry-rpg__questlog,
  .registry-rpg__inspector,
  .registry-rpg__gate {
    border: 2px solid CanvasText;
  }

  .registry-rpg__founder i,
  .registry-rpg__live-dot {
    border: 2px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .registry-rpg__founder {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .preview-banner,
  .site-footer,
  .registry-tools,
  .filter-bar,
  .hero-art,
  .hero__art {
    display: none !important;
  }

  .demo-hero__garden,
  .demo-route,
  .demo-game__header,
  .demo-specimens {
    display: none !important;
  }

  .js .demo-gate,
  .js .demo-outcome {
    display: block !important;
  }

  .demo-gate {
    padding-block: 1.5rem;
    border-bottom: 1px solid #bbb;
  }

  body {
    color: #000;
    background: #fff;
  }

  main {
    overflow: visible;
  }

  .section {
    padding-block: 2rem;
  }

  a {
    color: #000;
  }
}
