/* ==========================================================================
   NSGCG Aesthetic Enhancement System
   Cathedral Luxury — Stained Glass Visual Language
   ========================================================================== */

/* ====================================================================
   1. DISPLAY TYPOGRAPHY — EXTREME SCALE & EDITORIAL DRAMA
   ==================================================================== */

/* Hero h1 — massive, italic, commanding */
.home-hero .hero__content h1,
.home-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  font-style: italic;
  font-weight: var(--weight-bold);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--brand-cream);
}

/* All h2 — lean into the editorial serif quality */
h2 {
  letter-spacing: -0.015em;
  font-style: italic;
}

/* Page header h1 — display scale */
.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Section headers — slightly italic, refined */
.section-header__title {
  font-style: italic;
}

/* Section label — glowing pill badge */
.section-header__label,
.page-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  padding: 5px 14px;
  background: rgba(200, 146, 42, 0.1);
  border: 1px solid rgba(200, 146, 42, 0.3);
  border-radius: 999px;
  color: var(--accent-amber);
  box-shadow: 0 0 16px rgba(200, 146, 42, 0.1);
}

/* Gradient text utility — warm gold */
.text-gold {
  background: linear-gradient(135deg, #F0C850 0%, #DFA030 50%, #E8A525 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero lead paragraph — larger, more atmospheric */
.home-hero .hero__content p {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.78;
  color: rgba(232, 223, 206, 0.9);
  max-width: 560px;
}

/* ====================================================================
   2. HERO SECTION — STAINED GLASS LIGHT ATMOSPHERE
   ==================================================================== */

/* The decorative pattern — vivid jewel light pools (way more visible) */
.home-hero__pattern {
  opacity: 0.28 !important;
  background-image:
    radial-gradient(ellipse at 22% 22%, #E8A020 0%, transparent 42%),
    radial-gradient(ellipse at 78% 18%, #1B6CA8 0%, transparent 48%),
    radial-gradient(ellipse at 12% 72%, #1A8A4A 0%, transparent 40%),
    radial-gradient(ellipse at 88% 78%, #C0392B 0%, transparent 38%),
    radial-gradient(ellipse at 50% 50%, #7B3FA0 0%, transparent 55%) !important;
}

/* Hero overlay — deeper, richer, more atmospheric */
.hero--bg::before {
  background: linear-gradient(
    160deg,
    rgba(8, 6, 4, 0.88) 0%,
    rgba(12, 20, 38, 0.72) 40%,
    rgba(10, 8, 5, 0.68) 70%,
    rgba(6, 5, 3, 0.82) 100%
  ) !important;
}

/* Secondary jewel-light layer on hero */
.hero--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(232, 160, 32, 0.2) 0%, transparent 42%),
    radial-gradient(ellipse at 78% 18%, rgba(27, 108, 168, 0.24) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 92%, rgba(192, 57, 43, 0.14) 0%, transparent 44%);
  z-index: 1;
  pointer-events: none;
}

/* Animated light beams — diagonal jewel light through glass */
.hero-light-beam {
  position: absolute;
  top: 0;
  height: 110%;
  filter: blur(28px);
  transform-origin: top center;
  pointer-events: none;
  z-index: 2;
  animation: beam-sway 10s ease-in-out infinite alternate;
}

.hero-light-beam--gold {
  left: 18%;
  width: 100px;
  background: linear-gradient(180deg, rgba(232, 160, 32, 0.14) 0%, rgba(240, 200, 80, 0.06) 55%, transparent 100%);
  transform: rotate(-7deg);
  animation-delay: 0s;
}

.hero-light-beam--blue {
  left: 42%;
  width: 70px;
  background: linear-gradient(180deg, rgba(27, 108, 168, 0.12) 0%, rgba(60, 140, 200, 0.05) 55%, transparent 100%);
  transform: rotate(4deg);
  animation-delay: -4s;
  animation-duration: 13s;
}

.hero-light-beam--ruby {
  right: 18%;
  width: 90px;
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.1) 0%, rgba(220, 80, 60, 0.04) 50%, transparent 100%);
  transform: rotate(8deg);
  animation-delay: -7s;
  animation-duration: 15s;
}

@keyframes beam-sway {
  0% { transform: rotate(-7deg) translateX(0px); opacity: 0.7; }
  100% { transform: rotate(-4deg) translateX(18px); opacity: 1; }
}

/* Hero badge — atmospheric pill */
.hero .badge--amber,
.home-hero .badge--amber {
  background: rgba(200, 146, 42, 0.12) !important;
  border: 1px solid rgba(200, 146, 42, 0.35) !important;
  color: #E8C060 !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.15em !important;
  box-shadow: 0 0 20px rgba(200, 146, 42, 0.15) !important;
  backdrop-filter: blur(8px);
}

/* ====================================================================
   3. SECTION BACKGROUNDS — CATHEDRAL DEPTH & LUMINOSITY
   ==================================================================== */

/* Cream — warmer, more luminous */
.section--cream {
  background: linear-gradient(
    160deg,
    #F8F3EB 0%,
    #EFE5D2 55%,
    #F5EDE0 100%
  ) !important;
  position: relative;
  overflow: hidden;
}

.section--cream::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 4% 30%, rgba(200, 146, 42, 0.055) 0%, transparent 50%),
    radial-gradient(ellipse at 96% 70%, rgba(30, 58, 95, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section--cream > * {
  position: relative;
  z-index: 1;
}

/* Dark — deep cathedral with jewel atmosphere */
.section--dark {
  background: linear-gradient(
    155deg,
    #0E0B09 0%,
    #0A1420 45%,
    #0E0B09 100%
  ) !important;
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 50%, rgba(200, 146, 42, 0.13) 0%, transparent 48%),
    radial-gradient(ellipse at 92% 40%, rgba(27, 108, 168, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 92%, rgba(192, 57, 43, 0.09) 0%, transparent 48%);
  pointer-events: none;
}

/* Gradient — luminous warm parchment with subtle lead lines */
.section--gradient {
  background: linear-gradient(
    175deg,
    #F2EAD6 0%,
    #E8D8C4 50%,
    #F5EFE0 100%
  ) !important;
  position: relative;
  overflow: hidden;
}

.section--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 37, 32, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 37, 32, 0.032) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* White — warm white, not clinical */
.section--white {
  background-color: #FEFCF7 !important;
}

/* ====================================================================
   4. PAGE HEADERS — ATMOSPHERIC CATHEDRAL WINDOW
   ==================================================================== */

.page-header {
  background: linear-gradient(
    155deg,
    #080604 0%,
    #0B1520 50%,
    #080604 100%
  ) !important;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 40%, rgba(200, 146, 42, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse at 82% 55%, rgba(27, 108, 168, 0.26) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 100%, rgba(8, 6, 4, 0.9) 0%, transparent 45%);
  pointer-events: none;
}

/* Top jewel-spectrum line */
.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-blue) 0%,
    var(--accent-amber) 25%,
    var(--accent-red) 50%,
    var(--accent-green) 75%,
    var(--accent-blue) 100%
  );
}

