/* ============================================
   Boulder AIR - Modern Homepage Styles
   Scientific Clarity Aesthetic
   ============================================ */

/* Google Fonts - loaded in HTML head */
/* Plus Jakarta Sans (body) + DM Serif Display (headings) */

:root {
  /* Primary Palette */
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-primary-dark: #0f2540;

  /* Accent Colors */
  --color-accent: #38b2ac;
  --color-accent-hover: #2c9a94;
  --color-accent-light: rgba(56, 178, 172, 0.1);
  --color-gold: #d69e2e;
  --color-gold-light: #ecc94b;

  /* Neutrals */
  --color-bg: #f8fafc;
  --color-bg-warm: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 40px rgba(56, 178, 172, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Navigation
   ============================================ */

.nav-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    rgba(227, 182, 63, .4) 0%,
    rgba(56, 178, 172, 0.4) 50%,
    rgba(26, 54, 93, 0.6) 100%
  );
  /* background-color:#114a901b; */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
}

.nav-modern.scrolled {
  background: linear-gradient( 
    135deg,
    rgba(227, 182, 63 0.4) 0%,
    rgba(56, 178, 172, 0.4) 50%,
    rgba(26, 54, 93, 0.75) 100%
  );
  /* background-color: #114a901b; */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    var(--shadow-lg);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-logo img {
  height: clamp(38px, 5vw, 65px);
  width: auto;
  transition: transform var(--transition-base);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Sliding pill indicator */
.nav-pill {
  position: absolute;
  height: 36px;
  background: rgba(56, 178, 172, 0.25);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  opacity: 0;
}

.nav-pill.visible {
  opacity: 1;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: #231f20;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  transition: all var(--transition-base), color 0.3s ease;
  font-family: var(--font-body);
}

/* Hover/active state */
.nav-link:hover,
.nav-link.active {
  color: #231f20;
}

/* Dynamic navbar text color for dark backgrounds */
.nav-modern.nav-dark-mode .nav-link {
  color: #fff;
}

.nav-modern.nav-dark-mode .nav-link:hover,
.nav-modern.nav-dark-mode .nav-link.active {
  color: #fff;
}

.nav-modern.nav-dark-mode .nav-toggle span {
  background: #fff;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: var(--transition-base);
}

/* Compact nav links at intermediate widths before hamburger kicks in */
@media (max-width: 1150px) {
  .nav-container {
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }

  .nav-link {
    padding: 0.5rem 0.65rem;
    font-size: 1rem;
  }
}

/* Freeze all nav transitions during window resize to prevent layout flash */
.nav-modern.nav-resizing,
.nav-modern.nav-resizing * {
  transition: none !important;
  animation: none !important;
}

@media (max-width: 992px) {
  .nav-container {
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-logo img {
    height: 55px;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-sm);
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Hide sliding pill on mobile - doesn't work for vertical layout */
  .nav-pill {
    display: none;
  }

  .nav-link {
    padding: 1.2rem;
    font-size: 1.3rem;
    text-align: center;
    color: var(--color-primary-dark) !important;
  }

  .nav-link:hover {
    color: var(--color-accent) !important;
  }

  .nav-link::after {
    bottom: 8px;
    background: var(--color-accent);
  }
}

/* ============================================
   Hero Section with Video
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 80px; /* reserve space for fixed nav */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-primary);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background-image: url('../staticimages/homepage/longmont_mountian_sky.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-fallback.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.75) 0%,
    rgba(26, 54, 93, 0.5) 50%,
    rgba(15, 37, 64, 0.7) 100%
  );
}

/* Bottom fade into monitoring section */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent -10%,
    rgba(26, 54, 93, 0.5) 80%,
    var(--color-primary) 100%
  );
}

/* Atmospheric noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
  padding: clamp(0.75rem, 2vh, 2rem) var(--space-xl);
  animation: heroFadeIn 1.2s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(0px, 8vh, 6rem);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, min(5vw, 7vh), 4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: clamp(2.5rem, 5.5vh, 5rem);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.hero-subtitle {
  font-size: clamp(0.95rem, min(2vw, 3vh), 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(56, 178, 172, 0.4);
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 178, 172, 0.5);
  color: #fff;
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Hero Carousel — 3D Coverflow
   ============================================ */

@keyframes heroBubbleIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Outer layout: [prev] [stage] [next] */
.hero-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  margin-top: 0;
  opacity: 0;
  animation: heroBubbleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

/* Arrow buttons */
.hero-carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 28, 56, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, transform 0.2s ease;
  z-index: 20;
}

