/* Sixfold Mirror — Stylesheet
   Aesthetic: Ancient × Refined. Parchment cream, deep ink, gold hairline. */

:root {
  --bg:           #FAF7F2;  /* parchment */
  --bg-soft:      #F2EDE3;
  --bg-deeper:    #EAE2D2;
  --ink:          #1F1B16;  /* deep ink */
  --ink-soft:     #4A4338;
  --ink-faint:    #8A7E6E;
  --hairline:     #D4CCB8;
  --gold:         #B8941F;
  --gold-soft:    #C9A227;
  --error:        #8B2C1F;
  --warn:         #B5641B;

  --m-jade:       #4F8F5F;
  --m-silver:     #B8B8B8;
  --m-amethyst:   #7B5BA6;
  --m-cinnabar:   #D04428;
  --m-gold:       #C9A227;
  --m-obsidian:   #1A1A1A;

  --serif-display: "Cinzel", "Cormorant Garamond", Garamond, serif;
  --serif-head:    "Cormorant Garamond", "EB Garamond", Garamond, serif;
  --serif-body:    "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;

  --max-content: 720px;
  --max-wide:    1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hidden { display: none !important; }

a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ── Header / Nav ── */

.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.2rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand-link { text-decoration: none; display: flex; align-items: center; }

.brand-name {
  font-family: var(--serif-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .logo-img { height: 44px; }
}

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

.nav-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.subscribe-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.25s;
}

.subscribe-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* Language toggle — removed for English-only Phase 1 launch.
   Multi-language rollout planned for Phase 3+ (post-launch).
   See /work/sixfold/strategy.md for language roadmap. */

/* ── Hairlines ── */

.hairline,
.hairline-gold {
  height: 1px;
  margin: var(--space-md) auto;
}
.hairline      { background: var(--hairline); width: 80px; }
.hairline-gold { background: var(--gold); width: 60px; }

/* ── Page-Level Typography ── */

h1, h2, h3, h4 { font-family: var(--serif-head); font-weight: 400; line-height: 1.25; }

.page-title {
  font-family: var(--serif-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin: var(--space-lg) 0 var(--space-sm);
}

.page-subtitle {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-xs);
}

/* ── Hero (Home) ── */

.hero {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.hero-title {
  font-family: var(--serif-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--ink);
  line-height: 1.1;
}

.hero-tagline {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.btn-primary,
.btn-secondary {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  display: inline-block;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ── Mirrors Strip (Home) ── */

.mirrors-strip {
  padding: var(--space-lg) 0;
  background: var(--bg-soft);
  text-align: center;
}

.mirrors-strip-grid {
  max-width: var(--max-wide);
  margin: var(--space-md) auto 0;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}

.mirror-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: var(--space-sm);
  transition: transform 0.25s;
}

.mirror-strip-item:hover {
  transform: translateY(-2px);
}

.mirror-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(0,0,0,0.08);
}

.mirror-strip-item .mirror-strip-name {
  font-family: var(--serif-head);
  font-size: 1rem;
  color: var(--ink);
}

.mirror-strip-item .mirror-strip-archetype {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

/* ── 12 Reflections Grid ── */

.reflections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin: var(--space-md) auto;
  max-width: var(--max-wide);
}

.reflection-card {
  background: var(--bg);
  padding: var(--space-md);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  transition: background 0.25s;
  position: relative;
  border-left: 4px solid;
  min-height: 200px;
}

.reflection-card:hover {
  background: var(--bg-soft);
}

/* Reflection symbol image at top of card */
.reflection-card-symbol {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto var(--space-sm);
  display: block;
}

.reflection-card-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.reflection-card-name {
  font-family: var(--serif-head);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 500;
}

.reflection-card-jp {
  font-family: var(--serif-body);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.reflection-card-archetype {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.reflection-card-tagline {
  font-family: var(--serif-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}

.reflection-card-arrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
}

/* Yin / Yang polarity badge on reflection cards */
.reflection-card-polarity {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid;
}

.reflection-card-polarity .polarity-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.reflection-card.polarity-yang .reflection-card-polarity {
  background: rgba(201, 162, 39, 0.08);
  border-color: rgba(184, 148, 31, 0.4);
  color: var(--gold);
}

.reflection-card.polarity-yin .reflection-card-polarity {
  background: rgba(31, 27, 22, 0.05);
  border-color: rgba(74, 67, 56, 0.3);
  color: var(--ink-soft);
}

.reflection-card.polarity-yin .polarity-icon {
  color: #5a5a78;
}

/* ── 6 Mirrors Grid ── */

.mirrors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin: var(--space-md) auto;
  max-width: var(--max-wide);
}

.mirror-card {
  background: var(--bg);
  padding: var(--space-lg) var(--space-md);
  text-decoration: none;
  text-align: center;
  transition: background 0.25s;
  border-top: 4px solid;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mirror-card:hover {
  background: var(--bg-soft);
}

.mirror-card .mirror-dot {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-sm);
}

.mirror-card-name {
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.mirror-card-jp {
  font-family: var(--serif-body);
  font-size: 0.9rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.mirror-card-archetype {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-xs);
}

/* Yang/Yin forms shown subtly at bottom of mirror card */
.mirror-card-forms {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hairline);
  width: 100%;
}

.form-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.78;
  transition: opacity 0.25s;
}

.mirror-card:hover .form-thumb {
  opacity: 1;
}

.form-thumb img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.form-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Mirror detail page — Yang/Yin form blocks now linked, with embedded symbols */
.polarity-block.form-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, transform 0.25s;
  display: block;
}

.polarity-block.form-link:hover {
  background: var(--bg-deeper);
  transform: translateY(-2px);
}

.polarity-block-symbol {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin: 0 auto var(--space-sm);
  object-fit: contain;
}

.form-link-cta {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  font-family: var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Deep Page (Reflection / Mirror) ── */

.deep-hero {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--hairline);
}

.deep-hero .breadcrumb {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
}

.deep-hero .breadcrumb a {
  color: var(--ink-faint);
}

.deep-hero .breadcrumb a:hover {
  color: var(--gold);
}

.deep-hero .breadcrumb .sep {
  margin: 0 0.5rem;
  color: var(--hairline);
}

.deep-hero .deep-dot {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Sigil/symbol image at top of deep page */
.deep-sigil {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-md);
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .deep-sigil { width: 140px; height: 140px; }
}

/* Hero logo on home (replaces hero-illustration) */
.hero-logo {
  max-width: 480px;
  width: 80%;
  height: auto;
  margin: 0 auto var(--space-md);
  display: block;
}

/* Hero illustration on About page */
.hero-art {
  max-width: 420px;
  margin: 0 auto var(--space-md);
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
}

/* Visually hidden (for SEO h1 when logo is shown) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mirrors grid card with SVG image instead of plain dot */
.mirror-card-sigil {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-sm);
  object-fit: contain;
}

