/* ==========================================================================
   AI Mistress Chat — shared stylesheet
   A dark, editorial design system for an AI character website.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0b10;
  --bg-deep: #09070b;
  --bg-soft: #171118;
  --bg-elevated: #1d151d;
  --card: #241922;
  --card-soft: #2b1d28;
  --wine: #8c284b;
  --wine-deep: #641d37;
  --rose: #d65b87;
  --rose-soft: #e6a0b8;
  --gold: #c7a46a;
  --gold-bright: #ddc08b;
  --text: #ffffff;
  --muted: #b9aab5;
  --muted-deep: #ad9ca8;
  --line: rgba(199, 164, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(199, 164, 106, 0.36);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --gutter: 24px;
  --header-h: 74px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 30px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 66% 42% at 78% -5%, rgba(140, 40, 75, 0.19), transparent 66%),
    radial-gradient(ellipse 52% 36% at 8% 30%, rgba(199, 164, 106, 0.045), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  content: "";
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

::selection {
  background: var(--wine);
  color: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.45em;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 6.4vw, 6.3rem);
}

h2 {
  font-size: clamp(2.35rem, 4.4vw, 4.15rem);
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.1;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: 0.8em;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--line);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 30px);
}

.container {
  width: min(1240px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.container--wide {
  width: min(1400px, calc(100% - (var(--gutter) * 2)));
}

.container--narrow {
  width: min(900px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--gold);
  color: #160e12;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.display-italic {
  color: var(--rose-soft);
  font-style: italic;
  font-weight: 400;
}

.gold {
  color: var(--gold);
}

.muted {
  color: var(--muted);
}

.text-balance {
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0.8;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  width: 26px;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0.8;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.78;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.4rem, 4.2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: none;
}

.section-head--split > div {
  max-width: 680px;
}

.section-head--split .section-note {
  max-width: 300px;
  padding-bottom: 0.45rem;
  color: var(--muted-deep);
  font-size: 0.8rem;
  line-height: 1.65;
}

.section-note {
  color: var(--muted-deep);
  font-size: 0.78rem;
  line-height: 1.6;
}

.kicker-serif {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-style: italic;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-align: center;
  transition:
    transform 0.32s var(--ease),
    background-color 0.32s ease,
    border-color 0.32s ease,
    color 0.32s ease,
    box-shadow 0.32s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg,
.btn .arrow {
  flex: 0 0 auto;
  transition: transform 0.32s var(--ease);
}

.btn:hover svg,
.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  border-color: rgba(221, 192, 139, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(135deg, #9f3156, #6b1c39);
  box-shadow: 0 12px 35px rgba(140, 40, 75, 0.23);
  color: #fff;
}

.btn-primary:hover {
  border-color: rgba(221, 192, 139, 0.6);
  box-shadow: 0 16px 42px rgba(140, 40, 75, 0.34);
}

.btn-outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(199, 164, 106, 0.07);
  color: var(--gold-bright);
}

.btn-gold {
  background: var(--gold);
  color: #1b1115;
}

.btn-gold:hover {
  background: var(--gold-bright);
  box-shadow: 0 12px 30px rgba(199, 164, 106, 0.16);
}

.btn-sm {
  min-height: 40px;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
}

.btn-xs {
  min-height: 34px;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.link-underline {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(199, 164, 106, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.link-underline:hover {
  text-decoration-color: var(--gold);
}

.text-link {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(199, 164, 106, 0.35);
}

.text-link:hover {
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 101;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #08070a;
  color: #94858f;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.topbar-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--wine);
}

.topbar a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(199, 164, 106, 0.35);
  text-underline-offset: 3px;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
}

.age-pill span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border: 1px solid rgba(199, 164, 106, 0.45);
  border-radius: 50%;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(13, 11, 16, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(10, 8, 12, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.72rem;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(199, 164, 106, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, rgba(214, 91, 135, 0.17), transparent 65%);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.brand-mark::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(199, 164, 106, 0.13);
  border-radius: 50%;
  content: "";
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-sub {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.9vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: #c9bdc5;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--gold-bright);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-mobile-cta {
  display: none;
}

/* --------------------------------------------------------------------------
   Layout + section shells
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(4.6rem, 8.5vw, 8rem) 0;
}

.section--tight {
  padding: clamp(3.4rem, 6vw, 5.5rem) 0;
}

.section--deep {
  background: var(--bg-deep);
}

.section--wine {
  background:
    radial-gradient(ellipse 60% 120% at 80% 0%, rgba(140, 40, 75, 0.32), transparent 65%),
    linear-gradient(135deg, #170e16, #0d0a0f 58%, #1a0d15);
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

.section-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.split--wide-left {
  grid-template-columns: 1.12fr 0.88fr;
}

.split--wide-right {
  grid-template-columns: 0.88fr 1.12fr;
}

.split--top {
  align-items: start;
}

.stack > * + * {
  margin-top: 1.2rem;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.section-footnote {
  margin-top: 1.7rem;
  color: var(--muted-deep);
  font-size: 0.76rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Breadcrumbs + page heroes
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--gold-bright);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--gold);
  opacity: 0.55;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 6vw, 5.6rem) 0 clamp(3.8rem, 7vw, 6.5rem);
}

.page-hero::before {
  position: absolute;
  top: -26%;
  right: -10%;
  width: 54vw;
  height: 54vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 40, 75, 0.2), transparent 67%);
  content: "";
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-title {
  max-width: 940px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
}

.page-title em {
  color: var(--rose-soft);
  font-weight: 400;
}

.page-lede {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.8;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.2rem;
  margin-top: 1.9rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero-meta > span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2.2rem, 5vw, 5rem);
}

.page-hero-grid .page-title {
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   Portrait imagery
   -------------------------------------------------------------------------- */

.portrait {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.23);
  background: var(--card);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.portrait--arch {
  border-radius: 46% 46% 18px 18px / 38% 38% 18px 18px;
}

.portrait--rounded {
  border-radius: var(--radius-lg);
}

.portrait--soft {
  border-radius: 20px;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(9, 7, 11, 0.8) 100%),
    linear-gradient(90deg, rgba(140, 40, 75, 0.12), transparent 52%);
  pointer-events: none;
}

.image-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  padding: 1rem 0;
}

.hero-halo {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 40, 75, 0.3), rgba(140, 40, 75, 0.05) 46%, transparent 70%);
  filter: blur(20px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-arch-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 86%;
  height: 90%;
  border: 1px solid rgba(199, 164, 106, 0.18);
  border-radius: 50% 50% 20px 20px / 44% 44% 20px 20px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-portrait {
  position: relative;
  width: min(82%, 470px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: 48% 48% 18px 18px / 39% 39% 18px 18px;
  box-shadow: var(--shadow);
}

.hero-portrait img {
  filter: saturate(0.98) contrast(1.02);
}

.hero-portrait::after {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, rgba(13, 11, 16, 0.5));
  content: "";
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 96%;
  height: 76%;
  border: 1px solid rgba(199, 164, 106, 0.08);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-7deg);
  pointer-events: none;
}

.hero-orbit--two {
  width: 106%;
  height: 86%;
  border-color: rgba(255, 255, 255, 0.035);
  transform: translateX(-50%) rotate(8deg);
}

/* --------------------------------------------------------------------------
   Floating UI
   -------------------------------------------------------------------------- */

.glass {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 17, 24, 0.74);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.floating-profile {
  position: absolute;
  top: 12%;
  left: -3%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 202px;
  padding: 0.62rem 0.9rem 0.62rem 0.62rem;
  border-radius: 999px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(199, 164, 106, 0.4);
  border-radius: 50%;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.3;
}

.profile-meta strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.profile-meta span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-meta .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #d0a9b6;
}

.live-dot::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
  content: "";
}

.floating-chips {
  position: absolute;
  top: 42%;
  right: -4%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(199, 164, 106, 0.25);
  border-radius: 999px;
  background: rgba(16, 12, 17, 0.82);
  color: #d3c5cd;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.mini-chip::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.chat-peek {
  position: absolute;
  bottom: 2%;
  left: -8%;
  z-index: 4;
  width: min(310px, 72%);
  padding: 1rem;
  border-radius: 18px;
}

