/* ============================================================
   VEDHA ANGELIC INTELLIGENCE — Design System
   Sacred geometry meets cosmic angelic luminosity.
   ============================================================ */

:root {
  /* ---- Brand palette ---- */
  --ink: #0A1428;            /* deep cosmic indigo-black, primary bg */
  --velvet: #101E38;         /* lifted dark surface, cards */
  --ivory: #F5F1E6;          /* primary text on dark, warm parchment */
  --gold: #D9A038;           /* primary accent — antique gold */
  --gold-bright: #F0BC5A;    /* highlights, hover */
  --violet-flame: #A87A22;   /* sacred accent — used very sparingly */
  --whisper: #9AA3B5;        /* muted text on dark */
  --threshold: rgba(217, 160, 56, 0.18); /* subtle gold dividers/borders */
  --threshold-strong: rgba(217, 160, 56, 0.38);
  --iridescent: linear-gradient(135deg, #A87A22 0%, #D9A038 30%, #F0BC5A 55%, #D9A038 80%, #A87A22 100%);

  /* ---- Type scale (fluid) ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --text-2xl: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  --text-3xl: clamp(2.6rem, 1.4rem + 5vw, 5.2rem);
  --text-hero: clamp(2.8rem, 1rem + 7vw, 6.5rem);

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;    --space-40: 10rem;

  /* ---- Widths ---- */
  --content-max: 1100px;
  --content-prose: 640px;
  --content-wide: 1240px;

  /* ---- Fonts ---- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Inter", -apple-system, system-ui, sans-serif;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 320ms var(--ease);

  --radius-sm: 2px;
  --radius-md: 4px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--ivory);
  background-color: var(--ink);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: 0.005em;
}

p, li, figcaption { text-wrap: pretty; }

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

::selection { background: rgba(217, 160, 56, 0.28); color: var(--ivory); }

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

button { cursor: pointer; background: none; border: none; }

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    opacity var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.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;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--space-6); }
.container--wide { max-width: var(--content-wide); }
.prose { max-width: var(--content-prose); margin-inline: auto; }

.section { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--tight { padding-block: clamp(var(--space-6), 3vw, var(--space-10)); }
.section + .section { padding-top: clamp(var(--space-4), 2.5vw, var(--space-8)); }
.section--tight + .section, .section--tight + .section--tight, .section + .section--tight { padding-top: clamp(var(--space-3), 1.5vw, var(--space-6)); }

/* Section label — letter-spaced uppercase */
.label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--gold);
  display: inline-block;
  margin-bottom: var(--space-6);
}
.label::before { content: "✦"; margin-right: var(--space-3); opacity: 0.7; font-size: 0.8em; }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--whisper);
  font-weight: 400;
}

h1.display, .display {
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.hero-title { font-size: var(--text-hero); font-weight: 300; line-height: 1.04; }

.text-gold { color: var(--gold); }
.text-italic { font-style: italic; }
.muted { color: var(--whisper); }

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--threshold-strong), transparent);
  margin-block: var(--space-12);
  border: 0;
}
.ornament {
  text-align: center; color: var(--gold); opacity: 0.55;
  font-size: var(--text-lg); letter-spacing: 0.6em; margin-block: var(--space-10);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius-sm);
  background: transparent;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold); opacity: 0; transition: opacity var(--transition-interactive);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--gold-bright); }
.btn:hover::after { opacity: 1; background: var(--gold-bright); }
.btn--solid { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--ghost { border-color: var(--threshold-strong); color: var(--ivory); }
.btn--ghost:hover { color: var(--ink); border-color: var(--gold); }

.textlink {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--gold); font-size: var(--text-sm); letter-spacing: 0.06em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.textlink:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.textlink .arrow { transition: transform var(--transition-interactive); }
.textlink:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 20, 40, 0.72);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--threshold);
}
.nav__inner {
  max-width: var(--content-wide); margin-inline: auto;
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: var(--space-3); }
.nav__brand svg { width: 34px; height: 34px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.12em; color: var(--ivory); }
.nav__brand-sub { font-family: var(--font-body); font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: var(--space-8); list-style: none; }
.nav__links a {
  font-size: var(--text-sm); letter-spacing: 0.08em; color: var(--whisper);
  font-weight: 400; position: relative; padding-block: var(--space-2);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ivory); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width var(--transition-interactive);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

