/* ==========================================================================
   Your Centre — Premium Design System
   "Start Living With Your Centre"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,500;1,500&display=swap');

:root {
  /* Brand palette — drawn from the Your Centre logo */
  --violet-900: #2c1250;
  --violet-800: #3d1a6e;
  --violet-700: #5b21a6;
  --violet-600: #7c3aed;
  --violet-500: #9d5cf5;
  --magenta-600: #d6266f;
  --magenta-500: #ef4d8f;
  --magenta-400: #f472b6;
  --teal-400: #4fd8c4;
  --teal-300: #7ce8d8;
  --gold-400: #e8c874;
  --gold-300: #f3dca0;

  --bg-0: #0e0620;
  --bg-1: #160a30;
  --bg-2: #1d0f3d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --border-soft: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --ink-0: #f9f6ff;
  --ink-1: #d9d0ea;
  --ink-2: #b3a6cc;
  --ink-3: #8d7fab;

  --grad-brand: linear-gradient(120deg, var(--violet-600) 0%, var(--magenta-600) 55%, var(--gold-400) 100%);
  --grad-hero: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.35), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(239, 77, 143, 0.28), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(79, 216, 196, 0.18), transparent 45%);
  --grad-text: linear-gradient(100deg, var(--gold-300), var(--magenta-400) 45%, var(--teal-300) 90%);

  --shadow-soft: 0 20px 60px -20px rgba(20, 4, 50, 0.6);
  --shadow-card: 0 12px 34px -14px rgba(10, 2, 30, 0.55);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Cormorant Garamond', serif;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
  z-index: 0;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink-0);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-300);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--teal-300);
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
}

@media (max-width:768px) {
  section {
    padding: 72px 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  border: none;
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(214, 38, 111, .55);
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 18px 40px -12px rgba(124, 58, 237, .6);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink-0);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--teal-300);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 11px 24px;
  font-size: .82rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  /* Solid (not backdrop-filter) on purpose: a blurred backdrop on a fixed
     header forces the browser to re-blur everything behind it on every
     scroll frame — one of the most common causes of janky mobile scrolling.
     A near-opaque solid fill reads just as premium without the GPU cost. */
  background: rgba(14, 6, 32, 0.94);
  padding: 10px 0;
  border-color: var(--border-soft);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink-0);
  font-weight: 700;
}

.brand img {
  height: 52px;
  width: auto;
  transition: height .3s ease;
  filter: drop-shadow(0 6px 14px rgba(124, 58, 237, .45));
}

.site-header.scrolled .brand img {
  height: 42px;
}

.brand small {
  display: block;
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: .78rem;
  color: var(--teal-300);
  letter-spacing: .03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-1);
  border-radius: 999px;
  text-align: center;
  transition: color .3s ease, background .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--surface-strong);
}

.nav-links a.active {
  color: var(--teal-300);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink-0);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width:960px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 84vw);
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    border-left: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: center;
    padding: 100px 28px 40px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.16, .8, .24, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn-ghost {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

@media (max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: .4em;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 2em;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--violet-600), var(--magenta-600), var(--gold-400), var(--teal-400), var(--violet-600));
  filter: blur(70px);
  opacity: .45;
  animation: spin 22s linear infinite;
  /* Promote to its own compositor layer so the (expensive) blur is
     rasterized once and the animation is just a cheap GPU rotation,
     instead of being re-blurred on every frame. */
  will-change: transform;
}

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

/* Decorative-only: turn it off entirely on phones (weaker GPUs, and this
   sits behind content so scroll performance matters more than the spin)
   and for anyone who's asked the OS to reduce motion. */
@media (max-width:640px),
(prefers-reduced-motion:reduce) {

  .hero-orb,
  .error-orb {
    animation: none;
    filter: blur(40px);
  }
}

.hero-frame {
  position: relative;
  width: min(460px, 88vw);
  padding: 14px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}

.hero-frame img {
  border-radius: 24px;
}

.stat-row {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat-row .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink-0);
}

.stat-row .lbl {
  font-size: .8rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
  overflow: hidden;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  gap: 52px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-2);
}

.marquee-track span em {
  color: var(--gold-300);
  font-style: normal;
  margin: 0 10px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Hero Slideshow ---------- */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-1);
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 6, 32, 0) 40%, rgba(14, 6, 32, .55) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-slideshow-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: background .3s ease, width .3s ease;
}

.hero-slideshow-dots span.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ---------- Section headers ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 50px;
  text-align: left;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-top: .4em;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.02rem;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width:960px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform .4s ease, border-color .4s ease, background .4s ease, box-shadow .4s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  z-index: -1;
  transition: opacity .4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  background: var(--surface-strong);
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  margin-bottom: 20px;
  box-shadow: 0 10px 24px -8px rgba(124, 58, 237, .5);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: .5em;
}

.card p {
  color: var(--ink-2);
  font-size: .95rem;
  margin: 0 0 1em;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--teal-300);
}

/* ---------- Panels / Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

@media (max-width:900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.split.reverse {
  direction: rtl;
}

.split.reverse>* {
  direction: ltr;
}

.panel-visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.panel-visual img {
  border-radius: 20px;
  width: 100%;
  height: 380px;
  object-fit: contain;
  background: var(--bg-1);
  display: block;
}

.panel-visual.fit img {
  height: 460px;
}

.panel-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width:640px) {
  .panel-badge {
    left: 12px;
  }
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-1);
  font-size: .96rem;
}

.check-list .tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: #fff;
  margin-top: 2px;
}

/* ---------- Testimonials ---------- */
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width:900px) {
  .testi-track {
    grid-template-columns: 1fr;
  }
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px;
}

.testi-card .stars {
  color: var(--gold-400);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: .9rem;
}

.testi-card p {
  color: var(--ink-1);
  font-style: italic;
  font-family: var(--font-script);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: #fff;
  font-size: .9rem;
}

.testi-person strong {
  display: block;
  color: var(--ink-0);
  font-size: .92rem;
}