.hero-carousel-btn:hover {
  background: rgba(56, 178, 172, 0.22);
  border-color: rgba(56, 178, 172, 0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(56, 178, 172, 0.22);
  transform: scale(1.08);
}

.hero-carousel-btn:active {
  transform: scale(0.94);
}

/* 3D stage — perspective container */
.hero-carousel-stage {
  position: relative;
  width: 520px;
  height: clamp(185px, 28vh, 470px);
  perspective: 900px;
  perspective-origin: 50% 30%;
}

/* Rotating cylinder — all cards are children of this */
.hero-carousel-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual card — static on the cylinder, JS places it once */
.hero-carousel-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0 auto;
  width: 178px;
  text-decoration: none;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Glass card body */
.hero-carousel-inner {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;          /* needed for ::after scan line */
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(10, 28, 56, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}


.hero-carousel-card.is-active .hero-carousel-inner {
  border-color: rgba(56, 178, 172, 0.42);
  box-shadow:
    0 0 0 1px rgba(56, 178, 172, 0.22),
    0 0 20px rgba(56, 178, 172, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Image area */
.hero-carousel-img-wrap {
  width: 100%;
  height: clamp(88px, 16vh, 330px);
  position: relative;
  overflow: hidden;
}

.hero-carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-carousel-card.is-active .hero-carousel-img-wrap img {
  transform: scale(1.05);
}

/* Gradient bridge between image and body */
.hero-carousel-img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 42%, rgba(10, 28, 56, 0.68) 100%);
  pointer-events: none;
}

/* Label + icon row */
.hero-carousel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.6rem 0.4rem 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Shortened class names used in HTML for brevity */
.hci {
  color: var(--color-accent);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 4px rgba(56, 178, 172, 0.5));
  transition: filter 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.hero-carousel-card.is-active .hci {
  filter: drop-shadow(0 0 8px rgba(56, 178, 172, 0.95));
  transform: scale(1.12);
  color: #fff;
}

.hcl {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.hero-carousel-card.is-active .hcl {
  color: var(--color-accent);
}

/* Dot row */
.hero-carousel-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
  opacity: 0;
  animation: heroBubbleIn 0.6s ease 0.65s forwards;
}

.hcd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hcd.is-active {
  background: var(--color-accent);
  transform: scale(1.5);
}

/* ---- Swipe hint (mobile only) ---- */
.hero-swipe-hint {
  display: none;
}

@media (max-width: 680px) {
  .hero-swipe-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: swipeHintPulse 2.8s ease-in-out 1.5s infinite;
  }

  .hero-swipe-hint svg {
    opacity: 0.6;
    flex-shrink: 0;
  }
}

@keyframes swipeHintPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(1);   }
  30%       { opacity: 0.9; transform: scaleX(1.06); }
  60%       { opacity: 0.4; transform: scaleX(1);   }
}

/* ---- Hero accent row ---- */
.hero-accent-row {
  display: none;
}

.hero-accent-line {
  flex: 0 0 72px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(56, 178, 172, 0.1),
    rgba(56, 178, 172, 0.8) 55%,
    rgba(56, 178, 172, 0.3)
  );
}

/* Mirror the right line */
.hero-accent-line:last-of-type {
  background: linear-gradient(
    to left,
    rgba(56, 178, 172, 0.1),
    rgba(56, 178, 172, 0.8) 55%,
    rgba(56, 178, 172, 0.3)
  );
}

.hero-accent-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-accent-dot {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(56, 178, 172, 0.7);
}

.hero-accent-dot.is-large {
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(56, 178, 172, 0.6);
}

/* ---- Active section description ---- */
.hero-carousel-desc {
  margin: 0.85rem auto 0;
  max-width: 520px;
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  text-align: center;
  min-height: 1.1em;       /* prevent layout shift */
  line-height: 1.5;
  transition: opacity 0.22s ease;
  opacity: 0;              /* JS fades this in after init */
  animation: heroBubbleIn 0.6s ease 0.85s forwards;
}

/* ---- Responsive ---- */

@media (max-width: 680px) {
  .hero-carousel-stage {
    width: 360px;
    height: 185px;
  }
  .hero-carousel-card {
    width: 104px;
  }
  .hero-carousel-img-wrap {
    height: 90px;
  }
  .hero-carousel-btn {
    display: none;
  }
  .hcl {
    letter-spacing: 0.07em;
    font-size: 0.62rem;
  }
  .hero-content {
    margin-bottom: 14vh;
  }
  .hero-carousel-desc {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    max-width: 320px;
    margin-top: 1rem;
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 420px) {
  .hero-carousel-stage {
    width: 280px;
    height: 165px;
  }
  .hero-carousel-card {
    width: 86px;
  }
  .hero-carousel-img-wrap {
    height: 74px;
  }
  .hero-carousel-wrapper {
    gap: 0.4rem;
  }
  .hero-carousel-desc {
    font-size: 0.82rem;
    max-width: 260px;
  }
  .hcl {
    letter-spacing: 0.03em;
    font-size: 0.58rem;
  }
}

@media (min-width: 681px) {
  body {
    font-size: 18px;
  }

  /* ── Minimum 18px for all small text on desktop ── */
  .section-eyebrow,
  .monitoring-card-location,
  .data-carousel-counter,
  .resource-card-description,
  .resource-card-link,
  .resource-card-badge,
  .resource-card-desc-modern,
  .resource-card-action span,
  .expertise-tab,
  .services-card-eyebrow,
  .service-item-number,
  .service-item-text,
  .services-card-caption,
  .exp-video-badge,
  .exp-ss-label,
  .exp-ss-nav-btn,
  .exp-ss-caption,
  .exp-ss-counter,
  .publication-item,
  .publications-archive-toggle .archive-years,
  .news-item-date,
  .news-item-description,
  .news-archive-years,
  .contact-item-label,
  .form-group label,
  .form-group label .optional,
  .footer-section p,
  .footer-section a,
  .footer-copyright,
  .footer-credit,
  .footer-team-label,
  .footer-heading,
  .footer-description,
  .footer-link,
  .footer-copyright-modern,
  .footer-credit-modern,
  .offerings-tab,
  .offerings-tab i,
  .offerings-panel-desc,
  .offering-badge,
  .offerings-detail-btn,
  .offerings-drawer-body {
    font-size: 1rem;
  }

  .hero-accent-row {
    display: none;
  }
  .hero-content {
    margin-bottom: clamp(2rem, 12vh, 8rem);
  }
  .hcd {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.45);
  }
  .hero-carousel-dots {
    margin-top: 1.5rem;
    gap: 0.6rem;
  }
}

