:root {
  --paper: #ffffff;
  --paper-deep: #f4f4f4;
  --ink: #1f1812;
  --ink-soft: #5c5348;
  --brand-cyan: #18e4e1;
  --brand-violet: #7985e6;
  --brand-ink: #5c66c8;
  --brand-flow: linear-gradient(120deg, #18e4e1 0%, #7985e6 100%);
  --brand-glow: rgba(24, 228, 225, 0.18);
  --violet-glow: rgba(121, 133, 230, 0.18);
  --rule: rgba(31, 24, 18, 0.12);
  --code-pit: #faf5ee;
  --footer-pit: #5c66c824;
  --code-mist: #1f1812;
  --shadow-lift: 0 18px 40px rgba(31, 24, 18, 0.08);
  --rail-pit: #1c1916;
  --rail-ink: #f3eadc;
  --rail-mute: #ded4c5;
  --rail-hover: rgba(243, 234, 220, 0.08);
  --rail-here: rgba(121, 133, 230, 0.72);
  --rail-line: rgba(243, 234, 220, 0.12);
  --bar-h: 74px;
  --rail-w: 280px;
  --display: "Fraunces", "Times New Roman", serif;
  --voice: "Outfit", "Avenir Next", sans-serif;
  --glyph: "IBM Plex Mono", ui-monospace, monospace;
}

html.dusk-ink {
  --paper: #16120e;
  --paper-deep: #211b16;
  --ink: #f3eadc;
  --ink-soft: #cbbba6;
  --brand-cyan: #18e4e1;
  --brand-violet: #9aa3f0;
  --brand-ink: #18e4e1;
  --brand-glow: rgba(24, 228, 225, 0.2);
  --violet-glow: rgba(121, 133, 230, 0.22);
  --rule: rgba(243, 234, 220, 0.12);
  --code-pit: #3a342e;
  --footer-pit: #1a1612;
  --code-mist: #efe4d2;
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.35);
  --rail-pit: #100e0c;
  --rail-ink: #f3eadc;
  --rail-mute: #cbbba6;
  --rail-hover: rgba(243, 234, 220, 0.08);
  --rail-here: rgba(24, 228, 225, 0.18);
  --rail-line: rgba(243, 234, 220, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--voice);
  font-size: clamp(15px, 0.35vw + 14.5px, 17px);
  line-height: 1.65;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.mark-lockup img,
.colophon-band img {
  max-width: none;
}

.skip-leap {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip-leap:focus {
  left: 12px;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.spine-brand {
  position: fixed;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--brand-flow);
  z-index: 40;
}

.instrument-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 18px;
  padding: 6px max(16px, env(safe-area-inset-right)) 6px max(24px, env(safe-area-inset-left));
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.mark-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* background: #ffffff; */
  /* border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px 16px; */
  /* box-shadow: var(--shadow-lift); */
  cursor: pointer;
}

/* .mark-lockup:hover {
  border-color: var(--brand-violet);
  box-shadow: 0 10px 24px var(--violet-glow);
} */

.mark-lockup:active {
  transform: translateY(1px);
}

.mark-lockup img {
  display: block;
  height: clamp(44px, 5vw, 61px);
  width: auto;
}

.mark-lockup .word-lock-dusk {
  display: none;
}

html.dusk-ink .mark-lockup .word-lock-dawn {
  display: none;
}

html.dusk-ink .mark-lockup .word-lock-dusk {
  display: block;
}

.mark-lockup .mark-only {
  display: none;
  height: 52px;
}

.lane-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  justify-content: flex-end;
  min-width: 0;
}

.lane-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.85rem/1 var(--voice);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 14px;
  cursor: pointer;
}

.lane-pill.is-awake,
.lane-pill:hover {
  color: var(--brand-ink);
}

.tool-cluster {
  display: flex;
  gap: 10px;
  align-items: center;
}

.orb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0;
}

.orb-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

#seek-orb svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.orb-btn:hover {
  border-color: var(--brand-cyan);
}

.orb-btn[hidden] {
  display: none;
}

.atelier-wrap {
  position: relative;
  overflow: hidden;
  padding: 48px 8vw 72px;
  min-height: calc(100vh - 72px);
}

#atelier-pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.atelier-copy {
  position: relative;
  width: 100%;
  max-width: none;
  z-index: 2;
}

.eyebrow-tick {
  font-family: var(--glyph);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 12px;
}

