@font-face {
  font-family: "Archivo";
  src: url("assets/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("assets/cinzel-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ececea;
  --surface: #e1e1de;
  --ink: #151618;
  --muted: #5c5e60;
  --line: rgba(21, 22, 24, 0.18);
  --line-strong: rgba(21, 22, 24, 0.56);
  --accent: #303235;
  --on-accent: #f5f5f2;
  --error: #982b39;
  --nav-bg: rgba(236, 236, 234, 0.88);
  --selection: rgba(48, 50, 53, 0.22);
  --max-width: 1440px;
  --page-pad: clamp(1rem, 3vw, 2.75rem);
  --nav-height: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --chapter-progress: 0.167;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1c1d1f;
    --ink: #efefec;
    --muted: #abadad;
    --line: rgba(239, 239, 236, 0.16);
    --line-strong: rgba(239, 239, 236, 0.52);
    --accent: #deded9;
    --on-accent: #17181a;
    --error: #ff9aa8;
    --nav-bg: rgba(18, 19, 21, 0.88);
    --selection: rgba(222, 222, 217, 0.22);
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

#contenuto {
  height: 100%;
  overflow-y: auto;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

img,
picture,
canvas {
  display: block;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 70;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.chapter-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: var(--line);
}

.chapter-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--chapter-progress));
  transform-origin: left;
  background: var(--accent);
  transition: transform 500ms var(--ease-out);
}

.site-header {
  position: fixed;
  inset: 3px 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--nav-height);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.wordmark {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
  text-decoration: none;
}

.wordmark .mark {
  width: 1.35em;
  height: 1.46em;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  white-space: nowrap;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 560;
  text-decoration: none;
  text-underline-offset: 0.32rem;
}

.nav-link:hover,
.nav-link:focus-visible {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), filter 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(0.94);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button:focus-visible,
.dialog-close:focus-visible,
.text-button:focus-visible,
.flow-back:focus-visible,
.chapter-rail button:focus-visible,
input:focus-visible,
.place-suggestions button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button-small {
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  font-size: 0.74rem;
}

.chapter-rail {
  position: fixed;
  top: 50%;
  right: 1.2rem;
  z-index: 45;
  display: grid;
  gap: 0.7rem;
  transform: translateY(-50%);
}

.chapter-rail button {
  width: 22px;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chapter-rail button::before {
  content: "";
  display: block;
  width: 9px;
  height: 1px;
  margin-left: auto;
  background: var(--line-strong);
  transition: width 260ms var(--ease-out), background 260ms ease;
}

.chapter-rail button.is-active::before {
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.next-control {
  position: fixed;
  right: var(--page-pad);
  bottom: 1.25rem;
  z-index: 55;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}

.next-control span {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  animation: arrow-nudge 1.8s var(--ease-out) infinite;
}

.next-control:hover {
  transform: translateY(2px);
}

.next-control.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.story-step {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.enter {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 720ms var(--ease-out), transform 850ms var(--ease-out);
}

.chapter.is-current .enter {
  opacity: 1;
  transform: translateY(0);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(480px, 1.09fr);
  height: 100dvh;
  padding: var(--nav-height) 0 0 var(--page-pad);
  overflow: hidden;
}

.hero-copy {
  align-self: end;
  padding: 0 clamp(2rem, 6vw, 7rem) clamp(3rem, 8vh, 6rem) 0;
}

.hero h1 {
  max-width: 10.8ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.6rem, 5.5vw, 5.7rem);
  font-stretch: 87%;
  font-weight: 680;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.hero-intro {
  max-width: 32rem;
  margin: 1.6rem 0 1.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  height: calc(100dvh - var(--nav-height));
  margin: 0;
  overflow: hidden;
  background: #111012;
}

.hero-visual picture,
.hero-visual img {
  width: 100%;
  height: 100%;
}

.hero-visual img {
  object-fit: cover;
  object-position: 50% 44%;
  filter: contrast(1.03) brightness(0.98);
  transition: transform 1.4s var(--ease-out);
}

.hero.is-current .hero-visual img {
  transform: scale(1.015);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 42%);
  pointer-events: none;
}

.constellation-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-constellation {
  opacity: 0.8;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  height: 100dvh;
  padding: var(--nav-height) 0 0 var(--page-pad);
  overflow: hidden;
}

.manifesto-inner {
  align-self: center;
  padding-bottom: clamp(1rem, 4vh, 3rem);
}

.manifesto-visual {
  position: relative;
  height: calc(100dvh - var(--nav-height));
  margin: 0;
  overflow: hidden;
  background: #111012;
}

.manifesto-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.05) brightness(0.97);
}

