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

:root {
  --navy: #0f1e3d;
  --navy-mid: #1a3060;
  --blue: #2563eb;
  --blue-light: #4fa3e0;
  --ray: #a8d4f5;
  --off-white: #f4f7fb;
  --text: #1e293b;
  --muted: #64748b;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #dde4ef;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  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: 0 48px;
  height: 72px;
  background: rgba(15, 30, 61, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ray);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: 16px;
  cursor: pointer;
  z-index: 110;
}


.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bar:nth-child(1) {
  top: 14px;
}

.nav-toggle-bar:nth-child(2) {
  top: 21px;
}

.nav-toggle-bar:nth-child(3) {
  top: 28px;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ─── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse 120% 80% at 50% 40%, #16305c 0%, #0a1428 60%, #060d1c 100%);
  overflow: hidden;
}

.hero-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-rays img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: 100px;
}

.hero-latest {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  margin-bottom: 2em;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 212, 245, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-latest:hover {
  background: rgba(168, 212, 245, 0.08);
  border-color: rgba(168, 212, 245, 0.35);
}

.hero-latest-label {
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-block;
  padding: 3px 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
}

.hero-latest-text {
  min-width: 0;
  line-height: 1.45;
}

.hero-latest-link {
  color: var(--ray);
  font-weight: 600;
  white-space: nowrap;
}

.hero-latest-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
}

.hero-latest:hover .hero-latest-arrow {
  transform: translateX(3px);
}

@media (min-width: 769px) {
  .hero-latest {
    position: absolute;
    top: 88px;
    right: 48px;
    z-index: 3;
    margin-bottom: 2em;
    background: rgba(15, 30, 61, 0.55);
    backdrop-filter: blur(6px);
  }
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ray);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(168, 212, 245, 0.3);
  border-radius: 100px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--ray);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin: 0 auto 40px;
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-phrase {
  display: inline-block;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  padding: 12px 28px;
  border: 1px solid rgba(168, 212, 245, 0.3);
  border-radius: 100px;
  background: rgba(168, 212, 245, 0.06);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ─── SECTION SCAFFOLD ────────────────────────────────────────────── */
section {
  padding: 96px 24px;
}

section:not(.hero):nth-child(even) {
  background: var(--off-white);
}

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

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.75;
}

.section-body-wide {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 850px;
  line-height: 1.75;
}

.divider {
  width: 52px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ─── MISSION ─────────────────────────────────────────────────────── */
#mission .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-quote {
  border-left: 4px solid var(--blue);
  padding-left: 28px;
}

.mission-quote blockquote {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 16px;
}

.mission-quote cite {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: normal;
}

.mission-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--navy);
  color: var(--white);
  padding: 28px 24px;
  border-radius: 10px;
}

.stat-card .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ray);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-num.stat-num-long {
  font-size: 1.5rem;
  line-height: 1.15;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ─── TECHNOLOGY ──────────────────────────────────────────────────── */
#technology .tech-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.advantage-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.10);
  transform: translateY(-3px);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.advantage-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── APPLICATIONS ────────────────────────────────────────────────── */
.apps-grid {
  display: grid;
  /* Two columns so the four cards form a 2x2 block; collapses to a single
     column once there is no longer room for two 300px tracks. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  max-width: 900px;
  gap: 28px;
  margin-top: 48px;
}

@media (min-width: 769px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.app-card:hover {
  box-shadow: 0 12px 40px rgba(15, 30, 61, 0.10);
  transform: translateY(-4px);
}

.app-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.app-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.app-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── TEAM ────────────────────────────────────────────────────────── */
/* The team and coverage sections each contribute 96px of padding at this
   boundary; trim both sides so the publications list sits closer to the
   advisory cards. */
#team {
  background: var(--off-white);
  padding-bottom: 56px;
}

#coverage {
  padding-top: 56px;
}

.team-section-header {
  margin-top: 64px;
  margin-bottom: 36px;
}

.team-section-header:first-of-type {
  margin-top: 0;
}

.subsection-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.team-card:hover {
  box-shadow: 0 10px 36px rgba(15, 30, 61, 0.12);
  transform: translateY(-4px);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d0ddf0;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-info {
  padding: 20px 20px 22px;
}

.team-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.team-bio ul {
  list-style: none;
  padding: 0;
}

.team-bio ul li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 3px;
}

