/* ═══════════════════════════════════════════════════════════════
   The Twelve Bhavas — Vellu Khanna
   Celestial & dark. Plain CSS, no build step.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted variable, latin subset) ─────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --night:          #0A0E27;
  --night-deep:     #060818;
  --surface:        #141A3D;
  --surface-raised: #1D2450;
  --gold:           #E0B252;
  --gold-bright:    #F5D48A;
  --starlight:      #E8E6F0;
  --starlight-dim:  #9B98B3;
  --rose:           #C77B8B;

  --line: rgba(224, 178, 82, 0.22);
  --line-soft: rgba(232, 230, 240, 0.10);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--night);
  color: var(--starlight);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

/* ── Focus & skip link ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--night);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ── Layout helpers ─────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(4.5rem, 11vw, 8.5rem); }
.section--alt { background: var(--night-deep); }

.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--starlight);
}

.section__intro {
  color: var(--starlight-dim);
  max-width: 56ch;
  margin-top: 1.5rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  max-width: 220px;
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.divider span {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  flex: none;
}

.prose p + p { margin-top: 1.35rem; }
.prose em, .house__body em, .section__intro em {
  font-style: italic;
  color: var(--gold-bright);
}

/* ── Article subheadings and asides ─────────────────────────── */
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem);
  line-height: 1.25;
  color: var(--gold-bright);
  margin-top: 2.7rem;
  margin-bottom: 0.85rem;
}
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--starlight); font-weight: 600; }

.prose__aside {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--starlight-dim);
}
.prose__aside a, .prose p a { color: var(--gold); }
.prose__aside a:hover, .prose p a:hover { color: var(--gold-bright); }

/* ── Trine diagram ──────────────────────────────────────────── */
.trine {
  margin: 2.8rem auto;
  max-width: 330px;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.trine__svg { width: 100%; height: auto; }
.trine__cells rect { fill: rgba(224, 178, 82, 0.18); }
.trine__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  opacity: 0.8;
}
.trine__labels text {
  fill: var(--gold-bright);
  font-family: var(--serif);
  font-size: 30px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.trine figcaption {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--starlight-dim);
  text-align: center;
}

/* archive banner carries a link back to the current article */
.monthly__next a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
.monthly__next a:hover { color: var(--gold-bright); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--primary {
  background: var(--gold);
  color: var(--night);
  font-weight: 600;
}
.btn--primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--line);
  color: var(--starlight);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--full { width: 100%; margin-top: 0.5rem; }
/* uppercased in CSS, not in the markup — some screen readers spell out
   all-caps text letter by letter */
.btn--caps { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 39, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgba(6, 8, 24, 0.92);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__brand { text-decoration: none; display: grid; line-height: 1.25; }
.nav__brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--starlight);
  letter-spacing: 0.01em;
}
.nav__brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav__links a {
  color: var(--starlight-dim);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--gold-bright); }
.nav__cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  color: var(--gold) !important;
}
.nav__cta:hover { background: rgba(224, 178, 82, 0.1); border-color: var(--gold); }

@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* viewport less the sticky nav and the monthly band that now sit above it */
  min-height: calc(100svh - 9.5rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) 1.25rem clamp(5rem, 14vh, 9rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(29, 36, 80, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(224, 178, 82, 0.07), transparent 70%);
}

