:root {
  --night: #040812;
  --navy: #0a1636;
  --royal: #14306a;
  --gold: #d4af37;
  --gold-soft: #f0d78c;
  --gold-deep: #9a7b1a;
  --cream: #f4efe4;
  --cream-dim: #b8b0a0;
  --ink: #eef2ff;
  --glass: rgba(10, 22, 54, 0.55);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--night);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--cream);
}

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  transform-origin: left;
}

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.88), rgba(4, 8, 18, 0.35));
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  transition: background 0.4s var(--ease);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.nav__brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__om {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 0.35rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav__links {
  display: none;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--gold-soft);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

@media (max-width: 380px) {
  .nav__brand span {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .nav__cta {
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

/* —— Hero parallax —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.15) 0%, rgba(4, 8, 18, 0.55) 55%, var(--night) 100%),
    url("assets/hero-sky.jpg") center / cover no-repeat;
  will-change: transform;
}

.hero__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.hero__orb {
  position: absolute;
  z-index: 2;
  width: min(72vw, 520px);
  aspect-ratio: 1;
  left: 50%;
  top: 38%;
  translate: -50% -50%;
  will-change: transform;
}

.hero__orb svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(240, 215, 140, 0.18));
  animation: spin-slow 90s linear infinite;
}

.hero__glow {
  position: absolute;
  z-index: 1;
  width: 55vmax;
  height: 55vmax;
  left: 50%;
  top: 42%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 65%);
  will-change: transform;
  animation: pulse-glow 7s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 12vh, 7rem);
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero__eyebrow::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  text-wrap: balance;
}

.hero__title span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.22em;
  margin-top: 0.55rem;
  color: var(--cream);
  font-weight: 400;
}

.hero__roles {
  margin: 1.35rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.92rem, 2.4vw, 1.35rem);
  color: var(--cream);
  letter-spacing: 0.04em;
  padding-inline: 0.25rem;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--night);
}

.btn--ghost {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-soft);
  background: rgba(4, 8, 18, 0.35);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}

.scroll-cue {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 1.25rem;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--cream-dim);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
}

.scroll-cue__line {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
}

/* —— Sections —— */
.section {
  position: relative;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1rem, 4vw, 2.5rem);
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.chapter-tag {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 6.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--cream);
  max-width: min(16ch, 100%);
  overflow-wrap: break-word;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  color: var(--cream-dim);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* About */
.about {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(20, 48, 106, 0.45), transparent 50%),
    var(--night);
}

.about__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
  min-width: 0;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4rem;
  }
}

.about__card {
  position: relative;
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 0.6rem;
  background: linear-gradient(160deg, rgba(20, 48, 106, 0.35), rgba(4, 8, 18, 0.8));
  transform: translateY(var(--py, 0));
  will-change: transform;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.about__card img {
  width: 100%;
  height: auto; /* override HTML height attr so aspect-ratio can size the box */
  max-height: min(72vw, 28rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.08) contrast(1.06);
}

@media (max-width: 899px) {
  .about__card img {
    aspect-ratio: 1 / 1;
    max-height: min(88vw, 26rem);
    object-position: center 38%;
  }
}

.about__meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.meta-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.meta-row:last-child {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.meta-row__icon {
  width: 2rem;
  height: 2rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  font-size: 0.9rem;
}

.meta-row strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.meta-row span,
.meta-row a {
  color: var(--cream-dim);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta-row a:hover {
  color: var(--gold-soft);
}

/* Services */
.services {
  background:
    linear-gradient(180deg, var(--night), #071028 40%, var(--night));
  overflow: clip;
}

.services__rail {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 800px) {
  .services__rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  position: relative;
  min-height: 18rem;
  padding: 1.75rem 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    linear-gradient(165deg, rgba(212, 175, 55, 0.08), transparent 40%),
    rgba(10, 22, 54, 0.55);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease);
}

.service:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-6px);
}

.service__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.22);
}

.service h3 {
  margin: 1.2rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.service p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

.service__orb {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  opacity: 0.5;
}

/* Numerology */
.numerology {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(212, 175, 55, 0.1), transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(20, 48, 106, 0.5), transparent 50%),
    var(--night);
}

.num-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 960px) {
  .num-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
}

.num-panel {
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(8, 14, 32, 0.72);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  backdrop-filter: blur(10px);
}

.num-panel h3 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--gold);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(4, 8, 18, 0.75);
  color: var(--cream);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.field input::placeholder {
  color: rgba(184, 176, 160, 0.45);
}

.num-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.num-actions .btn {
  flex: 1 1 10rem;
}

.num-wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 22rem;
}

.num-wheel {
  width: min(100%, 380px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.num-wheel__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.12), transparent 55%),
    rgba(4, 8, 18, 0.5);
  transition: transform 1.4s var(--ease);
  box-shadow: inset 0 0 60px rgba(212, 175, 55, 0.08);
}

.num-wheel__ring::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.25);
}

.num-wheel__ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 8deg, rgba(212, 175, 55, 0.35) 8deg 10deg, transparent 10deg 38deg, rgba(240, 215, 140, 0.45) 38deg 40deg, transparent 40deg 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}

.num-wheel__core {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.num-wheel__core .big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 5rem);
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.num-wheel__core .label {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.results {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.result-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(10, 22, 54, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.result-card.is-in {
  opacity: 1;
  transform: none;
}

.result-card__n {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.15rem;
}

.result-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.result-card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.num-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: rgba(184, 176, 160, 0.7);
}

/* Contact */
.contact {
  background:
    linear-gradient(180deg, transparent, rgba(20, 48, 106, 0.35)),
    var(--night);
  text-align: center;
  padding-bottom: clamp(5rem, 14vh, 8rem);
}

.contact h2 {
  margin-inline: auto;
}

.contact .lead {
  margin-inline: auto;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.contact__links a {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 0.15rem;
  transition: color 0.25s, border-color 0.25s;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.contact__links a:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.faq__list {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 46rem;
}

.faq__item {
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(160deg, rgba(20, 48, 106, 0.22), rgba(4, 8, 18, 0.55));
  padding: 0.85rem 1.1rem;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  color: var(--cream);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
}

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

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 500;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin: 0.65rem 0 0.25rem;
  color: var(--cream-dim);
  line-height: 1.65;
  font-size: 0.95rem;
}

.faq__item a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer {
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--cream-dim);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.footer strong {
  color: var(--gold);
  font-weight: 500;
  font-family: var(--font-display);
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes drip {
  0% {
    transform: scaleY(0.35);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__orb svg,
  .hero__glow,
  .scroll-cue__line {
    animation: none;
  }
  .reveal,
  .result-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