/* Phase wheel (phases.html) */
.phase-wheel-wrap {
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
}

.phase-wheel-img {
  width: 100%;
  height: auto;
  display: block;
}

.deep-hero .deep-name {
  font-family: var(--serif-display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.deep-hero .deep-jp {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.deep-hero .deep-archetype {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

.deep-hero .deep-tagline {
  font-family: var(--serif-head);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

.deep-content {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.deep-section {
  margin: var(--space-lg) 0;
}

.deep-section-title {
  font-family: var(--serif-head);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  text-align: left;
}

.deep-section p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.trait-list {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
}

.trait-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  border-bottom: 1px solid var(--hairline);
}

.trait-list li:last-child { border-bottom: none; }

.trait-list li::before {
  content: "·";
  position: absolute;
  left: 0.5rem;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1.4;
}

.trait-list.shadow-list li::before {
  content: "✕";
  font-size: 0.75rem;
  color: var(--error);
  top: 0.7rem;
  left: 0.5rem;
}

/* Compatibility grid on reflection detail page */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: var(--space-md);
}

.compat-cell {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-left: 4px solid;
  padding: 1rem;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.25s, transform 0.25s;
}

.compat-cell:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.compat-cell-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.compat-cell-symbol {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.compat-cell-name {
  font-family: var(--serif-head);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

.compat-cell-name .self-tag {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 0.4rem;
  vertical-align: middle;
}

.compat-cell-arch {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.compat-cell-badge {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  align-self: flex-start;
  border: 1px solid;
}

.compat-cell-badge .badge-icon {
  display: inline-block;
  margin-right: 0.2rem;
  font-size: 0.85rem;
}

.compat-cell.type-mirroring .compat-cell-badge {
  color: var(--gold);
  border-color: rgba(184, 148, 31, 0.4);
  background: rgba(201, 162, 39, 0.06);
}

.compat-cell.type-reflecting .compat-cell-badge {
  color: #4a72a8;
  border-color: rgba(74, 114, 168, 0.4);
  background: rgba(74, 114, 168, 0.05);
}

.compat-cell.type-clashing .compat-cell-badge {
  color: var(--error);
  border-color: rgba(139, 44, 31, 0.4);
  background: rgba(139, 44, 31, 0.05);
}

.compat-cell-note {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .compat-grid { grid-template-columns: 1fr; }
}

/* ── Compatibility 4-axis grid (12 cells per reflection) ── */

.compat-grid-intro {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: var(--space-sm) 0 var(--space-md);
}
.compat-grid-intro a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

.compat-axis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
  width: 100%;
}

.cax-cell {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--hairline);
  border-radius: 4px;
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
  min-width: 0;
  overflow: hidden;
}
.cax-cell:hover {
  border-color: var(--gold);
  background: var(--bg-soft);
  transform: translateY(-1px);
}
.cax-cell.is-self {
  background: var(--bg-soft);
  border-style: dashed;
  pointer-events: none;
}

.cax-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.cax-symbol {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.cax-name-block { min-width: 0; }

.cax-name {
  font-family: var(--serif-head);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.cax-pol {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.cax-headline {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  line-height: 1.3;
}

.cax-pair-badge {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-faint);
  white-space: nowrap;
}

.cax-cell.pair-mirroring .cax-pair-badge  { background: rgba(79, 143, 95, 0.12);  color: var(--m-jade); }
.cax-cell.pair-reflecting .cax-pair-badge { background: rgba(201, 162, 39, 0.12); color: var(--gold); }
.cax-cell.pair-clashing .cax-pair-badge   { background: rgba(139, 44, 31, 0.12);  color: var(--error); }

.cax-axes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hairline);
  min-width: 0;
}

.cax-axis {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-size: 0.85rem;
}

.cax-axis-key {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-faint);
  width: 1.1rem;
  flex-shrink: 0;
}

.cax-axis .filled { color: var(--gold); }
.cax-axis .empty  { color: var(--hairline); }

@media (max-width: 900px) {
  .compat-axis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .compat-axis-grid { grid-template-columns: 1fr; }
  .cax-cell { padding: 0.85rem; }
  .cax-head { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0.6rem; }
  .cax-symbol { width: 40px; height: 40px; }
  .cax-name { font-size: 1rem; }
  /* On SP a single-column grid gives plenty of room — switch back to compact 4-col axes */
  .cax-axes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .cax-axis { flex-direction: column; gap: 0.2rem; font-size: 0.7rem; }
  .cax-axis-key { width: auto; }
}

/* Trait cards (16personalities-style detail blocks) */
.trait-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.trait-card {
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0 0.6rem 1.2rem;
}

.shadow-cards .trait-card {
  border-left-color: var(--error);
}

.trait-card-title {
  font-family: var(--serif-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.trait-card-body {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* Multi-paragraph deep sections */
.deep-section p + p {
  margin-top: 1rem;
}

/* Famous examples block */
.examples-block {
  background: var(--bg-soft);
  padding: var(--space-md);
  border-left: 3px solid var(--gold);
  margin: var(--space-md) 0;
}

.examples-block .example-item {
  padding: 0.4rem 0;
}

.examples-block .example-name {
  font-family: var(--serif-head);
  font-weight: 500;
  font-size: 1.05rem;
}

.examples-block .example-meta {
  font-family: var(--serif-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Polarity dual block (mirror page) */
.polarity-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.polarity-block {
  padding: var(--space-md);
  background: var(--bg-soft);
  border-top: 3px solid;
}

.polarity-block.yang { border-top-color: var(--gold); }
.polarity-block.yin  { border-top-color: var(--ink); }

.polarity-block-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.polarity-block-title {
  font-family: var(--serif-head);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* Inline CTA */

.inline-cta {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  margin: var(--space-lg) 0;
  border-radius: 2px;
}

.inline-cta h3 {
  font-family: var(--serif-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: var(--space-xs);
}

.inline-cta p {
  font-family: var(--serif-head);
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.85);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.inline-cta a {
  color: var(--bg);
  border: 1px solid var(--gold);
  padding: 0.7rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  border-radius: 2px;
  transition: all 0.25s;
}

.inline-cta a:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ── Form Page (Reading / Compat) ── */

.tool-page {
  padding: var(--space-md) 0 var(--space-xl);
}

.mode-tabs {
  text-align: center;
  margin: var(--space-md) 0 var(--space-md);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tab {
  background: none;
  border: none;
  color: var(--ink-faint);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.tab:hover { color: var(--ink-soft); }
.tab.active { color: var(--ink); border-bottom-color: var(--gold); }

.tab-divider { color: var(--hairline); margin: 0 0.5rem; user-select: none; }

.form-section { margin: var(--space-lg) 0; text-align: center; }

.form-prompt {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}

.reading-form { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }

.compat-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 360px;
}

.input-row { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }

.input-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

input[type="text"][inputmode="numeric"] {
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--ink);
  border-radius: 2px;
  width: 280px;
  text-align: center;
  transition: border-color 0.25s, background 0.25s;
}

.compat-form input[type="text"][inputmode="numeric"] { width: 100%; }

input[type="text"][inputmode="numeric"]::placeholder {
  color: var(--ink-faint);
  opacity: 0.45;
  letter-spacing: 0.18em;
}

input[type="text"][inputmode="numeric"]:focus { outline: none; border-color: var(--gold); background: #fff; }
input[type="text"][inputmode="numeric"].invalid { border-color: var(--error); }
input[type="text"][inputmode="numeric"].valid { border-color: var(--m-jade); }

.input-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: 100%; }
.compat-form .input-wrap { align-items: stretch; }

.input-preview {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-height: 1.4em;
  transition: color 0.2s;
}

.input-preview.error {
  color: var(--error);
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.input-preview.valid { color: var(--m-jade); }

/* ── Saved birthdate chips ── */
.saved-chips {
  width: 100%;
  margin-top: 0.3rem;
}
.saved-chips:empty { display: none; }

.chips-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
  text-align: center;
}
.compat-form .chips-label { text-align: left; }

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.compat-form .chips-row { justify-content: flex-start; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem 0.35rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--serif-head);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}
.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--bg-soft);
}
.chip-text { line-height: 1; pointer-events: none; }

.chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
  font-size: 0.95rem;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.chip-remove:hover {
  background: var(--error);
  color: var(--bg);
}

.input-notes {
  background: var(--bg-soft);
  border-left: 2px solid var(--gold);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) auto;
  max-width: var(--max-content);
  border-radius: 2px;
}

.notes-title {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

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

.notes-list li {
  font-family: var(--serif-head);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.notes-list li::before {
  content: "·";
  position: absolute;
  left: 0.4rem;
  color: var(--gold);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.notes-list code {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.95em;
  background: var(--bg);
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.notes-toggle { display: none; }

@media (max-width: 640px) {
  .input-notes .notes-extra { display: none; }
  .input-notes.expanded .notes-extra { display: list-item; }

  .notes-toggle {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.35rem 0.9rem;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
  }
  .notes-toggle:hover { border-color: var(--gold); color: var(--gold); }
}

.reveal-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 1rem 2.5rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s;
}

.reveal-btn:hover { background: var(--bg); color: var(--ink); }
.reveal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Reading Result ── */

.result-section { padding: var(--space-md) 0 var(--space-lg); animation: fadeIn 0.6s ease-out; max-width: var(--max-content); margin: 0 auto; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.result-hero { text-align: center; padding: var(--space-md) 0; }

.result-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.result-signature {
  font-family: var(--serif-head);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.result-signature .mirror-name { font-weight: 500; }

.mirror-color-dot {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.4em;
  border: 1px solid rgba(0,0,0,0.1);
}

.result-archetype {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.result-ganzhi {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: var(--space-sm);
}

.result-card { border-top: 1px solid var(--hairline); padding: var(--space-md) 0; }

.card-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.card-title { font-family: var(--serif-head); font-size: 1.4rem; font-weight: 500; margin-bottom: 0.4rem; }
.card-subtitle { font-family: var(--serif-head); font-style: italic; color: var(--ink-soft); margin-bottom: 0.8rem; font-size: 1rem; }
.card-body { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; }
.card-body p + p { margin-top: 0.8rem; }

.veil-warning {
  background: rgba(139, 44, 31, 0.06);
  border-left: 3px solid var(--error);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-family: var(--serif-head);
  font-style: italic;
  color: var(--error);
}

.veil-warning strong {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--error);
}

.pairs-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); margin-top: var(--space-sm); }

.pair-item { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.4rem 0; }

.pair-type {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  min-width: 80px;
}

.pair-mirror { font-family: var(--serif-head); font-size: 1rem; }

.daily-light { text-align: center; margin: var(--space-md) 0; font-family: var(--serif-head); font-style: italic; color: var(--ink-soft); }
.daily-light .stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 0.1em; }

.verdict-card { text-align: center; padding: var(--space-md) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin: var(--space-md) 0; }

.verdict-stars { font-size: 1.8rem; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.4rem; }
.verdict-stars .empty { color: var(--hairline); }

.verdict-label { font-family: var(--serif-head); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.4rem; }
.verdict-body { color: var(--ink-soft); font-size: 1rem; }

.layer-row { display: flex; gap: var(--space-sm); align-items: baseline; padding: var(--space-sm) 0; border-bottom: 1px solid var(--hairline); }
.layer-row:last-child { border-bottom: none; }

.layer-num { font-family: var(--serif-display); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--gold); min-width: 70px; }

.layer-content { flex: 1; }

.layer-name { font-family: var(--serif-head); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.3rem; }
.layer-desc { font-size: 0.95rem; color: var(--ink-soft); font-family: var(--serif-head); font-style: italic; }

.outlook-table { width: 100%; border-collapse: collapse; margin-top: var(--space-sm); font-family: var(--serif-body); font-size: 0.95rem; }

.outlook-table th, .outlook-table td { padding: 0.6rem 0.5rem; text-align: left; border-bottom: 1px solid var(--hairline); }

.outlook-table th { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); }

.outlook-table .double-veil { background: rgba(139, 44, 31, 0.05); color: var(--error); }
.outlook-table .double-veil td { font-style: italic; }

.compat-persons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin: var(--space-md) 0; text-align: center; }

.person-card { padding: var(--space-sm); }

.person-label { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.4rem; }
.person-signature { font-family: var(--serif-head); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.3rem; line-height: 1.3; }
.person-phase { font-family: var(--serif-head); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); }
.person-phase.veil { color: var(--error); }

.tongbian-row { margin-top: 0.6rem; }
.tongbian-label { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.tongbian-name { font-family: var(--serif-head); font-size: 1rem; font-weight: 500; color: var(--gold); }

/* ── Four-Axis Compatibility Grid ── */

.axis-section { padding: var(--space-md) var(--space-md); }

.axis-intro {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0.6rem 0 var(--space-md);
  max-width: 640px;
}

.axis-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  max-width: 720px;
}

.axis-card {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: var(--space-md);
  background: var(--bg);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "title title"
    "stars label"
    "headline headline"
    "body body";
  gap: 0.4rem 0.8rem;
  align-items: baseline;
}

.axis-card .axis-title    { grid-area: title; }
.axis-card .axis-stars    { grid-area: stars; }
.axis-card .axis-label    { grid-area: label; align-self: center; }
.axis-card .axis-headline { grid-area: headline; }
.axis-card .axis-body     { grid-area: body; }

.axis-card.axis-high { border-color: var(--gold); background: rgba(201, 162, 39, 0.04); }
.axis-card.axis-low  { border-color: var(--error); background: rgba(139, 44, 31, 0.04); }

.axis-title {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.axis-title-jp {
  font-family: var(--serif-head);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--ink-faint);
  opacity: 0.7;
}

.axis-stars {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin: 0 0 0.3rem;
  line-height: 1;
}
.axis-stars .filled { color: var(--gold); }
.axis-stars .empty  { color: var(--hairline); }

.axis-card.axis-low .axis-stars .filled { color: var(--error); }

.axis-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}

.axis-headline {
  font-family: var(--serif-head);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0.3rem 0 0;
  line-height: 1.3;
}

.axis-body {
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0.3rem 0 0;
}

@media (max-width: 540px) {
  .axis-card {
    padding: 1rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "stars"
      "label"
      "headline"
      "body";
    gap: 0.3rem;
  }
  .axis-card .axis-label { align-self: start; }
  .axis-headline { font-size: 1.15rem; }
  .axis-body { font-size: 0.95rem; }
}

/* ── About ── */

.about {
  padding: var(--space-xl) 0;
  background: var(--bg-soft);
  text-align: center;
}

.about-tagline {
  font-family: var(--serif-head);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  margin: var(--space-md) 0;
  font-style: italic;
}

.about-body {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: var(--space-md) auto 0;
  max-width: 540px;
  line-height: 1.8;
}

/* ── CTA Section ── */

.cta {
  padding: var(--space-xl) 0;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
}

.cta-title {
  font-family: var(--serif-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--bg);
}

.cta-body {
  font-family: var(--serif-head);
  font-size: 1.1rem;
  color: rgba(250, 247, 242, 0.85);
  max-width: 480px;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
}

.cta-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--gold-soft);
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: all 0.25s;
}

.cta-link:hover {
  background: var(--gold-soft);
  color: var(--ink);
  border-color: var(--gold-soft);
}

/* ── Footer ── */

.site-footer {
  padding: var(--space-md) 0 var(--space-lg);
  text-align: center;
  background: var(--bg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin: var(--space-sm) auto;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  max-width: 100%;
}

.footer-nav a { color: var(--ink-faint); }
.footer-nav a:hover { color: var(--gold); }

.disclaimer {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 480px;
  margin: var(--space-sm) auto;
  line-height: 1.6;
}

.copyright {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .mirrors-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .header-inner { flex-wrap: wrap; gap: 0.6rem 1rem; }
  .primary-nav { gap: 1rem; order: 3; flex-basis: 100%; justify-content: center; padding-top: 0.4rem; border-top: 1px solid var(--hairline); }
  .subscribe-btn { padding: 0.5rem 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* reflections-grid keeps 2 columns on SP — card width simply narrows */
  .reflection-card { padding: var(--space-sm); min-height: 0; }
  .reflection-card-symbol { max-width: 110px; }
  .reflection-card-name { font-size: 1.1rem; }
  .reflection-card-archetype { font-size: 0.85rem; }
  .reflection-card-tagline { font-size: 0.85rem; }
  .reflection-card-jp { display: none; }
  .mirrors-grid { grid-template-columns: 1fr; }
  .mirrors-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .compat-persons { grid-template-columns: 1fr; gap: var(--space-sm); }
  .layer-row { flex-direction: column; gap: 0.3rem; }
  .layer-num { min-width: 0; }
  .polarity-pair { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   Two Doors home redesign (2026-07)
   Hero doors, orbit dots, mirror sheen, sticky CTA, tease cards,
   split-card interaction on The Mirrors hub.
   ══════════════════════════════════════════════════════════════ */

/* ── Hero: headline ── */
.hero-doors { padding-bottom: var(--space-lg); }

.hero-logo-sm { max-width: 120px; margin-bottom: var(--space-sm); }

/* ── Hero carousel: rotating reflections ── */
.hero-carousel { margin-bottom: var(--space-sm); }

.hero-carousel-stage {
  position: relative;
  width: clamp(200px, 30vw, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.hc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(9px);
  transition: opacity 1.4s ease, transform 1.4s ease, filter 1.4s ease;
  will-change: opacity, transform, filter;
}
.hc-img.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}
.hc-img.is-leaving {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(3px);
}

.hero-carousel-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: opacity 0.5s ease;
}
.hero-carousel-caption.fading { opacity: 0; }
.hc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--gold));
  flex: none;
  transition: background 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hc-img, .hero-carousel-caption, .hc-dot { transition: none; }
}

.hero-headline {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: 0.045em;
  line-height: 1.28;
  margin: 0.4rem 0 0.6rem;
}
.hero-headline em {
  font-family: var(--serif-head);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero-sub {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 1.02rem;
  margin-bottom: var(--space-sm);
}

/* ── Orbit dots: the six mirrors, breathing in an arc ── */
.orbit-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin: 0.8rem 0 0.4rem;
  height: 34px;
}
.orbit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--gold));
  opacity: 0.65;
  animation: orbit-breathe 7s ease-in-out infinite;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.orbit-dot:hover { opacity: 1; transform: scale(1.7); animation-play-state: paused; }