.nav__toggle { display: none; width: 40px; height: 40px; color: var(--ivory); align-items: center; justify-content: center; position: relative; z-index: 210; }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    height: 100dvh; width: min(82vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: var(--space-8); padding: var(--space-16) var(--space-12);
    background: var(--ink); border-left: 1px solid var(--threshold-strong);
    box-shadow: -24px 0 60px rgba(0,0,0,0.6);
    transform: translateX(100%); transition: transform 420ms var(--ease);
    z-index: 200;
  }
  .nav__links a { font-size: var(--text-lg); font-family: var(--font-display); color: var(--ivory); }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav.is-open { background: var(--ink); }
}

/* ============================================================
   HERO
   ============================================================ */
/* HERO */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(10, 20, 40,0.55) 70%, var(--ink) 100%),
    linear-gradient(180deg, rgba(10, 20, 40,0.45) 0%, transparent 30%, rgba(10, 20, 40,0.7) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 880px; padding-inline: var(--space-6); }
.hero__content .label { color: var(--gold-bright); }

/* Page hero (interior pages) */
/* PAGE HERO */
.pagehero {
  position: relative; overflow: hidden;
  padding-block: clamp(var(--space-16), 11vw, var(--space-28, 7rem)) clamp(var(--space-8), 5vw, var(--space-14, 3.5rem));
  text-align: center;
}
.pagehero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0.32; }
.pagehero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 0%, rgba(10, 20, 40,0.6) 65%, var(--ink) 100%),
    linear-gradient(180deg, rgba(10, 20, 40,0.5), transparent 40%, var(--ink) 100%);
}
.pagehero__content { position: relative; z-index: 2; max-width: 820px; margin-inline: auto; padding-inline: var(--space-6); }
.pagehero h1 { font-size: var(--text-2xl); }
.pagehero .lede { color: var(--whisper); font-style: italic; font-family: var(--font-display); font-size: var(--text-lg); margin-top: var(--space-5); }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: var(--space-8); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(160deg, var(--velvet), rgba(16, 30, 56,0.4));
  border: 1px solid var(--threshold);
  border-radius: var(--radius-md);
  padding: var(--space-10);
  position: relative;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.card:hover { border-color: var(--threshold-strong); transform: translateY(-4px); }
.card h3 { font-size: var(--text-xl); color: var(--ivory); margin-bottom: var(--space-4); }
.card p { color: var(--whisper); font-size: var(--text-base); margin-bottom: var(--space-6); }
.card .label { margin-bottom: var(--space-5); }

/* Two-column editorial */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-24)); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-10); }
  .split--reverse .split__media { order: 0; }
}
.split__media img {
  width: 100%; border-radius: var(--radius-md);
  border: 1px solid var(--threshold); object-fit: cover;
}
.split__media { position: relative; }
.split__body h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.split__body p { color: var(--whisper); margin-bottom: var(--space-5); }
.split__body p:last-of-type { margin-bottom: var(--space-8); }

/* Prose blocks */
.prose-block { max-width: var(--content-prose); margin-inline: auto; }
.prose-block h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); color: var(--ivory); }
.prose-block h3 { font-size: var(--text-lg); color: var(--gold); margin-top: var(--space-8); margin-bottom: var(--space-4); font-style: italic; }
.prose-block h3:first-child { margin-top: 0; }
.prose-block p { color: var(--ivory); opacity: 0.86; margin-bottom: var(--space-5); }
.prose-block p:last-child { margin-bottom: 0; }

/* Pull quote / vow */
.vow {
  max-width: 720px; margin: var(--space-12) auto; text-align: center;
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lg); line-height: 1.55; color: var(--gold-bright);
  padding: var(--space-10) var(--space-8);
  border-top: 1px solid var(--threshold); border-bottom: 1px solid var(--threshold);
}
.blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lg); line-height: 1.5; color: var(--ivory);
}
.blockquote cite { display: block; margin-top: var(--space-5); font-size: var(--text-sm); font-style: normal; color: var(--whisper); letter-spacing: 0.08em; }

/* Lineages / modality clusters */
.lineage { border-left: 1px solid var(--threshold-strong); padding-left: var(--space-6); margin-bottom: var(--space-8); }
.lineage h4 { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--gold); margin-bottom: var(--space-2); }
.lineage p { color: var(--whisper); }