/* three parallax starfield layers, tiled + slowly drifting */
.stars {
  position: absolute;
  inset: -10%;
  pointer-events: none;
}
.stars--far {
  background-image:
    radial-gradient(1px 1px at 24px 38px,  rgba(232,230,240,.55), transparent),
    radial-gradient(1px 1px at 118px 92px, rgba(232,230,240,.40), transparent),
    radial-gradient(1px 1px at 172px 26px, rgba(232,230,240,.50), transparent),
    radial-gradient(1px 1px at 66px 156px, rgba(232,230,240,.35), transparent),
    radial-gradient(1px 1px at 196px 178px,rgba(232,230,240,.45), transparent);
  background-size: 220px 220px;
  animation: drift-far 150s linear infinite;
}
.stars--mid {
  background-image:
    radial-gradient(1.4px 1.4px at 52px 74px,  rgba(245,212,138,.55), transparent),
    radial-gradient(1.4px 1.4px at 148px 30px, rgba(232,230,240,.60), transparent),
    radial-gradient(1.4px 1.4px at 96px 190px, rgba(232,230,240,.45), transparent),
    radial-gradient(1.4px 1.4px at 210px 120px,rgba(245,212,138,.40), transparent);
  background-size: 280px 280px;
  animation: drift-mid 100s linear infinite;
}
.stars--near {
  background-image:
    radial-gradient(2px 2px at 80px 50px,   rgba(245,212,138,.75), transparent),
    radial-gradient(2px 2px at 240px 160px, rgba(232,230,240,.70), transparent),
    radial-gradient(2px 2px at 160px 250px, rgba(245,212,138,.55), transparent);
  background-size: 340px 340px;
  animation: drift-near 65s linear infinite;
}
@keyframes drift-far  { to { background-position: 220px 220px; } }
@keyframes drift-mid  { to { background-position: -280px 280px; } }
@keyframes drift-near { to { background-position: 340px -340px; } }

.hero__content { position: relative; max-width: 46rem; }

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 1.6rem + 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--starlight) 25%, var(--gold) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin-top: 1.7rem;
  color: var(--starlight-dim);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  max-width: 34rem;
  margin-inline: auto;
}
.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(180deg, transparent, var(--line));
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  inset-inline: 0;
  height: 40%;
  background: var(--gold);
  animation: trickle 2.8s ease-in-out infinite;
}
@keyframes trickle {
  0%   { transform: translateY(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

/* ── Monthly article band ───────────────────────────────────── */
.monthly {
  background: var(--night-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.monthly__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.15rem;
}
.monthly__current {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.monthly__tag {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--night);
  background: var(--gold);
  padding: 0.32rem 0.7rem;
  border-radius: 2px;
  white-space: nowrap;
}
.monthly__topic {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--starlight);
}
.monthly__next { font-size: 0.82rem; color: var(--starlight-dim); }
.monthly__next strong { color: var(--gold); font-weight: 500; }

/* ── Chart wheel ────────────────────────────────────────────── */
.wheel {
  margin-top: 3rem;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}
.wheel__svg {
  width: min(100%, 420px);
  height: auto;
  overflow: visible;
}
.wheel__frame {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
}
.wheel__grid line {
  stroke: var(--line);
  stroke-width: 1.5;
  pointer-events: none;
}

/* interactive sign cells */
.wheel__cell {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill 0.25s var(--ease);
}
.wheel__cell:hover,
.wheel__cell.is-active {
  fill: rgba(224, 178, 82, 0.16);
}
.wheel__cell:focus-visible {
  outline: none;
  fill: rgba(224, 178, 82, 0.24);
  stroke: var(--gold-bright);
  stroke-width: 2.5;
}

.wheel__labels, .wheel__centre, .wheel__lagna, .wheel__lagna-tag {
  pointer-events: none;
  user-select: none;
}
.wheel__labels text { text-anchor: middle; }
.wheel__num {
  fill: var(--starlight);
  font-family: var(--serif);
  font-size: 27px;
}
.wheel__sign {
  fill: var(--starlight-dim);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* traditional ascendant mark */
.wheel__lagna {
  stroke: var(--gold);
  stroke-width: 2;
}
.wheel__lagna-tag {
  fill: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* centre panel — direction of reading */
.wheel__arrow {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0.55;
}
.wheel__arrow-head { fill: var(--gold); opacity: 0.55; }

.wheel__readout {
  text-align: center;
  min-height: 3.2rem;
  color: var(--starlight);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.wheel__readout strong {
  display: block;
  font-weight: 400;
  color: var(--gold-bright);
}
.wheel__readout em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--starlight-dim);
  margin-top: 0.25rem;
}
.wheel__readout-hint {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--starlight-dim);
}

/* ── House cards ────────────────────────────────────────────── */
.houses {
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.house {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease);
}
.house:hover,
.house.is-highlighted {
  transform: translateY(-4px);
  border-color: var(--line);
  background: var(--surface-raised);
}
.house:focus { outline: none; }
.house.is-highlighted { border-color: var(--gold); }

.house__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.house__num {
  font-family: var(--serif);
  font-size: 3.1rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
}
.house__glyph {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.house__name { margin-bottom: 0.9rem; }
.house__sanskrit {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--starlight);
}
.house__english {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}

.house__body {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--starlight-dim);
  flex: 1;
}

.house__meta {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.55rem;
}
.house__meta > div {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}
.house__meta dt {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.house__meta dd {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--starlight-dim);
}

/* ── Tools: shared shell ────────────────────────────────────── */
.tool {
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  display: grid;
  gap: 1.25rem;
}
.tool__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}
.tool__buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tool__buttons .btn { padding: 0.8rem 1.3rem; }
.tool__grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .tool__row { grid-template-columns: 1fr; }
  .tool__buttons .btn { flex: 1; }
  .tool__grid3 { grid-template-columns: 1fr; }
}

