/*
 * Precision mysticism — the product layer.
 * The base sheet keeps legal/error surfaces stable; this file owns the home UI.
 */

:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --bg-deep: #09090a;
  --surface: #151517;
  --surface-2: #1b1b1e;
  --surface-raised: #202023;
  --text: #f3f0e8;
  --muted: #aaa69e;
  --faint: #88847c;
  --line: rgba(243, 240, 232, 0.12);
  --line-strong: rgba(243, 240, 232, 0.22);
  --gold: #d4a15b;
  --gold-soft: #e2bc82;
  --aurora: #d4a15b;
  --violet: #c08a46;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1240px;
  --radius: 1.4rem;
  --radius-small: 0.8rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0e8;
  --bg-deep: #e9e4da;
  --surface: #fbf9f4;
  --surface-2: #f0ece3;
  --surface-raised: #fffdf8;
  --text: #171719;
  --muted: #6d6a64;
  --faint: #918c83;
  --line: rgba(23, 23, 25, 0.12);
  --line-strong: rgba(23, 23, 25, 0.23);
  --gold: #9b6427;
  --gold-soft: #7d4d1e;
}

body {
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(243, 240, 232, 0.025) 50%, transparent calc(50% + 0.5px)),
    var(--bg);
}

html[data-theme="light"] body {
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(23, 23, 25, 0.035) 50%, transparent calc(50% + 0.5px)),
    var(--bg);
}

::selection {
  color: #171719;
  background: var(--gold);
}

h1,
h2 {
  letter-spacing: -0.045em;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.17em;
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(var(--max), calc(100% - 3rem));
  min-height: 5rem;
  border-bottom-color: var(--line);
}

.brand {
  flex: 0 0 auto;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.brand b {
  color: var(--gold);
  font-weight: 600;
}

.brand svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke-width: 1.2;
}

.site-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.trust span,
.instant-note span,
.privacy-control p > span {
  width: 0.42rem;
  height: 0.42rem;
  background: #74ad8e;
  border-radius: 50%;
  box-shadow: none;
}