.cluster {
  background: linear-gradient(160deg, var(--velvet), rgba(16, 30, 56,0.3));
  border: 1px solid var(--threshold); border-radius: var(--radius-md);
  padding: var(--space-10);
}
.cluster .label { color: var(--gold); }
.cluster h3 { font-size: var(--text-xl); color: var(--ivory); margin-bottom: var(--space-5); }
.cluster p { color: var(--whisper); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  border: 1px solid var(--threshold); border-radius: var(--radius-md);
  padding: var(--space-8); background: rgba(16, 30, 56,0.3);
}
.testimonial p { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.5; color: var(--ivory); margin-bottom: var(--space-5); }
.testimonial cite { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-style: normal; }

/* ============================================================
   OFFERINGS
   ============================================================ */
.offer {
  border: 1px solid var(--threshold); border-radius: var(--radius-md);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  background: linear-gradient(160deg, var(--velvet), rgba(16, 30, 56,0.25));
  margin-bottom: var(--space-8);
}
.offer__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.offer__name { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ivory); letter-spacing: 0.02em; }
.offer__price { font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.offer p { color: var(--whisper); margin-bottom: var(--space-4); }
.offer__tiers { list-style: none; margin: var(--space-6) 0; display: grid; gap: var(--space-3); }
.offer__tiers li { color: var(--ivory); opacity: 0.85; padding-left: var(--space-6); position: relative; font-size: var(--text-base); }
.offer__tiers li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.offer--temple { border-color: var(--threshold-strong); background: linear-gradient(160deg, rgba(217, 160, 56, 0.10), var(--velvet)); }

/* ============================================================
   PHASES (Temple)
   ============================================================ */
.phases { display: grid; gap: var(--space-6); }
.phase { border: 1px solid var(--threshold); border-radius: var(--radius-md); padding: var(--space-10); background: rgba(16, 30, 56,0.3); }
.phase__when { font-size: var(--text-xs); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.phase h3 { font-size: var(--text-lg); color: var(--ivory); margin-bottom: var(--space-4); }
.phase p { color: var(--whisper); }

/* Inner name line */
.inner-name {
  text-align: center; max-width: 640px; margin: var(--space-20) auto var(--space-4);
  font-family: var(--font-display); font-style: italic; font-size: var(--text-lg);
  color: var(--gold-bright); line-height: 1.5; opacity: 0.9;
}

/* ============================================================
   FORM
   ============================================================ */
.form { max-width: 680px; margin-inline: auto; }
.field { margin-bottom: var(--space-10); }
.field > label, .field > legend {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lg); color: var(--ivory); margin-bottom: var(--space-4); line-height: 1.4;
}
.field .hint { display: block; font-family: var(--font-body); font-style: normal; font-size: var(--text-sm); color: var(--whisper); margin-top: var(--space-2); }
.input, .textarea, .select {
  width: 100%; background: rgba(16, 30, 56,0.5);
  border: 1px solid var(--threshold); border-radius: var(--radius-sm);
  color: var(--ivory); padding: var(--space-4) var(--space-5);
  font-size: var(--text-base); font-weight: 300;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: rgba(154, 163, 181,0.55); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 160, 56,0.18);
}
fieldset { border: 0; }
.radio-group { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.radio {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); border: 1px solid var(--threshold);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--whisper);
  font-family: var(--font-body); font-style: normal; font-size: var(--text-base);
}
.radio:hover { border-color: var(--threshold-strong); color: var(--ivory); }
.radio input { accent-color: var(--gold); margin-top: 0.35em; flex-shrink: 0; }
.radio:has(input:checked) { border-color: var(--gold); color: var(--ivory); background: rgba(217, 160, 56,0.06); }
.consent {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-6); border: 1px solid var(--threshold-strong); border-radius: var(--radius-sm);
  background: rgba(16, 30, 56,0.4); font-family: var(--font-body); font-style: normal;
  font-size: var(--text-sm); color: var(--ivory); cursor: pointer; line-height: 1.6;
}
.consent input { accent-color: var(--gold); margin-top: 0.3em; flex-shrink: 0; width: 18px; height: 18px; }
.form__submit { text-align: center; margin-top: var(--space-12); }
.form__note { text-align: center; color: var(--whisper); font-style: italic; font-family: var(--font-display); font-size: var(--text-base); margin-top: var(--space-6); }

