/* ============================================================
   KAPALI'S - Premium Antique Classic Theme (LIGHT / PARCHMENT)
   Palette: Aged ivory parchment, antique gold, deep sepia ink,
            royal maroon accents. Graphically rich & ornamental.
   ============================================================ */

:root {
  --bg: #f8f2e3;                 /* main parchment */
  --bg-2: #f1e8d2;               /* deeper parchment */
  --bg-3: #ece0c4;               /* aged panel */
  --card: #fffcf3;               /* ivory card */
  --heading: #2e2212;            /* deep sepia ink */
  --text: #5a4a32;               /* body brown */
  --text-soft: #7a6a4e;          /* soft brown */
  --gold: #b08a3c;               /* antique gold */
  --gold-deep: #8a6a2a;          /* deep gold */
  --gold-bright: #d4ab55;        /* bright gold */
  --maroon: #7a1f1f;             /* royal maroon */
  --maroon-deep: #4d1313;        /* deep maroon */
  --serif-display: 'Cinzel', serif;
  --serif-fancy: 'Cormorant Garamond', serif;
  --body-font: 'EB Garamond', serif;
  --gold-grad: linear-gradient(135deg, #8a6a2a 0%, #d4ab55 30%, #b08a3c 50%, #e9cb82 72%, #8a6a2a 100%);
  --gold-line: linear-gradient(90deg, transparent, #b08a3c 20%, #8a6a2a 50%, #b08a3c 80%, transparent);

  /* ornamental SVG assets */
  --mandala: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23b08a3c' stroke-width='1.2'%3E%3Ccircle cx='300' cy='300' r='290'/%3E%3Ccircle cx='300' cy='300' r='262'/%3E%3Ccircle cx='300' cy='300' r='210'/%3E%3Ccircle cx='300' cy='300' r='150'/%3E%3Ccircle cx='300' cy='300' r='90'/%3E%3Ccircle cx='300' cy='300' r='34'/%3E%3Cpath d='M300 10 L300 590 M10 300 L590 300 M95 95 L505 505 M505 95 L95 505'/%3E%3Cg%3E%3Cpath d='M300 38 Q340 170 300 300 Q260 170 300 38Z'/%3E%3Cpath d='M562 300 Q430 340 300 300 Q430 260 562 300Z'/%3E%3Cpath d='M300 562 Q260 430 300 300 Q340 430 300 562Z'/%3E%3Cpath d='M38 300 Q170 260 300 300 Q170 340 38 300Z'/%3E%3Cpath d='M485 115 Q365 175 300 300 Q425 235 485 115Z'/%3E%3Cpath d='M485 485 Q425 365 300 300 Q365 425 485 485Z'/%3E%3Cpath d='M115 485 Q235 425 300 300 Q175 365 115 485Z'/%3E%3Cpath d='M115 115 Q175 235 300 300 Q235 175 115 115Z'/%3E%3C/g%3E%3Ccircle cx='300' cy='38' r='6'/%3E%3Ccircle cx='300' cy='562' r='6'/%3E%3Ccircle cx='38' cy='300' r='6'/%3E%3Ccircle cx='562' cy='300' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --flourish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='30' viewBox='0 0 320 30'%3E%3Cg fill='none' stroke='%23b08a3c' stroke-width='1.4'%3E%3Cpath d='M4 15 H118'/%3E%3Cpath d='M202 15 H316'/%3E%3Cpath d='M118 15 q10 -12 22 0 q-12 12 -22 0'/%3E%3Cpath d='M202 15 q-10 -12 -22 0 q12 12 22 0'/%3E%3Cpath d='M150 15 l10 -9 l10 9 l-10 9 Z' fill='%23b08a3c'/%3E%3Ccircle cx='134' cy='15' r='2.6' fill='%23b08a3c'/%3E%3Ccircle cx='186' cy='15' r='2.6' fill='%23b08a3c'/%3E%3Ccircle cx='4' cy='15' r='2.4' fill='%23b08a3c'/%3E%3Ccircle cx='316' cy='15' r='2.4' fill='%23b08a3c'/%3E%3C/g%3E%3C/svg%3E");
  --corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b08a3c' stroke-width='1.5'%3E%3Cpath d='M4 52 V16 Q4 4 16 4 H52'/%3E%3Cpath d='M12 52 V20 Q12 12 20 12 H52' opacity='.45'/%3E%3Cpath d='M4 4 q14 4 18 18' opacity='.7'/%3E%3Ccircle cx='4' cy='52' r='2.6' fill='%23b08a3c'/%3E%3Ccircle cx='52' cy='4' r='2.6' fill='%23b08a3c'/%3E%3C/g%3E%3C/svg%3E");
  --corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b08a3c' stroke-width='1.5' transform='rotate(90 28 28)'%3E%3Cpath d='M4 52 V16 Q4 4 16 4 H52'/%3E%3Cpath d='M12 52 V20 Q12 12 20 12 H52' opacity='.45'/%3E%3Cpath d='M4 4 q14 4 18 18' opacity='.7'/%3E%3Ccircle cx='4' cy='52' r='2.6' fill='%23b08a3c'/%3E%3Ccircle cx='52' cy='4' r='2.6' fill='%23b08a3c'/%3E%3C/g%3E%3C/svg%3E");
  --corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b08a3c' stroke-width='1.5' transform='rotate(180 28 28)'%3E%3Cpath d='M4 52 V16 Q4 4 16 4 H52'/%3E%3Cpath d='M12 52 V20 Q12 12 20 12 H52' opacity='.45'/%3E%3Cpath d='M4 4 q14 4 18 18' opacity='.7'/%3E%3Ccircle cx='4' cy='52' r='2.6' fill='%23b08a3c'/%3E%3Ccircle cx='52' cy='4' r='2.6' fill='%23b08a3c'/%3E%3C/g%3E%3C/svg%3E");
  --corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b08a3c' stroke-width='1.5' transform='rotate(270 28 28)'%3E%3Cpath d='M4 52 V16 Q4 4 16 4 H52'/%3E%3Cpath d='M12 52 V20 Q12 12 20 12 H52' opacity='.45'/%3E%3Cpath d='M4 4 q14 4 18 18' opacity='.7'/%3E%3Ccircle cx='4' cy='52' r='2.6' fill='%23b08a3c'/%3E%3Ccircle cx='52' cy='4' r='2.6' fill='%23b08a3c'/%3E%3C/g%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* fallback for old browsers */
  overflow-x: clip;     /* modern: clips overflow WITHOUT breaking position:sticky */
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1.12rem;
  line-height: 1.75;
  overflow-x: hidden;   /* fallback */
  overflow-x: clip;
  width: 100%;
  position: relative;
}

/* aged paper grain over whole site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.72 0 0 0 0 0.63 0 0 0 0 0.45 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: #fff; }

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

a { color: var(--gold-deep); text-decoration: none; transition: color .3s; }
a:hover { color: var(--maroon); }

/* ---------- Gold text utility ---------- */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ ORNAMENTAL DIVIDER (rich flourish) ============ */
.ornament {
  width: min(320px, 78vw);
  height: 30px;
  margin: 22px auto 0;
  background: var(--flourish) center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ornament i { display: none; }

/* ============ PRELOADER ============ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  transition: opacity .8s ease, visibility .8s;
}
#preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(520px, 110vw);
  height: min(520px, 110vw);
  background: var(--mandala) center / contain no-repeat;
  opacity: .12;
  animation: spinSlow 60s linear infinite;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
#preloader img {
  width: 96px; height: 96px;
  object-fit: contain;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle, #241c10 30%, #0d0a06 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(176,138,60,.15), 0 10px 34px rgba(94,72,36,.35);
  animation: preloaderPulse 1.8s ease-in-out infinite;
  position: relative;
}
#preloader .preloader-word {
  font-family: var(--serif-display);
  letter-spacing: .55em;
  font-size: 1.05rem;
  color: var(--gold-deep);
  text-indent: .55em;
  position: relative;
}
@keyframes preloaderPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.07); box-shadow: 0 0 0 12px rgba(176,138,60,.1), 0 10px 34px rgba(94,72,36,.35); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ============ HEADER / NAV ============ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background .45s ease, padding .45s ease, box-shadow .45s ease;
}
#site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold-line);
  opacity: 0;
  transition: opacity .45s;
}
#site-header.scrolled {
  background: rgba(252,248,238,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 0;
  box-shadow: 0 10px 34px rgba(94,72,36,.14);
}
#site-header.scrolled::after { opacity: 1; }
.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 4px;
  background: radial-gradient(circle, #241c10 30%, #0d0a06 100%);
  box-shadow: 0 0 0 4px rgba(176,138,60,.14), 0 6px 18px rgba(94,72,36,.3);
  transition: transform .5s ease, box-shadow .5s ease;
}
.brand:hover .brand-icon {
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 0 0 6px rgba(176,138,60,.22), 0 8px 24px rgba(94,72,36,.4);
}
.brand-name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: .28em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.brand-tagline {
  display: block;
  font-family: var(--serif-fancy);
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .253em;
  /* light cream - readable over dark hero images (a touch softer than the gold brand name) */
  color: #d9caa2;
  text-shadow: 0 1px 4px rgba(30,20,8,.5);
  margin-top: 5px;
  text-transform: uppercase;
}

/* scrolled (light background) state: darken brand text for readability */
#site-header.scrolled .brand-name {
  background: linear-gradient(135deg, #4a3612 0%, #6b511e 30%, #3a2a10 55%, #7a5c24 78%, #2e2212 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
#site-header.scrolled .brand-tagline {
  color: var(--heading);
  text-shadow: none;
}

/* hero-overlay state: light text before scroll */
#main-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}
#main-nav a {
  font-family: var(--serif-display);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #f3ead2;
  position: relative;
  padding: 6px 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  transition: color .35s;
}
#site-header.scrolled #main-nav a { color: var(--heading); text-shadow: none; }
#main-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-grad);
  transition: width .4s ease, left .4s ease;
}
#main-nav a:hover, #main-nav a.active { color: var(--gold-bright); }
#site-header.scrolled #main-nav a:hover,
#site-header.scrolled #main-nav a.active { color: var(--maroon); }
#main-nav a:hover::after, #main-nav a.active::after { width: 100%; left: 0; }

#nav-toggle {
  display: none;
  background: rgba(252,248,238,.85);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-size: 1.2rem;
  width: 46px; height: 46px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;
}
#nav-toggle:hover { background: var(--gold); color: #fff; }

/* ============ HERO SLIDER ============ */
#hero-slider {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--maroon-deep);
}
/* parchment scalloped edge into page */
#hero-slider::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 42px;
  z-index: 6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42 L0 24 Q150 4 300 22 Q450 40 600 22 Q750 4 900 22 Q1050 40 1200 24 L1200 42 Z' fill='%23f8f2e3'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.6s ease, visibility 1.6s;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  filter: brightness(.55) sepia(.28) saturate(.95);
}
.slide.active .slide-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1.0); }
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(30,20,8,.72) 100%),
    linear-gradient(180deg, rgba(30,20,8,.55) 0%, rgba(30,20,8,.1) 45%, rgba(30,20,8,.75) 100%);
}

