/* ==========================================================================
   Snowy's Lantern · Illuminated Clothbound Folio Edition
   Refs: Penguin Clothbound Classics (Coralie Bickford-Smith) × House of MinaLima
   Prussian Bookbinding Cloth · Cotton Rag · Stamped Gold · Scarf Burgundy
   ========================================================================== */

:root {
  color-scheme: light;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-engraved: "Cinzel", "Cormorant Garamond", Georgia, serif;

  /* Folio Edition (default): Prussian Cloth outer binding + Cotton Rag folio plates */
  --background: 40 43% 96%;
  --foreground: 219 43% 14%;
  --card: 40 46% 96%;
  --card-foreground: 219 43% 14%;
  --popover: 40 46% 96%;
  --popover-foreground: 219 43% 14%;
  --primary: 342 58% 28%;
  --primary-foreground: 40 50% 97%;
  --secondary: 39 32% 90%;
  --secondary-foreground: 219 43% 15%;
  --muted: 39 30% 91%;
  --muted-foreground: 218 20% 34%;
  --accent: 39 66% 48%;
  --accent-foreground: 219 52% 10%;
  --destructive: 352 65% 38%;
  --destructive-foreground: 0 0% 100%;
  --border: 39 35% 76%;
  --input: 39 34% 74%;
  --ring: 39 68% 48%;
  --radius: 0.25rem;

  /* Heirloom Clothbound Palette */
  --prussian: #081325;
  --prussian-mid: #0c1b33;
  --prussian-soft: #122544;
  --cotton-rag: #faf6ec;
  --cotton-well: #f1ead9;
  --stamped-gold: #d8a648;
  --stamped-gold-bright: #f0c978;
  --stamped-gold-deep: #996c1d;
  --foil-ink: #8c6014;
  --burgundy: #6e1e36;
  --burgundy-deep: #511326;
  --burgundy-ink: #781e38;

  /* Legacy aliases kept for compatibility */
  --lantern: #d8a648;
  --lantern-soft: #f0c978;
  --lantern-deep: #996c1d;
  --lantern-ink: #8c6014;
  --midnight: #081325;
  --midnight-soft: #0c1b33;

  --button-px-sm: 0.95rem;
  --button-py-sm: 0.5rem;
  --button-text-sm: 0.74rem;
  --button-leading-sm: 1.2rem;
  --button-px-md: 1.35rem;
  --button-py-md: 0.72rem;
  --button-text-md: 0.8rem;
  --button-leading-md: 1.35rem;
  --button-px-lg: 1.85rem;
  --button-py-lg: 0.95rem;
  --button-text-lg: 0.86rem;
  --button-leading-lg: 1.4rem;

  /* Shadows */
  --shadow-lantern: 0 0 36px rgba(216, 166, 72, 0.24), 0 0 80px rgba(216, 166, 72, 0.1);
  --shadow-glass: 0 22px 54px -22px rgba(4, 9, 20, 0.62);
}

html.dark {
  color-scheme: dark;

  /* Midnight Illuminated Vellum mode */
  --background: 219 56% 10%;
  --foreground: 40 38% 94%;
  --card: 219 52% 12%;
  --card-foreground: 40 38% 94%;
  --popover: 219 54% 11%;
  --popover-foreground: 40 38% 94%;
  --primary: 342 56% 34%;
  --primary-foreground: 40 50% 97%;
  --secondary: 218 42% 16%;
  --secondary-foreground: 40 38% 94%;
  --muted: 218 40% 16%;
  --muted-foreground: 38 18% 72%;
  --accent: 39 72% 58%;
  --accent-foreground: 219 56% 9%;
  --destructive: 352 62% 44%;
  --destructive-foreground: 40 38% 96%;
  --border: 39 45% 32%;
  --input: 217 34% 25%;
  --ring: 40 78% 62%;

  --foil-ink: #e5b55c;
  --lantern-ink: #e5b55c;
  --burgundy-ink: #e58ca5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

::selection {
  background: rgba(216, 166, 72, 0.34);
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--prussian);
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Prussian Bookbinding Cloth Backdrop (Woven Buckram Linen + Lantern Glow)
   ========================================================================== */

.studio-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -10;
  background-color: var(--prussian);
}

.clothbound-weave,
.oklch-gradient-bg {
  height: 100%;
  width: 100%;
  background-color: #081325;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 248, 232, 0.022) 0px,
      rgba(255, 248, 232, 0.022) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 248, 232, 0.018) 0px,
      rgba(255, 248, 232, 0.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(100% 75% at 50% 8%, rgba(19, 39, 74, 0.92), rgba(7, 16, 32, 0.98) 72%);
}

.studio-bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 45% at 50% 18%, rgba(216, 166, 72, 0.08), transparent 70%),
    radial-gradient(120% 90% at 50% 100%, rgba(4, 9, 20, 0.55), transparent 65%);
}

.folio-loading-note {
  text-align: center;
  font-family: var(--font-engraved);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 201, 120, 0.82);
  padding: 3rem 0;
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lantern-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sprite-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes magic-rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes sparkle-spin {
  0% {
    opacity: 0;
    transform: scale(0) rotate(75deg);
  }
  50% {
    opacity: 1;
    transform: scale(var(--sparkle-scale, 0.85)) rotate(120deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(150deg);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease-out both;
}

.animate-lantern-pulse {
  animation: lantern-pulse 3.2s ease-in-out infinite;
}

.animate-twinkle {
  animation: twinkle 2.4s ease-in-out infinite;
}

.animate-sprite-bounce {
  animation: sprite-bounce 1.6s ease-in-out infinite;
}

.animate-magic-rainbow {
  animation: magic-rainbow var(--rainbow-speed, 2s) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-lantern-pulse,
  .animate-twinkle,
  .animate-sprite-bounce,
  .animate-magic-rainbow {
    animation: none !important;
  }
}

/* ==========================================================================
   Layout & Top Navigation
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 17, 34, 0.92);
  border-bottom: 1px solid rgba(216, 166, 72, 0.34);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.65);
}

.site-nav {
  display: flex;
  min-height: 4.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-icon {
  display: grid;
  height: 2.45rem;
  width: 2.45rem;
  place-items: center;
  border-radius: 9999px;
  border: 1.5px solid rgba(226, 180, 92, 0.8);
  background: #081325;
  box-shadow: 0 0 18px rgba(216, 166, 72, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.brand-icon__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-link:hover .brand-icon {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(226, 180, 92, 0.45);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fbf6ec;
  white-space: nowrap;
}

.brand-edition {
  margin-top: 0.12rem;
  font-family: var(--font-engraved);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 180, 92, 0.85);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid transparent;
  padding: 0.38rem 0.8rem;
  font-family: var(--font-engraved);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.78);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-pill__mobile {
  display: none;
}

.nav-pill:hover {
  border-color: rgba(216, 166, 72, 0.35);
  background: rgba(216, 166, 72, 0.08);
  color: #fbf6ec;
}

.nav-pill[aria-current="page"] {
  border-color: rgba(216, 166, 72, 0.65);
  background: rgba(110, 30, 54, 0.52);
  color: #f4d38a;
}

/* ==========================================================================
   Surfaces, Cotton Rag Folio Plates, Foil Frames & Bookplate Buttons
   ========================================================================== */

.font-display {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-sans);
}

.surface {
  border: 1px solid rgba(202, 158, 74, 0.62);
  background: var(--cotton-rag);
  box-shadow:
    inset 0 0 0 6px var(--cotton-rag),
    inset 0 0 0 7px rgba(182, 140, 62, 0.34),
    var(--shadow-glass);
}

html.dark .surface {
  border-color: rgba(216, 166, 72, 0.5);
  background: #0d1a30;
  box-shadow:
    inset 0 0 0 6px #0d1a30,
    inset 0 0 0 7px rgba(216, 166, 72, 0.24),
    var(--shadow-glass);
}

.surface-inset {
  border: 1px solid rgba(182, 140, 62, 0.28);
  background: var(--cotton-well);
}

html.dark .surface-inset {
  border-color: rgba(216, 166, 72, 0.22);
  background: rgba(7, 16, 32, 0.62);
}

.field {
  border: 1px solid rgba(164, 124, 52, 0.36);
  background: #fffdf8;
  color: hsl(var(--foreground));
  border-radius: 3px;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

html.dark .field {
  border-color: rgba(216, 166, 72, 0.28);
  background: rgba(6, 14, 28, 0.82);
}

.field::placeholder {
  color: hsl(var(--foreground) / 0.42);
}

.field:focus-visible {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: -3px 0 0 0 var(--burgundy), 0 0 0 2px rgba(216, 166, 72, 0.32);
}

html.dark .field:focus-visible {
  border-color: var(--stamped-gold);
  box-shadow: -3px 0 0 0 var(--stamped-gold), 0 0 0 2px rgba(216, 166, 72, 0.25);
}

.chip {
  border: 1px solid rgba(176, 134, 58, 0.34);
  background: rgba(241, 234, 217, 0.85);
}

html.dark .chip {
  border-color: rgba(216, 166, 72, 0.24);
  background: rgba(15, 31, 56, 0.72);
}

.glass-panel {
  border-radius: 4px;
  box-shadow: var(--shadow-glass);
}

.lantern-text {
  color: #e7b85e;
  font-style: italic;
}

/* Folio Running Headers, Drop Caps & Seals */
.folio-plate__running-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(182, 140, 62, 0.34);
  font-family: var(--font-engraved);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foil-ink);
}

