@font-face {
  font-family: "JinKai";
  src: url("/assets/fonts/JinKai-brand.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2");
  font-display: swap;
}

:root {
  --indigo: #102c32;
  --indigo-deep: #0a2025;
  --indigo-soft: #23464a;
  --indigo-line: rgba(224, 220, 199, 0.2);
  --paper: #eee9dc;
  --paper-high: #f7f3e8;
  --paper-low: #dfd7c5;
  --ink: #1e2726;
  --ink-soft: #5f635d;
  --saffron: #bd7435;
  --saffron-soft: #d6a369;
  --madder: #8d443a;
  --sage: #64796e;
  --line: #c5bdab;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.66' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

.vedic-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  width: min(1240px, calc(100% - 48px));
  min-height: 94px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #f0ebdd;
  border-bottom: 1px solid var(--indigo-line);
}

.vedic-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.vedic-brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(240, 235, 221, 0.72);
  font-family: JinKai, var(--serif);
  font-size: 15px;
  line-height: 0.9;
  text-align: center;
}

.vedic-brand b {
  font-family: JinKai, var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.prototype-mark {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c7c5b8;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.prototype-mark i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(189, 116, 53, 0.16);
}

.method-open {
  padding: 8px 0 7px;
  color: #e3dfd0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(227, 223, 208, 0.56);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-actions > a {
  color: #c7c5b8;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.vedic-hero {
  position: relative;
  min-height: 760px;
  padding: 184px max(24px, calc((100vw - 1180px) / 2)) 118px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(410px, 0.88fr);
  gap: 70px;
  align-items: center;
  color: #f4efe0;
  background:
    linear-gradient(90deg, transparent 0 49.93%, rgba(224, 220, 199, 0.055) 50%, transparent 50.07%),
    radial-gradient(circle at 79% 48%, rgba(184, 119, 58, 0.14), transparent 29%),
    radial-gradient(circle at 16% 9%, rgba(119, 148, 140, 0.15), transparent 30%),
    linear-gradient(135deg, var(--indigo-deep), var(--indigo) 65%, #17383b);
}

.vedic-hero::before,
.vedic-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.vedic-hero::before {
  inset: 94px 0 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(224, 220, 199, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 220, 199, 0.09) 1px, transparent 1px);
  background-size: 100% 132px, 12.5% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000 92%, transparent);
}

.vedic-hero::after {
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(5, 22, 25, 0.44));
}