.display-blast {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.lede-line {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 56px;
}

.brand-action,
.ghost-action {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 6px 18px 6px 18px;
  font-weight: 600;
}

.brand-action {
  background: var(--brand-ink);
  color: #ffffff;
}

html.dusk-ink .brand-action,
html.dusk-ink .ghost-action {
  color: #1f1812;
}

.ghost-action {
  color: var(--ink);
  border: 1px solid var(--ink);
  background-color: #ffffff;
}

.score-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.score-band {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.score-num {
  font-family: var(--display);
  font-size: 2rem;
  background: var(--brand-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.score-band h2 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.score-band p {
  margin: 0;
  color: var(--ink-soft);
}

.folio-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  align-items: stretch;
}

body:has(.folio-shell > .child-rail) {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
}

body:has(.folio-shell > .child-rail)::before {
  content: "";
  grid-column: 1;
  grid-row: 2 / 4;
  background: var(--rail-pit);
  border-right: 1px solid var(--rail-line);
}

body:has(.folio-shell > .child-rail) .instrument-bar {
  grid-column: 1 / -1;
  grid-row: 1;
}

body:has(.folio-shell > .child-rail) .folio-shell {
  display: contents;
}

body:has(.folio-shell > .child-rail) > .skip-leap,
body:has(.folio-shell > .child-rail) > .spine-brand,
body:has(.folio-shell > .child-rail) > .seek-veil {
  grid-column: 1;
  grid-row: 1;
}

body:has(.folio-shell > .child-rail) .child-rail {
  grid-column: 1;
  grid-row: 2 / 4;
  align-self: start;
}

body:has(.folio-shell > .child-rail) .folio-layout {
  grid-column: 2;
  grid-row: 2;
}

body:has(.folio-shell > .child-rail) .colophon-band {
  grid-column: 2;
  grid-row: 3;
  padding: 28px 48px 36px 40px;
}

.rail-toggle {
  display: none;
  flex: 0 0 auto;
}

.rail-lanes {
  display: none;
}

@media (min-width: 981px) {
  .child-rail > .rail-lanes {
    display: none !important;
  }
}

.menu-drawer {
  display: none;
}

.rail-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.rail-veil {
  display: none;
}

.child-rail {
  position: sticky;
  top: var(--bar-h);
  z-index: 20;
  width: var(--rail-w);
  padding: 8px 12px 3rem 12px;
  border-right: 1px solid var(--rail-line);
  height: calc(100vh - var(--bar-h));
  max-height: calc(100vh - var(--bar-h));
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-gutter: stable;
  background: var(--rail-pit);
  color: var(--rail-ink);
}

.child-rail-label {
  font-family: var(--glyph);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 4px 0 10px 8px;
  color: var(--brand-cyan);
}

.rail-home {
  display: block;
  color: var(--rail-ink);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 0 0 8px;
}

.rail-home:hover {
  background: var(--rail-hover);
}

.rail-home.is-current {
  background: rgba(243, 234, 220, 0.08);
  box-shadow: inset 0 0 0 1px rgba(24, 228, 225, 0.28);
}

html.dusk-ink .rail-home.is-current {
  background: rgba(24, 228, 225, 0.08);
  box-shadow: inset 0 0 0 1px rgba(24, 228, 225, 0.22);
}

.rail-seek {
  display: block;
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 0 14px;
  padding: 0 0 4px;
  background: var(--rail-pit);
}

.rail-seek input {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--rail-line);
  border-radius: 10px;
  background: rgba(243, 234, 220, 0.06);
  color: var(--rail-ink);
  font: 0.88rem/1.4 var(--voice);
  padding: 9px 12px;
  outline: none;
}

.rail-seek input::placeholder {
  color: var(--rail-mute);
}

.rail-seek input:focus {
  border-color: rgba(24, 228, 225, 0.45);
  box-shadow: 0 0 0 3px rgba(24, 228, 225, 0.12);
}

.child-rail .rail-seek-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  max-height: min(22rem, 52vh);
  overflow: auto;
  border: 1px solid var(--rail-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--rail-pit) 88%, #f3eadc);
  box-shadow: 0 16px 28px -18px rgba(20, 16, 12, 0.55);
}

.child-rail .rail-seek-menu[hidden] {
  display: none;
}

html.dusk-ink .child-rail .rail-seek-menu {
  background: color-mix(in srgb, var(--rail-pit) 88%, #18e4e1);
}

.child-rail .rail-seek-menu li {
  margin: 0;
}

.child-rail .rail-seek-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--rail-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
}

.child-rail .rail-seek-menu a strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

.child-rail .rail-seek-menu a small {
  display: block;
  margin-top: 2px;
  color: var(--rail-mute);
  font-size: 0.74rem;
}

.child-rail .rail-seek-menu li.is-active a,
.child-rail .rail-seek-menu a:hover {
  color: var(--rail-ink);
  background: var(--rail-hover);
}

.rail-seek-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--rail-mute);
  font-size: 0.82rem;
}

