:root {
    --teal: #3ec6c6;
    --teal-light: #7de8e8;
    --teal-dark: #1a9e9e;
    --blue: #2a7de1;
    --blue-light: #5ba3f5;
    --sky: #e8f7fb;
    --white: #ffffff;
    --off-white: #f4fafc;
    --glass: rgba(255,255,255,0.72);
    --gray-100: #f0f6f9;
    --gray-200: #d8eaf0;
    --gray-400: #8aacba;
    --gray-600: #4a6a78;
    --gray-800: #1e3040;
    --text: #162130;
    --text-muted: #5a7a8a;
    --shadow-soft: 0 8px 40px rgba(42,125,225,0.10);
    --shadow-card: 0 2px 20px rgba(30,48,64,0.08);
    --border: rgba(42,125,225,0.12);
    --gradient-hero: linear-gradient(135deg, #e8f7fb 0%, #d4f0f8 30%, #c8eaf6 60%, #ddf2fb 100%);
    --gradient-teal: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* ─── NAV ─────────────────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px;
    height: 68px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 24px rgba(42,125,225,0.06);
  }

  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
  }

  .logo-mark {
    width: 32px; height: 32px;
    background: var(--gradient-teal);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(62,198,198,0.35);
  }

  .logo-mark::after {
    content: '';
    width: 14px; height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  }

  .logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--gray-800);
    letter-spacing: -0.3px;
  }

  .logo-text span { color: var(--teal-dark); }

  .nav-links {
    display: flex; align-items: center; gap: 36px;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.01em;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--teal-dark); }

  .nav-cta {
    background: var(--gradient-teal);
    color: white !important;
    padding: 9px 22px;
    border-radius: 100px;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    box-shadow: 0 4px 14px rgba(62,198,198,0.30);
    transition: transform 0.2s, box-shadow 0.2s !important;
  }

  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(62,198,198,0.40) !important;
    color: white !important;
  }

  /* ─── HERO ─────────────────────────────────────── */
  #home {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 120px 48px 80px;
    position: relative;
    overflow: hidden;
  }

  .hero-orbs {
    position: absolute; inset: 0; pointer-events: none;
  }

  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbFloat 12s ease-in-out infinite;
  }

  .orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #7de8e8, transparent); top: -100px; left: -100px; animation-delay: 0s; }
  .orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #5ba3f5, transparent); top: 20%; right: -80px; animation-delay: -4s; }
  .orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #3ec6c6, transparent); bottom: 0; left: 30%; animation-delay: -8s; }

  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.97); }
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--glass);
    border: 1px solid rgba(62,198,198,0.25);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--teal-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(62,198,198,0.12);
    animation: fadeUp 0.8s ease both;
  }

  .badge-dot {
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .hero-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.08;
    text-align: center;
    color: var(--gray-800);
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-bottom: 24px;
    animation: fadeUp 0.8s 0.1s ease both;
  }

  .hero-headline em {
    font-style: normal;
    color: var(--teal-dark);
    background: linear-gradient(135deg, var(--teal-dark), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-sub {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray-600);
    text-align: center;
    max-width: 580px;
    line-height: 1.65;
    margin-bottom: 44px;
    animation: fadeUp 0.8s 0.2s ease both;
  }

  .hero-actions {
    display: flex; gap: 14px; align-items: center;
    animation: fadeUp 0.8s 0.3s ease both;
  }

  .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gradient-teal);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(62,198,198,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.01em;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(62,198,198,0.45);
  }

  .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.2s;
  }

  .btn-secondary:hover {
    color: var(--teal-dark);
    border-color: rgba(62,198,198,0.30);
    background: rgba(255,255,255,0.9);
  }

  .hero-stats {
    display: flex; gap: 60px;
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    animation: fadeUp 0.8s 0.4s ease both;
  }

  .stat { text-align: center; }

  .stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    color: var(--gray-800);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ─── SECTION SHARED ────────────────────────────── */
  section {
    padding: 100px 48px;
  }

  .section-label {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 14px;
  }

  .section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--gray-800);
    max-width: 680px;
    margin-bottom: 20px;
  }

  .section-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 56px;
  }

  .container { max-width: 1200px; margin: 0 auto; }

  /* ─── HERO VIDEO ────────────────────────────────── */
  .hero-video {
    width: 100%;
    background: var(--gray-900, #0a0a0a);
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .hero-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 42.85%; /* 21:9 cinematic banner */
    overflow: hidden;
  }

  .hero-video-frame iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Scale up to hide YouTube's letterboxing on a 21:9 frame */
    width: 100vw;
    height: 56.25vw; /* 16:9 of viewport width */
    min-height: 100%;
    min-width: 177.77%; /* 16:9 of container height */
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
  }

  .hero-video-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    cursor: pointer;
    /* Transparent overlay - clicks anywhere on the video go to YouTube */
    background: transparent;
  }

  @media (max-width: 768px) {
    .hero-video-frame {
      padding-bottom: 56.25%; /* 16:9 on mobile - more screen real estate */
    }
  }

  /* ─── TRUST BAR ─────────────────────────────────── */
  #trust {
    padding: 36px 48px;
    background: var(--gray-800);
    overflow: hidden;
  }

  .trust-inner {
    display: flex; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto;
  }

  .trust-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .trust-divider { width: 1px; height: 24px; background: var(--gray-600); flex-shrink: 0; }

  .trust-logos {
    display: flex; align-items: center; gap: 48px;
    opacity: 0.45;
    filter: brightness(2);
  }

  .trust-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 14px;
    color: white;
    white-space: nowrap;
    letter-spacing: 0.5px;
  }

  /* ─── ABOUT / MISSION ───────────────────────────── */
  #about {
    background: var(--white);
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px; margin: 0 auto;
  }

  .about-visual {
    position: relative;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--gradient-hero);
    box-shadow: var(--shadow-soft);
  }

  .facility-img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.9;
  }

  .about-visual-inner {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(62,198,198,0.08) 0%, rgba(42,125,225,0.12) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
    padding: 40px;
  }

  .facility-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 20px 28px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(42,125,225,0.08);
  }

  .facility-card-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 8px;
  }

  .facility-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--gray-800);
    margin-bottom: 4px;
  }

  .facility-card-sub { font-size: 13px; color: var(--text-muted); }

  .meter-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 100px;
    margin-top: 12px;
    overflow: hidden;
  }

  .meter-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--gradient-teal);
    animation: meterFill 2s 0.5s ease both;
  }

  @keyframes meterFill {
    from { width: 0; }
  }

  .timeline-list {
    list-style: none;
    position: relative;
    padding-left: 28px;
  }

  .timeline-list::before {
    content: '';
    position: absolute; left: 8px; top: 6px; bottom: 6px;
    width: 1px;
    background: linear-gradient(to bottom, var(--teal), var(--blue));
    opacity: 0.3;
  }

  .timeline-item {
    position: relative;
    margin-bottom: 28px;
  }

  .timeline-item::before {
    content: '';
    position: absolute; left: -24px; top: 7px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(62,198,198,0.2);
  }

  .timeline-year {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal-dark);
    letter-spacing: 0.06em;
    margin-bottom: 3px;
  }

  .timeline-text {
    font-size: 14.5px;
    color: var(--gray-600);
    line-height: 1.55;
  }

  /* ─── WHAT WE TEST ──────────────────────────────── */
  #services {
    background: var(--off-white);
  }

  .services-header {
    max-width: 1200px; margin: 0 auto 60px;
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 40px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px; margin: 0 auto;
  }

  .service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: default;
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-teal);
    opacity: 0;
    transition: opacity 0.25s;
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }

  .service-card:hover::before { opacity: 1; }

  .service-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(62,198,198,0.1), rgba(42,125,225,0.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
  }

  .service-title {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--gray-800);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
  }

  .service-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
  }

  /* ─── TESTIMONIALS ──────────────────────────────── */
  #testimonials {
    background: var(--white);
  }

  .testimonials-header {
    text-align: center;
    max-width: 1200px; margin: 0 auto 64px;
    display: flex; flex-direction: column; align-items: center;
  }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px; margin: 0 auto;
  }

  .testimonial-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
  }

  .testimonial-card::after {
    content: '"';
    position: absolute;
    right: 24px; top: 12px;
    font-family: 'DM Serif Display', serif;
    font-size: 80px;
    color: var(--gray-200);
    line-height: 1;
  }

  .testimonial-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 28px;
    font-style: italic;
    position: relative; z-index: 1;
  }

  .testimonial-meta {
    display: flex; align-items: center; gap: 14px;
  }

  .testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--gradient-teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
  }

  .testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
  }

  .testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }

  .testimonial-metrics {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex; gap: 20px;
  }

  .metric-item { text-align: left; }

  .metric-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 1px;
  }

  .metric-key {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
  }

  /* ─── PARTICIPATE / CTA ─────────────────────────── */
  #participate {
    background: var(--gray-800);
    position: relative;
    overflow: hidden;
  }

  #participate::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(62,198,198,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(42,125,225,0.12) 0%, transparent 50%);
    pointer-events: none;
  }

  .participate-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    position: relative; z-index: 1;
  }

  .participate-content .section-title { color: white; max-width: 480px; }
  .participate-content .section-sub { color: var(--gray-400); }
  .participate-content .section-label { color: var(--teal-light); }

  .participate-checklist {
    list-style: none;
    margin-bottom: 44px;
  }

  .participate-checklist li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px;
    color: var(--gray-400);
    margin-bottom: 14px;
    line-height: 1.5;
  }

  .check-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(62,198,198,0.2);
    border: 1px solid rgba(62,198,198,0.4);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11px;
    color: var(--teal-light);
  }

  /* ─── INTAKE FORM ───────────────────────────────── */
  .intake-form-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
  }

  .form-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: white;
    margin-bottom: 6px;
  }

  .form-subtitle {
    font-size: 13.5px;
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.55;
  }

  .form-group { margin-bottom: 18px; }

  .form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
  }

  .form-input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    color: white;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
  }

  .form-input::placeholder { color: rgba(255,255,255,0.25); }

  .form-input:focus {
    border-color: rgba(62,198,198,0.50);
    background: rgba(255,255,255,0.10);
  }

  .form-select {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    color: rgba(255,255,255,0.6);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
  }

  .form-select option { background: #1e3040; color: white; }

  .form-select:focus { border-color: rgba(62,198,198,0.50); }

  .form-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 20px;
  }

  .form-check input {
    margin-top: 3px; flex-shrink: 0;
    accent-color: var(--teal);
  }

  .form-check-label {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.55;
  }

  .form-check-label a {
    color: rgba(62,198,198,0.6);
    text-decoration: none;
  }

  .form-submit {
    width: 100%;
    background: var(--gradient-teal);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 22px;
    box-shadow: 0 6px 24px rgba(62,198,198,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.01em;
  }

  .form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(62,198,198,0.35);
  }

  /* ─── CAREERS ────────────────────────────────────── */
  #careers {
    background: var(--off-white);
  }

  .careers-inner {
    max-width: 1200px; margin: 0 auto;
  }

  .careers-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 48px; gap: 40px;
  }

  .careers-list { display: flex; flex-direction: column; gap: 16px; }

  .career-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .career-item:hover {
    border-color: rgba(62,198,198,0.30);
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
  }

  .career-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
  }

  .career-dept {
    font-size: 13px;
    color: var(--text-muted);
  }

  .career-tags {
    display: flex; gap: 8px; margin-top: 10px;
  }

  .career-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 500;
  }

  .tag-type { background: rgba(62,198,198,0.10); color: var(--teal-dark); }
  .tag-loc { background: rgba(42,125,225,0.08); color: var(--blue); }
  .tag-clearance {
    background: rgba(255,140,60,0.10);
    color: #c05a20;
  }

  .career-arrow {
    color: var(--gray-400);
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
  }

  .career-item:hover .career-arrow {
    transform: translateX(4px);
    color: var(--teal-dark);
  }

  /* ─── LEGAL ──────────────────────────────────────── */
  #legal {
    background: var(--white);
    padding-top: 80px;
  }

  .legal-inner {
    max-width: 1200px; margin: 0 auto;
  }

  .legal-grid {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: flex-start;
  }

  .legal-nav {
    position: sticky; top: 96px;
    list-style: none;
  }

  .legal-nav-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-nav-item a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 8px;
  }

  .legal-nav-item a:hover { color: var(--teal-dark); }
  .legal-nav-item.active a { color: var(--teal-dark); font-weight: 600; }

  .legal-doc {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
  }

  .legal-doc-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 32px;
  }

  .legal-doc-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--gray-800);
    margin-bottom: 8px;
  }

  .legal-doc-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex; gap: 20px;
  }

  .legal-doc-meta span { display: flex; align-items: center; gap: 5px; }

  .legal-section { margin-bottom: 32px; }

  .legal-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-800);
    margin-bottom: 12px;
  }

  .legal-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .legal-highlight {
    background: rgba(62,198,198,0.06);
    border-left: 3px solid var(--teal);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 16px 0;
    font-style: italic;
  }

  /* ─── FOOTER ─────────────────────────────────────── */
  footer {
    background: var(--gray-800);
    padding: 60px 48px 32px;
  }

  .footer-inner {
    max-width: 1200px; margin: 0 auto;
  }

  .footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 32px;
  }

  .footer-brand .logo-text { color: white; }
  .footer-tagline {
    font-size: 13.5px;
    color: var(--gray-400);
    margin: 16px 0 24px;
    line-height: 1.65;
    max-width: 280px;
  }

  .footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
  }

  .footer-links { list-style: none; }

  .footer-links li { margin-bottom: 10px; }

  .footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: rgba(255,255,255,0.80); }

  .footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
  }

  .footer-legal {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    line-height: 1.6;
  }

  /* hidden for detectives */
  .footer-fine-print {
    font-size: 9px;
    color: rgba(255,255,255,0.08);
    margin-top: 8px;
    line-height: 1.8;
  }

  .footer-fine-print a {
    color: rgba(255,255,255,0.08);
    text-decoration: none;
  }

  /* ─── ACTIVE PAGE HIGHLIGHT ──────────────────────── */
  .nav-links a.active { color: var(--teal-dark); }

  /* ─── CLEARANCE MODAL ───────────────────────────── */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,16,22,0.82);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 44px 48px 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22);
    animation: modalIn 0.22s ease;
  }
  @keyframes modalIn {
    from { opacity:0; transform:translateY(12px) scale(0.98); }
    to   { opacity:1; transform:translateY(0) scale(1); }
  }
  .modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    font-size: 22px; color: #aaa;
    cursor: pointer; line-height: 1;
    padding: 4px 8px;
    transition: color 0.15s;
  }
  .modal-close:hover { color: #333; }
  .modal-eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-dark);
    font-weight: 600;
    margin-bottom: 10px;
  }
  .modal-title {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .modal-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }
  .modal-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
  }
  .modal-field-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: block;
  }
  .modal-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
  }
  .modal-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(62,198,198,0.13);
  }
  .modal-input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
  }
  .modal-error {
    display: none;
    font-size: 12px;
    color: #c0392b;
    background: rgba(192,57,43,0.07);
    border: 1px solid rgba(192,57,43,0.18);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    letter-spacing: 0.3px;
  }
  .modal-submit {
    width: 100%;
    background: var(--gray-800);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
  }
  .modal-submit:hover { background: #162534; }
  .modal-fine {
    font-size: 10px;
    color: #ccc;
    text-align: center;
    margin-top: 16px;
    line-height: 1.7;
  }

  /* ─── SMOOTH SCROLL TARGET OFFSET ───────────────── */
  [id] { scroll-margin-top: 80px; }

  /* ─── SUCCESS STATE ──────────────────────────────── */
  .form-success {
    display: none;
    text-align: center;
    padding: 32px;
  }

  .form-success.visible { display: block; }

  .success-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(62,198,198,0.15);
    border: 2px solid rgba(62,198,198,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
  }

  .success-title {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
  }

  .success-sub { font-size: 14px; color: var(--gray-400); line-height: 1.6; }

  .candidate-number {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: rgba(62,198,198,0.10);
    border: 1px solid rgba(62,198,198,0.25);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-light);
    letter-spacing: 0.1em;
  }

  /* ─── RESPONSIVE ─────────────────────────────────── */
  @media (max-width: 900px) {
    nav { padding: 0 24px; }
    section { padding: 72px 24px; }
    .about-grid, .participate-inner { grid-template-columns: 1fr; gap: 48px; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .legal-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 32px; }
    .nav-links { display: none; }
    .careers-header { flex-direction: column; align-items: flex-start; }
    .services-header { flex-direction: column; }
  }

  /* ─── CANDIDATE PORTAL ─────────────────────────────── */
  #portal {
    background: var(--gray-800);
    padding: 100px 48px;
  }
  .portal-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }
  .portal-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
    font-weight: 500;
  }
  .portal-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 38px);
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
  }
  .portal-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .portal-input-wrap {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    margin-bottom: 14px;
  }
  .portal-input-wrap:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(62,198,198,0.12);
  }
  #portal-code-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 15px;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
  }
  #portal-code-input::placeholder {
    color: rgba(255,255,255,0.2);
    letter-spacing: 1px;
    font-family: var(--sans);
    font-size: 14px;
  }
  #portal-submit-btn {
    background: var(--teal);
    border: none;
    padding: 16px 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
  }
  #portal-submit-btn:hover { background: var(--teal-dark); }
  #portal-error {
    display: none;
    font-size: 12px;
    color: #e05555;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: rgba(220,80,80,0.08);
    border: 1px solid rgba(220,80,80,0.2);
    border-radius: 6px;
  }
  #portal-success {
    display: none;
    font-size: 13px;
    color: var(--teal);
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(62,198,198,0.08);
    border: 1px solid rgba(62,198,198,0.2);
    border-radius: 6px;
    line-height: 1.7;
  }
  .portal-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.15);
    letter-spacing: 0.5px;
    margin-top: 20px;
    line-height: 1.7;
  }

  /* ─── STORE ─────────────────────────────────────── */
  #store {
    padding: 120px 48px;
    background: var(--off-white);
  }

  .store-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .store-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 64px;
  }

  .store-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
  }

  .product-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }

  .product-image {
    margin-bottom: 24px;
  }

  .product-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
  }

  /* Make product-info fill the remaining space so price+CTA can sit at the
     bottom, keeping alignment consistent across cards with different
     description lengths. */
  .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .product-title {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .product-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    /* Push everything below (price + CTA) to the bottom of the card */
    flex: 1;
  }

  .product-price {
    font-weight: 600;
    font-size: 20px;
    color: var(--teal);
    margin-bottom: 20px;
  }

  .product-cta {
    width: 100%;
    padding: 12px 24px;
    background: var(--gradient-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
  }

  .product-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62,198,198,0.3);
  }

  .store-notice {
    text-align: center;
    padding: 24px;
    background: rgba(62,198,198,0.06);
    border-radius: 12px;
    border: 1px solid rgba(62,198,198,0.15);
  }

  .store-notice p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* Store Modal */
  .store-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .store-modal.show {
    display: flex;
  }

  .store-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
  }

  .store-modal h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text);
  }

  .store-modal p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .store-modal button {
    padding: 12px 24px;
    background: var(--gradient-teal);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
  }

  @media (max-width: 768px) {
    #store {
      padding: 80px 24px;
    }

    .store-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
      text-align: left;
    }

    .store-products {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .product-card {
      padding: 24px;
    }
  }

  /* ─── NDA DOWNLOAD SECTION ──────────────────────────── */
  .nda-download-section {
    padding: 40px 0;
  }

  .download-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }

  .download-info h3 {
    color: var(--text);
    font-size: 24px;
    margin-bottom: 16px;
  }

  .download-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .download-requirements {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
  }

  .download-requirements h4 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 16px;
  }

  .download-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .download-requirements li {
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
  }

  .download-requirements li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 8px;
  }

  .download-actions {
    margin-top: 30px;
  }

  .download-btn {
    display: inline-block;
    background: var(--primary);
    color: black;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(62, 198, 198, 0.3);
  }

  .download-btn:hover {
    background: var(--primary-dark);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(62, 198, 198, 0.4);
  }
  /* ─── OUR WORK ───────────────────────────────── */
  /* Reuses #services patterns: .services-header, .services-grid, .service-card */
  /* Background tone differentiates it from the white #services section above */
  #our-work {
    background: var(--white);
  }

  /* ─── IN MEMORIAM ──────────────────────────────── */
  #in-memoriam {
    background: var(--gray-800);
    color: var(--gray-200);
    padding: 100px 48px;
  }

  .memoriam-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  #in-memoriam .section-label {
    color: var(--gray-400);
    letter-spacing: 0.14em;
  }

  #in-memoriam .section-title {
    color: var(--white);
    font-family: 'DM Serif Display', serif;
    margin-bottom: 24px;
  }

  #in-memoriam .section-sub {
    color: var(--gray-400);
    margin-bottom: 64px;
  }

  .memoriam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
  }

  .memoriam-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 28px;
    transition: background 0.25s, border-color 0.25s;
  }

  .memoriam-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.14);
  }

  .memoriam-year {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 14px;
  }

  .memoriam-name {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
  }

  .memoriam-affiliation {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 18px;
    font-style: italic;
  }

  .memoriam-body {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--gray-200);
  }

  .memoriam-footer-note {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 32px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-400);
    max-width: 760px;
  }

  .memoriam-footer-note .fine-text {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-600);
    letter-spacing: 0.02em;
  }

  .memoriam-footer-note a {
    color: var(--gray-400);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .memoriam-footer-note a:hover {
    color: var(--teal-light);
  }

  /* ─── NEWS & ANNOUNCEMENTS ───────────────────────── */
  #news {
    background: var(--off-white);
  }

  .news-feed {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .news-post {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 44px;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
  }

  .news-post::before {
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--gradient-teal);
    opacity: 0.6;
  }

  .news-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
  }

  .news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 14px;
  }

  .news-divider {
    color: var(--gray-400);
  }

  .news-category {
    color: var(--gray-600);
  }

  .news-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    line-height: 1.25;
    color: var(--gray-800);
    letter-spacing: -0.4px;
    margin-bottom: 22px;
  }

  .news-body {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 16px;
  }

  .news-body:last-of-type {
    margin-bottom: 18px;
  }

  .news-body strong {
    color: var(--gray-800);
    font-weight: 600;
  }

  .news-link {
    display: inline-block;
    color: var(--teal-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s;
  }

  .news-link:hover {
    color: var(--blue);
  }

  .news-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }

  .news-pagination {
    max-width: 880px;
    margin: 36px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
  }

  /* ─── RESPONSIVE: NEW SECTIONS ─────────────────── */
  @media (max-width: 900px) {
    .memoriam-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    #in-memoriam {
      padding: 72px 28px;
    }
    .news-post {
      padding: 32px 28px;
    }
    .news-title {
      font-size: 24px;
    }
  }

/* ───────── Real legal footer notices (distinct from in-canon Legal) ───────── */
.footer-site-notices {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.footer-site-notices a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  margin: 0 4px;
}
.footer-site-notices a:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}
