/* ==========================================================================
   Ἐμπούσης — esoteric practice landing
   ========================================================================== */

:root {
  --bg: #0a0807;
  --bg-2: #100d0b;
  --bg-3: #171310;
  --card: #120f0d;

  --bone: #efe7d9;
  --text: #d8cebd;
  --muted: #9b907f;
  --dim: #6d6458;

  --gold: #d6b67a;
  --gold-hi: #f2dfb3;
  --gold-lo: #9a7a46;
  --line: rgba(214, 182, 122, 0.16);
  --line-2: rgba(214, 182, 122, 0.34);

  --blood: #5e121b;
  --blood-hi: #9b2b36;

  --serif: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --greek: "EB Garamond", "Cormorant Garamond", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
  --gutter: 24px;
  --nav-h: 72px;

  color-scheme: dark;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(214, 182, 122, 0.3); color: var(--bone); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1209;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.4s var(--ease);
}
.skip:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.faint { opacity: 0.45; }

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

/* Typography ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head:not(.section-head--left) .eyebrow::after,
.final__card .eyebrow::after {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-wrap: balance;
}
h2 em, .hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bone);
  text-wrap: balance;
}
p { text-wrap: pretty; }

.section { position: relative; padding-block: clamp(96px, 7vw + 48px, 160px); }

.section-head {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto clamp(48px, 5vw, 80px);
  text-align: center;
}
.section-head__lead {
  max-width: 600px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}
.section-head--left {
  justify-items: start;
  text-align: left;
  margin-inline: 0;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease), color 0.6s var(--ease);
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.98); }

.btn--gold {
  color: #1c140a;
  background: linear-gradient(180deg, #f0dcae 0%, #d6b67a 55%, #b8955a 100%);
  box-shadow: 0 0 0 1px rgba(242, 223, 179, 0.4) inset, 0 10px 30px -12px rgba(214, 182, 122, 0.55);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 250, 235, 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
@media (hover: hover) {
  .btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(242, 223, 179, 0.6) inset, 0 18px 44px -14px rgba(214, 182, 122, 0.8);
  }
  .btn--gold:hover::after { transform: translateX(120%); }
}

.btn--ghost {
  color: var(--bone);
  border: 1px solid var(--line-2);
  background: rgba(16, 13, 11, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (hover: hover) {
  .btn--ghost:hover { border-color: var(--gold); background: rgba(214, 182, 122, 0.08); }
  .btn--ghost:hover .btn__icon { transform: translateX(4px); }
}
.btn--ghost .btn__icon { transition: transform 0.6s var(--ease); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; line-height: 20px; gap: 8px; }
.btn--sm .btn__icon { width: 16px; height: 16px; }
.btn--lg { min-height: 60px; padding: 16px 32px; }

/* Navigation ------------------------------------------------------------- */
.nav {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1080px;
  min-height: 60px;
  padding: 8px 8px 8px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.7s var(--ease), border-color 0.7s var(--ease), backdrop-filter 0.7s var(--ease), max-width 0.7s var(--ease);
}
.nav.is-scrolled .nav__bar {
  max-width: 960px;
  background: rgba(14, 11, 9, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin-right: auto;
}
.nav__mark { width: 24px; height: 24px; }
.nav__word {
  font-family: var(--greek);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  position: relative;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}
.nav__burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--bone);
  border-radius: 2px;
  transition: transform 0.7s var(--ease), top 0.7s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__bar { gap: 8px; padding-left: 16px; }
}
@media (max-width: 420px) {
  .nav__cta span { display: none; }
  .nav__cta { width: 44px; min-height: 44px; padding: 0; }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 120px var(--gutter) 48px;
  background: rgba(8, 6, 5, 0.86);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease), visibility 0s; }
