@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #0a1628;
  --deep-teal: #0d2b3e;
  --teal: #0e7c7b;
  --bright-teal: #17bebb;
  --mint: #a4f9c8;
  --white: #f0f4f8;
  --light-gray: #c8d6e5;
  --accent: #17bebb;
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d2b3e 40%, #0e4c5c 100%);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ─── BACKGROUND TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14,124,123,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(23,190,187,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(164,249,200,0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(23, 190, 187, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.8rem 3rem;
  background: rgba(10, 22, 40, 0.95);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.header-logo svg {
  height: 40px;
  width: auto;
}

.header-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

/* Image logo on a light chip so the wordmark reads on the dark header */
.brand-logo {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 7px 14px;
  border-radius: 10px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.brand-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.header-logo.brand-logo:hover {
  box-shadow: 0 6px 20px rgba(23, 190, 187, 0.25);
  transform: translateY(-1px);
}

header.scrolled .brand-logo img {
  height: 30px;
}

footer .brand-logo {
  padding: 6px 12px;
  border-radius: 8px;
}

footer .brand-logo img {
  height: 28px;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

nav > a,
.nav-dropdown > .nav-trigger {
  color: var(--light-gray);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

nav > a::after,
.nav-trigger::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.75rem; right: 0.75rem;
  height: 2px;
  background: var(--bright-teal);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav > a:hover,
nav > a.active,
.nav-trigger:hover,
.nav-dropdown:hover > .nav-trigger,
.nav-dropdown.active > .nav-trigger {
  color: var(--bright-teal);
}

nav > a:hover::after,
nav > a.active::after,
.nav-dropdown:hover > .nav-trigger::after,
.nav-dropdown.active > .nav-trigger::after {
  transform: scaleX(1);
}

.nav-trigger .chevron {
  width: 10px; height: 10px;
  transition: transform 0.3s ease;
}

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

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(23, 190, 187, 0.15);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  color: var(--light-gray);
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(23, 190, 187, 0.08);
  color: var(--bright-teal);
}

.nav-dropdown-menu a .menu-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 190, 187, 0.08);
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-dropdown-menu a .menu-icon svg {
  width: 16px; height: 16px;
  stroke: var(--bright-teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-dropdown-menu a:hover .menu-icon {
  background: rgba(23, 190, 187, 0.15);
}

.nav-dropdown-menu .divider {
  height: 1px;
  background: rgba(23, 190, 187, 0.08);
  margin: 0.35rem 0.5rem;
}

nav .cta-btn {
  background: var(--bright-teal);
  color: var(--navy);
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

nav .cta-btn::after { display: none; }

nav .cta-btn:hover {
  background: var(--mint);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(23, 190, 187, 0.3);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-bg-dna {
  position: absolute;
  top: 0; right: -5%;
  width: 50%;
  height: 100%;
  opacity: 0.06;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(23,190,187,0.3) 30px, rgba(23,190,187,0.3) 31px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(164,249,200,0.2) 30px, rgba(164,249,200,0.2) 31px);
  animation: dna-shift 20s linear infinite;
}

@keyframes dna-shift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-60px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(23, 190, 187, 0.1);
  border: 1px solid rgba(23, 190, 187, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bright-teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--bright-teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--bright-teal);
}

.hero p {
  font-size: 1.15rem;
  color: var(--light-gray);
  max-width: 540px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bright-teal);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(23, 190, 187, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(240, 244, 248, 0.2);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--bright-teal);
  color: var(--bright-teal);
  transform: translateY(-2px);
}

/* ─── SECTIONS ─── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bright-teal);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--bright-teal);
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--light-gray);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ─── CARD GRID ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(13, 43, 62, 0.5);
  border: 1px solid rgba(23, 190, 187, 0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--bright-teal), var(--mint));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 190, 187, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 190, 187, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: var(--bright-teal);
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--light-gray);
  font-size: 0.95rem;
}

/* ─── STATS BAR ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  color: var(--bright-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--light-gray);
  letter-spacing: 0.5px;
}

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center;
  padding: 5rem 3rem;
  background: linear-gradient(180deg, transparent, rgba(14, 124, 123, 0.08), transparent);
}

.cta-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--light-gray);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ─── ABOUT PAGE ─── */
.page-hero {
  padding: 10rem 3rem 5rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--light-gray);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  color: var(--light-gray);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-content p:first-of-type::first-letter {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  float: left;
  margin-right: 0.5rem;
  line-height: 1;
  color: var(--bright-teal);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-item {
  padding: 2rem;
  background: rgba(13, 43, 62, 0.4);
  border-left: 3px solid var(--bright-teal);
  border-radius: 0 12px 12px 0;
}

.value-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--light-gray);
  font-size: 0.93rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: var(--bright-teal);
  border: 2px solid rgba(23, 190, 187, 0.2);
}

.team-member h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  color: var(--light-gray);
  font-size: 0.85rem;
}