/* clean hero (index-2 demo): full image, no dark overlay, no heavy filter */
.slide-bg.hero-clean-bg { filter: none; }
.slide:has(.hero-clean-bg)::after { background: none; }

/* ============================================================
   HEADER CLASSIC (index-2 demo)
   Solid header that sits ABOVE the hero photo (never overlays it)
   ============================================================ */
#site-header.header-classic {
  position: sticky;          /* in normal flow - hero starts below it */
  top: 0;
  padding: 0;
  background: linear-gradient(180deg, #fffdf6, #f6efdd);
  box-shadow: 0 8px 26px rgba(94,72,36,.14);
}
#site-header.header-classic::after { opacity: 1; }
#site-header.header-classic.scrolled {
  padding: 0;
  background: rgba(252,248,238,.96);
}

/* thin maroon utility topbar */
.header-topbar {
  background: linear-gradient(90deg, #5e1414, var(--maroon) 45%, #5e1414);
  border-bottom: 1px solid rgba(212,171,85,.55);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--serif-display);
  font-size: .72rem;
  letter-spacing: .12em;
}
.topbar-inner > a {
  color: #f0e2bc;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .3s;
}
.topbar-inner > a:hover { color: #fff; }
.topbar-inner i { color: var(--gold-bright); font-size: .8rem; }
.topbar-social { margin-left: auto; display: flex; gap: 8px; }
.topbar-social a {
  width: 26px; height: 26px;
  border: 1px solid rgba(212,171,85,.55);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f0e2bc;
  font-size: .72rem;
  transition: all .3s;
}
.topbar-social a:hover { background: var(--gold); border-color: var(--gold-bright); color: #fff; }

/* main nav row - always dark text on light band */
#site-header.header-classic .nav-wrap { padding: 12px 28px; }
#site-header.header-classic.scrolled .nav-wrap { padding: 8px 28px; }
#site-header.header-classic .brand-name {
  background: linear-gradient(135deg, #4a3612 0%, #6b511e 30%, #3a2a10 55%, #7a5c24 78%, #2e2212 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
#site-header.header-classic .brand-tagline { color: var(--heading); }
#site-header.header-classic #main-nav a { color: var(--heading); text-shadow: none; }
#site-header.header-classic #main-nav a:hover,
#site-header.header-classic #main-nav a.active { color: var(--maroon); }

/* Book Consultation button in header */
.header-cta {
  padding: 12px 26px;
  font-size: .7rem;
  letter-spacing: .2em;
  white-space: nowrap;
  margin-left: 22px;
}

/* demo-2 hero: height follows the image ratio (1686 × 1058) so after the
   ken-burns zoom settles the FULL image is visible - nothing cut top/bottom */
body.demo2 #hero-slider {
  height: auto;
  min-height: 0;
  aspect-ratio: 1686 / 1058;
}
/* flat bottom edge - no scalloped wave on the demo hero */
body.demo2 #hero-slider::after { display: none; }

/* ============================================================
   HEADER LIGHT (index-3 demo)
   Transparent header over a light hero - text always dark
   ============================================================ */
#site-header.header-light .brand-name {
  background: linear-gradient(135deg, #4a3612 0%, #6b511e 30%, #3a2a10 55%, #7a5c24 78%, #2e2212 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
#site-header.header-light .brand-tagline { color: var(--heading); }
/* menu links: same gold as the active underline - readable over the hero image too */
#site-header.header-light #main-nav a {
  color: var(--gold-bright);
  text-shadow: 0 1px 5px rgba(30,20,8,.45);
}
#site-header.header-light #main-nav a:hover,
#site-header.header-light #main-nav a.active { color: var(--gold-bright); }
/* scrolled (solid light bg): back to dark text */
#site-header.header-light.scrolled #main-nav a { color: var(--heading); text-shadow: none; }
#site-header.header-light.scrolled #main-nav a:hover,
#site-header.header-light.scrolled #main-nav a.active { color: var(--maroon); }

/* mobile: hero image sits at the top (dark bg behind the header) →
   light gold brand text, exactly like the About page header */
@media (max-width: 920px) {
  #site-header.header-light .brand-name {
    background: var(--gold-grad) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.4);
  }
  #site-header.header-light .brand-tagline {
    color: #f0e2bc !important;
    text-shadow: 0 1px 5px rgba(30,20,8,.55);
  }
  /* scrolled → solid light header → dark brand for readability */
  #site-header.header-light.scrolled .brand-name {
    background: linear-gradient(135deg, #4a3612 0%, #6b511e 30%, #3a2a10 55%, #7a5c24 78%, #2e2212 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    text-shadow: none;
  }
  #site-header.header-light.scrolled .brand-tagline {
    color: var(--heading) !important;
    text-shadow: none;
  }
}

/* ============================================================
   HERO - ROYAL SPLIT (index-3 demo)
   Left: parchment editorial panel · Right: gold-framed imagery
   ============================================================ */
#hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 100vh;
  background:
    var(--mandala) right -240px top -240px / 620px 620px no-repeat,
    linear-gradient(160deg, #fdf9ee 0%, #f4ebd4 60%, #efe3c6 100%);
  overflow: hidden;
}
/* faint watermark mandala behind the text */
#hero-split::before {
  content: '';
  position: absolute;
  left: -190px; bottom: -190px;
  width: 520px; height: 520px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .5;
  pointer-events: none;
}

/* ---------- left · content ---------- */
.hs-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 56px 90px 6vw;
}
.hs-texts { display: grid; }
.hs-text {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(26px);
  visibility: hidden;
  transition: opacity .9s ease, transform .9s ease, visibility .9s;
  pointer-events: none;
}
.hs-text.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.hs-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.06rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 24px;
}
.hs-kicker-line {
  width: 54px; height: 1px;
  background: var(--gold-grad);
  flex: none;
}
.hs-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.16;
  color: var(--heading);
  max-width: 15ch;
  margin-bottom: 24px;
}
.hs-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-deep), #d4ab55 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hs-sub {
  font-family: var(--serif-fancy);
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 46ch;
  color: var(--text-soft, #5a4c34);
  margin-bottom: 38px;
}

/* ---------- controls ---------- */
.hs-controls {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 62px;
}
.hs-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(255,253,246,.6);
  color: var(--gold-deep);
  font-size: 1rem;
  cursor: pointer;
  transition: all .35s;
}
.hs-arrow:hover { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(138,106,42,.35); }
.hs-count {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif-display);
  font-size: .88rem;
  letter-spacing: .18em;
  color: var(--heading);
}
.hs-count .hs-total { color: var(--gold-deep); opacity: .75; }
.hs-line {
  position: relative;
  width: 120px; height: 2px;
  background: rgba(176,138,60,.28);
  overflow: hidden;
}
.hs-line-fill {
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}
.hs-line-fill.run { animation: hsProgress 7.5s linear forwards; }
@keyframes hsProgress { to { transform: scaleX(1); } }

/* ---------- right · imagery ---------- */
.hs-right {
  position: relative;
  min-height: 100%;
  /* soft parchment torn-edge blend into the left panel */
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%, 3% 78%, 5.5% 52%, 2.5% 26%);
}
.hs-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.82) sepia(.22) saturate(.95);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.3s ease, transform 8s ease-out;
}
.hs-img.active { opacity: 1; transform: scale(1); }
/* vignette so the header stays readable over the image side */
.hs-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,20,8,.34), transparent 30%, transparent 78%, rgba(30,20,8,.3));
  pointer-events: none;
}
/* scroll hint on light bg */
.hs-scroll { color: var(--gold-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  #hero-split { grid-template-columns: 1fr 1fr; }
  .hs-left { padding: 140px 40px 70px 40px; }
}
@media (max-width: 920px) {
  #hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hs-right {
    order: 0;
    min-height: 46vh;
    clip-path: none;
  }
  .hs-left {
    order: 1;
    padding: 54px 26px 96px;
    text-align: center;
    align-items: center;
  }
  .hs-kicker { justify-content: center; }
  .hs-title { max-width: none; margin-left: auto; margin-right: auto; }
  .hs-sub { margin-left: auto; margin-right: auto; }
  .hs-controls { justify-content: center; margin-top: 44px; }
  .hs-scroll { display: none; }
}
@media (max-width: 640px) {
  .hs-right { min-height: 40vh; }
  .hs-line { width: 74px; }
  .hs-arrow { width: 46px; height: 46px; }
}

/* ============================================================
   HERO - CINEMATIC DECK (index-4 demo)
   Full-bleed imagery · masked line reveals · roman numeral
   watermark · right thumbnail rail with auto progress bars
   ============================================================ */
#hero-deck {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  background: #17100a;
}
.hd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease, visibility 1.4s;
}
.hd-slide.active { opacity: 1; visibility: visible; z-index: 2; }

/* imagery: slow cinematic drift */
.hd-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  filter: brightness(.5) sepia(.3) saturate(.9) contrast(1.04);
  transform: scale(1.14) translateX(2.5%);
}
.hd-slide.active .hd-bg { animation: hdDrift 12s ease-out forwards; }
@keyframes hdDrift {
  from { transform: scale(1.14) translateX(2.5%); }
  to   { transform: scale(1.04) translateX(0); }
}
/* cinematic gradient: readable left, airy right */
.hd-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23,16,10,.88) 0%, rgba(23,16,10,.55) 34%, rgba(23,16,10,.12) 62%, rgba(23,16,10,.3) 100%),
    linear-gradient(180deg, rgba(23,16,10,.5) 0%, transparent 26%, transparent 72%, rgba(23,16,10,.66) 100%);
}

/* giant roman numeral watermark */
.hd-numeral {
  position: absolute;
  right: max(120px, 12vw);
  bottom: -60px;
  z-index: 3;
  font-family: var(--serif-display);
  font-size: clamp(200px, 30vw, 420px);
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,171,85,.32);
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}
.hd-slide.active .hd-numeral { animation: hdNumeral 1.6s .5s ease forwards; }
@keyframes hdNumeral { to { opacity: 1; transform: translateY(0); } }

/* ---------- content ---------- */
.hd-content {
  position: relative;
  z-index: 4;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
}
.hd-kdot {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--gold-grad);
  flex: none;
}
.hd-slide.active .hd-kicker { animation: hdRise .9s .35s ease forwards; }