.chat-peek-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-peek-label::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.bubble {
  width: fit-content;
  max-width: 92%;
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px 12px 12px 3px;
  background: #2a1c25;
  color: #e5dbe0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.bubble--user {
  margin-left: auto;
  border-radius: 12px 12px 3px 12px;
  background: linear-gradient(135deg, #8c284b, #6e203b);
  color: #fff;
}

.chat-peek .chat-demo-note {
  margin-top: 0.3rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Character cards
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.filter-label {
  margin-right: 0.45rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-btn {
  padding: 0.52rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: 0.22s ease;
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  border-color: rgba(199, 164, 106, 0.5);
  background: rgba(199, 164, 106, 0.1);
  color: var(--gold-bright);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
}

.char-card {
  position: relative;
  display: flex;
  grid-column: span 4;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1e161e, #171118);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.char-card:hover {
  border-color: rgba(199, 164, 106, 0.3);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.char-card[hidden] {
  display: none;
}

.char-card--feature {
  grid-column: span 6;
}

.char-card--compact {
  grid-column: span 3;
}

.char-card--mid {
  grid-column: span 4;
}

.char-card--wide {
  display: grid;
  grid-column: span 6;
  grid-template-columns: 0.86fr 1.14fr;
}

.char-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--card);
}

.char-card--feature .char-media {
  aspect-ratio: 16 / 15;
}

.char-card--compact .char-media {
  aspect-ratio: 3 / 4;
}

.char-card--wide .char-media {
  min-height: 100%;
  aspect-ratio: auto;
}

.char-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.char-card:hover .char-media img {
  transform: scale(1.035);
}

.char-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(12, 9, 13, 0.62));
  content: "";
  pointer-events: none;
}

.char-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(199, 164, 106, 0.27);
  border-radius: 999px;
  background: rgba(12, 9, 13, 0.7);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.char-number {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
}

.char-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.2rem;
}

.char-card--feature .char-body,
.char-card--wide .char-body {
  justify-content: center;
  padding: 1.5rem;
}

.char-eyebrow {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.char-name {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.char-card--feature .char-name {
  font-size: 1.85rem;
}

.char-desc {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
}

.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.52rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.tag--gold {
  border-color: rgba(199, 164, 106, 0.22);
  color: var(--gold);
}

.char-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.char-cta::after {
  content: "→";
  transition: transform 0.2s ease;
}

.char-cta:hover::after {
  transform: translateX(3px);
}

.char-card--wide .char-media {
  border-right: 1px solid var(--line-soft);
}

.char-card--wide .char-body {
  min-height: 280px;
}

.char-note {
  margin-top: 1.5rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Horizontal character rail */
.char-rail {
  display: flex;
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--wine) transparent;
}

.char-rail .char-card {
  width: min(320px, 76vw);
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.char-rail::-webkit-scrollbar {
  height: 4px;
}

.char-rail::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--wine);
}

/* --------------------------------------------------------------------------
   Chat interface
   -------------------------------------------------------------------------- */

.chat-window {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 490px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.18);
  border-radius: 24px;
  background: #161118;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.chat-window--wide {
  max-width: 590px;
}

.chat-window--phone {
  max-width: 390px;
  border-radius: 32px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

.chat-head img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgba(199, 164, 106, 0.35);
  border-radius: 50%;
}

.chat-head-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
}

.chat-head-meta strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.25;
}

.chat-head-meta span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.chat-head-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-head-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 6px rgba(214, 91, 135, 0.8);
  content: "";
}

.chat-head-actions {
  display: flex;
  margin-left: auto;
  gap: 0.2rem;
  color: var(--muted-deep);
  font-size: 0.9rem;
}

.chat-head-actions span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.75rem;
}

.chat-body {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.15rem 1rem;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(140, 40, 75, 0.1), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(199, 164, 106, 0.035), transparent 60%);
}

.chat-day {
  align-self: center;
  margin-bottom: 0.3rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.msg {
  width: fit-content;
  max-width: 84%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px 15px 15px 4px;
  background: #291d26;
  color: #e4d9df;
  font-size: 0.8rem;
  line-height: 1.55;
}

.msg--user {
  align-self: flex-end;
  border-color: rgba(214, 91, 135, 0.2);
  border-radius: 15px 15px 4px 15px;
  background: linear-gradient(135deg, #8c284b, #6b203c);
  color: #fff;
}

.msg-label {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.msg--character .msg-label {
  color: var(--gold);
}

.chat-context {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
}

.chat-context span {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: #291d26;
}

.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.4s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes typing {
  0%,
  65%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
}

.chat-input input {
  min-width: 0;
  flex: 1;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  outline: 0;
  background: #0f0c11;
  color: var(--text);
  font-size: 0.75rem;
}

.chat-input input::placeholder {
  color: #6e606a;
}

.chat-input input:focus {
  border-color: rgba(199, 164, 106, 0.42);
}

.chat-send {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1b1115;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.chat-send:hover {
  background: var(--gold-bright);
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(199, 164, 106, 0.2);
  border-radius: 999px;
  background: rgba(199, 164, 106, 0.05);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.demo-tag::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.demo-note {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(199, 164, 106, 0.15);
  border-radius: 12px;
  background: rgba(199, 164, 106, 0.035);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.demo-note strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-feedback {
  display: none;
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-left: 2px solid var(--gold);
  background: rgba(199, 164, 106, 0.055);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.demo-feedback.is-visible {
  display: block;
}

.demo-feedback a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 65% 25%, rgba(140, 40, 75, 0.3), transparent 55%),
    linear-gradient(135deg, #1b1119, #0e0b10);
  overflow: hidden;
}

.chat-stage::before {
  position: absolute;
  inset: 12% 8%;
  border: 1px solid rgba(199, 164, 106, 0.12);
  border-radius: 50%;
  content: "";
}

.chat-stage .chat-window {
  position: relative;
  z-index: 2;
}

.chat-stage-side {
  position: absolute;
  z-index: 1;
  width: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 140px 140px 12px 12px;
  opacity: 0.55;
}

.chat-stage-side img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.chat-stage-side--left {
  bottom: -55px;
  left: 3%;
  transform: rotate(-8deg);
}

.chat-stage-side--right {
  top: -45px;
  right: 2%;
  transform: rotate(8deg);
}

/* Tone tabs + chat tabs */
.tone-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
}

.tone-tab {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: 0.2s ease;
}

.tone-tab:hover {
  color: var(--text);
}

.tone-tab[aria-selected="true"],
.tone-tab.is-active {
  background: rgba(199, 164, 106, 0.13);
  color: var(--gold-bright);
}

.tab-panel[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Preference controls / interactive demos
   -------------------------------------------------------------------------- */

.control-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(36, 25, 34, 0.7), rgba(23, 17, 24, 0.72));
}

.control-group + .control-group {
  margin-top: 1.45rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-label span {
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  padding: 0.52rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.pill:hover {
  border-color: rgba(199, 164, 106, 0.3);
  color: var(--text);
}

.pill[aria-pressed="true"],
.pill.is-active {
  border-color: rgba(199, 164, 106, 0.55);
  background: linear-gradient(135deg, rgba(140, 40, 75, 0.55), rgba(100, 29, 55, 0.48));
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.pill .pill-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.pref-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.preview-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.2);
  border-radius: var(--radius);
  background: #171118;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.preview-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.preview-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(23, 17, 24, 0.9));
  content: "";
}

.preview-head {
  position: absolute;
  right: 1.1rem;
  bottom: 0.9rem;
  left: 1.1rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

.preview-head h3 {
  margin: 0;
  font-size: 1.55rem;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-status::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.preview-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.75rem;
}

.preview-row:last-of-type {
  border-bottom: 0;
}

.preview-row span:first-child {
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-row strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: right;
}

.preview-foot {
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

.preview-foot p {
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.5;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

input[type="range"] {
  width: 100%;
  height: 2px;
  accent-color: var(--gold);
  appearance: none;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  border-radius: 99px;
}

input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #1a1219;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #1a1219;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #0f0c11;
  transition: 0.2s ease;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted-deep);
  content: "";
  transition: 0.2s ease;
}

.toggle[aria-pressed="true"] {
  border-color: rgba(199, 164, 106, 0.4);
  background: rgba(140, 40, 75, 0.55);
}

.toggle[aria-pressed="true"]::after {
  background: var(--gold-bright);
  transform: translateX(16px);
}

/* --------------------------------------------------------------------------
   Profile & relationship panels
   -------------------------------------------------------------------------- */

.profile-panel {
  position: relative;
  padding: 1.15rem;
  border: 1px solid rgba(199, 164, 106, 0.19);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #211721, #151016);
}

.profile-panel-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.profile-panel-head img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(199, 164, 106, 0.38);
  border-radius: 50%;
}

.profile-panel-head h3 {
  margin-bottom: 0.1rem;
  font-size: 1.3rem;
}

.profile-panel-head p {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-stat span {
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stat strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
}

.profile-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-detail-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.75rem;
}

.profile-detail-list li:last-child {
  border-bottom: 0;
}

.profile-detail-list span {
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.relationship-box {
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
}

.relationship-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.relationship-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.75rem;
  color: var(--muted);
}

.relationship-row:last-child {
  border-bottom: 0;
}

.relationship-value {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Scenario cards
   -------------------------------------------------------------------------- */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scenario-card {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.scenario-card:hover {
  border-color: rgba(199, 164, 106, 0.33);
  transform: translateY(-3px);
}

.scenario-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.7s var(--ease);
}

.scenario-card:hover img {
  transform: scale(1.04);
}

.scenario-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 12, 0.08) 18%, rgba(10, 8, 12, 0.9) 100%);
  content: "";
}

.scenario-content {
  position: relative;
  z-index: 1;
}

.scenario-content span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scenario-content h3 {
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
}

.scenario-content p {
  margin: 0;
  color: #c7b9c1;
  font-size: 0.75rem;
  line-height: 1.5;
}

.scenario-card--feature {
  grid-column: span 2;
}

.scenario-card--wide {
  grid-column: span 2;
}

.scenario-card--soft {
  background: linear-gradient(145deg, #251924, #161017);
}

.scenario-card--soft img {
  opacity: 0.2;
}

/* --------------------------------------------------------------------------
   Steps / process
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 1.8rem 2rem 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step + .step {
  padding-left: 2rem;
}

.step-num {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
  opacity: 0.7;
}

.step h3 {
  margin-bottom: 0.55rem;
  font-size: 1.55rem;
}

.step p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Editorial content cards / feature blocks
   -------------------------------------------------------------------------- */

.editorial-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(36, 25, 34, 0.86), rgba(22, 16, 23, 0.9));
}

.editorial-card--gold {
  border-color: rgba(199, 164, 106, 0.22);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(199, 164, 106, 0.1), transparent 50%),
    linear-gradient(145deg, #251b23, #161017);
}

.editorial-card h3 {
  max-width: 460px;
}

.feature-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.4rem 0 1.4rem 2rem;
  border-left: 1px solid var(--gold);
  color: #e6d9e0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
}

.feature-quote cite {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted-deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pull-number {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-style: italic;
  line-height: 0.8;
  opacity: 0.55;
}

.icon-card {
  padding: 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
}

.icon-card .icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 1.1rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
}

.icon-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.icon-card p {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.65;
}

.two-col-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.4rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.two-col-list li {
  position: relative;
  margin: 0;
  padding: 0.45rem 0 0.45rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.79rem;
}

.two-col-list li::before {
  position: absolute;
  top: 0.88rem;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.check-list li::before {
  position: absolute;
  top: 0.35rem;
  left: 0;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(199, 164, 106, 0.4);
  border-radius: 50%;
  color: var(--gold);
  content: "✓";
  font-size: 0.75rem;
}

.boundary-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(199, 164, 106, 0.18);
  border-radius: 12px;
  background: rgba(199, 164, 106, 0.04);
}

.boundary-note::before {
  flex: 0 0 auto;
  color: var(--gold);
  content: "✦";
  font-size: 0.9rem;
}

.boundary-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.75rem;
  line-height: 1.55;
  vertical-align: top;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.025);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-table th:first-child,
