  :root {
    --black: #0a0a0a;
    --dark: #111111;
    --card: #161616;
    --border: #252525;
    --gold: #00CED1;
    --gold-light: #33DEDF;
    --white: #f5f0e8;
    --muted: #888880;
    --accent: #00CED1;
  }

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

  html { /* scroll-behavior: smooth — handled by JS */ }

  body {
    background: var(--black);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4rem;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
  }

  .nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    color: var(--white);
    text-decoration: none;
  }

  .nav-logo span { color: var(--gold); }

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

  .nav-links a {
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  /* font-size/weight/letter-spacing/color for nav links live in the
     "NAV MENU FINAL OVERRIDE" block in responsive.css - single source of truth */

  .nav-cta {
    background: var(--gold) !important;
    color: var(--black) !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
    transition: background 0.2s !important;
  }

  .nav-cta:hover { background: var(--gold-light) !important; }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
  }

  
  /* ===== DAN MARTELL INSPIRED NAV ===== */
  .nav-links li {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(12,12,12,0.98);
    border: 1px solid rgba(0,206,209,0.15);
    border-radius: 10px;
    padding: 1rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
  }

  .dropdown-chevron {
    transition: transform 0.25s ease;
  }

  .dropdown:hover .dropdown-chevron,
  .dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
  }

  .dropdown-menu li {
    width: 100%;
  }

  .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.4rem;
    color: #d5d5d5;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  .dropdown-menu a:hover {
    background: rgba(0,206,209,0.08);
    color: var(--white);
  }

  .floating-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(10,10,10,0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,206,209,0.2);
    border-radius: 16px;
    padding: 1.5rem;
  }

  .gallery-intro {
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    max-width: 640px;
  }

  .gallery-intro h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    color: var(--white);
  }

  .gallery-intro p {
    color: #d5d5d5;
    margin-top: 0.6rem;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.85rem;
  }

  /* All four gallery photos share a uniform, premium grid ratio.
     Slightly taller than the original 1600/626 crop so every photo keeps
     full headroom (no heads clipped) while still reading as a wide, premium frame. */
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: none;
    aspect-ratio: 1600 / 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, z-index 0s;
    z-index: 1;
    cursor: pointer;
  }

  .gallery-item:hover,
  .gallery-item:focus,
  .gallery-item:focus-within {
    transform: scale(1.06);
    box-shadow: 0 22px 46px rgba(0,0,0,0.42);
    z-index: 5;
  }

  .gallery-item:focus-visible {
    box-shadow: 0 22px 46px rgba(0,0,0,0.42), 0 0 0 2px var(--gold);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }

  /* Keep both the presenter and the ICAI logo in frame in this wide crop */
  .gallery-grid .gallery-item:first-child img {
    object-position: center 42%;
  }

  .gallery-grid .gallery-item:nth-child(2) img {
    object-position: center 48%;
  }

  /* Shifted up so heads aren't clipped by the top edge at the new aspect ratio */
  .gallery-grid .gallery-item:nth-child(3) img {
    object-position: center 20%;
  }

  /* Shifted down so the presenter's full face (forehead to chin) is in frame
     instead of being cut off at the mouth */
  .gallery-grid .gallery-item:nth-child(4) img {
    object-position: center 80%;
  }

  .program-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,206,209,0.03));
  }

  .pillar-card,
  .why-card,
  .milestone-card,
  .hero-card {
    backdrop-filter: blur(10px);
  }


  
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 2rem;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links > li > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