/* Short viewport: compress spacing so content fits without clipping */
@media (max-height: 700px) {
  .hero-eyebrow {
    margin-bottom: var(--space-md);
    font-size: 0.72rem;
    padding: 4px var(--space-md);
  }
  .hero-subtitle {
    margin-bottom: var(--space-lg);
  }
}

/* Hide desc only on short desktop/landscape — not on small portrait phones */
@media (max-height: 700px) and (min-width: 681px) {
  .hero-carousel-desc {
    display: none;
  }
}

@media (max-height: 520px) {
  .hero-carousel-wrapper {
    display: none;
  }
  .hero-eyebrow {
    display: none;
  }
  .hero-subtitle {
    margin-bottom: var(--space-md);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   Section Base Styles
   ============================================ */

.section {
  padding: var(--space-4xl) var(--space-xl);
}

.section-dark {
  background: var(--color-primary);
  color: #fff;
}

.section-light {
  background: var(--color-bg);
}

.section-cream {
  background: var(--color-bg-warm);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.section-dark .section-eyebrow {
  color: var(--color-gold-light);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

.section-dark .section-title {
  color: #fff;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-dark .section-description {
  color: rgba(255, 255, 255, 0.7);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================
   Monitoring Cards Grid
   ============================================ */

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .monitoring-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.monitoring-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  text-decoration: none;
  display: block;
}

.monitoring-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.monitoring-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

/* Subtle blue-teal-gray tint for uniformity */
.monitoring-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(77, 126, 134, 0.252);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.monitoring-card:hover .monitoring-card-image::before {
  opacity: 0.2;
}

.monitoring-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform var(--transition-slow);
}

.monitoring-card-image .img-watercolor {
  opacity: 1;
  z-index: 1;
}

.monitoring-card-image .img-photo {
  opacity: 0;
  z-index: 2;
}

.monitoring-card:hover .monitoring-card-image .img-watercolor {
  opacity: 0;
}

.monitoring-card:hover .monitoring-card-image .img-photo {
  opacity: 1;
  transform: scale(1.05);
}

.monitoring-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 54, 93, 0.9) 0%,
    rgba(26, 54, 93, 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.monitoring-card:hover .monitoring-card-overlay {
  opacity: 1;
}

.monitoring-card-overlay span {
  display: none;
}

.monitoring-card-content {
  padding: var(--space-xl);
}

.monitoring-card-location {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.monitoring-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

/* ============================================
   Slideshow (Data Carousel)
   ============================================ */

.data-carousel-wrapper {
  margin-top: 4rem;
}

.data-carousel {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.95), rgba(15, 37, 64, 0.98));
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  padding-top: var(--space-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(56, 178, 172, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(214, 158, 46, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-nav:hover {
  background: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(56, 178, 172, 0.4);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
  left: var(--space-lg);
}

.carousel-nav-next {
  right: var(--space-lg);
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  transition: width 0.5s ease;
  border-radius: 0 2px 2px 0;
}

/* Slide Counter */
.data-carousel-counter {
  position: absolute;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Slides */
.data-carousel-slide {
  display: none;
  animation: fadeSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-carousel-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.data-carousel-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  background: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .data-carousel {
    padding: var(--space-lg);
    padding-top: var(--space-2xl);
    border-radius: var(--radius-xl);
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-nav-prev {
    left: var(--space-sm);
  }

  .carousel-nav-next {
    right: var(--space-sm);
  }

  .carousel-nav svg {
    width: 20px;
    height: 20px;
  }

  .data-carousel-counter {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-md);
  }

  .data-carousel-image {
    max-height: 300px;
  }
}

/* ============================================
   Resources Section (Three Cards)
   ============================================ */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.resource-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.resource-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.resource-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.resource-card:hover .resource-card-image img {
  transform: scale(1.05);
}

.resource-card-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.resource-card-description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.resource-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.resource-card-link svg {
  transition: transform var(--transition-fast);
}

.resource-card:hover .resource-card-link svg {
  transform: translateX(4px);
}

/* ============================================
   Modern Resource Cards - Floating Glass Panels
   ============================================ */

.resources-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.resource-card-modern {
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resource-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-card-modern:hover {
  transform: translateY(-12px);
}

/* Glow effect behind card */
.resource-card-glow {
  position: absolute;
  inset: 20px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-2xl);
  opacity: 0;
  filter: blur(30px);
  transition: opacity 0.4s ease;
  z-index: 0;
}

.resource-card-modern:hover .resource-card-glow {
  opacity: 0.4;
}

/* Inner card container - note: flex properties set above */
.resource-card-inner {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.06),
    0 25px 50px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s ease;
  z-index: 1;
}

.resource-card-modern:hover .resource-card-inner {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(56, 178, 172, 0.2);
}

/* Image container */
.resource-card-image-modern {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.resource-card-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resource-card-modern:hover .resource-card-image-modern img {
  transform: scale(1.08);
}

.resource-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 40%,
    rgba(26, 54, 93, 0.03) 100%
  );
  pointer-events: none;
}

/* Card body content */
.resource-card-body {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Badge/tag */
.resource-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(56, 178, 172, 0.12) 0%, rgba(26, 54, 93, 0.08) 100%);
  border: 1px solid rgba(56, 178, 172, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.resource-card-badge svg {
  opacity: 0.8;
}

/* Title */
.resource-card-title-modern {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.resource-card-modern:hover .resource-card-title-modern {
  color: var(--color-primary-dark);
}

/* Description */
.resource-card-desc-modern {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  flex: 1;
}

/* Action/CTA area */
.resource-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.resource-card-action span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.resource-card-modern:hover .resource-card-action span {
  color: var(--color-accent);
}

.resource-card-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resource-card-modern:hover .resource-card-arrow {
  background: var(--color-accent);
  color: #fff;
  transform: translateX(4px);
}

.resource-card-arrow svg {
  transition: transform 0.3s ease;
}

.resource-card-modern:hover .resource-card-arrow svg {
  transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .resources-grid-modern {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .resource-card-modern:hover {
    transform: translateY(-6px);
  }
}

/* ============================================
   Services Section
   ============================================ */

.services-banner {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: var(--color-primary);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3xl);
  box-shadow: var(--shadow-lg);
}

.services-banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.services-banner-text {
  font-size: 1rem;
  opacity: 0.9;
}

.services-banner a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* ── Expertise Tab Bar ── */
.expertise-tab-bar {
  position: relative;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-top: var(--space-xl);
  margin-bottom: 0;
}

.expertise-tab-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expertise-tab {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: var(--space-md) var(--space-xl);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.expertise-tab i {
  font-size: 0.85em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.expertise-tab:hover {
  color: var(--color-primary);
}

.expertise-tab.is-active {
  color: var(--color-primary);
}

.expertise-tab.is-active i {
  opacity: 1;
  color: var(--color-accent);
}

.expertise-tab:focus {
  outline: none;
}

.expertise-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* Immersive Services Layout */
.services-immersive {
  position: relative;
  min-height: 700px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  margin-bottom: var(--space-2xl);
  width: 100vw;
  overflow: hidden;
}

/* ── Expertise Panels ── */
.expertise-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.expertise-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Dark panel variant (Research + Video) */
.expertise-panel--dark {
  background: #0d1820;
  justify-content: center;
}

.expertise-panel--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(56, 178, 172, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.expertise-panel--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13, 24, 32, 0.55) 0%, transparent 10%),
    linear-gradient(to top,    rgba(13, 24, 32, 0.55) 0%, transparent 10%);
  pointer-events: none;
}

.services-bg {
  overflow: hidden;
}

/* Full-bleed background images */
.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) contrast(1.05);
}

.services-bg-image.active {
  opacity: 1;
}

.services-bg-image[data-image="1"] {
  object-position: center -7%;
}

.services-bg-image[data-image="9"] {
  object-position: center 38%;
}

.services-bg-image[data-image="10"] {
  object-position: center;
}

/* Gradient overlays for seamless blending */
.services-bg-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    var(--color-bg-warm) 0%,
    rgba(250, 250, 249, 0.8) 40%,
    transparent 100%
  );
  z-index: 2;
}

.services-bg-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to top,
    var(--color-bg-warm) 0%,
    rgba(250, 250, 249, 0.8) 40%,
    transparent 100%
  );
  z-index: 2;
}

.services-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    transparent 0%,
    rgba(250, 250, 249, 0.3) 70%,
    rgba(250, 250, 249, 0.6) 100%
  );
  z-index: 1;
}