.theme-toggle {
  display: inline-flex;
  min-width: 4.8rem;
  min-height: 2.65rem;
  padding: 0 0.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.hero {
  min-height: calc(100svh - 5rem);
  overflow: clip;
  border-bottom-color: var(--line);
  background:
    linear-gradient(rgba(243, 240, 232, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.032) 1px, transparent 1px),
    linear-gradient(135deg, rgba(212, 161, 91, 0.025), transparent 44%),
    var(--bg-deep);
  background-size: 5rem 5rem, 5rem 5rem, auto, auto;
}

html[data-theme="light"] .hero {
  background:
    linear-gradient(rgba(23, 23, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 25, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(155, 100, 39, 0.035), transparent 44%),
    var(--bg-deep);
  background-size: 5rem 5rem, 5rem 5rem, auto, auto;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -9rem;
  width: 28rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem transparent,
    0 0 0 calc(4rem + 1px) var(--line),
    0 0 0 8rem transparent,
    0 0 0 calc(8rem + 1px) var(--line);
  opacity: 0.42;
}

.hero__canvas {
  opacity: 0.09;
  filter: grayscale(1) sepia(0.25);
}

.hero__glow {
  display: none;
}

.hero__content {
  display: grid;
  width: min(var(--max), calc(100% - 3rem));
  min-height: calc(100svh - 5rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5.2rem) 0;
  grid-template-columns: minmax(0, 0.82fr) minmax(32rem, 1.18fr);
  align-items: center;
  gap: clamp(3.5rem, 8vw, 8.5rem);
  text-align: left;
}

.hero__intro {
  position: relative;
}

.hero__intro::before {
  position: absolute;
  top: -2.6rem;
  left: 0;
  width: 3.5rem;
  height: 1px;
  content: "";
  background: var(--gold);
}

.hero__intro h1 {
  max-width: 9.7ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.5rem, 6.3vw, 6.25rem);
}

.hero__lede {
  max-width: 33rem;
  margin: 1.5rem 0 2.4rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.7;
}

html[data-theme="light"] .hero__lede {
  color: var(--muted);
}

.proof-strip {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.proof-strip div {
  padding: 1rem 0.9rem 0 0;
  border-right: 1px solid var(--line);
}

.proof-strip div + div {
  padding-left: 0.9rem;
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip dt {
  margin-bottom: 0.25rem;
  color: var(--faint);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.proof-strip dd {
  margin: 0;
  color: var(--text);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.hero__instrument {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow:
    0 2.8rem 6rem rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.035);
}

.hero__instrument::before {
  position: absolute;
  top: -1px;
  left: 1.8rem;
  width: 5rem;
  height: 1px;
  content: "";
  background: var(--gold);
}

html[data-theme="light"] .hero__instrument {
  background: rgba(251, 249, 244, 0.94);
  box-shadow:
    0 2rem 5rem rgba(45, 35, 21, 0.11),
    inset 0 1px rgba(255, 255, 255, 0.7);
}

.instrument-head {
  display: flex;
  min-height: 2.5rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--faint);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instrument-head p {
  margin: 0;
}

.instrument-head__label {
  margin-bottom: 0.18rem !important;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 650;
}

.instrument-head > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.instrument-head > span::before {
  width: 0.38rem;
  height: 0.38rem;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.birth-form {
  width: 100%;
  margin: 0;
}

.date-fields--instrument {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.95rem;
  background: var(--bg-deep);
}

html[data-theme="light"] .date-fields--instrument {
  background: var(--surface-2);
}

.date-fields--instrument label {
  min-width: 0;
  padding-top: 0.72rem;
  border-right: 1px solid var(--line);
}

.date-fields--instrument label:last-child {
  border-right: 0;
}

.date-fields--instrument label > span {
  margin: 0;
  padding: 0 1rem;
  color: var(--faint);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.date-fields--instrument input,
.date-fields--instrument select {
  height: 3.15rem;
  padding: 0 1rem;
  color: var(--text);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}

html[data-theme="light"] .date-fields--instrument input,
html[data-theme="light"] .date-fields--instrument select {
  color: var(--text);
  background: transparent;
}

.date-fields--instrument input:hover,
.date-fields--instrument select:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}

.date-fields--instrument input:focus,
.date-fields--instrument select:focus {
  outline: 0;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

.instrument-status {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.instrument-status .instant-note {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.5rem;
  color: var(--faint);
  font-size: 0.68rem;
}

.instrument-status button,
.text-action {
  min-height: 2.75rem;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 0.68rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.instrument-status button:hover,
.text-action:hover {
  color: var(--gold);
}

.examples {
  margin: 0.75rem 0 0;
  justify-content: flex-start;
  color: var(--faint);
  font-size: 0.65rem;
}

.examples button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  color: var(--muted);
  border-color: var(--line);
  border-radius: 0.6rem;
  background: transparent;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}

html[data-theme="light"] .examples button {
  background: transparent;
}

.examples button:hover {
  color: var(--text);
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}

.shared-context {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
  font-size: 0.78rem;
}

.reveal {
  margin-top: 0.8rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.result-dossier {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.result-orbit {
  width: clamp(8rem, 14vw, 11rem);
  margin: 0;
}

.result-orbit__ring {
  border-color: var(--line-strong);
}

.result-orbit__ring::before,
.result-orbit__ring::after {
  border-color: var(--line);
}

.result-orbit__ring--inner {
  border-color: color-mix(in srgb, var(--gold) 58%, transparent);
}

.result-number {
  color: var(--text);
  font-size: clamp(5rem, 12vw, 8.5rem);
  opacity: 0.1;
  filter: blur(4px);
  text-shadow: none;
}

html[data-theme="light"] .result-number {
  color: var(--text);
}

.result-number.is-ignited {
  opacity: 1;
  filter: none;
  text-shadow: none;
}

.result-copy {
  min-width: 0;
}

.result-kicker {
  margin: 0 0 0.25rem;
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.master-tag {
  margin: 0 0 0.65rem;
  color: var(--gold);
  border: 0;
  border-radius: 0;
  font-size: 0.6rem;
}

.result-title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.keyword-row {
  margin-top: 0.75rem;
  justify-content: flex-start;
  gap: 0.35rem 0.8rem;
}

.keyword-row span {
  padding: 0;
  color: var(--muted);
  border: 0;
  font-size: 0.7rem;
}

.keyword-row span + span::before {
  margin-right: 0.8rem;
  color: var(--gold);
  content: "·";
}

.result-actions {
  display: flex;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.button {
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.74rem;
  font-weight: 650;
}

.button--primary {
  color: #171719;
  background: var(--gold);
  box-shadow: none;
}

.button--primary:hover {
  color: #171719;
  background: var(--gold-soft);
}

.button--ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: transparent;
}

.button--ghost:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}

.calculation-disclosure {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.calculation-disclosure summary {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  list-style: none;
}

.calculation-disclosure summary::-webkit-details-marker {
  display: none;
}

.calculation-disclosure summary::after {
  color: var(--gold);
  content: "+";
  font-size: 1rem;
}

.calculation-disclosure[open] summary::after {
  content: "−";
}

.reduction {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  gap: 0;
  border: 1px solid var(--line);
}

.reduction-tile {
  min-height: 4.2rem;
  padding: 0.7rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.reduction-tile:nth-child(3) {
  border-right: 0;
}

html[data-theme="light"] .reduction-tile {
  background: transparent;
}

.reduction-tile__label {
  color: var(--faint);
}

.reduction-tile__equation {
  color: var(--muted);
}

.reduction-sum {
  margin: 0;
  padding: 0.65rem 0.7rem;
  color: var(--gold);
  border-top: 1px solid var(--line);
  text-align: left;
}

.reveal > .text-action {
  display: block;
  margin: 0.35rem 0 0 auto;
}

.product-rail {
  display: grid;
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.product-rail a {
  display: grid;
  min-height: 7rem;
  padding: 1.4rem 1.6rem;
  grid-template-columns: 2rem 1fr;
  align-content: center;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background 180ms ease;
}

.product-rail a:last-child {
  border-right: 0;
}

.product-rail a:hover {
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}

.product-rail span {
  grid-row: 1 / 3;
  color: var(--gold);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.product-rail strong {
  color: var(--text);
  font: 400 1.08rem/1.2 var(--serif);
}

.product-rail small {
  margin-top: 0.28rem;
  color: var(--faint);
  font-size: 0.68rem;
}

.meaning,
.method,
.compatibility,
.explorer,
.faq {
  width: min(var(--max), calc(100% - 3rem));
  padding: clamp(5.5rem, 9vw, 8rem) 0;
}

.meaning {
  scroll-margin-top: 5rem;
}

.dossier-heading {
  display: grid;
  grid-template-columns: minmax(11rem, 0.36fr) minmax(0, 0.64fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.reading-monogram {
  color: var(--gold);
  font: 400 clamp(9rem, 18vw, 15rem) / 0.78 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.1em;
}

.dossier-heading .section-heading {
  max-width: 46rem;
  margin: 0;
}

.dossier-heading .section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

html[data-theme="light"] .meaning-block p,
html[data-theme="light"] .meaning-block li,
html[data-theme="light"] .explorer-panel__essence {
  color: var(--muted);
}

.reading-nav {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  margin-top: clamp(3rem, 6vw, 5rem);
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.reading-nav::-webkit-scrollbar {
  display: none;
}

.reading-nav a {
  position: relative;
  min-width: max-content;
  padding: 1rem clamp(0.9rem, 2vw, 1.5rem);
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 650;
  text-decoration: none;
}

.reading-nav a:first-child {
  color: var(--text);
}

.reading-nav a:first-child::after {
  position: absolute;
  right: 1rem;
  bottom: -1px;
  left: 1rem;
  height: 2px;
  content: "";
  background: var(--gold);
}

.reading-nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 5%, transparent);
}

.meaning-grid {
  border-top: 0;
  border-left: 1px solid var(--line);
}

.meaning-block {
  min-height: 20rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-color: var(--line);
  background: var(--surface);
  scroll-margin-top: 5rem;
}

.meaning-block--feature {
  display: grid;
  min-height: 17rem;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 0.65fr);
  align-content: center;
  column-gap: clamp(2rem, 6vw, 6rem);
}

.meaning-block--feature .meaning-block__index {
  grid-column: 1 / -1;
}

.meaning-block--feature h3 {
  align-self: start;
}

.meaning-block--feature > p:last-child {
  margin: 0;
  font-size: 1.03rem;
}

.meaning-block__index {
  margin-bottom: 3rem;
  color: var(--gold) !important;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.meaning-block h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.meaning-block p,
.meaning-block li {
  color: var(--muted);
}

.meaning-block li::marker {
  color: var(--gold);
}

.year-cycle {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  scroll-margin-top: 4rem;
}

.year-cycle__heading {
  display: grid;
  margin-bottom: 2rem;
  grid-template-columns: 1fr minmax(18rem, 0.55fr);
  align-items: end;
  gap: 3rem;
}

.year-cycle__heading h3 {
  margin: 0;
  font: 400 clamp(2.25rem, 5vw, 4rem) / 1.05 var(--serif);
  letter-spacing: -0.04em;
}

.year-cycle__heading > p {
  margin: 0;
  color: var(--muted);
}

.year-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.year-card {
  min-height: 25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.year-card[data-current="true"] {
  position: relative;
  background: color-mix(in srgb, var(--gold) 7%, var(--surface));
}

.year-card[data-current="true"]::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.year-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.year-card__number {
  display: block;
  margin: 2.1rem 0 0.25rem;
  color: var(--gold);
  font: 400 4.5rem/0.9 var(--serif);
}

.year-card h4 {
  margin: 0 0 1rem;
  color: var(--text);
  font: 400 1.6rem/1.15 var(--serif);
}

.year-card > p {
  color: var(--muted);
  font-size: 0.85rem;
}

.year-card dl {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.year-card dl div {
  display: grid;
  padding: 0.65rem 0;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}

.year-card dt {
  color: var(--faint);
}

.year-card dd {
  margin: 0;
  color: var(--text);
}

.year-card blockquote {
  margin: 1.3rem 0 0;
  color: var(--gold-soft);
  font: italic 400 0.85rem/1.55 var(--serif);
}

.share-studio {
  display: grid;
  padding: clamp(3rem, 7vw, 5.5rem);
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 4rem;
}

.share-preview {
  position: relative;
  display: grid;
  aspect-ratio: 1.91 / 1;
  min-height: 14rem;
  padding: 1.5rem;
  overflow: hidden;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(243, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.035) 1px, transparent 1px),
    var(--bg-deep);
  background-size: 2.5rem 2.5rem, 2.5rem 2.5rem, auto;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.25);
}

.share-preview::after {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 12rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem transparent, 0 0 0 calc(2rem + 1px) var(--line);
}

.share-preview__mark {
  align-self: start;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.share-preview > div:nth-child(2) {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
}

.share-preview > div:nth-child(2) p {
  color: var(--faint);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.share-preview strong {
  color: var(--text);
  font: 400 clamp(5rem, 10vw, 8rem) / 0.8 var(--serif);
}

.share-preview footer {
  position: absolute;
  right: 1.5rem;
  bottom: 1.2rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.share-preview footer span:last-child {
  color: var(--faint);
}

.share-studio__copy h3 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font: 400 clamp(2rem, 4vw, 3.3rem) / 1.05 var(--serif);
  letter-spacing: -0.04em;
}

.share-studio__copy > p:not(.eyebrow) {
  max-width: 31rem;
  color: var(--muted);
}

.share-actions {
  margin-top: 1.5rem;
}

.privacy-control {
  display: flex;
  min-height: 4.5rem;
  padding: 0 1.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.privacy-control p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.5rem;
}

.privacy-control p > span {
  display: inline-block;
  flex: 0 0 auto;
}

.privacy-control strong {
  color: var(--text);
}

.compatibility {
  display: grid;
  padding-top: clamp(6rem, 10vw, 9rem);
  grid-template-columns: minmax(0, 0.78fr) minmax(31rem, 1.22fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 3rem;
}

.compatibility__intro {
  position: sticky;
  top: 6rem;
}

.compatibility__intro h2 {
  max-width: 9ch;
  font-size: clamp(3rem, 6vw, 5rem);
}

.compatibility__intro > p:last-of-type {
  max-width: 31rem;
  color: var(--muted);
}

.bond-preview {
  display: grid;
  max-width: 25rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}

.bond-preview > div {
  display: grid;
  min-height: 7rem;
  padding: 1rem;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.bond-preview small {
  color: var(--faint);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bond-preview strong {
  color: var(--gold);
  font: 400 2.5rem/1 var(--serif);
}

.bond-preview > span {
  color: var(--faint);
}

.compatibility__tool {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-color: var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2.2rem 5rem rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .compatibility__tool {
  background: var(--surface);
}

.compatibility__tool-head {
  display: flex;
  margin-bottom: 1.4rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.compatibility__tool-head > div {
  display: grid;
  gap: 0.15rem;
}

.compatibility__tool-head > div span,
.compatibility__tool-head > label > span {
  color: var(--faint);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compatibility__tool-head > div strong {
  color: var(--text);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.compatibility__tool-head > label {
  display: grid;
  gap: 0.3rem;
}

.compatibility__tool-head select {
  min-height: 2.75rem;
  padding: 0 2rem 0 0.7rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg-deep);
  font-size: 0.7rem;
}

html[data-theme="light"] .compatibility__tool-head select {
  background: var(--surface-2);
}

.compat-form__label {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.compatibility__tool .date-fields {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.compatibility__tool .date-fields label {
  padding-top: 0.65rem;
  border-right: 1px solid var(--line);
}

.compatibility__tool .date-fields label:last-child {
  border-right: 0;
}

.compatibility__tool .date-fields label > span {
  margin: 0;
  padding: 0 0.85rem;
}

.compatibility__tool .date-fields input,
.compatibility__tool .date-fields select {
  height: 3rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0;
  background: var(--bg-deep);
  box-shadow: none;
}

html[data-theme="light"] .compatibility__tool .date-fields input,
html[data-theme="light"] .compatibility__tool .date-fields select {
  color: var(--text);
  background: var(--surface-2);
}

.compatibility__result {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top-color: var(--line);
}

.compatibility__result h3 {
  color: var(--text) !important;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.compatibility__numbers {
  margin: 0.35rem 0 1.5rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compatibility__lead {
  color: var(--muted);
  font-size: 0.95rem;
}

.compatibility__dossier {
  display: grid;
  margin-top: 1.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.compatibility__dossier section {
  min-height: 11rem;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compatibility__dossier span {
  color: var(--gold);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.compatibility__dossier h4 {
  margin: 1rem 0 0.5rem;
  color: var(--text);
  font: 400 1.25rem/1.2 var(--serif);
}

.compatibility__dossier p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.compatibility__result .fine-print {
  margin-top: 1.2rem;
}

.compatibility__share {
  margin-top: 1rem;
}

.method {
  border-top-color: var(--line);
  scroll-margin-top: 3rem;
}

.method .section-heading--split {
  align-items: end;
}

.method__steps {
  border-top-color: var(--line);
  border-left: 1px solid var(--line);
}

.method__steps li {
  min-height: 16rem;
  padding: 1.6rem;
  border-right-color: var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.method__steps li > span {
  margin-bottom: 4rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.method__steps h3 {
  font-size: 1.65rem;
}

.calculation-live {
  margin-top: 1rem;
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="light"] .calculation-live {
  background: var(--surface);
}

.calculation-live ol {
  color: var(--muted);
}

.explorer {
  border-top-color: var(--line);
  scroll-margin-top: 3rem;
}

.number-chips {
  grid-template-columns: repeat(12, minmax(3.25rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.number-chips button {
  min-height: 4.4rem;
  aspect-ratio: auto;
  color: var(--muted);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.number-chips button:hover {
  color: var(--text);
  border-color: var(--line);
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
  transform: none;
}

.number-chips button[aria-pressed="true"] {
  position: relative;
  color: var(--text);
  border-color: var(--line);
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  box-shadow: none;
}

.number-chips button[aria-pressed="true"]::after {
  position: absolute;
  right: 0.8rem;
  bottom: -1px;
  left: 0.8rem;
  height: 2px;
  content: "";
  background: var(--gold);
}

.explorer-panel {
  min-height: 24rem;
  margin-top: 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-color: var(--line);
  border-top: 0;
  border-radius: 0;
  background: var(--surface);
}

html[data-theme="light"] .explorer-panel {
  background: var(--surface);
}

.explorer-panel__essence {
  color: var(--muted);
}

.explorer-panel__columns h4 {
  color: var(--gold);
}

.faq {
  border-top-color: var(--line);
}

.faq details,
.explorer-static details {
  border-top-color: var(--line);
}

.faq summary {
  min-height: 4.5rem;
}

.site-footer {
  border-top-color: var(--line);
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero__content {
    grid-template-columns: minmax(0, 0.78fr) minmax(29rem, 1.22fr);
    gap: 2.5rem;
  }

  .hero__intro h1 {
    font-size: clamp(3.3rem, 7vw, 5rem);
  }

  .dossier-heading {
    grid-template-columns: minmax(8rem, 0.28fr) minmax(0, 0.72fr);
  }

  .compatibility {
    grid-template-columns: 1fr;
  }

  .compatibility__intro {
    position: static;
  }

  .bond-preview {
    max-width: 100%;
  }

  .compatibility__tool {
    width: 100%;
  }

  .share-studio {
    padding: 3rem;
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 4.5rem;
  }

  .hero {
    min-height: calc(100svh - 4.5rem);
  }

  .hero::after {
    opacity: 0.2;
  }

  .hero__content {
    min-height: calc(100svh - 4.5rem);
    padding: 2.4rem 0 3rem;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2rem;
  }

  .hero__intro::before {
    display: none;
  }

  .hero__intro h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 10vw, 4.8rem);
  }

  .hero__lede {
    max-width: 38rem;
    margin-bottom: 1.5rem;
  }

  .hero__instrument {
    width: 100%;
  }

  .product-rail {
    grid-template-columns: 1fr;
  }

  .product-rail a {
    min-height: 5.6rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dossier-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .reading-monogram {
    font-size: 8rem;
  }

  .year-cycle__heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .year-cards {
    grid-template-columns: 1fr;
  }

  .year-card {
    min-height: 0;
  }

  .share-studio {
    grid-template-columns: 1fr;
  }

  .method__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-chips {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  .meaning,
  .method,
  .compatibility,
  .explorer,
  .faq,
  .site-footer,
  .product-rail {
    width: min(100% - 2rem, var(--max));
  }

  .site-header {
    gap: 0.7rem;
  }

  .brand span {
    font-size: 0.82rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .trust {
    display: none;
  }

  .theme-toggle {
    min-width: 2.75rem;
    width: 2.75rem;
    padding: 0;
  }

  .theme-toggle span {
    display: none;
  }

  .hero__content {
    width: min(100% - 2rem, var(--max));
    padding: 1.7rem 0 2.2rem;
    align-content: start;
    gap: 1.25rem;
  }

  .hero__intro h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 12vw, 3.6rem);
    line-height: 0.98;
  }

  .hero__intro .eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.58rem;
  }

  .hero__lede {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .proof-strip {
    display: none;
  }

  .hero__instrument {
    padding: 0.85rem;
    border-radius: 1rem;
  }

  .hero__instrument::before {
    left: 1rem;
  }

  .instrument-head {
    min-height: 2rem;
    margin-bottom: 0.65rem;
  }

  .instrument-head__label {
    font-size: 0.62rem;
  }

  .date-fields--instrument {
    grid-template-columns: minmax(0, 1.35fr) minmax(4.2rem, 0.66fr) minmax(5.7rem, 0.9fr);
    gap: 0;
  }

  .date-fields--instrument label > span {
    padding: 0 0.62rem;
    font-size: 0.52rem;
  }

  .date-fields--instrument input,
  .date-fields--instrument select {
    height: 2.75rem;
    padding: 0 0.62rem;
    font-size: 0.85rem;
  }

  .instrument-status {
    min-height: 2rem;
  }

  .instrument-status .instant-note,
  .instrument-status button {
    font-size: 0.6rem;
  }

  .examples {
    margin-top: 0.4rem;
  }

  .examples > span {
    margin-right: auto;
  }

  .result-dossier {
    grid-template-columns: 6.8rem minmax(0, 1fr);
    align-items: center;
  }

  .result-orbit {
    width: 6.8rem;
  }

  .result-number {
    font-size: 5.3rem;
  }

  .result-title {
    font-size: 2rem;
  }

  .result-actions .button {
    width: 100%;
  }

  .reduction-tile {
    padding: 0.5rem 0.35rem;
  }

  .reading-nav {
    top: 0;
  }

  .meaning-block--feature {
    display: block;
  }

  .meaning-block--feature .meaning-block__index {
    margin-bottom: 3rem;
  }

  .share-studio {
    padding: 1.2rem;
  }

  .share-preview {
    min-height: 11rem;
    padding: 1rem;
  }

  .share-preview footer {
    right: 1rem;
    bottom: 0.8rem;
    left: 1rem;
  }

  .share-preview footer span:last-child {
    display: none;
  }

  .privacy-control {
    padding: 0.8rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .compatibility__tool {
    padding: 0.85rem;
  }

  .compatibility__tool-head {
    align-items: end;
  }

  .compatibility__tool .date-fields {
    grid-template-columns: minmax(0, 1.35fr) minmax(4.2rem, 0.66fr) minmax(5.7rem, 0.9fr);
    gap: 0;
  }

  .compatibility__tool .date-fields label > span {
    padding: 0 0.55rem;
    font-size: 0.52rem;
  }

  .compatibility__tool .date-fields input,
  .compatibility__tool .date-fields select {
    padding: 0 0.55rem;
    font-size: 0.82rem;
  }

  .compatibility__dossier {
    grid-template-columns: 1fr;
  }

  .compatibility__dossier section {
    min-height: 0;
  }

  .method__steps {
    grid-template-columns: 1fr;
  }

  .method__steps li {
    min-height: 0;
  }

  .method__steps li > span {
    margin-bottom: 1.5rem;
  }

  .number-chips {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 365px) {
  .brand span {
    max-width: none;
  }

  .hero__content {
    padding-top: 1.2rem;
    gap: 0.9rem;
  }

  .hero__intro h1 {
    font-size: 2.25rem;
  }

  .hero__lede {
    font-size: 0.78rem;
  }

  .instrument-head {
    margin-bottom: 0.4rem;
  }

  .instrument-status .instant-note {
    max-width: 11rem;
    line-height: 1.2;
  }

  .examples {
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__canvas {
    display: none;
  }
}