/* masked two-line title reveal */
.hd-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.14;
  color: #f6efdd;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
  margin-bottom: 26px;
}
.hd-title em {
  font-style: normal;
  background: linear-gradient(115deg, #d4ab55 10%, #f2d894 40%, #b08a3c 70%, #e8c97e 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hd-mask { display: block; overflow: hidden; }
.hd-mask > span {
  display: block;
  transform: translateY(110%);
}
.hd-slide.active .hd-l1 { animation: hdLine 1s .55s cubic-bezier(.22,.61,.36,1) forwards; }
.hd-slide.active .hd-l2 { animation: hdLine 1s .72s cubic-bezier(.22,.61,.36,1) forwards; }
.hd-slide.active .hd-l3 { animation: hdLine 1s .89s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes hdLine { to { transform: translateY(0); } }

/* 3-line titles (slide 3): slightly smaller so it fits elegantly */
.hd-title.hd-title-sm { font-size: clamp(1.8rem, 3.6vw, 3rem); }

.hd-sub {
  font-family: var(--serif-fancy);
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 52ch;
  color: #e6d9bd;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(18px);
}
.hd-slide.active .hd-sub { animation: hdRise .9s 1.05s ease forwards; }

/* emphasis-4 line - the subtlest: small italic quote */
.hd-quote {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 54ch;
  color: rgba(222,207,174,.75);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(18px);
}
.hd-quote cite {
  font-style: normal;
  font-family: var(--serif-display);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hd-slide.active .hd-quote { animation: hdRise .9s 1.05s ease forwards; }

/* emphasis-2 line - second strongest: prominent gold serif line */
.hd-line2 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.4;
  max-width: 46ch;
  background: linear-gradient(115deg, #e8c97e 5%, #f2d894 40%, #d4ab55 75%, #e8c97e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
  margin-bottom: 38px;
  opacity: 0;
  transform: translateY(18px);
}
.hd-slide.active .hd-line2 { animation: hdRise .9s 1.2s ease forwards; }

.hd-cta { opacity: 0; transform: translateY(18px); }
.hd-slide.active .hd-cta { animation: hdRise .9s 1.4s ease forwards; }
.hd-cta .btn-royal {
  color: #f0e2bc;
  border-color: rgba(212,171,85,.8);
  background: rgba(20,14,6,.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@keyframes hdRise { to { opacity: 1; transform: translateY(0); } }

/* ---------- right thumbnail rail ---------- */
.hd-rail {
  position: absolute;
  right: 44px;
  bottom: 46px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hd-thumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 250px;
  padding: 10px 14px 12px 10px;
  background: rgba(23,16,10,.55);
  border: 1px solid rgba(212,171,85,.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  text-align: left;
  transition: border-color .35s, background .35s, transform .35s;
}
.hd-thumb:hover { border-color: var(--gold-bright); transform: translateX(-4px); }
.hd-thumb.active { border-color: var(--gold-bright); background: rgba(23,16,10,.75); }
.hd-thumb-img {
  width: 58px; height: 42px;
  flex: none;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(212,171,85,.45);
  filter: sepia(.25) brightness(.85);
  transition: filter .35s;
}
.hd-thumb.active .hd-thumb-img,
.hd-thumb:hover .hd-thumb-img { filter: none; }
.hd-thumb-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hd-thumb-meta i {
  font-style: normal;
  font-family: var(--serif-display);
  font-size: .62rem;
  letter-spacing: .3em;
  color: var(--gold-bright);
}
.hd-thumb-meta b {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  color: #eee2c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* auto-advance progress bar along the bottom edge of the active thumb */
.hd-thumb-bar {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: rgba(212,171,85,.18);
  overflow: hidden;
}
.hd-thumb-bar span {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}
.hd-thumb.active .hd-thumb-bar span { animation: hdBar 8s linear forwards; }
@keyframes hdBar { to { transform: scaleX(1); } }

/* ---------- bottom-left status ---------- */
.hd-status {
  position: absolute;
  left: 48px;
  bottom: 52px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif-display);
  font-size: .82rem;
  letter-spacing: .24em;
  color: #e6d9bd;
}
.hd-status #hd-cur { color: var(--gold-bright); }
.hd-status-line {
  width: 90px; height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), rgba(212,171,85,.25));
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hd-thumb { width: 200px; }
  .hd-thumb-meta b { font-size: .72rem; }
}
@media (max-width: 920px) {
  #hero-deck { min-height: 600px; }
  .hd-content { padding: 0 24px 120px; justify-content: flex-end; }
  .hd-numeral { right: 18px; bottom: auto; top: 76px; font-size: 150px; }
  /* rail becomes compact number-only chips at the bottom */
  .hd-rail {
    right: 20px;
    left: auto;
    bottom: 38px;
    flex-direction: row;
    gap: 10px;
  }
  .hd-thumb { width: auto; padding: 8px 12px; gap: 0; }
  .hd-thumb-img, .hd-thumb-meta b { display: none; }
  .hd-thumb-meta i { font-size: .7rem; }
  .hd-status { left: 24px; bottom: 44px; }
  .hd-status-line { width: 54px; }
}
@media (max-width: 640px) {
  #hero-deck { min-height: 560px; }
  .hd-sub { font-size: 1.05rem; margin-bottom: 30px; }
  .hd-quote { font-size: .94rem; }
  .hd-line2 { font-size: 1.08rem; margin-bottom: 28px; }
  .hd-kicker { font-size: .86rem; letter-spacing: .22em; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-slide.active .hd-bg,
  .hd-slide.active .hd-numeral,
  .hd-slide.active .hd-kicker,
  .hd-slide.active .hd-l1,
  .hd-slide.active .hd-l2,
  .hd-slide.active .hd-sub,
  .hd-slide.active .hd-quote,
  .hd-slide.active .hd-line2,
  .hd-slide.active .hd-l3,
  .hd-slide.active .hd-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   HERO - YANTRA PORTAL (index-5 demo)
   Dark celestial canvas · rotating mandala rings · circular
   image portal · chapter-list navigation with progress bars
   ============================================================ */
#hero-portal {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  min-height: 100vh;
  padding: 140px 5vw 90px;
  gap: 30px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 78% 46%, rgba(176,138,60,.16), transparent 60%),
    radial-gradient(ellipse 90% 80% at 15% 100%, rgba(122,31,31,.28), transparent 60%),
    linear-gradient(165deg, #221709 0%, #17100a 55%, #1d1207 100%);
}
/* star-dust field */
#hero-portal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(242,216,148,.8), transparent 100%),
    radial-gradient(1px 1px at 28% 68%, rgba(242,216,148,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(242,216,148,.6), transparent 100%),
    radial-gradient(1px 1px at 58% 82%, rgba(242,216,148,.45), transparent 100%),
    radial-gradient(2px 2px at 70% 30%, rgba(242,216,148,.7), transparent 100%),
    radial-gradient(1px 1px at 84% 60%, rgba(242,216,148,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 14%, rgba(242,216,148,.6), transparent 100%),
    radial-gradient(1px 1px at 8% 88%, rgba(242,216,148,.4), transparent 100%);
  animation: hpTwinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hpTwinkle { from { opacity: .5; } to { opacity: 1; } }

/* ---------- left · content ---------- */
.hp-left {
  position: relative;
  z-index: 3;
  max-width: 640px;
  justify-self: end;
  width: 100%;
}
.hp-texts { display: grid; margin-bottom: 54px; }
.hp-text {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(24px);
  visibility: hidden;
  transition: opacity .9s ease, transform .9s ease, visibility .9s;
  pointer-events: none;
}
.hp-text.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.hp-kicker {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 22px;
}
.hp-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  line-height: 1.16;
  color: #f6efdd;
  max-width: 16ch;
  margin-bottom: 22px;
}
.hp-title em {
  font-style: normal;
  background: linear-gradient(115deg, #d4ab55 10%, #f2d894 45%, #b08a3c 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hp-sub {
  font-family: var(--serif-fancy);
  font-size: 1.16rem;
  line-height: 1.65;
  max-width: 50ch;
  color: #dccfae;
  margin-bottom: 34px;
}
/* longer 3-part titles: slightly smaller */
.hp-title.hp-title-sm { font-size: clamp(1.7rem, 3vw, 2.6rem); }
/* emphasis-4 line - subtlest: small italic quote */
.hp-quote {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 52ch;
  color: rgba(222,207,174,.72);
  margin-bottom: 12px;
}
.hp-quote cite {
  font-style: normal;
  font-family: var(--serif-display);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
/* emphasis-2 line - second strongest: gold gradient serif line */
.hp-line2 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  max-width: 44ch;
  background: linear-gradient(115deg, #e8c97e 5%, #f2d894 40%, #d4ab55 75%, #e8c97e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  margin-bottom: 30px;
}
.hp-cta .btn-royal {
  color: #f0e2bc;
  border-color: rgba(212,171,85,.8);
  background: rgba(20,14,6,.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ---------- chapter navigation ---------- */
.hp-chapters {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(212,171,85,.28);
}
.hp-chap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif-display);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(222,207,174,.5);
  transition: color .4s;
}
.hp-chap i {
  font-style: normal;
  font-size: .7rem;
  color: rgba(212,171,85,.45);
  transition: color .4s, transform .4s;
}
.hp-chap:hover { color: #eee2c4; }
.hp-chap.active { color: var(--gold-bright); }
.hp-chap.active i { color: var(--gold-bright); transform: rotate(45deg); }
/* progress bar under the active chapter */
.hp-chap-bar {
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 1px;
  background: rgba(212,171,85,.15);
  overflow: hidden;
}
.hp-chap-bar em {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}
.hp-chap.active .hp-chap-bar em { animation: hpBar 8s linear forwards; }
@keyframes hpBar { to { transform: scaleX(1); } }

/* ---------- right · the portal ---------- */
.hp-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-portal {
  position: relative;
  width: min(560px, 42vw);
  aspect-ratio: 1;
}
/* desktop only: lift the portal up - less empty space above the circle */
@media (min-width: 921px) {
  .hp-right { margin-top: -104px; }
}

/* rotating rings */
.hp-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hp-ring-outer {
  inset: -7%;
  background: var(--mandala) center / contain no-repeat;
  opacity: .55;
  animation: hpSpin 90s linear infinite;
}
.hp-ring-dashes {
  inset: -2.5%;
  border: 1px dashed rgba(212,171,85,.5);
  animation: hpSpin 60s linear infinite reverse;
}
@keyframes hpSpin { to { transform: rotate(360deg); } }

/* circular imagery */
.hp-orb {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212,171,85,.65);
  box-shadow:
    0 0 0 10px rgba(23,16,10,.6),
    0 0 90px rgba(176,138,60,.32),
    inset 0 0 60px rgba(23,16,10,.55);
}
.hp-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.78) sepia(.24) saturate(.95);
  opacity: 0;
  transform: scale(1.16) rotate(3deg);
  transition: opacity 1.4s ease, transform 9s ease-out;
}
.hp-img.active { opacity: 1; transform: scale(1.02) rotate(0deg); }
/* inner vignette on the orb */
.hp-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, rgba(23,16,10,.55) 100%);
  pointer-events: none;
}

/* counter medallion */
.hp-medal {
  position: absolute;
  right: 3%;
  bottom: 6%;
  z-index: 3;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2a1f10, #17100a);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(23,16,10,.8), 0 0 34px rgba(176,138,60,.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: var(--serif-display);
}
.hp-medal b { font-size: 1.45rem; color: var(--gold-bright); line-height: 1; }
.hp-medal small { font-size: .62rem; letter-spacing: .22em; color: rgba(222,207,174,.6); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  #hero-portal { grid-template-columns: 1fr 1fr; padding: 130px 4vw 80px; }
  .hp-portal { width: min(440px, 44vw); }
}
@media (max-width: 920px) {
  #hero-portal {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 130px 24px 70px;
    gap: 46px;
    text-align: center;
  }
  .hp-right { order: 0; }
  .hp-portal { width: min(340px, 78vw); }
  .hp-left { order: 1; justify-self: center; }
  .hp-title { max-width: none; margin-left: auto; margin-right: auto; }
  .hp-sub, .hp-quote, .hp-line2 { margin-left: auto; margin-right: auto; }
  .hp-texts { margin-bottom: 40px; }
  .hp-chapters { border-left: none; align-items: center; }
  .hp-chap { width: auto; justify-content: center; }
  .hp-medal { width: 74px; height: 74px; right: 0; bottom: 2%; }
  .hp-medal b { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .hp-portal { width: min(300px, 82vw); }
  .hp-sub { font-size: 1.04rem; }
  .hp-chap { font-size: .72rem; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-ring-outer, .hp-ring-dashes { animation: none; }
  #hero-portal::before { animation: none; }
}

/* ------------------------------------------------------------
   RESPONSIVE HERO SWAP (index.html)
   desktop (>920px) = Cinematic Deck · mobile (≤920px) = Yantra Portal
   ------------------------------------------------------------ */
section.hero-mobile,
section#hero-portal.hero-mobile { display: none; }   /* ID-level specificity: beats #hero-portal{display:grid} */
@media (max-width: 920px) {
  section.hero-desktop,
  section#hero-deck.hero-desktop { display: none; }
  section#hero-portal.hero-mobile { display: grid; }
}

@media (max-width: 1180px) {
  .header-cta { display: none; }
}
@media (max-width: 920px) {
  #site-header.header-classic .nav-wrap { padding: 10px 22px; }
  .topbar-inner { padding: 6px 22px; gap: 18px; }
  .topbar-mail { display: none; }
}
@media (max-width: 640px) {
  .topbar-inner { font-size: .66rem; }
}
.slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slide-kicker {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: .3em;
  color: var(--gold-bright);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
}
.slide-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.18;
  margin: 24px 0;
  color: #f7f1e0;
  text-shadow: 0 4px 30px rgba(0,0,0,.8);
  opacity: 0;
  transform: translateY(30px);
}
.slide-title em {
  font-style: normal;
  background: linear-gradient(135deg, #d4ab55, #f3dc9c 45%, #d4ab55 70%, #f3dc9c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slide-sub {
  font-family: var(--serif-fancy);
  font-size: 1.3rem;
  max-width: 700px;
  color: #e2d5b5;
  opacity: 0;
  transform: translateY(30px);
}
.slide-cta { margin-top: 42px; opacity: 0; transform: translateY(30px); }
.slide.active .slide-kicker { animation: riseIn 1s .5s ease forwards; }
.slide.active .slide-title  { animation: riseIn 1s .8s ease forwards; }
.slide.active .slide-sub    { animation: riseIn 1s 1.1s ease forwards; }
.slide.active .slide-cta    { animation: riseIn 1s 1.4s ease forwards; }
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* gold-framed CTA button */
.btn-royal {
  display: inline-block;
  position: relative;
  font-family: var(--serif-display);
  font-size: .85rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 18px 46px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(176,138,60,.1), rgba(176,138,60,.02));
  overflow: hidden;
  transition: color .4s, box-shadow .4s, border-color .4s;
}
.slide-cta .btn-royal { color: #f0e2bc; border-color: rgba(212,171,85,.8); background: rgba(20,14,6,.25); backdrop-filter: blur(3px); }
.btn-royal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  transform: translateX(-101%);
  transition: transform .5s cubic-bezier(.65,0,.35,1);
  z-index: -1;
}
.btn-royal:hover { color: #fff; border-color: var(--gold-bright); box-shadow: 0 10px 30px rgba(138,106,42,.35); }
.btn-royal:hover::before { transform: translateX(0); }
.btn-royal.solid {
  background: var(--gold-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(138,106,42,.35);
  text-shadow: 0 1px 2px rgba(90,60,10,.5);
}
.btn-royal.solid:hover { box-shadow: 0 14px 40px rgba(138,106,42,.5); }

/* corner brackets on buttons */
.btn-royal .corner {
  position: absolute;
  width: 10px; height: 10px;
  border-color: currentColor;
  border-style: solid;
  transition: all .4s;
  opacity: .8;
}
.btn-royal .corner.tl { top: 4px; left: 4px; border-width: 1px 0 0 1px; }
.btn-royal .corner.tr { top: 4px; right: 4px; border-width: 1px 1px 0 0; }
.btn-royal .corner.bl { bottom: 4px; left: 4px; border-width: 0 0 1px 1px; }
.btn-royal .corner.br { bottom: 4px; right: 4px; border-width: 0 1px 1px 0; }

/* slider controls */
.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 7;
}
.slider-dots button {
  width: 34px; height: 4px;
  border: none;
  background: rgba(247,241,224,.3);
  cursor: pointer;
  transition: background .4s;
  position: relative;
  overflow: hidden;
}
.slider-dots button.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-grad);
  animation: dotFill 8s linear forwards;
  transform-origin: left;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  width: 56px; height: 56px;
  background: rgba(20,14,6,.3);
  border: 1px solid rgba(212,171,85,.6);
  color: #e9cb82;
  font-size: 1rem;
  cursor: pointer;
  transition: all .35s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--gold); color: #fff; }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

.scroll-hint {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  color: #e9cb82;
  font-size: 1.3rem;
  animation: scrollBob 2.2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%,100% { transform: translate(-50%, 0); opacity: .9; }
  50% { transform: translate(-50%, 12px); opacity: .4; }
}

/* ============ GENERIC SECTION ============ */
.section {
  position: relative;
  padding: 110px 28px;
  overflow-x: clip;   /* decorative ornaments never widen the page */
}
.section-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.section-head { text-align: center; margin-bottom: 70px; position: relative; }
.section-kicker {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.section-kicker::before,
.section-kicker::after {
  content: '◆';
  font-size: .5rem;
  color: var(--gold);
}
.section-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  color: var(--heading);
  margin-top: 14px;
  line-height: 1.25;
}
.section-title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }
.d4 { transition-delay: .48s; }
.d5 { transition-delay: .6s; }

/* ============ INTRODUCTION ============ */
#intro-section {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(176,138,60,.1), transparent),
    var(--bg);
  overflow: hidden;
}
#intro-section::before {
  content: '';
  position: absolute;
  left: -190px; top: 90px;
  width: 560px; height: 560px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .1;
  animation: spinSlow 90s linear infinite;
  pointer-events: none;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}
.intro-text .drop-cap::first-letter {
  font-family: var(--serif-display);
  float: left;
  font-size: 4.6rem;
  line-height: .82;
  padding: 8px 14px 0 0;
  color: var(--maroon);
}
.intro-text p + p { margin-top: 20px; }
.intro-quote {
  margin-top: 34px;
  padding: 30px 34px 28px 42px;
  border-left: 3px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(176,138,60,.12), rgba(176,138,60,.02)),
    var(--card);
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--heading);
  position: relative;
  box-shadow: 0 14px 40px rgba(94,72,36,.12);
}
.intro-quote::before {
  content: '\201C';
  position: absolute;
  top: -18px; left: 14px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: .55;
}