.page-header > * {
  position: relative;
  z-index: 1;
}

/* ====================================================================
   5. STAINED GLASS SPECTRUM DIVIDERS
   ==================================================================== */

/* Upgrade the short divider line */
.divider {
  height: 3px !important;
  width: 80px !important;
  background: linear-gradient(
    90deg,
    var(--accent-amber),
    var(--accent-red),
    var(--accent-blue)
  ) !important;
  border-radius: 999px;
  margin: var(--space-5) 0 !important;
  opacity: 0.85;
}

.divider--center {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Full-width spectrum bar (glass-gradient-line upgrade) */
.glass-gradient-line {
  height: 2px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-blue) 10%,
    var(--accent-amber) 30%,
    var(--accent-red) 50%,
    var(--accent-green) 70%,
    var(--accent-amber) 90%,
    transparent 100%
  ) !important;
  opacity: 0.55;
  max-width: 640px;
  margin: 0 auto var(--space-8) !important;
}

/* ====================================================================
   6. CARDS — JEWEL PANEL GLASSMORPHISM
   ==================================================================== */

.card {
  background: rgba(255, 252, 246, 0.84) !important;
  border-color: rgba(212, 197, 169, 0.38) !important;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out) !important;
}

.card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(200, 146, 42, 0.45) !important;
  box-shadow:
    0 20px 54px rgba(42, 37, 32, 0.14),
    0 0 0 1px rgba(200, 146, 42, 0.18) !important;
}