.menu__links { display: grid; gap: 8px; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.15;
  color: var(--bone);
}
.menu__links a, .menu__cta, .menu__handle {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.menu.is-open .menu__links a, .menu.is-open .menu__cta, .menu.is-open .menu__handle {
  opacity: 1;
  transform: none;
  transition-delay: calc(100ms + var(--i) * 60ms);
}
.menu__cta { justify-self: start; align-self: flex-start; }
.menu__handle { color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 140px 112px;
  overflow: hidden;
  isolation: isolate;
}
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(214, 182, 122, 0.08), transparent 60%),
    radial-gradient(900px 600px at 78% 45%, rgba(94, 18, 27, 0.32), transparent 65%),
    radial-gradient(800px 500px at 10% 110%, rgba(94, 18, 27, 0.18), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.hero__copy { display: grid; justify-items: start; gap: 24px; }
.hero__title { display: grid; gap: 16px; margin: 0; font-weight: inherit; }

.wordmark {
  display: block;
  padding-block: 0.06em 0.12em;
  font-family: var(--greek);
  font-weight: 500;
  font-size: clamp(4rem, 2rem + 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold-hi) 28%, var(--gold) 48%, var(--gold-lo) 70%, var(--gold-hi) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.hero__headline {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.1;
  color: var(--bone);
  text-wrap: balance;
}
.hero__lead {
  max-width: 520px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.hero__note svg { width: 12px; height: 12px; color: var(--gold); }

/* Entrance */
.hero__in {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(10px);
  animation: rise 1.4s var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--d, 0) * 0.12s);
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* Hero art */
.hero__art {
  position: relative;
  justify-self: center;
  width: min(480px, 100%);
  aspect-ratio: 480 / 600;
  perspective: 1200px;
}
.arch {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px 999px 4px 4px;
  background: radial-gradient(120% 70% at 50% 30%, rgba(94, 18, 27, 0.35), transparent 70%), rgba(14, 11, 9, 0.35);
}
.arch__inner {
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 2px 2px;
}
.sigil {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 92%;
  translate: -50% -50%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  overflow: visible;
}
.sigil .ticks { stroke-width: 8; stroke-dasharray: 1.2 18.3; opacity: 0.6; }
.sigil__text {
  fill: var(--gold);
  stroke: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  opacity: 0.75;
}
/* viewBox is centred on 0,0, so rotate around the user-space origin */
.sigil__outer { transform-origin: 0 0; animation: spin 140s linear infinite; }
.sigil__inner { transform-origin: 0 0; animation: spin 220s linear infinite reverse; }
.sigil .dots circle { fill: var(--gold); stroke: none; }
.sigil__moons path { fill: var(--gold); stroke: none; opacity: 0.9; }
.sigil__moons .moon-full { fill: var(--bg); stroke-width: 1.2; }
@keyframes spin { to { transform: rotate(360deg); } }

.fan {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 1.2s var(--ease-out);
}
.fan__card {
  position: absolute;
  bottom: 0;
  width: clamp(120px, 15vw, 168px);
  aspect-ratio: 200 / 330;
  translate: -50% 0;
  transform-origin: 50% 120%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7));
}
.fan__card--l { transform: rotate(-14deg) translate(-36%, 6%); animation: float 9s ease-in-out infinite; }
.fan__card--r { transform: rotate(14deg) translate(36%, 6%); animation: float 9s ease-in-out -4.5s infinite; }
.fan__card--c { z-index: 2; transform: translateY(-6%) translateZ(40px); animation: float 9s ease-in-out -2s infinite; }
.fan__card--c .tarot { width: 112%; translate: -6% 0; }
@keyframes float { 50% { translate: -50% -10px; } }