.testi-person span {
  font-size: .78rem;
  color: var(--ink-3);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  background: var(--grad-brand);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25), transparent 50%);
}

.cta-band h2 {
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: rgba(255, 255, 255, .88);
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto 30px;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, .18);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-soft);
  padding: 80px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-grid a {
  color: var(--ink-2);
  font-size: .92rem;
  transition: color .3s;
}

.footer-grid a:hover {
  color: var(--teal-300);
}

.footer-brand p {
  color: var(--ink-2);
  font-size: .92rem;
  max-width: 36ch;
  margin: 16px 0 20px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row svg {
  width: 16px;
  height: 16px;
  fill: var(--ink-1);
}

.social-row a:hover {
  background: var(--grad-brand);
  border-color: transparent;
}

.social-row a:hover svg {
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--ink-3);
}

/* ---------- Legal page content (Privacy Policy / Terms) ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--ink-2);
  margin-bottom: 1.3em;
}

.legal-content ul {
  margin: 0 0 1.3em;
  display: flex;
  flex-direction: column;
  gap: .7em;
}

.legal-content li {
  color: var(--ink-2);
  padding-left: 1.4em;
  position: relative;
}

.legal-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal-300);
}

.legal-content strong {
  color: var(--ink-0);
}

.legal-content .updated {
  color: var(--ink-3);
  font-size: .85rem;
  margin-bottom: 2.4em;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 170px 0 90px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}

.page-hero p {
  color: var(--ink-2);
  max-width: 620px;
  margin: 14px auto 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: .84rem;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-2);
}

.breadcrumb a:hover {
  color: var(--teal-300);
}

/* ---------- 404 / Error Page ---------- */
.error-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.error-orb {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--violet-600), var(--magenta-600), var(--gold-400), var(--teal-400), var(--violet-600));
  filter: blur(80px);
  opacity: .35;
  animation: spin 22s linear infinite;
  will-change: transform;
  z-index: -1;
}

.error-code {
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  margin-bottom: .15em;
  letter-spacing: -.02em;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.error-links a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: .85rem;
  color: var(--ink-2);
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}

.error-links a:hover {
  color: #fff;
  border-color: var(--teal-300);
  background: var(--surface-strong);
}

/* ---------- Utilities ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

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

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 60px;
}

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 60px 0;
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(124, 58, 237, .6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
}

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width:640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: .82rem;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: .94rem;
  transition: border-color .3s ease, background .3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-300);
  background: rgba(255, 255, 255, .07);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .ic {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item .ic svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal-300);
  fill: none;
}

.info-item h4 {
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: .98rem;
  margin-bottom: 4px;
}

.info-item p,
.info-item a {
  color: var(--ink-2);
  font-size: .9rem;
}

/* Table-ish price/offering list */
.offer-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-soft);
  gap: 20px;
}

.offer-row:last-child {
  border-bottom: none;
}

.offer-row:hover {
  background: var(--surface);
}

.offer-row h4 {
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 0 4px;
}

.offer-row p {
  color: var(--ink-3);
  font-size: .85rem;
  margin: 0;
}

.offer-row .tag {
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  color: var(--teal-300);
  white-space: nowrap;
}

/* Founder */
.founder {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

@media (max-width:900px) {
  .founder {
    grid-template-columns: 1fr;
  }
}

.founder-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.founder-card img {
  border-radius: 22px;
  width: 100%;
  height: 480px;
  object-fit: contain;
  background: var(--bg-1);
  display: block;
}

.founder blockquote {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-0);
  border-left: 3px solid var(--teal-300);
  padding-left: 22px;
  margin: 26px 0;
}

/* ---------- Credentials / Photo Gallery ---------- */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

@media (max-width:768px) {
  .credential-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credential-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: transform .4s ease, border-color .4s ease;
}

.credential-grid figure:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.credential-grid img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: var(--bg-1);
  display: block;
}

.credential-grid figcaption {
  padding: 12px 14px;
  font-size: .8rem;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- Video Gallery (testimonials / practice library) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width:960px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:700px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:460px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: transform .4s ease, border-color .4s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

/* isolate:isolate pins down a fresh stacking context for this frame, so the
   play button is guaranteed to paint above the <video> — some Android
   WebViews composite <video> on its own hardware overlay plane and will
   render it above ordinary DOM content unless every layer in between has
   an explicit position + z-index of its own. */
.video-frame {
  position: relative;
  cursor: pointer;
  isolation: isolate;
}

.video-card video {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: contain;
  background: #000;
  display: block;
  cursor: pointer;
}

.video-grid.landscape .video-card video {
  aspect-ratio: 16/9;
}

/* Branded play button sitting over the real poster frame — replaces the
   flat native control bar until the visitor actually chooses to play.
   Offsets are spelled out (rather than the `inset` shorthand) and z-index
   is explicit so this reliably sits above the video on older WebKit/Chrome
   builds too. */
.video-play-btn {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(14, 6, 32, .05) 0%, rgba(14, 6, 32, .45) 100%);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.video-play-btn::before {
  content: "";
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 10px 30px -6px rgba(214, 38, 111, .6);
  position: absolute;
}

.video-play-btn svg {
  position: relative;
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 3px;
}

.video-play-btn:hover::before {
  transform: scale(1.08);
}

.video-frame.is-playing .video-play-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-card .video-label {
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--ink-2);
  text-align: center;
}

.video-more {
  text-align: center;
  margin-top: 32px;
}

.video-grid.collapsed .video-card:nth-child(n+9) {
  display: none;
}

.video-grid.collapsed.landscape .video-card:nth-child(n+7) {
  display: none;
}

/* ---------- Video Lightbox Modal ---------- */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 4, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 20px;
}

.video-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(.92);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.video-modal-backdrop.active .video-modal-container {
  transform: scale(1);
}

.video-modal-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #fff;
}

.video-modal-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  line-height: 1;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.video-modal-body {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: calc(85vh - 60px);
  background: #000;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(214, 38, 111, 0.3);
  position: relative;
}