/* Cards on dark/gradient sections — dark glass panels */
.section--dark .card {
  background: rgba(255, 252, 248, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px);
  color: var(--brand-cream);
}

.section--dark .card .card__title,
.section--dark .card h3,
.section--dark .card h4 {
  color: var(--brand-cream);
}

.section--dark .card .card__desc {
  color: rgba(212, 197, 169, 0.8);
}

.section--dark .card .card__link {
  color: var(--accent-amber-light);
}

.section--dark .card:hover {
  background: rgba(255, 252, 248, 0.09) !important;
  border-color: rgba(200, 146, 42, 0.4) !important;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(200, 146, 42, 0.22) !important;
}

/* Card icons — richer gradient with jewel glow */
.card__icon {
  background: linear-gradient(145deg, rgba(21, 44, 72, 0.95), rgba(30, 58, 95, 1)) !important;
  box-shadow: 0 4px 18px rgba(30, 58, 95, 0.35);
}

.card__icon--amber {
  background: linear-gradient(145deg, rgba(160, 120, 28, 0.95), rgba(200, 146, 42, 1)) !important;
  box-shadow: 0 4px 18px rgba(200, 146, 42, 0.35);
}

.card__icon--red {
  background: linear-gradient(145deg, rgba(100, 22, 36, 0.95), rgba(139, 35, 50, 1)) !important;
  box-shadow: 0 4px 18px rgba(139, 35, 50, 0.35);
}

.card__icon--green {
  background: linear-gradient(145deg, rgba(28, 60, 40, 0.95), rgba(45, 95, 62, 1)) !important;
  box-shadow: 0 4px 18px rgba(45, 95, 62, 0.35);
}

/* ====================================================================
   7. CTA BANNER — STAINED GLASS CATHEDRAL SPECTACLE
   ==================================================================== */

.cta-banner {
  /* Background image token — override with variant class to swap the scene */
  --cta-bg: url('../images/colored-backing.jpg');
  background: var(--cta-bg) center 40% / cover no-repeat !important;
  /* Glass-edge border: bright top highlight fades to subtle sides */
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    /* Ambient color bloom from the stained glass image */
    0 0 70px rgba(90, 55, 200, 0.22),
    0 0 130px rgba(200, 146, 42, 0.14),
    0 32px 90px rgba(0, 0, 0, 0.42),
    /* Inner glass edge highlights — top catches "light", bottom is subtle */
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  /* Frosted glass layer: blurred image + lighter tint = glass diffusion effect */
  background:
    /* Tint — much lighter at top so image color breathes through */
    linear-gradient(
      160deg,
      rgba(5, 8, 18, 0.52) 0%,
      rgba(7, 13, 24, 0.44) 35%,
      rgba(11, 8, 6, 0.48) 68%,
      rgba(5, 8, 18, 0.54) 100%
    ),
    /* Jewel orbs — stronger now that image shows through */
    radial-gradient(ellipse at 14% 48%, rgba(200, 146, 42, 0.38) 0%, transparent 50%),
    radial-gradient(ellipse at 86% 52%, rgba(27, 108, 168, 0.44) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 5%,  rgba(192, 57, 43, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 95%, rgba(45, 95, 62, 0.18)  0%, transparent 48%),
    /* Same image — blurred to create the "frosted glass" diffusion */
    var(--cta-bg) center 40% / cover no-repeat !important;
  filter: blur(24px) saturate(2.2) brightness(0.58);
  transform: scale(1.22); /* oversizes to prevent blurred-white edge bleed */
  z-index: 0;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-blue) 12%,
    var(--accent-amber) 35%,
    var(--accent-red) 55%,
    var(--accent-green) 78%,
    var(--accent-blue) 92%,
    transparent 100%
  );
  opacity: 0.8;
}