/* Floating glass card */
.services-card {
  position: relative;
  z-index: 10;
  margin-left: var(--space-2xl);
  max-width: 400px;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 60px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.services-card-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.services-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.2;
}

.services-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.service-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: 5px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(56, 178, 172, 0.4);
  min-width: 1.5em;
  transition: color 0.3s ease;
}

.service-item-text {
  font-size: 0.85rem;
  color: #475569;
  transition: color 0.3s ease;
}

.service-item:hover .service-item-number,
.service-item.active .service-item-number {
  color: var(--color-accent);
}

.service-item:hover .service-item-text,
.service-item.active .service-item-text {
  color: var(--color-primary);
}

.service-item.active {
  background: linear-gradient(
    90deg,
    rgba(56, 178, 172, 0.08) 0%,
    transparent 100%
  );
  margin: 0 calc(-1 * var(--space-md));
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}

.services-card-caption {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  min-height: 3em;
  transition: opacity 0.3s ease;
}

.services-archives {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.services-archives-title {
  font-size: 1.9rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.services-archives-description {
  font-size: 1.1rem;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.services-archives-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.services-archives-links a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  font-size: 1.05rem;
  transition: var(--transition-base);
}

.services-archives-links a:hover {
  background: var(--color-accent-light);
  transform: translateX(4px);
}

.services-archives-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Video Panel ── */
.exp-video-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-2xl);
}

.exp-video-frame {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #080f16;
  box-shadow:
    0 0 0 1px rgba(56, 178, 172, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Reuse teal corner brackets */
.exp-video-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  border-radius: 6px 0 0 0;
  z-index: 10;
  pointer-events: none;
}

.exp-video-frame::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  border-bottom: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  border-radius: 0 0 6px 0;
  z-index: 10;
  pointer-events: none;
}