.video-modal-body video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 2;
}

.video-modal-nav svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.video-modal-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.video-modal-nav.prev {
  left: -64px;
}

.video-modal-nav.next {
  right: -64px;
}

@media (max-width:640px) {
  .video-modal-nav.prev {
    left: 8px;
  }

  .video-modal-nav.next {
    right: 8px;
  }
}

/* Values grid small icons row */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: .84rem;
  color: var(--ink-2);
}

/* =====================================================================
   Redesign 2026-11: menus, magazine, CEO desk, panchang and community
   ===================================================================== */

/* ---------- Dropdown menus ---------- */
.nav-group {
  position: relative;
}

.nav-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px 10px 16px;
  font: 500 .88rem var(--font-body);
  color: var(--ink-1);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .3s ease, background .3s ease;
}

.nav-group-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform .25s ease;
}

.nav-group:hover .nav-group-btn,
.nav-group.open .nav-group-btn {
  color: #fff;
  background: var(--surface-strong);
}

.nav-group-btn.active {
  color: var(--teal-300);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 230px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: rgba(22, 10, 48, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 120;
}

/* A bridge over the gap, so the menu stays open on the way down to it. */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav-links .nav-menu a {
  text-align: left;
  border-radius: 8px;
  padding: 10px 14px;
  white-space: nowrap;
}

@media (hover: hover) and (min-width: 961px) {
  .nav-group:focus-within .nav-menu,
  .nav-group:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .nav-group:hover .nav-group-btn svg {
    transform: rotate(180deg);
  }
}

.nav-group.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-group.open .nav-group-btn svg {
  transform: rotate(180deg);
}

@media (max-width:960px) {
  .nav-links {
    align-items: stretch;
    overflow-y: auto;
    padding-top: 90px;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-menu,
  .nav-group.open .nav-menu {
    position: static;
    transform: none;
    min-width: 0;
    background: var(--surface);
    border-color: var(--border-soft);
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    margin: 2px 0 8px;
  }

  .nav-group.open .nav-menu {
    display: flex;
  }

  .nav-links .nav-menu a {
    text-align: center;
    font-size: .95rem;
    padding: 11px 14px;
  }
}

/* ---------- Footer: five columns ---------- */
.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1.2fr;
  gap: 34px;
}

@media (max-width:1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.social-row {
  flex-wrap: wrap;
}

.social-row a:hover {
  border-color: var(--teal-300);
}

/* ---------- Mission & vision band ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

@media (max-width:760px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

.mv-card {
  position: relative;
  padding: 38px 34px 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(124, 58, 237, .16), rgba(214, 38, 111, .08) 60%, rgba(79, 216, 196, .06));
}

.mv-card .eyebrow {
  margin-bottom: .6em;
}

.mv-card p {
  font-family: var(--font-script);
  font-size: 1.42rem;
  line-height: 1.5;
  color: var(--ink-0);
  margin: 0;
}

/* ---------- CEO letter & milestones ---------- */
.letter {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  position: relative;
}

.letter::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: 30px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.letter p {
  color: var(--ink-1);
  font-size: 1.04rem;
}

.letter .hhh {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold-400);
  background: rgba(232, 200, 116, .07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-0);
  font-family: var(--font-script);
  font-size: 1.35rem;
}

.letter .sign {
  margin-top: 2em;
  color: var(--ink-0);
  font-family: var(--font-script);
  font-size: 1.3rem;
}

.letter .sign small {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--ink-3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet-500), var(--magenta-500), var(--teal-400));
  opacity: .7;
}

.tl-item {
  position: relative;
  padding: 0 0 34px 18px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 3px solid var(--gold-400);
  box-shadow: 0 0 0 5px rgba(232, 200, 116, .12);
}

.tl-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink-0);
  line-height: 1.1;
}

.tl-year span {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-300);
  vertical-align: middle;
}

.tl-item p {
  color: var(--ink-2);
  margin: .5em 0 0;
}

/* ---------- Video link cards (YouTube) ---------- */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.yt-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--violet-800), var(--magenta-600));
  overflow: hidden;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-thumb .yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: rgba(214, 38, 111, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.yt-thumb .yt-play svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.yt-thumb .yt-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14, 6, 32, .8);
  color: var(--gold-300);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.yt-thumb.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-thumb.no-img .yt-icon {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: rgba(255, 255, 255, .9);
}

.yt-body {
  padding: 14px 16px 16px;
}

.yt-body strong {
  display: block;
  color: var(--ink-0);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.4;
}

.yt-body span {
  font-size: .8rem;
  color: var(--ink-3);
}

.library-block + .library-block {
  margin-top: 56px;
}

.library-block h3 {
  font-size: 1.35rem;
  margin-bottom: .3em;
}

.library-block > p {
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 720px;
}

/* ---------- Magazine cards ---------- */
.mag-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.mag-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.mag-card .mag-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}

.mag-card .mag-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.mag-card:hover .mag-img img {
  transform: scale(1.05);
}

.mag-card .mag-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mag-card h3 {
  font-size: 1.3rem;
  margin: 0;
}

.mag-card p {
  color: var(--ink-2);
  font-size: .94rem;
  margin: 0 0 6px;
  flex: 1;
}

/* ---------- Free community groups ---------- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width:900px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
}

.group-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}

.group-card:hover {
  border-color: var(--teal-300);
  background: var(--surface-strong);
  transform: translateY(-4px);
}

.group-card .icon-badge {
  flex: none;
  margin: 0;
}

.group-card h3 {
  font-size: 1.12rem;
  margin: 0 0 .25em;
}

.group-card p {
  color: var(--ink-2);
  font-size: .9rem;
  margin: 0 0 .7em;
}

.free-tag {
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(79, 216, 196, .14);
  color: var(--teal-300);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Book ---------- */
.book-band {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 56px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 15% 20%, rgba(232, 200, 116, .16), transparent 55%), var(--surface);
}