.compare-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.compare-table td {
  color: var(--muted);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 1.6vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.faq-trigger:hover {
  color: var(--gold-bright);
}

.faq-icon {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  width: 9px;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: transform 0.25s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  border-color: var(--gold);
  background: rgba(199, 164, 106, 0.1);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}

.faq-panel > div {
  overflow: hidden;
}

.faq-trigger[aria-expanded="true"] + .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel p {
  max-width: 740px;
  padding: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.75;
}

.faq-panel a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(199, 164, 106, 0.35);
  text-underline-offset: 3px;
}

.faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

/* --------------------------------------------------------------------------
   Editorial / blog
   -------------------------------------------------------------------------- */

.blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1d151d, #120e14);
}

.blog-feature-media {
  position: relative;
  min-width: 0;
  min-height: 380px;
  overflow: hidden;
}

.blog-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.blog-feature:hover .blog-feature-media img {
  transform: scale(1.025);
}

.blog-feature-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, #171118);
  content: "";
}

.blog-feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.7rem, 4vw, 3.2rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 1.1rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta .category {
  color: var(--gold);
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}

.blog-feature h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.blog-feature p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.blog-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #171118;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.blog-card:hover {
  border-color: rgba(199, 164, 106, 0.3);
  transform: translateY(-3px);
}

.blog-card-media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.035);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.blog-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.65rem;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.blog-card .article-meta {
  margin-bottom: 0.7rem;
}

.blog-card .link-arrow {
  margin-top: auto;
  padding-top: 0.9rem;
}

.article-page {
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.article-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 540;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 11, 16, 0.35));
  content: "";
}

.article-header {
  max-width: 890px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.6rem);
  text-align: center;
}

.article-header .article-meta {
  justify-content: center;
}

.article-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.article-header .page-lede {
  margin-inline: auto;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  justify-content: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.article-toc h2 {
  margin-bottom: 0.8rem;
  color: var(--muted-deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  margin: 0;
  counter-increment: toc;
}

.article-toc a {
  display: flex;
  gap: 0.55rem;
  padding: 0.38rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.article-toc a::before {
  color: var(--gold);
  content: "0" counter(toc);
  font-size: 0.75rem;
  opacity: 0.7;
}

.article-toc a:hover {
  color: var(--gold-bright);
}

.article-body {
  color: #cfc2ca;
  font-size: 0.98rem;
  line-height: 1.85;
}

.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 4.2em;
  line-height: 0.72;
}

.article-body h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  scroll-margin-top: calc(var(--header-h) + 25px);
}

.article-body h3 {
  margin: 1.8rem 0 0.65rem;
  font-size: 1.45rem;
  scroll-margin-top: calc(var(--header-h) + 25px);
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
}

.article-body ul li::marker {
  color: var(--gold);
}

.article-body strong {
  color: #fff;
}

.article-body a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(199, 164, 106, 0.35);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--gold);
}

.article-body blockquote {
  margin: 1.8rem 0;
  padding: 1.3rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(199, 164, 106, 0.04);
  color: #e4d7de;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.4;
}

.article-body blockquote p {
  margin: 0;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  margin-top: 0.55rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
}

.article-callout {
  margin: 1.8rem 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(199, 164, 106, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(140, 40, 75, 0.1), rgba(199, 164, 106, 0.03));
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.article-callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-body .table-wrap {
  margin: 1.8rem 0;
}

.article-body .compare-table {
  font-size: 0.9rem;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.article-footer .tag {
  margin-right: 0.25rem;
}

.article-disclosure {
  margin: 2.4rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.65;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.related-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease;
}

.related-card:hover {
  border-color: var(--line-strong);
}

.related-card img {
  width: 62px;
  height: 78px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
}

.related-card span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-card strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Legal / info pages
   -------------------------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

.legal-nav h2 {
  margin-bottom: 0.8rem;
  color: var(--muted-deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 0.38rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.legal-nav a:hover {
  color: var(--gold-bright);
}

.legal-body {
  color: #cfc2ca;
  font-size: 0.92rem;
  line-height: 1.8;
}

.legal-body h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.9rem;
  scroll-margin-top: calc(var(--header-h) + 25px);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.3rem;
  scroll-margin-top: calc(var(--header-h) + 25px);
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin-bottom: 1.1rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(199, 164, 106, 0.35);
  text-underline-offset: 3px;
}

.legal-meta {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.legal-note {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--gold);
  background: rgba(199, 164, 106, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.value-card {
  padding: 1.35rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.014);
}

.value-card span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
}

.value-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.value-card p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.disclosure-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid rgba(199, 164, 106, 0.22);
  border-radius: var(--radius);
  background: rgba(199, 164, 106, 0.045);
}

.disclosure-box .mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.75rem;
}

.disclosure-box h3 {
  margin-bottom: 0.35rem;
  font-size: 1.18rem;
}

.disclosure-box p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(3.8rem, 7vw, 6.4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 54% 120% at 75% 50%, rgba(140, 40, 75, 0.45), transparent 66%),
    radial-gradient(ellipse 30% 70% at 100% 20%, rgba(199, 164, 106, 0.1), transparent 60%),
    #120b11;
}