.manifesto-lede {
  max-width: 30rem;
  margin: 0 0 clamp(2rem, 5vh, 4rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.45;
}

.manifesto h2 {
  max-width: 11ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(4.2rem, 9.8vw, 10rem);
  font-stretch: 84%;
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.manifesto-note {
  max-width: 30rem;
  margin: 2rem 0 0;
  color: var(--muted);
}

.story {
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
}

.story-visual {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  background: #111012;
}

.story-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 750ms ease, transform 1.4s var(--ease-out);
}

.story-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) brightness(0.98);
}

.story-image[data-scene-image="breed"] img {
  object-position: 43% 48%;
}

.story-image[data-scene-image="moment"] img {
  object-position: 50% 42%;
}

.story-image[data-scene-image="portrait"] img {
  object-position: 53% 39%;
}

.story-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11, 10, 12, 0.02), rgba(11, 10, 12, 0.24));
  pointer-events: none;
}

.story-constellation {
  opacity: 0.76;
  transition: opacity 700ms ease;
}

.constellation-name {
  position: absolute;
  top: calc(var(--nav-height) + 1.25rem);
  right: 1.25rem;
  z-index: 4;
  margin: 0;
  color: rgba(245, 245, 242, 0.72);
  font-size: 0.6rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-visual[data-active-scene="moment"] .story-constellation {
  opacity: 0.84;
}

.story-visual[data-active-scene="portrait"] .story-constellation {
  opacity: 0.68;
}

.story-copy {
  position: relative;
  background: var(--bg);
}

.story-step {
  display: flex;
  height: 100dvh;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) clamp(2.5rem, 6vw, 6rem) 3rem;
  opacity: 0.2;
  transition: opacity 500ms ease;
}

.story-step.is-active {
  opacity: 1;
}

.story-text {
  max-width: 32rem;
}

.story-text h2 {
  max-width: 9ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.4rem, 6vw, 6.6rem);
  font-stretch: 86%;
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.89;
}

.story-text p {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.56;
}

.birth-coordinates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 540;
  letter-spacing: -0.04em;
}

.chart-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(390px, 1.2fr) minmax(260px, 0.82fr);
  grid-template-rows: 1fr auto;
  height: 100dvh;
  overflow: hidden;
  gap: 1.5rem clamp(2rem, 4vw, 5rem);
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2.5rem) var(--page-pad) 2.5rem;
}

.chart-heading h2 {
  max-width: 8ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.2rem, 5.6vw, 6.4rem);
  font-stretch: 85%;
  font-weight: 650;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.chart-heading > p:last-child {
  max-width: 23rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
}

.chart-disc {
  position: relative;
  grid-row: 1 / 3;
  grid-column: 2;
  width: min(43vw, 650px);
  max-width: 100%;
  aspect-ratio: 1;
  justify-self: center;
}

.astro-chart {
  width: 100%;
  height: 100%;
}