.team-bio ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ─── COVERAGE ────────────────────────────────────────────────────── */
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.65;
}

.coverage-list li {
  color: var(--text);
}

.coverage-list a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.coverage-list a:hover {
  color: var(--navy);
}

.coverage-list .meta {
  color: var(--muted);
}

.coverage-list+.team-section-header {
  margin-top: 64px;
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  height: 36px;
}

.footer-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-email {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--ray);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ray);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .nav-wordmark {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  #mission .inner,
  #technology .tech-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-latest {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .hero-latest-text {
    flex: 1;
  }

  .hero-latest-link {
    white-space: normal;
  }

  .hero-content {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .mission-stats {
    grid-template-columns: 1fr;
  }

  .nav-wordmark {
    display: none;
  }

  .nav-logo img {
    height: 40px;
  }
}
/* ─── PRECURSORS ──────────────────────────────────────────────────── */
#precursors {
  background: var(--off-white);
}

.precursor-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 48px;
}

.precursor-source {
  margin-top: 14px;
  font-size: 0.75rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}

.precursor-closer {
  margin-top: 40px;
  font-weight: 500;
  color: var(--navy);
}

/* ─── CONTACT ─────────────────────────────────────────────────────── */
#contact {
  background: var(--off-white);
  padding-top: 72px;
  padding-bottom: 72px;
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 44px;
  text-align: center;
}

.contact-panel .divider {
  margin-left: auto;
  margin-right: auto;
}

.contact-panel .section-body-wide {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.contact-panel .btn {
  margin-top: 32px;
}

@media (max-width: 480px) {
  .contact-panel {
    padding: 36px 24px;
  }
}

/* ─── LANDSCAPE (retained for index-with-animation.html) ──────────── */
.landscape-takeaway {
  margin-top: 40px;
  padding: 22px 28px;
  border-left: 3px solid var(--blue);
  background: var(--off-white);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.landscape-takeaway strong {
  color: var(--navy);
}

/* ─── NAV CONTACT BUTTON ──────────────────────────────────────────── */
.nav-links {
  align-items: center;
}

.nav-links a.nav-contact {
  background: var(--blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-links a.nav-contact:hover,
.nav-links a.nav-contact.is-active {
  background: #1d4ed8;
  color: var(--white);
}


/* ─── FEATURED VIDEO (homepage, directly under the hero) ──────────── */
/* Adding a section shifts the nth-child striping above, so the homepage
   sections get explicit backgrounds to keep their original colors. */
#watch {
  background: var(--off-white);
  padding-top: 72px;
  padding-bottom: 72px;
}

#mission,
#applications,
#coverage {
  background: var(--white);
}

#technology {
  background: var(--off-white);
}

.video-frame {
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(15, 30, 61, 0.22);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  #watch {
    padding: 40px 16px;
  }

  .video-frame {
    border-radius: 10px;
  }
}

/* ─── FAQ PAGE ────────────────────────────────────────────────────── */
.faq-hero {
  background: radial-gradient(ellipse 120% 80% at 50% 40%, #16305c 0%, #0a1428 60%, #060d1c 100%);
  padding: 152px 24px 80px;
  color: var(--white);
}

.faq-hero .section-label {
  color: var(--ray);
}

.faq-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.faq-hero p {
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
}

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  list-style: none;
}

.faq-jump a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(168, 212, 245, 0.3);
  border-radius: 100px;
  background: rgba(168, 212, 245, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.faq-jump a:hover {
  background: rgba(168, 212, 245, 0.14);
  border-color: rgba(168, 212, 245, 0.6);
  color: var(--white);
}

.faq-body {
  padding: 80px 24px 96px;
}

.faq-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.faq-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.faq-toggle-all {
  background: none;
  border: none;
  color: var(--blue);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-toggle-all:hover {
  text-decoration: underline;
}

.faq-group {
  margin-top: 96px;
  scroll-margin-top: 96px;
}

.faq-toolbar + .faq-group {
  margin-top: 0;
}

.faq-group-title {
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  scroll-margin-top: 96px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.faq-item:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.10);
}

.faq-item:not([open]):hover {
  transform: translateY(-3px);
}

.faq-item[open] {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 12px;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--off-white);
  transition: background 0.2s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--blue);
  transition: transform 0.2s, background 0.2s;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  background: var(--blue);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--white);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  margin: 0 32px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.faq-answer p + p,
