/* Polyglottika — shared styles for static HTML pages */
:root {
  --bg: oklch(0.12 0.03 275);
  --fg: oklch(0.97 0.01 280);
  --muted: oklch(0.72 0.03 280);
  --card: oklch(0.18 0.04 275 / 72%);
  --border: oklch(0.72 0.14 230 / 28%);
  --input: oklch(0.22 0.04 275);
  --magenta: oklch(0.72 0.28 330);
  --cyan: oklch(0.82 0.18 210);
  --violet: oklch(0.6 0.25 295);
  --gold: oklch(0.85 0.16 90);
  --rift-cyan: #7ecbff;
  --rift-gold: #e8c56b;
  --rift-crimson: #e35d6a;
  --rift-lavender: #c9b4ff;
  --rift-ember: #ff8a4c;
  --hud: oklch(0.18 0.04 275 / 72%);
  --hud-border: oklch(0.72 0.14 230 / 28%);
  --gradient-primary: linear-gradient(135deg, var(--magenta), var(--violet), var(--cyan));
  --gradient-rift:
    radial-gradient(circle at 50% 30%, oklch(0.6 0.25 295 / 40%), transparent 60%),
    radial-gradient(circle at 20% 80%, oklch(0.72 0.28 330 / 30%), transparent 55%),
    radial-gradient(circle at 85% 70%, oklch(0.82 0.18 210 / 25%), transparent 55%);
  --gradient-card: linear-gradient(160deg, oklch(0.22 0.05 275 / 90%), oklch(0.16 0.03 275 / 90%));
  --shadow-neon: 0 0 40px -10px oklch(0.72 0.28 330 / 55%), 0 0 80px -30px oklch(0.82 0.18 210 / 45%);
  --radius: 0.875rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background-image:
    radial-gradient(ellipse at top, oklch(0.22 0.08 295 / 50%), transparent 60%),
    radial-gradient(ellipse at bottom right, oklch(0.2 0.1 330 / 30%), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
}
.lang-mn {
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}
.lang-bichig,
.lang-bichig h1,
.lang-bichig h2,
.lang-bichig h3,
.lang-bichig h4,
.lang-bichig h5,
.lang-name--bichig {
  font-family: "Noto Sans Mongolian", "Mongolian Baiti", Inter, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }

/* Layout */
.container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
.container-narrow { max-width: 48rem; margin-inline: auto; padding-inline: 1rem; }
.container-md { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }

/* Utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-rift { background: var(--gradient-rift); }
.shadow-neon { box-shadow: var(--shadow-neon); }
.glass-card,
.hud-panel {
  background: var(--hud);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hud-border);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px oklch(0.08 0.03 275 / 45%);
}
.grid-pattern {
  background-image:
    linear-gradient(oklch(0.5 0.1 295 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.5 0.1 295 / 8%) 1px, transparent 1px);
  background-size: 48px 48px;
}
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-neon {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 0 20px -5px oklch(0.72 0.28 330 / 50%);
}
.btn-neon:hover {
  box-shadow: 0 0 40px -5px oklch(0.72 0.28 330 / 90%), 0 0 60px -10px oklch(0.82 0.18 210 / 60%);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--gradient-card);
  border-color: oklch(0.5 0.1 295 / 25%);
  color: var(--fg);
}
.btn-ghost:hover { border-color: oklch(0.82 0.18 210 / 50%); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid oklch(0.72 0.14 230 / 22%);
  backdrop-filter: blur(20px);
  background: oklch(0.12 0.03 275 / 82%);
}
.hud-scan {
  pointer-events: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.55;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand img { width: 2.25rem; height: 2.25rem; filter: drop-shadow(0 0 12px oklch(0.72 0.28 330 / 60%)); }
.brand span { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active {
  color: var(--fg);
  background: oklch(0.28 0.06 250 / 45%);
  border-color: oklch(0.72 0.14 230 / 35%);
}
.nav-end { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-cta { display: none; }
.menu-btn { background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--fg); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid oklch(0.35 0.05 275 / 70%);
  background: oklch(0.18 0.03 275 / 80%);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch-btn:hover { border-color: oklch(0.55 0.18 295 / 70%); }
.lang-flag {
  font-size: 1rem;
  line-height: 1;
  filter: drop-shadow(0 0 0.5px oklch(0 0 0 / 35%));
}
.lang-switch-btn .lang-name { max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-switch-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 0.75rem;
  border: 1px solid oklch(0.35 0.05 275 / 70%);
  background: oklch(0.16 0.03 275 / 96%);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px oklch(0.1 0.03 275 / 55%);
  z-index: 60;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}
.lang-switch.open .lang-switch-menu { display: block; }
.lang-switch-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch-menu a:hover,
.lang-switch-menu .is-active a {
  color: var(--fg);
  background: oklch(0.25 0.05 295 / 45%);
}
.lang-switch-menu .lang-flag { font-size: 1.15rem; }

/* Bichig label in the language menu (all locales): script is vertical */
.lang-name--bichig {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  white-space: normal;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 500;
  max-height: 6.75rem;
}
.lang-switch-btn .lang-name--bichig {
  max-height: 5.5rem;
}
.lang-switch-menu a:has(.lang-name--bichig) {
  align-items: flex-start;
}

.mobile-menu { display: none; flex-direction: column; gap: 0.25rem; padding-bottom: 1rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--muted); }
.mobile-menu .btn { margin-top: 0.5rem; }
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1280px) {
  .nav-links a { padding: 0.4rem 0.55rem; font-size: 0.75rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid oklch(0.72 0.14 230 / 22%);
  margin-top: 0;
  position: relative;
  overflow: hidden;
  background: oklch(0.11 0.03 275);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-rift);
  opacity: 0.3;
  pointer-events: none;
}
.footer-inner { position: relative; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 2; }
.footer-grid h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; font-family: inherit; letter-spacing: 0; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.footer-grid a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.3 0.05 275 / 40%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* Social links — the compound selector is needed to beat `.footer-grid ul`,
   which otherwise stacks these vertically. */
.footer-brand .social-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.footer-brand .social-links a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: oklch(0.22 0.05 275 / 60%);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-brand .social-links svg { width: 1.125rem; height: 1.125rem; display: block; }
.footer-brand .social-links a:hover,
.footer-brand .social-links a:focus-visible {
  color: var(--fg);
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}
@media (prefers-reduced-motion: reduce) {
  .footer-brand .social-links a { transition: none; }
  .footer-brand .social-links a:hover,
  .footer-brand .social-links a:focus-visible { transform: none; }
}

/* Sections */
section { position: relative; }
.hero { position: relative; overflow: hidden; padding: 4rem 0 6rem; }
.hero-inner { position: relative; }
.hero .bg-layer { position: absolute; inset: 0; pointer-events: none; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } .hero { padding: 6rem 0 8rem; } }
.hero h1 { font-size: 3rem; line-height: 1.05; }
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }
.hero p.lead { margin-top: 1.5rem; color: var(--muted); font-size: 1.125rem; max-width: 36rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--gradient-card);
  border: 1px solid oklch(0.5 0.1 295 / 25%);
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }

.stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 28rem; }
.stat-n { font-family: "Space Grotesk", sans-serif; font-size: 1.875rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.hero-image {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid oklch(0.3 0.05 275 / 70%);
  box-shadow: var(--shadow-neon);
  animation: float 6s ease-in-out infinite;
}
.hero-image-wrap { position: relative; }
.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -1rem;
  background: linear-gradient(135deg, oklch(0.72 0.28 330 / 30%), oklch(0.6 0.25 295 / 20%), oklch(0.82 0.18 210 / 30%));
  filter: blur(48px);
  border-radius: 1.5rem;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Section headings */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: 2.25rem; }
@media (min-width: 640px) { .section-head h2 { font-size: 3rem; } }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* Card grids */
.card-grid { display: grid; gap: 1.25rem; }
.card-grid > * { min-width: 0; }
.card-grid.cols-2 { grid-template-columns: 1fr; }
.card-grid.cols-3 { grid-template-columns: 1fr; }
.card-grid.cols-4 { grid-template-columns: 1fr; }
.card-grid.cols-5, .card-grid.cols-6 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4, .card-grid.cols-5, .card-grid.cols-6 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
  .card-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-card { padding: 1.5rem; transition: all 0.25s; }
.feature-card:hover { transform: translateY(-4px); border-color: oklch(0.72 0.28 330 / 50%); }
.icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, oklch(0.72 0.28 330 / 30%), oklch(0.82 0.18 210 / 30%));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cyan);
}
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); }

/* CEO / guide cards */
.ceo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--hud-border);
  background: var(--hud);
  cursor: default;
  text-align: start;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ceo-card[data-modal],
.ceo-card--link { cursor: pointer; }
.ceo-card[data-modal]:hover,
.ceo-card--link:hover {
  transform: translateY(-4px);
  border-color: oklch(0.82 0.16 210 / 45%);
  box-shadow: 0 12px 36px oklch(0.72 0.18 230 / 18%);
}
.ceo-card:hover .ceo-img img {
  transform: scale(1.04);
}
.ceo-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.ceo-img {
  aspect-ratio: 3 / 4;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0b0b14;
  flex: 0 0 auto;
}
.ceo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}
.ceo-img--wide img {
  object-position: 62% 12%;
}
.ceo-img--awen img {
  object-position: 38% 16%;
}
.ceo-img--ngan img {
  object-position: 50% 22%;
}
.ceo-img--evdeniya img {
  object-position: 46% 58%;
}
.ceo-img--nocturna img {
  object-position: 50% 22%;
}
.ceo-img--siyuehua img {
  object-position: 50% 28%;
}
.ceo-img--kalanga img {
  object-position: 50% 12%;
}
.ceo-img--sabrine img {
  object-position: 50% 22%;
}
.ceo-img--rym img {
  object-position: 50% 18%;
}
.ceo-img--soraya img {
  object-position: 50% 18%;
}
.ceo-img--lim img {
  object-position: 50% 14%;
}
.ceo-img--caecilia img {
  object-position: 50% 16%;
}
.ceo-img--barbara img {
  object-position: 50% 14%;
}
.ceo-img--adira img {
  object-position: 50% 28%;
}
.ceo-img--narissa img {
  object-position: 28% 42%;
}
.ceo-img--kesor img {
  object-position: 50% 14%;
}
.ceo-img--bortecine img {
  object-position: 50% 12%;
}
.ceo-img--glossa img {
  object-position: 50% 30%;
}
.ceo-img--jyotirmayi img {
  object-position: 50% 28%;
}
.ceo-img--ninemegir img {
  object-position: 50% 16%;
}
.ceo-img--pomaikai img {
  object-position: 50% 18%;
}
.ceo-img--farida img {
  object-position: 50% 20%;
}
.ceo-img--nieleni img {
  object-position: 50% 18%;
}
.ceo-img--tanit img {
  object-position: 50% 22%;
}
.ceo-img--pipaluk img {
  object-position: 50% 28%;
}
.ceo-img--aramia img {
  object-position: 50% 12%;
}
.ceo-img--eleonore img {
  object-position: 50% 18%;
}
.ceo-img--merel img {
  object-position: 50% 16%;
}
.ceo-img--orzala img {
  object-position: 50% 18%;
}
.ceo-img--phouthasone img {
  object-position: 50% 16%;
}
.ceo-img--yangche img {
  object-position: 50% 16%;
}
.ceo-img--sanda img {
  object-position: 50% 16%;
}
.ceo-img--dyangchen img {
  object-position: 50% 16%;
}
.ceo-img--livia img {
  object-position: 50% 18%;
}
.ceo-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.12 0.03 275 / 92%) 0%, transparent 52%);
  pointer-events: none;
}
.ceo-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.6rem;
  border-radius: 9999px;
  background: oklch(0.14 0.03 275 / 78%);
  border: 1px solid oklch(0.72 0.14 230 / 35%);
  backdrop-filter: blur(10px);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}