.folio-plate__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(182, 140, 62, 0.26);
  font-family: var(--font-engraved);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.56);
}

.folio-dropcap {
  float: left;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 0.84;
  padding-right: 0.05rem;
  margin-right: 0.01rem;
  padding-top: 0.08rem;
  color: var(--burgundy-ink);
}

.folio-dropcap--word {
  padding-right: 0.28rem;
}

.folio-field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-engraved);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--foil-ink);
}

.folio-system-note {
  margin: 0.5rem auto;
  max-width: 30rem;
  text-align: center;
  font-family: var(--font-engraved);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.52);
}

/* Stamped Gold Foil Corner Brackets */
.foil-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(226, 180, 92, 0.85);
  border-style: solid;
  pointer-events: none;
  z-index: 4;
}

.foil-corner--tl {
  top: 18px;
  left: 18px;
  border-width: 2px 0 0 2px;
}

.foil-corner--tr {
  top: 18px;
  right: 18px;
  border-width: 2px 2px 0 0;
}

.foil-corner--bl {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 2px 2px;
}

.foil-corner--br {
  bottom: 18px;
  right: 18px;
  border-width: 0 2px 2px 0;
}

/* Cards */
.ui-card {
  position: relative;
  border-radius: 4px;
  color: hsl(var(--card-foreground));
}

.ui-card--lantern-border {
  border-color: rgba(216, 166, 72, 0.75) !important;
}

.ui-card--sprite-border {
  border-color: rgba(122, 31, 58, 0.58) !important;
}

.ui-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.75rem 1.85rem 1.15rem;
}

.ui-card-header--row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ui-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.05rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ui-card-desc {
  font-size: 0.95rem;
  line-height: 1.62;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

.ui-card-content {
  padding: 0 1.85rem 1.75rem;
}

.ui-card-content--top {
  padding-top: 1.75rem;
}

/* Badges */
.ui-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 2px;
  border: 1px solid transparent;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-engraved);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ui-badge--lantern {
  border-color: rgba(182, 140, 62, 0.55);
  background: rgba(216, 166, 72, 0.16);
  color: var(--foil-ink);
}

html.dark .ui-badge--lantern {
  border-color: rgba(216, 166, 72, 0.48);
  background: rgba(216, 166, 72, 0.14);
  color: var(--lantern-soft);
}

.ui-badge--glass {
  border-color: rgba(182, 140, 62, 0.34);
  background: rgba(0, 0, 0, 0.035);
  color: hsl(var(--foreground) / 0.78);
}