@media (max-width:760px) {
  .book-band {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .book-band .book-cover {
    max-width: 240px;
    margin: 0 auto;
  }
}

.book-cover img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-3deg);
}

.book-band h2 {
  margin-bottom: .2em;
}

.book-band .book-sub {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-300);
  margin-bottom: 1em;
}

.book-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

@media (max-width:560px) {
  .book-points {
    grid-template-columns: 1fr;
  }
}

.book-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: .93rem;
}

.book-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold-400);
  font-size: .8rem;
  top: 2px;
}

/* ---------- Panchang ---------- */
.pc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 30px;
}

.pc-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pc-controls select,
.pc-controls input {
  min-width: 200px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  color: var(--ink-0);
  font: 500 .95rem var(--font-body);
  color-scheme: dark;
}

.pc-step {
  display: flex;
  gap: 8px;
}

.pc-step button {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--ink-0);
  font: 500 .9rem var(--font-body);
  cursor: pointer;
}

.pc-step button:hover {
  border-color: var(--teal-300);
}

.pc-head {
  text-align: center;
  margin-bottom: 28px;
}

.pc-head .pc-date {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink-0);
}

.pc-head .pc-sub {
  color: var(--ink-2);
}

.pc-sun {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

@media (max-width:760px) {
  .pc-sun {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pc-sun div {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  text-align: center;
}

.pc-sun b {
  display: block;
  font-size: 1.25rem;
  color: var(--ink-0);
  font-weight: 600;
}

.pc-sun span {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.pc-table th,
.pc-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}

.pc-table tr:last-child th,
.pc-table tr:last-child td {
  border-bottom: 0;
}

.pc-table th {
  width: 24%;
  color: var(--gold-300);
  font-weight: 600;
  font-size: .92rem;
}

.pc-table th small {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
}

.pc-table td {
  color: var(--ink-1);
}

.pc-table td .pc-el + .pc-el {
  margin-top: 6px;
}

.pc-table td .pc-name {
  color: var(--ink-0);
  font-weight: 600;
}

.pc-table td .pc-hi {
  color: var(--ink-3);
  margin-left: 6px;
}

.pc-table td .pc-until {
  color: var(--teal-300);
  font-size: .88rem;
  margin-left: 8px;
  white-space: nowrap;
}

.pc-times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

@media (max-width:860px) {
  .pc-times {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pc-times div {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.pc-times div.bad {
  border-color: rgba(239, 77, 143, .45);
  background: rgba(214, 38, 111, .08);
}

.pc-times div.good {
  border-color: rgba(79, 216, 196, .45);
  background: rgba(79, 216, 196, .07);
}

.pc-times span {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pc-times b {
  color: var(--ink-0);
  font-weight: 600;
}

.pc-note {
  margin-top: 22px;
  text-align: center;
  color: var(--ink-3);
  font-size: .85rem;
}

@media (max-width:560px) {

  .pc-table th,
  .pc-table td {
    display: block;
    width: 100%;
  }

  .pc-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .pc-controls select,
  .pc-controls input {
    min-width: 0;
    width: 100%;
  }

  .pc-controls label {
    width: 100%;
  }
}

/* ---------- Contact map ---------- */
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 16 / 7;
  min-height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(.88) hue-rotate(185deg) saturate(.8);
}

/* ---------- Plain prose blocks ---------- */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose p {
  color: var(--ink-2);
  font-size: 1.02rem;
}

.prose h2 {
  margin-top: 1.2em;
}


/* =====================================================================
   THEME — the Your Centre app & Kundali PDF look (2026-11)
   Deep indigo (#1D2766 / #0D1130), gold (#E9B44C / #F7DDA0), white paper on
   the app's cream (#F6F4EF), Poppins type. Dark bands (header, heroes, CTA,
   book advert, footer) flip the ink variables to light inside them.
   ===================================================================== */
:root {
  --indigo: #1D2766;
  --indigo-deep: #0D1130;
  --indigo-2: #27347A;
  --indigo-3: #3D4FA8;
  --gold: #E9B44C;
  --gold-soft: #F7DDA0;
  --gold-ink: #8A5E00;
  --cream: #F6F4EF;
  --tint: #F4F2EC;
  --accent-tint: #E8EBF7;
  --active: #FFF1D2;
  --line: #E5E2DA;
  --good: #1F7A4D;
  --bad: #B3261E;

  --bg-0: #F6F4EF;
  --bg-1: #FFFFFF;
  --bg-2: #EFEBE2;
  --surface: #FFFFFF;
  --surface-strong: #FFFDF6;
  --border-soft: #E5E2DA;
  --border-strong: #D3CDBF;

  --ink-0: #15171E;
  --ink-1: #2C3040;
  --ink-2: #4A4E5A;
  --ink-3: #6B7080;

  --violet-900: #0D1130;
  --violet-800: #141A45;
  --violet-700: #1D2766;
  --violet-600: #27347A;
  --violet-500: #3D4FA8;
  --magenta-600: #C9962E;
  --magenta-500: #E9B44C;
  --magenta-400: #F2C766;
  --teal-400: #27347A;
  --teal-300: #27347A;
  --gold-400: #E9B44C;
  --gold-300: #F7DDA0;

  --grad-brand: linear-gradient(120deg, #1D2766 0%, #27347A 60%, #3D4FA8 100%);
  --grad-hero: none;
  --grad-text: linear-gradient(100deg, #B07A12 0%, #8A5E00 100%);
  --shadow-soft: 0 24px 60px -28px rgba(13, 17, 48, .38);
  --shadow-card: 0 18px 40px -22px rgba(13, 17, 48, .32);

  --font-display: 'Poppins', sans-serif;
  color-scheme: light;
}

/* Ink and surfaces for the dark indigo bands. */
.site-header,
.hero,
.page-hero,
.cta-band,
.site-footer,
.book-ad,
.marquee,
.book-strip,
.dark-band {
  --ink-0: #FFFFFF;
  --ink-1: #E7E9F4;
  --ink-2: #C7CBE0;
  --ink-3: #9CA2C2;
  --teal-300: #F7DDA0;
  --teal-400: #E9B44C;
  --surface: rgba(255, 255, 255, .06);
  --surface-strong: rgba(255, 255, 255, .11);
  --border-soft: rgba(255, 255, 255, .13);
  --border-strong: rgba(255, 255, 255, .26);
  --grad-text: linear-gradient(100deg, #F7DDA0 0%, #E9B44C 100%);
  color-scheme: dark;
}

body {
  background: var(--cream);
  color: var(--ink-1);
}

body::before {
  display: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -.01em;
}

h2 {
  color: var(--indigo);
}

.dark-band h2,
.cta-band h2,
.book-ad h2,
.hero h2 {
  color: #fff;
}

.eyebrow {
  color: var(--gold-ink);
}

.site-header .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow,
.book-ad .eyebrow,
.book-strip .eyebrow,
.site-footer .eyebrow {
  color: var(--gold) !important;
}

::selection {
  background: var(--gold-soft);
  color: var(--indigo-deep);
}

/* Buttons: indigo on paper, gold on indigo. */
.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(13, 17, 48, .55);
}

.btn-primary:hover {
  background: var(--indigo-2);
  box-shadow: 0 16px 30px -12px rgba(13, 17, 48, .6);
}

.btn-ghost {
  color: var(--indigo);
  border-color: rgba(29, 39, 102, .35);
}

.btn-ghost:hover {
  background: var(--accent-tint);
  border-color: var(--indigo);
}

.btn-gold,
.hero .btn-primary,
.page-hero .btn-primary,
.book-ad .btn-primary {
  background: var(--gold);
  color: var(--indigo-deep);
  border: 0;
  box-shadow: 0 12px 26px -12px rgba(233, 180, 76, .7);
}

.btn-gold:hover,
.hero .btn-primary:hover {
  background: #F2C766;
  color: var(--indigo-deep);
  transform: translateY(-2px);
}

.site-header .btn-ghost,
.hero .btn-ghost,
.page-hero .btn-ghost,
.book-ad .btn-ghost,
.cta-band .btn-ghost,
.site-footer .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.site-header .btn-ghost:hover,
.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover,
.book-ad .btn-ghost:hover,
.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--gold);
}

/* ---------- Header: the PDF's indigo strip with its gold rule ---------- */
.site-header,
.site-header.scrolled {
  background: var(--indigo-deep);
  border-bottom: 2px solid var(--gold);
  padding: 0;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}

.site-header .nav-wrap {
  padding: 10px 24px;
}

.site-header.scrolled .nav-wrap {
  padding: 6px 24px;
}

.brand img {
  filter: none;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.brand {
  color: #fff;
}

.brand small {
  color: var(--gold-soft);
}

.announce {
  display: block;
  text-align: center;
  padding: 7px 16px;
  background: var(--gold);
  color: var(--indigo-deep);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
}

.announce:hover .announce-cta {
  text-decoration: underline;
}

.announce-new {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--indigo-deep);
  color: var(--gold-soft);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.announce-cta {
  margin-left: 6px;
  white-space: nowrap;
}

.nav-menu {
  background: var(--indigo-deep);
  border-color: rgba(233, 180, 76, .45);
}

.nav-links a.active,
.nav-group-btn.active {
  color: var(--gold);
}

@media (max-width:960px) {
  .nav-links {
    background: var(--indigo-deep);
    border-left: 2px solid var(--gold);
    padding-top: 120px;
  }

  .nav-actions .nav-book {
    display: inline-flex;
    padding: 9px 16px;
  }

  .nav-menu,
  .nav-group.open .nav-menu {
    background: rgba(255, 255, 255, .05);
  }
}

@media (max-width:520px) {
  .brand span {
    font-size: 1.05rem;
  }

  .brand small {
    display: none;
  }

  .brand img {
    height: 40px;
  }

  .announce {
    font-size: .76rem;
  }
}

/* Room for the fixed header (announcement bar + nav). */
.page-hero {
  padding: 190px 0 80px;
  margin-bottom: 64px;
  background: radial-gradient(circle at 85% 0%, rgba(233, 180, 76, .16), transparent 45%), var(--indigo-deep);
  border-bottom: 2px solid var(--gold);
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  color: var(--ink-2);
}

.breadcrumb,
.breadcrumb a {
  color: var(--ink-3);
}

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

/* ---------- Home hero ---------- */
.hero {
  min-height: 0;
  padding: 90px 0 90px;
  background: radial-gradient(circle at 10% 10%, rgba(233, 180, 76, .14), transparent 40%), linear-gradient(180deg, var(--indigo), var(--indigo-deep));
  border-bottom: 2px solid var(--gold);
}

.hero h1 {
  color: #fff;
}

.h1-kicker {
  display: block;
  font-size: .42em;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .45em;
  font-weight: 600;
}

.hero .stat-row .num {
  color: var(--gold);
}

.hero-orb {
  display: none;
}

.hero-frame {
  border-color: rgba(233, 180, 76, .4);
}

/* ---------- Cards and panels on paper ---------- */
.card,
.testi-card,
.panel-visual,
.mag-card,
.group-card,
.yt-card,
.form-card,
.letter,
.pc-table,
.pc-sun div,
.pc-times div {
  box-shadow: 0 10px 28px -22px rgba(13, 17, 48, .45);
}

.card:hover {
  background: #fff;
  border-color: rgba(233, 180, 76, .7);
}

.card h3,
.mag-card h3,
.group-card h3,
.library-block h3 {
  color: var(--indigo);
}

.card .card-link,
.mag-card .card-link {
  color: var(--indigo-2);
}

.check-list .tick {
  background: var(--gold);
  color: var(--indigo-deep);
}

.pill {
  background: #fff;
  color: var(--indigo);
  border-color: var(--border-strong);
}

.marquee {
  background: var(--indigo);
  border-color: var(--gold);
}

.marquee em {
  color: var(--gold);
}

.marquee span {
  color: #fff;
}

.cta-band {
  background: radial-gradient(circle at 90% 10%, rgba(233, 180, 76, .22), transparent 45%), var(--indigo-deep);
  border: 1px solid rgba(233, 180, 76, .4);
}

.cta-band .btn {
  margin: 4px 5px;
}

.site-footer {
  background: var(--indigo-deep);
  border-top: 2px solid var(--gold);
}

.site-footer h4 {
  color: var(--gold);
}

.site-footer .footer-grid a:hover {
  color: var(--gold-soft);
}

.social-row svg {
  fill: #fff;
}

.social-row a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.social-row a:hover svg {
  fill: var(--indigo-deep);
}

.back-to-top {
  background: var(--indigo);
  border: 1px solid var(--gold);
}

/* Forms on white */
.field input,
.field select,
.field textarea {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--ink-0);
  color-scheme: light;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--indigo-2);
  background: #fff;
  outline: 2px solid rgba(39, 52, 122, .15);
}

.field label {
  color: var(--ink-1);
}

/* Section-specific colours that assumed a dark page */
.mv-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--gold);
}

.mv-card p {
  color: var(--indigo);
}

.free-tag {
  background: var(--active);
  color: var(--gold-ink);
}

.tl-year {
  color: var(--indigo);
}

.tl-year span {
  color: var(--gold-ink);
}

.tl-item::before {
  background: #fff;
}

.letter {
  background: #fff;
}

.letter .hhh {
  background: var(--active);
  color: var(--indigo);
}

.letter .sign {
  color: var(--indigo);
}

.book-band .book-sub {
  color: var(--gold-ink);
}

.pc-controls select,
.pc-controls input {
  background: #fff;
  color: var(--ink-0);
  color-scheme: light;
}

.pc-step button {
  background: #fff;
  color: var(--indigo);
}

.pc-step button:hover {
  border-color: var(--gold);
  background: var(--active);
}

.pc-head .pc-date {
  color: var(--indigo);
}

.pc-sun b,
.pc-times b {
  color: var(--indigo);
}

.pc-table th {
  color: var(--indigo);
  background: var(--tint);
}

.pc-table td .pc-until {
  color: var(--gold-ink);
}

.pc-times div.bad {
  border-color: rgba(179, 38, 30, .35);
  background: #FCEDEB;
}

.pc-times div.good {
  border-color: rgba(31, 122, 77, .35);
  background: #E9F5EE;
}

.map-embed iframe {
  filter: none;
}

.yt-thumb .yt-play {
  background: rgba(13, 17, 48, .85);
  border: 1px solid var(--gold);
}

.yt-thumb .yt-tag {
  background: var(--gold);
  color: var(--indigo-deep);
}

.mag-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- The book advertisement (as on page 1 of every Kundali) ---------- */
.book-ad-section {
  padding: 150px 0 50px;
}

.book-ad {
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(61, 79, 168, .45), transparent 60%), var(--indigo-deep);
  border: 2px solid var(--gold);
  box-shadow: 0 30px 70px -30px rgba(13, 17, 48, .7);
}

.book-ad-head {
  background: var(--gold);
  padding: 12px 20px;
  text-align: center;
}

.book-ad-head h2,
.book-ad-head h1 {
  margin: 0;
  color: var(--indigo-deep);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  letter-spacing: 0;
}

.book-ad-body {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 250px) 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: clamp(20px, 3.4vw, 38px);
}

.book-ad-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-ad-list li {
  position: relative;
  padding-left: 22px;
  color: #fff;
  font-size: .95rem;
  line-height: 1.5;
}

.book-ad-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  border-left: 9px solid var(--gold);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.book-ad-cover img {
  width: 100%;
  border: 4px solid #fff;
  border-radius: 4px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  transition: transform .4s ease;
}

.book-ad-cover:hover img {
  transform: translateY(-6px) rotate(-1deg);
}

.book-ad-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 20px 26px;
}

