/* ══════════════════════════════════════════════════════════
   SMILE Lab — Visual Enhancement Layer
   redesign2/ · Black + Gold · Editorial Luxury
   Appends to custom.css — overrides only specific selectors.
   ══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────
   1. SCROLL PROGRESS BAR
   ───────────────────────────────────────────────────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 9999;
  background: linear-gradient(90deg, #111111, #C9A84C, #111111);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
  transition: transform 0.08s linear;
}


/* ─────────────────────────────────────────────────────────
   2. HERO — Deep black with gold light leaks + fine grid
   ───────────────────────────────────────────────────────── */
#hero {
  background:
    /* Fine gold line grid */
    repeating-linear-gradient(
      90deg,
      rgba(201, 168, 76, 0.026) 0px,
      rgba(201, 168, 76, 0.026) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(201, 168, 76, 0.026) 0px,
      rgba(201, 168, 76, 0.026) 1px,
      transparent 1px,
      transparent 40px
    ),
    /* Deep warm-black gradient */
    linear-gradient(160deg,
      #000000 0%,
      #0a0a0a 20%,
      #0d0b08 40%,
      #111008 60%,
      #080700 80%,
      #000000 100%);
}

/* Gold light leak — upper left */
#hero::before {
  background:
    radial-gradient(ellipse 65% 75% at 8% 30%,
      rgba(201, 168, 76, 0.10) 0%,
      rgba(150, 110, 20, 0.05) 40%,
      transparent 70%),
    radial-gradient(ellipse 35% 35% at 85% 80%,
      rgba(201, 168, 76, 0.06) 0%,
      transparent 60%);
  animation: gold-orb-1 16s ease-in-out infinite alternate;
}
@keyframes gold-orb-1 {
  0%   { opacity: 0.6; transform: translate(0, 0)    scale(1);    }
  50%  { opacity: 0.9; transform: translate(3%, -5%) scale(1.08); }
  100% { opacity: 0.7; transform: translate(-2%, 3%) scale(1.02); }
}

/* Gold light leak — lower right */
#hero::after {
  background:
    radial-gradient(ellipse 50% 60% at 88% 60%,
      rgba(201, 168, 76, 0.09) 0%,
      transparent 65%),
    radial-gradient(ellipse 20% 20% at 40% 85%,
      rgba(100, 80, 0, 0.06) 0%,
      transparent 70%);
  animation: gold-orb-2 20s ease-in-out infinite alternate;
}
@keyframes gold-orb-2 {
  0%   { opacity: 0.5; transform: translate(0, 0)    scale(1);    }
  50%  { opacity: 0.8; transform: translate(-5%, 4%) scale(1.12); }
  100% { opacity: 0.55; transform: translate(3%, -2%) scale(0.95); }
}

/* More prominent grain — letterpress fine art feel */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}


/* ─────────────────────────────────────────────────────────
   3. HERO TAG — Gold shimmer sweep
   ───────────────────────────────────────────────────────── */
.hero-tag {
  position: relative;
  overflow: hidden;
  background: rgba(201, 168, 76, 0.07);
  border-color: rgba(201, 168, 76, 0.38);
  letter-spacing: 0.22em;
  color: #d4b96a;
}
.hero-tag::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%; width: 40%;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 168, 76, 0.32),
    transparent);
  animation: gold-tag-sweep 5s ease-in-out infinite;
}
@keyframes gold-tag-sweep {
  0%, 40% { left: -60%; opacity: 0; }
  41%      { opacity: 1; }
  70%, 100% { left: 120%; opacity: 0; }
}


/* ─────────────────────────────────────────────────────────
   4. HERO BUTTONS — Gold primary, ghost secondary
   ───────────────────────────────────────────────────────── */
.btn-hero-primary {
  background: linear-gradient(135deg,
    #d4b96a 0%,
    #C9A84C 50%,
    #a8891f 100%);
  color: #080600;
  font-weight: 700;
  box-shadow:
    0 4px 24px rgba(201, 168, 76, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.18),
    transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-hero-primary:hover::after { opacity: 1; }
.btn-hero-primary:hover {
  background: linear-gradient(135deg, #e0c878 0%, #d4b96a 50%, #b89025 100%);
  box-shadow:
    0 8px 36px rgba(201, 168, 76, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  color: #050400;
}
.btn-hero-primary > * { position: relative; z-index: 1; }
.btn-hero-primary svg { position: relative; z-index: 1; }

.btn-hero-secondary {
  border-color: rgba(201, 168, 76, 0.30);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
  border-color: rgba(201, 168, 76, 0.72);
  background: rgba(201, 168, 76, 0.10);
  color: #d4b96a;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.22);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────
   5. HERO STATS GLASS — Dark glass with gold rim
   ───────────────────────────────────────────────────────── */
.hero-stats-glass {
  background: rgba(8, 6, 0, 0.65);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-top-color: rgba(201, 168, 76, 0.32);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(201, 168, 76, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
}


/* ─────────────────────────────────────────────────────────
   6. HERO PHOTO — Warm film frame with gold rim
   ───────────────────────────────────────────────────────── */
#hero .relative.rounded-2xl.overflow-hidden.shadow-2xl {
  border-radius: 1rem !important;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.20),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 24px 72px rgba(0, 0, 0, 0.62),
    0 8px 24px rgba(201, 168, 76, 0.10);
  transition: box-shadow 0.6s ease, transform 0.6s ease;
}
#hero .relative.rounded-2xl.overflow-hidden.shadow-2xl:hover {
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.38),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 28px 80px rgba(0, 0, 0, 0.68),
    0 8px 24px rgba(201, 168, 76, 0.22);
  transform: scale(1.012);
}


/* ─────────────────────────────────────────────────────────
   7. RESEARCH FEAT CARDS — Clean 2×2 grid (black/gold)
   ───────────────────────────────────────────────────────── */

.research-feat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg, 1rem);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

/* Left-border accent reveal */
.research-feat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #C9A84C, #8a6515);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.research-feat-card:hover::before { transform: scaleY(1); }

.research-feat-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.3);
}

