/* ================================================================
   SANDBOX CLINIC — SAPPHIRE CLINICS EAST, INC.
   Main Stylesheet

   EASY CUSTOMIZATION:
   - Edit the :root variables in the THEME section to change
     colors, fonts, and spacing site-wide.
   - Each section is clearly labeled with comments.
   ================================================================ */

/* ── THEME VARIABLES ──────────────────────────────────────────── */
:root {
  /* Brand Colors — Sapphire Clinics East, Inc. official palette
     Per SCEI Brand Guide 2026 */
  --primary:        #1A7B8A;   /* SCEI Teal (primary brand color) */
  --primary-dark:   #0D5B68;   /* Deep Teal */
  --primary-darker: #0a3d47;   /* Darkest teal */
  --primary-mid:    #2AAABB;   /* Bright Teal */
  --primary-light:  #2AAABB;   /* Bright Teal */
  --primary-xlight: #E4F3F5;   /* Pale Teal bg */

  /* Accent Color */
  --accent:         #f59e0b;   /* Amber */
  --accent-light:   #fef3c7;   /* Light amber bg */
  --accent-dark:    #92400e;

  /* Neutral Palette */
  --text:           #1e293b;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --border:         #e2e8f0;
  --bg:             #f7fafb;
  --bg-alt:         #edf5f8;   /* Light teal-blue tinted background */
  --bg-card:        #ffffff;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'DM Sans', 'Inter', sans-serif;

  /* Layout */
  --container-max:    1200px;
  --section-padding:  96px 24px;
  --nav-height:       70px;

  /* Border Radius */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);

  /* Transition */
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.25; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── UTILITIES ─────────────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* Section headings */
.section-tag {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid rgba(20,184,166,.3);
  margin-bottom: 14px;
}
.section-tag.amber {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: rgba(245,158,11,.3);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary-dark); border-color: transparent; }
.btn-white:hover { background: var(--primary-xlight); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #d97706; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.badge-teal { background: var(--primary-xlight); color: var(--primary); }
.badge-dark { background: var(--primary-dark); color: #fff; }
.badge-amber { background: var(--accent-light); color: var(--accent-dark); }

/* ── NAVIGATION ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex; align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 24px;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.navbar.hero-top {
  background: transparent;
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-family: var(--font-heading);
  font-size: 16px; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
/* SVG diamond mark */
.nav-logo-mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: #fff;
  transition: color var(--transition);
  overflow: visible;
}
.navbar.scrolled .nav-logo-mark { color: var(--primary); }

/* Wordmark text next to the mark */
.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700;
  color: #fff;
  transition: color var(--transition);
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 9.5px; letter-spacing: 1.4px;
  text-transform: uppercase; opacity: .7;
  color: #fff;
  transition: color var(--transition);
}
.navbar.scrolled .nav-logo-name { color: var(--text); }
.navbar.scrolled .nav-logo-sub  { color: var(--text-muted); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.9);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  background: none; border: none; font-family: var(--font-body);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }
.navbar.scrolled .nav-link { color: var(--text); }
.navbar.scrolled .nav-link:hover { color: var(--primary); background: var(--primary-xlight); }
.nav-link.active { color: #fff; }
.navbar.scrolled .nav-link.active { color: var(--primary); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition);
  overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: block;
  padding: 12px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--bg-alt); color: var(--primary); }