/* ornate framed image */
.antique-frame {
  position: relative;
  padding: 18px;
  background:
    var(--corner-tl) top left no-repeat,
    var(--corner-tr) top right no-repeat,
    var(--corner-br) bottom right no-repeat,
    var(--corner-bl) bottom left no-repeat,
    linear-gradient(160deg, #fffdf6, #f4ebd6);
  box-shadow: 0 24px 60px rgba(94,72,36,.2);
  transition: box-shadow .5s ease, transform .5s ease;
}
.antique-frame:hover { box-shadow: 0 30px 80px rgba(94,72,36,.3); transform: translateY(-6px); }
.antique-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(176,138,60,.55);
  pointer-events: none;
  z-index: 2;
}
.antique-frame img {
  width: 100%;
  filter: sepia(.22) brightness(.98) contrast(1.03);
  transition: filter .6s ease;
  position: relative;
}
.antique-frame:hover img { filter: sepia(.05) brightness(1.02); }
.frame-caption {
  position: static;
  margin-top: 14px;
  background: rgba(252,248,238,.92);
  border: 1px solid var(--gold);
  padding: 12px 18px;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1rem;
  color: var(--maroon);
  text-align: center;
  letter-spacing: .08em;
  box-shadow: 0 8px 24px rgba(94,72,36,.18);
}

/* ============ DUKHA / THREE SUFFERINGS ============ */
#dukha-section {
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
  border-top: 1px solid rgba(176,138,60,.3);
}
#dukha-section::before {
  content: 'ॐ';
  position: absolute;
  right: -50px;
  top: 30px;
  font-size: 26rem;
  color: rgba(176,138,60,.09);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}
#dukha-section::after {
  content: '';
  position: absolute;
  left: -160px; bottom: -160px;
  width: 480px; height: 480px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}
.dukha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.dukha-card {
  position: relative;
  background:
    var(--corner-tl) 6px 6px no-repeat,
    var(--corner-tr) top 6px right 6px no-repeat,
    var(--corner-br) bottom 6px right 6px no-repeat,
    var(--corner-bl) bottom 6px left 6px no-repeat,
    linear-gradient(165deg, #fffdf6, #f6eeda);
  border: 1px solid rgba(176,138,60,.45);
  padding: 52px 36px 44px;
  text-align: center;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .55s, border-color .55s;
  box-shadow: 0 14px 40px rgba(94,72,36,.12);
  overflow: hidden;
}
.dukha-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transition: transform .6s ease;
}
.dukha-card:hover { transform: translateY(-12px); border-color: var(--gold); box-shadow: 0 34px 70px rgba(94,72,36,.25); }
.dukha-card:hover::before { transform: scaleX(1); }
.dukha-num {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .4em;
  color: var(--maroon);
}
.dukha-icon {
  width: 88px; height: 88px;
  margin: 22px auto 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--gold-deep);
  background:
    radial-gradient(circle, rgba(176,138,60,.16), rgba(176,138,60,.03) 70%);
  position: relative;
  transition: transform .6s ease, box-shadow .6s;
}
.dukha-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(176,138,60,.55);
  animation: spinSlow 26s linear infinite;
}
.dukha-card:hover .dukha-icon { transform: scale(1.1); box-shadow: 0 10px 30px rgba(138,106,42,.3); color: var(--maroon); }
.dukha-card h3 {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  letter-spacing: .16em;
  color: var(--heading);
}
.dukha-card .dukha-sub {
  font-family: var(--serif-fancy);
  font-style: italic;
  color: var(--maroon);
  font-size: 1.05rem;
  margin: 8px 0 18px;
}
.dukha-card p { font-size: 1.02rem; }
.dukha-cure {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(176,138,60,.35);
  font-size: .98rem;
}
.dukha-cure strong {
  display: block;
  font-family: var(--serif-display);
  font-size: .74rem;
  letter-spacing: .3em;
  color: var(--gold-deep);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ---- dukha card image ---- */
.dukha-media {
  margin: -52px -36px 30px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.dukha-media img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* dukha images - square */
  height: auto;
  object-fit: cover;
  filter: sepia(.25) brightness(.96);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .8s;
}
.dukha-card:hover .dukha-media img { transform: scale(1.08); filter: sepia(.05) brightness(1); }
.dukha-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(255,253,246,.55) 92%, #fffdf6 100%);
  pointer-events: none;
}