.final-cta::before {
  position: absolute;
  top: 50%;
  right: 7%;
  width: 360px;
  height: 480px;
  border: 1px solid rgba(199, 164, 106, 0.13);
  border-radius: 46% 46% 10px 10px / 38% 38% 10px 10px;
  content: "";
  transform: translateY(-50%) rotate(7deg);
}

.final-cta::after {
  position: absolute;
  right: 2%;
  bottom: -30%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 91, 135, 0.17), transparent 68%);
  content: "";
  filter: blur(20px);
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta-content {
  max-width: 650px;
}

.final-cta h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.final-cta p {
  max-width: 510px;
  color: var(--muted);
  font-size: 0.95rem;
}

.final-cta .btn-group {
  margin-top: 1.7rem;
}

.cta-portrait {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: 0;
  width: min(26vw, 290px);
  height: 88%;
  overflow: hidden;
  border-radius: 150px 150px 0 0;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.cta-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #09070b;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 0.65fr 0.85fr;
  gap: 2.4rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  max-width: 290px;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-age {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-age span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(199, 164, 106, 0.38);
  border-radius: 50%;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.footer-col h2 {
  margin-bottom: 0.9rem;
  color: var(--muted-deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.35rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-external {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold) !important;
}

.footer-external::after {
  content: "↗";
  font-size: 0.7em;
}

.footer-disclosure {
  padding: 1.15rem 0 1.3rem;
  border-top: 1px solid var(--line-soft);
}

.footer-disclosure p {
  max-width: 930px;
  margin: 0;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-disclosure a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  color: #6d5f69;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive — large tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .header-inner {
    gap: 0.9rem;
  }

  .nav-list {
    gap: 0.9rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .header-actions .btn {
    padding-inline: 1rem;
    font-size: 0.75rem;
  }

  .floating-chips {
    right: 0;
  }

  .chat-peek {
    left: 0;
  }

  .footer-top {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
  }

  .footer-col:last-child {
    grid-column: 2 / 4;
  }
}

/* --------------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  :root {
    --header-h: 66px;
  }

  .container {
    width: min(100% - 40px, 900px);
  }

  .topbar-inner {
    min-height: 30px;
  }

  .header-inner {
    height: var(--header-h);
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    margin: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 11, 16, 0.985);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    visibility: hidden;
  }

  .site-header.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.8rem 0 1.2rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link {
    display: block;
    padding: 0.95rem 0;
    font-size: 0.75rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-mobile-cta {
    display: block;
    padding: 1rem 0 0.2rem;
    border-bottom: 0 !important;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-actions {
    margin-left: 0;
  }

  .hero-home .container {
    gap: 2rem;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .split--reverse > *:first-child {
    order: 2;
  }

  .split--reverse > *:last-child {
    order: 1;
  }

  .pref-layout {
    grid-template-columns: 1fr;
  }

  .preview-card {
    position: relative;
    top: 0;
  }

  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-card--feature {
    grid-column: span 2;
  }

  .article-layout,
  .legal-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .article-toc,
  .legal-nav {
    position: static;
    padding: 0.9rem 0 0;
  }

  .article-toc ol,
  .legal-nav nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.2rem;
  }

  .article-toc a {
    padding: 0.2rem 0;
  }

  .article-toc a::before {
    display: none;
  }

  .blog-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-feature-media {
    min-height: 300px;
  }

  .blog-feature-media::after {
    background: linear-gradient(180deg, transparent 55%, #171118);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step + .step {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step-num {
    margin-bottom: 0.6rem;
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .cta-portrait {
    right: -3%;
    width: 260px;
    opacity: 0.3;
  }

  .final-cta-content {
    max-width: 70%;
  }

  .footer-top {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive — mobile
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 36px, 680px);
  }

  .topbar {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .topbar-group:last-child {
    display: none;
  }

  .header-actions > .btn {
    display: none;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }

  .hero-home {
    padding-top: 2.4rem;
  }

  .hero-home .container {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.7rem, 11.7vw, 4.2rem);
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .hero-copy .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .hero-copy .btn-group {
    width: 100%;
    flex-direction: column;
  }

  .hero-copy .btn-group .btn {
    width: 100%;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-portrait {
    width: 76%;
  }

  .floating-profile {
    top: 6%;
    left: 0;
    min-width: 0;
    padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  }

  .floating-profile .profile-avatar {
    width: 32px;
    height: 32px;
  }

  .floating-profile .profile-meta strong {
    font-size: 0.9rem;
  }

  .floating-chips {
    top: 52%;
    right: 0;
  }

  .mini-chip {
    font-size: 0.75rem;
  }

  .chat-peek {
    bottom: 0;
    left: 0;
    width: 73%;
    padding: 0.8rem;
  }

  .bubble {
    font-size: 0.75rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-head--split {
    display: block;
  }

  .section-head--split .section-note {
    max-width: none;
    margin-top: 1rem;
  }

  .page-hero {
    padding: 2.4rem 0 3.4rem;
  }

  .page-title {
    font-size: clamp(2.5rem, 11.5vw, 3.7rem);
  }

  .page-lede {
    font-size: 0.96rem;
  }

  .breadcrumbs {
    font-size: 0.75rem;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .lead {
    font-size: 0.96rem;
  }

  .char-grid {
    display: flex;
    gap: 0.85rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--wine) transparent;
  }

  .char-card,
  .char-card--feature,
  .char-card--compact,
  .char-card--mid,
  .char-card--wide {
    display: flex;
    width: 82vw;
    min-width: 0;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .char-card--wide {
    flex-direction: column;
  }

  .char-media,
  .char-card--feature .char-media,
  .char-card--compact .char-media,
  .char-card--wide .char-media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .char-card--feature .char-body,
  .char-card--wide .char-body {
    justify-content: flex-start;
    padding: 1.1rem 1.15rem 1.2rem;
  }

  .char-card--wide .char-media {
    border-right: 0;
  }

  .char-card--wide .char-body {
    min-height: 0;
  }

  .char-name,
  .char-card--feature .char-name {
    font-size: 1.55rem;
  }

  .char-grid::-webkit-scrollbar {
    height: 4px;
  }

  .char-grid::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: var(--wine);
  }

  .chat-stage {
    min-height: 0;
    padding: 1rem 0.5rem;
  }

  .chat-stage-side {
    display: none;
  }

  .chat-window,
  .chat-window--wide {
    max-width: 100%;
  }

  .chat-window--phone {
    max-width: 100%;
    border-radius: 24px;
  }

  .chat-body {
    min-height: 310px;
  }

  .floating-chips {
    display: none;
  }

  .tone-tabs {
    border-radius: 14px;
  }

  .scenario-grid {
    display: flex;
    gap: 0.8rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .scenario-card,
  .scenario-card--feature {
    width: 80vw;
    min-width: 0;
    flex: 0 0 auto;
    min-height: 300px;
    scroll-snap-align: start;
  }

  .steps {
    margin-top: 0.5rem;
  }

  .two-col-list {
    grid-template-columns: 1fr;
  }

  .faq-two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-trigger {
    padding: 1.1rem 0;
    font-size: 1.12rem;
  }

  .faq-panel p {
    font-size: 0.82rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-feature-media {
    min-height: 220px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.4rem);
  }

  .article-cover {
    aspect-ratio: 16 / 10;
    margin-bottom: 1.5rem;
  }

  .article-body {
    font-size: 0.94rem;
  }

  .article-body h2 {
    margin-top: 2rem;
  }

  .article-body > p:first-of-type::first-letter {
    font-size: 3.5em;
  }

  .article-toc ol,
  .legal-nav nav {
    flex-wrap: wrap;
    gap: 0.1rem 1.1rem;
    max-height: none;
    overflow: visible;
  }

  .legal-nav a {
    padding: 0.3rem 0;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 3.5rem 0;
  }

  .final-cta-content {
    max-width: none;
  }

  .final-cta::before {
    opacity: 0.4;
  }

  .cta-portrait {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-top {
    padding-bottom: 1.8rem;
  }

  .footer-disclosure {
    padding-top: 1rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.35rem;
    overflow-x: auto;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .profile-stats {
    gap: 0.35rem;
  }

  .preview-media {
    aspect-ratio: 16 / 9;
  }

  .preview-media img {
    object-position: 50% 18%;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.8rem;
    font-size: 0.75rem;
  }

  .demo-note {
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .hero-stage {
    min-height: 390px;
  }

  .hero-portrait {
    width: 80%;
  }

  .floating-profile {
    transform: scale(0.92);
    transform-origin: top left;
  }

  .chat-peek {
    width: 78%;
  }

  .page-hero-meta {
    gap: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }

  .section-head h2 {
    font-size: 2.1rem;
  }

  .char-card,
  .char-card--feature,
  .char-card--compact,
  .char-card--mid,
  .char-card--wide {
    width: 86vw;
  }

  .scenario-card,
  .scenario-card--feature {
    width: 84vw;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   Homepage-specific composition
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.hero-home {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 6.4vw, 6rem) 0 clamp(2.4rem, 4vw, 4rem);
}

.hero-home .container {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.hero-copy {
  position: relative;
  z-index: 5;
  min-width: 0;
}

.hero-title {
  max-width: 690px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: 0.98;
  overflow-wrap: break-word;
}

.hero-copy .lead {
  max-width: 570px;
  margin-bottom: 1.7rem;
}

.hero-note {
  max-width: 540px;
  margin-top: 1.15rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.hero-stage {
  min-height: 620px;
}

.taste-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 7, 11, 0.45);
}

.taste-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  min-height: 58px;
  overflow-x: auto;
  color: #a4919d;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  white-space: nowrap;
  scrollbar-width: none;
}

.taste-strip-inner::-webkit-scrollbar {
  display: none;
}

.taste-strip-inner i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.dominant-visual {
  position: relative;
  padding: 0 3.4rem 2.5rem 0;
}

.dominant-portrait {
  width: 82%;
  margin: 0;
  aspect-ratio: 4 / 5;
}

.dominant-profile-card {
  position: absolute;
  right: 0;
  bottom: 3%;
  width: min(260px, 72%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.dominant-notes {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.dominant-notes article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-soft);
}

.dominant-notes article > span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  opacity: 0.7;
}

.dominant-notes h3 {
  margin-bottom: 0.15rem;
  font-size: 1.18rem;
}

.dominant-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.scenario-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
}

.femdom-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.femdom-visual::before {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 40, 75, 0.28), transparent 68%);
  content: "";
  filter: blur(18px);
  transform: translateX(-50%);
}

.femdom-visual .chat-window {
  position: relative;
  z-index: 1;
}

.range-value {
  min-width: 74px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-align: right;
}

.chat-window > .demo-feedback {
  margin: 0 0.75rem 0.75rem;
}

.chat-window .tone-tabs {
  margin: 0.8rem 0.8rem 0;
}

.chat-window .tab-panel .chat-body {
  border-top: 1px solid transparent;
}

.intro-copy .feature-quote {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero-stage {
    min-height: 0;
  }

  .dominant-visual {
    max-width: 560px;
    margin-inline: auto;
    padding-right: 2.5rem;
  }

  .taste-strip-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .dominant-visual {
    padding: 0 2.4rem 2.4rem 0;
  }

  .dominant-profile-card {
    width: 66%;
  }

  .hero-note {
    font-size: 0.75rem;
  }

  .taste-strip-inner {
    min-height: 52px;
    font-size: 0.92rem;
  }

  .profile-panel-head h3 {
    font-size: 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   Late responsive overrides for page-specific compositions
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-home .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stage {
    width: min(100%, 540px);
    min-height: 500px;
    margin-inline: auto;
  }

  .hero-title {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .hero-home {
    padding-top: 2.5rem;
  }

  .hero-home .container {
    display: flex;
    flex-direction: column;
    gap: 2.3rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.75rem, 11.7vw, 4.2rem);
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .hero-copy .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .hero-stage {
    width: 100%;
    min-height: 430px;
  }

  .hero-portrait {
    width: 76%;
  }

  .dominant-visual {
    padding: 0 2.4rem 2.4rem 0;
  }

  .dominant-profile-card {
    width: 66%;
  }
}

@media (max-width: 420px) {
  .hero-stage {
    min-height: 390px;
  }

  .hero-portrait {
    width: 80%;
  }
}

/* --------------------------------------------------------------------------
   AI Dominatrix page
   -------------------------------------------------------------------------- */

.quote-band {
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(140, 40, 75, 0.1), rgba(199, 164, 106, 0.025), transparent);
}

.quote-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.quote-band p {
  margin: 0;
  color: #dbcbd4;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-style: italic;
  line-height: 1.35;
}

.quote-band span {
  flex: 0 0 auto;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dominatrix-hero {
  position: relative;
  min-height: 590px;
}

.dominatrix-hero-glow {
  position: absolute;
  top: 4%;
  left: 44%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 40, 75, 0.32), transparent 68%);
  filter: blur(14px);
  transform: translateX(-50%);
}

.dominatrix-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  margin: 0;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.dominatrix-side {
  position: absolute;
  right: 0;
  bottom: 2%;
  width: 48%;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 120px 120px 12px 12px;
  box-shadow: var(--shadow);
}

.dominatrix-side img {
  object-position: 50% 12%;
}

.dominatrix-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: min(240px, 66%);
  padding: 1rem 1.1rem;
  border-radius: 14px;
}