.rail-branch.is-miss,
.rail-twig.is-miss,
.child-rail a.is-miss {
  display: none !important;
}

.child-rail a.is-hit {
  color: var(--brand-cyan);
}

.child-rail > nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 8px;
  border-left: 1px solid var(--rail-line);
  margin-left: 12px;
}

.rail-branch {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  padding: 2px;
}

.rail-branch.is-current {
  background: rgba(243, 234, 220, 0.08);
  box-shadow: inset 0 0 0 1px rgba(24, 228, 225, 0.28);
  padding: 6px 4px 10px;
  margin: 2px 0 6px;
}

html.dusk-ink .rail-branch.is-current {
  background: rgba(24, 228, 225, 0.08);
  box-shadow: inset 0 0 0 1px rgba(24, 228, 225, 0.22);
}

.rail-branch.is-current > .rail-row {
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--rail-pit) 92%, #f3eadc);
  border-radius: 10px;
  box-shadow: 0 10px 14px -6px var(--rail-pit);
}

html.dusk-ink .rail-branch.is-current > .rail-row {
  background: color-mix(in srgb, var(--rail-pit) 92%, #18e4e1);
}

.rail-branch.is-current > .rail-row > a {
  color: var(--rail-ink);
}

.rail-branch.is-current .rail-leaves a {
  color: var(--rail-mute);
}

.rail-branch.is-current .rail-leaves a:hover {
  color: var(--rail-ink);
}

.rail-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 4px;
}

.rail-fold {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--rail-mute);
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.rail-row > a {
  position: relative;
  z-index: 2;
}

.rail-fold::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
  opacity: 0.7;
}

.rail-branch.is-spread > .rail-row .rail-fold::before,
.rail-twig.is-spread > .rail-row .rail-fold::before {
  transform: rotate(45deg);
}

.rail-fold:hover {
  background: var(--rail-hover);
  color: var(--rail-ink);
}

.rail-nest,
.rail-branch > .rail-leaves {
  display: none;
  margin: 2px 0 6px 11px;
  padding: 2px 0 2px 10px;
  border-left: 1px solid var(--rail-line);
}

.rail-branch.is-spread > .rail-nest,
.rail-branch.is-spread > .rail-leaves {
  display: flex;
  flex-direction: column;
}

.child-rail a {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: var(--rail-mute);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
}

.rail-leaves > a,
.rail-twig > a,
.rail-twig > .rail-row > a,
.page-toc a {
  font-size: 0.84rem;
  padding: 5px 8px;
}

.rail-leaves > a {
  margin-left: 26px;
}

.rail-buds a {
  font-size: 0.78rem;
  padding: 4px 8px;
}

.child-rail a:hover {
  color: var(--rail-ink);
  background: var(--rail-hover);
}

.child-rail a.is-open {
  color: var(--rail-ink);
}

.child-rail a.is-here {
  color: var(--rail-ink);
  background: var(--rail-hover);
}

.rail-twig {
  display: flex;
  flex-direction: column;
}

.rail-twig > .rail-buds {
  display: none;
}

.rail-twig.is-spread > .rail-buds {
  display: flex;
  flex-direction: column;
  padding-left: 26px;
}

.rail-buds {
  display: flex;
  flex-direction: column;
  padding-left: 26px;
}

.page-toc,
.toc-limb {
  display: flex;
  flex-direction: column;
}

.toc-limb {
  margin: 0 0 2px;
}

.page-toc a.toc-deeper {
  padding-left: 16px;
  font-size: 0.78rem;
}

.page-toc a.is-in-view {
  color: var(--brand-cyan);
  background: var(--rail-hover);
}

.folio-shell .folio-layout {
  display: block;
  padding: 36px 48px 80px 40px;
}

.folio-shell .folio-stage {
  max-width: none;
  width: 100%;
}

.folio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  padding: 36px 6vw 80px 10vw;
  align-items: start;
  min-width: 0;
}