/* ============ METHODOLOGY / WHY US ============ */
#methodology-section {
  background:
    linear-gradient(rgba(241,232,210,.92), rgba(248,242,227,.95)),
    url('https://kapalis.com/images/methodology-bg.jpg') center/cover fixed;
  border-top: 1px solid rgba(176,138,60,.3);
  border-bottom: 1px solid rgba(176,138,60,.3);
}
.method-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.ratio-display {
  text-align: center;
  padding: 44px 22px 38px;
  border: 1px solid var(--gold);
  background:
    var(--corner-tl) 5px 5px no-repeat,
    var(--corner-tr) top 5px right 5px no-repeat,
    var(--corner-br) bottom 5px right 5px no-repeat,
    var(--corner-bl) bottom 5px left 5px no-repeat,
    linear-gradient(180deg, #fffdf6, #f4ebd6);
  position: relative;
  box-shadow: 0 20px 50px rgba(94,72,36,.16);
}
.ratio-display h3 {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-weight: 500;
  color: var(--heading);
  font-size: 1.3rem;
  margin-bottom: 30px;
}
.ratio-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ratio-item { padding: 0 18px; }
.ratio-num {
  font-family: var(--serif-display);
  font-size: 2.6rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ratio-label {
  font-family: var(--serif-display);
  font-size: .68rem;
  letter-spacing: .26em;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-top: 6px;
}
.ratio-sep {
  font-size: 2rem;
  color: var(--gold);
  align-self: flex-start;
  padding-top: 8px;
}
.method-points { margin-top: 40px; display: grid; gap: 22px; }
.method-point {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid rgba(176,138,60,.35);
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(94,72,36,.1);
  transition: border-color .4s, box-shadow .4s, transform .4s;
}
.method-point:hover { border-color: var(--gold); box-shadow: 0 18px 44px rgba(94,72,36,.2); transform: translateX(8px); }
.method-point i {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-size: 1.05rem;
  background: radial-gradient(circle, rgba(176,138,60,.14), transparent 70%);
}
.method-point h4 {
  font-family: var(--serif-display);
  font-size: 1.02rem;
  letter-spacing: .1em;
  color: var(--heading);
  margin-bottom: 6px;
}
.method-point p { font-size: 1rem; }

/* ============ SERVICES PREVIEW ============ */
#services-section { background: var(--bg); overflow: hidden; }
#services-section::before {
  content: '';
  position: absolute;
  right: -200px; top: 120px;
  width: 620px; height: 620px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .09;
  animation: spinSlow 110s linear infinite reverse;
  pointer-events: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  border: 1px solid rgba(176,138,60,.4);
  background: linear-gradient(170deg, #fffdf6, #f5ecd8);
  padding: 44px 26px 38px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(94,72,36,.1);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -70px; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 240px;
  background: var(--mandala) center / contain no-repeat;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(176,138,60,.3);
  pointer-events: none;
  transition: border-color .5s, inset .5s;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 30px 60px rgba(94,72,36,.22); }
.service-card:hover::before { opacity: .14; }
.service-card:hover::after { border-color: rgba(176,138,60,.6); }
/* ---- service card image ---- */
.service-media {
  margin: -44px -26px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(176,138,60,.5);
}
.service-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: sepia(.25) brightness(.96);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .8s;
}
.service-card:hover .service-media img { transform: scale(1.1); filter: sepia(.05) brightness(1); }
.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,34,18,.12), transparent 45%);
  pointer-events: none;
}
.service-icon {
  width: 74px; height: 74px;
  margin: -37px auto 20px;
  background:
    radial-gradient(circle, #fffdf6 40%, #f3e9d2 100%);
  box-shadow: 0 8px 22px rgba(94,72,36,.22);
  z-index: 2;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--gold-deep);
  transition: transform .5s ease, color .5s, box-shadow .5s;
  position: relative;
}
.service-card:hover .service-icon { transform: scale(1.12) translateY(-4px); color: var(--maroon); box-shadow: 0 10px 26px rgba(138,106,42,.3); }
.service-card h3 {
  font-family: var(--serif-display);
  font-size: 1.06rem;
  letter-spacing: .14em;
  color: var(--heading);
  margin-bottom: 12px;
  position: relative;
}
.service-card h3::after {
  content: '';
  display: block;
  width: 44px; height: 2px;
  margin: 12px auto 0;
  background: var(--gold-grad);
}
.service-card p { font-size: .96rem; line-height: 1.6; position: relative; }
.services-cta { text-align: center; margin-top: 56px; }

/* marquee of all services */
.services-marquee {
  margin-top: 70px;
  overflow: hidden;
  border-top: 1px solid rgba(176,138,60,.4);
  border-bottom: 1px solid rgba(176,138,60,.4);
  padding: 18px 0;
  position: relative;
  background: linear-gradient(90deg, var(--bg-2), var(--card), var(--bg-2));
}
.services-marquee .track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.services-marquee:hover .track { animation-play-state: paused; }
.services-marquee span {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .18em;
  color: var(--gold-deep);
  white-space: nowrap;
  text-transform: uppercase;
}
.services-marquee span i { font-size: .55rem; color: var(--maroon); vertical-align: middle; margin-right: 42px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ GALLERY - INSIDE KAPALI'S ============ */
#gallery-section {
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid rgba(176,138,60,.3);
  overflow: hidden;
}
#gallery-section::before {
  content: '';
  position: absolute;
  left: -180px; bottom: -180px;
  width: 520px; height: 520px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .08;
  animation: spinSlow 100s linear infinite;
  pointer-events: none;
}
/* masonry layout - every photo keeps its natural aspect ratio, NO cropping */
.gallery-grid {
  columns: 3;
  column-gap: 22px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(176,138,60,.5);
  box-shadow: 0 14px 36px rgba(94,72,36,.15);
  background: var(--card);
  padding: 8px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 22px;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;           /* natural ratio - image never cut */
  object-fit: contain;
  filter: sepia(.25) brightness(.95);
  transition: transform .85s cubic-bezier(.22,.61,.36,1), filter .85s;
}
.gallery-item:hover img { transform: scale(1.07); filter: sepia(.03) brightness(1.02); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,253,246,.55);
  pointer-events: none;
  z-index: 2;
  transition: inset .5s ease;
}
.gallery-item:hover::after { inset: 16px; }
.gallery-item figcaption {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 3;
  padding: 34px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(30,20,8,.82));
  color: #e5d2ac;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: .95rem;
  transform: translateY(12px);
  opacity: .92;
  transition: transform .5s ease, opacity .5s;
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-item figcaption span {
  display: block;
  font-family: var(--serif-display);
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

/* ============ CASE STUDIES PREVIEW ============ */
#cases-section {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(122,31,31,.07), transparent),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.case-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(176,138,60,.45);
  background: var(--card);
  box-shadow: 0 16px 44px rgba(94,72,36,.14);
  transition: transform .5s ease, box-shadow .5s, border-color .5s;
}
.case-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176,138,60,.25);
  pointer-events: none;
  z-index: 3;
}
.case-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 34px 70px rgba(94,72,36,.26); }
.case-media { position: relative; overflow: hidden; height: 230px; }
.case-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.28) brightness(.94);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .8s;
}
.case-card:hover .case-media img { transform: scale(1.09); filter: sepia(.08) brightness(1); }
.case-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(46,34,18,.55));
}
.case-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: rgba(252,248,238,.94);
  border: 1px solid var(--gold);
  color: var(--maroon);
  font-family: var(--serif-display);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 7px 14px;
  box-shadow: 0 6px 16px rgba(46,34,18,.25);
}
.case-body { padding: 30px 28px 34px; }
.case-body h3 {
  font-family: var(--serif-display);
  font-size: 1.12rem;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--heading);
  margin-bottom: 14px;
}
.case-body p { font-size: .99rem; }
.case-meta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(176,138,60,.3);
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: .92rem;
  color: var(--maroon);
}
.case-meta i { margin-right: 6px; color: var(--gold-deep); }
.cases-cta { text-align: center; margin-top: 56px; }

/* ============ LEGACY / ABOUT PREVIEW ============ */
#legacy-section {
  background: var(--bg);
  border-top: 1px solid rgba(176,138,60,.3);
  overflow: hidden;
}
#legacy-section::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.legacy-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.legacy-years {
  display: flex;
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--gold);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(94,72,36,.14);
}
.legacy-stat {
  flex: 1;
  text-align: center;
  padding: 30px 12px;
  border-right: 1px solid rgba(176,138,60,.4);
  position: relative;
}
.legacy-stat:last-child { border-right: none; }
.legacy-stat .stat-num {
  font-family: var(--serif-display);
  font-size: 2.3rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legacy-stat .stat-label {
  font-family: var(--serif-display);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 8px;
}

/* ============ INVOCATION BANNER (rich maroon band) ============ */
#invocation-banner {
  position: relative;
  padding: 130px 28px;
  text-align: center;
  background:
    linear-gradient(rgba(58,18,14,.88), rgba(45,14,10,.92)),
    url('https://kapalis.com/images/invocation-bg.jpg') center/cover fixed;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
#invocation-banner::before,
#invocation-banner::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .12;
  filter: invert(.85) sepia(1) saturate(2);
  pointer-events: none;
}
#invocation-banner::before { left: -220px; top: 50%; transform: translateY(-50%); animation: spinSlow 80s linear infinite; }
#invocation-banner::after { right: -220px; top: 50%; transform: translateY(-50%); animation: spinSlow 80s linear infinite reverse; }
#invocation-banner .sanskrit {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: #ecd18d;
  font-family: serif;
  letter-spacing: .06em;
  text-shadow: 0 0 30px rgba(212,171,85,.5);
  position: relative;
  z-index: 2;
}
#invocation-banner .translation {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.25rem;
  color: #e5d2ac;
  max-width: 720px;
  margin: 26px auto 0;
  position: relative;
  z-index: 2;
}
#invocation-banner .ornament { filter: brightness(1.6); position: relative; z-index: 2; }

