/* A personal almanac: indigo ink on cool paper, marigold for the one accent.
   Tiro Devanagari Hindi for display, Mukta for reading; both cover Latin and
   Devanagari, so English and Hindi share one typographic voice. */

:root {
  --paper: #F2F3F0;
  --surface: #FFFFFF;
  --ink: #1E2347;
  --ink-soft: #565B78;
  --rule: #D6D8DF;
  --sky: #8A90B0;
  --marigold: #D9822B;
  --marigold-ink: #94500F;
  --marigold-wash: #FBEBD8;
  --on-marigold: #1E2347;
  --danger: #A3302A;

  --display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
  --text: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --measure: 40rem;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12142A;
    --surface: #1A1D38;
    --ink: #E9E8F2;
    --ink-soft: #A9ABC6;
    --rule: #2E3256;
    --sky: #737AA6;
    --marigold: #F0A24A;
    --marigold-ink: #F3B061;
    --marigold-wash: #2C2740;
    --on-marigold: #12142A;
    --danger: #F08A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12142A;
  --surface: #1A1D38;
  --ink: #E9E8F2;
  --ink-soft: #A9ABC6;
  --rule: #2E3256;
  --sky: #737AA6;
  --marigold: #F0A24A;
  --marigold-ink: #F3B061;
  --marigold-wash: #2C2740;
  --on-marigold: #12142A;
  --danger: #F08A80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
html[lang="hi"] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration-color: var(--marigold); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--marigold-ink); }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 72rem; margin: 0 auto; padding: 14px var(--gutter);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.brand-name { font-family: var(--display); font-size: 22px; }
.brand-line { font-size: 13px; color: var(--ink-soft); }
.lang {
  border: 1px solid var(--rule); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font-size: 15px; min-height: 40px;
}
.lang:hover { border-color: var(--sky); }

.notice {
  max-width: 72rem; margin: 0 auto 8px; padding: 10px var(--gutter);
  font-size: 14px; color: var(--ink-soft);
}
.notice p { margin: 0; padding: 10px 14px; border-left: 3px solid var(--marigold); background: var(--marigold-wash); }

/* ---------- intake ---------- */
.intake { max-width: 34rem; margin: 0 auto; padding: 8px var(--gutter) 64px; }
.phases { display: flex; gap: 14px; align-items: center; margin: 12px 0 6px; }
.phases svg { width: 26px; height: 26px; color: var(--ink); }
.phases .current svg { width: 34px; height: 34px; color: var(--marigold); }
.step-count { font-size: 14px; color: var(--ink-soft); margin: 0 0 28px; }
.intro { color: var(--ink-soft); margin: -12px 0 28px; }

.q {
  font-family: var(--display); font-weight: 400;
  font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.005em;
}
html[lang="hi"] .q { line-height: 1.4; }
.q:focus { outline: none; }
.help { color: var(--ink-soft); margin: 0 0 24px; max-width: 32rem; }

.field { margin: 0 0 20px; }
.field > label, .label { display: block; font-weight: 500; margin: 0 0 6px; }
.input, select.input, textarea.input {
  display: block; width: 100%;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 12px 14px; min-height: 48px; font-size: 17px;
}
.input:hover { border-color: var(--sky); }
.input:focus { border-color: var(--marigold); outline: 2px solid transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--marigold) 30%, transparent); }
textarea.input { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 5.5rem 1fr 7rem; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.choice { display: grid; gap: 8px; margin: 0 0 20px; border: 0; padding: 0; }
.choice label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 12px 14px; min-height: 48px;
}
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { accent-color: var(--marigold); width: 18px; height: 18px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; border: 0; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; min-height: 40px;
  border: 1px solid var(--rule); background: var(--surface); line-height: 22px;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--marigold); outline-offset: 2px; }