.folio-stage {
  max-width: 780px;
  min-width: 0;
  overflow-wrap: break-word;
}

.folio-stage h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.folio-stage h1,
.folio-stage h2,
.folio-stage h3 {
  scroll-margin-top: calc(var(--bar-h) + 24px);
}

.folio-stage h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 2.2rem 0 0.7rem;
}

.folio-stage h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.5rem;
}

.folio-stage p,
.folio-stage li {
  color: var(--ink);
}

.folio-stage a {
  color: var(--brand-ink);
}

.folio-stage pre,
.well-of-code {
  position: relative;
  background: var(--code-pit);
  color: var(--code-mist);
  border-radius: 12px;
  padding: 12px 16px 10px 16px;
  overflow-x: auto;
  max-width: 100%;
  font-family: var(--glyph);
  font-size: 0.86rem;
  line-height: 1.55;
  box-shadow: none;
}

.well-of-code {
  padding-right: 44px;
}

.well-of-code .tape-label {
  display: none !important;
}

.copy-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--code-mist);
  opacity: 0.72;
  font-family: var(--glyph);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.copy-chip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-chip:hover,
.copy-chip:focus-visible {
  opacity: 1;
  background: rgba(243, 234, 220, 0.1);
  outline: none;
}

.copy-chip.is-copied {
  width: auto;
  min-width: 30px;
  padding: 0 8px;
  opacity: 1;
  color: var(--brand-ink);
  background: transparent;
  cursor: default;
}

html.dusk-ink .copy-chip.is-copied {
  color: var(--brand-cyan);
}

.crumb-path {
  font-family: var(--glyph);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.crumb-path a {
  /* color: var(--ink-soft); */
  color: var(--brand-ink);
  text-decoration: none;
}

.crumb-path a:hover {
  color: var(--brand-ink);
}

.crumb-path span {
  margin: 0 8px;
  opacity: 0.45;
}

.folio-stage .lede-line {
  margin: 0 0 22px;
  font-size: 1.05rem;
}

.docs-catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.docs-catalog li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}

.docs-catalog a {
  font-weight: 600;
  text-decoration: none;
}

.docs-catalog span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hint-card {
  background: var(--paper-deep);
  border-left: 3px solid transparent;
  border-image: var(--brand-flow) 1;
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
  margin: 0 0 28px;
}

.hint-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sample-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}

.sample-jump a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--paper);
}

.sample-jump a:hover {
  color: var(--brand-ink);
  border-color: var(--brand-violet);
}

.need-list {
  margin: 0 0 1.6rem;
  padding-left: 1.2rem;
}

.need-list li {
  color: var(--ink-soft);
}

.sample-block {
  margin: 0 0 2rem;
}

.sample-block h3 {
  font-family: var(--voice);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.folio-shell .folio-stage h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.folio-stage table {
  display: block;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.folio-stage th,
.folio-stage td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.folio-stage th {
  font-family: var(--glyph);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.people-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 1.2rem 0 2rem;
}

.person-card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px 20px 18px;
  text-align: center;
}

.person-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-flow);
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}

.person-card h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.person-role {
  margin: 0 0 10px;
  font-family: var(--glyph);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.person-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 1.4rem 0 2rem;
}

.stage-tile {
  background: var(--paper-deep);
  border-left: 4px solid transparent;
  border-image: var(--brand-flow) 1;
  padding: 14px;
  border-radius: 0 12px 12px 0;
}

.stage-tile strong {
  display: block;
  color: var(--brand-ink);
  margin-bottom: 6px;
}

.stage-tile span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.marginalia-strip {
  position: sticky;
  top: 92px;
  font-size: 0.82rem;
}

.marginalia-strip p {
  font-family: var(--glyph);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.marginalia-strip a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 5px 0 5px 10px;
  border-left: 2px solid var(--rule);
}

.marginalia-strip a.is-in-view,
.marginalia-strip a:hover {
  color: var(--ink);
  border-left-color: var(--brand-violet);
}

.seek-veil {
  position: fixed;
  inset: 0;
  background: rgba(31, 24, 18, 0.45);
  display: none;
  z-index: 50;
  padding: 12vh 8vw;
}

.seek-veil.is-open {
  display: block;
}

.seek-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-lift);
}

#seek-field {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--brand-violet);
  background: transparent;
  color: var(--ink);
  font: 1.15rem/1.4 var(--display);
  padding: 8px 2px 12px;
  outline: none;
}