.exp-video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.exp-video-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.exp-video-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: expDotPulse 2s ease-in-out infinite;
}

@keyframes expDotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Research Insights Slideshow ── */
.exp-slideshow {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-2xl);
}

/* Header row: label + nav buttons */
.exp-ss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-ss-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.5em;
  opacity: 0.9;
}

.exp-ss-label i {
  font-size: 0.85em;
}

.exp-ss-nav {
  display: flex;
  gap: 6px;
}

.exp-ss-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(56, 178, 172, 0.28);
  background: rgba(56, 178, 172, 0.07);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
}

.exp-ss-nav-btn:hover {
  background: rgba(56, 178, 172, 0.18);
  border-color: rgba(56, 178, 172, 0.55);
  color: #fff;
}

/* Image frame with teal corner brackets */
.exp-ss-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #080f16;
  box-shadow:
    0 0 0 1px rgba(56, 178, 172, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Corner bracket accents — top-left */
.exp-ss-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  border-radius: 6px 0 0 0;
  z-index: 10;
  pointer-events: none;
}

/* Corner bracket accents — bottom-right */
.exp-ss-frame::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  border-bottom: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  border-radius: 0 0 6px 0;
  z-index: 10;
  pointer-events: none;
}

/* Individual slides */
.exp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-slide.is-active {
  opacity: 1;
}

.exp-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #080f16;
  transition: transform 5s ease;
}

.exp-slide.is-active img {
  transform: scale(1.03);
}

/* Footer: progress bar + caption + dots/counter */
.exp-ss-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-ss-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.exp-ss-progress-bar {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  border-radius: 1px;
}

.exp-ss-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
  min-height: 2.4em;
  transition: opacity 0.3s ease;
  margin: 0;
  font-style: italic;
}

.exp-ss-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-ss-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 200px;
}

.exp-ss-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.exp-ss-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.5);
}

.exp-ss-dot:hover {
  background: rgba(56, 178, 172, 0.55);
}

.exp-ss-counter {
  font-size: 0.68rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
}

/* Mobile: compress tabs, fix overflow, switch from abs to block flow */
@media (max-width: 680px) {
  .expertise-tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .expertise-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .expertise-tab {
    flex: 1;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: var(--space-sm) var(--space-sm);
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    min-width: 0;
    line-height: 1.3;
  }

  .expertise-tab i {
    display: none;
  }

  /* Full-bleed via transform — reliable with double-padded parents */
  .services-immersive {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    width: 100vw;
    min-height: 0;
    overflow: hidden;
  }

  /* Let dark panels bleed to the section bottom edge — no cream gap below them */
  section#expertise {
    overflow: hidden;
    padding-bottom: 0;
  }

  /* On mobile panels are block-flow, not absolutely stacked */
  .expertise-panel {
    position: relative;
    inset: auto;
    opacity: 0;
    display: none;
    pointer-events: none;
    transition: none;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .expertise-panel.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
  }

  /* Services card gets vertical breathing room (only panel that needs bottom space) */
  .expertise-panel#expPanel0.is-active {
    padding: var(--space-lg) 0 var(--space-2xl) 0;
  }

  /* Constrain services list on mobile so it doesn't stretch the page */
  .expertise-panel#expPanel0 .services-card-list {
    max-height: 280px;
    overflow-y: auto;
  }

  .exp-slideshow,
  .exp-video-content {
    padding: var(--space-lg);
    max-width: 100%;
  }

  /* Give the video panel a sensible minimum so it doesn't look tiny */
  .expertise-panel#expPanel2.is-active {
    min-height: 280px;
  }
}

/* ============================================
   Publications Section
   ============================================ */

.publications-container {
  max-width: 900px;
  margin: 0 auto;
}

.publications-toggle {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.publications-toggle:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.publications-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.publications-toggle.active svg {
  transform: rotate(180deg);
}

.publications-content {
  display: none;
  margin-top: var(--space-xl);
}

.publications-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.publications-year {
  position: sticky;
  top: 100px;
  z-index: 10;
  background: var(--color-bg);
  padding: var(--space-md) 0;
  margin: var(--space-2xl) 0 var(--space-lg);
  border-bottom: 2px solid var(--color-accent);
}

.publications-year h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin: 0;
}

.publication-item {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

.publication-item:hover {
  border-left-color: var(--color-accent);
  background: var(--color-accent-light);
}

.publication-item a {
  color: var(--color-accent);
  word-break: break-all;
}

/* Publication Year Accordions */
.publication-year-accordion {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.publication-year-header {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  transition: all var(--transition-base);
  outline: none;
  margin: 0 auto;
}

.publication-year-header:focus {
  outline: none;
}

.publication-year-header:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.publication-year-header h3 {
  font-size: 2rem;
  color: var(--color-accent);
  margin: 0;
  transition: all var(--transition-base);
  position: relative;
}

.publication-year-header h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  transition: width var(--transition-base);
}

.publication-year-header:hover h3::after {
  width: 100%;
}

.publication-year-header:hover h3 {
  color: var(--color-accent-hover);
}

.publication-year-header svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  opacity: 0.7;
}