.tarot { width: 100%; height: auto; overflow: visible; }
.tarot .t-bg { fill: var(--card); stroke: var(--gold); stroke-width: 1.2; }
.tarot .t-frame { fill: none; stroke: var(--gold); stroke-width: 0.6; opacity: 0.55; }
.tarot .t-num, .tarot .t-name {
  fill: var(--gold);
  font-family: var(--serif);
  font-weight: 500;
  text-anchor: middle;
}
.tarot .t-num { font-size: 18px; letter-spacing: 0.1em; font-feature-settings: "lnum" 1; }
.tarot .t-name { font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em; }
.tarot .t-thin { fill: none; stroke: var(--gold); stroke-width: 0.6; opacity: 0.6; }
.tarot .t-art { fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.tarot .t-fill { fill: var(--gold); stroke: none; }
.tarot .t-ticks { stroke-width: 10; stroke-dasharray: 1 7.1; opacity: 0.55; }
.tarot .t-letter { fill: var(--gold); stroke: none; font-family: var(--serif); font-size: 14px; text-anchor: middle; }
.tarot .t-star { fill: var(--gold); stroke: none; }
.tarot .t-star-s { fill: var(--gold); stroke: none; opacity: 0.7; }
.fan__card--c .t-bg { fill: #1a0d10; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 960px) {
  .hero { padding-block: 120px 96px; }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { width: min(380px, 88%); }
}
@media (max-width: 960px) {
  .hero .eyebrow::after {
    content: "";
    flex: none;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }
}
@media (max-width: 480px) {
  .hero .eyebrow { letter-spacing: 0.16em; gap: 8px; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 16px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
}

/* Marquee ---------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 24px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 36px;
  color: var(--bone);
  white-space: nowrap;
}
.marquee svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal on scroll ------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

/* About ------------------------------------------------------------------ */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 40px 32px 48px;
  border: 1px solid var(--line);
  border-radius: 200px 200px 16px 16px;
  background: linear-gradient(180deg, rgba(23, 19, 16, 0.9), rgba(16, 13, 11, 0.4));
  text-align: center;
  justify-items: center;
  transition: border-color 0.7s var(--ease), transform 0.7s var(--ease);
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 192px 192px 8px 8px;
  pointer-events: none;
  opacity: 0.6;
}
@media (hover: hover) {
  .step-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
}
.step-card__num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-top: 24px;
  margin-bottom: 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
}
.step-card h3 { font-size: 30px; line-height: 36px; }
.step-card p { color: var(--muted); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* Services --------------------------------------------------------------- */
.services { background: var(--bg-2); }
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(800px 500px at 85% 20%, rgba(94, 18, 27, 0.2), transparent 70%);
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.svc__tabs {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 4px;
}
.svc__tab {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.svc__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}
@media (hover: hover) {
  .svc__tab:hover { color: var(--bone); }
}
.svc__tab[aria-selected="true"] {
  color: var(--bone);
  background: rgba(214, 182, 122, 0.06);
  border-color: var(--line);
}
.svc__tab[aria-selected="true"] .svc__num {
  background: var(--gold);
  border-color: var(--gold);
  color: #1c140a;
}

.svc__panels {
  position: relative;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 8, 7, 0.6);
}
.svc__panel { outline: none; }
.svc__panel:not([hidden]) { animation: panelIn 0.9s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.svc__intro {
  display: grid;
  gap: 12px;
  padding-bottom: 32px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.svc__intro h3 { font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.1; }
.svc__intro p { max-width: 640px; color: var(--muted); }

.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 12px;
  margin-inline: -12px;
  border-radius: 12px;
  transition: background-color 0.5s var(--ease);
}
.prices li + li .price { border-top: 1px solid rgba(214, 182, 122, 0.07); }
.price__name {
  font-size: 18px;
  line-height: 28px;
  color: var(--bone);
  transition: transform 0.6s var(--ease), color 0.6s var(--ease);
}
.price__lead {
  flex: 1 1 24px;
  min-width: 24px;
  height: 1px;
  transform: translateY(-6px);
  background-image: radial-gradient(circle, rgba(214, 182, 122, 0.45) 1px, transparent 1.2px);
  background-size: 8px 2px;
  background-repeat: repeat-x;
}
.price__val {
  flex: none;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  font-feature-settings: "lnum" 1;
}
.price__val small {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 2px;
}
.price__val--text { font-family: var(--sans); font-size: 14px; line-height: 20px; color: var(--muted); }
.price__go {
  flex: none;
  width: 20px;
  height: 20px;
  align-self: center;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
@media (hover: hover) {
  .price:hover { background: rgba(214, 182, 122, 0.06); }
  .price:hover .price__name { transform: translateX(4px); color: var(--gold-hi); }
  .price:hover .price__go { opacity: 1; transform: none; }
}
@media (hover: none) {
  .price__go { opacity: 0.6; transform: none; }
}
.price:active { background: rgba(214, 182, 122, 0.1); }

.svc__panel--dark .svc__intro h3 { color: #e9c9c4; }
.svc__panel--dark .price__val { color: #d58a8f; }

.svc__footnote {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; gap: 24px; }
  .svc__tabs {
    position: relative;
    top: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .svc__tabs::-webkit-scrollbar { display: none; }
  .svc__tab {
    flex: none;
    min-height: 48px;
    padding: 8px 16px 8px 8px;
    gap: 12px;
    border-color: var(--line);
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .svc__num { width: 32px; height: 32px; font-size: 14px; }
  .svc__panels { padding: 24px 16px; border-radius: 20px; }
  .price { flex-wrap: wrap; row-gap: 0; padding-inline: 8px; margin-inline: -8px; }
  .price__name { font-size: 16px; line-height: 24px; flex: 1 1 100%; }
  .price__lead { display: none; }
  .price__val { font-size: 20px; line-height: 28px; margin-right: auto; }
}

/* Custom ritual ---------------------------------------------------------- */
.ritual__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 64px;
}
.ritual__copy { display: grid; justify-items: start; gap: 24px; max-width: 540px; }
.ritual__copy p:not(.eyebrow) { font-size: 18px; line-height: 28px; color: var(--muted); }
.ritual__copy .btn { margin-top: 8px; }

.ritual__art { justify-self: center; width: min(400px, 100%); }
.ritual__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-2);
  border-radius: 999px 999px 16px 16px;
  overflow: hidden;
  background: radial-gradient(70% 55% at 50% 62%, rgba(155, 43, 54, 0.4), transparent 70%), var(--bg-2);
}
.ritual__arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 8px 8px;
}
.ritual__sigil {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 78%;
  translate: -50% -50%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.6;
  opacity: 0.55;
  animation: spin 160s linear infinite;
}
.ritual__star { fill: none; stroke: var(--gold); stroke-width: 0.5; }

.candle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 62%;
  translate: -50% 0;
}
.candle__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #6f5c46 0%, #e7dac2 30%, #f5ecdb 48%, #c9b597 75%, #5d4b37 100%);
}
.candle__body::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #fff4dc, #d8c6a6 70%);
}
.candle__body::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 12px;
  width: 8px;
  height: 36px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #e9dcc4, #fbf3e3);
}
.candle__wick {
  position: absolute;
  left: 50%;
  bottom: 70%;
  width: 2px;
  height: 14px;
  translate: -50% 4px;
  border-radius: 2px;
  background: linear-gradient(#2a1d14, #120c08);
}
.candle__flame {
  position: absolute;
  left: 50%;
  bottom: calc(70% + 10px);
  width: 24px;
  height: 64px;
  translate: -50% 0;
  transform-origin: 50% 100%;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fffbe8 0%, #ffe39a 22%, #ffb347 46%, rgba(255, 110, 40, 0.5) 66%, transparent 76%);
  filter: blur(0.6px);
  animation: flicker 3.2s ease-in-out infinite;
}
.candle__core {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 8px;
  height: 18px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(120, 160, 255, 0.55), transparent 70%);
}
.candle__halo {
  position: absolute;
  left: 50%;
  bottom: calc(70% - 40px);
  width: 260px;
  height: 260px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 100, 0.28), rgba(255, 140, 60, 0.08) 45%, transparent 70%);
  animation: halo 3.2s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(-1deg); }
  20% { transform: scale(0.96, 1.05) rotate(1.5deg); }
  40% { transform: scale(1.03, 0.95) rotate(-2deg); }
  60% { transform: scale(0.98, 1.06) rotate(1deg); }
  80% { transform: scale(1.02, 0.97) rotate(-0.5deg); }
}
@keyframes halo {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  40% { opacity: 0.7; transform: scale(0.96); }
  70% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 900px) {
  .ritual__inner { grid-template-columns: 1fr; gap: 48px; }
  .ritual__copy { justify-items: center; text-align: center; margin-inline: auto; }
  .ritual__art { width: min(320px, 86%); }
}