.checks { display: grid; gap: 10px; margin: 8px 0 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { accent-color: var(--marigold); width: 20px; height: 20px; margin: 3px 0 0; flex: none; }
.small { font-size: 14px; color: var(--ink-soft); }

.places { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); overflow: hidden; }
.places:empty { display: none; }
.places li { padding: 10px 14px; cursor: pointer; border-top: 1px solid var(--rule); }
.places li:first-child { border-top: 0; }
.places li[aria-selected="true"], .places li:hover { background: var(--marigold-wash); }
.places .meta { color: var(--ink-soft); font-size: 14px; }
.chosen { margin: 10px 0 0; font-weight: 500; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--marigold); text-underline-offset: 3px; color: var(--ink); }

.error { color: var(--danger); font-weight: 500; margin: 0 0 16px; min-height: 0; }
.error:empty { display: none; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 17px; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--marigold); color: var(--on-marigold); }
.btn-primary:hover { background: color-mix(in srgb, var(--marigold) 88%, var(--ink)); color: var(--on-marigold); }
.btn-quiet { background: transparent; border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--sky); }
.actions .spacer { flex: 1; }

/* ---------- loading ---------- */
.loading { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 32px var(--gutter); }
.loading svg { width: 160px; height: 160px; margin: 0 auto 20px; color: var(--ink); }
.loading .spin { transform-origin: 50% 50%; animation: turn 6s linear infinite; }
@keyframes turn { to { transform: rotate(-360deg); } }

/* ---------- profile ---------- */
.profile { padding: 0 0 48px; }
.hero {
  max-width: 72rem; margin: 0 auto; padding: 16px var(--gutter) 24px;
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
}
.hero-text { align-self: center; }
.who { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0 0 10px; }
html[lang="hi"] .who { line-height: 1.3; }
.born { color: var(--ink-soft); margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 28px; }
.tag { font-size: 14px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--rule); }
.tag.warn { border-color: var(--marigold); background: var(--marigold-wash); }

.wheel-wrap { width: 100%; max-width: 620px; margin: 0 auto; }
.wheel { width: 100%; height: auto; color: var(--ink); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.three > div { padding: 16px 12px 4px 0; }
.three > div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.three dt { font-size: 14px; color: var(--ink-soft); }
.three dd { margin: 0; font-family: var(--display); font-size: clamp(17px, 5vw, 26px); line-height: 1.25; display: flex; align-items: center; gap: 0.3em; flex-wrap: wrap; hyphens: auto; overflow-wrap: anywhere; }
.three dd svg { width: 0.85em; height: 0.85em; flex: none; color: var(--marigold-ink); }
@media (max-width: 560px) {
  .three > div { padding-right: 6px; }
  .three > div + div { padding-left: 10px; }
  .three dd { display: block; }
  .three dd svg { width: 20px; height: 20px; margin: 2px 0 4px; }
}
.three dd .or { font-family: var(--text); font-size: 14px; color: var(--ink-soft); width: 100%; }
.element { margin: 16px 0 0; color: var(--ink-soft); }

.uncertain {
  max-width: var(--measure); margin: 8px auto 0; padding: 0 var(--gutter);
}
.uncertain-in { border: 1px solid var(--marigold); border-radius: 10px; padding: 18px 20px; background: var(--marigold-wash); }
.uncertain h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 6px; line-height: 1.3; }
.uncertain p { margin: 0 0 12px; }

.sec { max-width: var(--measure); margin: 0 auto; padding: 48px var(--gutter) 0; }
.sec > h2 {
  font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.2;
  margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--ink);
}
html[lang="hi"] .sec > h2 { line-height: 1.4; }
.sec h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.lede { color: var(--ink-soft); margin: -8px 0 20px; }