.dominatrix-caption span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dominatrix-caption strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.2;
}

.dominatrix-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.archetype-card {
  padding: 1.4rem;
  border: 1px solid var(--line-soft);
  border-top-color: rgba(199, 164, 106, 0.4);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(36, 25, 34, 0.58), rgba(20, 15, 21, 0.75));
}

.archetype-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.archetype-top img {
  width: 78px;
  height: 94px;
  object-fit: cover;
  object-position: 50% 8%;
  border: 1px solid rgba(199, 164, 106, 0.25);
  border-radius: 44px 44px 7px 7px;
}

.archetype-num {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 0.9;
  opacity: 0.5;
}

.archetype-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.5rem;
}

.archetype-card > p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.archetype-card ul {
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.archetype-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 0.75rem;
}

.archetype-card li:last-child {
  border-bottom: 0;
}

.archetype-card li span {
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-count {
  margin-left: auto;
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.char-grid--selection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.char-grid--selection .char-card {
  grid-column: auto;
}

.char-grid--selection .char-media {
  aspect-ratio: 4 / 5;
}

.scene-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
  gap: 1.2rem;
}

.scene-preview {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.3rem;
  border: 1px solid rgba(199, 164, 106, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(140, 40, 75, 0.16), transparent 55%),
    linear-gradient(145deg, #221821, #151016);
}

.scene-preview h3 {
  margin-bottom: 0.9rem;
  font-size: 1.65rem;
}

.scene-preview .preview-row {
  border-color: var(--line-soft);
}

.consent-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.consent-list article {
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-left: 1px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.014);
}

.consent-list span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consent-list h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.consent-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.range-controls {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.014);
}

.range-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.range-controls output {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.range-controls input[type="range"] {
  margin-bottom: 1.1rem;
}

.range-controls input[type="range"]:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .dominatrix-hero {
    width: min(100%, 560px);
    min-height: 540px;
    margin-inline: auto;
  }

  .scene-builder {
    grid-template-columns: 1fr;
  }

  .scene-preview {
    position: relative;
    top: 0;
  }
}