.chart-map-name {
  position: absolute;
  right: 4%;
  bottom: 5%;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reading {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.reading:last-child {
  border-bottom: 0;
}

.reading p,
.result-label {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.reading h3 {
  max-width: 13ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-stretch: 90%;
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.reading span {
  display: block;
  max-width: 17rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.chart-identity {
  align-self: end;
}

.chart-identity strong {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2rem, 3.3vw, 3.8rem);
  font-stretch: 84%;
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.chart-identity span {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.statement {
  position: relative;
  display: flex;
  height: 100dvh;
  align-items: end;
  overflow: hidden;
  background: #111012;
  color: #f4f1f2;
}

.statement-image,
.statement-scrim {
  position: absolute;
  inset: 0;
}

.statement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 33%;
  filter: contrast(1.03) brightness(0.96);
}

.statement-scrim {
  background: linear-gradient(90deg, rgba(12, 10, 12, 0.84), rgba(12, 10, 12, 0.14) 66%), linear-gradient(0deg, rgba(12, 10, 12, 0.58), transparent 56%);
}

.statement-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad);
}

.statement-copy p {
  margin: 0 0 1rem;
  color: #c9c3c6;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
}

.statement-copy h2 {
  max-width: 10.5ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.8rem, 8.6vw, 9rem);
  font-stretch: 84%;
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.final-section {
  position: relative;
  display: flex;
  height: 100dvh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 3rem) var(--page-pad) 6rem;
}

.final-copy {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 66rem;
  justify-items: center;
  text-align: center;
}

.final-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(4rem, 8.5vw, 9rem);
  font-stretch: 84%;
  font-weight: 640;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.final-copy p {
  max-width: 35rem;
  margin: 1.5rem 0 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.final-copy small {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.final-constellation {
  z-index: 1;
  opacity: 0.16;
}

.site-footer {
  position: absolute;
  right: var(--page-pad);
  bottom: 1.5rem;
  left: var(--page-pad);
  z-index: 2;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 2fr;
  gap: 1.5rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .wordmark {
  color: var(--ink);
}

.credits a {
  text-underline-offset: 0.18rem;
}

.profile-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
}

.profile-dialog::backdrop {
  background: var(--bg);
}

.dialog-shell {
  display: grid;
  grid-template-rows: var(--nav-height) minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}

.dialog-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-height);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flow-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 680;
}

.dialog-close,
.text-button,
.flow-back {
  padding: 0 0 0.25rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 680;
  cursor: pointer;
}

.dialog-close {
  justify-self: end;
}

.flow-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.flow-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.143);
  transform-origin: left;
  background: var(--accent);
  transition: transform 520ms var(--ease-out);
}

.dialog-shell.showing-result .flow-status,
.dialog-shell.showing-result .flow-progress {
  visibility: hidden;
}

.dialog-shell.showing-result.showing-premium .flow-status,
.dialog-shell.showing-result.showing-premium .flow-progress {
  visibility: visible;
}

#flow-separator[hidden] {
  display: none;
}

.profile-flow,
.result-panel {
  grid-row: 2;
  min-height: 0;
}

.profile-flow {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.onboarding-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.onboarding-step {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(4rem, 9vw, 11rem);
  align-items: center;
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 6rem) var(--page-pad);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateX(2.5rem);
  pointer-events: none;
  transition: opacity 360ms ease, transform 520ms var(--ease-out), visibility 0s linear 520ms;
}

.onboarding-step.is-before {
  transform: translateX(-2.5rem);
}

.onboarding-step.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 80ms, 80ms, 0s;
}

.step-copy h2,
.result-copy > h2,
.loading-copy h2 {
  max-width: 10ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.4rem, 6.2vw, 6.8rem);
  font-stretch: 85%;
  font-weight: 650;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.step-copy > p:last-child {
  max-width: 29rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
}

.step-answer {
  width: 100%;
  max-width: 38rem;
  justify-self: end;
}

.flow-field {
  display: grid;
  gap: 0.5rem;
}

.flow-field label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.flow-field label span {
  margin-left: 0.25rem;
  font-weight: 450;
}

.flow-field input {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.25;
  outline: none;
  transition: border-color 180ms ease;
}

.flow-field input {
  min-height: 58px;
}

.flow-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 76%, transparent);
  opacity: 1;
}

.flow-field input:focus {
  border-color: var(--accent);
}

.flow-field input[aria-invalid="true"] {
  border-color: var(--error);
}

.place-autocomplete {
  position: relative;
}

.place-suggestions {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  margin: 0.4rem 0 0;
  padding: 0.35rem 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  list-style: none;
}