.ceo-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 8.25rem;
}
.ceo-body .role {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  font-weight: 600;
}
.ceo-body h3 {
  font-size: 1.05rem;
  margin-top: 0.3rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ceo-body .local {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.28rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ceo-body .quote {
  font-size: 0.78rem;
  color: oklch(0.86 0.02 280);
  margin-top: auto;
  padding-top: 0.7rem;
  font-style: italic;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured + chorus roster (5 peers, 1 special) */
.roster { display: flex; flex-direction: column; gap: 1.25rem; }
.roster-chorus {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
.roster-lead {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}
.roster-lead .ceo-img {
  aspect-ratio: 16 / 10;
  min-height: 12rem;
}
.roster-lead .ceo-body {
  min-height: 0;
  padding: 1.25rem 1.35rem 1.4rem;
  justify-content: center;
}
.roster-lead .ceo-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  -webkit-line-clamp: 2;
}
.roster-lead .ceo-body .local { -webkit-line-clamp: 2; }
.roster-lead .ceo-body .quote {
  -webkit-line-clamp: 5;
  font-size: 0.95rem;
  margin-top: 0.9rem;
  padding-top: 0;
}
.roster-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.roster-cta::after {
  content: "→";
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.roster-lead:hover .roster-cta::after { transform: translateX(3px); }
.roster-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.roster-lead--lise {
  border-color: color-mix(in oklab, var(--rift-crimson) 55%, var(--hud-border));
  background:
    linear-gradient(120deg, oklch(0.22 0.06 20 / 35%), transparent 42%),
    var(--hud);
}
.roster-lead--raala {
  border-color: color-mix(in oklab, var(--rift-ember) 50%, var(--hud-border));
  background:
    linear-gradient(120deg, oklch(0.24 0.07 50 / 32%), transparent 42%),
    var(--hud);
}
.roster-lead--custom {
  margin-top: 0.15rem;
  border-style: dashed;
  border-color: color-mix(in oklab, var(--cyan) 55%, var(--hud-border));
  background:
    linear-gradient(120deg, oklch(0.22 0.08 210 / 30%), transparent 46%),
    var(--hud);
  color: inherit;
  text-decoration: none;
}
.roster-lead--custom:hover {
  border-color: oklch(0.82 0.18 210 / 55%);
}
.ceo-img--custom {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, oklch(0.48 0.14 230 / 42%), transparent 64%),
    repeating-linear-gradient(
      135deg,
      oklch(0.2 0.04 275 / 55%) 0 14px,
      oklch(0.15 0.03 275 / 55%) 14px 28px
    );
}
.ceo-img--custom::after { opacity: 0.35; }
.guide-custom__plus {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px oklch(0.72 0.28 330 / 50%));
}
.roster-next {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklab, var(--hud-border) 80%, transparent);
}
.roster-next__head {
  margin-bottom: 1.15rem;
}
.roster-next__head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.roster-next .roster-chorus {
  grid-template-columns: minmax(0, 17.5rem);
}
.roster-lead--crimson {
  border-color: color-mix(in oklab, var(--rift-crimson) 55%, var(--hud-border));
}

@media (min-width: 640px) {
  .roster-chorus { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .roster-chorus > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 0.575rem);
    justify-self: center;
  }
}
@media (min-width: 900px) {
  .roster-lead {
    grid-template-columns: minmax(14rem, 38%) 1fr;
    min-height: 17.5rem;
  }
  .roster-lead .ceo-img {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }
  .roster-lead--raala .ceo-img img,
  .roster-lead--crimson .ceo-img img {
    object-fit: cover;
    object-position: center 20%;
  }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .roster-chorus { grid-template-columns: repeat(6, 1fr); }
  .roster-chorus > * { grid-column: span 2; }
  .roster-chorus > *:nth-child(4) { grid-column: 2 / span 2; }
  .roster-chorus > *:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 1200px) {
  .roster-chorus { grid-template-columns: repeat(5, 1fr); }
}
.roster-next .roster-chorus + .roster-chorus {
  margin-top: 1.15rem;
}
.roster-next .roster-chorus > *:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 17.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .roster-next .roster-chorus {
    grid-template-columns: repeat(2, minmax(0, 17.5rem));
  }
  .roster-next .roster-chorus > * {
    grid-column: auto;
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }
}
@media (min-width: 640px) and (max-width: 959px) {
  .roster-next .roster-chorus > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 17.5rem;
    width: 100%;
  }
}
@media (min-width: 960px) {
  .roster-next .roster-chorus {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .roster-next .roster-chorus > *:nth-child(5):last-child {
    grid-column: 2 / span 2;
    justify-self: center;
    max-width: 17.5rem;
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .roster-next .roster-chorus {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Pricing */
.tier {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  transition: all 0.25s;
}
.tier:hover { transform: translateY(-4px); }
.tier.highlight { border-color: oklch(0.72 0.28 330 / 70%); box-shadow: var(--shadow-neon); }
.tier-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--magenta), var(--cyan));
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
}
.tier .tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); min-height: 1rem; display: block; }
.tier h3 { font-size: 1.5rem; margin-top: 0.5rem; }
.price { margin-top: 1rem; display: flex; align-items: baseline; gap: 0.25rem; }
.price .num { font-family: "Space Grotesk", sans-serif; font-size: 3rem; font-weight: 700; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .per { font-size: 0.875rem; color: var(--muted); }
.tier ul { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.tier li { display: flex; gap: 0.5rem; font-size: 0.875rem; align-items: flex-start; }
.tier li::before { content: "✓"; color: var(--cyan); font-weight: 700; }
.tier .btn { margin-top: 2rem; width: 100%; }

.biz-tiers {
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.biz-tiers.card-grid.cols-3 {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.biz-tiers .tier {
  padding: 1.75rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  min-width: 0;
  box-sizing: border-box;
}
.biz-tiers .tier .tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.biz-tiers .tier h3 { font-size: 1.35rem; margin-top: 0.55rem; }
.biz-tiers .price {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  margin-top: 1.15rem;
  max-width: 100%;
}
.biz-tiers .price .num {
  font-size: clamp(1.85rem, 12cqi, 2.85rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  max-width: 100%;
}
.biz-tiers .price .per {
  font-size: 0.85rem;
  flex-shrink: 0;
}
.biz-tiers .tier-blurb {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-top: 1rem;
}
.biz-tiers .tier ul {
  margin-top: 1.35rem;
  gap: 0.7rem;
}
.biz-tiers .tier li { font-size: 0.875rem; }
.biz-tiers .tier .btn {
  margin-top: 1.75rem;
  padding-top: 0;
}
@media (min-width: 768px) {
  .biz-tiers.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Forms */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }

/* Prose (blog, privacy) */
.prose { font-size: 0.9375rem; line-height: 1.7; color: oklch(0.9 0.02 280); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.375rem; margin-top: 2.5rem; color: var(--fg); }
.prose p { color: var(--muted); }
.prose h2 + * { margin-top: 0.75rem; }

/* Code blocks */
pre.code {
  background: oklch(0.14 0.03 275 / 60%);
  border: 1px solid oklch(0.3 0.05 275 / 40%);
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  overflow-x: auto;
  color: oklch(0.9 0.05 200);
}

/* Table */
.api-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.api-table thead { background: oklch(0.14 0.03 275 / 40%); }
.api-table th { text-align: left; padding: 0.75rem 1.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 500; }
.api-table td { padding: 0.75rem 1.25rem; border-top: 1px solid oklch(0.3 0.05 275 / 40%); }
.api-table td:first-child { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--magenta); }
.api-table td:nth-child(2) { font-family: ui-monospace, monospace; font-size: 0.75rem; }
.api-table td:last-child { color: var(--muted); }

/* Blog cards */
.blog-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } .blog-grid > :first-child { grid-column: span 2; } }
.blog-card { padding: 1.5rem; display: flex; flex-direction: column; transition: all 0.25s; }
.blog-card:hover { transform: translateY(-4px); border-color: oklch(0.72 0.28 330 / 50%); }
.blog-thumb { border-radius: 0.75rem; height: 10rem; margin-bottom: 1.25rem; }
.blog-grid > :first-child .blog-thumb { height: 14rem; }
.blog-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.blog-meta .pill { padding: 0.125rem 0.5rem; border-radius: 9999px; background: var(--gradient-card); border: 1px solid oklch(0.5 0.1 295 / 25%); }
.blog-card h2 { font-size: 1.125rem; margin-top: 0.75rem; }
.blog-grid > :first-child h2 { font-size: 1.5rem; }
.blog-card p.excerpt { color: var(--muted); font-size: 0.875rem; margin-top: 0.5rem; flex: 1; }
.blog-card .byline { margin-top: 1rem; font-size: 0.75rem; color: var(--muted); display: flex; gap: 0.5rem; }

/* Roles list */
.roles { border-radius: 1rem; overflow: hidden; }
.role-row { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: space-between; border-top: 1px solid oklch(0.3 0.05 275 / 40%); transition: background 0.2s; }
.role-row:first-child { border-top: none; }
.role-row:hover { background: oklch(0.24 0.05 275 / 30%); }
.role-row .meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.role-row .apply { color: var(--cyan); font-size: 0.875rem; white-space: nowrap; }
.role-row .apply:hover { text-decoration: underline; }
@media (min-width: 640px) { .role-row { flex-direction: row; align-items: center; } }

/* Big CTA card */
.big-cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
}
@media (min-width: 1024px) { .big-cta { padding: 4rem; } }
.big-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-rift);
  opacity: 0.6;
  pointer-events: none;
}
.big-cta > * { position: relative; }
.big-cta h2 { font-size: 2.25rem; }
@media (min-width: 640px) { .big-cta h2 { font-size: 3rem; } }
.big-cta p { color: var(--muted); margin: 1rem auto 0; max-width: 32rem; }
.big-cta .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Post detail */
.post-back { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.post-back:hover { color: var(--fg); }
.post-hero {
  margin-top: 2rem;
  height: 16rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, oklch(0.6 0.25 295 / 40%), oklch(0.72 0.28 330 / 30%), oklch(0.82 0.18 210 / 30%));
  border: 1px solid oklch(0.3 0.05 275 / 40%);
}
.byline-block {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid oklch(0.3 0.05 275 / 40%);
  border-bottom: 1px solid oklch(0.3 0.05 275 / 40%);
  padding: 1rem 0;
}
.byline-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--magenta), var(--cyan)); }
.byline-block strong { color: var(--fg); font-weight: 500; display: block; }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--gradient-card);
  border: 1px solid oklch(0.72 0.28 330 / 50%);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-neon);
  z-index: 100;
  transform: translateY(1rem);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: oklch(0.65 0.24 25 / 60%); }