.cta-banner h2,
.cta-banner h3 {
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Mobile frosted glass refinements */
@media (max-width: 767px) {
  .cta-banner {
    background-position: center center !important;
    border-radius: var(--radius-lg) !important;
  }

  .cta-banner::before {
    filter: blur(18px) saturate(2.0) brightness(0.56);
  }
}

/* ---- CTA Banner — per-page background variants ────────────────────
   Add one class to .cta-banner to swap the stained-glass scene.
   The frosted overlay stays identical; only the image behind it changes.
   -------------------------------------------------------------------- */
.cta-banner--1 { --cta-bg: url('../images/st-glassdl250-1.png'); }  /* colorful sunburst    */
.cta-banner--2 { --cta-bg: url('../images/st-glassdl250.png');   }  /* golden cathedral     */
.cta-banner--3 { --cta-bg: url('../images/st-glassdl23.png');    }  /* rainbow reflections  */
.cta-banner--4 { --cta-bg: url('../images/st-glassdl35.png');    }  /* light on stone floor */
.cta-banner--5 { --cta-bg: url('../images/st-glassdl34.png');    }  /* sunrise panoramic    */
.cta-banner--6 { --cta-bg: url('../images/st-glassdl3.png');     }  /* arched hallway       */


/* ====================================================================
   8. TRUST BAR — LUMINOUS JEWEL NUMBERS
   ==================================================================== */

.trust-bar__number {
  background: linear-gradient(135deg, #F0C850 0%, #D49B2A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem) !important;
}

.trust-bar__item {
  position: relative;
  padding-bottom: var(--space-5) !important;
}

.trust-bar__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-red));
  border-radius: 999px;
  opacity: 0.55;
}

/* ====================================================================
   9. TESTIMONIALS — EDITORIAL UPGRADE
   ==================================================================== */

.testimonial {
  border-left: none !important;
  border-top: 3px solid var(--accent-amber) !important;
  background: #FEFCF7 !important;
  box-shadow:
    0 2px 24px rgba(42, 37, 32, 0.08),
    0 0 0 1px rgba(212, 197, 169, 0.22) !important;
}

.testimonial::before {
  font-size: 5.5rem !important;
  color: var(--accent-amber) !important;
  opacity: 0.18 !important;
}

.testimonial__text {
  font-family: var(--font-heading) !important;
  font-size: var(--text-lg) !important;
  font-style: italic;
  line-height: 1.65;
  color: var(--brand-dark) !important;
}

/* ====================================================================
   10. BUTTONS — REFINED GRADIENT ELEGANCE
   ==================================================================== */

.btn--primary {
  background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--accent-blue) 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 14px rgba(30, 58, 95, 0.22);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%) !important;
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.38) !important;
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent-amber-dark) 0%, var(--accent-amber) 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 14px rgba(200, 146, 42, 0.22);
}

.btn--accent:hover {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-amber-light) 100%) !important;
  box-shadow: 0 8px 28px rgba(200, 146, 42, 0.42) !important;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px);
  letter-spacing: 0.01em;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

.btn--lg {
  padding: 0.9rem 2.2rem !important;
  letter-spacing: 0.01em;
}

/* ====================================================================
   11. NAVIGATION — REFINED DARK
   ==================================================================== */

.site-header--solid {
  background: rgba(10, 8, 6, 0.97) !important;
  border-bottom: 1px solid rgba(200, 146, 42, 0.12) !important;
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.35) !important;
}

.site-header--transparent {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 100%
  ) !important;
}

/* ====================================================================
   12. FOOTER — DEEP CATHEDRAL WITH SPECTRUM TOP LINE
   ==================================================================== */

.site-footer {
  background: linear-gradient(
    160deg,
    #0B0906 0%,
    #080F18 50%,
    #0B0906 100%
  ) !important;
  border-top: 1px solid rgba(200, 146, 42, 0.08) !important;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-blue) 12%,
    var(--accent-amber) 32%,
    var(--accent-red) 52%,
    var(--accent-green) 72%,
    var(--accent-blue) 90%,
    transparent 100%
  );
  opacity: 0.45;
}