.seek-hits {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-height: 46vh;
  overflow: auto;
}

.seek-hits a {
  display: block;
  padding: 10px 4px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.seek-hits a small {
  display: block;
  color: var(--ink-soft);
}

.colophon-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px 8vw 36px;
  border-top: 1px solid var(--rule);
  background: var(--footer-pit);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.colophon-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.colophon-legal p,
.colophon-copy p {
  margin: 0;
}

.colophon-band img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.colophon-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 48px;
}

.sublane-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.sublane-row a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding: 4px 2px;
  border-bottom: 1px dashed transparent;
}

.sublane-row a.is-here {
  color: var(--brand-ink);
  border-bottom-color: var(--brand-violet);
}

@media (max-width: 1180px) {
  :root {
    --rail-w: 240px;
  }

  .lane-pill {
    padding: 9px 10px;
    letter-spacing: 0.05em;
  }

  .folio-shell .folio-layout {
    padding: 28px 32px 64px 28px;
  }

  body:has(.folio-shell > .child-rail) .colophon-band {
    padding: 24px 32px 32px 28px;
  }

  .atelier-wrap {
    padding: 40px 6vw 56px;
  }
}

@media (max-width: 980px) {
  .instrument-bar {
    display: grid;
    grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px max(12px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));
  }

  .rail-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .mark-lockup {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    padding: 0;
  }

  .instrument-bar > .lane-cluster {
    display: none;
  }

  .tool-cluster {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .mark-lockup img {
    height: clamp(36px, 8vw, 48px);
  }

  .lane-pill {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
  }

  .rail-lanes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--rail-line);
  }

  .rail-lanes .lane-pill {
    color: var(--rail-mute);
    justify-content: flex-start;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .rail-lanes .lane-pill.is-awake,
  .rail-lanes .lane-pill:hover {
    color: var(--rail-ink);
    background: var(--rail-hover);
  }

  .menu-drawer .rail-lanes {
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }

  .menu-drawer {
    display: block;
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    z-index: 25;
    width: min(22rem, 88vw);
    height: calc(100vh - var(--bar-h));
    height: calc(100dvh - var(--bar-h));
    max-height: calc(100vh - var(--bar-h));
    max-height: calc(100dvh - var(--bar-h));
    background: var(--rail-pit);
    color: var(--rail-ink);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    padding: 16px 14px 2.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.18);
  }

  body.rail-open .menu-drawer {
    transform: none;
  }

  .folio-shell {
    grid-template-columns: 1fr;
  }

  body:has(.folio-shell > .child-rail) {
    display: block;
  }

  body:has(.folio-shell > .child-rail)::before {
    content: none;
  }

  body:has(.folio-shell > .child-rail) .folio-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.folio-shell > .child-rail) .child-rail,
  body:has(.folio-shell > .child-rail) .folio-layout,
  body:has(.folio-shell > .child-rail) .colophon-band {
    grid-column: auto;
    grid-row: auto;
  }

  body:has(.folio-shell > .child-rail) .colophon-band {
    padding: 24px 5vw 32px;
  }

  .rail-veil {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 14, 12, 0.46);
    z-index: 24;
  }

  body.rail-open {
    overflow: hidden;
  }

  body.rail-open .rail-veil {
    display: block;
  }

  .child-rail {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    z-index: 25;
    width: min(22rem, 88vw);
    height: calc(100vh - var(--bar-h));
    height: calc(100dvh - var(--bar-h));
    max-height: calc(100vh - var(--bar-h));
    max-height: calc(100dvh - var(--bar-h));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    padding: 12px 14px 2.5rem;
    border-right: 1px solid var(--rail-line);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.18);
  }

  body.rail-open .child-rail {
    transform: none;
  }

  .rail-branch.is-current > .rail-row {
    position: sticky;
    top: 0;
  }

  .folio-shell .folio-layout,
  .folio-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 5vw 56px;
  }

  .marginalia-strip {
    display: none;
  }

  .rail-fold {
    width: 36px;
    height: 36px;
  }

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