@media (max-width: 760px) {
  .dominatrix-hero {
    min-height: 430px;
  }

  .dominatrix-main {
    width: 74%;
  }

  .dominatrix-side {
    width: 46%;
    bottom: 5%;
  }

  .dominatrix-caption {
    width: 68%;
    padding: 0.8rem 0.9rem;
  }

  .archetype-grid {
    grid-template-columns: 1fr;
  }

  .quote-band .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .quote-band span {
    font-size: 0.75rem;
  }

  .char-grid--selection {
    display: flex;
    gap: 0.85rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .char-grid--selection .char-card {
    width: 82vw;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .filter-count {
    margin-left: 0.5rem;
  }

  .range-controls {
    padding: 1rem;
  }
}

/* --------------------------------------------------------------------------
   AI Femdom Chat page
   -------------------------------------------------------------------------- */

.femdom-hero::before {
  top: -18%;
  right: auto;
  left: 50%;
  width: min(90vw, 980px);
  height: min(90vw, 980px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(140, 40, 75, 0.24), transparent 66%);
}

.femdom-hero-head {
  max-width: 880px;
  margin: 0 auto clamp(2.4rem, 5vw, 4rem);
  text-align: center;
}

.femdom-hero-head .breadcrumbs {
  justify-content: center;
  margin-bottom: 1.6rem;
}

.femdom-hero-head .page-title {
  max-width: 880px;
  margin-inline: auto;
}

.femdom-hero-head .page-lede {
  max-width: 720px;
  margin-inline: auto;
}

.femdom-hero-actions {
  justify-content: center;
  margin-top: 1.9rem;
}

.femdom-meta {
  justify-content: center;
}

.femdom-stage {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 640px) minmax(150px, 220px);
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: center;
  justify-content: center;
}

.femdom-stage-portrait {
  position: relative;
  isolation: isolate;
  margin: 0;
  transform: translateY(1.4rem) rotate(-2.4deg);
}

.femdom-stage-portrait::before {
  position: absolute;
  inset: 8% -8% -8% 8%;
  z-index: -1;
  border: 1px solid rgba(199, 164, 106, 0.28);
  border-radius: 160px 160px 18px 18px;
  content: "";
}

.femdom-stage-portrait img {
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  border-radius: 160px 160px 18px 18px;
  box-shadow: var(--shadow-deep);
}

.femdom-stage-portrait figcaption {
  margin-top: 0.85rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.femdom-stage-chat {
  position: relative;
  box-shadow: 0 40px 90px -38px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.femdom-stage-chat::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  opacity: 0.6;
  transform: translateX(-50%);
}

.femdom-stage-chat .chat-body {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.femdom-stage-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(1.4rem);
}

.stage-note {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(23, 17, 24, 0.66);
  backdrop-filter: blur(8px);
}

.stage-note span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
}

.stage-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.femdom-hero-note {
  max-width: 640px;
  margin: 2.2rem auto 0;
  text-align: center;
}

/* Four-moment dynamics */
.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.dynamic-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.3rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(36, 25, 34, 0.95), rgba(17, 13, 20, 0.95));
}

.dynamic-card:nth-child(even) {
  margin-top: 2.1rem;
}

.dynamic-card::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--wine), transparent 75%);
  content: "";
}

.dynamic-number {
  display: block;
  margin-bottom: 1.5rem;
  color: rgba(199, 164, 106, 0.65);
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-style: italic;
  line-height: 1;
}

.dynamic-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.42rem;
}

.dynamic-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.68;
}

.dynamic-tag {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Character voice cards */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.voice-card {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.3s ease;
}

.voice-card:hover {
  border-color: rgba(199, 164, 106, 0.3);
}

.voice-card:nth-child(2),
.voice-card:nth-child(3) {
  margin-top: 1.3rem;
}

.voice-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.4rem;
}

.voice-content .char-eyebrow {
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.voice-content h3 {
  margin-bottom: 0.45rem;
  font-size: 1.6rem;
}

.voice-content p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.voice-content .char-cta {
  margin-top: auto;
  color: var(--rose-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: underline;
  text-decoration-color: rgba(214, 91, 135, 0.4);
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.voice-content .char-cta:hover {
  color: #fff;
}

/* Tone switcher */
.style-switcher {
  max-width: 980px;
  margin-inline: auto;
}

.style-tabs {
  justify-content: center;
  margin-bottom: 1.4rem;
}

.tab-panel[hidden] {
  display: none;
}

.style-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(13, 11, 16, 0.45);
}

.style-chat-copy h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.style-chat-copy p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.style-chat-copy .tag {
  display: inline-block;
  margin: 0.35rem 0.3rem 0 0;
}

.style-chat-layout .chat-window {
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.85);
}

/* Boundary toggles */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
}

.toggle-row:last-of-type {
  border-bottom: 0;
}

.relationship-box .section-footnote {
  margin: 0.9rem 0 0;
}

@media (max-width: 1120px) {
  .femdom-stage {
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  }

  .femdom-stage-notes {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transform: none;
  }

  .femdom-stage-portrait {
    transform: translateY(0) rotate(-2deg);
  }

  .dynamic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dynamic-card:nth-child(even) {
    margin-top: 1.4rem;
  }
}

@media (max-width: 980px) {
  .voice-card {
    grid-template-columns: 36% minmax(0, 1fr);
  }

  .style-chat-layout {
    grid-template-columns: 1fr;
  }

  .style-chat-copy {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .femdom-hero-head {
    text-align: left;
  }

  .femdom-hero-head .breadcrumbs,
  .femdom-meta {
    justify-content: flex-start;
  }

  .femdom-hero-actions {
    justify-content: flex-start;
  }

  .femdom-hero-head .page-title,
  .femdom-hero-head .page-lede {
    margin-inline: 0;
  }

  .femdom-stage {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .femdom-stage-portrait {
    width: 62%;
    max-width: 240px;
    margin-inline: auto;
    transform: none;
  }

  .femdom-stage-portrait::before {
    inset: 6% -7% -7% 7%;
  }

  .femdom-stage-notes {
    grid-template-columns: 1fr;
  }

  .stage-note {
    padding: 0.85rem 0.9rem;
  }

  .dynamic-grid {
    grid-template-columns: 1fr;
  }

  .dynamic-card,
  .dynamic-card:nth-child(even) {
    margin-top: 0;
  }

  .dynamic-number {
    margin-bottom: 0.8rem;
  }

  .voice-grid {
    display: flex;
    gap: 0.85rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .voice-card,
  .voice-card:nth-child(2),
  .voice-card:nth-child(3) {
    display: flex;
    width: 82vw;
    min-height: 0;
    flex: 0 0 auto;
    flex-direction: column;
    margin-top: 0;
    scroll-snap-align: start;
  }

  .voice-card img {
    height: 210px;
  }

  .voice-content {
    padding: 1.15rem;
  }

  .style-chat-copy {
    text-align: left;
  }

  .style-chat-layout {
    padding: 1rem;
  }

  .style-tabs {
    justify-content: flex-start;
  }

  .chat-window .chat-body {
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   Mistress Roleplay page
   -------------------------------------------------------------------------- */

.roleplay-hero {
  padding-bottom: clamp(2.6rem, 5vw, 4.4rem);
}

.roleplay-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.roleplay-copy .page-title {
  max-width: 700px;
}

.roleplay-copy .page-lede {
  max-width: 590px;
}

.scene-stack {
  position: relative;
  width: min(100%, 480px);
  height: clamp(420px, 44vw, 560px);
  margin-inline: auto;
}

.scene-stack-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 86%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.22);
  border-radius: 8px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}

.scene-stack-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-stack-secondary {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 46%;
  height: 56%;
  margin: 0;
  overflow: hidden;
  border: 6px solid var(--bg);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.scene-stack-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-slate {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  width: 86%;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(13, 11, 16, 0.88);
  backdrop-filter: blur(12px);
}

.scene-slate-index {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1;
}

.scene-slate div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.scene-slate strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
}

.scene-slate div span {
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scene-slate-mark {
  margin-left: auto;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.roleplay-hero-note {
  margin-top: 1.6rem;
}

/* Scene library */
.scene-list {
  border-top: 1px solid var(--line-soft);
}

.scene-row {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.scene-row:nth-child(even) .scene-row-media {
  order: 2;
}

.scene-row-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.scene-row-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.scene-row:hover .scene-row-media img {
  filter: saturate(1);
  transform: scale(1.03);
}

.scene-chapter {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 8, 12, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.scene-row-body h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
}

.scene-row-body > p {
  max-width: 620px;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.scene-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scene-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.scene-row-meta span + span::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(199, 164, 106, 0.6);
  content: "";
}

.scene-opening {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(214, 91, 135, 0.45);
  color: #d9c8d1 !important;
  font-family: var(--font-display);
  font-size: 1rem !important;
  font-style: italic;
}

.scene-opening span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted-deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Relationship types */
.relation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.relation-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(36, 25, 34, 0.8), rgba(16, 12, 18, 0.9));
}

.relation-mark {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  color: rgba(199, 164, 106, 0.28);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
}

.relation-card h3 {
  margin-bottom: 0.65rem;
  padding-right: 2rem;
  font-size: 1.55rem;
}

.relation-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.relation-note {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Scene blueprint */
.blueprint {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: stretch;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(13, 11, 16, 0.52);
}

.blueprint-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}

.blueprint-label {
  margin: 0 0 0.7rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blueprint-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.blueprint-option + .blueprint-option {
  margin-top: 0.5rem;
}

.blueprint-option > span:first-child {
  color: var(--muted-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
}

.blueprint-option strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.blueprint-option small {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.blueprint-option:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.blueprint-option.is-active {
  border-color: rgba(199, 164, 106, 0.42);
  background: rgba(140, 40, 75, 0.18);
}

.blueprint-option.is-active > span:first-child,
.blueprint-option.is-active small {
  color: var(--gold);
}

.blueprint-notes {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.42rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.rule-list li span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blueprint-preview {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: var(--card);
}

.blueprint-image {
  position: relative;
  min-height: 100%;
}

.blueprint-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blueprint-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 8, 12, 0.65));
  content: "";
}

.blueprint-scene-mark {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.blueprint-content {
  padding: 1.4rem;
}

.blueprint-tag {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blueprint-content h3 {
  margin-bottom: 0.55rem;
  font-size: 1.75rem;
}

.blueprint-content > p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.blueprint-acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blueprint-acts span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--rose-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blueprint-acts p {
  margin: 0;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.45;
}

/* Continuity */
.thread-window {
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.85);
}

.thread-context {
  margin-bottom: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--gold);
  background: rgba(199, 164, 106, 0.07);
  color: #d3c2ca;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
}

.thread-context span {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Boundaries */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
  border-top: 1px solid var(--line-soft);
}

.rule-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 0.9rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.rule-item > span {
  grid-row: span 2;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.1;
}

.rule-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.rule-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .scene-stack {
    height: 480px;
  }

  .roleplay-hero-grid {
    gap: 2rem;
  }
}

@media (max-width: 980px) {
  .roleplay-hero-grid {
    grid-template-columns: 1fr;
  }

  .scene-stack {
    width: min(100%, 440px);
    height: 440px;
  }

  .relation-grid {
    grid-template-columns: 1fr;
  }

  .blueprint {
    grid-template-columns: 1fr;
  }

  .blueprint-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .blueprint-group {
    grid-row: span 2;
  }

  .blueprint-notes {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .roleplay-hero-grid {
    gap: 2.4rem;
  }

  .scene-stack {
    height: 400px;
    width: min(100%, 360px);
  }

  .scene-slate {
    width: 94%;
    padding: 0.8rem 0.9rem;
  }

  .scene-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.3rem 0;
  }

  .scene-row:nth-child(even) .scene-row-media {
    order: 0;
  }

  .scene-row-media img {
    height: 200px;
  }

  .scene-row-body h3 {
    font-size: 1.65rem;
  }

  .blueprint {
    padding: 0.85rem;
  }

  .blueprint-controls {
    display: block;
  }

  .blueprint-group {
    margin-bottom: 1rem;
  }

  .blueprint-preview {
    grid-template-columns: 1fr;
  }

  .blueprint-image {
    min-height: 220px;
  }

  .blueprint-acts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .rule-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rule-item {
    padding: 1rem 0;
  }
}

/* --------------------------------------------------------------------------
   Virtual Mistress page
   -------------------------------------------------------------------------- */

.virtual-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: center;
}

.virtual-copy .page-title {
  max-width: 700px;
}

.virtual-copy .page-lede {
  max-width: 580px;
}

.dossier {
  position: relative;
  width: min(100%, 470px);
  height: clamp(430px, 42vw, 540px);
  margin-inline: auto;
}

.dossier::before {
  position: absolute;
  top: -12%;
  right: -8%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 40, 75, 0.28), transparent 68%);
  content: "";
  pointer-events: none;
}

.dossier-portrait {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 59%;
  height: 84%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.28);
  border-radius: 6px;
  box-shadow: 0 45px 80px -35px rgba(0, 0, 0, 0.9);
}