.nav-cta { margin-left: 8px; }

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary-darker);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.mobile-nav.open { transform: none; }
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 700;
  color: rgba(255,255,255,.85);
  padding: 12px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  background: none; border: none; font-family: var(--font-heading);
}
.mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: rgba(255,255,255,.7); font-size: 32px;
  cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.mobile-nav-close:hover { color: #fff; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--primary-darker);
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4,47,46,.85) 0%,
    rgba(15,118,110,.6) 50%,
    rgba(4,47,46,.75) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 24px;
  width: 100%;
  padding-top: var(--nav-height);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 720px;
}
.hero-title .accent-word { color: var(--primary-light); }
.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.8);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.6;
  font-style: italic;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: 700px;
}
.hero-stat {
  text-align: center;
  padding: 20px 28px;
  flex: 1; min-width: 130px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 11px; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 4px;
}
/* Slide dots */
.hero-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.hero-dot.active { background: #fff; width: 24px; }

/* ── ANNOUNCEMENT BANNER ───────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 12px 24px;
  font-size: 14px; font-weight: 500;
}
.announcement-bar a { color: var(--primary-xlight); font-weight: 600; text-decoration: underline; }

/* ── BOOK CTA STRIP ────────────────────────────────────────────── */
.book-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 56px 24px;
  text-align: center;
}
.book-strip h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.book-strip p { color: rgba(255,255,255,.8); font-size: 18px; margin-bottom: 32px; }
.book-strip .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── ACCREDITED HMOs ───────────────────────────────────────────── */
.hmo-section { padding: var(--section-padding); background: #fff; }
.hmo-logos {
  display: flex; flex-wrap: wrap;
  gap: 16px; justify-content: center; align-items: center;
}
.hmo-logo-card {
  display: flex; align-items: center; justify-content: center;
  width: 200px; height: 110px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all var(--transition);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-align: center;
}
.hmo-logo-card img { max-height: 72px; object-fit: contain; margin: 0 auto; }
.hmo-logo-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateY(-2px); }
.hmo-placeholder-text { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 16px; font-style: italic; }

/* ── PARTNER INSTITUTIONS ──────────────────────────────────────── */
.partners-section { padding: var(--section-padding); background: var(--bg-alt); }
.partner-logos {
  display: flex; flex-wrap: wrap;
  gap: 16px; justify-content: center; align-items: center;
}
.partner-logo-card {
  display: flex; align-items: center; justify-content: center;
  width: 220px; height: 120px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: all var(--transition);
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-align: center;
}
.partner-logo-card img { max-height: 80px; object-fit: contain; margin: 0 auto; }
.partner-logo-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateY(-2px); }

/* ── ABOUT SECTION ─────────────────────────────────────────────── */
.about-section { padding: var(--section-padding); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.mv-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius); padding: 32px;
  position: relative; overflow: hidden; border: none;
}
.mv-card::after {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.mv-card.light { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.mv-card-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; opacity: .55; margin-bottom: 10px;
}
.mv-card-text { font-size: 17px; line-height: 1.7; opacity: .95; }

.bhag-box {
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: var(--radius); padding: 28px;
  color: #fff;
}
.bhag-box-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; opacity: .75; margin-bottom: 8px;
}
.bhag-box-text { font-size: 16px; font-weight: 600; line-height: 1.6; }