/* Tagline reveal --------------------------------------------------------- */
.tagline {
  text-align: center;
  border-block: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 50%, rgba(94, 18, 27, 0.22), transparent 70%), var(--bg);
}
.tagline__mark { width: 20px; height: 20px; margin: 0 auto 32px; color: var(--gold); }
.tagline__text {
  max-width: 980px;
  margin-inline: auto;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-wrap: balance;
}
.tagline__text .w {
  color: rgba(239, 231, 217, 0.18);
  transition: color 0.9s var(--ease);
}
.tagline__text .w.is-on { color: var(--bone); }
.tagline__text .w--accent { font-style: italic; }
.tagline__text .w--accent.is-on { color: var(--gold); }
.tagline__sub {
  margin-top: 32px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Card of the day -------------------------------------------------------- */
.daily__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.daily__copy { display: grid; gap: 24px; max-width: 520px; }
.daily__copy header { display: grid; gap: 24px; justify-items: start; }
.daily__state { display: grid; gap: 24px; justify-items: start; }
.daily__state > p { font-size: 18px; line-height: 28px; color: var(--muted); }
.daily__result { animation: panelIn 1s var(--ease) both; }
.daily__state .daily__num {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.daily__name { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); line-height: 1.05; margin-top: -12px; }
.daily__state .daily__meaning { font-size: 20px; line-height: 28px; color: var(--text); }
.daily__state .daily__hint { font-size: 14px; line-height: 20px; color: var(--dim); }

.daily__table {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.daily__table::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  max-width: 100%;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(94, 18, 27, 0.28), transparent 70%);
}
.deck {
  position: relative;
  width: 240px;
  aspect-ratio: 200 / 330;
  perspective: 1400px;
}
.deck__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -24px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.8), transparent 70%);
}
.deck__back,
.flip__face--back {
  border-radius: 14px;
  background: #3a0d14;
}
.deck__back {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
}
.deck__back--3 { transform: translate(10px, 10px) rotate(4deg); opacity: 0.7; }
.deck__back--2 { transform: translate(5px, 5px) rotate(2deg); opacity: 0.85; }