.tool select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  color: var(--starlight);
}
.tool select:focus { outline: none; border-color: var(--gold); }

.tool__manual { border-top: 1px solid var(--line-soft); padding-top: 1.1rem; }
.tool__manual summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.tool__manual summary:hover { color: var(--gold-bright); }
.tool__manual .tool__grid3 { margin-top: 1.1rem; }

.tool__status { font-size: 0.86rem; color: var(--starlight-dim); }
.tool__status:empty { display: none; }
.tool__status.is-error { color: var(--rose); }

.tool__caveat {
  margin-top: 2rem;
  border-left: 2px solid var(--line);
  padding-left: 1.3rem;
  display: grid;
  gap: 0.8rem;
}
.tool__caveat h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--gold-bright);
}
.tool__caveat p { font-size: 0.86rem; color: var(--starlight-dim); max-width: 68ch; }

/* ── Panchang output ────────────────────────────────────────── */
.panchang { display: grid; gap: 1.25rem; }
.panchang[hidden] { display: none; }
.panchang__where {
  font-size: 0.85rem;
  color: var(--starlight-dim);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.panchang__where strong { color: var(--gold); font-weight: 500; }

.panchang__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.1rem;
}
.panchang__grid > div { display: grid; gap: 0.3rem; }
.panchang__grid dt {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.panchang__grid dd {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--starlight);
  line-height: 1.2;
}
.panchang__grid dd span {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--starlight-dim);
  margin-top: 0.25rem;
}

.panchang__sun {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.panchang__sun dt {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.panchang__sun dd { font-size: 1.05rem; color: var(--starlight); font-variant-numeric: tabular-nums; }
.panchang__note { font-size: 0.78rem; color: var(--starlight-dim); }

/* ── Generated charts ───────────────────────────────────────── */
.gchart__out { margin-top: 2.5rem; }
.gchart__out[hidden] { display: none; }
.gchart__out:focus { outline: none; }

.gchart__caption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--starlight);
  margin-bottom: 2rem;
}
.gchart__caption strong { color: var(--gold); font-weight: 500; }
.gchart__caption span {
  display: block;
  font-size: 0.78rem;
  color: var(--starlight-dim);
  margin-top: 0.4rem;
}

.gchart__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}
.gchart { display: grid; justify-items: center; gap: 1rem; width: 100%; max-width: 420px; }
.gchart__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-bright);
  text-align: center;
}
.gchart__title span {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--starlight-dim);
  margin-top: 0.3rem;
}
.gchart__svg { width: 100%; height: auto; }
.gchart__graha {
  fill: var(--gold-bright);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-anchor: middle;
}
.gchart__sign {
  fill: var(--starlight-dim);
  font-family: var(--sans);
  font-size: 11px;
  text-anchor: middle;
}
.gchart__asc {
  fill: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.gchart__cell.is-lagna .gchart__sign { fill: var(--gold); }
.gchart__key {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--starlight-dim);
  line-height: 1.8;
}

/* ── About ──────────────────────────────────────────────────── */
.about {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about__emblem { max-width: 170px; }
}
.about__emblem svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
}
.em-ring { opacity: 0.5; }
.em-ring--dim { opacity: 0.25; }
.em-petals { opacity: 0.42; }
.em-core { fill: var(--gold); opacity: 0.75; stroke: none; }
.about__text { max-width: 60ch; }