html.dark .ui-badge--glass {
  border-color: rgba(216, 166, 72, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

/* Buttons */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 3px;
  font-family: var(--font-engraved);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  height: 2.6rem;
  padding: 0 1.25rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.ui-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  pointer-events: none;
}

.ui-btn:disabled {
  pointer-events: none;
  opacity: 0.48;
}

.ui-btn--sm {
  height: 2.1rem;
  padding: 0 0.85rem;
  font-size: 0.68rem;
}

.ui-btn--lg {
  height: 3.15rem;
  padding: 0 1.85rem;
  font-size: 0.8rem;
}

.ui-btn--folio-outline {
  border-color: rgba(226, 180, 92, 0.62);
  background: rgba(12, 27, 51, 0.75);
  color: #f4ead5;
  box-shadow: inset 0 0 0 2px rgba(8, 19, 37, 0.9), inset 0 0 0 3px rgba(216, 166, 72, 0.22);
}

.ui-btn--folio-outline:hover:not(:disabled) {
  border-color: #f0c978;
  background: rgba(22, 45, 82, 0.88);
  color: #ffffff;
}

/* Scarf Burgundy & Stamped Gold Bookplate Primary Button */
.ui-btn--lantern,
.gradient-button {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid rgba(229, 181, 92, 0.82);
  border-radius: 3px;
  min-width: 148px;
  padding: 0.95rem 2.1rem;
  height: auto;
  font-family: var(--font-engraved);
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbf6ec;
  background: linear-gradient(180deg, #7e2440 0%, #661a31 54%, #4f1225 100%);
  box-shadow:
    inset 0 0 0 3px #5c172c,
    inset 0 0 0 4px rgba(229, 181, 92, 0.45),
    0 12px 28px -12px rgba(0, 0, 0, 0.65);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.foil-star {
  color: #ecc067;
  font-size: 0.72rem;
  line-height: 1;
}

.gradient-button--sm {
  min-width: 112px;
  padding: 0.58rem 1.15rem;
  font-size: 0.7rem;
}

.gradient-button--md {
  min-width: 132px;
  padding: 0.78rem 1.55rem;
  font-size: 0.75rem;
}

.gradient-button svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  pointer-events: none;
}

.ui-btn--lantern:focus-visible,
.gradient-button:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 3px #5c172c,
    inset 0 0 0 4px rgba(240, 201, 120, 0.8),
    0 0 0 2px #f0c978;
}

.ui-btn--lantern:disabled,
.gradient-button:disabled {
  pointer-events: none;
  opacity: 0.45;
}

.ui-btn--lantern::before,
.gradient-button::before {
  display: none;
}

.ui-btn--lantern:hover:not(:disabled),
.gradient-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #f5d487;
  background: linear-gradient(180deg, #8e2948 0%, #731e38 54%, #59152a 100%);
  box-shadow:
    inset 0 0 0 3px #691b33,
    inset 0 0 0 4px rgba(245, 212, 135, 0.7),
    0 16px 32px -12px rgba(110, 30, 54, 0.55);
}

/* Prussian Cloth & Stamped Gold Bookplate Variant */
.gradient-button-variant {
  background: linear-gradient(180deg, #152b4f 0%, #0d1d38 56%, #081325 100%);
  box-shadow:
    inset 0 0 0 3px #0c1b33,
    inset 0 0 0 4px rgba(229, 181, 92, 0.45),
    0 12px 28px -12px rgba(0, 0, 0, 0.65);
}

.gradient-button-variant:hover:not(:disabled) {
  background: linear-gradient(180deg, #1b3662 0%, #112546 56%, #0b182f 100%);
  box-shadow:
    inset 0 0 0 3px #102342,
    inset 0 0 0 4px rgba(245, 212, 135, 0.72),
    0 16px 32px -12px rgba(8, 19, 37, 0.7);
}

.ui-btn--glass {
  border-color: rgba(182, 140, 62, 0.45);
  background: var(--cotton-well);
  color: hsl(var(--foreground));
}

.ui-btn--glass:hover:not(:disabled) {
  background: #eae0c9;
  border-color: rgba(153, 108, 29, 0.75);
}

html.dark .ui-btn--glass {
  border-color: rgba(216, 166, 72, 0.35);
  background: rgba(15, 31, 56, 0.8);
  color: #fbf6ec;
}

html.dark .ui-btn--glass:hover:not(:disabled) {
  border-color: rgba(240, 201, 120, 0.65);
  background: rgba(22, 44, 78, 0.92);
}

.ui-btn--ghost {
  background: transparent;
  color: hsl(var(--foreground) / 0.8);
}

.ui-btn--ghost:hover:not(:disabled) {
  background: hsl(var(--foreground) / 0.06);
  color: hsl(var(--foreground));
}

html.dark .ui-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   3D Push MagicButton (components/ui/magic-button.tsx)
   ========================================================================== */

.magic-btn {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 500;
  outline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: filter 600ms;
}

.magic-btn:hover:not(:disabled),
.magic-btn:focus-visible:not(:disabled) {
  filter: brightness(1.08);
  transition: filter 250ms;
}

.magic-btn:focus {
  outline: none;
}

.magic-btn:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
  filter: none;
}

.magic-btn__shadow {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  transform: translateY(2px);
  will-change: transform;
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.magic-btn__shadow--solid {
  background: rgba(0, 0, 0, 0.35);
  filter: blur(4px);
}

.magic-btn__shadow--rainbow {
  background-image: linear-gradient(
    90deg,
    var(--rainbow-1),
    var(--rainbow-5),
    var(--rainbow-3),
    var(--rainbow-4),
    var(--rainbow-2)
  );
  background-size: 200% 100%;
  filter: blur(12px);
  opacity: 0.72;
}

.magic-btn__edge {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
}

.magic-btn__edge--default {
  background: linear-gradient(
    to left,
    #6e4307 0%,
    #965e10 8%,
    #965e10 92%,
    #6e4307 100%
  );
}

.magic-btn__edge--rainbow {
  background-image: linear-gradient(
    90deg,
    var(--rainbow-1),
    var(--rainbow-5),
    var(--rainbow-3),
    var(--rainbow-4),
    var(--rainbow-2)
  );
  background-size: 200% 100%;
}

.magic-btn__front {
  position: relative;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f6d47c 0%, #df9f32 50%, #c38018 100%);
  border: 1px solid rgba(255, 236, 179, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.7);
  color: #1f1303;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 245, 214, 0.35);
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.magic-btn__front svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.magic-btn__front--sm {
  padding: var(--button-py-sm) var(--button-px-sm);
  font-size: var(--button-text-sm);
  line-height: var(--button-leading-sm);
}

.magic-btn__front--md {
  padding: var(--button-py-md) var(--button-px-md);
  font-size: var(--button-text-md);
  line-height: var(--button-leading-md);
}

.magic-btn__front--lg {
  padding: var(--button-py-lg) var(--button-px-lg);
  font-size: var(--button-text-lg);
  line-height: var(--button-leading-lg);
}

.magic-btn:hover:not(:disabled) .magic-btn__shadow,
.magic-btn:focus-visible:not(:disabled) .magic-btn__shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.magic-btn:hover:not(:disabled) .magic-btn__front,
.magic-btn:focus-visible:not(:disabled) .magic-btn__front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.magic-btn:active:not(:disabled) .magic-btn__shadow,
.magic-btn[data-pressed="true"]:not(:disabled) .magic-btn__shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.magic-btn:active:not(:disabled) .magic-btn__front,
.magic-btn[data-pressed="true"]:not(:disabled) .magic-btn__front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.magic-btn:disabled .magic-btn__shadow,
.magic-btn:disabled .magic-btn__edge {
  display: none;
}

.magic-btn:disabled .magic-btn__front {
  transform: translateY(0);
  transition: none;
}

/* ==========================================================================
   ShimmerText, SparklesText & Twinkling Stars
   ========================================================================== */

@keyframes shimmer-sweep {
  0% {
    background-position: -100% 0;
  }
  50%,
  100% {
    background-position: 250% 0;
  }
}

.shimmer-text-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.shimmer-text {
  display: inline-block;
  --shimmer-contrast: rgba(255, 255, 255, 0.72);
  color: hsl(var(--foreground));
  -webkit-text-fill-color: transparent;
  background: currentColor
    linear-gradient(
      to right,
      currentColor 0%,
      var(--shimmer-contrast) 40%,
      var(--shimmer-contrast) 60%,
      currentColor 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 50% 200%;
  background-position: 250% 0;
  animation: shimmer-sweep var(--shimmer-cycle, 3s) linear var(--shimmer-delay, 0.35s) infinite;
}

html.dark .shimmer-text {
  --shimmer-contrast: rgba(0, 0, 0, 0.52);
}

.shimmer-text--lantern {
  color: #8a5a0a;
  --shimmer-contrast: rgba(255, 245, 214, 0.85);
}

html.dark .shimmer-text--lantern {
  color: #f5c76a;
  --shimmer-contrast: rgba(255, 252, 240, 0.88);
}

.shimmer-text--amber {
  color: #d97706;
}

html.dark .shimmer-text--amber {
  color: #fbbf24;
}

.shimmer-text--secondary {
  color: hsl(var(--foreground) / 0.75);
}

.shimmer-text--destructive,
.shimmer-text--red {
  color: #dc2626;
}
html.dark .shimmer-text--destructive,
html.dark .shimmer-text--red {
  color: #f87171;
}

.shimmer-text--blue {
  color: #2563eb;
}
html.dark .shimmer-text--blue {
  color: #60a5fa;
}

.shimmer-text--green {
  color: #16a34a;
}
html.dark .shimmer-text--green {
  color: #4ade80;
}

.shimmer-text--yellow {
  color: #ca8a04;
}
html.dark .shimmer-text--yellow {
  color: #facc15;
}

.shimmer-text--purple {
  color: #9333ea;
}
html.dark .shimmer-text--purple {
  color: #c084fc;
}

.shimmer-text--pink {
  color: #db2777;
}
html.dark .shimmer-text--pink {
  color: #f472b6;
}

.shimmer-text--orange {
  color: #ea580c;
}
html.dark .shimmer-text--orange {
  color: #fb923c;
}

.shimmer-text--cyan {
  color: #0891b2;
}
html.dark .shimmer-text--cyan {
  color: #22d3ee;
}

.shimmer-text--indigo {
  color: #4f46e5;
}
html.dark .shimmer-text--indigo {
  color: #818cf8;
}

.shimmer-text--violet {
  color: #7c3aed;
}
html.dark .shimmer-text--violet {
  color: #a78bfa;
}

.shimmer-text--rose {
  color: #e11d48;
}
html.dark .shimmer-text--rose {
  color: #fb7185;
}

.shimmer-text--lime {
  color: #65a30d;
}
html.dark .shimmer-text--lime {
  color: #a3e635;
}

.shimmer-text--emerald {
  color: #059669;
}
html.dark .shimmer-text--emerald {
  color: #34d399;
}

.shimmer-text--sky {
  color: #0284c7;
}
html.dark .shimmer-text--sky {
  color: #38bdf8;
}

.shimmer-text--slate {
  color: #475569;
}
html.dark .shimmer-text--slate {
  color: #94a3b8;
}

.shimmer-text--fuchsia {
  color: #c026d3;
}
html.dark .shimmer-text--fuchsia {
  color: #e879f9;
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-text {
    animation: none !important;
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

.star {
  pointer-events: none;
  position: absolute;
  height: 3px;
  width: 3px;
  border-radius: 9999px;
  background: rgba(245, 212, 135, 0.85);
  box-shadow: 0 0 8px rgba(245, 212, 135, 0.55);
  animation: twinkle 2.8s ease-in-out infinite;
}

.sparkles-text {
  position: relative;
  display: inline-block;
  padding: 0 0.2em;
}

.sparkles-text__label {
  position: relative;
  z-index: 2;
  font-weight: inherit;
}

.sparkle-glyph {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  opacity: 0.72;
  animation: sparkle-spin 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sparkle-glyph {
    animation: none;
    opacity: 0.32;
  }
}

/* ==========================================================================
   Illuminated Marginalia, Literary Notes & Fine-Press Ink Attribution
   ========================================================================== */

.transcript-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.bubble-row--creator {
  flex-direction: row;
}

.bubble-avatar {
  display: grid;
  height: 2.35rem;
  width: 2.35rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  border: 1.5px solid rgba(216, 166, 72, 0.75);
  background: #081325;
  color: #e5b55c;
  box-shadow: 0 0 14px rgba(216, 166, 72, 0.25);
  overflow: hidden;
  margin-top: 0.1rem;
}

.bubble-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bubble-avatar svg,
.keeper-typing svg {
  width: 0.95rem;
  height: 0.95rem;
}

.bubble-avatar--creator {
  border-color: rgba(120, 30, 56, 0.65);
  background: var(--burgundy);
  color: #fbf6ec;
  box-shadow: none;
}

.bubble-avatar--sprite {
  border-color: rgba(138, 44, 82, 0.65);
  background: #42152c;
  color: #f4d38a;
}

.keeper-bubble {
  position: relative;
  flex: 1;
  max-width: 44rem;
  border-radius: 3px;
  border: 1px solid rgba(182, 140, 62, 0.34);
  border-left: 3.5px solid var(--stamped-gold);
  background: rgba(216, 166, 72, 0.08);
  padding: 1rem 1.25rem;
  color: hsl(var(--foreground));
}

html.dark .keeper-bubble {
  border-color: rgba(216, 166, 72, 0.28);
  border-left-color: var(--stamped-gold);
  background: rgba(216, 166, 72, 0.08);
}

.creator-bubble {
  position: relative;
  flex: 1;
  max-width: 44rem;
  border-radius: 3px;
  border: 1px solid rgba(182, 140, 62, 0.28);
  border-left: 3.5px solid var(--burgundy);
  background: var(--cotton-well);
  padding: 1.05rem 1.3rem;
  color: hsl(var(--foreground));
}

html.dark .creator-bubble {
  border-color: rgba(216, 166, 72, 0.24);
  border-left-color: #c94e70;
  background: rgba(9, 20, 38, 0.78);
}

.sprite-bubble {
  position: relative;
  flex: 1;
  max-width: 44rem;
  border-radius: 3px;
  border: 1px dashed rgba(138, 44, 82, 0.55);
  border-left: 4px double var(--burgundy);
  background: rgba(110, 30, 54, 0.06);
  padding: 1.05rem 1.3rem;
  color: hsl(var(--foreground));
}

html.dark .sprite-bubble {
  border-color: rgba(216, 120, 152, 0.4);
  border-left-color: #d96b88;
  background: rgba(110, 30, 54, 0.18);
}

.bubble-sender {
  margin-bottom: 0.35rem;
  font-family: var(--font-engraved);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--foil-ink);
}

.creator-bubble .bubble-sender {
  color: var(--burgundy-ink);
}

.bubble-text {
  white-space: pre-line;
  text-wrap: pretty;
}

.bubble-text::after {
  content: "";
  display: table;
  clear: both;
}

.bubble-text--keeper {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.52;
}

.bubble-text--creator {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.56;
}

.keeper-typing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: hsl(var(--foreground) / 0.75);
}

.keeper-typing__dots {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: 0.375rem;
}

.keeper-typing__dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--stamped-gold);
}

.mark-creator {
  color: hsl(var(--foreground));
}

.mark-keeper {
  font-style: italic;
  color: var(--foil-ink);
}

html.dark .mark-keeper {
  color: var(--lantern-soft);
}

/* ==========================================================================
   Form Inputs, Textarea & Progress Bar
   ========================================================================== */

.ui-textarea {
  display: flex;
  min-height: 96px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 3px;
  padding: 0.85rem 1.05rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  resize: vertical;
}

.ui-input,
.ui-select {
  height: 2.8rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 3px;
  padding: 0 0.9rem;
  font-size: 0.9375rem;
}

.ui-input--lg {
  height: 3.15rem;
  padding: 0 1.05rem;
  font-size: 1.05rem;
}

/* Range Slider */
.slider-wrap {
  width: 100%;
}

.slider-track-box {
  position: relative;
  height: 2rem;
  display: flex;
  align-items: center;
}

.slider-track-bg {
  position: absolute;
  inset-inline: 0;
  height: 6px;
  border-radius: 9999px;
  background: hsl(var(--foreground) / 0.1);
}

.slider-track-fill {
  position: absolute;
  left: 0;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--lantern-deep), var(--lantern));
}

.lantern-range {
  position: relative;
  z-index: 10;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.lantern-range:focus-visible {
  outline: none;
}

.lantern-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #fff4cf, #f5c76a 60%, #c9922b);
  box-shadow: 0 0 0 4px rgba(245, 199, 106, 0.22), 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
}

.lantern-range::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #fff4cf, #f5c76a 60%, #c9922b);
  box-shadow: 0 0 0 4px rgba(245, 199, 106, 0.22), 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
}