.flip {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transition: transform 0.9s var(--ease);
}
@media (hover: hover) {
  .deck:not(.is-flipped) .flip:hover { transform: translateY(-10px) rotate(-1.5deg); }
}
.flip__inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 1.4s var(--ease);
}
.deck.is-flipped .flip { transform: translateY(-16px); cursor: default; }
.deck.is-flipped .flip__inner { transform: rotateY(180deg); }
.deck.is-shuffling .flip { animation: shuffle 0.6s var(--ease) 2; }
@keyframes shuffle {
  0%, 100% { transform: none; }
  30% { transform: translateX(-18px) rotate(-4deg); }
  70% { transform: translateX(18px) rotate(4deg); }
}
.flip__face {
  position: absolute;
  inset: 0;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
}
.flip__face--front { transform: rotateY(180deg); }
.flip__face svg { width: 100%; height: 100%; }

.card-back .cb-bg { fill: #3a0d14; stroke: var(--gold); stroke-width: 1.2; }
.card-back .cb-line { fill: none; stroke: var(--gold); stroke-width: 0.8; }
.card-back .cb-ticks { fill: none; stroke: var(--gold); stroke-width: 8; stroke-dasharray: 1 10; opacity: 0.5; }
.card-back .cb-star { fill: none; stroke: var(--gold); stroke-width: 0.6; }
.card-back .cb-fill { fill: var(--gold); }

@media (max-width: 900px) {
  .daily__inner { grid-template-columns: 1fr; gap: 48px; }
  .daily__copy { margin-inline: auto; text-align: center; }
  .daily__copy header, .daily__state { justify-items: center; }
  .daily__table { min-height: 440px; order: -1; }
  .daily__table::before { width: 360px; height: 360px; }
  .deck { width: 200px; }
}

/* Process ---------------------------------------------------------------- */
.process { background: var(--bg-2); }
.process__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.process__list::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent);
}
.process__item {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  text-align: center;
}
.process__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-2);
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
}
.process__num::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.process__item h3 { font-size: 24px; line-height: 32px; }
.process__item p { color: var(--muted); max-width: 260px; }