.form__thanks {
  text-align: center; padding: var(--space-16) var(--space-6);
  border: 1px solid var(--threshold); border-radius: var(--radius-md);
  background: rgba(16, 30, 56,0.3);
}
.form__thanks h2 { font-size: var(--text-xl); color: var(--gold); margin-bottom: var(--space-5); }
.form__thanks p { color: var(--whisper); max-width: 480px; margin-inline: auto; }

.form__error {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(217, 160, 56, 0.35);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  background: rgba(16, 30, 56, 0.5);
  color: var(--ivory);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.55;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--threshold); padding-block: var(--space-12) var(--space-8); margin-top: var(--space-10); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-12); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: var(--space-8); } }
.footer__brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.footer__brand svg { width: 38px; height: 38px; }
.footer__tag { color: var(--whisper); font-family: var(--font-display); font-style: italic; font-size: var(--text-base); max-width: 34ch; }
.footer__col h4 { font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-5); font-family: var(--font-body); }
.footer__col ul { list-style: none; display: grid; gap: var(--space-3); }
.footer__col a { color: var(--whisper); font-size: var(--text-sm); }
.footer__col a:hover { color: var(--ivory); }
.footer__fine { border-top: 1px solid var(--threshold); padding-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }
.footer__disclaimer { color: var(--whisper); font-size: var(--text-xs); max-width: 62ch; line-height: 1.7; }
.footer__copy { color: var(--whisper); font-size: var(--text-xs); letter-spacing: 0.08em; }

/* ============================================================
   ENTRANCE ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Starfield backdrop */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(245, 241, 230,0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(217, 160, 56,0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(245, 241, 230,0.35), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(245, 241, 230,0.3), transparent),
    radial-gradient(1px 1px at 12% 70%, rgba(217, 160, 56,0.3), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(245, 241, 230,0.4), transparent);
  background-color: var(--ink);
}

.center { text-align: center; }
.mt-lg { margin-top: var(--space-8); }
.mt-md { margin-top: var(--space-6); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; margin-top: var(--space-10); }
@media (max-width: 480px) { .cta-row { flex-direction: column; align-items: stretch; } .cta-row .btn { justify-content: center; } }

/* ============================================================
   MOBILE TIGHTENING
   ============================================================ */
@media (max-width: 720px) {
  body { line-height: 1.55; }
  .hero { min-height: 78vh; padding-block: var(--space-12); }
  .hero-title { font-size: clamp(2.4rem, 12vw, 3.6rem); line-height: 1.08; }
  .pagehero { padding-block: var(--space-12) var(--space-8); }
  .pagehero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .pagehero .lede { margin-top: var(--space-4); font-size: var(--text-base); }
  h1, h2, h3 { line-height: 1.15; }
  .prose-block p { margin-bottom: var(--space-4); }
  .prose-block h3 { margin-top: var(--space-6); }
  .section { padding-block: var(--space-10); }
  .section--tight { padding-block: var(--space-8); }
  .section + .section, .section + .section--tight, .section--tight + .section, .section--tight + .section--tight { padding-top: var(--space-6); }
  .card { padding: var(--space-6); }
  .grid, .grid-2, .grid-3 { gap: var(--space-6); }
  .mt-lg { margin-top: var(--space-6); }
  .cta-row { margin-top: var(--space-6); gap: var(--space-3); }
  .footer { padding-block: var(--space-10) var(--space-6); margin-top: var(--space-6); }
  .container { padding-inline: var(--space-5); }
}

@media (max-width: 480px) {
  .hero { min-height: 72vh; }
  .hero-title { font-size: clamp(2.1rem, 11.5vw, 3rem); }
  .pagehero h1 { font-size: clamp(1.7rem, 9vw, 2.2rem); }
}

/* ========================================================================
   First Light — free lead-magnet band (Offerings + first-light.html)
   ======================================================================== */