.book-ad-bar {
  background: var(--gold-soft);
  color: var(--indigo-deep);
  text-align: center;
  font-weight: 600;
  font-size: .82rem;
  padding: 9px 16px;
  line-height: 1.5;
}

@media (max-width:860px) {
  .book-ad-body {
    grid-template-columns: 1fr;
  }

  .book-ad-cover {
    order: -1;
    width: min(230px, 60vw);
    margin: 0 auto;
  }
}

/* The compact book strip above every inner page's footer */
.book-strip-wrap {
  padding: 30px 0 70px;
}

.book-strip {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px 28px;
  border-radius: 16px;
  background: var(--indigo-deep);
  border: 2px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
}

.book-strip:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -26px rgba(13, 17, 48, .8);
}

.book-strip img {
  width: 78px;
  border: 3px solid #fff;
  border-radius: 3px;
  flex: none;
}

.book-strip-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-strip-text strong {
  color: #fff;
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.book-strip-text span:not(.eyebrow) {
  color: var(--ink-2);
  font-size: .92rem;
}

@media (max-width:640px) {
  .book-strip {
    flex-wrap: wrap;
    padding: 18px;
  }

  .book-strip .btn {
    width: 100%;
  }
}

/* The Book page */
.book-hero {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width:760px) {
  .book-hero {
    grid-template-columns: 1fr;
  }

  .book-hero .book-cover {
    max-width: 250px;
    margin: 0 auto;
  }
}

.book-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 22px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--indigo);
}