.place-suggestions button {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.place-suggestions button:hover {
  background: var(--surface);
}

.place-suggestions span {
  color: var(--muted);
  font-size: 0.65rem;
}

.flow-note {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.birth-fields {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1.4rem 1.25rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.choice-list {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 64px;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 520;
  line-height: 1.15;
  cursor: pointer;
  transition: color 180ms ease, padding-left 260ms var(--ease-out);
}

.choice-row:first-of-type {
  border-top: 1px solid var(--line);
}

.choice-row:hover,
.choice-row:has(input:checked) {
  padding-left: 0.45rem;
  color: var(--ink);
}

.choice-row input {
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
  transition: border-width 180ms ease, border-color 180ms ease;
}

.choice-row input:checked {
  border: 6px solid var(--accent);
}

.step-error {
  min-height: 1rem;
  margin: 0.8rem 0 0;
  color: var(--error);
  font-size: 0.7rem;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 0 var(--page-pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.flow-back {
  justify-self: start;
}

.flow-next {
  grid-column: 2;
  min-width: 9.5rem;
  justify-self: end;
}

.premium-panel {
  height: 100%;
  overflow: hidden;
  background: #ececea;
  color: #151618;
}

.premium-questions {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}

.premium-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.premium-step {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(4rem, 9vw, 11rem);
  align-items: center;
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 6rem) var(--page-pad);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateX(2.5rem);
  pointer-events: none;
  transition: opacity 360ms ease, transform 520ms var(--ease-out), visibility 0s linear 520ms;
}

.premium-step.is-before {
  transform: translateX(-2.5rem);
}

.premium-step.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 80ms, 80ms, 0s;
}

.premium-step .step-copy h2 {
  max-width: 10ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.4rem, 6.2vw, 6.8rem);
  font-stretch: 85%;
  font-weight: 650;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.premium-step .step-copy > p:last-child {
  max-width: 29rem;
  margin: 1.35rem 0 0;
  color: #5c5e60;
}

.premium-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 0 var(--page-pad);
  border-top: 1px solid rgba(21, 22, 24, 0.18);
  background: #ececea;
}

.premium-actions .flow-back {
  color: #151618;
}

.premium-panel .choice-row {
  border-color: rgba(21, 22, 24, 0.18);
  color: #5c5e60;
}

.premium-panel .choice-row:hover,
.premium-panel .choice-row:has(input:checked) {
  color: #151618;
}

.premium-panel .choice-row input {
  border-color: rgba(21, 22, 24, 0.56);
}

.premium-panel .choice-row input:checked {
  border-color: #151618;
}

.premium-panel .step-error {
  color: #982b39;
}

.premium-preview,
.premium-paywall {
  height: 100%;
  overflow-y: auto;
  padding: clamp(2.5rem, 7vw, 7rem) var(--page-pad);
}

.premium-reading {
  width: min(100%, 46rem);
  margin: 0 auto;
}

.premium-reading h2 {
  max-width: 10ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  font-stretch: 85%;
  font-weight: 650;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.premium-provenance,
.premium-local-note,
.premium-payment-note {
  color: #5c5e60;
  font-size: 0.72rem;
}

.premium-provenance {
  margin: 1.75rem 0 0;
}

.premium-local-note {
  margin: 0.4rem 0 2.5rem;
}

.premium-sample {
  max-width: 38rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(21, 22, 24, 0.56);
}

.premium-sample h3 {
  margin: 0 0 0.9rem;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}

.premium-sample p {
  max-width: 38rem;
  margin: 0 0 1rem;
  color: #303235;
  font-size: 0.95rem;
  line-height: 1.65;
}

.premium-reading .text-button {
  display: block;
  margin-top: 1.5rem;
  color: #151618;
}

.premium-chapters {
  display: grid;
  gap: 0;
  max-width: 38rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style-position: inside;
  border-top: 1px solid rgba(21, 22, 24, 0.56);
}

.premium-chapters li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(21, 22, 24, 0.18);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 520;
}

.premium-price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  max-width: 24rem;
  margin: 0 0 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 22, 24, 0.56);
  font-size: 0.75rem;
  font-weight: 700;
}