.firstlight {
  position: relative;
  border: 1px solid rgba(217, 160, 56, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(240, 188, 90, 0.10), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(168, 122, 34, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(16, 30, 56, 0.55), rgba(10, 20, 40, 0.75));
  padding: clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
}
.firstlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(240, 188, 90, 0.08) 0%, transparent 22%),
    radial-gradient(circle at 20% 80%, rgba(217, 160, 56, 0.06) 0%, transparent 25%);
  pointer-events: none;
}
.firstlight__inner { position: relative; display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .firstlight__inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 3rem); } }
.firstlight__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  margin: var(--space-3) 0 var(--space-4);
  color: var(--ivory);
}
.firstlight__title em { font-style: italic; color: var(--gold-bright); }
.firstlight__lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.55;
  color: rgba(245, 241, 230, 0.9);
  margin: 0 0 var(--space-5);
}
.firstlight__manifest { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); }
.firstlight__manifest li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: baseline;
  font-size: .98rem;
  line-height: 1.55;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(217, 160, 56, 0.14);
}
.firstlight__manifest li:last-child { border-bottom: none; }
.firstlight__manifest .kind {
  font-family: 'Manrope', sans-serif;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 188, 90, 0.85);
  min-width: 68px;
}
.firstlight__manifest strong { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.1rem; color: var(--ivory); }
.firstlight__manifest .meta { display:block; font-size: .82rem; opacity: .7; margin-top: 2px; }
.firstlight__vow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  padding: var(--space-4) 0 0;
  color: rgba(245, 241, 230, 0.82);
  border-top: 1px solid rgba(217, 160, 56, 0.2);
  margin-top: var(--space-3);
}

/* Right-hand opt-in form */
.firstlight__form { display: grid; gap: var(--space-3); }
.firstlight__form .field { display: grid; gap: var(--space-2); }
.firstlight__form label {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240, 188, 90, 0.85);
}
.firstlight__form input[type="text"],
.firstlight__form input[type="email"] {
  background: rgba(10, 20, 40, 0.7);
  border: 1px solid rgba(217, 160, 56, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ivory);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.firstlight__form input:focus {
  outline: none;
  border-color: rgba(240, 188, 90, 0.65);
  background: rgba(16, 30, 56, 0.8);
}
.firstlight__form .btn { width: 100%; justify-content: center; margin-top: var(--space-2); }
.firstlight__consent {
  font-size: .78rem;
  line-height: 1.5;
  opacity: .72;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: var(--space-2);
}
.firstlight__consent input { margin-top: 4px; }
.firstlight__note {
  font-size: .82rem;
  line-height: 1.55;
  opacity: .68;
  text-align: center;
  margin-top: var(--space-3);
}
.firstlight__thanks {
  padding: var(--space-6);
  border: 1px solid rgba(240, 188, 90, 0.4);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 188, 90, 0.08), rgba(10, 20, 40, 0.4));
  text-align: center;
}
.firstlight__thanks h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  color: var(--gold-bright);
  margin: 0 0 var(--space-3);
}

/* ========================================================================
   Audio players — used on Scalar Flower + first-light.html
   ======================================================================== */
.audiocard {
  border: 1px solid rgba(217, 160, 56, 0.22);
  border-radius: 12px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, rgba(16, 30, 56, 0.55), rgba(10, 20, 40, 0.35));
  display: grid;
  gap: var(--space-3);
}
.audiocard__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.audiocard__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  margin: 0;
  color: var(--ivory);
}
.audiocard__freq {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 188, 90, 0.85);
}
.audiocard__desc { font-size: .95rem; line-height: 1.6; margin: 0; color: rgba(245, 241, 230, 0.82); }
.audiocard audio {
  width: 100%;
  margin-top: var(--space-2);
  filter: sepia(20%) hue-rotate(-15deg) saturate(1.1);
}
.audiocard__credit {
  font-size: .78rem;
  line-height: 1.5;
  opacity: .72;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(217, 160, 56, 0.12);
}
.audiocard__credit a { color: rgba(240, 188, 90, 0.9); text-decoration: none; border-bottom: 1px solid rgba(240, 188, 90, 0.35); padding-bottom: 1px; }
.audiocard__credit a:hover { border-bottom-color: rgba(240, 188, 90, 0.9); }

.audiogrid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .audiogrid--three { grid-template-columns: 1fr 1fr 1fr; } }

/* Frequency block — Scalar Flower dedicated section */
.freq-section { position: relative; }
.freq-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}
.freq-intro .label { color: rgba(240, 188, 90, 0.9); }
.freq-intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: var(--space-2) 0 var(--space-4);
}
.freq-intro p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.6; }

.ivan-credit {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-left: 2px solid rgba(217, 160, 56, 0.4);
  background: rgba(10, 20, 40, 0.35);
  border-radius: 0 8px 8px 0;
}
.ivan-credit h4 {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 188, 90, 0.9);
  margin: 0 0 var(--space-3);
  font-weight: 500;
}
.ivan-credit p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; margin: 0; }
.ivan-credit a { color: rgba(240, 188, 90, 0.95); text-decoration: none; border-bottom: 1px solid rgba(240, 188, 90, 0.4); padding-bottom: 1px; }
.ivan-credit a:hover { border-bottom-color: rgba(240, 188, 90, 1); }