@media (max-width: 900px) {
  .process__list { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin-inline: auto; }
  .process__list::before { top: 0; bottom: 0; left: 32px; right: auto; width: 1px; height: auto; background: linear-gradient(transparent, var(--line-2) 10%, var(--line-2) 90%, transparent); }
  .process__item { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 24px; row-gap: 4px; }
  .process__num { grid-row: span 2; margin-bottom: 0; }
  .process__item h3 { align-self: end; }
}

/* FAQ -------------------------------------------------------------------- */
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq .section-head { position: sticky; top: 112px; margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18, 15, 13, 0.6);
  transition: border-color 0.6s var(--ease), background-color 0.6s var(--ease);
}
.faq__item[open] { border-color: var(--line-2); background: rgba(23, 19, 16, 0.9); }
.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 20px 64px 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: var(--bone);
  border-radius: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.7s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.7s var(--ease), content-visibility 0.7s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }
.faq__body { padding: 0 24px 24px; color: var(--muted); max-width: 640px; }
.faq__body a { color: var(--gold); border-bottom: 1px solid var(--line-2); }

@media (max-width: 900px) {
  .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .faq .section-head { position: static; }
  .faq__item summary { font-size: 20px; line-height: 28px; min-height: 64px; padding: 16px 56px 16px 20px; }
  .faq__item summary::before, .faq__item summary::after { right: 22px; }
  .faq__body { padding: 0 20px 20px; }
}

/* Final CTA -------------------------------------------------------------- */
.final { padding-top: 48px; }
.final__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: clamp(80px, 9vw, 128px) var(--gutter);
  border: 1px solid var(--line-2);
  border-radius: 999px 999px 32px 32px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(70% 60% at 50% 30%, rgba(155, 43, 54, 0.32), transparent 70%), var(--bg-2);
}
.final__card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 24px 24px;
  pointer-events: none;
}
.final__sigil {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: min(720px, 140%);
  translate: -50% -50%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
  opacity: 0.18;
  animation: spin 200s linear infinite;
}
.final__sigil .ticks { stroke-width: 8; stroke-dasharray: 1.2 18.3; }
.final__card .eyebrow { margin-top: 48px; }
.final__lead { max-width: 480px; font-size: 18px; line-height: 28px; color: var(--muted); }
.final__handle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 1.6rem + 6vw, 6rem);
  line-height: 1;
  color: var(--gold);
  transition: color 0.6s var(--ease), letter-spacing 0.8s var(--ease);
}
@media (hover: hover) {
  .final__handle:hover { color: var(--gold-hi); letter-spacing: 0.01em; }
}
@media (max-width: 640px) {
  .final__card { border-radius: 240px 240px 24px 24px; }
  .final__card::before { border-radius: 232px 232px 16px 16px; }
  .final__card .eyebrow { margin-top: 32px; }
  .final__card .btn { width: 100%; }
}

/* Footer ----------------------------------------------------------------- */
.footer { padding-block: 64px 40px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__brand { display: grid; gap: 16px; max-width: 360px; }
.footer__brand p { color: var(--muted); font-size: 14px; line-height: 20px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 48px; align-content: start; }
.footer__nav a { font-size: 14px; line-height: 20px; color: var(--muted); transition: color 0.5s var(--ease); }
.footer__nav a:hover { color: var(--gold); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 12px;
  line-height: 16px;
  color: var(--dim);
}
.footer__legal p:first-child { max-width: 560px; }

@media (max-width: 640px) {
  .footer { padding-bottom: 112px; }
  .footer__nav { grid-template-columns: 1fr; }
}

/* Mobile dock CTA -------------------------------------------------------- */
.dock {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  border-radius: 999px;
  font-weight: 600;
  color: #1c140a;
  background: linear-gradient(180deg, #f0dcae 0%, #d6b67a 55%, #b8955a 100%);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(242, 223, 179, 0.4) inset;
  transform: translateY(140%);
  transition: transform 0.8s var(--ease);
}
.dock.is-visible { transform: none; }
.dock:active { transform: scale(0.98); }
@media (max-width: 640px) {
  .dock { display: flex; }
}

/* Reduced motion --------------------------------------------------------- */
@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;
  }
  .hero__in { opacity: 1; transform: none; filter: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .tagline__text .w { color: var(--bone); }
}