/* ====================================================================
   13. SPLIT SECTION MEDIA — GALLERY GLASS FRAME
   ==================================================================== */

.split__media {
  box-shadow:
    0 0 0 1px rgba(139, 105, 60, 0.18),
    0 0 0 5px rgba(248, 244, 236, 0.5),
    0 0 0 6px rgba(139, 105, 60, 0.1),
    0 24px 64px rgba(42, 37, 32, 0.16) !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden !important;
}

/* Mobile only: constrain image width for breathing room */
@media (max-width: 767px) {
  .split__media {
    width: 75% !important;
    margin: 0 auto !important;
  }
}

/* ====================================================================
   14. IMAGE FRAMES — WARM GALLERY TREATMENT
   ==================================================================== */

.img-frame {
  box-shadow:
    0 8px 40px rgba(42, 37, 32, 0.14),
    0 0 0 1px rgba(212, 197, 169, 0.2) !important;
}

.img-frame img {
  transition: transform 0.9s var(--ease-out) !important;
}

.img-frame:hover img {
  transform: scale(1.045);
}

/* ====================================================================
   15. ENHANCED SCROLL REVEAL — BLUR + TRANSLATE
   ==================================================================== */

.reveal {
  filter: blur(3px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out),
    filter var(--duration-reveal) var(--ease-out) !important;
}

.reveal.is-visible {
  filter: blur(0) !important;
}

/* ====================================================================
   16. VALUE FACTORS — JEWEL ACCENTED
   ==================================================================== */

.value-factor {
  background: #FEFCF7 !important;
  box-shadow: 0 2px 18px rgba(42, 37, 32, 0.07) !important;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.value-factor:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 28px rgba(42, 37, 32, 0.12) !important;
}

/* ====================================================================
   17. KARL'S PORTRAIT — ENHANCED STAINED GLASS BACKDROP
   ==================================================================== */

.img-portrait-cutout {
  box-shadow:
    0 0 0 1px rgba(200, 146, 42, 0.2),
    0 0 60px rgba(200, 146, 42, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.25) !important;
}

.img-portrait-cutout img {
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4)) !important;
}

/* ====================================================================
   18. MOBILE MENU — CATHEDRAL DEPTH
   ==================================================================== */

.mobile-menu__panel {
  background: linear-gradient(
    160deg,
    #0D0A08 0%,
    #0A1018 100%
  ) !important;
  border-left: 1px solid rgba(200, 146, 42, 0.1) !important;
}

/* ====================================================================
   19. PUBLICATION ITEMS — REFINED
   ==================================================================== */

.publication {
  background: #FEFCF7 !important;
  border: 1px solid rgba(212, 197, 169, 0.25);
  box-shadow: 0 2px 14px rgba(42, 37, 32, 0.06) !important;
}

.publication:hover {
  box-shadow: 0 6px 28px rgba(42, 37, 32, 0.11) !important;
  border-color: rgba(200, 146, 42, 0.25);
}

.publication__icon {
  background: linear-gradient(145deg, rgba(200, 146, 42, 0.12), rgba(200, 146, 42, 0.08)) !important;
  border: 1px solid rgba(200, 146, 42, 0.2);
}

/* ====================================================================
   20. CASE STUDY CARDS
   ==================================================================== */

.case-card {
  background: #FEFCF7 !important;
  box-shadow: 0 4px 24px rgba(42, 37, 32, 0.09) !important;
  border: 1px solid rgba(212, 197, 169, 0.2);
}

.case-card:hover {
  box-shadow:
    0 16px 48px rgba(42, 37, 32, 0.15),
    0 0 0 1px rgba(200, 146, 42, 0.15) !important;
}

/* ====================================================================
   21. TIMELINE — LUMINOUS GRADIENT LINE
   ==================================================================== */

.timeline::before {
  background: linear-gradient(
    180deg,
    #E8A020,
    #1B6CA8,
    #1A8A4A,
    #C0392B
  ) !important;
  width: 2px;
  opacity: 0.8;
}

.timeline__dot {
  box-shadow:
    0 0 0 3px var(--brand-cream),
    0 0 0 5px var(--accent-amber),
    0 0 16px rgba(200, 146, 42, 0.4) !important;
}