.dossier-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-portrait figcaption {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dossier-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 62%;
  padding: 1.35rem 1.3rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: linear-gradient(150deg, #eee5d8, #d9cbb8);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.75);
  color: #241820;
  transform: rotate(1.6deg);
}

.dossier-kicker {
  margin: 0 0 0.7rem;
  color: #7d674a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dossier-sheet h2 {
  margin: 0 0 0.15rem;
  color: #1a1017;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  line-height: 1;
}

.dossier-role {
  margin: 0 0 0.9rem;
  color: #6a5360;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.dossier-rows {
  border-top: 1px solid rgba(36, 24, 32, 0.18);
}

.dossier-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(36, 24, 32, 0.12);
}

.dossier-rows span {
  color: #7d674a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-rows strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.dossier-note {
  margin: 0.7rem 0 0;
  color: #7d674a;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}

/* Ongoing principles */
.ongoing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ongoing-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-top: 1px solid rgba(199, 164, 106, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.ongoing-number {
  display: block;
  margin-bottom: 1.8rem;
  color: rgba(199, 164, 106, 0.62);
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.ongoing-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.55rem;
}

.ongoing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.68;
}

/* Consistency panel */
.consistency-panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(155deg, #241922, #120d15);
}

.consistency-label {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.consistency-row {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.consistency-row span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consistency-row p {
  margin: 0;
  color: #e2d3dc;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.4;
}

.consistency-foot {
  margin: 0.9rem 0 0;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Continuity */
.continuity-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(199, 164, 106, 0.6), rgba(199, 164, 106, 0.08));
  content: "";
}

.timeline-item {
  position: relative;
  padding: 0 0 1.45rem;
}

.timeline-item::before {
  position: absolute;
  top: 0.32rem;
  left: -1.5rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg-soft);
  content: "";
}

.timeline-mark {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

.timeline-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.continuity-chat .chat-window {
  box-shadow: 0 35px 70px -32px rgba(0, 0, 0, 0.85);
}

@media (max-width: 1120px) {
  .virtual-hero-grid {
    gap: 2.2rem;
  }

  .dossier-sheet {
    width: 66%;
  }
}

@media (max-width: 980px) {
  .virtual-hero-grid {
    grid-template-columns: 1fr;
  }

  .dossier {
    width: min(100%, 480px);
    height: 500px;
  }

  .ongoing-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ongoing-card {
    padding: 1.2rem 0;
    border-top: 1px solid rgba(199, 164, 106, 0.28);
  }

  .ongoing-number {
    margin-bottom: 0.55rem;
    font-size: 1.4rem;
  }

  .continuity-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dossier {
    height: auto;
    width: 100%;
  }

  .dossier-portrait {
    position: relative;
    width: 66%;
    height: 300px;
  }

  .dossier-portrait img {
    object-position: 50% 18%;
  }

  .dossier-portrait figcaption {
    display: none;
  }

  .dossier-sheet {
    position: relative;
    width: 88%;
    margin: -2.2rem 0 0 auto;
    padding: 1.1rem 1rem 0.95rem;
    transform: rotate(1deg);
  }

  .dossier-sheet h2 {
    font-size: 1.6rem;
  }

  .dossier-rows div {
    padding: 0.34rem 0;
  }

  .dossier-rows strong {
    font-size: 0.8rem;
  }

  .dossier-role {
    font-size: 0.75rem;
  }

  .consistency-row p {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .dossier {
    height: auto;
  }

  .dossier-portrait {
    height: 270px;
  }

  .dossier-sheet {
    width: 88%;
  }

  .dossier-kicker {
    margin-bottom: 0.45rem;
  }
}

/* --------------------------------------------------------------------------
   Blog index
   -------------------------------------------------------------------------- */

.blog-hero {
  padding-bottom: clamp(2.4rem, 4.5vw, 3.8rem);
}

.blog-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: end;
  margin-top: 1.4rem;
}

.blog-hero-head .page-title {
  max-width: 820px;
  margin-bottom: 0;
}

.blog-hero-note {
  padding-bottom: 0.5rem;
}

.blog-hero-note p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.blog-hero-note span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-feature h2 {
  max-width: 540px;
}

.blog-wide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1a131a, #110d13);
}

.blog-wide-media {
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
}

.blog-wide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.blog-wide:hover .blog-wide-media img {
  transform: scale(1.025);
}

.blog-wide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
}

.blog-wide-content h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.blog-wide-content p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.blog-index-note {
  margin-top: 1.4rem;
  padding: 1.15rem 1.25rem;
  border-left: 2px solid rgba(199, 164, 106, 0.5);
  background: rgba(255, 255, 255, 0.018);
}

.blog-index-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.blog-index-note strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .blog-hero-head {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .blog-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-wide-media {
    width: 100%;
    min-height: 240px;
    aspect-ratio: auto;
  }
}