.lantern-range::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.lantern-range::-moz-range-track {
  height: 6px;
  background: transparent;
}

.slider-labels {
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--foreground) / 0.5);
}

.slider-value {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--lantern-ink);
}

html.dark .slider-value {
  color: var(--lantern-soft);
}

/* Progress Bar */
.ui-progress {
  margin-top: 0.85rem;
  height: 3px;
  width: 100%;
  overflow: hidden;
  background: rgba(216, 166, 72, 0.18);
}

.ui-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--burgundy), var(--stamped-gold), var(--stamped-gold-bright));
  transition: width 0.55s ease;
}

/* ==========================================================================
   ActProgress Folio Chapter Ribbon (Set on Prussian Cloth Binding)
   ========================================================================== */

.act-progress {
  width: 100%;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(216, 166, 72, 0.36);
  background: rgba(8, 19, 37, 0.86);
  box-shadow: inset 0 0 0 4px rgba(8, 19, 37, 0.92), inset 0 0 0 5px rgba(216, 166, 72, 0.18);
  padding: 1rem 1.35rem 1.05rem;
  border-radius: 4px;
}

.act-progress__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(216, 166, 72, 0.24);
  font-family: var(--font-engraved);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(235, 191, 102, 0.86);
}

.act-progress__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.act-progress__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}

.act-progress__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.act-progress__badge {
  display: grid;
  height: 1.65rem;
  width: 1.65rem;
  place-items: center;
  border-radius: 9999px;
  font-family: var(--font-engraved);
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.act-progress__badge svg {
  width: 0.8rem;
  height: 0.8rem;
}

.act-progress__badge--done {
  border: 1px solid rgba(226, 180, 92, 0.75);
  background: rgba(216, 166, 72, 0.2);
  color: #f0c978;
}

.act-progress__badge--active {
  border: 1px solid #f0c978;
  background: var(--burgundy);
  color: #fbf6ec;
  box-shadow: 0 0 18px rgba(216, 166, 72, 0.38);
}

.act-progress__badge--idle {
  border: 1px solid rgba(216, 166, 72, 0.24);
  background: rgba(15, 31, 56, 0.6);
  color: rgba(251, 246, 236, 0.48);
}

.act-progress__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
  color: rgba(251, 246, 236, 0.62);
}

.act-progress__title--active {
  color: #fbf6ec;
  font-weight: 600;
}

.act-progress__sub {
  display: none;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(251, 246, 236, 0.46);
}

@media (min-width: 720px) {
  .act-progress__sub {
    display: block;
  }
}

/* ==========================================================================
   MoodCard ("Frontispiece · Colour Script")
   ========================================================================== */

.mood-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(226, 180, 92, 0.62);
  box-shadow: var(--shadow-glass);
  transition: background 0.7s ease;
  aspect-ratio: 16 / 10;
}

.mood-card__frame {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(240, 201, 120, 0.34);
  pointer-events: none;
  z-index: 2;
}

.mood-card--compact {
  aspect-ratio: 16 / 10;
}

.mood-card--panel-top {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(216, 166, 72, 0.4);
  box-shadow: none;
  aspect-ratio: 16 / 9;
}

.mood-card__glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 26, 0.08) 0%, rgba(6, 13, 26, 0.76) 100%),
    radial-gradient(circle at 50% 115%, rgba(245, 199, 106, 0.28), transparent 58%);
}

.mood-card__body {
  position: relative;
  z-index: 3;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.2rem 1.35rem;
}

.mood-card__eyebrow {
  font-family: var(--font-engraved);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(240, 201, 120, 0.88);
}