.values-list {
  display: flex; flex-direction: column; gap: 12px;
}
.value-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: all var(--transition);
}
.value-item:hover { background: var(--primary-xlight); transform: translateX(4px); }
.value-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--primary-xlight);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.value-name { font-weight: 700; font-size: 15px; }
.value-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── LEADERSHIP ────────────────────────────────────────────────── */
.leadership-section { padding: var(--section-padding); background: var(--bg-alt); }
.leader-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
}
.leader-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.leader-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 16px;
  overflow: hidden;
}
.leader-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.leader-name { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.leader-creds { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.leader-role { font-size: 13px; color: var(--accent-dark); font-weight: 600; margin-bottom: 14px; }
.leader-bio { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ── BRANCHES ──────────────────────────────────────────────────── */
.branches-section { padding: var(--section-padding); }

.branch-tabs {
  display: flex; gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.branch-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  color: var(--text-muted);
}
.branch-tab:hover { border-color: var(--primary-light); color: var(--primary); background: var(--bg-alt); }
.branch-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.branch-tab svg { width: 18px; height: 18px; }

.branch-panel { display: none; }
.branch-panel.active { display: block; }

.branch-header-card {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  border-radius: var(--radius);
  padding: 36px;
  color: #fff;
  margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.branch-header-card::after {
  content: '';
  position: absolute; bottom: -60px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.branch-name { font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 8px; }
.branch-address { opacity: .75; font-size: 14px; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 6px; }
.branch-contact { opacity: .75; font-size: 14px; margin-bottom: 4px; display: flex; align-items: flex-start; gap: 6px; }

/* Services list */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.service-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.service-dot {
  width: 8px; height: 8px; flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
}
.service-name { font-size: 14px; font-weight: 600; }

/* Facilities gallery */
.facilities-heading {
  font-size: 20px; font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,47,46,.8) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-name {
  color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: .3px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 600;
  background: rgba(0,0,0,.5);
  padding: 8px 20px; border-radius: 100px;
  backdrop-filter: blur(8px);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff; font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 20px;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── ACCOMPLISHMENTS ───────────────────────────────────────────── */
.accomplishments-section { padding: var(--section-padding); background: var(--bg-alt); }
.acc-tabs {
  display: flex; gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.acc-tab {
  padding: 12px 28px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  color: var(--text-muted);
}
.acc-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.acc-tab.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.acc-panel { display: none; }
.acc-panel.active { display: block; }
.acc-iframe-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: #fff;
}
.acc-iframe-wrap iframe {
  width: 100%;
  height: 90vh;
  min-height: 600px;
  border: none;
  display: block;
}
.acc-open-btn {
  text-align: right;
  margin-bottom: 12px;
}

/* ── CAREERS ───────────────────────────────────────────────────── */
.careers-section { padding: var(--section-padding); background: #fff; }
.career-card {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  border-radius: var(--radius); padding: 40px;
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.career-card::before {
  content: '';
  position: absolute; top: -80px; left: 50%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,.12) 0%, transparent 70%);
  border-radius: 50%; transform: translateX(-50%);
}
.career-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.career-card p { opacity: .8; font-size: 16px; margin-bottom: 32px; line-height: 1.7; }
.career-branches {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 32px;
}
.career-branch {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  backdrop-filter: blur(8px);
}
.career-branch-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.career-branch-email {
  font-size: 14px; opacity: .8;
  display: flex; align-items: center; gap: 8px;
}
.career-benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 40px;
}
.career-benefit {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 24px; text-align: left;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.career-benefit:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.career-benefit-icon {
  width: 44px; height: 44px;
  background: var(--primary-xlight);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}
.career-benefit h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.career-benefit p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── FAQs ──────────────────────────────────────────────────────── */
.faq-section { padding: var(--section-padding); background: var(--bg-alt); }
.faq-category { margin-bottom: 40px; }
.faq-category-title {
  font-size: 16px; font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-xlight);
  display: flex; align-items: center; gap: 8px;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  user-select: none;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--primary-xlight);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 18px; line-height: 1;
  transition: all var(--transition);
  font-weight: 400;
}
.faq-item.open .faq-icon { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-a-inner {
  padding: 0 20px 18px;
  font-size: 14px; color: var(--text-muted); line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 600px; }

/* ── NEWS & UPDATES ─────────────────────────────────────────────── */
.news-section { padding: var(--section-padding); background: #fff; }

/* Tab buttons */
.news-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.news-tab-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px;
  border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.news-tab-btn:hover { color: var(--primary); background: var(--primary-xlight); }
.news-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-xlight); }

/* Tab panels */
.news-tab-panel { display: none !important; }
.news-tab-panel.active { display: block !important; }

/* Posts grid */
.news-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Individual post card */
.news-post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--transition);
}
.news-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-light); }
.news-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.news-post-date { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.news-post-branch {
  font-size: 11px; font-weight: 600; color: #fff;
  background: var(--primary); border-radius: 20px;
  padding: 2px 10px;
}
.news-post-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); margin: 0; }
.news-post-summary { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; flex: 1; }
.news-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; padding: 7px 16px;
  background: none; border: 1.5px solid var(--primary); border-radius: 20px;
  color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); align-self: flex-start;
}
.news-read-more:hover { background: var(--primary); color: #fff; }

/* Loading + empty states */
.news-loading {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 60px 20px; color: var(--text-muted); font-size: 14px;
}
.news-spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--primary-xlight);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.news-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--text-muted); font-size: 14px; text-align: center;
}