/* Modal Overlay */
.ceo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 10, 0.85); /* Deep thematic dark backdrop */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ceo-modal.active {
    display: flex;
}

/* Character Sheet Container */
.modal-content.character-sheet {
    background: #1a1a24; /* Sleek dark theme surface */
    color: #f0f0f5;
    border: 2px solid #d4af37; /* Elegant gold or accent border */
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    max-height: 92vh;
    overflow-y: auto;
}

/* Header */
.sheet-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.sheet-header h2 {
    margin: 0;
    font-size: 28px;
    color: #fff;
    letter-spacing: 1px;
}

.sheet-class {
    font-size: 14px;
    color: #d4af37;
    text-transform: uppercase;
    font-weight: 600;
}

/* Body Layout (Portrait + Stats) */
.sheet-body {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Ensures both columns stretch to match the tallest one */
}

/* Bigger CEO Image / Portrait */
.sheet-portrait {
    flex: 0 0 300px;
    display: flex;
}

.sheet-portrait a {
    display: block;
    width: 100%;
    height: 100%;
}

.sheet-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: block;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.sheet-portrait--wide img {
    object-position: 55% 18%;
}
.sheet-portrait--awen img {
    object-position: 38% 16%;
}

/* Hover effect to indicate it's clickable */
.sheet-portrait a:hover img {
    border-color: #d4af37;
    transform: scale(1.01);
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .sheet-body {
        flex-direction: column;
        align-items: center;
    }
    
    .sheet-portrait {
        width: 100%;
        max-width: 250px;
        height: 350px;
    }
}

/* Info Section */
.sheet-info {
    flex: 1;
}

.sheet-info h3 {
    margin-top: 0;
    color: #d4af37;
    font-size: 20px;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 8px;
}

.sheet-info p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #ccc;
}

.sheet-info strong {
    color: #fff;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #d4af37;
}

.sheet-theme {
    margin-top: 4px;
    margin-bottom: 14px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(5, 5, 12, 0.35));
    position: relative;
}
.sheet-theme p {
    margin-bottom: 10px;
}
.sheet-theme__art {
    display: block;
    margin: 0 0 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.35);
    line-height: 0;
}
.sheet-theme__art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: center 18%;
}
.sheet-theme__player {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sheet-theme__play {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d4af37;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.sheet-theme__play:hover,
.sheet-theme__play:focus-visible {
    background: #d4af37;
    color: #1a1a24;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
    outline: none;
}
.sheet-theme__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}
.sheet-theme__icon--pause,
.sheet-theme__player.is-playing .sheet-theme__icon--play {
    display: none;
}
.sheet-theme__player.is-playing .sheet-theme__icon--pause {
    display: block;
}
.sheet-theme__track {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sheet-theme__seek {
    flex: 1;
    min-width: 0;
    height: 6px;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
}
.sheet-theme__seek::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4af37;
    border: 0;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}
.sheet-theme__seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4af37;
    border: 0;
}
.sheet-theme__seek::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
.sheet-theme__time {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #d4af37;
    font-variant-numeric: tabular-nums;
}
.sheet-theme audio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.sheet-lyrics {
    margin-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    padding-top: 8px;
}
.sheet-lyrics summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4af37;
    padding: 6px 2px;
}
.sheet-lyrics summary::-webkit-details-marker { display: none; }
.sheet-lyrics summary::after {
    content: "+";
    font-size: 1.1rem;
    line-height: 1;
    color: #d4af37;
}
.sheet-lyrics[open] summary::after { content: "–"; }
.sheet-lyrics__body {
    padding: 4px 2px 2px;
    max-height: min(52vh, 28rem);
    overflow-y: auto;
}
.sheet-info .sheet-lyrics p {
    color: inherit;
    margin-bottom: 0.85rem;
}
.sheet-lyrics__title,
.sheet-lyrics__section,
.sheet-lyrics__line {
    margin: 0 0 0.85rem;
}
.sheet-lyrics__title { margin-top: 0.35rem; }
.sheet-lyrics__section {
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d4af37;
    font-weight: 650;
}
.sheet-lyrics__orig,
.sheet-lyrics__tr {
    display: block;
    line-height: 1.55;
}
.sheet-lyrics__orig {
    font-size: 0.92rem;
    color: #f0f0f5;
}
.sheet-lyrics__orig-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.28rem 0.5rem;
}
.sheet-lyrics__orig-row .sheet-lyrics__orig {
    display: inline;
    flex: 1 1 12rem;
}
.sheet-lyrics__lang {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.08rem 0.42rem;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4af37;
    font-style: normal;
    line-height: 1.35;
}
.sheet-lyrics__tr {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #b8b8c6;
    font-style: italic;
}
.sheet-lyrics__cue {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: rgba(212, 175, 55, 0.78);
    font-style: italic;
}
.sheet-lyrics__title .sheet-lyrics__orig {
    font-size: 1.02rem;
    font-weight: 650;
    color: #fff;
}
.sheet-lyrics__title .sheet-lyrics__tr {
    font-style: normal;
    color: #d4af37;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .sheet-body {
        flex-direction: column;
        align-items: center;
    }
    
    .sheet-portrait {
        width: 100%;
        max-width: 250px;
    }
}
.rift-video-section {
    width: 95%;
    max-width: 1600px;
    margin: -3rem auto 3rem auto;
    position: relative;
    z-index: 9999;
}
.rift-video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(100, 200, 255, 0.2);
    background: #0a0a10;
}
.rift-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px;
}

/* ── Cinematic pages (Artists-inspired; Artists itself keeps artists.css) ── */
.pg-page { isolation: isolate; }

.pg-hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  overflow: hidden;
  isolation: isolate;
}
.pg-hero--compact { min-height: min(62vh, 36rem); }
.pg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.pg-hero__bg.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pg-hero__bg.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pg-hero__bg.cols-5 { grid-template-columns: repeat(5, 1fr); }
.pg-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.08) contrast(1.06);
}
.pg-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(0.12 0.03 275 / 88%) 0%, oklch(0.12 0.03 275 / 52%) 38%, oklch(0.12 0.03 275 / 18%) 62%, oklch(0.12 0.03 275 / 72%) 100%),
    linear-gradient(180deg, oklch(0.12 0.03 275 / 22%) 0%, transparent 28%, oklch(0.12 0.03 275 / 90%) 100%);
  pointer-events: none;
}
.pg-hero__copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 5.5rem 0 3.25rem;
}
.pg-hero h1 {
  font-size: clamp(2.3rem, 5.8vw, 4.4rem);
  max-width: 18ch;
  text-shadow: 0 8px 40px oklch(0.1 0.04 275 / 70%);
}
.pg-hero .lead {
  max-width: 36rem;
  color: oklch(0.88 0.02 280);
  text-shadow: 0 2px 16px oklch(0.1 0.04 275 / 80%);
  margin-top: 1.25rem;
  font-size: 1.125rem;
}
.pg-hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pg-hero .chip { margin-bottom: 1rem; background: oklch(0.18 0.04 275 / 70%); border-color: var(--hud-border); backdrop-filter: blur(10px); }
.pg-hero .stats { margin-top: 2rem; }

@media (max-width: 900px) {
  .pg-hero { min-height: 74vh; }
  .pg-hero--compact { min-height: 56vh; }
  .pg-hero__bg { grid-template-columns: repeat(4, 1fr); }
  .pg-hero__bg img:nth-child(n+5) { display: none; }
}

.pg-subnav {
  position: sticky;
  top: 4rem;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: oklch(0.12 0.03 275 / 78%);
  border-bottom: 1px solid oklch(0.45 0.08 250 / 28%);
}
.pg-subnav__inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.55rem 0;
}
.pg-subnav__inner::-webkit-scrollbar { display: none; }
.pg-subnav a {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.pg-subnav a:hover { color: var(--fg); }
.pg-subnav a.is-active {
  color: var(--fg);
  background: oklch(0.28 0.06 250 / 45%);
  border-color: oklch(0.72 0.14 230 / 35%);
}

.pg-section { padding: 4.5rem 0; scroll-margin-top: 7.5rem; }
.pg-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.pg-head { max-width: 46rem; margin-bottom: 2.25rem; }
.pg-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-top: 0.45rem; }
.pg-head p { margin-top: 0.75rem; color: var(--muted); }