.publication-year-accordion.active .publication-year-header svg {
  transform: rotate(180deg);
}

.publication-year-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0;
}

.publication-year-accordion.active .publication-year-content {
  padding: var(--space-lg) 0 var(--space-xl);
}

.publication-year-content .publication-item {
  margin-bottom: var(--space-md);
  text-align: left;
}

.publication-year-content .publication-item:last-child {
  margin-bottom: 0;
}

/* Featured/Current Year - larger and more prominent */
.publication-year-accordion.publication-featured .publication-year-header h3 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.publication-year-accordion.publication-featured .publication-year-header h3::after {
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
}

.publication-year-accordion.publication-featured .publication-year-header svg {
  color: var(--color-gold);
  opacity: 1;
}

/* Archive Section */
.publications-archive-wrapper {
  margin-top: var(--space-3xl);
  position: relative;
}

.publications-archive-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-border) 20%,
    var(--color-border) 80%,
    transparent 100%
  );
}

.publications-archive-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-xl) 0;
  margin-top: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  outline: none;
  position: relative;
}

.publications-archive-toggle:focus {
  outline: none;
}

.publications-archive-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.publications-archive-toggle::before,
.publications-archive-toggle::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border));
}

.publications-archive-toggle::after {
  background: linear-gradient(90deg, var(--color-border), transparent);
}

.publications-archive-toggle:hover {
  color: var(--color-accent);
}

.publications-archive-toggle .archive-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  transition: all var(--transition-base);
}

.publications-archive-toggle:hover .archive-icon {
  background: var(--color-accent);
  transform: scale(1.1);
}

.publications-archive-toggle:hover .archive-icon svg {
  color: #fff;
}

.publications-archive-toggle .archive-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.publications-archive-toggle.active .archive-icon svg {
  transform: rotate(180deg);
}

.publications-archive-toggle .archive-text {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.publications-archive-toggle .archive-years {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 400;
}

.publications-archive-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.publications-archive-content.active {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-3xl);
}

.publications-archive-content .publication-year-accordion {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.publications-archive-content.active .publication-year-accordion {
  opacity: 1;
  transform: translateY(0);
}

.publications-archive-content.active .publication-year-accordion:nth-child(1) { transition-delay: 0.05s; }
.publications-archive-content.active .publication-year-accordion:nth-child(2) { transition-delay: 0.1s; }
.publications-archive-content.active .publication-year-accordion:nth-child(3) { transition-delay: 0.15s; }
.publications-archive-content.active .publication-year-accordion:nth-child(4) { transition-delay: 0.2s; }
.publications-archive-content.active .publication-year-accordion:nth-child(5) { transition-delay: 0.25s; }
.publications-archive-content.active .publication-year-accordion:nth-child(6) { transition-delay: 0.3s; }
.publications-archive-content.active .publication-year-accordion:nth-child(7) { transition-delay: 0.35s; }
.publications-archive-content.active .publication-year-accordion:nth-child(8) { transition-delay: 0.4s; }
.publications-archive-content.active .publication-year-accordion:nth-child(9) { transition-delay: 0.45s; }
.publications-archive-content.active .publication-year-accordion:nth-child(10) { transition-delay: 0.5s; }

/* ============================================
   News Section
   ============================================ */

#news {
  overflow-x: hidden;
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vh, 5rem);
  overflow: visible;
  padding: var(--space-xl) 0;
}

.news-item {
  background: linear-gradient(
    135deg,
    rgba(227, 182, 63, 0.15) 0%,
    rgba(56, 178, 172, 0.15) 50%,
    rgba(26, 54, 93, 0.3) 100%
  );
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.news-item:hover {
  background: linear-gradient(
    135deg,
    rgba(227, 182, 63, 0.25) 0%,
    rgba(56, 178, 172, 0.25) 50%,
    rgba(26, 54, 93, 0.4) 100%
  );
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.news-item-date {
  font-size: 0.85rem;
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}

.news-item-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.news-item-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.news-item-title a:hover {
  color: var(--color-accent);
}

.news-item-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* News Archive Toggle - matches publications style */
.news-archive-wrapper {
  margin-top: var(--space-3xl);
  position: relative;
}

.news-archive-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
}

.news-archive-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-xl) 0;
  margin-top: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  outline: none;
  position: relative;
}

.news-archive-toggle:focus {
  outline: none;
}

.news-archive-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.news-archive-toggle:hover {
  color: var(--color-accent);
}

.news-archive-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(56, 178, 172, 0.2);
  transition: all var(--transition-base);
}

.news-archive-toggle:hover .news-archive-icon {
  background: var(--color-accent);
  transform: scale(1.1);
}

.news-archive-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  transition: all var(--transition-base);
}

.news-archive-toggle:hover .news-archive-icon svg {
  color: #fff;
}

.news-archive-toggle.active .news-archive-icon svg {
  transform: rotate(180deg);
}

.news-archive-text {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.news-archive-years {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.news-archive-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-top: 0;
}

.news-archive-content.active {
  max-height: 3000px;
  padding-top: var(--space-2xl);
}

.news-archive-content .news-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.news-archive-content.active .news-item {
  opacity: 1;
  transform: translateY(0);
}

.news-archive-content.active .news-item:nth-child(1) { transition-delay: 0.05s; }
.news-archive-content.active .news-item:nth-child(2) { transition-delay: 0.1s; }
.news-archive-content.active .news-item:nth-child(3) { transition-delay: 0.15s; }
.news-archive-content.active .news-item:nth-child(4) { transition-delay: 0.2s; }

/* Legacy toggle styles - kept for compatibility */
.news-more-toggle {
  display: none;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-base);
  margin-top: var(--space-xl);
}