/* Post modal */
.post-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 2000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.post-modal-overlay.active { display: flex; }
.post-modal {
  background: #fff; border-radius: var(--radius);
  max-width: 720px; width: 100%; max-height: 88vh;
  overflow-y: auto; padding: 40px;
  position: relative; box-shadow: var(--shadow-lg);
}
.post-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 28px; cursor: pointer;
  color: var(--text-muted); line-height: 1;
  transition: color var(--transition);
}
.post-modal-close:hover { color: var(--text); }
.post-modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.post-modal-title { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 24px; color: var(--text); }
.post-modal-body { font-size: 15px; line-height: 1.75; color: var(--text); }
.post-modal-body p { margin-bottom: 14px; }
.post-modal-body h1,.post-modal-body h2,.post-modal-body h3 { font-weight: 700; margin: 20px 0 10px; }
.post-modal-body ul,.post-modal-body ol { padding-left: 22px; margin-bottom: 14px; }
.post-modal-body li { margin-bottom: 6px; }
.post-modal-body strong { font-weight: 700; }
.post-modal-body em { font-style: italic; }

@media (max-width: 600px) {
  .news-tabs { gap: 6px; }
  .news-tab-btn { padding: 8px 14px; font-size: 13px; }
  .news-posts { grid-template-columns: 1fr; }
  .post-modal { padding: 24px 18px; }
}

/* ── CONTACT ───────────────────────────────────────────────────── */
.contact-section { padding: var(--section-padding); background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.contact-card {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  border-radius: var(--radius); padding: 36px;
  color: #fff; position: relative; overflow: hidden;
  border: none;
}
.contact-card.light { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.contact-card::after {
  content: '';
  position: absolute; bottom: -50px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-card-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 14px; opacity: .85;
  line-height: 1.5;
}
.contact-detail-icon { flex-shrink: 0; margin-top: 1px; font-size: 16px; }
.social-section { margin-top: 40px; text-align: center; }
.social-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.social-link.fb:hover { border-color: #1877F2; color: #1877F2; }
.social-link.ig:hover { border-color: #E1306C; color: #E1306C; }
.social-link.li:hover { border-color: #0A66C2; color: #0A66C2; }
.social-link.tk:hover { border-color: #000; color: #000; }

/* Verdana Rehab Banner */
.verdana-banner {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
  border-radius: var(--radius); padding: 32px;
  color: #fff;
  display: flex; align-items: center; gap: 24px;
  margin-top: 40px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.verdana-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.verdana-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  background: rgba(255,255,255,.12);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.verdana-banner h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.verdana-banner p { opacity: .8; font-size: 15px; line-height: 1.6; }
.verdana-banner .btn { margin-top: 16px; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,.7);
  padding: 56px 24px 32px;
}
.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 800;
  color: #fff; margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; opacity: .4;
  margin-bottom: 16px;
}
.footer-brand-desc { font-size: 13px; line-height: 1.7; opacity: .65; }
.footer-col-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.footer-link {
  display: block; font-size: 14px; padding: 4px 0;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  cursor: pointer;
}
.footer-link:hover { color: var(--primary-light); }
.footer-contact-item {
  font-size: 13px; opacity: .65;
  margin-bottom: 8px; line-height: 1.5;
}
.footer-bottom {
  max-width: var(--container-max); margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 12px; opacity: .4;
}

/* ── SCROLL TO TOP ─────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  font-size: 20px;
  z-index: 500;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-padding: 64px 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { max-width: 100%; }
  .hero-stat { min-width: 100px; padding: 16px 18px; }
  .hero-stat-num { font-size: 22px; }
  .verdana-banner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  :root { --section-padding: 48px 16px; }
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero-stat:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .branch-tab { padding: 10px 16px; font-size: 14px; }
  .acc-iframe-wrap iframe { height: 75vh; }
  .lightbox-prev, .lightbox-next { display: none; }
  .career-branches { grid-template-columns: 1fr; }
}

/* ── LOGO INTRO SPLASH SCREEN ──────────────────────────────────
   CSS lifted verbatim from scei-logo-intro.html and scoped under
   #logo-intro-overlay to prevent conflicts with the rest of the site.
   ──────────────────────────────────────────────────────────────── */

/* Overlay wrapper — positions over entire viewport, auto-dismisses */
#logo-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  /* CSS auto-dismiss after animation sequence completes */
  animation: li-overlayOut 0.9s ease 5.5s forwards;
}
@keyframes li-overlayOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Scene — full-viewport dark background (exact from scei-logo-intro.html) */
#logo-intro-overlay .scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 55% at 50% 50%,
    #0B2A31 0%,
    #061418 45%,
    #04090B 100%);
}

/* Background particle glow */
#logo-intro-overlay .bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(26,123,138,0.12) 0%,
    rgba(26,123,138,0.04) 50%,
    transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
  animation-delay: 0.5s;
  opacity: 0;
}
@keyframes glowPulse {
  0%   { opacity: 0;   transform: translate(-50%,-50%) scale(0.8); }
  40%  { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
  70%  { opacity: 0.7; transform: translate(-50%,-50%) scale(1.0); }
  100% { opacity: 0.8; transform: translate(-50%,-50%) scale(1.05); }
}

/* Logo wrapper */
#logo-intro-overlay .logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Main SVG */
#logo-intro-overlay #logo-svg {
  width: 280px;
  height: 280px;
  overflow: visible;
}

/* Outer Diamond — perimeter ≈ 497.8; dasharray 512 for clean close */
#logo-intro-overlay #outer-diamond {
  fill: none;
  stroke: #1A7B8A;
  stroke-width: 5.5;
  stroke-linejoin: miter;
  stroke-linecap: square;
  stroke-dasharray: 512;
  stroke-dashoffset: 512;
  filter: drop-shadow(0 0 4px rgba(26,123,138,0.6));
  animation: drawPath 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.3s;
}

/* Inscribed Square — perimeter = 4 × 88 = 352 */
#logo-intro-overlay #inscribed-square {
  fill: none;
  stroke: #1A7B8A;
  stroke-width: 4.2;
  stroke-linejoin: miter;
  stroke-dasharray: 354;
  stroke-dashoffset: 354;
  filter: drop-shadow(0 0 3px rgba(26,123,138,0.5));
  animation: drawPath 1.1s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 0.9s;
}