/* Faction banners — landscape media, not portrait crop */
.faction-card .ceo-img {
  aspect-ratio: 16 / 9;
  background: #05050a;
}
.faction-card .ceo-img img {
  object-fit: cover;
  object-position: center center;
}
.faction-card .ceo-img::after {
  background: linear-gradient(to top, oklch(0.12 0.03 275 / 80%) 0%, transparent 50%);
}
.faction-card .ceo-body { min-height: 7.5rem; }
.faction-card--gsa { border-color: color-mix(in oklab, #7ee0d0 42%, var(--hud-border)); }
.faction-card--ordre { border-color: color-mix(in oklab, #d4af37 42%, var(--hud-border)); }
.faction-card--hanzi { border-color: color-mix(in oklab, #a3c1ad 42%, var(--hud-border)); }
.faction-card--sejong { border-color: color-mix(in oklab, #5eead4 42%, var(--hud-border)); }
.faction-card--kano { border-color: color-mix(in oklab, #ff8a4c 42%, var(--hud-border)); }
.faction-card--crimson { border-color: color-mix(in oklab, #e35d6a 48%, var(--hud-border)); }
.faction-card.roster-lead .ceo-img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .faction-card.roster-lead .ceo-img { aspect-ratio: auto; min-height: 100%; }
}

.pg-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .pg-split { grid-template-columns: 1fr 1.05fr; }
  .pg-split--form { grid-template-columns: 0.9fr 1.1fr; }
}

.pg-portrait {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--hud-border);
}
.pg-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
}
.pg-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, oklch(0.12 0.03 275 / 88%));
}
.pg-portrait .cap {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
}
.pg-portrait .cap p { color: oklch(0.9 0.02 280); font-size: 0.9rem; margin-top: 0.35rem; }

.path-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.path-card__art {
  height: 9.5rem;
  background: #0b0b14;
  position: relative;
}
.path-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.path-card__body { padding: 1.25rem 1.35rem 1.4rem; }
.path-card .role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }

.blog-card { overflow: hidden; padding: 0; }
.blog-card .blog-thumb {
  margin: 0;
  border-radius: 0;
  height: 11rem;
  position: relative;
  overflow: hidden;
}
.blog-card .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.blog-card .blog-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-grid > :first-child .blog-thumb { height: 16rem; }

.post-hero {
  position: relative;
  overflow: hidden;
  height: 18rem;
  background: #0b0b14;
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, oklch(0.12 0.03 275 / 55%));
}

.pg-prose-wrap { padding: 3rem 0 5rem; }

@media (prefers-reduced-motion: reduce) {
  .ceo-card, .feature-card, .tier, .blog-card { transition: none; }
  .ceo-card:hover { transform: none; }
  .ceo-card:hover .ceo-img img { transform: none; }
}

/* ── Conversion landing (/start/) ── */
.lp-page .ceo-card.lp-lang { cursor: default; }
.lp-steps {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
}
.lp-step { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.lp-step__art {
  height: 10rem;
  position: relative;
  background: #0b0b14;
}
.lp-step__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.lp-step__body { padding: 1.25rem 1.35rem 1.5rem; }
.lp-step__n {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.lp-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.lp-step p { font-size: 0.875rem; color: var(--muted); }
.lp-inline-cta {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}
.lp-proof-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .lp-proof-stats { grid-template-columns: repeat(3, 1fr); }
}
.lp-proof-stats .glass-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.lp-quote {
  padding: 1.5rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lp-quote p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: oklch(0.92 0.02 280);
  font-style: italic;
}
.lp-quote footer {
  font-size: 0.8rem;
  color: var(--muted);
}
.lp-quote footer strong { color: var(--fg); font-style: normal; }
.lp-faq {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.lp-faq details { overflow: hidden; }
.lp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto;
}
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.lp-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: oklch(0.12 0.03 275 / 92%);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--hud-border);
  box-shadow: 0 -12px 32px oklch(0.08 0.04 275 / 45%);
}
.lp-dock p {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}
.lp-page .pg-subnav a[href*="/pricing"] {
  color: var(--cyan);
  border-color: oklch(0.72 0.14 230 / 35%);
}
@media (max-width: 1023px) {
  .lp-page .lp-dock:not([hidden]) { display: flex; }
  .lp-page:has(.lp-dock:not([hidden])) { padding-bottom: 5.5rem; }
}
@media (min-width: 1024px) {
  .lp-dock { display: none !important; }
}

/* ── Layout that used to live in inline style="" ── */
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-brand > .muted { font-size: 0.875rem; max-width: 24rem; }

.paths-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.paths-head h2 { font-size: 2.25rem; }
.paths-head .muted { margin-top: 0.75rem; max-width: 28rem; }
.paths-head a { color: var(--cyan); font-size: 0.875rem; font-weight: 500; }
a.blog-card { color: inherit; text-decoration: none; }
@media (min-width: 1024px) {
  .notes-grid.blog-grid > :first-child { grid-column: auto; }
  .notes-grid.blog-grid > :first-child .blog-thumb { height: 11rem; }
  .notes-grid.blog-grid > :first-child h2 { font-size: 1.125rem; }
}
.path-card h3 { margin-top: 0.25rem; font-size: 1.25rem; }
.path-card__meta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.section-cta { padding-bottom: 5rem; }
.section-cta-lg { padding-bottom: 6rem; }
.lp-quotes { margin-top: 1.25rem; }
.lede-gap { margin-top: 0.75rem; }
.pg-portrait--mid { margin-top: 1.5rem; min-height: 16rem; }
.contact-list + .pg-portrait--mid { margin-top: 2rem; }

.article-title { margin-top: 1rem; font-size: 2.5rem; }
.article-dek { margin-top: 1rem; font-size: 1.125rem; }
.byline-block time { font-size: 0.75rem; }
.prose.article-body { margin-top: 2.5rem; }

.blog-thumb--fallback {
  background: linear-gradient(135deg, oklch(0.5 0.25 280), oklch(0.4 0.2 220));
}
.blog-pager { margin-top: 2rem; }

.wp-article { max-width: 44rem; margin: 0 auto; }
.wp-article h1 { font-size: 2.75rem; margin-top: 0.5rem; }
.wp-article .post-hero { margin: 2rem 0; }
.post-content { margin-top: 1.5rem; line-height: 1.8; }

.wp-page-card { padding: 2rem; max-width: 48rem; margin: 0 auto; }
.wp-page-card h1 { font-size: 2.5rem; }
.wp-page-card > .muted { margin-top: 1.5rem; }

.lead-sm { font-size: 0.95rem; }
.prose-card { padding: 2rem 1.75rem 2.25rem; }

.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.icon-badge--sm { margin: 0; width: 2.5rem; height: 2.5rem; }
.contact-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.contact-val { font-size: 0.875rem; font-weight: 500; line-height: 1.45; }
.contact-offices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-places {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}
.contact-places li { margin: 0; }
.flash-ok {
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
  border-color: var(--cyan);
}
.form-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.btn-start { align-self: flex-start; white-space: nowrap; }

.perk-ico { color: var(--cyan); margin-bottom: 0.5rem; }
.feature-card--tight h3 { font-size: 1rem; }
.feature-card--tight p { font-size: 0.75rem; }
.stack-lg { margin-top: 3.5rem; }
.stack-xl { margin-top: 4rem; }
.section-title { font-size: 1.875rem; margin-bottom: 1.5rem; }
.role-row h3 { font-size: 1rem; }
.big-cta--sm h2 { font-size: 1.5rem; }
.big-cta--md h2 { font-size: 1.875rem; }
@media (min-width: 640px) {
  .big-cta--sm h2 { font-size: 1.5rem; }
  .big-cta--md h2 { font-size: 1.875rem; }
}
.table-clip { overflow: hidden; }

.biz-banner {
  margin-top: 4rem;
  padding: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
}
.pg-split--stretch { align-items: stretch; }
.pg-portrait--flush { min-height: 14rem; border: 0; border-radius: 0; }
.biz-banner__copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.biz-banner__copy h3 { font-size: 1.5rem; }
.biz-banner__copy p { font-size: 0.875rem; max-width: 36rem; }

.pg-section--flush-top { padding-top: 0; }
.tier-year { font-size: 0.8125rem; color: var(--muted); margin-top: 0.35rem; }
.price-was {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
  font-weight: 500;
}

.billing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.join-card .billing-toggle-wrap { justify-content: flex-start; margin: 0.15rem 0 0.35rem; }
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem;
  background: oklch(0.19 0.04 275 / 70%);
}
.billing-opt { position: relative; cursor: pointer; }
.billing-opt input { position: absolute; opacity: 0; pointer-events: none; }
.billing-opt span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.billing-opt:hover span { color: var(--fg); }
.billing-opt:has(input:checked) span {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-neon);
}
.billing-opt em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.92;
}

/* Join / checkout */
.join-layout {
  display: grid;
  gap: 1.5rem;
  text-align: left;
}
@media (min-width: 1024px) {
  .join-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: start;
  }
}
.join-main { display: flex; flex-direction: column; gap: 1.25rem; }
.join-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.join-card legend {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.join-hint { font-size: 0.8125rem; color: var(--muted); }
.join-hint a { color: var(--cyan); }
.join-hint a:hover { text-decoration: underline; }
.join-warn { color: oklch(0.82 0.12 80); }
.join-optional { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.7; }
.join-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
.join-banner { padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.join-banner-error { border-color: oklch(0.65 0.24 25 / 60%); }

.join-plans {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .join-plans { grid-template-columns: repeat(3, 1fr); }
}
.join-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--input);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.join-plan:hover { border-color: oklch(0.82 0.18 210 / 45%); }
.join-plan:has(input:checked) {
  border-color: oklch(0.72 0.28 330 / 70%);
  box-shadow: var(--shadow-neon);
}
.join-plan input { position: absolute; opacity: 0; pointer-events: none; }
.join-plan-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.125rem; }
.join-plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.join-plan-price small {
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-weight: 500;
  margin-left: 0.15rem;
}
.join-plan ul { list-style: none; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.join-plan li { font-size: 0.75rem; color: var(--muted); padding-left: 0.9rem; position: relative; }
.join-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-size: 0.7rem; }
.join-plan-list {
  font-size: 0.75rem;
  color: var(--muted);
}
.join-plan-year {
  font-size: 0.75rem;
  color: var(--muted);
}
.js-geo-note { color: var(--cyan); }
.join-plan-badge {
  position: absolute;
  top: -0.55rem;
  right: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--magenta), var(--cyan));
  color: var(--bg);
  font-size: 0.625rem;
  font-weight: 700;
}

.join-pay-methods { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .join-pay-methods { grid-template-columns: 1fr 1fr; } }
.join-pay {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--input);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.join-pay:hover { border-color: oklch(0.82 0.18 210 / 45%); }
.join-pay:has(input:checked) {
  border-color: oklch(0.72 0.28 330 / 70%);
  box-shadow: var(--shadow-neon);
}
.join-pay input { accent-color: var(--magenta); }
.join-pay strong { display: block; font-size: 0.9375rem; }
.join-pay small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 0.15rem; }
.join-pay-icon { color: var(--cyan); flex-shrink: 0; display: flex; }
.join-pay.is-offline { opacity: 0.72; }

.join-s2-stripe { margin-top: 0.75rem; }
.join-s2-slot[hidden],
#join-s2-paypal[hidden] { display: none !important; }
#join-s2-stripe input,
#join-s2-stripe select,
#join-s2-stripe textarea,
#join-s2-paypal input:not([type="image"]):not([type="submit"]) {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--fg);
}
#join-s2-stripe button,
#join-s2-stripe input[type="submit"] {
  background: var(--gradient-primary);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.join-summary {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .join-summary { position: sticky; top: 5.5rem; }
}
.join-summary h2 { font-size: 1.75rem; }
.join-summary-price {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.join-summary-price span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.join-summary-price small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  font-family: Inter, sans-serif;
}
.join-summary-lines { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.875rem; }
.join-summary-lines li { display: flex; justify-content: space-between; gap: 0.75rem; color: var(--muted); }
.join-summary-lines strong { color: var(--fg); font-weight: 600; }
.join-terms {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
}
.join-terms input { margin-top: 0.2rem; accent-color: var(--magenta); }
.join-terms a { color: var(--cyan); }
.join-summary .btn { width: 100%; }
.join-page input[readonly] { opacity: 0.75; }

/* MCP protocol page */
.mcp-hero .mcp-soon-chip { margin-bottom: 1rem; }
.mcp-soon-chip {
  border-color: oklch(0.85 0.16 90 / 45%);
  color: var(--rift-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mcp-soon-chip .dot {
  background: var(--rift-gold);
  box-shadow: 0 0 10px var(--rift-gold);
  animation: mcp-pulse 1.8s ease-in-out infinite;
}
@keyframes mcp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.mcp-spec {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: mcp-tools;
}
.mcp-spec__item {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.4rem;
  position: relative;
  overflow: hidden;
  counter-increment: mcp-tools;
}
.mcp-spec__item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--magenta), var(--cyan));
}
.mcp-spec__item::after {
  content: counter(mcp-tools, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: oklch(0.82 0.18 210 / 55%);
}
.mcp-spec__item:hover {
  transform: translateY(-3px);
  border-color: oklch(0.82 0.18 210 / 45%);
}
.mcp-spec__meta { padding-right: 2.5rem; }
.mcp-spec__kind {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid oklch(0.82 0.18 210 / 28%);
  background: oklch(0.22 0.05 230 / 40%);
}
.mcp-fn,
.mcp-uri {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.6rem;
  border-radius: 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-all;
  color: var(--rift-cyan);
  background: oklch(0.14 0.04 230 / 70%);
  border: 1px solid oklch(0.72 0.14 230 / 32%);
}
.mcp-spec__item h3,
.mcp-resource h3,
.mcp-prompt h3 {
  font-size: 1.2rem;
  margin: 0;
}
.mcp-spec__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rift-gold);
  margin-bottom: 0.35rem;
}
.mcp-spec__body p:last-child,
.mcp-resource p,
.mcp-prompt p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
@media (min-width: 768px) {
  .mcp-spec__item {
    grid-template-columns: minmax(16rem, 0.42fr) 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.6rem 1.75rem;
  }
}