/* gentle arc */
.orbit-dot:nth-child(1) { margin-top: 14px; }
.orbit-dot:nth-child(2) { margin-top: 6px;  animation-delay: 1.1s; }
.orbit-dot:nth-child(3) { margin-top: 1px;  animation-delay: 2.2s; }
.orbit-dot:nth-child(4) { margin-top: 1px;  animation-delay: 3.3s; }
.orbit-dot:nth-child(5) { margin-top: 6px;  animation-delay: 4.4s; }
.orbit-dot:nth-child(6) { margin-top: 14px; animation-delay: 5.5s; }

@keyframes orbit-breathe {
  0%, 100% { transform: translateY(0);    opacity: 0.5; }
  50%      { transform: translateY(-6px); opacity: 0.95; }
}

/* ── The Two Doors ── */
.doors {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--space-md);
  align-items: stretch;
  max-width: 880px;
  margin: var(--space-md) auto 0;
  padding: 0 var(--space-md);
}

.door-divider {
  background: linear-gradient(180deg, transparent, var(--gold-soft) 30%, var(--gold-soft) 70%, transparent);
  opacity: 0.55;
}

.door {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.5);
  padding: 1.7rem 1.5rem 1.3rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.door:hover,
.door:focus-within {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -22px rgba(31, 27, 22, 0.35);
}
/* mirror sheen following the pointer */
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 20%),
              rgba(201, 162, 39, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.door:hover::after,
.door:focus-within::after { opacity: 1; }

.door-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.door-title {
  font-family: var(--serif-head);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0.35rem 0 1.1rem;
}

/* Door inputs must out-specify the generic numeric-input rule
   (input[type="text"][inputmode="numeric"], specificity 0,2,1). */
.doors input[type="text"][inputmode="numeric"] {
  display: block;
  width: 100%;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.55rem 0.2rem;
  transition: border-color 0.25s ease;
}
.doors input[type="text"][inputmode="numeric"]::placeholder {
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.doors input[type="text"][inputmode="numeric"]:focus {
  outline: none;
  background: transparent;
  border-bottom-color: var(--gold);
}
.doors input[type="text"][inputmode="numeric"].valid {
  border-color: transparent;
  border-bottom-color: var(--gold-soft);
}

.door-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.door-pair input[type="text"][inputmode="numeric"] {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.door-go {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.door-go:disabled { opacity: 0.3; cursor: default; }
.door-go:not(:disabled):hover { background: var(--gold); border-color: var(--gold); }

.door-hint {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-faint);
  min-height: 1.3em;
  transition: color 0.25s ease;
}
.door-hint.live { color: var(--gold); }

/* ── Zodiac hook line ── */
.hero-hook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: var(--space-md);
  padding: 0 var(--space-md);
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-hook::before,
.hero-hook::after {
  content: "";
  height: 1px;
  width: clamp(28px, 8vw, 72px);
  background: var(--hairline);
  flex: none;
}

/* ── Private readings tease ── */
.tease {
  padding: var(--space-xl) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.tease-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-md);
  max-width: 820px;
  margin: var(--space-md) auto 0;
}
.tease-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold-soft);
  padding: 2rem 1.6rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tease-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(31, 27, 22, 0.3);
}
.tease-kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.tease-title {
  font-family: var(--serif-head);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0.4rem 0 0.6rem;
}
.tease-desc { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }
.tease-price {
  font-family: var(--serif-display);
  font-size: 1.7rem;
  color: var(--gold);
  margin: 0.9rem 0 1.1rem;
}
.tease-note { margin-top: var(--space-md); color: var(--ink-faint); font-size: 0.92rem; }