@media (max-width: 700px) {
  .spine-brand {
    width: 4px;
  }

  .instrument-bar {
    flex-wrap: nowrap;
    padding: 6px max(10px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
  }

  .mark-lockup {
    padding: 0;
  }

  .orb-btn {
    width: 40px;
    height: 40px;
  }

  .atelier-wrap {
    padding: 28px 6vw 48px;
    min-height: 0;
  }

  .display-blast {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .lede-line {
    font-size: 1.05rem;
  }

  .action-row {
    margin: 22px 0 36px;
  }

  .brand-action,
  .ghost-action {
    flex: 1 1 10rem;
    text-align: center;
  }

  .score-band {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .folio-stage h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .folio-stage h2 {
    font-size: 1.28rem;
  }

  .colophon-band {
    flex-wrap: wrap;
    padding: 22px 6vw max(28px, env(safe-area-inset-bottom));
  }

  .seek-veil {
    padding: 10vh 5vw;
  }

  .copy-chip {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .lane-pill {
    padding: 8px 8px;
  }

  .score-num {
    font-size: 1.55rem;
  }

  .folio-stage th,
  .folio-stage td {
    padding: 8px 6px;
    font-size: 0.88rem;
  }

  .well-of-code,
  .folio-stage pre {
    font-size: 0.78rem;
    padding: 10px 12px 14px;
  }

  .well-of-code {
    padding-right: 40px;
  }
}

.visually-quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.plaza-shell {
  width: min(1120px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 36px 0 96px;
}

.plaza-hero {
  max-width: 720px;
  margin: 0 0 40px;
  animation: plaza-rise 0.7s ease both;
}

.plaza-hero .action-row {
  margin-bottom: 0;
}

.plaza-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.plaza-section {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 48px 0 18px;
}

.plaza-kicker {
  font-family: var(--glyph);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 8px;
}

.plaza-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.plaza-meta span,
.plaza-meta time {
  font-family: var(--glyph);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.plaza-by {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feat-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  margin: 0 0 36px;
  animation: plaza-rise 0.8s ease 0.08s both;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(31, 24, 18, 0.12);
}

.feat-copy {
  padding: 32px 34px 30px;
}

.feat-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.feat-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.feat-frame {
  position: relative;
  min-height: 240px;
  background:
    radial-gradient(circle at 18% 30%, rgba(24, 228, 225, 0.55), transparent 42%),
    radial-gradient(circle at 78% 70%, rgba(121, 133, 230, 0.55), transparent 46%),
    linear-gradient(135deg, #12110f 0%, #2a2433 100%);
  background-size: 140% 140%;
  animation: plaza-flow 14s ease-in-out infinite alternate;
}

.feat-frame.tone-b {
  background:
    radial-gradient(circle at 70% 24%, rgba(121, 133, 230, 0.6), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(24, 228, 225, 0.4), transparent 48%),
    linear-gradient(135deg, #16120e 0%, #243044 100%);
}

.feat-wave {
  position: absolute;
  inset: 18% 8% 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  filter: blur(18px);
  animation: plaza-sweep 4.8s ease-in-out infinite;
}

.plaza-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  position: relative;
  z-index: 2;
}

.plaza-chip {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  font: 600 0.8rem/1 var(--voice);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.plaza-chip:hover,
.plaza-chip.is-awake {
  color: var(--brand-ink);
  border-color: var(--brand-violet);
  background: var(--violet-glow);
}

.story-grid,
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card,
.room-card,
.stat-tile,
.step-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 0;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  animation: plaza-rise 0.7s ease calc(var(--rise, 1) * 0.08s) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-card {
  display: flex;
  flex-direction: column;
}

.story-card > :not(.story-thumb) {
  padding-left: 18px;
  padding-right: 18px;
}

.story-card h3,
.room-card h3,
.event-row h3,
.step-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.story-card p,
.room-card p,
.step-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.story-card .plaza-kicker,
.room-card .plaza-kicker {
  padding-top: 16px;
}

.story-card .plaza-meta {
  margin: auto 0 18px;
  padding-bottom: 4px;
}

.story-thumb {
  height: 132px;
  background:
    radial-gradient(circle at 30% 40%, rgba(24, 228, 225, 0.45), transparent 50%),
    linear-gradient(135deg, #1c1916, #3a3348);
}

.story-thumb.tone-b {
  background:
    radial-gradient(circle at 70% 30%, rgba(121, 133, 230, 0.5), transparent 48%),
    linear-gradient(135deg, #1a1612, #1e3a3a);
}

.story-thumb.tone-c {
  background:
    radial-gradient(circle at 50% 80%, rgba(24, 228, 225, 0.35), transparent 46%),
    linear-gradient(160deg, #221c18, #2c2450);
}

.story-thumb.tone-d {
  background:
    radial-gradient(circle at 80% 20%, rgba(121, 133, 230, 0.4), transparent 42%),
    linear-gradient(200deg, #14110f, #16353a);
}

a.story-card:hover,
a.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(121, 133, 230, 0.45);
}

.story-card.is-quiet {
  cursor: default;
}

.story-card.is-away,
.feat-card.is-away,
.story-card[aria-hidden='true'],
.feat-card[aria-hidden='true'] {
  display: none !important;
}

.plaza-empty {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.plaza-letter {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 56px 0 0;
  padding: 28px 30px;
  border-radius: 24px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}

.plaza-letter h2 {
  font-family: var(--display);
  margin: 0 0 8px;
}

.plaza-letter p {
  margin: 0;
  color: var(--ink-soft);
}

.plaza-letter .action-row {
  justify-content: flex-end;
}

.letter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.letter-form input {
  flex: 1 1 180px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.4 var(--voice);
  padding: 12px 14px;
}

.letter-form .brand-action {
  border: 0;
  cursor: pointer;
}

.community-hero .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #18e4e1;
  box-shadow: 0 0 0 0 rgba(24, 228, 225, 0.7);
  animation: plaza-pulse 1.8s ease-out infinite;
  vertical-align: middle;
}

.community-hero {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.9fr);
  gap: 28px 36px;
  align-items: stretch;
}

.community-hero .hero-copy {
  min-width: 0;
}

.community-hero .plaza-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.community-stage {
  position: relative;
  min-height: 280px;
  background: transparent;
  border: 0;
}

.community-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 12px;
}

.stat-tile {
  padding: 22px 20px;
  text-align: center;
}

.stat-num {
  font-family: var(--display);
  font-size: 2.4rem;
  margin: 0 0 4px;
  background: var(--brand-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-tile p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.room-card {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}

.room-go {
  margin-top: auto;
  font-family: var(--glyph);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.event-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  animation: plaza-rise 0.7s ease calc(var(--rise, 1) * 0.08s) both;
}

.event-row time,
.event-row > span {
  font-family: var(--glyph);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.event-row h3 {
  margin: 0 0 4px;
}

.event-row p {
  margin: 0;
  color: var(--ink-soft);
}

.step-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  padding: 20px 20px 18px;
}

.step-card span {
  font-family: var(--display);
  font-size: 1.6rem;
  background: var(--brand-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plaza-article {
  max-width: 760px;
}

.plaza-article .plaza-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 28px;
}

.article-byline .byline-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--glyph);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #101014;
  background: linear-gradient(135deg, #18e4e1, #7985e6);
}

.article-byline strong {
  display: block;
  font-weight: 600;
  line-height: 1.2;
}

.article-byline small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-family: var(--glyph);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.article-hero {
  height: 220px;
  border-radius: 22px;
  margin: 22px 0 28px;
  overflow: hidden;
}

.article-body p {
  color: var(--ink);
}

.article-body h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 2rem 0 0.7rem;
}

.article-back {
  margin: 36px 0 0;
}

.article-back a {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper);
  padding: 4px 18px;
  animation: plaza-rise 0.7s ease calc(var(--rise, 1) * 0.08s) both;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand-ink);
  font-family: var(--glyph);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.faq-item a,
.room-card a.room-go {
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
}

@keyframes plaza-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes plaza-flow {
  from {
    background-position: 12% 40%;
  }
  to {
    background-position: 86% 62%;
  }
}

@keyframes plaza-sweep {
  0%,
  100% {
    transform: translateX(-12%) scaleY(0.7);
    opacity: 0.25;
  }
  50% {
    transform: translateX(12%) scaleY(1);
    opacity: 0.55;
  }
}

@keyframes plaza-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 228, 225, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(24, 228, 225, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 228, 225, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plaza-hero,
  .feat-card,
  .feat-frame,
  .feat-wave,
  .story-card,
  .room-card,
  .stat-tile,
  .step-card,
  .event-row,
  .live-dot,
  .community-stage {
    animation: none !important;
  }
}

.about-stage {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  perspective: 720px;
  container-type: inline-size;
}

.about-lockup {
  --about-mark: min(196px, 40cqi);
  --about-word: min(84px, 17cqi);
  --about-gap: min(22px, 4.5cqi);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--about-gap);
  min-height: var(--about-mark);
  max-width: 100%;
  transition: gap 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-mark-face {
  display: block;
  width: var(--about-mark);
  height: auto;
  flex: 0 0 auto;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

.about-mark-face.is-spinning {
  animation: about-mark-spin 1.25s cubic-bezier(0.45, 0, 0.2, 1);
}

.about-word-clip {
  height: var(--about-word);
  width: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.about-lockup.is-erasing .about-word-clip {
  transition: width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-word-mark {
  display: block;
  height: var(--about-word);
  width: calc(var(--about-word) * 555 / 105);
  max-width: none;
  overflow: visible;
  color: #303030;
  flex-shrink: 0;
}

.about-word-mark path {
  fill: currentColor;
}

html.dusk-ink .about-word-mark {
  color: var(--ink);
}

.about-letter {
  opacity: 0;
  transition: opacity 0.12s ease;
}

.about-letter.is-on {
  opacity: 1;
}

.about-caret-bar {
  fill: var(--brand-cyan);
  opacity: 0;
}

.about-lockup.is-typing .about-caret-bar {
  animation: about-caret 0.9s steps(1) infinite;
}

.about-lockup.is-rest {
  gap: 0;
}

.about-lockup.is-rest .about-word-clip {
  width: 0;
  overflow: hidden;
}

@keyframes about-mark-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@keyframes about-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.cast-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.cast-card {
  overflow: visible;
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 4px;
  padding: 28px 24px 26px;
}

.cast-photo {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 8px auto;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(243, 234, 220, 0.35);
}

.cast-photo.tone-a {
  background:
    radial-gradient(circle at 30% 24%, rgba(24, 228, 225, 0.45), transparent 46%),
    linear-gradient(165deg, #1c1916, #243a3a);
}

.cast-photo.tone-b {
  background:
    radial-gradient(circle at 70% 28%, rgba(121, 133, 230, 0.5), transparent 44%),
    linear-gradient(200deg, #16120e, #2a2433);
}

.cast-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cast-photo.has-pic .cast-fallback,
.cast-photo:has(img) .cast-fallback {
  display: none;
}

.cast-fallback {
  position: relative;
  z-index: 0;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: #f3eadc;
  letter-spacing: -0.04em;
}

.cast-copy {
  padding: 8px 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.cast-copy h3 {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0 0 6px;
}

.cast-copy .person-role {
  margin: 0 0 12px;
}

.cast-copy > p:not(.plaza-kicker):not(.person-role) {
  margin: 0;
  color: var(--ink-soft);
}

.cast-facts {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 8px;
}

.cast-facts li {
  font-family: var(--glyph);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}

.cast-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-flow);
}

.cast-facts a {
  color: var(--brand-ink);
  text-decoration: none;
}

.cast-facts a:hover {
  text-decoration: underline;
}

.cast-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}

.cast-links a {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  text-decoration: none;
  font-family: var(--glyph);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.cast-links a:hover,
.cast-links a:focus-visible {
  color: var(--brand-ink);
  border-color: var(--brand-violet);
  outline: none;
}

.cast-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

.license-card {
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 28px 32px 26px;
  background:
    linear-gradient(180deg, rgba(24, 228, 225, 0.08), transparent 42%),
    var(--paper);
  box-shadow: var(--shadow-lift);
}

.license-card h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.license-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.license-card .room-go {
  display: inline-block;
  margin: 0;
  text-decoration: none;
}

.about-more {
  margin-top: 36px;
}

.platform-sheet {
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}

.platform-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.platform-sheet th,
.platform-sheet td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.platform-sheet th {
  font-family: var(--glyph);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.platform-sheet tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .feat-card,
  .plaza-letter,
  .stat-row,
  .step-row,
  .story-grid,
  .room-grid,
  .community-hero,
  .cast-row {
    grid-template-columns: 1fr;
  }

  .cast-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cast-copy {
    padding: 8px 10px 4px;
    align-items: center;
  }

  .cast-links {
    justify-content: center;
  }

  .cast-facts {
    text-align: left;
    width: 100%;
  }

  .cast-photo {
    width: 168px;
    height: 168px;
    min-height: 0;
    aspect-ratio: 1;
  }

  .event-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .plaza-shell {
    width: min(1120px, calc(100% - 10vw));
    padding: 24px 0 72px;
  }
}

@media (max-width: 700px) {
  .plaza-letter {
    padding: 22px 18px;
  }

  .community-stage,
  .community-stage canvas,
  .about-stage {
    min-height: 260px;
  }
}
.footer-link {
  text-decoration: none;
}