.mood-card__place {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fbf6ec;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.mood-card__feeling {
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: rgba(251, 246, 236, 0.88);
}

.mood-card__detail {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: rgba(251, 246, 236, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Landing Page (/imagine): Clothbound Cover Plate & Illuminated Triptych
   ========================================================================== */

.landing-hero {
  position: relative;
  padding: 1.85rem 0 2.75rem;
}

.clothbound-cover {
  position: relative;
  max-width: 58rem;
  margin: 0 auto;
  border-radius: 4px;
  border: 1.5px solid rgba(216, 166, 72, 0.78);
  background:
    radial-gradient(62% 52% at 50% 34%, rgba(216, 166, 72, 0.11), transparent 72%),
    linear-gradient(180deg, rgba(11, 24, 46, 0.96) 0%, rgba(7, 16, 32, 0.98) 100%);
  box-shadow:
    inset 0 0 0 9px rgba(8, 19, 37, 0.95),
    inset 0 0 0 10px rgba(216, 166, 72, 0.34),
    0 32px 80px -28px rgba(0, 0, 0, 0.85);
  padding: 3.1rem 2.25rem 2.6rem;
  overflow: hidden;
}

.landing-stars {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.landing-hero__inner {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cover-imprint {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(216, 166, 72, 0.38);
  font-family: var(--font-engraved);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e4b55c;
}

.wall-header .cover-imprint {
  margin-left: 0;
  margin-right: 0;
}

.landing-h1 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fbf6ec;
  text-wrap: balance;
}

.landing-h1__line {
  display: block;
}

.landing-h1__sparkle-line {
  display: block;
  margin-top: 0.15rem;
  text-wrap: balance;
}

.landing-lead {
  margin-top: 1.35rem;
  max-width: 39rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.65vw, 1.32rem);
  line-height: 1.58;
  color: rgba(251, 246, 236, 0.84);
  text-wrap: pretty;
}

.landing-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cover-colophon-strip {
  margin-top: 2.15rem;
  padding-top: 1.15rem;
  width: 100%;
  border-top: 1px solid rgba(216, 166, 72, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-engraved);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 201, 120, 0.68);
}

.cover-colophon-strip__dot {
  color: rgba(216, 166, 72, 0.45);
}

/* Three-Plate Illuminated Folio Triptych */
.folio-triptych {
  position: relative;
  z-index: 10;
  max-width: 66rem;
  padding-bottom: 3.75rem;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .folio-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.folio-plate {
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.7rem 1.5rem;
}

.folio-plate__title {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.58rem;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.folio-plate__excerpt {
  flex: 1;
  margin-top: 0.9rem;
  margin-bottom: 0.65rem;
  border-left: 3px solid var(--burgundy);
  background: var(--cotton-well);
  padding: 0.95rem 1.05rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.9);
}

html.dark .folio-plate__excerpt {
  border-left-color: #d96b88;
  background: rgba(7, 16, 32, 0.68);
}

.folio-plate__excerpt p::after {
  content: "";
  display: table;
  clear: both;
}

/* Welcome Ex Libris Cover Plate (/imagine/studio) */
.welcome-cover {
  max-width: 44rem;
  padding: 2.6rem 2.2rem 2.4rem;
}

.welcome-cover__inner {
  position: relative;
  z-index: 5;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.welcome-cover__title {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.12;
  color: #fbf6ec;
  text-wrap: balance;
}

.welcome-cover__desc {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.56;
  color: rgba(251, 246, 236, 0.8);
  text-wrap: pretty;
}

.welcome-cover__form {
  margin-top: 1.65rem;
  text-align: left;
}

.welcome-cover__input {
  border-color: rgba(216, 166, 72, 0.48) !important;
  background: rgba(6, 14, 28, 0.86) !important;
  color: #fbf6ec !important;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.welcome-cover__input::placeholder {
  color: rgba(251, 246, 236, 0.45) !important;
}

.welcome-cover__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-engraved);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 201, 120, 0.75);
}

.welcome-cover__notice {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(240, 228, 200, 0.62);
}

.welcome-cover__lamp {
  color: #e5b55c;
  display: inline-flex;
}

/* ==========================================================================
   Studio Page (/imagine/studio)
   ========================================================================== */

.page-shell {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.studio-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.welcome-card {
  max-width: 36rem;
  margin: 0 auto;
}

.pulse-card {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.pulse-item + .pulse-item {
  margin-top: 1.75rem;
}

.pulse-item__head {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pulse-item__label {
  font-size: 15px;
  line-height: 1.4;
  color: hsl(var(--foreground) / 0.9);
}

.pulse-item__tag {
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--foreground) / 0.55);
}

/* Two-column Studio Grids */
.seed-grid,
.lenses-grid,
.directors-grid,
.research-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .seed-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .lenses-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .directors-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .research-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.spark-chips {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spark-chip {
  border-radius: 3px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  color: hsl(var(--foreground) / 0.78);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.spark-chip:hover {
  border-color: var(--burgundy);
  background: rgba(110, 30, 54, 0.08);
  color: hsl(var(--foreground));
}

html.dark .spark-chip:hover {
  border-color: var(--stamped-gold);
  background: rgba(216, 166, 72, 0.14);
}

/* Lenses & Shortcut Sprite Verdict Cards */
.verdict-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .verdict-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.verdict-option {
  border-radius: 3px;
  border: 1px solid rgba(182, 140, 62, 0.34);
  background: var(--cotton-well);
  padding: 0.85rem 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

html.dark .verdict-option {
  border-color: rgba(216, 166, 72, 0.24);
  background: rgba(12, 26, 48, 0.78);
}

.verdict-option:hover {
  border-color: rgba(182, 140, 62, 0.72);
}

html.dark .verdict-option:hover {
  border-color: rgba(240, 201, 120, 0.55);
}

.verdict-option--active {
  border-color: var(--burgundy) !important;
  box-shadow: inset 3px 0 0 0 var(--burgundy), 0 8px 20px -12px rgba(110, 30, 54, 0.35);
  background: rgba(110, 30, 54, 0.07) !important;
}

html.dark .verdict-option--active {
  border-color: var(--stamped-gold) !important;
  box-shadow: inset 3px 0 0 0 var(--stamped-gold), var(--shadow-lantern);
  background: rgba(216, 166, 72, 0.14) !important;
}

.verdict-option__icon {
  color: var(--burgundy-ink);
}

html.dark .verdict-option__icon {
  color: var(--stamped-gold);
}

.verdict-option__icon svg {
  width: 1rem;
  height: 1rem;
}

.compass-row {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(182, 140, 62, 0.24);
  padding-bottom: 0.55rem;
  font-size: 0.875rem;
}

.compass-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compass-row__label {
  width: 7.5rem;
  flex-shrink: 0;
  font-family: var(--font-engraved);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding-top: 0.18rem;
  color: var(--foil-ink);
}

/* Storyboard 3-Plate Triptych */
.storyboard-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .storyboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.panel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(182, 140, 62, 0.42);
  background: var(--cotton-well);
  transition: all 0.22s ease;
}

html.dark .panel-card {
  border-color: rgba(216, 166, 72, 0.28);
  background: rgba(9, 20, 38, 0.75);
}

.panel-card--active {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 1px var(--burgundy), var(--shadow-lantern);
}

html.dark .panel-card--active {
  border-color: var(--stamped-gold);
  box-shadow: 0 0 0 1px var(--stamped-gold), var(--shadow-lantern);
}

.panel-card--locked {
  opacity: 0.62;
}

.panel-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem;
}

.panel-card__running {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(182, 140, 62, 0.26);
  font-family: var(--font-engraved);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--foil-ink);
}

.panel-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.panel-card__prose {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.56;
  border-left: 3px solid var(--burgundy);
  padding-left: 0.8rem;
  margin-top: 0.2rem;
}

html.dark .panel-card__prose {
  border-left-color: #d96b88;
}

.panel-card__prose::after {
  content: "";
  display: table;
  clear: both;
}

.panel-card__witness {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(182, 140, 62, 0.3);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

.panel-card__witness-icon {
  color: var(--foil-ink);
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.panel-hints {
  margin-top: auto;
  border-radius: 3px;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  color: hsl(var(--foreground) / 0.78);
}

.panel-hints__eyebrow {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-engraved);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--foil-ink);
}

.panel-hints__eyebrow svg {
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
  display: block;
}

/* Director's Cut Illuminated Manuscript Plates */
.manuscript-plate {
  border: 1px solid rgba(182, 140, 62, 0.32);
  border-left: 3.5px solid var(--burgundy);
  background: var(--cotton-well);
  padding: 1.15rem 1.35rem;
  border-radius: 3px;
}

html.dark .manuscript-plate {
  border-color: rgba(216, 166, 72, 0.24);
  border-left-color: #d96b88;
  background: rgba(9, 20, 38, 0.72);
}

.manuscript-plate__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(182, 140, 62, 0.22);
  font-family: var(--font-engraved);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foil-ink);
}

.manuscript-plate__prose {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.manuscript-plate__prose::after {
  content: "";
  display: table;
  clear: both;
}

/* Director's Cut & Summary */
.seed-word-pill {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
  padding: 0.125rem 0.55rem;
  font-size: 0.75rem;
  color: #075985;
}

html.dark .seed-word-pill {
  color: #e0f2fe;
}

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  padding-bottom: 0.5rem;
}

.stat-row__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lantern-ink);
}

html.dark .stat-row__value {
  color: var(--lantern-soft);
}

.summary-wrap {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.metric-box {
  border-radius: 0.75rem;
  padding: 1rem;
}

.metric-box__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--foreground) / 0.5);
}

.metric-box__value {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--lantern-ink);
}

html.dark .metric-box__value {
  color: var(--lantern-soft);
}

.metric-box__note {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.7);
}

/* ==========================================================================
   Story Wall (/imagine/wall) & Prussian Cloth Masthead
   ========================================================================== */

.clothbound-masthead {
  position: relative;
  border-radius: 4px;
  border: 1.5px solid rgba(216, 166, 72, 0.72);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(216, 166, 72, 0.11), transparent 70%),
    linear-gradient(180deg, rgba(11, 24, 46, 0.95), rgba(7, 16, 32, 0.98));
  box-shadow:
    inset 0 0 0 8px rgba(8, 19, 37, 0.95),
    inset 0 0 0 9px rgba(216, 166, 72, 0.28),
    var(--shadow-glass);
  padding: 2.35rem 2.35rem 2.2rem;
  margin-bottom: 2rem;
}

.wall-header {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.wall-masthead-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  color: #fbf6ec;
}

.wall-masthead-lead {
  margin-top: 0.55rem;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(251, 246, 236, 0.8);
  text-wrap: pretty;
}

.wall-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wall-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wall-folio-card {
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wall-folio-card:hover {
  transform: translateY(-3px);
}

.wall-folio-card:focus-visible {
  outline: 2px solid #f0c978;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .wall-card--open {
    grid-column: span 2 / span 2;
  }
}

.wall-folio-card__frontispiece {
  position: relative;
  padding: 1.35rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(216, 166, 72, 0.45);
  color: #fbf6ec;
}

.wall-folio-card__frontispiece-meta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-engraved);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 201, 120, 0.92);
}

.wall-folio-card__title {
  position: relative;
  z-index: 3;
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.16;
  color: #fbf6ec;
}

.wall-folio-card__sub {
  position: relative;
  z-index: 3;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(251, 246, 236, 0.84);
}

.wall-folio-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.5rem 1.25rem;
}

.wall-folio-card__plate + .wall-folio-card__plate {
  margin-top: 0.75rem;
}

.wall-folio-card__panel {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.wall-folio-card__panel::after {
  content: "";
  display: table;
  clear: both;
}

.wall-folio-card__num {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-engraved);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foil-ink);
}

.wall-card__panels--clamped {
  position: relative;
  max-height: 7.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
}