/* ── Sticky mobile CTA ── */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--hairline);
  transform: translateY(105%);
  transition: transform 0.35s ease;
}
.sticky-cta.visible { transform: none; }
.sticky-cta .btn-primary { display: block; width: 100%; text-align: center; }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
}

/* ── The Mirrors hub: split-card ── */
.mirror-card-head { display: block; color: inherit; }
a.form-thumb { color: inherit; }

.split-card .mirror-card-forms { position: relative; }
.split-card .mirror-card-forms::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.split-card .form-thumb {
  transition: transform 0.35s ease;
}
.split-card:hover .mirror-card-forms::after { opacity: 1; }
.split-card:hover .form-thumb:first-child { transform: translateX(-6px); }
.split-card:hover .form-thumb:last-child  { transform: translateX(6px); }
.split-card .form-thumb:hover .form-label { color: var(--gold); }

/* ── Cycle card (Phases link on the hub) ── */
.cycle-card {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--gold-soft);
  background: var(--bg-soft);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.cycle-card:hover { border-color: var(--gold-soft); transform: translateX(3px); }
.cycle-card-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  flex: none;
}
.cycle-card-title { font-family: var(--serif-head); font-size: 1.12rem; }
.cycle-card-arrow { margin-left: auto; color: var(--gold); }