.mcp-resource-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 768px) {
  .mcp-resource-grid { grid-template-columns: 1fr 1fr; }
}
.mcp-resource,
.mcp-prompt {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.mcp-resource::before,
.mcp-prompt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
}
.mcp-resource::before { background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.mcp-prompt::before { background: linear-gradient(180deg, var(--gold), var(--magenta)); }
.mcp-resource:hover,
.mcp-prompt:hover {
  transform: translateY(-3px);
  border-color: oklch(0.72 0.28 330 / 45%);
}
.mcp-resource h3,
.mcp-prompt h3 { margin: 0.15rem 0 0.65rem; }

.mcp-coming {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, oklch(0.6 0.25 295 / 22%), transparent 58%),
    var(--hud);
}
.mcp-coming .chip { margin-bottom: 0.85rem; }
.mcp-coming h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.mcp-coming p {
  margin: 0.75rem auto 0;
  max-width: 38rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .mcp-coming { padding: 2.5rem 2rem; }
}

/* ==========================================================================
   Bichig locale only (.lang-bichig). Other languages keep the default layout.
   Page chrome stacks and scrolls down. All readable text is traditional
   Mongolian: top-to-bottom, columns left-to-right, with open spacing.
   Only the audio player, form fields, and original sung lyrics stay upright.
   ========================================================================== */
html:has(body.lang-bichig) {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  -webkit-overflow-scrolling: touch;
}
body.lang-bichig {
  --bichig-gap: 1.85rem;
  --bichig-gap-lg: 2.6rem;
  --bichig-col: 18rem;
  --bichig-col-sm: 10rem;
  --bichig-line: 2.05;
  --bichig-letter: 0.12em;
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 2rem;
  --bs-container: 100%;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  height: auto;
  min-height: 100dvh;
  width: 100%;
  min-width: 0;
  letter-spacing: 0;
  line-height: 1.6;
}
@media (min-width: 576px) { body.lang-bichig { --bs-gutter-x: 1rem; --bs-container: 540px; } }
@media (min-width: 768px) { body.lang-bichig { --bs-gutter-x: 1.25rem; --bs-container: 720px; --bichig-col: 22rem; } }
@media (min-width: 992px) { body.lang-bichig { --bs-gutter-x: 1.5rem; --bs-container: 960px; } }
@media (min-width: 1200px) { body.lang-bichig { --bs-container: 1140px; } }
@media (min-width: 1400px) { body.lang-bichig { --bs-container: 1320px; } }

/* Every line of copy: vertical, top to bottom */
body.lang-bichig h1,
body.lang-bichig h2,
body.lang-bichig h3,
body.lang-bichig h4,
body.lang-bichig h5,
body.lang-bichig p,
body.lang-bichig li,
body.lang-bichig label,
body.lang-bichig legend,
body.lang-bichig blockquote,
body.lang-bichig figcaption,
body.lang-bichig dt,
body.lang-bichig dd,
body.lang-bichig summary,
body.lang-bichig .btn,
body.lang-bichig .chip,
body.lang-bichig .eyebrow,
body.lang-bichig .pg-kicker,
body.lang-bichig .rift-kicker,
body.lang-bichig .roster-kicker,
body.lang-bichig .ceo-badge,
body.lang-bichig .sheet-class,
body.lang-bichig .stat-n,
body.lang-bichig .stat-l,
body.lang-bichig .nav-links a,
body.lang-bichig .mobile-menu a,
body.lang-bichig .pg-subnav a,
body.lang-bichig .rift-subnav a,
body.lang-bichig .footer-grid a,
body.lang-bichig .footer-grid h4,
body.lang-bichig .join-hint,
body.lang-bichig .join-plan,
body.lang-bichig .article-title,
body.lang-bichig .sheet-lyrics__section,
body.lang-bichig .sheet-lyrics__lang,
body.lang-bichig .sheet-lyrics__tr,
body.lang-bichig .sheet-lyrics summary {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
  text-transform: none;
}

/* Layout wrappers stay physical horizontal so the page still scrolls down */
body.lang-bichig main,
body.lang-bichig .pg-page,
body.lang-bichig .rift-page,
body.lang-bichig .site-header,
body.lang-bichig .site-footer,
body.lang-bichig .container,
body.lang-bichig .container-narrow,
body.lang-bichig .container-md {
  writing-mode: horizontal-tb;
}

/* WordPress toolbar / dashboard stay upright LTR */
body.lang-bichig #wpadminbar,
body.lang-bichig #wpadminbar *,
body.wp-admin,
body.wp-admin *,
body.login,
body.login * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  letter-spacing: 0 !important;
}