.faq-answer p + ol,
.faq-answer ol + p {
  margin-top: 18px;
}

.faq-answer ol {
  padding-left: 22px;
}

.faq-answer li + li {
  margin-top: 12px;
}

.faq-answer strong {
  color: var(--navy);
}

.faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--navy);
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 112px 20px 56px;
  }

  .faq-body {
    padding: 48px 16px 64px;
  }

  .faq-item summary {
    padding: 18px 20px;
  }

  .faq-answer {
    margin: 0 20px;
  }
}


/* ─── PRIORITY MENU (see nav.js) ──────────────────────────────────── */
/* The whole bar switches to the menu button once every link no longer fits. */
.nav-logo {
  flex-shrink: 0;
}

.nav-links {
  margin-left: auto;
  white-space: nowrap;
}

.nav-toggle {
  order: 2;
}

nav.has-overflow .nav-toggle {
  display: block;
  animation: nav-toggle-in 0.3s ease;
}

@keyframes nav-toggle-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.nav-overflow {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 99;
  min-width: 240px;
  list-style: none;
  padding: 8px 0;
  background: rgba(15, 30, 61, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

body.nav-open .nav-overflow {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.nav-overflow a,
.nav-overflow a.nav-contact {
  display: block;
  padding: 12px 24px;
  background: none;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-overflow a:hover,
.nav-overflow a.is-active {
  color: var(--ray);
  background: rgba(255, 255, 255, 0.04);
}

.nav-overflow a.nav-contact {
  color: var(--ray);
  font-weight: 600;
}

/* The open menu panel doesn't animate mid-resize. */
body.is-resizing .nav-overflow,
body.is-resizing .nav-overflow * {
  transition: none !important;
}

/* All-or-nothing switch (see the menu script): links fade out together,
   then the menu button fades in; coming back, links fade in left to right. */
nav.is-collapsing .nav-links li {
  animation: nav-item-out 0.16s ease forwards;
}

nav.is-expanding .nav-links li {
  animation: nav-item-in 0.3s ease both;
}

nav.is-expanding .nav-links li:nth-child(2) { animation-delay: 0.03s; }
nav.is-expanding .nav-links li:nth-child(3) { animation-delay: 0.06s; }
nav.is-expanding .nav-links li:nth-child(4) { animation-delay: 0.09s; }
nav.is-expanding .nav-links li:nth-child(5) { animation-delay: 0.12s; }
nav.is-expanding .nav-links li:nth-child(6) { animation-delay: 0.15s; }
nav.is-expanding .nav-links li:nth-child(7) { animation-delay: 0.18s; }
nav.is-expanding .nav-links li:nth-child(8) { animation-delay: 0.21s; }

@keyframes nav-item-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  nav.is-collapsing .nav-links li,
  nav.is-expanding .nav-links li,
  nav.has-overflow .nav-toggle {
    animation: none;
  }
}

@media (max-width: 768px) {
  .nav-overflow {
    top: 72px;
    left: 0;
    right: 0;
    min-width: 0;
    border-radius: 0;
    border-width: 1px 0 0;
  }

  .nav-overflow a,
  .nav-overflow a.nav-contact {
    padding: 16px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* ─── MOBILE FIXES ────────────────────────────────────────────────── */
/* Long email address in the contact button: wrap after the "@" instead of
   running out of the panel (the script inserts a break point there). */
.contact-panel .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Footer links wrap onto a second line instead of running off the screen. */
.footer-links {
  flex-wrap: wrap;
  row-gap: 12px;
}

@media (max-width: 768px) {
  /* Solid menu panel on phones, so the page doesn't show through. */
  .nav-overflow {
    background: var(--navy);
    backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .contact-panel .btn {
    padding: 14px 22px;
    font-size: 0.85rem;
  }
}