/* numbers */
.numbers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.lp { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: center; }
.lp-n { font-family: var(--display); font-size: 112px; line-height: 0.9; color: var(--marigold-ink); grid-row: span 2; min-width: 1.1ch; text-align: center; }
.lp-name { font-family: var(--display); font-size: 26px; line-height: 1.2; align-self: end; }
.lp .work { align-self: start; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.nums > div { padding: 12px 10px 0 0; }
.nums > div + div { border-left: 1px solid var(--rule); padding-left: 12px; }
@media (max-width: 560px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .nums > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
.nums dt { font-weight: 500; line-height: 1.3; }
.nums dd { margin: 0; }
.nums .n { font-family: var(--display); font-size: 40px; line-height: 1.1; display: block; }
.year { margin: 4px 0 0; color: var(--ink-soft); }

/* members' numbers */
.deep { border-top: 1px solid var(--rule); }
.deep-item { border-bottom: 1px solid var(--rule); }
.deep-item summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; cursor: pointer; list-style: none; min-height: 52px;
}
.deep-item summary::-webkit-details-marker { display: none; }
.deep-item summary::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: -4px; align-self: center;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(-45deg); transition: transform .15s ease;
}
.deep-item[open] summary::before { transform: rotate(45deg); }
.d-title { flex: 1; font-weight: 500; }
.d-val { font-family: var(--display); font-size: 22px; line-height: 1.2; text-align: right; color: var(--marigold-ink); }
.d-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.lock { width: 14px; height: 14px; color: var(--marigold-ink); }
.d-body { padding: 0 0 18px 20px; max-width: 36rem; }
.d-body > p { margin: 0 0 10px; }
.d-yours { margin: 14px 0; padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--marigold); }
.d-yours h3 { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin: 0 0 6px; }
.yours { margin: 0 0 8px; }
.yours:last-child { margin-bottom: 0; }
.yn { font-family: var(--display); font-size: 22px; margin-right: 6px; color: var(--marigold-ink); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.deep-foot { margin: 20px 0 0; }
.code-form label { display: block; font-weight: 500; margin: 0 0 6px; }
.code-row { display: flex; gap: 10px; max-width: 28rem; }
.code-row .input { flex: 1; min-width: 0; }
.planes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.planes li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2rem; gap: 4px 12px; align-items: center; }
.pl-name { font-weight: 500; }
.pl-bar { height: 10px; background: var(--rule); border-radius: 5px; overflow: hidden; }
.pl-bar span { display: block; height: 100%; background: var(--sky); border-radius: 5px; }
.planes li.top .pl-bar span { background: var(--marigold); }
.pl-n { font-family: var(--display); font-size: 20px; text-align: right; }
.pl-what { grid-column: 1 / -1; margin: 0; }

/* workings: shown only on review codes */
.work { display: block; margin-top: 6px; padding-left: 8px; border-left: 2px dashed var(--marigold); font-size: 13px; line-height: 1.45; color: var(--ink-soft); white-space: normal; }
.d-work { margin: 14px 0 0; padding: 12px 16px; border: 1px dashed var(--marigold); border-radius: 6px; }
.d-work h3 { font-size: 14px; font-weight: 600; color: var(--marigold-ink); margin: 0 0 6px; }
.d-work p { margin: 0 0 8px; font-size: 14px; }
.work-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.work-list li + li { margin-top: 2px; }