.premium-price strong {
  font-family: "Archivo", sans-serif;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.premium-price p {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: #5c5e60;
  font-size: 0.7rem;
  font-weight: 500;
}

.premium-reading .button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.premium-payment-note {
  margin: 0.9rem 0 0;
}

.result-panel {
  height: 100%;
  overflow: hidden;
  background: #ececea;
  color: #151618;
}

.result-loading,
.result-success,
.result-error {
  height: 100%;
  background: #ececea;
  color: #151618;
}

.result-loading,
.result-error {
  display: grid;
  place-items: center;
  padding: var(--page-pad);
}

.result-panel .kicker,
.result-label {
  color: #151618;
}

.loading-copy {
  width: min(100%, 48rem);
}

.loading-copy h2 {
  max-width: 11ch;
}

.loading-lines {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 31rem);
  margin-top: 2.5rem;
}

.loading-lines span {
  display: block;
  height: 1px;
  transform: scaleX(0.15);
  transform-origin: left;
  background: rgba(21, 22, 24, 0.56);
  animation: loading-line 1.3s var(--ease-out) infinite alternate;
}

.loading-lines span:nth-child(2) {
  width: 76%;
  animation-delay: 160ms;
}

.loading-lines span:nth-child(3) {
  width: 48%;
  animation-delay: 320ms;
}

.result-success {
  display: block;
  overflow-y: auto;
}

.result-layout,
.result-footer {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.result-layout {
  display: grid;
  grid-template-areas:
    "identity map readings"
    "identity cta readings";
  grid-template-columns: minmax(13.75rem, 0.8fr) minmax(0, 40rem) minmax(17.5rem, 28rem);
  grid-template-rows: auto auto;
  gap: 1rem clamp(1.25rem, 3vw, 3rem);
  min-height: 100%;
  padding: clamp(1rem, 3vw, 3rem) var(--page-pad);
  align-content: center;
  box-sizing: border-box;
}

.result-map {
  grid-area: map;
  /* Reserve room for the dialog header, CTA, and result padding. */
  width: min(100%, 40rem, calc(100dvh - 14rem));
  aspect-ratio: 1;
  justify-self: center;
}

.result-map .natal-wheel,
.result-map .natal-wheel-svg {
  width: 100%;
  height: 100%;
}

.result-map .natal-wheel-svg {
  display: block;
}

.result-identity {
  display: flex;
  flex-direction: column;
  grid-area: identity;
  gap: 2rem;
  align-self: center;
}

.result-identity .result-copy {
  order: -1;
}

#result-meta {
  margin: 0;
  color: #5c5e60;
  font-size: 0.68rem;
  white-space: pre-line;
}

.result-readings {
  display: flex;
  flex-direction: column;
  grid-area: readings;
  align-self: center;
}

.natal-wheel-svg .natal-wheel-symbol {
  font-family: "Noto Sans Symbols 2", "Noto Sans Symbols", "Segoe UI Symbol", "DejaVu Sans", "Arial Unicode MS", sans-serif;
}

.natal-wheel-svg .natal-wheel-line {
  vector-effect: non-scaling-stroke;
}

.natal-wheel-svg[data-animate="true"] .reveal-wedge,
.natal-wheel-svg[data-animate="true"] .reveal-structure,
.natal-wheel-svg[data-animate="true"] .reveal-planet {
  transform-box: view-box;
  transform-origin: 300px 300px;
}

@media (prefers-reduced-motion: no-preference) {
  .natal-wheel-svg[data-animate="true"] .reveal-wedge {
    animation: natal-wheel-wave 620ms ease-in-out both;
    animation-delay: calc(var(--wedge-index) * 62ms);
  }

  .natal-wheel-svg[data-animate="true"] .reveal-structure {
    animation: natal-wheel-structure 700ms ease-in-out 780ms both;
  }

  .natal-wheel-svg[data-animate="true"] .reveal-planet {
    animation: natal-wheel-drift 520ms ease-out both;
    animation-delay: calc(1050ms + (var(--planet-index) * 42ms));
  }

  .result-success.is-result-visible .result-cta {
    /* Intentionally follows the natal reveal. */
    animation: result-cta-enter 600ms var(--ease-out) 2000ms both;
  }
}