/* ── Consultation offers ────────────────────────────────────── */
.offer {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.9rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: border-color 0.3s var(--ease);
}
.offer--feature {
  border-color: var(--line);
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
}
.offer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--starlight);
}
.offer__body { font-size: 0.95rem; color: var(--starlight-dim); max-width: 62ch; }

.offer__modes { display: grid; gap: 1.5rem; margin-block: 0.3rem; }
.offer__modes > div {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--line);
}
.offer__modes dt {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold-bright);
}
.offer__modes dd { font-size: 0.95rem; color: var(--starlight-dim); max-width: 62ch; }
.offer__link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease);
}
.offer__link:hover { color: var(--gold-bright); }

/* ── Ask section & form ─────────────────────────────────────── */
.section--ask {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(29, 36, 80, 0.6), transparent 70%),
    var(--night-deep);
}

.form { margin-top: 2.75rem; display: grid; gap: 1.5rem; }
/* an explicit display: value beats the UA's [hidden] rule — restore it */
.form[hidden] { display: none; }

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.form__row--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .form__row, .form__row--three { grid-template-columns: 1fr; }
}

.fieldset {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
}
.fieldset legend {
  padding-inline: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.field { display: grid; gap: 0.45rem; align-content: start; }
.field label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--starlight);
}
.req { color: var(--gold); }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  color: var(--starlight);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.65; }

.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px rgba(224, 178, 82, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(155, 152, 179, 0.6); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--rose);
}
/* date/time pickers are near-invisible on dark backgrounds without this */
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75) sepia(1) saturate(2.5) hue-rotate(2deg);
  cursor: pointer;
}

.field__error {
  font-size: 0.78rem;
  color: var(--rose);
  min-height: 0;
}
.field__error:empty { display: none; }

.field__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.field__count {
  font-size: 0.75rem;
  color: var(--starlight-dim);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.field__count.is-near { color: var(--gold); }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  column-gap: 0.75rem;
}
.field--check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--gold);
  cursor: pointer;
}
.field--check label { grid-column: 2; cursor: pointer; line-height: 1.55; }
.field--check .field__error { grid-column: 1 / -1; }

/* honeypot — hidden from humans, not from bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn__spinner { display: none; }
.btn.is-sending .btn__spinner {
  display: block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(10, 14, 39, 0.3);
  border-top-color: var(--night);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { font-size: 0.88rem; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--rose); }
.form__status.is-note { color: var(--starlight-dim); }

.form__privacy {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--starlight-dim);
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
}
.form__privacy a { color: var(--gold); }

/* ── Newsletter ─────────────────────────────────────────────── */
.letter { margin-top: 2.5rem; display: grid; gap: 1.35rem; }
.letter[hidden] { display: none; }
.letter .form__privacy { margin-top: 0.25rem; }

/* ── Thank-you panel ────────────────────────────────────────── */
.thanks {
  margin-top: 2.75rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  padding: clamp(2.5rem, 6vw, 3.5rem) 2rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.thanks[hidden] { display: none; }
.thanks__mark {
  width: 54px; height: 54px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thanks__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  color: var(--gold-bright);
}
.thanks__body { color: var(--starlight-dim); max-width: 42ch; font-size: 0.95rem; }
.thanks--compact {
  padding: clamp(1.9rem, 4vw, 2.4rem) 1.75rem;
  gap: 0.75rem;
}
.thanks--compact .thanks__mark { width: 42px; height: 42px; }
.thanks--compact .thanks__title { font-size: 1.6rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--night-deep);
  border-top: 1px solid var(--line-soft);
  padding-block: 3.25rem 2rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--starlight);
}
.footer__sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}
.footer__contact a {
  color: var(--gold);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer__contact a:hover { color: var(--gold-bright); }
.footer__note { font-size: 0.78rem; color: var(--starlight-dim); margin-top: 0.4rem; }

.footer__legal {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--starlight-dim);
}

/* ── Scroll reveal (only when JS is running) ────────────────── */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .hero__scroll { display: none; }
  .btn:hover, .house:hover, .offer:hover { transform: none; }
}