.book-price span {
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--ink-3);
}

.book-inside {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 30px;
}

@media (max-width:760px) {
  .book-inside {
    grid-template-columns: 1fr;
  }
}

.book-inside li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
}

.book-inside li::before {
  content: "✦";
  position: absolute;
  left: 18px;
  top: 15px;
  color: var(--gold);
}

.book-inside li span {
  display: block;
  color: var(--ink-0);
  font-weight: 500;
}

.book-inside li small {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: .86rem;
}

/* FAQ */
.faq {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--indigo);
  list-style: none;
  position: relative;
  padding-right: 50px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold-ink);
}

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

.faq p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-2);
}

/* Images keep their proportions when only the width is constrained. */
img {
  height: auto;
}

.mag-card .mag-img {
  background: var(--tint);
}

.mag-card .mag-img img {
  object-fit: contain;
  padding: 16px;
}

.brand span {
  white-space: nowrap;
}

.footer-grid li {
  color: var(--ink-2);
}

/* People who turn animations off see every section at once. */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Scroll motion ---------- */
.reveal {
  transition: opacity .85s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
  will-change: opacity, transform;
}

.reveal.from-left {
  transform: translateX(-56px);
}

.reveal.from-right {
  transform: translateX(56px);
}

.reveal.zoom {
  transform: scale(.94) translateY(30px);
}