@media (max-width: 760px) {
  .blog-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-feature-media {
    width: 100%;
    min-height: 232px;
    aspect-ratio: auto;
  }

  .blog-feature-media img {
    object-position: 90% 40%;
  }

  .blog-feature-media::after {
    background: linear-gradient(0deg, #171118, transparent 45%);
  }

  .blog-feature-content {
    padding: 1.4rem;
  }

  .blog-feature h2 {
    font-size: 1.95rem;
  }

  .blog-wide-content {
    padding: 1.35rem;
  }

  .blog-wide-media {
    min-height: 220px;
  }
}

/* In-article referral block */
.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 2.2rem 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(199, 164, 106, 0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(140, 40, 75, 0.16), rgba(199, 164, 106, 0.04));
}

.article-cta p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.article-cta strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.article-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Article decision tools
   -------------------------------------------------------------------------- */

.style-guide {
  margin: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.style-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.style-guide-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.style-guide-row strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.style-guide-row small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  line-height: 1.4;
}

.style-guide-head {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.style-guide-head span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.style-guide-row p:last-child {
  padding-left: 1.1rem;
  border-left: 1px solid rgba(199, 164, 106, 0.2);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.8rem 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.checklist-item span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.8rem;
  line-height: 1.5;
}

.checklist-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .style-guide-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .style-guide-row p:last-child {
    padding-top: 0.55rem;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .style-guide-head {
    display: none;
  }

  .checklist {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   FAQ page
   -------------------------------------------------------------------------- */

.faq-hero {
  padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.faq-hero-head {
  max-width: 800px;
  margin-top: 1.4rem;
}

.faq-hero-head .page-title {
  margin-bottom: 1rem;
}

.faq-hero-meta {
  margin-top: 1.4rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-index {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 1px solid var(--line-soft);
}

.faq-index-label {
  margin: 0 0 0.7rem;
  color: var(--muted-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-index a {
  padding: 0.34rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-index a:hover,
.faq-index a:focus-visible {
  color: var(--gold);
}

.faq-category {
  margin-bottom: 2.6rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.faq-category:last-of-type {
  margin-bottom: 1.8rem;
}

.faq-category-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.faq-category-head span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}

.faq-category-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
}

.faq-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2.2rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(199, 164, 106, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(140, 40, 75, 0.16), rgba(199, 164, 106, 0.035));
}

.faq-end p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.faq-end .btn {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .faq-index {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    border-left: 0;
  }

  .faq-index-label {
    width: 100%;
    margin-bottom: 0.15rem;
  }

  .faq-index a {
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 0.75rem;
  }
}

@media (max-width: 760px) {
  .faq-category {
    margin-bottom: 2.1rem;
  }

  .faq-category-head h2 {
    font-size: 1.65rem;
  }

  .faq-end {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-end .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-hero {
  padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.legal-hero-head {
  max-width: 760px;
  margin-top: 1.3rem;
}

.legal-hero .legal-meta {
  margin: 1.3rem 0 0;
  padding: 0;
  border: 0;
}

@media (max-width: 760px) {
  .legal-hero-head .page-title {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about-hero {
  padding-bottom: clamp(2.6rem, 4.5vw, 4rem);
}

.about-copy .page-title {
  max-width: 680px;
}

.about-copy .page-lede {
  max-width: 600px;
}

.about-portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.25);
  border-radius: 260px 260px 12px 12px;
  box-shadow: 0 45px 80px -40px rgba(0, 0, 0, 0.9);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
}

.about-portrait::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(13, 11, 16, 0.35);
  content: "";
  pointer-events: none;
}

.about-portrait figcaption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  background: rgba(13, 11, 16, 0.72);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.disclosure-box h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.disclosure-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.disclosure-box code {
  color: var(--gold-bright);
  font-size: 0.9em;
  word-break: break-word;
}

.about-copy code {
  color: var(--gold-bright);
  font-size: 0.85em;
}

@media (max-width: 980px) {
  .about-portrait {
    width: min(100%, 460px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .about-portrait {
    width: min(100%, 360px);
    border-radius: 180px 180px 10px 10px;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Homepage hero — mobile composition
   Keeps the character portrait unobstructed by placing the dialogue preview
   beneath it instead of over the face.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .hero-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 0;
  }

  .hero-portrait {
    width: 78%;
    max-width: 300px;
    margin: 0 auto;
  }

  .chat-peek {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin: -2rem 0 0.4rem;
  }

  .floating-chips {
    display: none;
  }
}

@media (max-width: 430px) {
  .hero-portrait {
    width: 84%;
  }

  .chat-peek {
    margin-top: -1.4rem;
  }
}

/* Readable labels, balanced navigation and usable small-screen controls. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.brand-sub { font-size: .75rem; letter-spacing: .08em; }
.nav-list { gap: 1rem; }
.nav-link { font-size: .8125rem; letter-spacing: 0; min-height: 44px; display: inline-flex; align-items: center; }
.nav-toggle { width: 44px; height: 44px; flex-shrink: 0; }
.btn { white-space: normal; text-align: center; }
.char-cta, .filter-btn, .tab-btn, .choice-btn { min-height: 44px; }
.footer-links a { display: inline-block; padding-block: .35rem; }
.chat-peek, .character-label, .floating-chips { max-width: 100%; }
@media (max-width: 1180px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    margin: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 11, 16, 0.985);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    visibility: hidden;
  }

  .site-header.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-list {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.8rem 0 1.2rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link {
    display: block;
    padding: 0.95rem 0;
    font-size: 0.75rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-mobile-cta {
    display: block;
    padding: 1rem 0 0.2rem;
    border-bottom: 0 !important;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-actions {
    margin-left: auto;
  }


  .nav-link { display: flex; font-size: .875rem; }
  .nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
  .header-actions { margin-left: auto; }
  .header-actions > .btn { display: none; }
}
@media (max-width: 760px) {
  .brand-sub { font-size: .75rem; letter-spacing: .04em; }
  .brand { min-width: 0; gap: .5rem; }
  .header-inner { gap: .5rem; }
  .hero-home { padding-top: 2.5rem; }
  .hero-orbit { max-width: 100%; }
  .chat-peek { margin-top: 1rem; }
  .chat-peek .chat-message { font-size: .8125rem; }
  .btn-group > .btn { width: 100%; }
  .topbar-inner { flex-wrap: wrap; padding-block: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Portrait focal points retain faces in wide covers and small avatars. */
.profile-avatar, .chat-avatar, .char-media img { object-position: center 20%; }
.article-cover img, .blog-feature-media img, .blog-wide-media img, .blog-card-media img { object-position: center 20%; }
@media (max-width: 760px) {
  .hero-stage .floating-profile { position: relative; top: auto; left: auto; order: -1; align-self: center; margin-bottom: 1rem; }
}
/* Keep editorial cards independent of the source portrait's aspect ratio. */
.blog-feature-media img, .blog-wide-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog-feature-media, .blog-wide-media { position: relative; }
@media (max-width: 980px) {
  .blog-wide-media { min-height: 300px; aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .blog-feature-media { min-height: 260px; aspect-ratio: 4 / 3; }
}

/* Homepage hero contains only the featured portrait. */
.hero-stage--image-only { display: flex; align-items: center; justify-content: center; min-height: 0; padding-bottom: 0; }
.hero-stage--image-only .hero-portrait { margin: 0 auto; }
.hero-stage--image-only .hero-portrait::after { content: none; }

/* Compact article artwork stays within the reading column. */
.article-body .article-cover--inline, .article-body .article-illustration { width: 100%; max-width: 680px; margin: 0 auto 2rem; }
.article-body .article-cover--inline { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.article-body .article-cover--inline img { object-position: center; }
.article-illustration { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.article-illustration img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.article-illustration figcaption { padding: .8rem 1rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.article-byline { display: inline-flex; gap: .75rem; align-items: center; margin-top: 1.4rem; text-align: left; border-radius: var(--radius-sm); }
.article-byline > img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 35%; }
.article-byline > span { display: grid; gap: .15rem; }
.article-byline strong { color: var(--text); font-size: .875rem; }
.article-byline span span { color: var(--muted); font-size: .75rem; }
.author-bio { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 1.4rem; margin: 2.5rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); scroll-margin-top: calc(var(--header-h) + 24px); }
.author-bio > img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: center 35%; }
.article-body .author-bio h2 { margin: .2rem 0 .6rem; font-size: 1.7rem; }
.article-body .author-bio p { margin: 0 0 .75rem; font-size: .875rem; line-height: 1.7; }
.article-body .author-bio .author-kicker { color: var(--gold-bright); font-size: .75rem; }
.article-body .author-bio .author-note { color: var(--muted); font-size: .75rem; margin: 0; }
@media (max-width: 600px) {
  .author-bio { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .author-bio > img { width: 88px; height: 88px; }
}