@keyframes natal-wheel-wave {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes natal-wheel-structure {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes natal-wheel-drift {
  from { opacity: 0; transform: scale(0.965); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes result-cta-enter {
  0% { visibility: hidden; opacity: 0; transform: translateY(0.75rem); }
  0.01% { visibility: visible; opacity: 0; transform: translateY(0.75rem); }
  100% { visibility: visible; opacity: 1; transform: translateY(0); }
}

.result-copy > h2 {
  max-width: 11ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.6rem, 5vw, 6rem);
  font-stretch: 85%;
  font-weight: 650;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.error-copy {
  width: min(100%, 48rem);
}

.error-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.4rem, 6.2vw, 6.8rem);
  font-stretch: 85%;
  font-weight: 650;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.error-copy > p:not(.kicker) {
  max-width: 32rem;
  margin: 1.4rem 0 0;
  color: #5c5e60;
}

.result-panel .button {
  border-color: #151618;
  background: #151618;
  color: #ececea;
}

.error-copy .button {
  margin-top: 1.5rem;
}

.result-reading-primary article,
.result-reading-secondary article {
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(21, 22, 24, 0.18);
}

.result-reading-primary h3,
.result-reading-secondary h3 {
  margin: 0 0 0.55rem;
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-reading-primary p,
.result-reading-secondary p {
  margin: 0;
  color: #5c5e60;
  font-size: 0.84rem;
  line-height: 1.55;
}

.result-cta {
  display: grid;
  grid-area: cta;
  gap: 0.65rem;
  width: min(100%, 30rem);
  justify-self: center;
  align-self: start;
}

.result-cta .button {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 54px;
  overflow: hidden;
  border-color: #151618;
  border-radius: 0;
  background: #151618;
  color: #ececea;
  filter: none;
  transition: color 360ms var(--ease-out), transform 220ms var(--ease-out);
}

.result-cta .button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  transform: translateX(-101%);
  background: #ececea;
  transition: transform 360ms var(--ease-out);
}

.result-cta-label,
.result-cta-arrow {
  position: relative;
  z-index: 1;
}

.result-cta-arrow {
  margin-left: 0.7rem;
  transition: transform 260ms var(--ease-out);
}

.result-cta .button:focus-visible,
.result-cta .button:focus-visible::before {
  color: #151618;
  transform: translateX(0);
}

.result-cta .button:focus-visible {
  outline-color: #151618;
}

.result-cta .button:focus-visible .result-cta-arrow {
  transform: translateX(6px);
}

@media (hover: hover) and (pointer: fine) {
  .result-cta .button:hover,
  .result-cta .button:hover::before {
    color: #151618;
    transform: translateX(0);
  }

  .result-cta .button:hover .result-cta-arrow {
    transform: translateX(6px);
  }
}

.result-cta .button:active {
  transform: translateY(1px) scale(0.99);
}

.result-cta-helper {
  margin: 0;
  color: #5c5e60;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.result-footer {
  padding: 1.5rem var(--page-pad) 3rem;
}

.result-disclaimer {
  max-width: 38rem;
  margin: 0;
  color: #5c5e60;
  font-size: 0.66rem;
}

.result-panel .text-button {
  margin-top: 1.6rem;
  color: #151618;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 80;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@keyframes loading-line {
  from { transform: scaleX(0.15); opacity: 0.45; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 60px;
  }

  .nav-link,
  .chapter-rail {
    display: none;
  }

  .site-header {
    padding: 0 1rem;
  }

  .button-small {
    min-height: 38px;
    padding-inline: 0.75rem;
    font-size: 0.67rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    height: 100dvh;
    padding: var(--nav-height) 1rem 1.25rem;
  }

  .hero-visual {
    grid-row: 1;
    min-height: 0;
    height: 100%;
    margin: 0 -1rem;
  }

  .hero-copy {
    grid-row: 2;
    align-self: end;
    padding: 1.25rem 0 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 12vw, 4.6rem);
    line-height: 0.92;
  }

  .hero-intro {
    margin: 0.85rem 0 1rem;
    font-size: 0.9rem;
  }

  .kicker {
    margin-bottom: 0.65rem;
    font-size: 0.58rem;
  }

  .manifesto {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    height: 100dvh;
    padding: var(--nav-height) 1rem 1.5rem;
  }

  .manifesto-visual {
    grid-row: 1;
    min-height: 0;
    height: 100%;
    margin: 0 -1rem;
  }

  .manifesto-visual img {
    object-position: 50% 22%;
  }

  .manifesto-inner {
    grid-row: 2;
    align-self: end;
    padding: 1.25rem 0 0;
  }

  .manifesto-lede {
    max-width: 27rem;
    margin-bottom: 1.4rem;
    font-size: 0.92rem;
  }

  .manifesto h2 {
    font-size: clamp(2.9rem, 13vw, 5.4rem);
  }

  .manifesto-note {
    max-width: 21rem;
    margin-top: 1rem;
    padding-right: 3.5rem;
    font-size: 0.84rem;
  }

  .story-grid {
    display: block;
  }

  .story-visual {
    z-index: 0;
  }

  .story-vignette {
    background: linear-gradient(180deg, rgba(10, 9, 11, 0.08), rgba(10, 9, 11, 0.08) 42%, rgba(10, 9, 11, 0.92) 88%, rgba(10, 9, 11, 0.98));
  }

  .story-copy {
    z-index: 4;
    margin-top: -100dvh;
    background: transparent;
    color: #f4f1f2;
  }

  .story-step {
    height: 100dvh;
    align-items: end;
    padding: calc(var(--nav-height) + 3rem) 1rem 4.5rem;
    opacity: 1;
  }

  .story-step:not(.is-active) .story-text {
    opacity: 0.2;
  }

  .story-text {
    max-width: 31rem;
    transition: opacity 420ms ease;
  }

  .story-text h2 {
    max-width: 9ch;
    color: #f4f1f2;
    font-size: clamp(3.5rem, 15.5vw, 6.5rem);
  }

  .story-text p {
    max-width: 28rem;
    color: #c8c2c5;
    font-size: 0.94rem;
  }

  .birth-coordinates {
    border-color: rgba(244, 241, 242, 0.45);
    color: #f4f1f2;
  }

  .chart-section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.45rem;
    align-content: center;
    height: 100dvh;
    padding: calc(var(--nav-height) + 1rem) 1rem 1rem;
  }

  .chart-heading {
    grid-row: 1;
  }

  .chart-heading h2 {
    max-width: 10.5ch;
    font-size: clamp(2.8rem, 12vw, 4.7rem);
  }

  .chart-heading > p:last-child {
    margin-top: 0.65rem;
    font-size: 0.82rem;
  }

  .chart-disc {
    grid-row: 2;
    grid-column: 1;
    width: min(70vw, 315px);
    margin: 0 auto;
  }

  .chart-identity {
    grid-row: 3;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 0.25rem;
  }

  .chart-identity strong {
    font-size: 2rem;
  }

  .chart-identity span {
    margin: 0;
    text-align: right;
  }

  .readings {
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    border-top: 1px solid var(--line);
  }

  .reading {
    padding: 0.7rem 0 0;
    border-bottom: 0;
  }

  .reading h3 {
    font-size: 0.84rem;
  }

  .reading p {
    font-size: 0.5rem;
    letter-spacing: 0.05em;
  }

  .reading span {
    display: none;
  }

  .statement-copy {
    padding: 6rem 1rem 4rem;
  }

  .statement-copy h2 {
    font-size: clamp(3.6rem, 16vw, 6.8rem);
  }

  .statement-image img {
    object-position: 58% 34%;
  }

  .statement-scrim {
    background: linear-gradient(0deg, rgba(10, 9, 11, 0.93), rgba(10, 9, 11, 0.14) 68%);
  }

  .final-section {
    padding: calc(var(--nav-height) + 2rem) 1rem 6.5rem;
  }

  .final-copy h2 {
    font-size: clamp(3.6rem, 16vw, 6.8rem);
  }

  .site-footer {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    grid-template-columns: 1fr 1fr;
  }

  .credits {
    display: none;
  }

  .dialog-header {
    padding: 0 1rem;
  }

  .onboarding-step,
  .premium-step {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-content: start;
    padding: 2rem 1rem;
  }

  .step-copy h2,
  .loading-copy h2 {
    max-width: 11ch;
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .step-copy > p:last-child {
    margin-top: 0.85rem;
    font-size: 0.86rem;
  }

  .step-answer {
    max-width: none;
    justify-self: stretch;
  }

  .choice-row {
    min-height: 56px;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .onboarding-actions,
  .premium-actions {
    min-height: 72px;
    padding: 0 1rem;
  }

  .premium-preview,
  .premium-paywall {
    padding: 2rem 1rem;
  }

  .premium-reading h2 {
    font-size: clamp(3.2rem, 14vw, 5.4rem);
  }

  .flow-next {
    min-width: 8.5rem;
  }

  .result-layout {
    grid-template-areas: none;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1.5rem;
    min-height: 0;
    padding: 2rem 1rem;
  }

  .result-identity,
  .result-readings {
    display: contents;
  }

  .result-identity .result-copy {
    order: initial;
  }

  .result-map,
  .result-identity,
  .result-readings,
  .result-cta {
    grid-area: auto;
  }

  .result-map {
    width: min(100%, 24rem);
    margin: 0 auto;
  }

  #result-meta {
    margin: -0.75rem 0 0;
    text-align: center;
  }

  .result-copy > h2 {
    font-size: clamp(3.2rem, 14vw, 5.4rem);
  }

  .result-footer {
    padding: 1.5rem 1rem 3rem;
  }
}

@media (max-width: 560px) {
  .button {
    min-height: 48px;
  }

  .birth-fields {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .field-wide {
    grid-column: auto;
  }

  .flow-field input {
    font-size: 1.15rem;
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .onboarding-step,
  .premium-step {
    gap: 1.2rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .step-copy h2,
  .loading-copy h2 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .step-copy > p:last-child {
    font-size: 0.76rem;
  }

  .choice-row {
    min-height: 48px;
    padding: 0.55rem 0;
    font-size: 0.9rem;
  }

  .onboarding-actions,
  .premium-actions {
    min-height: 62px;
  }

  .hero-copy {
    padding-top: 0.8rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
  }

  .hero-intro {
    margin: 0.55rem 0 0.7rem;
    font-size: 0.79rem;
  }

  .manifesto-lede {
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }

  .manifesto h2 {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
  }

  .manifesto-note {
    margin-top: 1rem;
    font-size: 0.7rem;
  }

  .story-step {
    padding-bottom: 2.5rem;
  }

  .story-text h2 {
    font-size: clamp(2.9rem, 14vw, 5rem);
  }

  .story-text p {
    margin-top: 0.65rem;
    font-size: 0.78rem;
  }

  .birth-coordinates {
    margin-top: 1rem;
    font-size: 1.05rem;
  }

  .chart-section {
    gap: 0.2rem;
    padding-top: calc(var(--nav-height) + 0.65rem);
    padding-bottom: 0.5rem;
  }

  .chart-heading > p:last-child {
    display: none;
  }

  .chart-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .chart-disc {
    width: min(52vw, 210px);
  }

  .chart-identity strong {
    font-size: 1.55rem;
  }

  .chart-identity span {
    font-size: 0.55rem;
  }

  .reading {
    padding-top: 0.4rem;
  }

  .reading h3 {
    font-size: 0.68rem;
  }

  .reading p {
    margin-bottom: 0.2rem;
    font-size: 0.44rem;
  }

  .statement-copy h2,
  .final-copy h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .statement-copy p,
  .final-copy p {
    margin-top: 0.75rem;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
  }

  .final-copy small {
    margin-top: 0.5rem;
  }

  .site-footer {
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #contenuto {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

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

  .enter {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .dialog-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