/* Inner Diamond — perimeter = 4 × (44√2) ≈ 249 */
#logo-intro-overlay #inner-diamond {
  fill: none;
  stroke: #1A7B8A;
  stroke-width: 3.2;
  stroke-linejoin: miter;
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  filter: drop-shadow(0 0 2px rgba(26,123,138,0.4));
  animation: drawPath 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: 1.5s;
}

@keyframes drawPath { to { stroke-dashoffset: 0; } }

/* Facet lines */
#logo-intro-overlay .facet-line {
  fill: none;
  stroke: #1A7B8A;
  stroke-linecap: square;
  opacity: 0;
  animation: fadeInLine 0.4s ease forwards;
}
#logo-intro-overlay .facet-line.cardinal { stroke-width: 2.2; }
#logo-intro-overlay .facet-line.diagonal { stroke-width: 1.8; }
#logo-intro-overlay .facet-line:nth-child(1)  { animation-delay: 2.10s; }
#logo-intro-overlay .facet-line:nth-child(2)  { animation-delay: 2.18s; }
#logo-intro-overlay .facet-line:nth-child(3)  { animation-delay: 2.26s; }
#logo-intro-overlay .facet-line:nth-child(4)  { animation-delay: 2.34s; }
#logo-intro-overlay .facet-line:nth-child(5)  { animation-delay: 2.42s; }
#logo-intro-overlay .facet-line:nth-child(6)  { animation-delay: 2.50s; }
#logo-intro-overlay .facet-line:nth-child(7)  { animation-delay: 2.58s; }
#logo-intro-overlay .facet-line:nth-child(8)  { animation-delay: 2.66s; }
#logo-intro-overlay .facet-line:nth-child(9)  { animation-delay: 2.74s; }
#logo-intro-overlay .facet-line:nth-child(10) { animation-delay: 2.82s; }
#logo-intro-overlay .facet-line:nth-child(11) { animation-delay: 2.90s; }
#logo-intro-overlay .facet-line:nth-child(12) { animation-delay: 2.98s; }