/* ====================================================================
   22. CHECK LIST — JEWEL MARKERS
   ==================================================================== */

.check-list li::before {
  background: linear-gradient(145deg, var(--accent-green-dark), var(--accent-green)) !important;
  box-shadow: 0 2px 8px rgba(45, 95, 62, 0.3);
}

/* ====================================================================
   23. BREADCRUMB — SUBTLE REFINEMENT
   ==================================================================== */

.breadcrumb {
  opacity: 0.75;
}

.breadcrumb a:hover {
  color: var(--accent-amber-light) !important;
  opacity: 1;
}

/* ====================================================================
   24. FORM ELEMENTS — REFINED
   ==================================================================== */

.form-input,
.form-textarea,
.form-select {
  background: #FEFCF7 !important;
  border-color: rgba(212, 197, 169, 0.6) !important;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
  background: #FFFFFF !important;
}

/* ====================================================================
   25. STARS RATING
   ==================================================================== */

.stars {
  filter: drop-shadow(0 1px 4px rgba(200, 146, 42, 0.3));
}

/* ====================================================================
   26. REDUCED MOTION SAFETY
   ==================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-light-beam {
    animation: none;
  }
  .reveal {
    filter: none !important;
  }
  @keyframes beam-sway {
    from, to { transform: none; }
  }
}

/* ====================================================================
   27. STAINED GLASS COLOR-BLOOM SHADOW
   The image edges "bleed" outward as ambient colored light —
   replicates how jewel-tone glass transmits and spills colored light.
   Left/right black edges produce no visible bloom naturally.
   Top/bottom colored edges glow with their actual image colors.
   ==================================================================== */

/* Wrapper: allows bloom to escape the container's clipping */
.sg-bloom-wrap {
  position: relative !important;
  overflow: visible !important;
  /* z-index creates a stacking context so the bloom layer at z-index:-1
     appears ABOVE the section background but BELOW the portrait content */
  z-index: 1;
}

/* The bloom layer: a blurred, saturated duplicate of the image */
.sg-bloom-layer {
  position: absolute;
  /* Extend top/bottom past the container edges for the bleed effect.
     Keep left/right slightly inside — the black edges produce zero
     visible color anyway, and this prevents any possible side bleed. */
  top: -52px;
  bottom: -52px;
  left: 6px;
  right: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Heavy blur + boost saturation so colors read vividly even blurred.
     Slight brightness reduction keeps it atmospheric, not garish. */
  filter: blur(34px) saturate(2.4) brightness(0.78);
  opacity: 0.75;
  z-index: -1;
  border-radius: var(--radius-lg);
  pointer-events: none;
  /* Mask restricts the bloom to ONLY the top and bottom edges.
     The center fades to transparent, keeping the portrait clean.
     Result: color bleeds from the stained glass edges, stops at ~80px in. */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0px,
    black 22px,
    transparent 78px,
    transparent calc(100% - 78px),
    black calc(100% - 22px),
    black 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0px,
    black 22px,
    transparent 78px,
    transparent calc(100% - 78px),
    black calc(100% - 22px),
    black 100%
  );
}

/* Reusable: for regular img-frame wrappers with stained glass images.
   Usage: add class "sg-bloom-wrap" to .img-frame, then add a sibling
   <div class="sg-bloom-layer" style="background-image:url('...')" aria-hidden="true">
   before the <img> tag. */
.img-frame.sg-bloom-wrap {
  overflow: visible !important;
  z-index: 1;
}

/* Bloom for images where all 4 edges have color (not just top/bottom).
   Remove the mask to let all edges glow. */
.sg-bloom-layer--all-edges {
  -webkit-mask-image: none;
  mask-image: none;
  top: -40px;
  bottom: -40px;
  left: -40px;
  right: -40px;
  filter: blur(30px) saturate(2.2) brightness(0.8);
  opacity: 0.65;
}

/* ====================================================================
   28. MOTION PASS v2 — ORCHESTRATED STAINED GLASS ANIMATIONS
   ==================================================================== */