body.lang-bichig .brand span,
body.lang-bichig .menu-btn,
body.lang-bichig .lang-switch,
body.lang-bichig .lang-switch-btn,
body.lang-bichig .lang-switch-menu,
body.lang-bichig .lang-switch-menu *,
body.lang-bichig input,
body.lang-bichig textarea,
body.lang-bichig select,
body.lang-bichig pre,
body.lang-bichig code,
body.lang-bichig kbd,
body.lang-bichig samp,
body.lang-bichig .social-links,
body.lang-bichig .social-links a,
body.lang-bichig .close-btn,
body.lang-bichig .sheet-theme__player,
body.lang-bichig .sheet-theme__player *,
body.lang-bichig .sheet-lyrics__orig-row,
body.lang-bichig .sheet-lyrics__orig,
body.lang-bichig .sheet-lyrics__cue {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed;
  letter-spacing: 0;
  line-height: 1.45;
}
body.lang-bichig .brand span {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

body.lang-bichig main,
body.lang-bichig .pg-page,
body.lang-bichig .rift-page {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}
body.lang-bichig .container,
body.lang-bichig .container-narrow,
body.lang-bichig .container-md {
  width: 100%;
  max-width: var(--bs-container);
  margin-inline: auto;
  padding-inline: var(--bs-gutter-x);
}

/* Buttons: vertical labels, capped so they never spill onto neighbours */
body.lang-bichig .btn {
  white-space: normal;
  height: 14rem;
  min-height: 14rem;
  max-height: 14rem;
  width: auto;
  min-width: 3rem;
  max-width: 100%;
  padding: 1.15rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  letter-spacing: 0.08em;
  line-height: 2;
  box-sizing: border-box;
  margin: 0;
}

/* ---------- Navbar ---------- */
body.lang-bichig .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  overflow: visible;
  border-bottom: 1px solid oklch(0.72 0.14 230 / 22%);
}
body.lang-bichig .site-header .hud-scan {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}
body.lang-bichig .site-header .container { height: auto; padding-block: 0; }
body.lang-bichig .nav-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.5rem;
  gap: 0.65rem;
  padding: 0.45rem 0;
}
body.lang-bichig .nav-row .brand {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}
body.lang-bichig .nav-row .brand span { display: inline; font-size: 1.05rem; }
body.lang-bichig .nav-row .brand img { width: 2rem; height: 2rem; }
body.lang-bichig .nav-end {
  flex-direction: row;
  align-items: center;
  margin-left: auto;
  gap: 0.45rem;
}
body.lang-bichig .lang-switch-menu {
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
}
body.lang-bichig .nav-links {
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
}
body.lang-bichig .nav-links a {
  height: 7.25rem;
  padding: 0.45rem 0.4rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
body.lang-bichig .mobile-menu.open {
  display: flex;
  position: static;
  flex: 1 0 100%;
  order: 20;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.5rem 0 0.9rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.lang-bichig .mobile-menu a {
  display: inline-flex;
  width: auto;
  height: 8rem;
  padding: 0.5rem 0.45rem;
  white-space: nowrap;
}
body.lang-bichig .mobile-menu .btn {
  height: 8rem;
  width: auto;
  margin-top: 0;
}

@media (max-width: 991.98px) {
  body.lang-bichig .nav-cta { display: none; }
  body.lang-bichig .lang-switch-btn .lang-name { display: none; }
}
@media (min-width: 992px) {
  body.lang-bichig .nav-row { flex-wrap: nowrap; align-items: stretch; min-height: 7.75rem; padding: 0.35rem 0; }
  body.lang-bichig .nav-links,
  body.lang-bichig .nav-cta { display: flex; }
  body.lang-bichig .nav-links { flex: 1 1 auto; justify-content: flex-end; }
  body.lang-bichig .menu-btn { display: none; }
  body.lang-bichig .mobile-menu { display: none !important; }
  body.lang-bichig .nav-end { margin-left: 0.5rem; align-items: center; }
}

/* In-page subnav: a row of vertical labels */
body.lang-bichig .pg-subnav,
body.lang-bichig .rift-subnav {
  position: sticky;
  top: 3.5rem;
  width: 100%;
  height: auto;
  border-bottom: 1px solid oklch(0.45 0.08 250 / 28%);
  z-index: 40;
  writing-mode: horizontal-tb;
}
body.lang-bichig .pg-subnav__inner,
body.lang-bichig .rift-subnav__inner {
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  max-width: var(--bs-container);
  margin-inline: auto;
  overflow-x: auto;
  padding: 0.55rem var(--bs-gutter-x);
  gap: 0.55rem;
  align-items: stretch;
}
body.lang-bichig .pg-subnav a,
body.lang-bichig .rift-subnav a {
  white-space: nowrap;
  height: max-content;
  min-height: 8.5rem;
  padding: 0.55rem 0.5rem;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
}
@media (min-width: 992px) {
  body.lang-bichig .pg-subnav,
  body.lang-bichig .rift-subnav { top: 7.75rem; }
}

/* ---------- Hero ---------- */
body.lang-bichig .pg-hero,
body.lang-bichig .rift-hero,
body.lang-bichig .pg-hero--compact {
  position: relative;
  display: block;
  width: 100%;
  min-height: min(70dvh, 28rem);
  height: auto;
  overflow: visible;
}
body.lang-bichig .pg-hero--compact { min-height: min(52dvh, 20rem); }
body.lang-bichig .pg-hero__bg,
body.lang-bichig .rift-hero__bg {
  writing-mode: horizontal-tb;
  position: absolute;
  inset: 0;
  z-index: 0;
}
body.lang-bichig .pg-hero__copy,
body.lang-bichig .rift-hero__copy {
  position: relative;
  z-index: 2;
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--bs-container);
  margin-inline: auto;
  height: auto;
  padding: 1.6rem var(--bs-gutter-x) 2rem;
  gap: 1.35rem;
}
body.lang-bichig .pg-hero .chip,
body.lang-bichig .rift-chip {
  height: 8rem;
  width: max-content;
  max-width: 100%;
  margin: 0;
}
body.lang-bichig .pg-hero h1,
body.lang-bichig .rift-hero h1 {
  font-size: 1.65rem;
  width: 100%;
  height: var(--bichig-col);
  max-width: none;
  margin: 0;
}
body.lang-bichig .pg-hero .lead,
body.lang-bichig .rift-hero .lead {
  width: 100%;
  height: var(--bichig-col);
  max-width: none;
  margin: 0;
}
body.lang-bichig .pg-hero__actions,
body.lang-bichig .rift-hero__actions {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
  height: auto;
  margin: 0.15rem 0 0;
  z-index: 3;
  position: relative;
}
body.lang-bichig .pg-hero__actions,
body.lang-bichig .rift-hero__actions {
  gap: 1.35rem;
}
body.lang-bichig .pg-hero__actions .btn,
body.lang-bichig .rift-hero__actions .btn {
  flex: 0 0 auto;
  height: 14.5rem;
  min-height: 14.5rem;
  max-height: 14.5rem;
  overflow: hidden;
  max-width: 100%;
}
body.lang-bichig .pg-hero .stats,
body.lang-bichig .rift-hero__meta {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  height: auto;
  margin: 0.2rem 0 0;
}
body.lang-bichig .pg-hero .stats > *,
body.lang-bichig .rift-hero__meta > * {
  writing-mode: vertical-lr;
  height: 8.5rem;
  display: flex;
  flex-direction: row;
  gap: 0.45rem;
}
@media (min-width: 768px) {
  body.lang-bichig .pg-hero,
  body.lang-bichig .rift-hero { min-height: min(78dvh, 36rem); }
  body.lang-bichig .pg-hero--compact { min-height: min(48dvh, 24rem); }
  body.lang-bichig .pg-hero__copy,
  body.lang-bichig .rift-hero__copy { padding: 2.5rem var(--bs-gutter-x) 3rem; gap: 1.6rem; }
  body.lang-bichig .pg-hero h1,
  body.lang-bichig .rift-hero h1 { font-size: 2.15rem; height: 24rem; }
  body.lang-bichig .pg-hero .lead,
  body.lang-bichig .rift-hero .lead { height: 22rem; }
}

/* ---------- Sections & prose ---------- */
body.lang-bichig .pg-section,
body.lang-bichig .rift-section,
body.lang-bichig .section-cta,
body.lang-bichig .section-cta-lg,
body.lang-bichig .pg-prose-wrap {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 2rem 0;
  overflow: visible;
}
body.lang-bichig .pg-section.container,
body.lang-bichig .rift-section.container,
body.lang-bichig .section-cta.container,
body.lang-bichig .pg-prose-wrap.container-narrow,
body.lang-bichig .pg-section .container,
body.lang-bichig .section-cta .container,
body.lang-bichig .section-cta-lg .container {
  display: block;
  width: 100%;
  max-width: var(--bs-container);
  height: auto;
  margin-inline: auto;
  padding-inline: var(--bs-gutter-x);
}
body.lang-bichig .pg-head,
body.lang-bichig .rift-head,
body.lang-bichig .section-head {
  writing-mode: vertical-lr;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1.35rem;
  width: 100%;
  height: var(--bichig-col);
  margin: 0 0 1.85rem;
  padding-block-end: 1.2rem;
  border-block-end: 1px solid oklch(0.72 0.14 230 / 22%);
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
}
body.lang-bichig .pg-head h2,
body.lang-bichig .pg-head p,
body.lang-bichig .rift-head h2,
body.lang-bichig .rift-head p,
body.lang-bichig .section-head h2,
body.lang-bichig .section-head p { margin: 0; max-width: none; height: auto; }
body.lang-bichig .pg-prose-wrap > p,
body.lang-bichig .pg-prose-wrap li,
body.lang-bichig .article-body p,
body.lang-bichig .article-body li,
body.lang-bichig .legal p,
body.lang-bichig .legal li {
  width: 100%;
  height: var(--bichig-col);
  margin: 0 0 1.35rem;
}
body.lang-bichig .article-title {
  width: 100%;
  height: var(--bichig-col);
  margin: 0 0 1.5rem;
}

/* ---------- Cards / roster ---------- */
body.lang-bichig .card-grid,
body.lang-bichig .card-grid.cols-2,
body.lang-bichig .card-grid.cols-3,
body.lang-bichig .card-grid.cols-4,
body.lang-bichig .card-grid.cols-5,
body.lang-bichig .card-grid.cols-6,
body.lang-bichig .join-plans,
body.lang-bichig .biz-tiers.card-grid.cols-3,
body.lang-bichig .roster,
body.lang-bichig .roster-next,
body.lang-bichig .roster-chorus,
body.lang-bichig .roster-next .roster-chorus {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bs-gutter-y) var(--bs-gutter-x);
  width: 100%;
  height: auto;
}
body.lang-bichig .roster,
body.lang-bichig .roster-next { margin: 0; padding: 0; border: 0; }
body.lang-bichig .roster-next {
  padding-top: 1.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid color-mix(in oklab, var(--hud-border) 80%, transparent);
}
body.lang-bichig .roster-next__head {
  writing-mode: vertical-lr;
  width: 100%;
  height: 10rem;
  margin: 0 0 1.5rem;
  grid-column: 1 / -1;
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
}
body.lang-bichig .ceo-card,
body.lang-bichig .roster-chorus > *,
body.lang-bichig .roster-next .roster-chorus > *,
body.lang-bichig .roster-lead,
body.lang-bichig .feature-card,
body.lang-bichig .tier,
body.lang-bichig .blog-card,
body.lang-bichig .mcp-resource,
body.lang-bichig .mcp-prompt,
body.lang-bichig .join-plan {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  flex: none;
  box-sizing: border-box;
}
body.lang-bichig .ceo-img,
body.lang-bichig .roster-lead .ceo-img {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 3 / 4;
}
body.lang-bichig .ceo-img img { max-width: 100%; }
body.lang-bichig .ceo-badge { padding: 0.45rem 0.4rem; height: auto; }
body.lang-bichig .ceo-body,
body.lang-bichig .roster-lead .ceo-body {
  writing-mode: vertical-lr;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1.35rem;
  width: 100%;
  height: auto;
  min-height: 16rem;
  max-height: none;
  padding: 1.35rem 1.5rem;
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
  overflow: hidden;
  box-sizing: border-box;
}
body.lang-bichig .ceo-body .role,
body.lang-bichig .ceo-body h3,
body.lang-bichig .ceo-body .local,
body.lang-bichig .ceo-body .quote {
  display: block;
  overflow: hidden;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  height: auto;
  white-space: normal;
}
body.lang-bichig .feature-card,
body.lang-bichig .tier,
body.lang-bichig .blog-card,
body.lang-bichig .mcp-resource,
body.lang-bichig .mcp-prompt,
body.lang-bichig .join-plan {
  writing-mode: horizontal-tb;
  height: auto;
  max-width: 100%;
  padding: 1.5rem 1.45rem;
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}
body.lang-bichig .roster-cta {
  writing-mode: horizontal-tb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (min-width: 576px) {
  body.lang-bichig .card-grid,
  body.lang-bichig .card-grid.cols-2,
  body.lang-bichig .card-grid.cols-3,
  body.lang-bichig .card-grid.cols-4,
  body.lang-bichig .join-plans,
  body.lang-bichig .biz-tiers.card-grid.cols-3,
  body.lang-bichig .roster-chorus,
  body.lang-bichig .roster-next .roster-chorus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  body.lang-bichig .pg-section,
  body.lang-bichig .rift-section,
  body.lang-bichig .section-cta,
  body.lang-bichig .section-cta-lg,
  body.lang-bichig .pg-prose-wrap { padding: 2.75rem 0; }
  body.lang-bichig .pg-head,
  body.lang-bichig .rift-head,
  body.lang-bichig .section-head { height: 24rem; margin-bottom: 2.35rem; }
  body.lang-bichig .card-grid.cols-3,
  body.lang-bichig .biz-tiers.card-grid.cols-3,
  body.lang-bichig .roster-chorus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.lang-bichig .roster-lead {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  body.lang-bichig .roster-lead .ceo-img {
    flex: 0 0 16rem;
    width: 16rem;
    max-width: 40%;
  }
  body.lang-bichig .roster-lead .ceo-body { flex: 1 1 auto; min-height: 20rem; height: auto; }
  body.lang-bichig .ceo-body { height: auto; min-height: 18rem; }
  body.lang-bichig .feature-card,
  body.lang-bichig .tier,
  body.lang-bichig .blog-card,
  body.lang-bichig .mcp-resource,
  body.lang-bichig .mcp-prompt,
  body.lang-bichig .join-plan { height: auto; }
}
@media (min-width: 992px) {
  body.lang-bichig .card-grid.cols-4,
  body.lang-bichig .roster-next .roster-chorus {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  body.lang-bichig .roster-next .roster-chorus {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Forms: labels vertical, fields upright */
body.lang-bichig .join-layout,
body.lang-bichig .join-main,
body.lang-bichig .join-card,
body.lang-bichig form {
  writing-mode: horizontal-tb;
  width: 100%;
  height: auto;
}
body.lang-bichig .join-layout {
  display: flex;
  flex-direction: column;
}
body.lang-bichig .join-card { padding: 1.25rem; }
body.lang-bichig .join-hint,
body.lang-bichig form p,
body.lang-bichig form label {
  height: 10rem;
  width: 100%;
  margin: 0 0 1rem;
}
body.lang-bichig .field label,
body.lang-bichig .form-grid label {
  height: 8rem;
  display: block;
  margin-bottom: 0.45rem;
}
@media (min-width: 768px) {
  body.lang-bichig .join-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    gap: 1.75rem;
    align-items: start;
  }
}

/* ---------- Character sheets ---------- */
body.lang-bichig .ceo-modal {
  writing-mode: horizontal-tb;
  position: fixed;
  inset: 0;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem;
}
body.lang-bichig .modal-content.character-sheet {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  width: min(100%, 52rem);
  height: auto;
  margin: 0.5rem auto 1.5rem;
  overflow: visible;
  padding: 1.25rem 1.15rem 1.6rem;
  gap: 1.2rem;
}
body.lang-bichig .sheet-header {
  writing-mode: vertical-lr;
  width: 100%;
  height: 12rem;
  margin: 0;
  padding: 0 2.5rem 1rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
}
body.lang-bichig .sheet-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1.2rem;
}
body.lang-bichig .sheet-portrait {
  flex: 0 0 auto;
  width: min(16rem, 100%);
  max-width: 16rem;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
}
body.lang-bichig .sheet-portrait img { width: 100%; height: 100%; max-width: none; }
body.lang-bichig .sheet-info {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  overflow: visible;
}
body.lang-bichig .sheet-info > h3,
body.lang-bichig .sheet-info > p {
  writing-mode: vertical-lr;
  width: 100%;
  height: 18rem;
  margin: 0;
  overflow-x: auto;
  padding: 0.4rem 0.6rem;
}
body.lang-bichig .sheet-info > hr {
  writing-mode: horizontal-tb;
  width: 100%;
  margin: 0.2rem 0;
}
body.lang-bichig .sheet-theme {
  writing-mode: horizontal-tb;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  margin: 0.15rem 0 0.4rem;
}
body.lang-bichig .sheet-theme > p {
  writing-mode: vertical-lr;
  height: 8.5rem;
  width: 100%;
  margin-bottom: 0.85rem;
}
body.lang-bichig .sheet-theme__art { writing-mode: horizontal-tb; width: 100%; }
body.lang-bichig .sheet-theme__player {
  writing-mode: horizontal-tb !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  height: auto;
  visibility: visible;
}
body.lang-bichig .sheet-lyrics { writing-mode: horizontal-tb; width: 100%; }
body.lang-bichig .sheet-lyrics summary {
  height: 7.5rem;
  width: 100%;
  display: flex;
  align-items: center;
}
body.lang-bichig .sheet-lyrics__body {
  max-height: min(60vh, 34rem);
  overflow-y: auto;
}
body.lang-bichig .sheet-lyrics__tr {
  display: block;
  min-height: 12rem;
  height: auto;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin: 0.7rem 0 1.1rem;
}
body.lang-bichig .sheet-lyrics__section {
  height: 8rem;
  width: 100%;
  margin: 1rem 0 0.6rem;
}

@media (min-width: 768px) {
  body.lang-bichig .ceo-modal { align-items: center; padding: 1.25rem; }
  body.lang-bichig .modal-content.character-sheet {
    width: min(96vw, 56rem);
    max-height: 90dvh;
    overflow-y: auto;
    padding: 1.85rem 1.7rem;
  }
  body.lang-bichig .sheet-header { height: 14rem; }
  body.lang-bichig .sheet-body { flex-direction: row; align-items: flex-start; gap: 1.5rem; }
  body.lang-bichig .sheet-portrait { flex: 0 0 16rem; width: 16rem; margin: 0; }
  body.lang-bichig .sheet-info { flex: 1 1 auto; min-width: 0; }
  body.lang-bichig .sheet-info > h3,
  body.lang-bichig .sheet-info > p { height: 20rem; }
}

/* ---------- Footer: rearranged as rows of vertical labels ---------- */
body.lang-bichig .site-footer {
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
  overflow: visible;
  border-top: 1px solid oklch(0.72 0.14 230 / 22%);
}
body.lang-bichig .footer-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--bs-container);
  margin-inline: auto;
  gap: 2.25rem;
  padding: 2.6rem var(--bs-gutter-x) 2.1rem;
}
body.lang-bichig .footer-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2rem;
  align-items: stretch;
}
body.lang-bichig .footer-brand,
body.lang-bichig .footer-col {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.15rem 1.35rem;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 1.15rem 0 0.35rem;
  border-top: 1px solid oklch(0.72 0.14 230 / 16%);
}
body.lang-bichig .footer-brand {
  border-top: 0;
  padding-top: 0;
}
body.lang-bichig .footer-brand .brand {
  writing-mode: horizontal-tb;
  flex-direction: row;
  align-items: center;
  height: auto;
  align-self: center;
}
body.lang-bichig .footer-brand > .muted {
  writing-mode: vertical-lr;
  width: auto;
  max-width: none;
  height: 16rem;
  margin: 0;
  flex: 1 1 auto;
}
body.lang-bichig .footer-brand .social-links {
  writing-mode: horizontal-tb !important;
  align-self: flex-end;
}
body.lang-bichig .footer-col h4 {
  writing-mode: vertical-lr;
  height: 14rem;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 1.05rem;
}
body.lang-bichig .footer-col ul {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.7rem 0.85rem;
  height: auto;
  flex: 1 1 auto;
}
body.lang-bichig .footer-col li {
  writing-mode: vertical-lr;
  height: 14rem;
  width: auto;
  margin: 0;
  padding: 0;
  display: flex;
}
body.lang-bichig .footer-col a {
  writing-mode: vertical-lr;
  display: inline-flex;
  align-items: center;
  height: 14rem;
  padding: 0.35rem 0.4rem;
  white-space: nowrap;
  overflow: visible;
}
body.lang-bichig .footer-bottom {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  height: auto;
  gap: 1.35rem 1.75rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.72 0.14 230 / 22%);
}
body.lang-bichig .footer-bottom p {
  writing-mode: vertical-lr;
  margin: 0;
  height: 12rem;
  white-space: nowrap;
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
}
@media (min-width: 768px) {
  body.lang-bichig .footer-inner { padding: 3.1rem var(--bs-gutter-x) 2.6rem; gap: 2.5rem; }
  body.lang-bichig .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem 2rem;
    align-items: start;
  }
  body.lang-bichig .footer-brand,
  body.lang-bichig .footer-col {
    border-top: 0;
    padding-top: 0;
  }
  body.lang-bichig .footer-brand > .muted { height: 18rem; }
  body.lang-bichig .footer-col h4,
  body.lang-bichig .footer-col li,
  body.lang-bichig .footer-col a { height: 16rem; }
  body.lang-bichig .footer-bottom p { height: 13rem; }
}