.hero-copy,
.hero-instrument {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow,
.studio-index > p,
.form-heading > p,
.result-masthead > div > p,
.section-heading > span,
.section-heading > div > span,
.reading-invitation > p {
  margin: 0 0 17px;
  color: var(--saffron-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 5vw, 74px);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.048em;
}

.hero-copy h1 span,
.hero-copy h1 em {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.hero-copy h1 em {
  color: #c8c8ba;
  font-style: normal;
}

.hero-intro {
  max-width: 38em;
  margin: 30px 0 35px;
  color: #c5c7bb;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.035em;
}

.method-strip {
  display: flex;
  border-top: 1px solid var(--indigo-line);
  border-bottom: 1px solid var(--indigo-line);
}

.method-strip span {
  min-width: 155px;
  padding: 14px 22px 14px 0;
  color: #e3dfd1;
  font-family: var(--sans);
  font-size: 12px;
}

.method-strip b {
  margin-right: 8px;
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 10px;
}

.hero-instrument {
  width: min(465px, 40vw);
  justify-self: end;
  padding: 30px;
  border: 1px solid rgba(225, 218, 194, 0.27);
  background: rgba(4, 24, 27, 0.26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.instrument-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(225, 218, 194, 0.21);
  font-family: var(--mono);
}

.instrument-caption span {
  color: var(--saffron);
  font-size: 11px;
}

.instrument-caption b {
  font-size: 13px;
  letter-spacing: 0.15em;
}

.instrument-caption i {
  color: #aaa99f;
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
}

.hero-instrument svg {
  width: 100%;
  display: block;
  padding: 12px;
  overflow: visible;
  animation: instrument-breathe 7s ease-in-out infinite;
}

.hero-instrument svg rect,
.hero-instrument svg path {
  fill: none;
  stroke: rgba(230, 221, 190, 0.55);
  stroke-width: 1.2;
}

.hero-instrument svg circle {
  fill: rgba(189, 116, 53, 0.19);
  stroke: var(--saffron-soft);
  stroke-width: 1;
}

.hero-instrument svg text {
  fill: #d7d3c4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-anchor: middle;
}

.instrument-axis {
  position: relative;
  height: 44px;
  margin: 2px 15px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  color: #aaa99f;
  font-family: var(--mono);
  font-size: 9px;
}

.instrument-axis::before {
  content: "";
  position: absolute;
  left: 48px;
  right: 42px;
  top: 21px;
  height: 1px;
  background: rgba(227, 220, 195, 0.35);
}

.instrument-axis i {
  position: relative;
  height: 1px;
}

.instrument-axis i::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 68%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--saffron-soft);
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 5px rgba(189, 116, 53, 0.13);
  animation: axis-pulse 2.8s ease-in-out infinite;
}

.instrument-axis b {
  color: var(--saffron-soft);
  font-weight: 400;
}

.instrument-axis em {
  position: absolute;
  right: 0;
  bottom: -1px;
  color: #747d78;
  font-size: 8px;
  font-style: normal;
}

.hero-instrument > p {
  margin: 17px 0 0;
  color: #858f89;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.21em;
  text-align: center;
}

.hero-instrument > p i {
  margin: 0 11px;
  color: var(--saffron);
  font-style: normal;
}

.principle-band {
  position: relative;
  z-index: 2;
  min-height: 102px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  color: #d9d5c7;
  background: #0d2429;
  border-top: 3px solid var(--saffron);
}

.principle-band p,
.principle-band span {
  margin: 0;
}

.principle-band p {
  font-size: 18px;
}

.principle-band span {
  color: #969d96;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
}

.birth-studio {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 128px 0 150px;
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 92px;
  align-items: start;
}

.studio-index {
  position: sticky;
  top: 38px;
  padding-top: 10px;
}

.studio-index h2 {
  max-width: 8em;
  margin: 0 0 44px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.studio-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.studio-index li {
  min-height: 62px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.studio-index li i {
  color: var(--saffron);
  font-size: 12px;
  font-style: normal;
}

.index-note {
  margin-top: 34px;
  padding: 20px 22px;
  color: #d8d4c5;
  background: var(--indigo);
  border-left: 3px solid var(--saffron);
}

.index-note b {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.index-note p {
  margin: 8px 0 0;
  color: #aeb3aa;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
}

.vedic-form {
  padding: 58px 64px 62px;
  background: var(--paper-high);
  border: 1px solid var(--line);
  box-shadow: 18px 22px 0 rgba(71, 66, 51, 0.07);
}

.form-heading {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.form-heading h2 {
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.form-heading > span {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
}

.field-row {
  position: relative;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.field-row-time {
  grid-template-columns: 1fr 0.72fr;
}

.field-row label,
.field-row-name label {
  position: relative;
  display: grid;
  gap: 10px;
}

.field-row label > span {
  color: #464b47;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.field-row label > span i {
  margin-left: 6px;
  color: #8a8b82;
  font-size: 10px;
  font-style: normal;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #9e988b;
  outline: 0;
  font-size: 16px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.field-row textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.7;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  background: rgba(189, 116, 53, 0.045);
  border-color: var(--saffron);
}

.field-row input:disabled {
  color: #aaa397;
  border-bottom-style: dashed;
}

.field-row label > small {
  color: #89877e;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.65;
}

.unknown-time {
  margin: 2px 0 30px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  background: #e9e2d3;
  border-left: 3px solid var(--sage);
  cursor: pointer;
}

.unknown-time input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--indigo);
}

.unknown-time span {
  display: grid;
  gap: 5px;
}

.unknown-time b {
  font-family: var(--sans);
  font-size: 12px;
}

.unknown-time small {
  color: #686a64;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.65;
}

.prototype-notice {
  margin: 38px 0 22px;
  padding: 21px 23px;
  border: 1px solid #d3ab7a;
  background: #f2e7d6;
}

.prototype-notice b {
  color: var(--madder);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.prototype-notice p {
  margin: 8px 0 0;
  color: #665f55;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.75;
}

.form-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #7e322d;
  background: #f1ded7;
  border-left: 3px solid var(--madder);
  font-family: var(--sans);
  font-size: 12px;
}

.dst-choice {
  margin: 0 0 18px;
  padding: 18px;
  background: #e8e1d2;
  border-left: 3px solid var(--saffron);
}

.dst-choice > b {
  font-family: var(--sans);
  font-size: 12px;
}

.dst-choice > p {
  margin: 6px 0 13px;
  color: #686a64;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.65;
}

#vedic-dst-options {
  display: grid;
  gap: 8px;
}

#vedic-dst-options button {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper-high);
  border: 1px solid #aaa290;
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#vedic-dst-options button:hover,
#vedic-dst-options button.is-selected {
  color: #f4eddd;
  background: var(--indigo);
  border-color: var(--indigo);
}

#vedic-dst-options button:active {
  transform: scale(0.96);
}

.vedic-submit {
  width: 100%;
  min-height: 61px;
  padding: 0 22px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f2ecdc;
  background: var(--indigo);
  border: 0;
  font-family: var(--serif);
  font-size: 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.vedic-submit:hover {
  background: #183b40;
  transform: translateY(-2px);
}

.vedic-submit i {
  color: var(--saffron-soft);
  font-family: var(--sans);
  font-size: 20px;
  font-style: normal;
}

.vedic-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.vedic-submit:not(:disabled):active,
.result-actions button:active,
.reading-invitation button:active,
.dialog-confirm:active {
  transform: scale(0.96);
}

.form-fineprint {
  margin: 13px 0 0;
  color: #8b887e;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: center;
}

.city-sug {
  position: absolute;
  z-index: 8;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--paper-high);
  border: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(36, 40, 37, 0.15);
}

.city-sug-item {
  width: 100%;
  padding: 11px 14px;
  display: block;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ded8ca;
  font-family: var(--sans);
  font-size: 12px;
  text-align: left;
}

.city-sug-item:hover {
  color: var(--madder);
  background: #eee3d1;
}

.vedic-loading {
  min-height: 410px;
  padding: 130px 24px;
  color: #ddd8c9;
  background: var(--indigo);
  text-align: center;
}

.calibration-rule {
  position: relative;
  width: min(480px, 78vw);
  height: 32px;
  margin: 0 auto 30px;
}

.calibration-rule::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(225, 218, 194, 0.3);
}

.calibration-rule span,
.calibration-rule b {
  position: absolute;
  top: 10px;
  width: 11px;
  height: 11px;
  border: 1px solid #a3aaa3;
  border-radius: 50%;
}

.calibration-rule span { left: 0; }
.calibration-rule b { right: 0; }

.calibration-rule i {
  position: absolute;
  top: 8px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 7px rgba(189, 116, 53, 0.16);
  animation: calibrate 1.15s cubic-bezier(.55, .05, .32, 1) infinite;
}

.vedic-loading p {
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.vedic-loading small {
  color: #9da59f;
  font-family: var(--sans);
  font-size: 11px;
}

.vedic-result {
  background: var(--paper);
}

.sample-warning {
  min-height: 68px;
  padding: 15px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  color: #eee7d8;
  background: var(--madder);
}

.sample-warning b {
  padding: 5px 8px;
  border: 1px solid rgba(255, 245, 229, 0.55);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.sample-warning p {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
}

.result-masthead {
  width: min(1180px, calc(100% - 48px));
  min-height: 314px;
  margin: 0 auto;
  padding: 74px 0 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  border-bottom: 1px solid #262e2c;
}

.result-masthead h2 {
  max-width: 14em;
  margin: 0 0 17px;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.result-masthead > div > span {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
}

.result-actions {
  display: flex;
  gap: 10px;
}

.result-actions button {
  min-height: 40px;
  padding: 0 15px;
  background: transparent;
  border: 1px solid #8a877d;
  font-family: var(--sans);
  font-size: 11px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.result-actions .result-method {
  color: #ece6d8;
  background: var(--indigo);
  border-color: var(--indigo);
}

.method-docket {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.method-docket > div {
  min-height: 116px;
  padding: 24px 26px 21px 0;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
}

.method-docket > div:not(:first-child) {
  padding-left: 26px;
}

.method-docket > div:last-child {
  border-right: 0;
}

.method-docket span,
.method-docket i {
  color: #85847b;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.method-docket b {
  font-size: 16px;
  font-weight: 500;
}

.method-docket i.pending {
  color: var(--madder);
}

.unknown-boundary {
  width: min(1180px, calc(100% - 48px));
  margin: 62px auto 0;
  padding: 36px 40px;
  color: #e9e2d3;
  background: var(--indigo);
  border-left: 5px solid var(--saffron);
}

.unknown-boundary span {
  color: var(--saffron-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.unknown-boundary h3 {
  margin: 9px 0 8px;
  font-size: 29px;
  font-weight: 500;
}

.unknown-boundary p {
  max-width: 65em;
  margin: 0;
  color: #b6b8ae;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
}

.chart-spread {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 98px 0 128px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.76fr);
  gap: 78px;
  align-items: start;
}

.rasi-sheet {
  margin: 0;
  padding: 34px;
  background: var(--paper-high);
  border: 1px solid var(--line);
  box-shadow: 15px 17px 0 rgba(73, 65, 46, 0.07);
}

.rasi-sheet figcaption {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.rasi-sheet figcaption span {
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.rasi-sheet figcaption h3,
.section-heading h3 {
  margin: 8px 0 6px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.rasi-sheet figcaption p,
.section-heading p {
  margin: 0;
  color: #77776f;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.7;
}

.rasi-chart {
  width: 100%;
  display: block;
  margin: 22px auto 10px;
  overflow: visible;
}

.rasi-chart .chart-frame,
.rasi-chart .chart-line {
  fill: none;
  stroke: #283f3e;
  stroke-width: 1.4;
}

.rasi-chart .house-node text {
  fill: #7b786f;
  font-family: var(--mono);
  font-size: 11px;
  text-anchor: middle;
}

.rasi-chart .house-node .graha-label {
  fill: #273330;
  font-size: 14px;
}

.rasi-chart .house-node .sign-label {
  fill: #9a9384;
  font-size: 9px;
}

.rasi-chart .house-main .graha-label,
.rasi-chart .house-kendra .graha-label {
  fill: var(--madder);
}

.rasi-chart .house-moon .graha-label {
  fill: #3e6d72;
}

.rasi-chart .chart-seal {
  fill: var(--indigo);
  stroke: var(--saffron);
  stroke-width: 1.5;
}

.rasi-chart .chart-seal-text {
  fill: #f1eadb;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-anchor: middle;
}

.chart-key {
  padding-top: 17px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #76766f;
  font-family: var(--sans);
  font-size: 9px;
}

.chart-key span {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chart-key i {
  width: 7px;
  height: 7px;
  background: var(--madder);
}

.chart-key span:nth-child(2) i {
  background: #3e6d72;
}

.chart-key b {
  margin-left: auto;
  color: var(--madder);
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.reading-anchors {
  display: grid;
  gap: 14px;
}

.vedic-result.is-unknown-time .chart-spread {
  grid-template-columns: 1fr;
  padding-top: 72px;
}

.vedic-result.is-unknown-time .reading-anchors {
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 48px;
  align-items: start;
}

.vedic-result.is-unknown-time .reading-anchors .section-heading {
  grid-column: 1;
  margin-top: 20px;
}

.vedic-result.is-unknown-time .reading-anchors .moon-card {
  grid-column: 2;
  min-height: 190px;
  display: grid;
  align-content: center;
}

.section-heading {
  margin-bottom: 10px;
}

.anchor-card {
  position: relative;
  padding: 25px 26px 23px;
  overflow: hidden;
  background: #e8e1d2;
  border-top: 1px solid #aaa290;
  transition: transform 180ms ease, background 180ms ease;
}

.anchor-card:hover {
  transform: translateX(5px);
  background: #eee7da;
}

.anchor-card::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -38px;
  top: -38px;
  border: 1px solid rgba(141, 68, 58, 0.25);
  transform: rotate(45deg);
}

.anchor-card > div {
  display: flex;
  justify-content: space-between;
  color: #818078;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.anchor-card > div span {
  color: var(--saffron);
}

.anchor-card > div i {
  font-style: normal;
}

.anchor-card h4 {
  margin: 14px 0 7px;
  font-size: 25px;
  font-weight: 500;
}

.anchor-card p {
  margin: 0 0 13px;
  color: #5e625e;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.75;
}

.anchor-card small {
  color: #8b6f59;
  font-family: var(--sans);
  font-size: 9px;
}

.graha-section,
.nakshatra-section,
.navamsa-section,
.dasha-section,
.reading-preview {
  padding: 116px max(24px, calc((100vw - 1180px) / 2));
}

.graha-section {
  color: #eee9dc;
  background: var(--indigo);
}

.wide-heading {
  margin: 0 0 48px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.52fr);
  gap: 60px;
  align-items: end;
}

.wide-heading > div > span {
  display: block;
  margin-bottom: 13px;
}

.wide-heading h3 {
  margin: 0;
  font-size: 38px;
}

.graha-section .wide-heading p {
  color: #adb3aa;
}

.graha-ledger {
  border-top: 1px solid rgba(231, 223, 198, 0.38);
}

.graha-ledger > div {
  min-height: 59px;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.7fr 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(231, 223, 198, 0.18);
}

.graha-ledger .ledger-head {
  min-height: 41px;
  color: #8d9892;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.graha-ledger b {
  font-size: 15px;
  font-weight: 500;
}

.graha-ledger b i {
  margin-left: 8px;
  color: #969e98;
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.graha-ledger span,
.graha-ledger em {
  color: #c0c2b8;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
}

.graha-ledger em {
  color: var(--saffron-soft);
}

.navamsa-section {
  color: #eee9dc;
  background: #132f33;
}

.navamsa-section .wide-heading p {
  color: #adb3aa;
}

.navamsa-summary {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 250px 1fr;
  border-top: 1px solid rgba(231, 223, 198, 0.38);
  border-bottom: 1px solid rgba(231, 223, 198, 0.2);
}

.navamsa-summary > div {
  min-height: 120px;
  padding: 24px 28px 24px 0;
  display: grid;
  align-content: center;
  gap: 7px;
  border-right: 1px solid rgba(231, 223, 198, 0.2);
}

.navamsa-summary span,
.navamsa-summary i {
  color: #8d9892;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.navamsa-summary b {
  font-size: 23px;
  font-weight: 500;
}

.navamsa-summary > p {
  margin: 0;
  padding: 24px 0 24px 34px;
  align-self: center;
  color: #c0c2b8;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.9;
}

.navamsa-ledger {
  border-top: 1px solid rgba(231, 223, 198, 0.38);
}

.navamsa-ledger > div {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.15fr 1.45fr;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(231, 223, 198, 0.18);
}

.navamsa-ledger .ledger-head {
  min-height: 41px;
  color: #8d9892;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navamsa-ledger b {
  font-size: 15px;
  font-weight: 500;
}

.navamsa-ledger b i {
  margin-left: 8px;
  color: #969e98;
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.navamsa-ledger span,
.navamsa-ledger em {
  color: #c0c2b8;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
}

.navamsa-ledger em {
  color: var(--saffron-soft);
}

.nakshatra-section {
  background: #e7dfcf;
}

.nakshatra-track {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(27, 1fr);
  border-top: 1px solid #8e8b82;
  border-bottom: 1px solid #8e8b82;
}

.nakshatra-segment {
  position: relative;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(74, 76, 70, 0.23);
}

.nakshatra-segment::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 28%;
  background: #7b7b73;
  transition: height 180ms ease, background 180ms ease;
}

.nakshatra-segment span {
  position: absolute;
  left: 50%;
  top: 9px;
  color: #8b887e;
  font-family: var(--mono);
  font-size: 7px;
  transform: translateX(-50%);
}

.nakshatra-segment:hover::before,
.nakshatra-segment[aria-pressed="true"]::before {
  height: 74%;
  background: var(--madder);
}

.nakshatra-segment.is-result::before {
  height: 74%;
  background: var(--madder);
}

.nakshatra-segment.is-result::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: var(--saffron);
  transform: translateX(-50%) rotate(45deg);
}

.nakshatra-segment.is-result {
  background: rgba(141, 68, 58, 0.08);
}

.nakshatra-segment[aria-pressed="true"] {
  background: rgba(141, 68, 58, 0.08);
}

.nakshatra-focus {
  min-height: 143px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid #aaa494;
}

.nakshatra-focus > span {
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 13px;
}

.nakshatra-focus h4 {
  margin: 0 0 7px;
  font-size: 32px;
  font-weight: 500;
}

.nakshatra-focus p,
.nakshatra-focus small {
  margin: 0;
  color: #71716b;
  font-family: var(--sans);
  font-size: 10px;
}

.nakshatra-focus small {
  max-width: 18em;
  line-height: 1.6;
  text-align: right;
}

.dasha-section {
  background: var(--paper-high);
}

.dasha-now {
  margin-bottom: 24px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "small title" "small copy";
  align-items: center;
  color: #eee7d8;
  background: var(--madder);
}

.dasha-now span {
  grid-area: small;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.dasha-now h4 {
  grid-area: title;
  margin: 0;
  font-size: 25px;
  font-weight: 500;
}

.dasha-now p {
  grid-area: copy;
  margin: 4px 0 0;
  color: #e3c9b8;
  font-family: var(--sans);
  font-size: 10px;
  text-align: right;
}

.dasha-timeline {
  min-height: 106px;
  display: flex;
  overflow: hidden;
  border-top: 1px solid #8c887d;
  border-bottom: 1px solid #8c887d;
}

.dasha-period {
  min-width: 34px;
  padding: 17px 8px 14px;
  display: grid;
  align-content: space-between;
  background: #e9e2d4;
  border-right: 1px solid #aaa494;
  transition: background 180ms ease, color 180ms ease;
}

.dasha-period span,
.dasha-period b {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.dasha-period b {
  color: #77766f;
}

.dasha-period.is-current {
  color: #f3ecdd;
  background: var(--indigo);
}

.dasha-period.is-current b {
  color: var(--saffron-soft);
}

.antardasha-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.antardasha-grid article {
  min-height: 185px;
  padding: 27px 28px;
  border-right: 1px solid var(--line);
}

.antardasha-grid article:last-child {
  border-right: 0;
}

.antardasha-grid article.is-current {
  color: #eee8da;
  background: var(--indigo);
}

.antardasha-grid span {
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.antardasha-grid h4 {
  margin: 20px 0 10px;
  font-size: 21px;
  font-weight: 500;
}

.antardasha-grid p {
  margin: 0;
  color: #71716b;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.75;
}

.antardasha-grid article.is-current p {
  color: #b9bcb2;
}

.pratyantardasha-panel {
  margin-top: 38px;
}

.pratyantardasha-panel > span {
  display: block;
  margin-bottom: 13px;
  color: #77766f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.pratyantardasha-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pratyantardasha-item {
  min-width: 0;
  min-height: 74px;
  padding: 14px 10px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--line);
}

.pratyantardasha-item:last-child {
  border-right: 0;
}

.pratyantardasha-item b,
.pratyantardasha-item span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.pratyantardasha-item span {
  color: #77766f;
  line-height: 1.45;
}

.pratyantardasha-item.is-current {
  color: #f3ecdd;
  background: var(--madder);
}

.pratyantardasha-item.is-current span {
  color: #e3c9b8;
}

.reading-preview {
  color: #ece6d8;
  background: #0d2429;
}

.vedic-save-notice {
  margin-top: 34px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(231, 223, 198, 0.25);
  font-family: var(--sans);
  font-size: 11px;
}

.vedic-save-notice span {
  flex: 1;
  line-height: 1.7;
}

.vedic-save-notice a,
.vedic-save-notice button {
  padding: 8px 0;
  color: var(--saffron-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(214, 163, 105, 0.65);
  text-decoration: none;
}

.vedic-save-notice button:active {
  transform: scale(0.96);
}

.vedic-save-notice.is-saved {
  border-left: 3px solid var(--sage);
}

.vedic-save-notice.is-draft {
  border-left: 3px solid var(--saffron);
}

.reading-invitation {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  column-gap: 90px;
}

.reading-invitation > p,
.reading-invitation h2,
.reading-invitation > span {
  grid-column: 1;
}

.reading-invitation h2 {
  max-width: 15em;
  margin: 0 0 19px;
  font-size: clamp(38px, 4vw, 55px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.reading-invitation > span {
  max-width: 48em;
  color: #aeb3aa;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.85;
}

.reading-invitation ul {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(231, 224, 201, 0.28);
}

.reading-invitation li {
  padding: 16px 0 16px 22px;
  position: relative;
  color: #c1c2b8;
  border-bottom: 1px solid rgba(231, 224, 201, 0.17);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
}

.reading-invitation li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 23px;
  width: 6px;
  height: 6px;
  background: var(--saffron);
  transform: rotate(45deg);
}

.reading-actions {
  grid-column: 1;
  width: min(520px, 100%);
  margin-top: 34px;
  display: grid;
  gap: 10px;
}

.reading-invitation button {
  grid-column: 1;
  width: 100%;
  min-height: 59px;
  padding: 0 19px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--indigo);
  background: #e5dece;
  border: 0;
  transition: background-color 150ms ease, transform 150ms ease;
}

.reading-invitation .reading-outline-toggle {
  min-height: 46px;
  color: #d0d1c7;
  background: transparent;
  border: 1px solid rgba(231, 224, 201, 0.26);
}

.reading-actions > small {
  color: #8e9892;
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.7;
}

.reading-invitation button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.reading-invitation button span {
  font-size: 14px;
}

.reading-invitation button i {
  color: var(--madder);
  font-family: var(--sans);
  font-size: 20px;
  font-style: normal;
  transition: transform 180ms ease;
}

.reading-invitation button[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.vedic-reading-output {
  margin-top: 72px;
  border-top: 1px solid rgba(231, 224, 201, 0.34);
  border-bottom: 1px solid rgba(231, 224, 201, 0.22);
}

.vedic-reading-output > header {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(231, 224, 201, 0.18);
}

.vedic-reading-output > header span,
.vedic-reading-output > header b {
  color: #9ba39d;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.vedic-reading-output > header h3 {
  margin: 8px 0 0;
  font-size: 25px;
  font-weight: 500;
}

.vedic-reading-output > header b {
  color: var(--saffron-soft);
  text-align: right;
}

.vedic-reading-body {
  max-width: 820px;
  min-height: 220px;
  padding: 56px 0 64px;
  color: #d5d4ca;
  font-size: 15px;
  line-height: 2;
  white-space: pre-wrap;
}

.vedic-reading-body h4 {
  margin: 54px 0 22px;
  color: #f1ebdc;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.vedic-reading-body h4:first-child {
  margin-top: 0;
}

.vedic-reading-body h5 {
  margin: 34px 0 15px;
  color: var(--saffron-soft);
  font-size: 18px;
  font-weight: 500;
}

.vedic-reading-body p {
  margin: 0 0 13px;
  white-space: normal;
}

.vedic-reading-body .reading-field {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.9;
}

.vedic-reading-body .reading-field b {
  color: #ad7e56;
  font-weight: 500;
}

.vedic-reading-body .reading-field span {
  color: #c7cac2;
}

.reading-space {
  height: 8px;
}

.vedic-reading-error {
  margin: 0 0 20px;
  padding: 15px 18px;
  color: #f2d6c9;
  background: rgba(141, 68, 58, 0.26);
  border-left: 3px solid var(--madder);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
}

.vedic-reading-retry {
  min-height: 44px;
  margin: 0 0 38px;
  padding: 0 18px;
  color: #e6dfcf;
  background: transparent;
  border: 1px solid rgba(231, 224, 201, 0.28);
  font-family: var(--sans);
  font-size: 12px;
}

.reading-outline {
  margin-top: 72px;
  border-top: 1px solid rgba(231, 224, 201, 0.34);
}

.reading-outline header {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ba39d;
  border-bottom: 1px solid rgba(231, 224, 201, 0.18);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.reading-outline header b {
  color: var(--saffron-soft);
  font-weight: 400;
}

.reading-outline section {
  min-height: 110px;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(231, 224, 201, 0.18);
}

.reading-outline section > i {
  color: var(--saffron);
  font-size: 12px;
  font-style: normal;
}

.reading-outline h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
}

.reading-outline p {
  margin: 0;
  color: #9da49e;
  font-family: var(--sans);
  font-size: 11px;
}

.result-disclaimer {
  margin: 0;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  color: #77766f;
  background: #dcd4c4;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.vedic-footer {
  min-height: 120px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9da49d;
  background: #081c20;
  border-top: 1px solid rgba(225, 218, 194, 0.17);
  font-family: var(--sans);
  font-size: 10px;
}

.vedic-footer p {
  margin: 0;
}

.vedic-footer div {
  display: flex;
  gap: 24px;
  align-items: center;
}

.vedic-footer a,
.vedic-footer button {
  color: #dad6c9;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(218, 214, 201, 0.45);
  text-decoration: none;
}

.method-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--paper-high);
  border: 1px solid #8e887a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.method-dialog::backdrop {
  background: rgba(5, 20, 23, 0.76);
  backdrop-filter: blur(5px);
}

.dialog-topline {
  min-height: 58px;
  padding: 0 20px 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #dcd6c7;
  background: var(--indigo);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.dialog-topline button {
  width: 34px;
  height: 34px;
  color: #e7dfcf;
  background: transparent;
  border: 1px solid rgba(231, 223, 207, 0.3);
  font-family: var(--sans);
  font-size: 20px;
}

.method-dialog > h2,
.method-dialog > p,
.method-dialog > dl,
.method-dialog > .dialog-confirm {
  margin-left: 42px;
  margin-right: 42px;
}

.method-dialog > h2 {
  margin-top: 40px;
  margin-bottom: 13px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.35;
}

.method-dialog > p {
  margin-top: 0;
  margin-bottom: 30px;
  color: #656761;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
}

.method-dialog dl {
  border-top: 1px solid var(--line);
}

.method-dialog dl > div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.method-dialog dt {
  color: var(--saffron);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.method-dialog dd {
  margin: 0;
  color: #555a56;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
}

.method-dialog code {
  padding: 1px 4px;
  color: var(--indigo);
  background: #e8e1d2;
  font-family: var(--mono);
  font-size: 0.92em;
}

.dialog-confirm {
  width: calc(100% - 84px);
  min-height: 54px;
  margin-top: 28px;
  margin-bottom: 40px;
  color: #eee8da;
  background: var(--madder);
  border: 0;
  font-size: 13px;
  transition: background-color 150ms ease, transform 150ms ease;
}

@keyframes instrument-breathe {
  0%, 100% { transform: scale(0.988); opacity: 0.82; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes axis-pulse {
  0%, 100% { transform: scale(0.82); }
  50% { transform: scale(1.08); }
}

@keyframes calibrate {
  0% { left: 0; }
  75%, 100% { left: calc(100% - 15px); }
}

@media (max-width: 1060px) {
  .vedic-hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
    gap: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 5.6vw, 61px);
  }

  .birth-studio {
    gap: 54px;
  }

  .vedic-form {
    padding: 48px 44px 52px;
  }

  .chart-spread {
    gap: 42px;
  }
}

@media (max-width: 860px) {
  .vedic-topbar {
    width: calc(100% - 32px);
  }

  .prototype-mark {
    display: none;
  }

  .vedic-topbar {
    grid-template-columns: 1fr auto;
  }

  .vedic-hero {
    min-height: auto;
    padding: 160px 24px 88px;
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-instrument {
    width: min(500px, 84vw);
    justify-self: center;
  }

  .principle-band {
    padding-top: 24px;
    padding-bottom: 24px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .birth-studio {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .studio-index {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .studio-index > p,
  .studio-index h2 {
    grid-column: 1;
  }

  .studio-index h2 {
    margin-bottom: 0;
  }

  .studio-index ol {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .index-note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .method-docket {
    grid-template-columns: 1fr 1fr;
  }

  .method-docket > div:nth-child(2) {
    border-right: 0;
  }

  .method-docket > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .method-docket > div:nth-child(3) {
    padding-left: 0;
  }

  .chart-spread {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .rasi-sheet {
    width: min(650px, 100%);
    margin: 0 auto;
  }

  .reading-anchors {
    grid-template-columns: 1fr 1fr;
  }

  .vedic-result.is-unknown-time .reading-anchors {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .reading-anchors .section-heading {
    grid-column: 1 / -1;
  }

  .anchor-card:last-child {
    grid-column: 1 / -1;
  }

  .reading-invitation {
    grid-template-columns: 1fr;
  }

  .reading-invitation > p,
  .reading-invitation h2,
  .reading-invitation > span,
  .reading-invitation ul,
  .reading-invitation button {
    grid-column: 1;
  }

  .reading-invitation ul {
    grid-row: auto;
    margin-top: 40px;
  }

  .reading-actions {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .vedic-topbar {
    min-height: 78px;
  }

  .vedic-brand b {
    display: none;
  }

  .method-open {
    font-size: 10px;
  }

  .vedic-hero {
    padding: 130px 20px 74px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.21;
    letter-spacing: -0.055em;
  }

  .hero-copy h1 span,
  .hero-copy h1 em {
    width: auto;
  }

  .hero-intro {
    font-size: 14px;
  }

  .method-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .method-strip span {
    min-width: 0;
  }

  .method-strip span:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--indigo-line);
  }

  .hero-instrument {
    width: 100%;
    padding: 20px;
  }

  .principle-band p {
    font-size: 16px;
  }

  .birth-studio {
    width: calc(100% - 28px);
    padding: 82px 0 96px;
  }

  .studio-index {
    display: block;
  }

  .studio-index h2 {
    margin-bottom: 28px;
    font-size: 31px;
  }

  .studio-index ol {
    margin-bottom: 25px;
  }

  .vedic-form {
    padding: 38px 20px 42px;
    box-shadow: 8px 10px 0 rgba(71, 66, 51, 0.07);
  }

  .form-heading h2 {
    font-size: 31px;
  }

  .field-row-time {
    grid-template-columns: 1fr;
  }

  .sample-warning {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .sample-warning b {
    justify-self: start;
  }

  .result-masthead {
    width: calc(100% - 32px);
    min-height: 294px;
    padding-top: 54px;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .result-masthead h2 {
    font-size: 43px;
  }

  .result-actions {
    justify-content: flex-start;
  }

  .method-docket {
    width: calc(100% - 32px);
  }

  .method-docket > div,
  .method-docket > div:not(:first-child) {
    min-height: 102px;
    padding: 19px 12px;
  }

  .method-docket > div:nth-child(odd) {
    padding-left: 0;
  }

  .unknown-boundary,
  .chart-spread {
    width: calc(100% - 28px);
  }

  .unknown-boundary {
    padding: 28px 25px;
  }

  .chart-spread {
    padding: 72px 0 90px;
  }

  .rasi-sheet {
    padding: 20px;
  }

  .rasi-chart .house-node .graha-label {
    font-size: 15px;
  }

  .rasi-chart .house-node .sign-label {
    font-size: 11.5px;
  }

  .chart-key {
    flex-wrap: wrap;
  }

  .chart-key b {
    width: 100%;
    margin-left: 0;
  }

  .reading-anchors {
    grid-template-columns: 1fr;
  }

  .vedic-result.is-unknown-time .reading-anchors {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .vedic-result.is-unknown-time .reading-anchors .section-heading,
  .vedic-result.is-unknown-time .reading-anchors .moon-card {
    grid-column: 1;
  }

  .vedic-result.is-unknown-time .reading-anchors .section-heading {
    margin-top: 0;
  }

  .anchor-card:last-child {
    grid-column: auto;
  }

  .graha-section,
  .nakshatra-section,
  .navamsa-section,
  .dasha-section,
  .reading-preview {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .wide-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wide-heading h3 {
    font-size: 32px;
  }

  .graha-ledger .ledger-head {
    display: none;
  }

  .graha-ledger > div:not(.ledger-head) {
    min-height: 102px;
    padding: 18px 0;
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
  }

  .graha-ledger em {
    text-align: right;
  }

  .navamsa-summary {
    grid-template-columns: 1fr;
  }

  .navamsa-summary > div {
    min-height: 104px;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(231, 223, 198, 0.2);
  }

  .navamsa-summary > p {
    padding: 22px 0;
  }

  .navamsa-ledger .ledger-head {
    display: none;
  }

  .navamsa-ledger > div:not(.ledger-head) {
    min-height: 128px;
    padding: 18px 0;
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
  }

  .navamsa-ledger em {
    text-align: right;
  }

  .nakshatra-track {
    overflow-x: auto;
    touch-action: pan-x;
    grid-template-columns: repeat(27, 28px);
  }

  .nakshatra-focus {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .nakshatra-focus small {
    grid-column: 1 / -1;
    padding-bottom: 18px;
    text-align: left;
  }

  .dasha-now {
    grid-template-columns: 1fr;
    grid-template-areas: "small" "title" "copy";
    gap: 8px;
  }

  .dasha-now p {
    text-align: left;
  }

  .dasha-timeline {
    overflow-x: auto;
    touch-action: pan-x;
  }

  .dasha-period {
    flex-basis: 78px !important;
    flex-shrink: 0;
  }

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

  .antardasha-grid article {
    min-height: 155px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pratyantardasha-grid {
    overflow-x: auto;
    grid-template-columns: repeat(9, 98px);
    touch-action: pan-x;
  }

  .vedic-save-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .vedic-save-notice span {
    flex-basis: 100%;
  }

  .reading-outline header {
    display: grid;
    justify-content: start;
    gap: 6px;
  }

  .reading-outline section {
    grid-template-columns: 42px 1fr;
  }

  .vedic-reading-output > header {
    padding: 20px 0;
    display: grid;
    gap: 14px;
  }

  .vedic-reading-output > header b {
    text-align: left;
  }

  .vedic-reading-body {
    padding: 42px 0 52px;
    font-size: 14px;
  }

  .vedic-reading-body .reading-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .vedic-footer {
    padding-top: 28px;
    padding-bottom: 28px;
    display: grid;
    gap: 20px;
  }

  .method-dialog > h2,
  .method-dialog > p,
  .method-dialog > dl,
  .method-dialog > .dialog-confirm {
    margin-left: 24px;
    margin-right: 24px;
  }

  .method-dialog > h2 {
    font-size: 28px;
  }

  .method-dialog dl > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dialog-confirm {
    width: calc(100% - 48px);
  }
}

@media (max-width: 360px) {
  .hero-instrument {
    padding: 14px;
  }

  .instrument-caption i {
    display: none;
  }

  .result-masthead h2 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