.news-more-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.news-more-content {
  display: none;
  margin-top: var(--space-xl);
}

.news-more-content.active {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vh, 5rem);
}

/* News Scroll Fade-In Animation */
.news-item[data-scroll-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.news-item[data-scroll-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .news-item[data-scroll-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../staticimages/homepage/longmont_mountian_sky.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.contact-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.contact-item {
  text-align: center;
}

.contact-item-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.contact-item-value {
  font-size: 1.25rem;
  color: #fff;
}

.contact-item-value a {
  color: #fff;
}

.contact-item-value a:hover {
  color: var(--color-accent);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: var(--space-3xl) auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.form-group label .optional {
  font-weight: 400;
  text-transform: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(56, 178, 172, 0.4);
}

.form-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 178, 172, 0.5);
}

.form-submit:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto var(--space-3xl);
}

.footer-section h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: var(--color-accent);
}

/* Team Photo */
.team-photo-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  margin: 0 auto;
}

.team-photo-container img {
  width: 100%;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Modern Footer Redesign
   ============================================ */

.footer-modern {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #0a1628 100%);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

/* Team Hero Section */
.footer-team-hero {
  padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
  display: flex;
  justify-content: center;
}

.footer-team-frame {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.footer-team-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: perspective(1000px) rotateX(2deg);
  transition: var(--transition-slow);
}

.footer-team-image-wrapper:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.01);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 60px rgba(56, 178, 172, 0.15);
}

.footer-team-image-wrapper img {
  width: 100%;
  display: block;
  transition: var(--transition-slow);
}

.footer-team-image-wrapper:hover img {
  transform: scale(1.03);
}

.footer-team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(15, 37, 64, 0.9) 100%
  );
  pointer-events: none;
}

.footer-team-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  text-align: center;
  z-index: 2;
}

.footer-team-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  background: rgba(56, 178, 172, 0.15);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.footer-team-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Footer Content Grid */
.footer-content {
  padding: 0 var(--space-xl) var(--space-3xl);
  max-width: 900px;
  margin: 0 auto;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-lg);
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Footer Navigation Links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-xs) 0;
  transition: var(--transition-base);
  position: relative;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition-base);
}

.footer-link:hover {
  color: #fff;
}

.footer-link:hover::before {
  width: 100%;
}

.footer-link-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition-base);
}

.footer-link:hover .footer-link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-accent);
}

/* Footer Bottom */
.footer-bottom-modern {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-lg) var(--space-xl);
}

.footer-bottom-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright-modern {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-credit-modern {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
  font-style: italic;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-team-hero {
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  }

  .footer-team-image-wrapper {
    transform: none;
    border-radius: var(--radius-xl);
  }

  .footer-team-image-wrapper:hover {
    transform: none;
  }

  .footer-team-caption {
    padding: var(--space-lg);
  }

  .footer-content {
    padding: 0 var(--space-md) var(--space-2xl);
  }

  .footer-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  cursor: pointer;
  border: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-4px);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   Animations
   ============================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate][data-animate-from="left"],
[data-animate][data-animate-from="right"] {
  transform: translateY(0) scale(0.97);
}

[data-animate].in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Staggered animations - longer delays for sequential blink effect */
[data-animate-delay="1"] { transition-delay: 0.15s; }
[data-animate-delay="2"] { transition-delay: 0.35s; }
[data-animate-delay="3"] { transition-delay: 0.55s; }
[data-animate-delay="4"] { transition-delay: 0.75s; }
[data-animate-delay="5"] { transition-delay: 0.95s; }
[data-animate-delay="6"] { transition-delay: 1.15s; }
[data-animate-delay="7"] { transition-delay: 1.35s; }
[data-animate-delay="8"] { transition-delay: 1.55s; }

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) var(--space-lg);
  }

  .hero-content {
    padding: var(--space-lg);
    margin-top: 3rem;
  }

  .monitoring-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .services-immersive {
    min-height: 580px;
  }

  .services-card {
    margin: var(--space-lg);
    max-width: none;
    padding: var(--space-xl);
  }

  .services-card-title {
    font-size: 1.5rem;
  }

  .services-bg-vignette {
    background: radial-gradient(
      ellipse at 50% 100%,
      transparent 0%,
      rgba(250, 250, 249, 0.5) 60%,
      rgba(250, 250, 249, 0.8) 100%
    );
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-md);
  }
}

/* ─── Offerings Section ─── */

.offerings-tabs {
  margin-top: var(--space-3xl);
}

/* Tab bar with sliding indicator */
.offerings-tab-bar {
  position: relative;
  display: flex;
  background: rgba(26, 54, 93, 0.06);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 0.5rem;
  gap: 0;
}

.offerings-tab-indicator {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  height: calc(100% - 1rem);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.offerings-tab {
  position: relative;
  z-index: 1;
  isolation: isolate;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-base);
}