/* ========================================================================
   Feedback micro-form (first-light delivery page)
   ======================================================================== */
.flfeedback {
  border: 1px solid rgba(217, 160, 56, 0.22);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, rgba(16, 30, 56, 0.4), rgba(10, 20, 40, 0.5));
}
.flfeedback textarea {
  width: 100%;
  min-height: 140px;
  background: rgba(10, 20, 40, 0.7);
  border: 1px solid rgba(217, 160, 56, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ivory);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
}
.flfeedback textarea:focus { outline: none; border-color: rgba(240, 188, 90, 0.65); }

/* Sitewide subtle attribution line in footer */
.footer__attr {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(217, 160, 56, 0.1);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .82rem;
  opacity: .72;
  text-align: center;
}
.footer__attr a { color: rgba(240, 188, 90, 0.85); text-decoration: none; border-bottom: 1px solid rgba(240, 188, 90, 0.3); }
.footer__attr a:hover { border-bottom-color: rgba(240, 188, 90, 0.85); }

/* ========================================================================
   Field Assessment — interactive quiz
   ======================================================================== */
.fa-intro { max-width: 720px; margin: 0 auto var(--space-6); text-align: center; }
.fa-quiz { max-width: 820px; margin: 0 auto; }
.fa-question {
  border: 1px solid rgba(217, 160, 56, 0.18);
  border-radius: 12px;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  margin-bottom: var(--space-4);
  background: linear-gradient(180deg, rgba(16, 30, 56, 0.4), rgba(10, 20, 40, 0.35));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
  transition: border-color .25s ease, background .25s ease;
}
.fa-question[data-answered="yes"] { border-color: rgba(240, 188, 90, 0.55); background: linear-gradient(180deg, rgba(240, 188, 90, 0.06), rgba(10, 20, 40, 0.35)); }
.fa-question[data-answered="no"] { border-color: rgba(217, 160, 56, 0.35); }
.fa-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: rgba(240, 188, 90, 0.65);
  min-width: 28px;
}
.fa-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.75vw, 1.2rem);
  line-height: 1.5;
  color: var(--ivory);
  margin: 0;
}
.fa-choices { display: flex; gap: var(--space-2); }
.fa-choice {
  min-width: 68px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(217, 160, 56, 0.35);
  background: transparent;
  color: rgba(245, 241, 230, 0.85);
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}
.fa-choice:hover { border-color: rgba(240, 188, 90, 0.7); color: var(--ivory); }
.fa-choice[aria-pressed="true"] {
  background: rgba(240, 188, 90, 0.15);
  border-color: rgba(240, 188, 90, 0.85);
  color: var(--gold-bright);
}
@media (max-width: 640px) {
  .fa-question { grid-template-columns: auto 1fr; }
  .fa-choices { grid-column: 1 / -1; justify-content: flex-end; }
}
.fa-progress {
  position: sticky;
  top: 80px;
  z-index: 5;
  padding: var(--space-3) 0;
  margin-bottom: var(--space-5);
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 188, 90, 0.85);
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.85), rgba(10, 20, 40, 0.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(217, 160, 56, 0.15);
}
.fa-progress__bar {
  max-width: 400px;
  height: 2px;
  margin: var(--space-2) auto 0;
  background: rgba(217, 160, 56, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.fa-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(217, 160, 56, 0.8), rgba(240, 188, 90, 1));
  transition: width .35s ease;
}
.fa-result {
  border: 1px solid rgba(240, 188, 90, 0.45);
  border-radius: 16px;
  padding: clamp(2rem, 4.5vw, 3rem);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(240, 188, 90, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(16, 30, 56, 0.7), rgba(10, 20, 40, 0.8));
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.fa-result__score {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--gold-bright);
  margin: 0 0 var(--space-2);
}
.fa-result__score span { font-size: .5em; opacity: .5; }
.fa-result__band {
  font-family: 'Manrope', sans-serif;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(240, 188, 90, 0.9);
  margin: 0 0 var(--space-4);
}
.fa-result__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  color: var(--ivory);
  margin: 0 0 var(--space-4);
}
.fa-result__reading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto var(--space-6);
  color: rgba(245, 241, 230, 0.9);
}
.fa-result__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