/* ---------- Start page: CTAs grow with vertical copy ---------- */
body.lang-bichig .lp-page .pg-hero,
body.lang-bichig .lp-page .pg-hero__copy {
  overflow: visible;
}
body.lang-bichig .lp-inline-cta,
body.lang-bichig .big-cta .actions,
body.lang-bichig .lp-page .pg-hero__actions {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.9rem;
  width: 100%;
  height: auto;
}
body.lang-bichig .lp-inline-cta { justify-content: center; margin-top: 2rem; }
body.lang-bichig .lp-page .btn,
body.lang-bichig .lp-inline-cta .btn,
body.lang-bichig .big-cta .btn {
  height: max-content;
  min-height: 13rem;
  overflow: visible;
}
body.lang-bichig .lp-step {
  overflow: visible;
  writing-mode: horizontal-tb;
  height: auto;
}
body.lang-bichig .lp-step__body {
  writing-mode: vertical-lr;
  height: 18rem;
  padding: 1.25rem 1.2rem 1.4rem;
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
}
@media (min-width: 768px) {
  body.lang-bichig .lp-step__body { height: 22rem; }
}
body.lang-bichig .big-cta {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  height: auto;
  text-align: start;
  overflow: visible;
  padding: 1.75rem 1.4rem;
}
body.lang-bichig .big-cta h2,
body.lang-bichig .big-cta > p {
  writing-mode: vertical-lr;
  height: 16rem;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  overflow: visible;
}
@media (min-width: 768px) {
  body.lang-bichig .big-cta { padding: 2.25rem 2rem; }
  body.lang-bichig .big-cta h2,
  body.lang-bichig .big-cta > p { height: 20rem; }
}

/* ---------- Pricing (bichig): copy stays inside the card; nothing overlaps ---------- */
body.lang-bichig .page-template-template-pricing .card-grid.cols-3,
body.lang-bichig .page-template-template-pricing .card-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  grid-template-columns: none;
}
body.lang-bichig .page-template-template-pricing .tier,
body.lang-bichig .page-template-template-business .tier {
  writing-mode: horizontal-tb !important;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  height: auto !important;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 1.6rem 1.45rem 1.55rem;
  gap: 1.5rem;
  overflow: hidden;
  isolation: isolate;
  transform: none !important;
  box-sizing: border-box;
}
body.lang-bichig .page-template-template-pricing .tier:hover,
body.lang-bichig .page-template-template-business .tier:hover {
  transform: none !important;
}
body.lang-bichig .tier-badge {
  position: static !important;
  transform: none !important;
  left: auto;
  top: auto;
  writing-mode: vertical-lr;
  height: 8.5rem;
  max-height: 8.5rem;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  white-space: normal;
  overflow: hidden;
  padding: 0.5rem 0.45rem;
  border-radius: 0.65rem;
}
body.lang-bichig .tier .tag,
body.lang-bichig .tier h3,
body.lang-bichig .tier-year,
body.lang-bichig .tier-blurb {
  writing-mode: vertical-lr;
  height: 14.5rem;
  max-height: 14.5rem;
  width: auto;
  max-width: 100%;
  margin: 0;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}