/* Icon box */
.feat-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8962a;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.research-feat-card:hover .feat-icon-box {
  background: #C9A84C;
  color: #111111;
  transform: scale(1.1) rotate(-4deg);
}

/* Ghost number */
.feat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(201, 168, 76, 0.25);
  user-select: none;
  transition: color 0.3s ease;
}
.research-feat-card:hover .feat-num {
  color: rgba(201, 168, 76, 0.55);
}

/* Title */
.feat-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.research-feat-card:hover .feat-title { color: #8a6515; }

/* Description */
.feat-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.55);
  margin-top: 0.625rem;
  flex-grow: 1;
}

/* Arrow link */
.feat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111111;
  transition: gap 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
.feat-link svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.research-feat-card:hover .feat-link {
  gap: 0.625rem;
  color: #C9A84C;
}
.research-feat-card:hover .feat-link svg {
  transform: translateX(4px);
}


/* ─────────────────────────────────────────────────────────
   8. VIDEO SECTION — Dark editorial with gold accents
   ───────────────────────────────────────────────────────── */
.video-section {
  background: #060400;
  position: relative;
  overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 15% 50%,
      rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 50%,
      rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.video-section .section-label {
  color: #C9A84C !important;
}
.video-section h2 {
  color: var(--white) !important;
  font-family: 'Playfair Display', Georgia, serif !important;
}
.video-section h2.heading-accent-center::after {
  background: linear-gradient(90deg, #111, #C9A84C) !important;
  margin-top: 1.25rem;
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.18),
    0 32px 80px rgba(0, 0, 0, 0.72),
    0 8px 24px rgba(201, 168, 76, 0.08);
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  border-radius: 0.75rem;
}


/* ─────────────────────────────────────────────────────────
   9. NEWS ITEMS — Gold left border reveal
   ───────────────────────────────────────────────────────── */
.news-item {
  position: relative;
  transition:
    transform 0.3s var(--ease),
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.news-item::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 2px;
  background: linear-gradient(180deg, #111111, #C9A84C);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s var(--ease);
}
.news-item:hover {
  border-left-color: transparent !important;
  background: linear-gradient(135deg,
    rgba(248, 244, 236, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%) !important;
  transform: translateX(6px);
  box-shadow: -3px 0 0 #C9A84C;
}
.news-item:hover::before { transform: scaleY(1); }


/* ─────────────────────────────────────────────────────────
   10. QUOTE CALLOUT — Luxurious serif editorial
   ───────────────────────────────────────────────────────── */
.quote-callout {
  background: linear-gradient(135deg,
    rgba(248, 243, 230, 0.92) 0%,
    rgba(255, 252, 244, 0.72) 100%) !important;
  border-left: 2px solid #C9A84C !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.625rem 1.875rem !important;
  position: relative;
}
.quote-callout::before {
  content: '\201C' !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 7.5rem !important;
  color: rgba(201, 168, 76, 0.13) !important;
  position: absolute !important;
  top: -1.75rem !important;
  left: 0.5rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  z-index: 0;
}
.quote-callout > * { position: relative; z-index: 1; }


/* ─────────────────────────────────────────────────────────
   11. SECTION ALT — Warm cream gradient
   ───────────────────────────────────────────────────────── */
.section-alt {
  background: linear-gradient(
    180deg,
    #f5f0e8 0%,
    #f7f4ed 30%,
    #f9f6f1 70%,
    #fafaf9 100%
  ) !important;
}


/* ─────────────────────────────────────────────────────────
   12. AFFILIATION CARDS — Warm hover with gold ring
   ───────────────────────────────────────────────────────── */
.affiliation-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}
.affiliation-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.22) !important;
}


/* ─────────────────────────────────────────────────────────
   13. AWARD CARDS — Gold gradient bar + spring lift
   ───────────────────────────────────────────────────────── */
.award-card::before {
  background: linear-gradient(90deg, #111111, #C9A84C) !important;
}
.award-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}
.award-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(201, 168, 76, 0.22) !important;
}


/* ─────────────────────────────────────────────────────────
   14. HEADING ACCENTS — Gold-to-black gradient
   ───────────────────────────────────────────────────────── */