.reveal.rise {
  transform: translateY(80px) rotate(-5deg);
}

.reveal.in,
.reveal.in.from-left,
.reveal.in.from-right,
.reveal.in.zoom,
.reveal.in.rise {
  opacity: 1;
  transform: none;
}

/* Once in, the book floats gently; the advert's gold strip glints now and then. */
.book-ad-cover.in img {
  animation: book-float 6s ease-in-out 1s infinite;
}

.book-ad-cover:hover img {
  transform: none;
}

@keyframes book-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(-1.2deg);
  }
}

.book-ad-head {
  position: relative;
  overflow: hidden;
}

.book-ad.in .book-ad-head::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: glint 5s ease-in-out 1.2s infinite;
}

@keyframes glint {
  0% {
    left: -40%;
  }

  35%,
  100% {
    left: 130%;
  }
}

.timeline::before {
  transform-origin: top;
  transform: scaleY(var(--tl, 1));
  transition: transform .15s linear;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, #F7DDA0, #FFD36B);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.page-hero {
  background-repeat: no-repeat;
}

/* Lift on hover for the cards people tap */
.mag-card,
.group-card,
.yt-card,
.book-strip,
.card {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.from-left,
  .reveal.from-right,
  .reveal.zoom,
  .reveal.rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .book-ad-cover.in img,
  .book-ad.in .book-ad-head::after {
    animation: none;
  }

  .timeline::before {
    transform: none;
  }
}

/* Home: the hero opens the page again, under the fixed header. */
.hero {
  padding-top: 175px;
}

.book-ad-section {
  padding: 90px 0 10px;
}

.footer-bottom .credit a {
  color: var(--gold-soft);
  font-weight: 600;
}

.footer-bottom .credit a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ---------- "Know Your Future" popup ---------- */
.ask-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 18px;
  background: #fff;
  color: var(--ink-1);
  box-shadow: 0 40px 90px -30px rgba(13, 17, 48, .8);
  overflow: auto;
}

.ask-dialog::backdrop {
  background: rgba(13, 17, 48, .72);
}

.ask-dialog[open] {
  animation: ask-in .35s cubic-bezier(.2, .7, .2, 1);
}

@keyframes ask-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.97);
  }
}

.ask-form {
  position: relative;
  padding: 28px 28px 22px;
  border-top: 8px solid var(--indigo-deep);
}

.ask-form h3 {
  color: var(--indigo);
  font-size: 1.45rem;
  margin: .2em 0 .3em;
}

.ask-lead {
  color: var(--ink-2);
  font-size: .92rem;
  margin: 0 0 18px;
}

.ask-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--indigo);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.ask-close:hover {
  background: var(--active);
  border-color: var(--gold);
}

.ask-form .field {
  margin-bottom: 14px;
}

.ask-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--ink-3) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.ask-check input {
  width: auto !important;
}

.ask-send {
  width: 100%;
  margin-top: 6px;
}

.ask-note {
  text-align: center;
  color: var(--ink-3);
  font-size: .78rem;
  margin: 10px 0 0;
}

.ask-dialog input:disabled {
  opacity: .5;
}

@media (max-width:560px) {
  .ask-form {
    padding: 24px 18px 18px;
  }

  .ask-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Hidden from people, filled in only by spam bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact-form {
  position: relative;
}

/* =====================================================================
   Home hero: a living sky, a turning nakshatra ring and an entrance
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-sky .stars {
  position: absolute;
  inset: -400px;
  background-repeat: repeat;
}

.hero-sky .s1 {
  background-image:
    radial-gradient(1.6px 1.6px at 24px 36px, #fff, transparent 60%),
    radial-gradient(1.1px 1.1px at 140px 84px, #F7DDA0, transparent 60%),
    radial-gradient(1.3px 1.3px at 212px 172px, #fff, transparent 60%),
    radial-gradient(1px 1px at 82px 214px, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 178px 22px, #E9B44C, transparent 60%);
  background-size: 260px 260px;
  animation: twinkle 3.6s ease-in-out infinite alternate, sky-drift-1 160s linear infinite;
}

.hero-sky .s2 {
  background-image:
    radial-gradient(1.2px 1.2px at 60px 120px, #fff, transparent 60%),
    radial-gradient(2px 2px at 300px 60px, #F7DDA0, transparent 60%),
    radial-gradient(1px 1px at 200px 300px, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 340px 260px, #fff, transparent 60%);
  background-size: 380px 380px;
  opacity: .7;
  animation: twinkle 5.5s ease-in-out 1.2s infinite alternate, sky-drift-2 220s linear infinite;
}

@keyframes twinkle {
  from {
    opacity: .25;
  }

  to {
    opacity: .95;
  }
}

@keyframes sky-drift-1 {
  to {
    transform: translate3d(-260px, -260px, 0);
  }
}

@keyframes sky-drift-2 {
  to {
    transform: translate3d(380px, -380px, 0);
  }
}

.hero-sky .glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
}

.hero-sky .g1 {
  top: -260px;
  left: -200px;
  background: radial-gradient(circle, rgba(61, 79, 168, .55), transparent 65%);
  animation: glow-move 16s ease-in-out infinite alternate;
}

.hero-sky .g2 {
  bottom: -300px;
  right: -120px;
  background: radial-gradient(circle, rgba(233, 180, 76, .22), transparent 65%);
  animation: glow-move 21s ease-in-out infinite alternate-reverse;
}

@keyframes glow-move {
  to {
    transform: translate(140px, 70px) scale(1.18);
  }
}

/* The ring of 12 rashis and 27 nakshatras around the slideshow */
.hero-visual {
  position: relative;
}

.hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 122%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

.hero-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-ring .ring-outer {
  animation: ring-spin 120s linear infinite;
}

.hero-ring .ring-inner {
  animation: ring-spin 80s linear infinite reverse;
}

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

.hero-frame {
  position: relative;
  z-index: 1;
  animation: frame-float 7s ease-in-out infinite;
}

@keyframes frame-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Each slide zooms slowly while it shows */
.hero-slideshow .slide.active {
  animation: ken-burns 5s ease-out both;
}

@keyframes ken-burns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* Entrance: the kicker spreads in, the headline rises word by word, then the rest */
.hero .h1-kicker,
.hero .hw,
.hero .ha {
  opacity: 0;
  transform: translateY(28px);
}

.hero .hw {
  display: inline-block;
}

.hero.hero-ready .h1-kicker {
  animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) .1s forwards, kicker-spread 1.3s cubic-bezier(.2, .7, .2, 1) .1s both;
}