/* ── Responsive: doors stack on mobile ── */
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; gap: var(--space-sm); }
  .door-divider { display: none; }
  .door { padding: 1.4rem 1.2rem 1.1rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .orbit-dot { animation: none; }
  .door, .tease-card, .cycle-card, .split-card .form-thumb, .sticky-cta { transition: none; }
}

/* ══════════════════════════════════════════════════════════════
   About — celestial scrollytelling (2026-07)
   Night-sky mode: fixed canvas chart behind scrolling chapters.
   ══════════════════════════════════════════════════════════════ */

.sky-page {
  background: #0B101C;
  color: #E8E3D6;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.sky-flow { position: relative; z-index: 1; }

/* ── Prologue ── */
.sky-hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--space-md);
}
.sky-kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.sky-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  color: #F4EFE2;
  margin: 0.7rem 0 0.9rem;
  text-shadow: 0 0 34px rgba(201, 162, 39, 0.25);
}
.sky-lede {
  font-family: var(--serif-head);
  font-style: italic;
  font-size: 1.15rem;
  color: #B9B2A0;
  line-height: 1.8;
}
.sky-scroll-hint {
  margin-top: 3.2rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.65);
  animation: sky-hint 2.6s ease-in-out infinite;
}
@keyframes sky-hint {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ── Chapters ── */
.sky-chapter {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12vh var(--space-md);
}

.sky-panel {
  max-width: 640px;
  background: rgba(9, 13, 23, 0.62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(201, 162, 39, 0.22);
  padding: 2.6rem 2.8rem;
  line-height: 1.85;
}
.sky-panel p { margin-bottom: 1rem; color: #DAD4C4; }
.sky-panel p:last-child { margin-bottom: 0; }
.sky-panel strong { color: #F0EADA; }
.sky-panel em { color: #CFC8B4; }

.sky-chapter-num {
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
  margin-bottom: 0.3rem;
}
.sky-h2 {
  font-family: var(--serif-head);
  font-weight: 500;
  font-size: 1.7rem;
  color: #F4EFE2;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.sky-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  columns: 2;
  column-gap: 2rem;
}
.sky-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.14);
  font-size: 1.02rem;
  break-inside: avoid;
}

.sky-hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4), transparent);
  margin: 1.8rem 0;
}