/* ============ CTA SECTION ============ */
#cta-section {
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(176,138,60,.13), transparent),
    var(--bg-2);
  text-align: center;
  border-top: 1px solid rgba(176,138,60,.3);
}
#cta-section .cta-icon {
  width: 96px; height: 96px;
  object-fit: contain;
  margin: 0 auto 30px;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle, #241c10 30%, #0d0a06 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(176,138,60,.14), 0 14px 40px rgba(94,72,36,.3);
  animation: preloaderPulse 3.4s ease-in-out infinite;
}
#cta-section h2 {
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--heading);
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.35;
}
#cta-section p {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.3rem;
  margin: 26px auto 44px;
  max-width: 640px;
}
.cta-buttons { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER (deep sepia band) ============ */
#site-footer {
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(176,138,60,.1), transparent),
    linear-gradient(180deg, #2a1f10, #1c1408);
  border-top: 3px solid var(--gold);
  padding: 80px 28px 0;
  color: #c9b990;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-tagline { color: #cdbc8f; }
.footer-brand p { font-size: 1rem; max-width: 320px; color: #b3a17a; }

/* footer social icons */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.footer-social a {
  width: 46px; height: 46px;
  border: 1px solid rgba(212,171,85,.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(176,138,60,.12), transparent 70%);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), background .45s, color .45s, border-color .45s, box-shadow .45s;
}
.footer-social a:hover {
  transform: translateY(-5px) scale(1.06);
  background: var(--gold);
  border-color: var(--gold-bright);
  color: #1c1408;
  box-shadow: 0 12px 28px rgba(176,138,60,.35);
}
.footer-col h4 {
  font-family: var(--serif-display);
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col ul a {
  color: #b3a17a;
  font-size: 1.02rem;
  transition: color .3s, padding-left .3s;
}
.footer-col ul a:hover { color: var(--gold-bright); padding-left: 8px; }
.footer-col ul a i { font-size: .6rem; color: var(--gold); margin-right: 10px; vertical-align: middle; }
.footer-contact li {
  display: flex;
  gap: 14px;
  color: #b3a17a;
  font-size: 1rem;
}
.footer-contact i { color: var(--gold-bright); margin-top: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(212,171,85,.25);
  padding: 26px 0;
  text-align: center;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: .95rem;
  color: #a08e68;
  max-width: 1280px;
  margin: 0 auto;
}

/* back-to-top */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 900;
  width: 52px; height: 52px;
  border: 1px solid var(--gold);
  background: rgba(252,248,238,.92);
  color: var(--gold-deep);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all .45s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(94,72,36,.25);
  border-radius: 4px;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--gold); color: #fff; }

/* ============================================================
   INNER PAGES (About / Services / Case Studies)
   ============================================================ */

/* ---------- Page hero (small banner) ---------- */
.page-hero {
  position: relative;
  padding: 210px 28px 120px;
  text-align: center;
  background:
    linear-gradient(rgba(30,20,8,.72), rgba(30,20,8,.78)),
    var(--page-hero-img, url('https://kapalis.com/images/slider-2.jpg')) center 30% / cover;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 42' preserveAspectRatio='none'%3E%3Cpath d='M0 42 L0 24 Q150 4 300 22 Q450 40 600 22 Q750 4 900 22 Q1050 40 1200 24 L1200 42 Z' fill='%23f8f2e3'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 640px; height: 640px;
  background: var(--mandala) center / contain no-repeat;
  opacity: .1;
  filter: invert(.9) sepia(1);
  animation: spinSlow 90s linear infinite;
  pointer-events: none;
}
.page-hero .ph-kicker {
  font-family: var(--serif-fancy);
  font-style: italic;
  letter-spacing: .38em;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--gold-bright);
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #f7f1e0;
  margin-top: 16px;
  text-shadow: 0 4px 28px rgba(0,0,0,.7);
  position: relative;
  z-index: 2;
}
.page-hero .ph-sub {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.28rem;
  color: #e2d5b5;
  max-width: 700px;
  margin: 20px auto 0;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  font-family: var(--serif-display);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #cbb98f;
  position: relative;
  z-index: 2;
}
.breadcrumb a { color: var(--gold-bright); }
.breadcrumb i { font-size: .5rem; color: var(--gold); }

/* ---------- About page: profile blocks ---------- */
.profile-block {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.profile-block.flip { grid-template-columns: 1.15fr .85fr; }
.profile-block.flip .antique-frame { order: 2; }
.profile-title {
  font-family: var(--serif-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--heading);
  line-height: 1.3;
}
.profile-role {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--maroon);
  margin: 10px 0 24px;
  letter-spacing: .06em;
}
.profile-text p + p { margin-top: 16px; }
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.profile-badges span {
  font-family: var(--serif-display);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(176,138,60,.5);
  background: var(--card);
  padding: 9px 16px;
  box-shadow: 0 4px 12px rgba(94,72,36,.1);
}
.profile-badges span i { color: var(--maroon); margin-right: 8px; font-size: .6rem; }

/* timeline (tradition) */
.tradition-panel {
  background:
    var(--corner-tl) 8px 8px no-repeat,
    var(--corner-tr) top 8px right 8px no-repeat,
    var(--corner-br) bottom 8px right 8px no-repeat,
    var(--corner-bl) bottom 8px left 8px no-repeat,
    linear-gradient(165deg, #fffdf6, #f4ebd6);
  border: 1px solid rgba(176,138,60,.5);
  box-shadow: 0 20px 50px rgba(94,72,36,.15);
  padding: 56px 54px;
}
.tradition-panel p + p { margin-top: 18px; }

/* ---------- Services page ---------- */
.service-detail {
  display: grid;
  grid-template-columns: minmax(280px, .58fr) 1.42fr;  /* photo small · content large */
  gap: 60px;
  align-items: start;   /* required for sticky to work inside grid */
  padding: 64px 0;
  border-bottom: 1px solid rgba(176,138,60,.3);
  position: relative;
}
.service-detail:last-child { border-bottom: none; }
.service-detail.flip { grid-template-columns: 1.42fr minmax(280px, .58fr); }
.service-detail.flip .sd-media { order: 2; }
/* photo stays fixed while the content column scrolls;
   once content ends, the whole section scrolls away naturally */
.sd-media {
  position: -webkit-sticky;
  position: sticky;
  top: 110px;
  align-self: start;
}
/* service detail pages: caption sits BELOW the image, not over it */
.sd-media .frame-caption {
  position: static;
  margin-top: 14px;
  backdrop-filter: none;
}
.sd-num {
  position: absolute;
  top: 44px;
  right: 0;
  font-family: var(--serif-display);
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(176,138,60,.16);
  pointer-events: none;
}
.sd-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.sd-icon {
  flex-shrink: 0;
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-deep);
  background: radial-gradient(circle, rgba(176,138,60,.15), transparent 72%);
  box-shadow: 0 8px 20px rgba(94,72,36,.15);
}
.sd-head h2 {
  font-family: var(--serif-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: .1em;
  color: var(--heading);
}
.sd-head .sd-tag {
  display: block;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: .08em;
  color: var(--maroon);
  margin-top: 4px;
}
.sd-body p + p { margin-top: 16px; }
.sd-highlight {
  margin-top: 22px;
  padding: 20px 26px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(176,138,60,.1), transparent);
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.14rem;
  color: var(--heading);
}

/* services quick index */
.service-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 46px;
}
.service-index a {
  font-family: var(--serif-display);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(176,138,60,.45);
  background: var(--card);
  color: var(--gold-deep);
  transition: all .35s;
  box-shadow: 0 4px 12px rgba(94,72,36,.08);
}
.service-index a:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-3px); }

/* guidance grid (compact service cards) */
.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.guidance-card {
  background:
    var(--corner-tl) 6px 6px no-repeat,
    var(--corner-tr) top 6px right 6px no-repeat,
    var(--corner-br) bottom 6px right 6px no-repeat,
    var(--corner-bl) bottom 6px left 6px no-repeat,
    linear-gradient(165deg, #fffdf6, #f6eeda);
  border: 1px solid rgba(176,138,60,.45);
  padding: 40px 32px;
  box-shadow: 0 14px 36px rgba(94,72,36,.12);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s;
}
.guidance-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 28px 60px rgba(94,72,36,.22); }
.guidance-card .g-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--gold-deep);
  background: radial-gradient(circle, rgba(176,138,60,.14), transparent 70%);
  margin-bottom: 22px;
  transition: transform .5s, color .5s;
}
.guidance-card:hover .g-icon { transform: scale(1.1) rotate(-6deg); color: var(--maroon); }
.guidance-card h3 {
  font-family: var(--serif-display);
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--heading);
  margin-bottom: 12px;
}
.guidance-card p { font-size: .99rem; }

/* ---------- Case studies page ---------- */
.project {
  position: relative;
  background:
    var(--corner-tl) 10px 10px no-repeat,
    var(--corner-tr) top 10px right 10px no-repeat,
    var(--corner-br) bottom 10px right 10px no-repeat,
    var(--corner-bl) bottom 10px left 10px no-repeat,
    linear-gradient(170deg, #fffdf6, #f5ecd8);
  border: 1px solid rgba(176,138,60,.5);
  box-shadow: 0 22px 56px rgba(94,72,36,.15);
  margin-bottom: 60px;
  overflow: hidden;
}
.project-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-bottom: 1px solid rgba(176,138,60,.35);
}
.project-media {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.22) brightness(.95);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .8s;
}
.project:hover .project-media img { transform: scale(1.06); filter: sepia(.04) brightness(1); }
.project-media .p-num {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(252,248,238,.94);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 1.3rem;
  color: var(--maroon);
  box-shadow: 0 8px 22px rgba(30,20,8,.35);
}
.project-title-wrap { padding: 44px 48px; }
.project-title-wrap h2 {
  font-family: var(--serif-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--heading);
  line-height: 1.35;
}
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.project-facts span {
  font-family: var(--serif-display);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(176,138,60,.5);
  background: #fffdf6;
  padding: 8px 14px;
}
.project-facts span i { color: var(--maroon); margin-right: 8px; }
.project-methods {
  margin-top: 18px;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--maroon);
}
.project-methods i { color: var(--gold-deep); margin-right: 8px; }
.project-body { padding: 44px 48px; }
.project-body h3 {
  font-family: var(--serif-display);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.project-body h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(176,138,60,.5), transparent);
}
.project-body h3:first-child { margin-top: 0; }
.project-body p + p { margin-top: 14px; }
.project-result {
  margin-top: 30px;
  padding: 26px 30px;
  background: linear-gradient(120deg, rgba(122,31,31,.07), rgba(176,138,60,.08));
  border: 1px solid rgba(176,138,60,.4);
  border-left: 3px solid var(--maroon);
  position: relative;
}
.project-result strong {
  display: block;
  font-family: var(--serif-display);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 10px;
}
.project-result p { font-family: var(--serif-fancy); font-size: 1.12rem; color: var(--heading); }