/* ==========================================================================
   Research Drawer (/imagine/research)
   ========================================================================== */

.glance-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .glance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.session-mini-grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .session-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@keyframes keeper-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.8deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.8deg);
  }
}

.animate-keeper-float {
  animation: keeper-float 4.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-keeper-float {
    animation: none !important;
  }
}

/* Story Keeper Gold-Foil Medallion & Living Presence */
.hero-keeper-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero-keeper-medallion,
.hero-keeper-figure-wrap {
  position: relative;
  width: 11.75rem;
  height: 11.75rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(226, 180, 92, 0.82);
  background: radial-gradient(circle at 56% 52%, rgba(245, 199, 106, 0.2), rgba(7, 16, 32, 0.94) 72%);
  box-shadow:
    inset 0 0 0 5px rgba(8, 19, 37, 0.96),
    inset 0 0 0 6px rgba(216, 166, 72, 0.34),
    0 0 54px rgba(226, 180, 92, 0.24);
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.hero-keeper-medallion--sm {
  width: 7.75rem;
  height: 7.75rem;
  padding: 0.5rem;
}

@media (min-width: 640px) {
  .hero-keeper-medallion:not(.hero-keeper-medallion--sm),
  .hero-keeper-figure-wrap {
    width: 13.25rem;
    height: 13.25rem;
  }
}

.hero-keeper-halo {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(
    circle at 60% 54%,
    rgba(255, 227, 163, 0.45) 0%,
    rgba(216, 166, 72, 0.18) 42%,
    rgba(216, 166, 72, 0) 72%
  );
  filter: blur(8px);
  pointer-events: none;
}

.hero-keeper-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(4, 9, 20, 0.55)) drop-shadow(0 0 18px rgba(245, 199, 106, 0.28));
}

.hero-keeper-greeting {
  position: relative;
  z-index: 3;
  margin-top: 0.9rem;
  max-width: 38rem;
  border-radius: 3px;
  border: 1px solid rgba(216, 166, 72, 0.44);
  background: rgba(8, 19, 37, 0.88);
  padding: 0.48rem 1.15rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(251, 246, 236, 0.9);
  text-wrap: balance;
}

.keeper-companion-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(182, 140, 62, 0.58);
  border-left: 3.5px solid var(--stamped-gold);
  background: var(--cotton-rag);
  box-shadow:
    inset 0 0 0 4px var(--cotton-rag),
    inset 0 0 0 5px rgba(182, 140, 62, 0.24),
    var(--shadow-glass);
  padding: 1.05rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

html.dark .keeper-companion-card {
  background: #0d1a30;
  border-color: rgba(216, 166, 72, 0.45);
  border-left-color: var(--stamped-gold);
  box-shadow:
    inset 0 0 0 4px #0d1a30,
    inset 0 0 0 5px rgba(216, 166, 72, 0.18),
    var(--shadow-glass);
}

.keeper-companion-card--witness {
  border-left-color: var(--burgundy);
}

.keeper-companion-card--watchful {
  border-left-color: #8a2c52;
}

.keeper-companion-card__art {
  position: relative;
  width: 3.85rem;
  height: 3.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(216, 166, 72, 0.65);
  background: #081325;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0.25rem;
}

.keeper-companion-card__art--lg {
  width: 4.5rem;
  height: 4.5rem;
}

.keeper-companion-card__glow {
  position: absolute;
  inset: -8%;
  border-radius: 9999px;
  background: radial-gradient(circle at 60% 55%, rgba(245, 199, 106, 0.34), rgba(245, 199, 106, 0) 70%);
  pointer-events: none;
}

.keeper-companion-card__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.keeper-companion-card__medallion {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
}

.keeper-companion-card__body {
  flex: 1;
  min-width: 0;
}

.keeper-companion-card__eyebrow {
  font-family: var(--font-engraved);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--foil-ink);
}

.keeper-companion-card__title {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.22;
}

.keeper-companion-card__text {
  margin-top: 0.22rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.welcome-hero-keeper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.25rem;
}

.attuned-keeper-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid rgba(245, 199, 106, 0.7);
  box-shadow: 0 0 12px rgba(245, 199, 106, 0.35);
  flex-shrink: 0;
}

.wall-keeper-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.wall-keeper-badge__img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(245, 199, 106, 0.65);
}

/* Utility Helpers */
.attuned-banner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
}

.vow-grid {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .vow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.unstuck-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.unstuck-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
}

.unstuck-bar__label svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--foil-ink);
}

.pillars-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pillars-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-7 > * + * { margin-top: 1.75rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1-5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.4; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-muted { color: hsl(var(--foreground) / 0.6); }
.text-faint { color: hsl(var(--foreground) / 0.48); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.block { display: block; }
.justify-center { justify-content: center; }
.items-baseline { align-items: baseline; }

/* ==========================================================================
   Landing Colophon Epigraph ("Think Big. Think Ambitious.")
   ========================================================================== */

.landing-epigraph {
  position: relative;
  z-index: 10;
  padding-bottom: 5.5rem;
  text-align: center;
}

.epigraph-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.epigraph-ornament__line {
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 166, 72, 0.55), transparent);
}

.epigraph-ornament__glyph {
  color: #e5b55c;
  font-size: 0.85rem;
}

.landing-epigraph__quote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f4d38a;
}

.landing-epigraph__sub {
  margin-top: 0.35rem;
  font-family: var(--font-engraved);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.64);
}

/* ==========================================================================
   Editorial Charter & Monograph (/imagine/research)
   ========================================================================== */

.charter-shell {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.15rem;
  padding-bottom: 4rem;
}

.charter-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 56rem;
  width: 100%;
  margin: 0 auto;
  padding: 2.75rem 2.5rem 2.55rem;
}

.charter-hero .cover-imprint {
  margin-bottom: 1.15rem;
}

.charter-live-pill {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: 100%;
  border-radius: 9999px;
  border: 1px solid rgba(216, 166, 72, 0.38);
  background: rgba(12, 27, 51, 0.82);
  padding: 0.42rem 1.05rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(251, 246, 236, 0.88);
}

.charter-live-pill--dirty {
  border-color: rgba(235, 180, 76, 0.65);
  background: rgba(92, 46, 14, 0.42);
  color: #fdf3dc;
}

.charter-live-pill__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.75);
}

.charter-live-pill--dirty .charter-live-pill__dot,
.charter-live-pill__dot--dirty {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.75);
}

.charter-hero__title {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fbf6ec;
}

.charter-hero__lead {
  margin-top: 0.85rem;
  max-width: 39rem;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.58;
  text-wrap: balance;
  color: rgba(251, 246, 236, 0.82);
}

.charter-sheet {
  padding: 2rem;
}

@media (min-width: 640px) {
  .charter-sheet {
    padding: 2.5rem;
  }
}

.charter-sheet__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.charter-sheet__header > div {
  flex: 1 1 22rem;
  min-width: 0;
  max-width: 100%;
}

.charter-sheet__header > .ui-btn {
  flex-shrink: 0;
  align-self: flex-start;
}

.ui-textarea--compact {
  min-height: 2.9rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1.45;
  resize: vertical;
}

.charter-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--lantern-ink);
}

html.dark .charter-eyebrow {
  color: var(--lantern-soft);
}

.charter-sheet__title {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.charter-sheet__desc {
  margin-top: 0.4rem;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.68);
}

.charter-sheet__body {
  padding-top: 1.75rem;
}

.charter-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.9);
}

.charter-prose-editor {
  margin-top: 0.6rem;
  width: 100%;
  min-height: 290px;
  border-radius: 0.875rem;
  padding: 1.15rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.975rem;
  line-height: 1.72;
  resize: vertical;
}

.charter-whisper-box,
.charter-rehearsal {
  border-radius: 0.875rem;
  border: 1px solid hsl(var(--foreground) / 0.08);
  background: hsl(var(--foreground) / 0.025);
  padding: 1.15rem 1.25rem;
}

html.dark .charter-whisper-box,
html.dark .charter-rehearsal {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.charter-framing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .charter-framing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.charter-format-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid hsl(var(--foreground) / 0.08);
  background: hsl(var(--foreground) / 0.025);
  padding: 0.75rem 1rem;
}

html.dark .charter-format-toolbar {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.charter-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: hsl(var(--foreground) / 0.78);
  cursor: pointer;
}

.charter-question-card {
  border-radius: 0.95rem;
  border: 1px solid hsl(var(--foreground) / 0.1);
  background: hsl(var(--background) / 0.55);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html.dark .charter-question-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 15, 31, 0.48);
}

.charter-question-card:focus-within {
  border-color: rgba(220, 158, 48, 0.65);
  box-shadow: 0 0 0 3px rgba(220, 158, 48, 0.14);
}