/* polarity pair */
.sky-polarity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 1.4rem 0;
}
.sky-polarity-block {
  border: 1px solid rgba(201, 162, 39, 0.18);
  background: rgba(255, 255, 255, 0.025);
  padding: 1.1rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.sky-polarity-block p { margin: 0; }
.sky-polarity-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem !important;
}

/* footnote */
.sky-footnote {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: #A9A392;
}
.sky-footnote summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.75);
}
.sky-footnote p { margin-top: 0.7rem; color: #A9A392; }

/* ── CTA ── */
.sky-cta { padding-bottom: 16vh; }
.sky-panel-cta { text-align: center; }
.sky-cta-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}
.sky-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: #E8E3D6;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sky-btn:hover { background: rgba(201, 162, 39, 0.14); color: #F4EFE2; }
.sky-btn-gold {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #0B101C;
}
.sky-btn-gold:hover { background: #D9B23A; color: #0B101C; }
.sky-cta-sub { color: #B9B2A0; font-size: 0.98rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .sky-panel { padding: 1.8rem 1.4rem; }
  .sky-polarity { grid-template-columns: 1fr; }
  .sky-list { columns: 1; }
  .sky-chapter { min-height: 78vh; padding: 9vh var(--space-sm); }
}

/* Wide screens: chapters keep left, the chart breathes on the right.
   The concluding CTA re-centres — the sphere has stilled into the mirror disc. */
@media (min-width: 980px) {
  .sky-hero {
    align-items: flex-start;
    text-align: left;
    padding-left: 8vw;
  }
  .sky-chapter { justify-content: flex-start; }
  .sky-chapter .sky-panel { margin-left: 6vw; max-width: 560px; }
  .sky-cta { justify-content: center; }
  .sky-cta .sky-panel { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-scroll-hint { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   Shared ornaments & motion — cream pages (2026-07)
   Scroll-reveal, gilt corners, ceremony shimmer, gold dust,
   nav & button micro-interactions. About (sky-page) is excluded.
   ══════════════════════════════════════════════════════════════ */

/* ── scroll-reveal (classes applied from ornaments.js only) ── */
.rv {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition: opacity 0.85s ease, transform 0.85s ease, filter 0.85s ease;
  will-change: opacity, transform;
}
.rv-in {
  opacity: 1;
  transform: none;
  filter: none;
}
/* compat person cards approach from either side — two mirrors meeting */
.compat-persons .person-card.rv { transform: translateX(-26px); }
.compat-persons .person-card.rv + .person-card.rv { transform: translateX(26px); }
.compat-persons .person-card.rv-in,
.compat-persons .person-card.rv-in + .person-card.rv-in { transform: none; }

/* ── gilt corners (engraved-atlas language, daylight ground) ── */
.gilt { position: relative; }
.gilt::before,
.gilt::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(184, 148, 31, 0.5);
  border-style: solid;
  pointer-events: none;
}
.gilt::before { top: 9px;    left: 9px;   border-width: 1px 0 0 1px; }
.gilt::after  { bottom: 9px; right: 9px;  border-width: 0 1px 1px 0; }

/* ── result ceremony: halo bloom ──
   No glare sweep — the mirror itself wakes: a soft light breathes once
   behind the artwork while a thin gold ring ripples outward and dissolves. */
.mirror-halo { position: relative; display: inline-block; }
.mirror-halo::before,
.mirror-halo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  #result.ceremony .mirror-halo::before {
    width: 108%;
    height: 108%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0) 70%);
    animation: halo-glow 2.6s ease 0.15s both;
  }
  #result.ceremony .mirror-halo::after {
    width: 94%;
    height: 94%;
    border: 1px solid rgba(201, 162, 39, 0.55);
    animation: halo-ring 2.1s cubic-bezier(0.2, 0.6, 0.3, 1) 0.4s both;
  }
  /* the second mirror of a pair blooms a breath later */
  #result.ceremony .result-duo .mirror-halo:last-of-type::before { animation-delay: 0.33s; }
  #result.ceremony .result-duo .mirror-halo:last-of-type::after  { animation-delay: 0.58s; }
}
@keyframes halo-glow {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22); }
}
@keyframes halo-ring {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.55); }
  22%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.6); }
}