/* ---------- Guruparampara lineage timeline ---------- */
.lineage-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.lineage-wrap::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}
.lineage-item {
  position: relative;
  width: calc(50% - 44px);
  padding: 34px 34px 30px;
  background:
    var(--corner-tl) 6px 6px no-repeat,
    var(--corner-tr) top 6px right 6px no-repeat,
    var(--corner-br) bottom 6px right 6px no-repeat,
    var(--corner-bl) bottom 6px left 6px no-repeat,
    linear-gradient(165deg, #fffdf6, #f5ecd8);
  border: 1px solid rgba(176,138,60,.5);
  box-shadow: 0 16px 40px rgba(94,72,36,.14);
  margin-bottom: 54px;
}
.lineage-item:nth-child(odd) { margin-right: auto; }
.lineage-item:nth-child(even) { margin-left: auto; }
.lineage-item::before {
  content: '';
  position: absolute;
  top: 38px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold-grad);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 2;
}
.lineage-item:nth-child(odd)::before { right: -54px; }
.lineage-item:nth-child(even)::before { left: -54px; }
.lineage-item::after {
  content: '';
  position: absolute;
  top: 44px;
  width: 36px; height: 1px;
  background: var(--gold);
}
.lineage-item:nth-child(odd)::after { right: -37px; }
.lineage-item:nth-child(even)::after { left: -37px; }
.lineage-era {
  font-family: var(--serif-display);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--maroon);
}
.lineage-item h3 {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  color: var(--heading);
  margin: 10px 0 4px;
  letter-spacing: .06em;
}
.lineage-item .lineage-sub {
  font-family: var(--serif-fancy);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.02rem;
  margin-bottom: 12px;
}
.lineage-item p { font-size: .99rem; }

/* pillars of practice */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar-card {
  text-align: center;
  padding: 40px 24px 34px;
  background: linear-gradient(170deg, #fffdf6, #f5ecd8);
  border: 1px solid rgba(176,138,60,.45);
  box-shadow: 0 12px 32px rgba(94,72,36,.1);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transition: transform .6s;
}
.pillar-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 26px 54px rgba(94,72,36,.2); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card i {
  font-size: 1.7rem;
  color: var(--gold-deep);
  width: 70px; height: 70px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(176,138,60,.14), transparent 70%);
  margin-bottom: 20px;
  transition: transform .5s, color .5s;
}
.pillar-card:hover i { transform: scale(1.12) rotate(-6deg); color: var(--maroon); }
.pillar-card h3 {
  font-family: var(--serif-display);
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--heading);
  margin-bottom: 10px;
}
.pillar-card p { font-size: .95rem; }

@media (max-width: 920px) {
  .lineage-wrap::before { left: 12px; }
  .lineage-item { width: calc(100% - 50px); margin-left: 50px !important; }
  .lineage-item:nth-child(odd)::before,
  .lineage-item:nth-child(even)::before { left: -44px; right: auto; }
  .lineage-item:nth-child(odd)::after,
  .lineage-item:nth-child(even)::after { left: -28px; right: auto; width: 26px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pillars-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ---------- inner responsive ---------- */
@media (max-width: 920px) {
  .profile-block, .profile-block.flip { grid-template-columns: 1fr; gap: 44px; }
  .profile-block.flip .antique-frame { order: 0; }
  .service-detail, .service-detail.flip { grid-template-columns: 1fr; gap: 34px; }
  .service-detail.flip .sd-media { order: 0; }
  .sd-media { position: static; }
  .guidance-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .project-head { grid-template-columns: 1fr; }
  .project-media { min-height: 240px; }
  .project-title-wrap, .project-body { padding: 32px 26px; }
  .page-hero { padding: 170px 22px 100px; }
}

/* ---------- Explore overview cards (Services & Case Studies grids) ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    var(--corner-tl) 6px 6px no-repeat,
    var(--corner-tr) top 6px right 6px no-repeat,
    var(--corner-br) bottom 6px right 6px no-repeat,
    var(--corner-bl) bottom 6px left 6px no-repeat,
    linear-gradient(165deg, #fffdf6, #f5ecd8);
  border: 1px solid rgba(176,138,60,.45);
  box-shadow: 0 16px 40px rgba(94,72,36,.12);
  transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .55s, border-color .55s;
}
.explore-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 30px 66px rgba(94,72,36,.24);
}
.explore-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 14px 14px 0;
  border: 1px solid rgba(176,138,60,.4);
}
.explore-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.2) brightness(.97);
  transition: transform .9s cubic-bezier(.22,.61,.36,1), filter .9s;
}
.explore-card:hover .explore-media img { transform: scale(1.08); filter: sepia(.03) brightness(1.02); }
.explore-num {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  min-width: 46px; height: 46px;
  padding: 0 10px;
  border-radius: 50%;
  background: rgba(252,248,238,.94);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 1rem;
  color: var(--maroon);
  box-shadow: 0 8px 20px rgba(30,20,8,.3);
}
.explore-icon {
  position: relative;
  z-index: 3;
  width: 62px; height: 62px;
  margin: -31px auto 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, #fffdf6 30%, #f3e9d2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-deep);
  box-shadow: 0 10px 24px rgba(94,72,36,.2);
  transition: transform .5s, color .5s;
}
.explore-card:hover .explore-icon { transform: scale(1.1) rotate(-6deg); color: var(--maroon); }
.explore-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px 30px 36px;
}
.explore-body h3 {
  font-family: var(--serif-display);
  font-size: 1.12rem;
  letter-spacing: .1em;
  color: var(--heading);
  line-height: 1.4;
}
.explore-body h3 a { color: inherit; }
.explore-body h3 a:hover { color: var(--maroon); }
.explore-tag {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1rem;
  color: var(--maroon);
  margin-top: 6px;
}
.explore-short {
  flex: 1;
  font-size: .99rem;
  margin-top: 14px;
}
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin-top: 26px;
  font-family: var(--serif-display);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  padding: 13px 28px;
  background: transparent;
  transition: background .4s, color .4s, box-shadow .4s;
}
.btn-explore i { font-size: .72rem; transition: transform .4s; }
.btn-explore:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 12px 28px rgba(138,106,42,.35);
}
.btn-explore:hover i { transform: translateX(6px); }

/* explore card - case study variant */
.explore-card.case .explore-media { aspect-ratio: 16 / 10; }
.explore-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.explore-facts span {
  font-family: var(--serif-display);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(176,138,60,.5);
  background: #fffdf6;
  padding: 6px 11px;
}
.explore-facts span i { color: var(--maroon); margin-right: 6px; }
.explore-methods {
  margin-top: 14px;
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: .98rem;
  color: var(--maroon);
}
.explore-methods i { color: var(--gold-deep); margin-right: 7px; }

/* case-studies: 100+ projects privacy note */
.privacy-note {
  position: relative;
  max-width: 920px;
  margin: 80px auto 0;
  text-align: center;
  padding: 62px 56px 56px;
  background:
    var(--corner-tl) 8px 8px no-repeat,
    var(--corner-tr) top 8px right 8px no-repeat,
    var(--corner-br) bottom 8px right 8px no-repeat,
    var(--corner-bl) bottom 8px left 8px no-repeat,
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(176,138,60,.12), transparent),
    linear-gradient(160deg, #fffdf6, #f1e6cc);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(176,138,60,.1), 0 30px 70px rgba(94,72,36,.18);
}
.privacy-note .priv-icon {
  width: 78px; height: 78px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, rgba(176,138,60,.16), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--maroon);
}
.privacy-note .priv-count {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.privacy-note h3 {
  font-family: var(--serif-display);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--heading);
  margin-top: 10px;
}
.privacy-note .priv-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px 0 24px;
  color: var(--gold-deep);
  font-size: .55rem;
}
.privacy-note .priv-divider::before,
.privacy-note .priv-divider::after {
  content: '';
  width: clamp(50px, 12vw, 110px);
  height: 1px;
  background: var(--gold-line);
}
.privacy-note p {
  font-family: var(--serif-fancy);
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
}
.privacy-note p + p { margin-top: 16px; }
.privacy-note p em { color: var(--maroon); }
@media (max-width: 640px) {
  .privacy-note { padding: 46px 26px 42px; margin-top: 60px; }
}

/* group sub-heading inside explore sections */
.explore-group-head {
  text-align: center;
  margin: 70px 0 40px;
}
.explore-group-head:first-child { margin-top: 0; }
.explore-group-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: var(--serif-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--heading);
}
.explore-group-head h3::before,
.explore-group-head h3::after {
  content: '';
  width: clamp(40px, 8vw, 110px);
  height: 1px;
  background: var(--gold-line);
}
.explore-group-head p {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-soft);
  margin-top: 8px;
}

/* ---------- Detail pages (service.html / case-study.html) ---------- */
.sd-sec {
  font-family: var(--serif-display);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 30px 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sd-sec::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(176,138,60,.5), transparent);
}
.sd-body .sd-sec:first-child { margin-top: 0; }

/* prev / next navigation between detail pages */
.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 70px;
}
.dn-link {
  display: block;
  padding: 30px 34px;
  background:
    var(--corner-tl) 6px 6px no-repeat,
    var(--corner-br) bottom 6px right 6px no-repeat,
    linear-gradient(165deg, #fffdf6, #f5ecd8);
  border: 1px solid rgba(176,138,60,.45);
  box-shadow: 0 12px 32px rgba(94,72,36,.1);
  transition: transform .5s cubic-bezier(.22,.61,.36,1), border-color .5s, box-shadow .5s;
}
.dn-link:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 22px 48px rgba(94,72,36,.2); }
.dn-link.next { text-align: right; }
.dn-label {
  display: block;
  font-family: var(--serif-display);
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.dn-label i { color: var(--maroon); margin: 0 8px; }
.dn-title {
  font-family: var(--serif-display);
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--heading);
  line-height: 1.4;
}
.dn-link:hover .dn-title { color: var(--maroon); }

/* "all sciences" chip strip on detail pages */
.detail-index-wrap { margin-top: 60px; text-align: center; }
.detail-index-wrap h4 {
  font-family: var(--serif-display);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 24px;
}

@media (max-width: 1080px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .explore-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .detail-nav { grid-template-columns: 1fr; }
  .dn-link.next { text-align: left; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.contact-card {
  position: relative;
  text-align: center;
  padding: 46px 30px 40px;
  background:
    var(--corner-tl) 6px 6px no-repeat,
    var(--corner-tr) top 6px right 6px no-repeat,
    var(--corner-br) bottom 6px right 6px no-repeat,
    var(--corner-bl) bottom 6px left 6px no-repeat,
    linear-gradient(165deg, #fffdf6, #f5ecd8);
  border: 1px solid rgba(176,138,60,.45);
  box-shadow: 0 16px 40px rgba(94,72,36,.12);
  transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .55s, border-color .55s;
}
.contact-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 30px 66px rgba(94,72,36,.24);
}
.contact-card > i {
  font-size: 1.6rem;
  color: var(--gold-deep);
  width: 74px; height: 74px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(176,138,60,.14), transparent 70%);
  margin-bottom: 22px;
  transition: transform .5s, color .5s;
}
.contact-card:hover > i { transform: scale(1.1) rotate(-6deg); color: var(--maroon); }
.contact-card h3 {
  font-family: var(--serif-display);
  font-size: 1.02rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 14px;
}
.contact-card p, .contact-card a.contact-link {
  font-family: var(--serif-fancy);
  font-size: 1.14rem;
  color: var(--text);
  line-height: 1.7;
}
.contact-card a.contact-link {
  display: inline-block;
  color: var(--maroon);
  border-bottom: 1px solid rgba(176,138,60,.6);
  transition: color .4s, border-color .4s;
}
.contact-card a.contact-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.contact-card .contact-note {
  display: block;
  margin-top: 10px;
  font-family: var(--body-font);
  font-size: .92rem;
  font-style: italic;
  color: var(--text-soft);
}

/* map / large panel */
.contact-map-frame {
  position: relative;
  padding: 12px;
  background: linear-gradient(165deg, #fffdf6, #f0e6cd);
  border: 1px solid rgba(176,138,60,.55);
  box-shadow: 0 24px 60px rgba(94,72,36,.18);
}
.contact-map-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(176,138,60,.5);
  pointer-events: none;
  z-index: 2;
}
.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  filter: sepia(.28) saturate(.9);
}