body.lang-bichig .tier h3 { font-size: 1.25rem; }
body.lang-bichig .price {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 0;
  height: auto;
  max-width: 100%;
  overflow: hidden;
}
body.lang-bichig .price .num,
body.lang-bichig .price .per,
body.lang-bichig .price-was,
body.lang-bichig .js-tier-year-amt {
  writing-mode: horizontal-tb !important;
  height: auto;
  max-width: 100%;
  letter-spacing: 0;
  line-height: 1.15;
  overflow: hidden;
}
body.lang-bichig .price .num { font-size: 2.15rem; }
body.lang-bichig .tier ul {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.15rem;
  height: auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
body.lang-bichig .tier li {
  writing-mode: vertical-lr;
  height: 13.5rem;
  max-height: 13.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.2rem 0.15rem;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
  align-items: flex-start;
}
body.lang-bichig .tier li::before { margin-inline-end: 0.4rem; }
body.lang-bichig .tier .btn {
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 0.35rem;
  height: 14rem;
  max-height: 14rem;
  overflow: hidden;
  white-space: normal;
}
body.lang-bichig .billing-toggle-wrap {
  writing-mode: horizontal-tb;
  justify-content: flex-start;
  margin-bottom: 1.75rem;
}
body.lang-bichig .billing-toggle {
  writing-mode: horizontal-tb;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem;
  height: auto;
  padding: 0.4rem;
}
body.lang-bichig .billing-opt span {
  writing-mode: vertical-lr;
  display: inline-flex;
  align-items: center;
  height: 9rem;
  max-height: 9rem;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  padding: 0.6rem 0.5rem;
  letter-spacing: 0.08em;
}
body.lang-bichig .join-hint {
  height: 10rem;
  max-height: 10rem;
  max-width: 100%;
  text-align: start !important;
  margin: 0 0 1.5rem !important;
  white-space: normal;
  overflow: hidden;
}
body.lang-bichig .biz-banner {
  overflow: hidden;
  margin-top: 2.75rem;
  isolation: isolate;
}
body.lang-bichig .biz-banner__copy {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  padding: 1.5rem 1.35rem;
  overflow: hidden;
  max-width: 100%;
}
body.lang-bichig .biz-banner__copy h3,
body.lang-bichig .biz-banner__copy p {
  writing-mode: vertical-lr;
  height: 14.5rem;
  max-height: 14.5rem;
  max-width: 100%;
  margin: 0;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
}
body.lang-bichig .biz-banner__copy .btn {
  height: 14rem;
  max-height: 14rem;
  max-width: 100%;
  overflow: hidden;
}

/* ---------- Business (bichig) ---------- */
body.lang-bichig .page-template-template-business .card-grid.cols-3,
body.lang-bichig .page-template-template-business .biz-tiers.card-grid.cols-3 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  grid-template-columns: none;
}
body.lang-bichig .page-template-template-business .feature-card {
  writing-mode: horizontal-tb !important;
  height: auto !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 1.2rem;
  padding: 1.35rem 1.3rem;
  overflow: visible;
}
body.lang-bichig .page-template-template-business .feature-card .icon-badge {
  writing-mode: horizontal-tb;
  flex: 0 0 auto;
  align-self: flex-start;
}
body.lang-bichig .page-template-template-business .feature-card h3,
body.lang-bichig .page-template-template-business .feature-card p {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 13rem;
  margin: 0;
  white-space: nowrap;
  overflow: visible;
}
body.lang-bichig .page-template-template-business .pg-head {
  height: auto;
  min-height: 16rem;
}
@media (min-width: 768px) {
  body.lang-bichig .page-template-template-business .card-grid.cols-3:not(.biz-tiers) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  body.lang-bichig .page-template-template-business .card-grid.cols-3:not(.biz-tiers) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- API (bichig): endpoints as vertical explanations ---------- */
body.lang-bichig .page-template-template-api .card-grid.cols-4,
body.lang-bichig .page-template-template-api .card-grid.cols-2 {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  grid-template-columns: none;
}
body.lang-bichig .page-template-template-api .feature-card {
  writing-mode: horizontal-tb !important;
  height: auto !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 1.2rem;
  padding: 1.35rem 1.3rem;
  overflow: visible;
}
body.lang-bichig .page-template-template-api .feature-card h3,
body.lang-bichig .page-template-template-api .feature-card p {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 12rem;
  margin: 0;
  white-space: nowrap;
  overflow: visible;
}
body.lang-bichig .page-template-template-api .feature-card pre,
body.lang-bichig .page-template-template-api .feature-card .code,
body.lang-bichig .page-template-template-api pre,
body.lang-bichig .page-template-template-api code {
  writing-mode: horizontal-tb !important;
  width: 100%;
  flex: 1 0 100%;
  height: auto;
  max-height: none;
  overflow-x: auto;
  letter-spacing: 0;
  line-height: 1.45;
  white-space: pre;
}
body.lang-bichig .section-title {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 10rem;
  margin: 0 0 1.35rem;
}
body.lang-bichig .table-clip {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.lang-bichig .api-table,
body.lang-bichig .api-table thead,
body.lang-bichig .api-table tbody,
body.lang-bichig .api-table tr,
body.lang-bichig .api-table th,
body.lang-bichig .api-table td {
  display: block;
  width: auto;
  max-width: none;
}
body.lang-bichig .api-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
body.lang-bichig .api-table thead { display: none; }
body.lang-bichig .api-table tbody {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
body.lang-bichig .api-table tr {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.1rem 1.35rem;
  padding: 1.35rem 1.3rem;
  margin: 0;
  border: 1px solid oklch(0.5 0.1 295 / 25%);
  border-radius: 1.15rem;
  background: var(--gradient-card, oklch(0.18 0.04 275 / 55%));
}
body.lang-bichig .api-table td {
  border: 0;
  padding: 0;
}
body.lang-bichig .api-table td:nth-child(1),
body.lang-bichig .api-table td:nth-child(2) {
  writing-mode: horizontal-tb !important;
  font-family: ui-monospace, monospace;
  letter-spacing: 0;
  line-height: 1.3;
  height: auto;
  align-self: flex-start;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid oklch(0.72 0.14 230 / 28%);
}
body.lang-bichig .api-table td:nth-child(1) { color: var(--magenta); }
body.lang-bichig .api-table td:nth-child(3) {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 16rem;
  flex: 1 1 8rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: visible;
  line-height: var(--bichig-line);
  letter-spacing: var(--bichig-letter);
}
@media (min-width: 768px) {
  body.lang-bichig .page-template-template-api .card-grid.cols-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.lang-bichig .api-table td:nth-child(3) { min-height: 18rem; }
}
@media (min-width: 1100px) {
  body.lang-bichig .page-template-template-api .card-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Artists: CTA labels fit the buttons ---------- */
body.lang-bichig .rift-hero,
body.lang-bichig .rift-hero__copy {
  overflow: visible;
}
body.lang-bichig .rift-hero h1 { max-width: none; }
body.lang-bichig .rift-hero .lead { max-width: none; }
body.lang-bichig .rift-hero__actions .btn,
body.lang-bichig .dossier__cta .btn,
body.lang-bichig .apply-form .btn,
body.lang-bichig .page-template-template-artists .btn {
  height: max-content;
  min-height: 13rem;
  width: auto;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
}
body.lang-bichig .brief-card,
body.lang-bichig .goddess,
body.lang-bichig .species-tile {
  writing-mode: horizontal-tb;
  height: auto;
  overflow: visible;
}
body.lang-bichig .brief-card h3,
body.lang-bichig .brief-card p,
body.lang-bichig .brief-card li,
body.lang-bichig .goddess h3,
body.lang-bichig .goddess p {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 12rem;
  white-space: nowrap;
  overflow: visible;
}
body.lang-bichig .brief-card ul {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}
body.lang-bichig .dossier__cta { overflow: visible; }

/* ---------- Contact (bichig) ---------- */
body.lang-bichig .page-template-template-contact .pg-split--form {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
body.lang-bichig .contact-list {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
body.lang-bichig .contact-row {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.9rem 1.1rem;
}
body.lang-bichig .contact-kicker {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 9rem;
  margin: 0;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: var(--bichig-letter);
}
body.lang-bichig .contact-val {
  writing-mode: horizontal-tb;
  height: auto;
  margin: 0;
  word-break: break-word;
}
body.lang-bichig .contact-offices {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.15rem 1.5rem;
}
body.lang-bichig .contact-offices > div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
}
body.lang-bichig .contact-offices .contact-val {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 11rem;
  white-space: nowrap;
}
body.lang-bichig .contact-places {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem 0.95rem;
}
body.lang-bichig .contact-places li {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 14rem;
  white-space: nowrap;
  overflow: visible;
}
body.lang-bichig .form-card,
body.lang-bichig .page-template-template-contact form {
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  overflow: visible;
}
body.lang-bichig .form-grid.two {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
body.lang-bichig .field {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 0.95rem;
}
body.lang-bichig .field label {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 8rem;
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}
body.lang-bichig .field input,
body.lang-bichig .field select,
body.lang-bichig .field textarea {
  writing-mode: horizontal-tb !important;
  flex: 1 1 12rem;
  min-width: 12rem;
  height: auto;
  letter-spacing: 0;
}
body.lang-bichig .btn-start,
body.lang-bichig .page-template-template-contact .btn {
  align-self: flex-start;
  height: max-content;
  min-height: 11.5rem;
  white-space: nowrap;
  overflow: visible;
}
body.lang-bichig .flash-ok {
  writing-mode: vertical-lr;
  height: max-content;
  min-height: 10rem;
  white-space: nowrap;
}
@media (min-width: 900px) {
  body.lang-bichig .page-template-template-contact .pg-split--form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.25rem;
    align-items: start;
  }
  body.lang-bichig .form-grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Bichig containment: space between items; never overlap; copy stays in card
   ========================================================================== */
body.lang-bichig .glass-card,
body.lang-bichig .tier,
body.lang-bichig .feature-card,
body.lang-bichig .ceo-card,
body.lang-bichig .join-plan,
body.lang-bichig .blog-card,
body.lang-bichig .hud-panel,
body.lang-bichig .brief-card,
body.lang-bichig .big-cta,
body.lang-bichig .form-card,
body.lang-bichig .mcp-resource,
body.lang-bichig .mcp-prompt,
body.lang-bichig .lp-step,
body.lang-bichig .lp-quote,
body.lang-bichig .goddess,
body.lang-bichig .species-tile,
body.lang-bichig .api-table tr {
  overflow: hidden;
  isolation: isolate;
  transform: none !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.lang-bichig .btn:hover,
body.lang-bichig .tier:hover,
body.lang-bichig .ceo-card:hover,
body.lang-bichig .feature-card:hover {
  transform: none !important;
}
body.lang-bichig .card-grid,
body.lang-bichig .roster-chorus,
body.lang-bichig .roster-next .roster-chorus,
body.lang-bichig .join-plans,
body.lang-bichig .lp-steps,
body.lang-bichig .brief-grid,
body.lang-bichig .goddess-row {
  gap: 1.75rem;
}
body.lang-bichig .pg-hero__actions,
body.lang-bichig .rift-hero__actions,
body.lang-bichig .lp-inline-cta,
body.lang-bichig .big-cta .actions,
body.lang-bichig .roster-cta,
body.lang-bichig .dossier__cta {
  gap: 1.4rem;
}
body.lang-bichig .btn,
body.lang-bichig .lp-page .btn,
body.lang-bichig .lp-inline-cta .btn,
body.lang-bichig .big-cta .btn,
body.lang-bichig .rift-hero__actions .btn,
body.lang-bichig .dossier__cta .btn,
body.lang-bichig .apply-form .btn,
body.lang-bichig .page-template-template-artists .btn,
body.lang-bichig .page-template-template-contact .btn,
body.lang-bichig .btn-start {
  white-space: normal;
  overflow: hidden;
  max-width: 100%;
  height: 14rem;
  min-height: 14rem;
  max-height: 14rem;
}
body.lang-bichig .feature-card h3,
body.lang-bichig .feature-card p,
body.lang-bichig .brief-card h3,
body.lang-bichig .brief-card p,
body.lang-bichig .brief-card li,
body.lang-bichig .goddess h3,
body.lang-bichig .goddess p,
body.lang-bichig .big-cta h2,
body.lang-bichig .big-cta > p,
body.lang-bichig .lp-step__body,
body.lang-bichig .api-table td:nth-child(3) {
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  height: 14.5rem;
  max-height: 14.5rem;
  box-sizing: border-box;
}
body.lang-bichig .page-template-template-business .feature-card,
body.lang-bichig .page-template-template-api .feature-card {
  overflow: hidden;
  gap: 1.25rem;
}
body.lang-bichig .page-template-template-business .feature-card h3,
body.lang-bichig .page-template-template-business .feature-card p,
body.lang-bichig .page-template-template-api .feature-card h3,
body.lang-bichig .page-template-template-api .feature-card p {
  white-space: normal;
  overflow: hidden;
  max-width: 100%;
  height: 14.5rem;
  max-height: 14.5rem;
}
body.lang-bichig .page-template-template-api .feature-card pre,
body.lang-bichig .page-template-template-api .feature-card .code {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
body.lang-bichig .contact-kicker,
body.lang-bichig .contact-places li,
body.lang-bichig .contact-offices .contact-val,
body.lang-bichig .flash-ok {
  white-space: normal;
  overflow: hidden;
  max-width: 100%;
  height: 11rem;
  max-height: 11rem;
}
body.lang-bichig .pg-hero h1,
body.lang-bichig .rift-hero h1,
body.lang-bichig .pg-hero .lead,
body.lang-bichig .rift-hero .lead,
body.lang-bichig .pg-head,
body.lang-bichig .rift-head,
body.lang-bichig .section-head {
  overflow: hidden;
  max-width: 100%;
  white-space: normal;
}
body.lang-bichig .ceo-body {
  overflow: hidden;
  max-width: 100%;
}