.heading-accent::after,
.heading-accent-center::after {
  background: linear-gradient(
    90deg,
    #111111,
    #C9A84C 60%,
    transparent 100%) !important;
  height: 2px !important;
  border-radius: 0 !important;
  width: 52px !important;
}


/* ─────────────────────────────────────────────────────────
   15. ABOUT POSITIONS BOX — Rich dark editorial
   ───────────────────────────────────────────────────────── */
.about-positions-box {
  background: linear-gradient(
    135deg,
    #0d0b08 0%,
    #111008 50%,
    #0a0900 100%
  ) !important;
  border: 1px solid rgba(201, 168, 76, 0.15) !important;
  border-top-color: rgba(201, 168, 76, 0.32) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(201, 168, 76, 0.13);
}
.about-positions-box::before {
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 2px !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, #111, #C9A84C, #111) !important;
}
.about-positions-box h3 { color: #d4b96a !important; }
.about-positions-box p  { color: rgba(255, 255, 255, 0.74) !important; }
.about-positions-box a  {
  color: #C9A84C !important;
  font-weight: 600 !important;
}


/* ─────────────────────────────────────────────────────────
   16. FOOTER — Deep editorial black
   ───────────────────────────────────────────────────────── */
footer {
  background: linear-gradient(
    180deg,
    #0a0900 0%,
    #060500 100%
  ) !important;
}
footer::before {
  background: linear-gradient(
    90deg,
    #111111,
    #C9A84C 50%,
    #111111
  ) !important;
  height: 2px !important;
}


/* ─────────────────────────────────────────────────────────
   17. CARD BASE — Warm shadow system
   ───────────────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(0, 0, 0, 0.065) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
.card:hover {
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(201, 168, 76, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  border-color: rgba(201, 168, 76, 0.14) !important;
}


/* ─────────────────────────────────────────────────────────
   18. MEMBER CARDS — Gold underline reveal + lift
   ───────────────────────────────────────────────────────── */
.member-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  border-bottom: none !important;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease !important;
  position: relative;
}
.member-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #111111, #C9A84C);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.member-card:hover::after { transform: scaleX(1); }
.member-card:hover {
  transform: translateY(-8px) !important;
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(201, 168, 76, 0.10) !important;
}


/* ─────────────────────────────────────────────────────────
   19. SECTION LABEL — Gold
   ───────────────────────────────────────────────────────── */
.section-label {
  color: #C9A84C !important;
  letter-spacing: 0.18em;
}


/* ─────────────────────────────────────────────────────────
   20. FEATURED BADGES — Warm parchment pills
   ───────────────────────────────────────────────────────── */
.featured-badge {
  border-radius: 0.2rem !important;
  letter-spacing: 0.04em;
  font-size: 0.68rem !important;
  background: rgba(252, 248, 240, 0.92) !important;
  border-color: rgba(201, 168, 76, 0.22) !important;
  color: #6b5a2a !important;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease !important;
}
.featured-badge:hover {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2) !important;
  border-color: rgba(201, 168, 76, 0.48) !important;
  color: #8b6f1a !important;
  background: rgba(255, 252, 240, 1) !important;
}


/* ─────────────────────────────────────────────────────────
   21. CTA BOX — Dark editorial with gold orb
   ───────────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(
    135deg,
    #080600 0%,
    #0d0b08 40%,
    #100d04 70%,
    #060400 100%
  ) !important;
  border: 1px solid rgba(201, 168, 76, 0.13) !important;
  border-top-color: rgba(201, 168, 76, 0.28) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(201, 168, 76, 0.09);
  overflow: hidden;
}
.cta-box::after {
  content: '' !important;
  position: absolute !important;
  bottom: -50%; right: -15% !important;
  width: 420px !important; height: 420px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle,
    rgba(201, 168, 76, 0.09) 0%,
    transparent 65%) !important;
  animation: gold-cta-orb 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes gold-cta-orb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6%, -8%) scale(1.25); }
}


/* ─────────────────────────────────────────────────────────
   22. ALUMNI CARDS — Gold left accent
   ───────────────────────────────────────────────────────── */
.alumni-card {
  border-left: 2px solid rgba(201, 168, 76, 0.20) !important;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease !important;
}
.alumni-card:hover {
  border-left-color: #C9A84C !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09) !important;
}


/* ─────────────────────────────────────────────────────────
   23. SELECTION COLOR — Warm gold
   ───────────────────────────────────────────────────────── */
::selection {
  background: rgba(201, 168, 76, 0.22);
  color: #0d0b06;
}


/* ─────────────────────────────────────────────────────────
   24. NAV BAR SCROLLED — Warm white
   ───────────────────────────────────────────────────────── */
.site-nav-bar.header-scrolled {
  background: rgba(255, 252, 248, 0.9) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07) !important;
}


/* (section 25 removed — old research card label no longer used) */


/* ─────────────────────────────────────────────────────────
   26. BUTTON ACTIVE STATE
   ───────────────────────────────────────────────────────── */
.btn-hero-primary:active,
.btn-hero-secondary:active,
.btn-cta:active {
  transform: translateY(0) scale(0.97) !important;
}