.offerings-tab i {
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.offerings-tab::before {
  content: '';
  position: absolute;
  inset: 0 5px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

.offerings-tab:hover::before {
  opacity: 1;
}

.offerings-tab:hover {
  color: var(--color-primary);
}

.offerings-tab:focus {
  outline: none;
}

.offerings-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.offerings-tab.is-active {
  color: var(--color-primary);
}

.offerings-tab.is-active i {
  color: var(--color-accent);
}

/* Panel */
.offerings-panel {
  display: flex;
  align-items: stretch;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 300px;
}

.offerings-panel[hidden] {
  display: none;
}

.offerings-panel-text {
  flex: 1;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) calc(var(--space-2xl) - 4px);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
}

/* Large decorative step number */
.offerings-panel-number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.18;
  margin-bottom: -0.75rem;
  user-select: none;
}

.offerings-panel-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}

.offerings-panel-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
  max-width: 42ch;
}

/* Image side with overlay + ghost icon */
.offerings-panel-image {
  position: relative;
  width: 750px;
  flex-shrink: 0;
  overflow: hidden;
}

.offerings-panel-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 140px;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.offerings-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}


.offerings-panel-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 20%,
    rgba(26, 54, 93, 0.88) 100%
  );
  z-index: 1;
}

.offerings-panel-ghost-icon {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-size: 5.5rem;
  color: rgba(255, 255, 255, 0.28);
  z-index: 4;
  pointer-events: none;
}

/* Badge & CTA */
.offering-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(56, 178, 172, 0.3);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.75rem;
  text-transform: uppercase;
  align-self: flex-start;
}

.offering-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(56, 178, 172, 0.4);
  align-self: flex-start;
  margin-top: var(--space-sm);
}

.offering-cta-btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 178, 172, 0.5);
}

/* Seafoam section background */
.section-seafoam {
  background: var(--color-accent);
}

.section-seafoam .section-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.section-seafoam .section-title {
  color: #fff;
}

/* Offerings section on dark background */
.section-dark .offerings-tab-bar {
  background: var(--color-primary-light);
}

.section-dark .offerings-tab {
  color: rgba(255, 255, 255, 0.65);
}

.section-dark .offerings-tab:hover {
  color: var(--color-primary);
}

.section-dark .offerings-tab.is-active {
  color: var(--color-primary);
}

.section-dark .offerings-tab::before {
  background: #fff;
}

.section-dark .offerings-panel-number {
  color: var(--color-accent);
}

.section-dark .offerings-detail-btn {
  color: var(--color-text-muted);
}

.section-dark .offerings-detail-btn:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-accent);
}

/* Actions row (CTA + Details button) */
.offerings-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-top: var(--space-xs);
}

.offerings-panel-actions .offering-cta-btn {
  margin-top: 0;
}

.offerings-detail-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.offerings-detail-btn:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-accent);
}

/* Drawer backdrop */
.offerings-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 64, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.offerings-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer panel */
.offerings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  max-width: 100vw;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--color-accent);
}

.offerings-drawer.is-open {
  transform: translateX(0);
}

.offerings-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.offerings-drawer-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.25;
}

.offerings-drawer-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(26, 54, 93, 0.06);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.offerings-drawer-close:hover {
  background: rgba(56, 178, 172, 0.12);
  color: var(--color-accent);
}

.offerings-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2xl);
  font-size: 0.975rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.offerings-drawer-body p {
  margin: 0 0 var(--space-lg);
}

.offerings-drawer-body p:last-child {
  margin-bottom: 0;
}

.offerings-drawer-footer {
  padding: var(--space-lg) var(--space-2xl) var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.offerings-drawer-footer .offering-cta-btn {
  margin-top: 0;
  width: 100%;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .offerings-tab span {
    display: none;
  }

  .offerings-tab {
    padding: 0.85rem;
    font-size: 1.1rem;
  }

  .offerings-tab i {
    font-size: 1.1rem;
  }

  .offerings-panel {
    flex-direction: column;
    min-height: auto;
    border-left: none;
    border-top: 4px solid var(--color-accent);
  }

  .offerings-panel-image {
    width: 100%;
    height: 180px;
    order: -1;
  }

  .offerings-panel-text {
    padding: var(--space-xl);
  }

  .offerings-panel-number {
    font-size: 2rem;
  }
}

/* ── Desktop minimum 18px — overrides for late-defined components ── */
@media (min-width: 681px) {
  .offerings-tab,
  .offerings-tab i,
  .offerings-tab span,
  .offerings-panel-desc,
  .offering-badge,
  .offerings-detail-btn,
  .offerings-drawer-body,
  .expertise-tab,
  .service-item-text,
  .service-item-number,
  .services-card-eyebrow,
  .services-card-caption,
  .exp-ss-label,
  .exp-ss-caption,
  .exp-ss-counter,
  .exp-ss-nav-btn,
  .exp-video-badge,
  .news-item-date,
  .news-item-description,
  .news-archive-years,
  .publication-item,
  .publication-item a,
  .monitoring-card-location,
  .contact-item-label,
  .contact-item-value,
  .contact-item-value a,
  .form-group label,
  .form-group label .optional,
  .form-group input,
  .form-group textarea,
  .footer-heading,
  .footer-description,
  .footer-link,
  .footer-copyright-modern,
  .footer-credit-modern,
  .footer-copyright,
  .footer-credit {
    font-size: 1rem;
  }

  .section-description {
    font-size: 1.125rem;
  }
}