.hero.hero-ready .hw {
  animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(.35s + var(--w, 0) * .14s);
}

.hero.hero-ready .ha {
  animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 1s);
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kicker-spread {
  from {
    letter-spacing: .55em;
  }

  to {
    letter-spacing: .14em;
  }
}

.hero .hero-visual {
  opacity: 0;
  transform: scale(.9);
}

.hero.hero-ready .hero-visual {
  animation: hero-pop 1.2s cubic-bezier(.2, .7, .2, 1) .5s forwards;
}

@keyframes hero-pop {
  to {
    opacity: 1;
    transform: none;
  }
}

/* A light sweep across the main button now and then */
.hero .btn-primary {
  position: relative;
  overflow: hidden;
}

.hero .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: glint 4.5s ease-in-out 2.4s infinite;
}

@media (max-width:900px) {
  .hero-ring {
    width: 112%;
  }
}

/* Inner pages: the same twinkling sky in the title band */
.page-hero {
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -300px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, #fff, transparent 60%),
    radial-gradient(1px 1px at 150px 90px, #F7DDA0, transparent 60%),
    radial-gradient(1.2px 1.2px at 220px 180px, #fff, transparent 60%),
    radial-gradient(1px 1px at 90px 230px, #fff, transparent 60%);
  background-size: 280px 280px;
  animation: twinkle 4s ease-in-out infinite alternate, sky-drift-3 180s linear infinite;
}

@keyframes sky-drift-3 {
  to {
    transform: translate3d(-280px, 280px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero .h1-kicker,
  .hero .hw,
  .hero .ha,
  .hero .hero-visual {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hero-sky .stars,
  .hero-sky .glow,
  .hero-ring svg,
  .hero-frame,
  .hero-slideshow .slide.active,
  .hero .btn-primary::after,
  .page-hero::before {
    animation: none !important;
  }
}

/* ---------- No sideways overflow on phones ----------
   Sections that slide in from the side sit outside the screen until they appear; on a phone
   that made the page wider than the screen. Below 900px they rise instead, and the page clips
   anything wider than the screen (clip keeps scrolling and the fixed header working). */
@supports (overflow: clip) {

  html,
  body {
    overflow-x: clip;
  }
}

@media (max-width:900px) {

  .reveal.from-left,
  .reveal.from-right {
    transform: translateY(28px);
  }

  .reveal.rise {
    transform: translateY(40px);
  }
}

/* The spam trap takes no room anywhere. */
.hp-field {
  position: absolute !important;
  left: 0 !important;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The closed phone menu is parked off-screen; hide it fully so it can never widen the page. */
@media (max-width:960px) {
  .nav-links {
    visibility: hidden;
    transition: transform .45s cubic-bezier(.16, .8, .24, 1), visibility 0s linear .45s;
  }

  .nav-links.open {
    visibility: visible;
    transition: transform .45s cubic-bezier(.16, .8, .24, 1), visibility 0s;
  }
}

/* The map keeps the screen's width on phones (its shape and minimum height made it 640px wide). */
.map-embed {
  width: 100%;
  max-width: 100%;
}

@media (max-width:760px) {
  .map-embed {
    aspect-ratio: auto;
    min-height: 0;
    height: 320px;
  }
}

/* ---------- Header on phones: "Your Centre" always shows in full ---------- */
@media (max-width:520px) {

  .site-header .nav-wrap,
  .site-header.scrolled .nav-wrap {
    padding: 8px 14px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand img,
  .site-header.scrolled .brand img {
    height: 36px;
  }

  .brand span {
    font-size: 1rem;
  }

  .nav-actions {
    gap: 8px;
    flex: none;
  }

  .nav-actions .nav-book {
    padding: 8px 12px;
    font-size: .74rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width:360px) {
  .nb-the {
    display: none;
  }

  .brand span {
    font-size: .95rem;
  }

  .brand img,
  .site-header.scrolled .brand img {
    height: 32px;
  }
}

/* ---------- Buttons on phones: always inside their box and centred ----------
   The CTA box kept 50px side padding and buttons never wrapped, so on a 360–390px phone the
   longer buttons spilled out to the right. */
@media (max-width:640px) {
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.35;
  }

  .cta-band {
    padding: 46px 20px;
  }

  .cta-band .btn {
    display: flex;
    width: 100%;
    max-width: 340px;
    margin: 12px auto 0;
  }

  .cta-band .btn:first-of-type {
    margin-top: 6px;
  }

  .hero-cta,
  .book-ad-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn,
  .book-ad-actions .btn {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .book-strip .btn {
    width: 100%;
  }
}