/* ─── LEADERSHIP (photo + bio) ─── */
.leader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.leader-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: rgba(13, 43, 62, 0.5);
  border: 1px solid rgba(23, 190, 187, 0.12);
  border-radius: 18px;
  padding: 2.25rem;
  transition: all 0.4s ease;
}

.leader-card:hover {
  border-color: rgba(23, 190, 187, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.leader-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(23, 190, 187, 0.2);
  background: var(--deep-teal);
}

.leader-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.leader-role {
  color: var(--bright-teal);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.leader-info p {
  color: var(--light-gray);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.leader-info p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .leader-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }
  .leader-photo {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ─── CONTACT PAGE ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--light-gray);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 190, 187, 0.1);
  border-radius: 10px;
  color: var(--bright-teal);
}

.contact-detail h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 0;
}

.contact-form {
  background: rgba(13, 43, 62, 0.5);
  border: 1px solid rgba(23, 190, 187, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--light-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(23, 190, 187, 0.15);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--bright-teal);
  box-shadow: 0 0 0 3px rgba(23, 190, 187, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--bright-teal);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(23, 190, 187, 0.25);
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(23, 190, 187, 0.1);
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand p {
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bright-teal);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  color: var(--light-gray);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--bright-teal);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(240, 244, 248, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(200, 214, 229, 0.5);
}

.footer-bottom a {
  color: rgba(200, 214, 229, 0.5);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--bright-teal);
}

/* ─── MOLECULAR DECORATION ─── */
.molecule-float {
  position: absolute;
  border-radius: 50%;
  background: rgba(23, 190, 187, 0.06);
  border: 1px solid rgba(23, 190, 187, 0.08);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ─── DIVIDER ─── */
.section-divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 190, 187, 0.2), transparent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  header { padding: 1rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  section { padding: 4rem 1.5rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Show hamburger, turn nav into a slide-in panel */
  .menu-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    /* Explicit height (not bottom:0) because the blurred header is the
       containing block for this fixed panel and would otherwise clamp it. */
    height: 100vh;
    height: 100dvh;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 5.5rem 1.4rem 2rem;
    background: var(--navy);
    border-left: 1px solid rgba(23, 190, 187, 0.15);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1050;
  }

  nav.open { transform: translateX(0); }

  nav > a,
  .nav-dropdown { width: 100%; }

  nav > a,
  .nav-dropdown > .nav-trigger {
    width: 100%;
    padding: 0.85rem 0.6rem;
    font-size: 1rem;
    justify-content: space-between;
    border-radius: 8px;
  }

  nav > a::after,
  .nav-trigger::after { display: none; }

  /* Dropdowns become static, tap-to-expand accordions */
  .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    width: 100%;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 0 0.4rem 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu { max-height: 620px; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown:hover .chevron { transform: none; }
  .nav-dropdown.open .chevron { transform: rotate(180deg); }

  nav .cta-btn {
    margin-left: 0;
    margin-top: 0.6rem;
    text-align: center;
    padding: 0.85rem 1.3rem;
    font-size: 0.95rem;
  }

  /* Dim backdrop behind the open panel */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 22, 0.55);
    z-index: 1040;
  }
}

/* ─── ARTICLE / PROSE ─── */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: var(--bright-teal);
  margin: 2rem 0 0.75rem;
}

.prose p {
  color: var(--light-gray);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}

.prose ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.prose ul li {
  position: relative;
  color: var(--light-gray);
  font-size: 1.02rem;
  padding: 0.35rem 0 0.35rem 1.6rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bright-teal);
}

.prose .lead {
  font-size: 1.2rem;
  color: var(--white);
  border-left: 3px solid var(--bright-teal);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.prose .source {
  font-size: 0.85rem;
  color: rgba(200, 214, 229, 0.5);
  font-style: italic;
  margin-top: 2.5rem;
}

.callout {
  background: rgba(13, 43, 62, 0.5);
  border: 1px solid rgba(23, 190, 187, 0.15);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
}

.callout h3 {
  margin-top: 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Related topics */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.related-card {
  display: block;
  background: rgba(13, 43, 62, 0.4);
  border: 1px solid rgba(23, 190, 187, 0.12);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 190, 187, 0.3);
  background: rgba(13, 43, 62, 0.65);
}

.related-card span {
  display: block;
  color: var(--light-gray);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* JPG acronym callout */
.jpg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.jpg-item {
  background: rgba(13, 43, 62, 0.4);
  border: 1px solid rgba(23, 190, 187, 0.12);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.jpg-item .jpg-letter {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--bright-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.jpg-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.jpg-item p {
  color: var(--light-gray);
  font-size: 0.93rem;
}

/* ─── LOGO PAGE ─── */
.logo-showcase {
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-option {
  background: rgba(13, 43, 62, 0.4);
  border: 1px solid rgba(23, 190, 187, 0.12);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.logo-dark, .logo-light {
  padding: 2rem 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dark {
  background: var(--navy);
}

.logo-light {
  background: #f0f4f8;
}

.logo-description h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.logo-description p {
  color: var(--light-gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.logo-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.logo-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(23, 190, 187, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--bright-teal);
}