.charter-question-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.charter-q-num {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9999px;
  background: rgba(220, 158, 48, 0.18);
  color: var(--lantern-ink);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

html.dark .charter-q-num {
  color: var(--lantern-soft);
}

.charter-q-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.charter-icon-btn {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--foreground) / 0.12);
  background: transparent;
  color: hsl(var(--foreground) / 0.75);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all 0.15s ease;
}

.charter-icon-btn:hover:not(:disabled) {
  border-color: hsl(var(--foreground) / 0.3);
  background: hsl(var(--foreground) / 0.06);
  color: hsl(var(--foreground));
}

.charter-icon-btn--danger:hover:not(:disabled) {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.charter-icon-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

/* Interactive Student Preview & Segmented Control */
.charter-preview-stage {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--foreground) / 0.08);
}

.charter-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.charter-seg {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid hsl(var(--foreground) / 0.12);
  background: hsl(var(--foreground) / 0.05);
  padding: 0.2rem;
}

.charter-seg__btn {
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  cursor: pointer;
  transition: all 0.16s ease;
}

.charter-seg__btn--active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.charter-student-card {
  max-width: 40rem;
  margin: 0 auto;
}

/* Likert 1-5 & Mood Chips Controls (used in Studio & Preview) */
.pulse-likert-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pulse-likert-btn {
  height: 2.5rem;
  border-radius: 0.65rem;
  border: 1px solid hsl(var(--foreground) / 0.14);
  background: hsl(var(--foreground) / 0.04);
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.82);
  cursor: pointer;
  transition: all 0.16s ease;
}

.pulse-likert-btn:hover {
  border-color: rgba(220, 158, 48, 0.6);
}

.pulse-likert-btn--active {
  border-color: var(--lantern) !important;
  background: rgba(220, 158, 48, 0.22) !important;
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-lantern);
}

.pulse-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.pulse-choice-chip {
  border-radius: 9999px;
  border: 1px solid hsl(var(--foreground) / 0.14);
  background: hsl(var(--foreground) / 0.04);
  padding: 0.4rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.82);
  cursor: pointer;
  transition: all 0.16s ease;
}

.pulse-choice-chip:hover {
  border-color: rgba(220, 158, 48, 0.6);
}

.pulse-choice-chip--active {
  border-color: var(--lantern) !important;
  background: rgba(220, 158, 48, 0.22) !important;
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-lantern);
}

/* Sticky Publish Bar */
.charter-publish-bar {
  position: sticky;
  bottom: 1.25rem;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1rem;
  padding: 0.9rem 1.25rem;
}

.charter-publish-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.825rem;
  color: hsl(var(--foreground) / 0.8);
}

/* ==========================================================================
   Premiere Screening Room · The Magic-Lantern Theatre (Prussian Cloth Plate)
   ========================================================================== */

.screening-room-card.clothbound-theatre {
  position: relative;
  margin-top: 1.5rem;
  padding: 2.15rem 2.15rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 4px;
  border: 1.5px solid rgba(216, 166, 72, 0.78);
  background:
    radial-gradient(65% 55% at 50% 0%, rgba(216, 166, 72, 0.1), transparent 72%),
    linear-gradient(180deg, #0b182f 0%, #071122 100%);
  box-shadow:
    inset 0 0 0 8px #081325,
    inset 0 0 0 9px rgba(216, 166, 72, 0.3),
    0 28px 70px -24px rgba(0, 0, 0, 0.85);
  color: #fbf6ec;
}

.theatre-running-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(216, 166, 72, 0.28);
  font-family: var(--font-engraved);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #e5b55c;
}

.theatre-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fbf6ec;
}

.theatre-desc {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(251, 246, 236, 0.72);
}

.screening-room__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.clothbound-theatre .charter-seg {
  border-radius: 3px;
  border-color: rgba(216, 166, 72, 0.36);
  background: rgba(5, 11, 22, 0.75);
}

.clothbound-theatre .charter-seg__btn {
  border-radius: 2px;
  font-family: var(--font-engraved);
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.68);
}

.clothbound-theatre .charter-seg__btn--active {
  background: var(--burgundy);
  color: #fbf6ec;
}

.screening-style-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .screening-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .screening-style-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.screening-camera-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.screening-camera-bar__label {
  font-family: var(--font-engraved);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5b55c;
  margin-right: 0.25rem;
}

.screening-camera-pill {
  border-radius: 3px;
  border: 1px solid rgba(216, 166, 72, 0.32);
  background: rgba(9, 20, 38, 0.82);
  color: rgba(251, 246, 236, 0.8);
  padding: 0.34rem 0.68rem;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.screening-camera-pill:hover:not(:disabled) {
  border-color: rgba(229, 181, 92, 0.72);
  color: #ffffff;
}

.screening-camera-pill--active {
  border-color: #e5b55c;
  background: rgba(216, 166, 72, 0.2);
  color: #fff8ea;
  box-shadow: 0 0 16px rgba(216, 166, 72, 0.18);
}

.screening-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #040812;
}

.screening-stage-wrap--vertical .screening-video {
  aspect-ratio: 9 / 16;
}

.screening-sound-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 211, 138, 0.75);
  background: rgba(8, 19, 37, 0.88);
  backdrop-filter: blur(8px);
  color: #f8dfa1;
  font-family: var(--font-engraved);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.screening-slate {
  position: relative;
  min-height: 22rem;
  aspect-ratio: auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  background:
    radial-gradient(60% 55% at 50% 35%, rgba(216, 166, 72, 0.14), transparent 72%),
    linear-gradient(180deg, #071224 0%, #040914 100%);
}

.screening-stage-wrap--vertical .screening-slate {
  aspect-ratio: auto;
  min-height: 26rem;
  padding: 1.5rem 1.15rem;
}

.screening-slate__badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.screening-slate__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 181, 92, 0.45);
  background: rgba(15, 31, 58, 0.85);
  font-family: var(--font-engraved);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3cf82;
}

.screening-reel-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid rgba(229, 181, 92, 0.24);
  border-top-color: #f3cf82;
  animation: omni-reel-spin 1.15s linear infinite;
}

@keyframes omni-reel-spin {
  to {
    transform: rotate(360deg);
  }
}

.screening-slate__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fbf6ec;
  max-width: 34rem;
}

.screening-slate__sub {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(251, 246, 236, 0.72);
  max-width: 34rem;
}

.screening-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.screening-step {
  padding: 0.22rem 0.58rem;
  border-radius: 3px;
  border: 1px solid rgba(216, 166, 72, 0.2);
  background: rgba(8, 17, 33, 0.75);
  font-size: 0.7rem;
  color: rgba(251, 246, 236, 0.52);
}

.screening-step--active {
  border-color: rgba(229, 181, 92, 0.72);
  background: rgba(216, 166, 72, 0.16);
  color: #fbe5b1;
}

.screening-step--done {
  border-color: rgba(116, 198, 157, 0.45);
  color: rgba(183, 233, 205, 0.9);
}

.screening-shotlist {
  width: 100%;
  max-width: 42rem;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr;
  text-align: left;
  margin-top: 0.25rem;
}