@keyframes fadeInLine { from { opacity: 0; } to { opacity: 1; } }

/* Center table diamond */
#logo-intro-overlay #center-table {
  fill: #1A7B8A;
  stroke: none;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(26,123,138,0.9)) drop-shadow(0 0 16px rgba(42,170,187,0.5));
  animation: centerPop 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
  animation-delay: 3.1s;
}
@keyframes centerPop {
  0%   { opacity: 0; transform: scale(0);    }
  60%  { opacity: 1; transform: scale(1.4);  }
  80%  { opacity: 1; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.0);  }
}

/* Mark shimmer after assembly */
#logo-intro-overlay #logo-mark-group {
  animation: markShimmer 2s ease 3.6s infinite alternate;
}
@keyframes markShimmer {
  0%   { filter: drop-shadow(0 0 3px rgba(26,123,138,0.4)); }
  100% { filter: drop-shadow(0 0 12px rgba(42,170,187,0.7)); }
}

/* Wordmark */
#logo-intro-overlay .wordmark-container {
  text-align: center;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: wordmarkIn 0.9s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
  animation-delay: 3.4s;
}
@keyframes wordmarkIn { to { opacity: 1; transform: translateY(0); } }

#logo-intro-overlay .wordmark-primary {
  display: block;
  color: #FFFFFF;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  line-height: 1;
  text-transform: uppercase;
}
#logo-intro-overlay .wordmark-rule {
  display: block;
  width: 180px;
  height: 1px;
  background: rgba(26,123,138,0.6);
  margin: 10px auto;
}
#logo-intro-overlay .wordmark-secondary {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Tagline */
#logo-intro-overlay .tagline {
  margin-top: 22px;
  opacity: 0;
  transform: translateY(10px);
  animation: wordmarkIn 0.8s ease forwards;
  animation-delay: 4.2s;
  text-align: center;
}
#logo-intro-overlay .tagline span {
  display: inline-block;
  color: rgba(26,123,138,0.9);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Corner frame decorations */
#logo-intro-overlay .corner {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0;
  animation: fadeInLine 0.5s ease forwards;
  animation-delay: 4.0s;
}
#logo-intro-overlay .corner::before,
#logo-intro-overlay .corner::after {
  content: '';
  position: absolute;
  background: rgba(26,123,138,0.5);
}
#logo-intro-overlay .corner::before { width: 100%; height: 1px; top: 0; left: 0; }
#logo-intro-overlay .corner::after  { width: 1px; height: 100%; top: 0; left: 0; }
#logo-intro-overlay .corner.tl { top: 32px; left: 32px; }
#logo-intro-overlay .corner.tr { top: 32px; right: 32px; transform: scaleX(-1); }
#logo-intro-overlay .corner.bl { bottom: 32px; left: 32px; transform: scaleY(-1); }
#logo-intro-overlay .corner.br { bottom: 32px; right: 32px; transform: scale(-1); }

/* Skip button (styled exactly like the original replay-btn) */
#logo-intro-overlay .replay-btn {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: transparent;
  border: 1px solid rgba(26,123,138,0.5);
  color: rgba(26,123,138,0.8);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  padding: 8px 18px;
  cursor: pointer;
  text-transform: uppercase;
  opacity: 0;
  transition: all 0.3s ease;
  animation: fadeInLine 0.5s ease 5.0s forwards;
  font-family: inherit;
}
#logo-intro-overlay .replay-btn:hover {
  background: rgba(26,123,138,0.15);
  border-color: rgba(26,123,138,0.9);
  color: #1A7B8A;
}

/* Embed note */
#logo-intro-overlay .embed-note {
  position: absolute;
  bottom: 32px;
  left: 32px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