/* human design */
.hd { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.bodygraph { width: 150px; height: auto; color: var(--ink); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.cross { margin: 16px 0 0; color: var(--ink-soft); }

/* tarot and i ching */
.cards { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.card {
  width: 132px; aspect-ratio: 11 / 19; border: 1px solid var(--ink); border-radius: 8px;
  background: var(--surface); padding: 6px; flex: none;
}
.card-in {
  height: 100%; border: 1px solid var(--marigold); border-radius: 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 8px; text-align: center;
}
.card .roman { font-family: var(--display); font-size: 22px; }
.card svg { width: 54px; height: 54px; color: var(--marigold); }
.card .cname { font-family: var(--display); font-size: 15px; line-height: 1.25; }
.card .cname small { display: block; font-family: var(--text); font-size: 12px; color: var(--ink-soft); }
.card-art { margin: 0; width: 150px; flex: none; }
.card-art img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); }
.card-art .cname { margin-top: 8px; font-family: var(--display); font-size: 16px; line-height: 1.3; text-align: center; }
.card-art .cname small { display: block; font-family: var(--text); font-size: 13px; color: var(--ink-soft); }
.card-art figcaption { text-align: center; }
.card-art figcaption .cname { display: block; }
.ckey { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.today-card { display: flex; align-items: center; gap: 10px; }
.mini-card { width: 36px; height: auto; border-radius: 3px; border: 1px solid var(--rule); flex: none; }
.mini-card.reversed { transform: rotate(180deg); }
.hexa { display: flex; gap: 16px; align-items: center; }
.hexa svg { width: 72px; height: 72px; color: var(--ink); flex: none; }
.hexa p { margin: 0; }
.cap { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.minor { color: var(--ink-soft); font-size: 15px; }

/* before birth: a timeline running toward the birth */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; border-left: 1px solid var(--sky); }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.timeline li.solar::before { background: var(--ink); }
.timeline li.birth::before { background: var(--marigold); border-color: var(--marigold); }
.timeline li.window::before { border: 1.5px dashed var(--marigold-ink); background: var(--paper); }
.timeline li.window .what { color: var(--marigold-ink); }
.timeline li.eclipse::before { box-shadow: 0 0 0 3px var(--marigold-wash), 0 0 0 4px var(--marigold); }
.pre-deep { margin-top: 28px; }
.sc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sc-list li { display: grid; grid-template-columns: 9rem auto 1fr; gap: 10px; align-items: center; }
.sc-list .pt { display: inline-flex; align-items: center; gap: 8px; }
.sc-list svg { width: 16px; height: 16px; flex: none; }
.sc-list .r { color: var(--marigold-ink); font-weight: 600; text-decoration: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font-size: 14px; color: var(--ink-soft); display: block; }
.timeline .what { font-weight: 500; display: block; }

/* today */
.today { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.today svg { width: 96px; height: 96px; color: var(--ink); }
.today .facts dd { font-weight: 500; }

/* chart details */
details.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.more summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: inside; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table.positions { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.positions th, .positions td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.positions th { font-weight: 500; color: var(--ink-soft); font-size: 14px; }
.positions .pt { display: inline-flex; align-items: center; gap: 8px; }
.positions svg { width: 16px; height: 16px; flex: none; }
.positions .r { color: var(--marigold-ink); font-weight: 600; margin-left: 4px; text-decoration: none; cursor: help; }
.positions tr.with-line td { border-bottom: 0; padding-bottom: 0; }
.positions tr.line td { white-space: normal; padding: 2px 0 10px 24px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.details-lede { margin: 0 0 12px; }
.invite { margin: 4px 0 20px; padding: 14px 16px; background: var(--marigold-wash); border-radius: 6px; }
.invite p { margin: 0 0 12px; }

/* coming up */
.ahead-year { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: start; margin: 0 0 20px; }
.ay-n { font-family: var(--display); font-size: 72px; line-height: 0.95; color: var(--marigold-ink); min-width: 1.1ch; text-align: center; }
.ay-name { font-family: var(--display); font-size: 22px; line-height: 1.25; margin: 4px 0 4px; }
.ahead-year p { margin: 0; }
.ahead-month { margin: 0 0 20px; font-weight: 500; }
.months, .dates { list-style: none; margin: 8px 0 24px; padding: 0; border-top: 1px solid var(--rule); }
.months li, .dates li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.months .when, .dates .when { color: var(--ink-soft); font-size: 15px; grid-row: span 3; }
.months .what, .dates .what { font-weight: 500; }
.dates .small, .months .work, .dates .work { grid-column: 2; }
.year-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 24px; }
.yc-imgs { display: flex; gap: 6px; }
.yc-imgs img { width: 64px; height: auto; border-radius: 4px; border: 1px solid var(--rule); }
.yc-name { font-family: var(--display); font-size: 19px; line-height: 1.3; margin: 2px 0 2px; }
.yc-name small { font-family: var(--text); font-size: 13px; color: var(--ink-soft); margin-left: 4px; }
.yc-then { font-family: var(--text); font-size: 14px; color: var(--ink-soft); }
.year-card p.small { margin: 0; }
.ahead-lock { margin: 0 0 24px; padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--marigold); }
.ahead-lock p { margin: 0 0 12px; }
.lock-line { display: flex; gap: 10px; align-items: flex-start; }
.lock-line .lock { flex: none; margin-top: 5px; }
.pred { margin: 0 0 24px; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); font-size: 18px; }
.pred p { margin: 0 0 6px; }
.pred footer { font-size: 14px; color: var(--ink-soft); }
.ahead-cta { margin: 0; }
.ahead-cta a { color: var(--ink); text-decoration-color: var(--marigold); text-underline-offset: 3px; font-weight: 500; }

/* book */
.services { list-style: none; margin: 0 0 24px; padding: 0; }
.services li { padding: 16px 0; border-top: 1px solid var(--rule); }
.services li:last-child { border-bottom: 1px solid var(--rule); }
.services .fmt { font-size: 14px; color: var(--ink-soft); display: block; margin: 0 0 4px; }
.services p { margin: 0; }
.services li.lead h3 { color: var(--marigold-ink); }

.foot { max-width: var(--measure); margin: 56px auto 0; padding: 20px var(--gutter) 40px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); }
.foot p { margin: 0 0 6px; }

/* the one orchestrated moment: the wheel engraves itself */
@media (prefers-reduced-motion: no-preference) {
  .wheel.draw .ring { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: engrave 1.1s cubic-bezier(.4,.1,.2,1) forwards; }
  .wheel.draw .ticks, .wheel.draw .signs, .wheel.draw .cusps { opacity: 0; animation: appear .6s ease-out .7s forwards; }
  .wheel.draw .body { opacity: 0; animation: appear .45s ease-out forwards; animation-delay: calc(1s + var(--i) * 70ms); }
  .wheel.draw .aspects { opacity: 0; animation: appear .8s ease-out 2s forwards; }
}
@keyframes engrave { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding-top: 24px; }
  .hero-text { order: 2; }
  .wheel-wrap { order: 1; }
  .who { font-size: 56px; }
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .q { font-size: 40px; }
}
@media (max-width: 899px) {
  .hero-text .tags { margin-bottom: 4px; }
}
@media (max-width: 480px) {
  .sc-list li { grid-template-columns: 7.5rem 1fr; }
  .months li, .dates li { grid-template-columns: minmax(0, 1fr); }
  .months .when, .dates .when { grid-row: auto; }
  .dates .small, .months .work, .dates .work { grid-column: 1; }
  .ay-n { font-size: 60px; }
  .sc-list li .small { grid-column: 1 / -1; margin-top: -4px; }
  .planes li { grid-template-columns: 6rem minmax(0, 1fr) 1.75rem; }
  .d-body { padding-left: 0; }
  .d-val { font-size: 19px; }
  .who { font-size: 36px; }
  .q { font-size: 29px; }
  .lp-n { font-size: 88px; }
  .nums .n { font-size: 32px; }
  .hd { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; }
  .bodygraph { width: 104px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dt { font-size: 14px; margin-top: 10px; }
  .facts dt:first-child { margin-top: 0; }
  .today { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .today svg { width: 64px; height: 64px; }
  .wheel-wrap { width: calc(100% + 16px); margin: 0 -8px; max-width: none; }
  .row { grid-template-columns: 4.5rem 1fr 6rem; }
  .sec > h2 { font-size: 28px; }
  .card-art { width: 128px; }
  .btn { padding: 12px 22px; }
}
@media print {
  .bar .lang, .actions, .notice { display: none; }
  body { background: #fff; }
}