/* ---- Per-beam sway: each beam moves from its own natural angle ---- */
@keyframes beam-sway-gold {
  0%   { transform: rotate(-7deg) translateX(0);     opacity: 0.65; }
  100% { transform: rotate(-3deg) translateX(22px);  opacity: 1;    }
}
@keyframes beam-sway-blue {
  0%   { transform: rotate(4deg)  translateX(0);     opacity: 0.52; }
  100% { transform: rotate(7deg)  translateX(-17px); opacity: 0.88; }
}
@keyframes beam-sway-ruby {
  0%   { transform: rotate(8deg)  translateX(0);     opacity: 0.48; }
  100% { transform: rotate(4deg)  translateX(15px);  opacity: 0.82; }
}

.hero-light-beam--gold { animation-name: beam-sway-gold; }
.hero-light-beam--blue { animation-name: beam-sway-blue; }
.hero-light-beam--ruby { animation-name: beam-sway-ruby; }

/* ---- Jewel drift: page-header light pools breathe and shift ---- */
@keyframes jewel-drift {
  0%   { opacity: 0.82; transform: scale(1)    translateX(0px);  }
  45%  { opacity: 1;    transform: scale(1.06) translateX(14px); }
  100% { opacity: 0.86; transform: scale(1.01) translateX(-8px); }
}

.page-header::before {
  animation: jewel-drift 16s ease-in-out infinite;
}

/* ---- Spectrum sweep: jewel colors glide across gradient lines ---- */
@keyframes spectrum-shift {
  from { background-position: 0%   50%; }
  to   { background-position: 200% 50%; }
}

.glass-gradient-line {
  background-size: 300% 100% !important;
  animation: spectrum-shift 10s linear infinite;
}

.page-header::after {
  background-size: 250% 100%;
  animation: spectrum-shift 8s linear infinite;
}

.cta-banner::after {
  background-size: 250% 100%;
  animation: spectrum-shift 9s linear infinite;
}

/* ---- Glass orb ambient drift: dark sections feel alive ---- */
@keyframes orb-drift-a {
  0%, 100% { transform: translate(0,      0)    scale(1);    }
  35%       { transform: translate(28px, -20px) scale(1.07); }
  70%       { transform: translate(-16px, 26px) scale(0.95); }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0,      0)    scale(1);    }
  35%       { transform: translate(-24px, 18px) scale(0.94); }
  70%       { transform: translate(20px, -22px) scale(1.05); }
}

.glass-orb                           { animation: orb-drift-a 24s ease-in-out infinite; }
.glass-orb--blue, .glass-orb--green  { animation-name: orb-drift-b; animation-duration: 28s; }
.glass-orb--amber                    { animation-duration: 20s; animation-delay: -8s; }
.glass-orb--red                      { animation-duration: 22s; animation-delay: -14s; }

/* ---- CTA banner atmosphere breathe ---- */
@keyframes cta-atmosphere {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1;    }
}

.cta-banner::before {
  animation: cta-atmosphere 10s ease-in-out infinite;
}

/* ---- Reveal — rotate: editorial tilt for cards and testimonials ---- */
.reveal--rotate {
  transform: translateY(24px) rotate(1.5deg) scale(0.977) !important;
}
.reveal--rotate.is-visible {
  transform: translateY(0) rotate(0deg) scale(1) !important;
}

/* ---- Reveal — text: dramatic blur-clear for headline blocks ---- */
.reveal--text {
  transform: translateY(14px) !important;
  filter: blur(8px) !important;
  transition-duration: 1s !important;
}
.reveal--text.is-visible {
  filter: blur(0) !important;
}

/* ---- Button press: tactile micro-feedback ---- */
.btn:active {
  transform: scale(0.968) !important;
  transition-duration: 0.08s !important;
}

/* ---- Reduced motion: disable all new animations ---- */
@media (prefers-reduced-motion: reduce) {
  .page-header::before,
  .page-header::after,
  .glass-gradient-line,
  .cta-banner::after,
  .cta-banner::before,
  .glass-orb {
    animation: none !important;
  }
  .hero-light-beam--gold,
  .hero-light-beam--blue,
  .hero-light-beam--ruby {
    animation: none !important;
  }
}