@media (min-width: 720px) {
  .screening-stage-wrap:not(.screening-stage-wrap--vertical) .screening-shotlist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.screening-shot {
  padding: 0.55rem 0.68rem;
  border-radius: 3px;
  border: 1px solid rgba(216, 166, 72, 0.22);
  background: rgba(8, 18, 35, 0.78);
}

.screening-shot__time {
  font-family: var(--font-engraved);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5b55c;
}

.screening-shot__text {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(251, 246, 236, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.screening-takes-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: rgba(5, 11, 22, 0.92);
  border-top: 1px solid rgba(216, 166, 72, 0.24);
}

.screening-director-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.screening-director-chip {
  border-radius: 999px;
  border: 1px solid rgba(216, 166, 72, 0.28);
  background: rgba(11, 24, 46, 0.72);
  color: rgba(251, 246, 236, 0.78);
  padding: 0.24rem 0.62rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.screening-director-chip:hover {
  border-color: rgba(229, 181, 92, 0.68);
  color: #ffffff;
}

.screening-director-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.clothbound-theatre .verdict-option {
  border-color: rgba(216, 166, 72, 0.26);
  background: rgba(12, 26, 48, 0.82);
  color: #fbf6ec;
}

.clothbound-theatre .verdict-option .text-muted {
  color: rgba(251, 246, 236, 0.66);
}

.clothbound-theatre .verdict-option--active {
  border-color: #e5b55c !important;
  box-shadow: inset 3px 0 0 0 #e5b55c, 0 0 24px rgba(216, 166, 72, 0.22);
  background: rgba(216, 166, 72, 0.14) !important;
}

.screening-stage-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(226, 180, 92, 0.52);
  background: #050b16;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
}

.screening-stage-wrap--vertical {
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.screening-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.screening-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(5, 11, 22, 0.94);
  border-top: 1px solid rgba(216, 166, 72, 0.26);
  padding: 0.68rem 1rem;
}

.screening-ctrl-btn {
  border-radius: 3px;
  border: 1px solid rgba(226, 180, 92, 0.55);
  background: rgba(216, 166, 72, 0.14);
  color: #f4d38a;
  padding: 0.32rem 0.85rem;
  font-family: var(--font-engraved);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.screening-ctrl-btn:hover {
  background: rgba(216, 166, 72, 0.28);
  color: #ffffff;
}

.screening-scrubber-wrap {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.screening-scrubber-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--burgundy), #e5b55c, #f6d47c);
}

.screening-director-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.screening-director-bar .ui-input,
.screening-director-bar .ui-textarea {
  flex: 1;
  min-width: 16rem;
  border-color: rgba(216, 166, 72, 0.34);
  background: rgba(5, 11, 22, 0.8);
  color: #fbf6ec;
}

.screening-director-bar .ui-input::placeholder,
.screening-director-bar .ui-textarea::placeholder {
  color: rgba(251, 246, 236, 0.48);
}

.clothbound-theatre .ui-btn--glass {
  border-color: rgba(226, 180, 92, 0.5);
  background: rgba(14, 30, 56, 0.85);
  color: #fbf6ec;
}

.clothbound-theatre .ui-btn--glass:hover:not(:disabled) {
  border-color: #f0c978;
  background: rgba(24, 48, 86, 0.95);
}

.screening-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(216, 166, 72, 0.24);
}

.clothbound-theatre .screening-share-bar .text-muted {
  color: rgba(251, 246, 236, 0.72);
}

/* ==========================================================================
   DAT (10 Unrelated Nouns) & AUT (Alternate Uses) Icebreaker Components
   ========================================================================== */

.dat-rules-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .dat-rules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (min-width: 640px) {
  .dat-words-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.dat-word-slot {
  position: relative;
  display: flex;
  align-items: center;
}

.dat-word-slot__num {
  position: absolute;
  left: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.42);
  pointer-events: none;
}

.dat-word-slot__input {
  padding-left: 1.85rem !important;
  height: 2.5rem;
  font-size: 0.875rem;
}

.aut-entry-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.aut-entry-bar .ui-input {
  flex: 1;
  min-width: 14rem;
}

.aut-ideas-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aut-idea-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--foreground) / 0.1);
  background: hsl(var(--background) / 0.65);
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
}

html.dark .aut-idea-pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 15, 31, 0.55);
}

.aut-idea-pill__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lantern-ink);
}

html.dark .aut-idea-pill__num {
  color: var(--lantern-soft);
}

.aut-idea-pill__text {
  flex: 1;
}

.aut-idea-pill__remove {
  border: none;
  background: transparent;
  color: hsl(var(--foreground) / 0.5);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

.aut-idea-pill__remove:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

/* ==========================================================================
   Mobile-First Responsive Refinements (Phone & Small Tablet Viewports)
   ========================================================================== */

@media (max-width: 767px) {
  .landing-hero {
    padding: 1.15rem 0 1.85rem;
  }

  .clothbound-cover,
  .clothbound-masthead {
    padding: 2.1rem 1.35rem 1.9rem;
  }

  .folio-triptych {
    padding-bottom: 2.75rem;
  }

  .landing-epigraph {
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 639px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-header .container {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .site-nav {
    height: auto;
    min-height: 3.3rem;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    column-gap: 0.25rem;
  }

  .brand-link {
    gap: 0.35rem;
  }

  .brand-icon {
    width: 26px;
    height: 26px;
  }

  .brand-title {
    font-size: clamp(14px, 3.85vw, 17px);
  }

  .brand-edition {
    display: none;
  }

  .nav-links {
    gap: 0.1rem;
  }

  .nav-pill {
    padding: 4px 6px;
    font-size: clamp(9px, 2.45vw, 10.5px);
    letter-spacing: 0.045em;
    white-space: nowrap;
  }

  .nav-pill svg,
  .nav-pill__desktop {
    display: none;
  }

  .nav-pill__mobile {
    display: inline;
  }

  .page-shell {
    padding-top: 1.2rem;
    padding-bottom: 3.5rem;
  }

  .ui-btn {
    max-width: 100%;
    height: auto;
    min-height: 2.35rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    white-space: normal;
    text-align: center;
  }

  .gradient-button {
    max-width: 100%;
    height: auto;
    min-height: 2.75rem;
    padding: 0.78rem 1.15rem;
    letter-spacing: 0.12em;
    white-space: normal;
    text-align: center;
  }

  .ui-card {
    max-width: 100%;
    min-width: 0;
  }

  .magic-btn,
  .magic-btn__front {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .foil-corner {
    width: 15px;
    height: 15px;
  }

  .foil-corner--tl,
  .foil-corner--tr {
    top: 12px;
  }

  .foil-corner--bl,
  .foil-corner--br {
    bottom: 12px;
  }

  .foil-corner--tl,
  .foil-corner--bl {
    left: 12px;
  }

  .foil-corner--tr,
  .foil-corner--br {
    right: 12px;
  }

  .hero-keeper-medallion,
  .hero-keeper-figure-wrap {
    width: 8.75rem;
    height: 8.75rem;
  }

  .hero-keeper-greeting {
    padding: 0.45rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.42;
    max-width: 22rem;
  }

  .landing-h1 {
    margin-top: 1rem;
    font-size: clamp(1.95rem, 7.6vw, 2.5rem);
    line-height: 1.12;
  }

  .landing-lead {
    margin-top: 0.95rem;
    font-size: 1.05rem;
    line-height: 1.54;
  }

  .landing-actions {
    margin-top: 1.45rem;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .landing-actions .gradient-button,
  .landing-actions .ui-btn {
    width: 100%;
  }

  .cover-colophon-strip {
    display: none;
  }

  .ui-card-header {
    padding: 1.25rem 1.2rem 0.85rem;
  }

  .ui-card-content {
    padding: 0 1.2rem 1.25rem;
  }

  .ui-card-content--top {
    padding-top: 1.25rem;
  }

  .ui-card-title {
    font-size: 1.45rem;
  }

  /* Prevent iOS Safari zoom-on-focus by keeping form controls >= 16px */
  .ui-input,
  .ui-select,
  .ui-textarea,
  .charter-prose-editor {
    font-size: 16px !important;
  }

  /* ActProgress Stepper on narrow phones */
  .act-progress {
    padding: 0.75rem 0.65rem;
  }

  .act-progress__header {
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  .act-progress__list {
    gap: 0.2rem;
  }

  .act-progress__item {
    min-width: 0;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .act-progress__badge {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .act-progress__top {
    flex-direction: column;
    gap: 0.2rem;
    max-width: 100%;
  }

  .act-progress__title {
    font-size: clamp(10px, 2.7vw, 12px);
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  /* Marginalia bubbles on narrow phones */
  .bubble-row {
    gap: 0.55rem;
  }

  .bubble-avatar {
    width: 1.95rem;
    height: 1.95rem;
  }

  .keeper-bubble,
  .creator-bubble,
  .sprite-bubble {
    padding: 0.85rem 0.95rem;
  }

  .bubble-text--keeper,
  .bubble-text--creator {
    font-size: 1.06rem;
  }

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

  /* Charter & Monograph on mobile */
  .charter-sheet {
    padding: 1.2rem;
  }

  .charter-sheet__title {
    font-size: 1.45rem;
  }

  .charter-question-card {
    padding: 0.9rem;
  }

  .charter-question-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .charter-question-card__top input[data-q-tag] {
    width: 100% !important;
  }

  .charter-publish-bar {
    bottom: max(0.45rem, env(safe-area-inset-bottom));
    padding: 0.5rem 0.65rem;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.75rem;
  }

  .charter-publish-bar__status {
    display: none;
  }

  .charter-publish-bar__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.45rem;
  }

  .charter-publish-bar .gradient-button,
  .charter-publish-bar .ui-btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.36rem 0.45rem;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .charter-publish-bar .gradient-button svg {
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
  }

  .charter-publish-bar .foil-star {
    display: none;
  }

  /* Screening Room on mobile */
  .screening-room-card.clothbound-theatre {
    padding: 1.3rem 1.15rem;
  }

  .screening-controls {
    flex-wrap: wrap;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  .screening-scrubber-wrap {
    order: 3;
    flex: 1 1 100%;
  }

  .screening-director-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .screening-director-bar .ui-input,
  .screening-director-bar .ui-textarea {
    min-width: 0;
    width: 100%;
  }

  .screening-director-actions {
    width: 100%;
  }

  .screening-director-actions .ui-btn,
  .screening-director-actions .gradient-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .screening-slate {
    aspect-ratio: auto;
    min-height: 19rem;
    padding: 1.15rem 0.9rem;
  }

  .screening-stage-wrap--vertical .screening-slate {
    aspect-ratio: auto;
    min-height: 22rem;
  }

  .screening-share-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .screening-share-bar .gradient-button,
  .screening-share-bar .ui-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    white-space: nowrap;
  }
}