/* whatsapp accent */
.wa-green { color: #1d8a4e !important; }
.contact-card.whatsapp:hover > i { color: #1d8a4e; }

/* ============================================================
   BOOK CONSULTATION - FORM
   ============================================================ */
.consult-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.consult-aside h3 {
  font-family: var(--serif-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--heading);
  letter-spacing: .06em;
  line-height: 1.35;
  margin-bottom: 18px;
}
.consult-aside p { margin-bottom: 16px; }
.consult-steps { list-style: none; margin-top: 28px; }
.consult-steps li {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(176,138,60,.45);
}
.consult-steps li:last-child { border-bottom: none; }
.consult-steps .step-num {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, #fffdf6 30%, #f3e9d2 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  color: var(--maroon);
  font-size: 1rem;
}
.consult-steps h4 {
  font-family: var(--serif-display);
  font-size: .92rem;
  letter-spacing: .12em;
  color: var(--heading);
  margin-bottom: 4px;
}
.consult-steps p { font-size: .97rem; margin: 0; }

.consult-form {
  position: relative;
  padding: 50px 46px 46px;
  background:
    var(--corner-tl) 8px 8px no-repeat,
    var(--corner-tr) top 8px right 8px no-repeat,
    var(--corner-br) bottom 8px right 8px no-repeat,
    var(--corner-bl) bottom 8px left 8px no-repeat,
    linear-gradient(160deg, #fffdf6, #f3e9d2);
  border: 1px solid rgba(176,138,60,.55);
  box-shadow: 0 26px 64px rgba(94,72,36,.18);
}
.consult-form h3 {
  text-align: center;
  font-family: var(--serif-display);
  font-size: 1.25rem;
  letter-spacing: .14em;
  color: var(--heading);
  margin-bottom: 6px;
}
.consult-form .form-sub {
  text-align: center;
  font-family: var(--serif-fancy);
  font-style: italic;
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--serif-display);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 9px;
}
.form-field label .req { color: var(--maroon); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 15px 18px;
  font-family: var(--serif-fancy);
  font-size: 1.12rem;
  color: var(--heading);
  background: #fffdf8;
  border: 1px solid rgba(176,138,60,.55);
  outline: none;
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a3906e; font-style: italic; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: #fffef9;
  box-shadow: 0 0 0 3px rgba(176,138,60,.16), 0 10px 26px rgba(94,72,36,.1);
}
.form-field input.invalid,
.form-field textarea.invalid { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(122,31,31,.12); }
.form-error {
  display: none;
  margin-top: 7px;
  font-size: .88rem;
  font-style: italic;
  color: var(--maroon);
}
.form-error.show { display: block; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn-whatsapp {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  padding: 18px 30px;
  border: 1px solid #1d8a4e;
  background: linear-gradient(135deg, #14683a, #1d8a4e 45%, #27a35f 70%, #14683a 100%);
  color: #fdfbf2;
  font-family: var(--serif-display);
  font-size: .82rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(20,104,58,.32);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s, filter .45s;
}
.btn-whatsapp i { font-size: 1.25rem; }
.btn-whatsapp:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: 0 24px 50px rgba(20,104,58,.42);
}
.form-privacy {
  text-align: center;
  margin-top: 18px;
  font-size: .9rem;
  font-style: italic;
  color: var(--text-soft);
}
.form-privacy i { color: #1d8a4e; margin-right: 6px; }

/* success hint after redirect */
.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  text-align: center;
  font-family: var(--serif-fancy);
  font-size: 1.05rem;
  color: #14683a;
  background: rgba(29,138,78,.08);
  border: 1px solid rgba(29,138,78,.4);
}
.form-success.show { display: block; }

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 920px) {
  .consult-wrap { grid-template-columns: 1fr; gap: 46px; }
  .consult-form { padding: 40px 26px 36px; }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .contact-map-frame iframe { height: 340px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 920px) {
  #nav-toggle { display: block; }
  #main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 84vw);
    height: 100vh;
    background: rgba(250,245,232,.98);
    border-left: 2px solid var(--gold);
    box-shadow: -20px 0 60px rgba(46,34,18,.25);
    padding: 120px 40px 40px;
    transform: translateX(100%);
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    z-index: 999;
  }
  #main-nav.open { transform: translateX(0); }
  #main-nav ul { flex-direction: column; gap: 30px; }
  #main-nav a { font-size: 1rem; color: var(--heading) !important; text-shadow: none; }
  #main-nav a:hover, #main-nav a.active { color: var(--maroon) !important; }
  #nav-toggle { position: relative; z-index: 1001; }

  .intro-grid, .method-grid, .legacy-grid { grid-template-columns: 1fr; gap: 50px; }
  .dukha-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cases-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .slider-arrow { display: none; }
  .section { padding: 80px 22px; }
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .services-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .brand-icon { width: 46px; height: 46px; }
  .brand-name { font-size: 1.25rem; letter-spacing: .22em; }
  .brand-tagline { font-size: .48rem; letter-spacing: .2em; }
  .slider-dots { bottom: 84px; }
  .legacy-years { flex-direction: column; }
  .legacy-stat { border-right: none; border-bottom: 1px solid rgba(176,138,60,.4); }
  .legacy-stat:last-child { border-bottom: none; }
  #hero-slider { min-height: 580px; }
  .slide-sub { font-size: 1.12rem; }
  .gallery-grid { columns: 1; }
  .btn-royal { padding: 15px 34px; font-size: .78rem; }
  #back-to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}

/* ============================================================
   CONTENT PROTECTION - selection lock + premium notice popup
   ============================================================ */
/* disable text selection site-wide (form fields stay usable) */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img { -webkit-user-drag: none; user-drag: none; }

/* notice popup overlay */
#protect-notice {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 20, 8, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
#protect-notice.show { opacity: 1; visibility: visible; }

#protect-notice .pn-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 52px 44px 46px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(176,138,60,.14), transparent),
    linear-gradient(160deg, #fffdf6, #f1e6cc);
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(176,138,60,.12),
    0 40px 90px rgba(20, 12, 4, .5);
  transform: translateY(26px) scale(.94);
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
  cursor: pointer;
}
#protect-notice.show .pn-card { transform: translateY(0) scale(1); }

/* inner double-line frame */
#protect-notice .pn-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176,138,60,.55);
  pointer-events: none;
}

/* golden corner filigree */
#protect-notice .pn-corner {
  position: absolute;
  width: 56px; height: 56px;
  pointer-events: none;
}
#protect-notice .pn-corner.tl { top: 3px; left: 3px; background: var(--corner-tl) no-repeat; }
#protect-notice .pn-corner.tr { top: 3px; right: 3px; background: var(--corner-tr) no-repeat; }
#protect-notice .pn-corner.bl { bottom: 3px; left: 3px; background: var(--corner-bl) no-repeat; }
#protect-notice .pn-corner.br { bottom: 3px; right: 3px; background: var(--corner-br) no-repeat; }

/* brand row: icon + KAPALIS wordmark (like the header) */
#protect-notice .pn-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
#protect-notice .pn-brand img {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 5px;
  background: radial-gradient(circle, #241c10 30%, #0d0a06 100%);
  box-shadow: 0 0 0 5px rgba(176,138,60,.15), 0 12px 30px rgba(94,72,36,.35);
  animation: pnPulse 2.4s ease-in-out infinite;
}
#protect-notice .pn-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
#protect-notice .pn-brand-name {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .28em;
  background: linear-gradient(135deg, #4a3612 0%, #8a6a2a 30%, #3a2a10 55%, #b08a3c 78%, #2e2212 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#protect-notice .pn-brand-tagline {
  font-family: var(--serif-fancy);
  font-size: .64rem;
  line-height: 1;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 6px;
}
@keyframes pnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

#protect-notice h3 {
  font-family: var(--serif-display);
  font-size: 1.15rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--maroon);
}

#protect-notice .pn-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 18px;
  color: var(--gold-deep);
  font-size: .55rem;
}
#protect-notice .pn-divider::before,
#protect-notice .pn-divider::after {
  content: '';
  width: 72px;
  height: 1px;
  background: var(--gold-line);
}

#protect-notice p {
  font-family: var(--serif-fancy);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 640px) {
  #protect-notice .pn-card { padding: 42px 26px 38px; }
  #protect-notice h3 { font-size: 1rem; letter-spacing: .2em; }
  #protect-notice p { font-size: 1.02rem; }
  #protect-notice .pn-brand img { width: 54px; height: 54px; }
  #protect-notice .pn-brand-name { font-size: 1.2rem; letter-spacing: .22em; }
  #protect-notice .pn-brand-tagline { font-size: .56rem; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   NEW BRAND LOGO – round icon + "Kapali's" wordmark (CSS mask)
   wordmark turns gold on dark backgrounds, plum on cream
   ------------------------------------------------------------ */
.brand { gap: 10px; }
.brand-icon-new {
  width: 52px; height: 52px;
  object-fit: contain;
  display: block;
  transition: transform .5s ease;
}
.brand:hover .brand-icon-new { transform: rotate(6deg) scale(1.05); }
.brand-word {
  display: block;
  height: 50px; width: auto;                  /* 973 x 321 PNG */
}
.brand-word.gold { filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.brand-word.plum { display: none; }
/* cream header after scroll – plum wordmark */
#site-header.scrolled .brand-word.gold { display: none; }
#site-header.scrolled .brand-word.plum { display: block; height: 46px; }
#site-header.scrolled .brand-icon-new { width: 46px; height: 46px; }
#site-footer .brand-icon-new { width: 56px; height: 56px; }
#site-footer .brand-word { height: 54px; }
#cta-section .cta-logo {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 30px;
}
#cta-section .cta-logo img:first-child { height: 72px; width: auto; }
#cta-section .cta-logo img:last-child  { height: 60px; width: auto; }
@media (max-width: 768px) {
  .brand-icon-new { width: 42px; height: 42px; }
  .brand-word { height: 39px; }
  #site-header.scrolled .brand-word.plum { height: 38px; }
  #site-header.scrolled .brand-icon-new { width: 40px; height: 40px; }
}

/* preloader emblem – new round icon on ivory, gold ring */
#preloader img {
  background: #fbf6ea;
  padding: 6px;
}
#protect-notice .pn-brand img.pn-icon { width: 64px; height: 64px; border-radius: 0; border: 0; padding: 0; background: none; box-shadow: none; animation: none; }
#protect-notice .pn-brand img.pn-logo { width: auto; height: 52px; border-radius: 0; border: 0; padding: 0; background: none; box-shadow: none; animation: none; margin-left: 10px; }