/* ── gold dust motes ── */
.gold-dust {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── nav micro-interaction: gold underline grows from centre ── */
.primary-nav .nav-link { position: relative; }
.primary-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  transition: left 0.28s ease, right 0.28s ease;
}
.primary-nav .nav-link:hover::after { left: 0; right: 0; }

/* ── buttons: quiet lift ── */
.btn-primary, .btn-secondary, .reveal-btn, .subscribe-btn, .door-go {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary:hover, .reveal-btn:not(:disabled):hover,
.subscribe-btn:hover, .door-go:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(31, 27, 22, 0.5);
}

/* ── mirror sigils float when courted ── */
.mirror-card-sigil { transition: transform 0.4s ease; }
.mirror-card-head:hover .mirror-card-sigil { transform: translateY(-5px); }

/* ── reduced motion: everything appears, nothing moves ── */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  #result.ceremony .result-hero::before { animation: none; }
  .gold-dust { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   Reflection artwork features (2026-07)
   Reading: wheel of twelve around the title.
   Compat: two mirrors meet (o x o), faces changing in turn.
   Results: the actual reflection artwork crowns the reading.
   ══════════════════════════════════════════════════════════════ */

/* ── reading: the reflection wheel ── */
.reflection-wheel {
  --wheel-r: clamp(118px, 24vw, 195px);
  --wheel-img: clamp(44px, 9vw, 64px);
  position: relative;
  width: calc(var(--wheel-r) * 2 + var(--wheel-img) + 16px);
  height: calc(var(--wheel-r) * 2 + var(--wheel-img) + 16px);
  margin: 0 auto var(--space-sm);
}
.wheel-ring { position: absolute; inset: 0; }
.wheel-spoke {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--wheel-img);
  height: var(--wheel-img);
  margin: calc(var(--wheel-img) / -2) 0 0 calc(var(--wheel-img) / -2);
}
.wheel-counter { width: 100%; height: 100%; }
.wheel-counter img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 6px 14px rgba(31, 27, 22, 0.18));
}
.wheel-center {
  position: absolute;
  inset: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.wheel-center .page-title {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  margin: 0 0 0.5rem;
}
.wheel-center .page-subtitle { font-size: 0.95rem; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .wheel-ring   { animation: wheel-spin 180s linear infinite; }
  .wheel-counter { animation: wheel-unspin 180s linear infinite; }
}
@keyframes wheel-spin   { to { transform: rotate(360deg); } }
@keyframes wheel-unspin { to { transform: rotate(-360deg); } }

/* ── compat: two mirrors meet ── */
.compat-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.2rem);
  margin: var(--space-sm) 0 var(--space-md);
}
.duo-slot {
  position: relative;
  width: clamp(104px, 17vw, 150px);
  aspect-ratio: 1;
}
.duo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.07);
  filter: blur(7px);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}
.duo-slot img.is-active { opacity: 1; transform: none; filter: none; }
.duo-x {
  font-family: var(--serif-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
}

/* ── results: reflection artwork in the hero ── */
.result-mirror-img {
  display: block;
  width: clamp(150px, 24vw, 210px);
  height: auto;
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 14px 30px rgba(31, 27, 22, 0.20));
}
.result-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 1.6rem);
  margin-bottom: 0.9rem;
}
.result-duo img {
  width: clamp(110px, 17vw, 155px);
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(31, 27, 22, 0.20));
}
.result-duo .duo-x { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

/* the artwork settles into focus with the ceremony */
#result.ceremony .result-mirror-img,
#result.ceremony .result-duo img {
  animation: mirror-arrive 1.15s ease both;
}
#result.ceremony .result-duo img:last-of-type { animation-delay: 0.18s; }
@keyframes mirror-arrive {
  from { opacity: 0; transform: scale(1.08); filter: blur(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #result.ceremony .result-mirror-img,
  #result.ceremony .result-duo img { animation: none; }
}
