/* ==========================================================================
   COGNITRON — MAIN STYLESHEET
   Design reference: Cognitron_Website_Conference_Prototype.html
   Tokens sourced from TECHNICAL_HANDOFF.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color palette */
  --color-brand: #111df1;
  --color-brand-dark: #0d14b0;
  --color-near-black: #0c0c0c;
  --color-slate: #4a5361;
  --color-slate-light: #5a6472;
  --color-grey: #616161;
  --color-grey-light: #757575;
  --color-grey-dark: #424242;
  --color-line-grey: #d5dae1;
  --color-white: #ffffff;
  --color-cream: #fff8f1;
  --color-cream-light: #fffcf8;

  /* Pale blue tints — card fills, badges, subtle backgrounds */
  --color-tint-1: #f3f6ff;
  --color-tint-2: #e5e8ff;
  --color-tint-3: #e4eaf7;
  --color-tint-4: #e4e5fd;

  /* Distinct section-background tint — used for alternating section
     backgrounds (e.g. "How Cognitron supports you"). Visually close to
     but NOT the same as the eyebrow pill color (tint-3) — do not conflate. */
  --color-section-tint: #f4f6fb;

  /* Blue tints — decorative / secondary accents */
  --color-accent-1: #b0b5f0;
  --color-accent-2: #b9c0ff;
  --color-accent-3: #d8dcff;

  /* Typography */
  --font-display: 'Nohemi', sans-serif;
  --font-body: 'Neue Haas Unica', 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-content-width: 1600px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-slate);
  background-color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.24vw, 3.24rem);
  color: var(--color-near-black);
  line-height: 1.1;
}

.container {
  max-width: var(--max-content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  background-color: var(--color-tint-3);
  border-radius: 999px;
  padding: 0.375rem 0.9375rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary:hover {
  background-color: var(--color-brand-dark);
}

.btn-light {
  background-color: var(--color-white);
  color: var(--color-brand);
}

.btn-light:hover {
  background-color: var(--color-tint-1);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-brand);
  transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   3. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-line-grey);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.logo {
  display: block;
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  flex-wrap: wrap;
}

.nav-menu a {
  font-size: 1.24rem;
  font-weight: 400;
  color: var(--color-slate);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--color-brand);
}

.nav-menu a.btn-primary {
  color: var(--color-white);
  white-space: nowrap;
  flex: none;
}

.nav-menu a.btn-primary:hover {
  color: var(--color-white);
  background-color: var(--color-brand-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--color-near-black);
}

/* Mobile menu drawer — hidden by default, toggled via JS */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background-color: var(--color-white);
  padding: var(--space-lg) var(--space-md);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 200;
  box-shadow: -8px 0 24px rgba(12, 12, 12, 0.12);
}

.mobile-menu.is-open {
  display: block;
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  font-size: 1.125rem;
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-line-grey);
  color: var(--color-near-black);
}

.mobile-menu .btn-primary {
  display: inline-block;
  margin-top: var(--space-md);
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background: linear-gradient(135deg, #081A6E 0%, #0A1F8C 52%, #123AD0 100%);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  display: block;
  z-index: 0;
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 26%, rgba(0,0,0,1) 58%, rgba(0,0,0,1) 92%, rgba(0,0,0,0.72) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 26%, rgba(0,0,0,1) 58%, rgba(0,0,0,1) 92%, rgba(0,0,0,0.72) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3,12,72,1) 0%, rgba(5,18,92,0.99) 12%, rgba(9,29,124,0.96) 30%, rgba(12,38,158,0.78) 50%, rgba(18,58,208,0.42) 74%, rgba(47,90,255,0.14) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 90% at 88% 78%, rgba(60,120,255,0.26) 0%, rgba(30,70,210,0.12) 34%, rgba(8,26,110,0) 68%);
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-2xl);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.hero p {
  font-size: 1.125rem;
  max-width: 640px;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   5. "HOW COGNITRON SUPPORTS YOU"
   -------------------------------------------------------------------------- */
.supports-section {
  padding-block: var(--space-2xl);
  background-color: var(--color-section-tint);
}

.supports-section .section-heading {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}

.section-heading h2 {
  font-size: clamp(2rem, 3.24vw, 3.24rem);
  margin-top: var(--space-xs);
}

.media-text h2 {
  font-size: clamp(2rem, 3.24vw, 3.24rem);
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-sm);
  align-items: stretch;
}

.feature-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--color-line-grey);
  overflow: hidden;
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card-body {
  padding: var(--space-lg) var(--space-md);
}

.feature-card-body h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.feature-card-body p + p {
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   6. PLATFORM SECTION
   -------------------------------------------------------------------------- */
.platform-section {
  padding-block: var(--space-2xl);
  background-color: var(--color-white);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.platform-section .section-inner {
  max-width: 620px;
}

.platform-media img {
  width: 100%;
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  position: sticky;
  top: 96px;
}

.platform-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-md);
}

.platform-section p {
  margin-bottom: var(--space-sm);
}

.platform-callout {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line-grey);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   7. STATS BAND
   -------------------------------------------------------------------------- */
.stats-band {
  background-color: var(--color-near-black);
  color: var(--color-white);
  padding-block: var(--space-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-3);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   8. LEARN MORE
   -------------------------------------------------------------------------- */
.learn-more-section {
  padding-block: var(--space-2xl);
}

.learn-more-section .section-heading {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.info-card {
  background-color: var(--color-cream-light);
  border: 1px solid var(--color-line-grey);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  background-color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
}

.info-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
  transition: color 0.2s ease;
}

.info-card:hover h3 {
  color: var(--color-white);
}

.info-card p {
  margin-bottom: var(--space-md);
  transition: color 0.2s ease;
}

.info-card:hover p {
  color: var(--color-tint-4);
}

.info-card:hover .btn-link {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-near-black);
  color: var(--color-white);
  padding-block: var(--space-lg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-desc {
  max-width: 360px;
  color: var(--color-accent-3);
}

.footer-logo img {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-sm);
}

.footer-contact {
  margin-top: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

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

.footer-bottom {
  padding-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-grey-light);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   Breakpoints per handoff doc: 460, 600, 640, 720, 768, 900, 1000, 1180, 1360, 1600
   -------------------------------------------------------------------------- */

/* ≤1360px — tighten large spacing slightly */
@media (max-width: 1360px) {
  :root {
    --space-2xl: 7rem;
  }
}

/* ≤1180px — reduce section padding */
@media (max-width: 1180px) {
  :root {
    --space-xl: 4.5rem;
    --space-2xl: 6rem;
  }
}

/* ≤1000px — cards/features start to tighten gaps */
@media (max-width: 1000px) {
  .card-grid {
    gap: var(--space-sm);
  }
}

/* ≤900px — cards go single column (auto-fit handles feature-card-grid already) */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-media img {
    position: static;
  }
}

/* ≤768px — nav collapses to hamburger; key mobile threshold */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

/* ≤720px — hero and section spacing tighten further */
@media (max-width: 720px) {
  .hero {
    min-height: 520px;
  }

  .supports-section,
  .platform-section,
  .learn-more-section {
    padding-block: var(--space-xl);
  }
}

/* ≤640px — mono/eyebrow sizing, callout padding */
@media (max-width: 640px) {
  .platform-callout {
    padding: var(--space-sm);
  }
}

/* ≤600px — tighten gutter for small phones */
@media (max-width: 600px) {
  :root {
    --gutter: 1.25rem;
  }
}

/* ≤460px — smallest phones */
@media (max-width: 460px) {
  .logo {
    font-size: 1.125rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   11. SCROLL ENTRANCE ANIMATION STATES
   Elements with [data-animate] start hidden/offset, then transition to
   visible when index.js adds .is-visible via IntersectionObserver.
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preference: skip the hidden state entirely so
   content is visible immediately with no animation. */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   12. INNER PAGE HERO (Clinical, Research, About, etc.)
   Smaller than the homepage hero, plain image + gradient, CTA button.
   -------------------------------------------------------------------------- */
.inner-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-color: #0A1470;
  overflow: hidden;
}

.inner-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9,17,92,0.98) 0%, rgba(10,20,112,0.94) 24%, rgba(14,30,165,0.66) 58%, rgba(47,58,255,0.24) 100%);
}

.inner-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-2xl);
}

.inner-hero-compact {
  min-height: 0;
}

.inner-hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.inner-hero p {
  font-size: 1.15rem;
  color: var(--color-tint-4);
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   13. STATS BAND VARIANTS
   -------------------------------------------------------------------------- */
.stats-band.stats-compact {
  padding-block: var(--space-md);
}

.stats-band.stats-compact .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), max-content));
  justify-content: center;
}

.stats-band.stats-brand {
  background-color: var(--color-brand);
}

.stats-band.stats-brand .stat-label {
  color: var(--color-accent-3);
}

/* --------------------------------------------------------------------------
   14. TWO-COLUMN MEDIA SECTIONS (image + text, either order)
   -------------------------------------------------------------------------- */
.media-section {
  padding-block: var(--space-2xl);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  display: block;
}

.media-grid.media-media-first .media-text {
  order: 2;
}

/* --------------------------------------------------------------------------
   15. ICON CARDS (three-up cards with an icon, title, description)
   -------------------------------------------------------------------------- */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-sm);
}

.icon-card {
  background-color: var(--color-cream-light);
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 1px 3px rgba(12, 12, 12, 0.05);
}

.icon-card svg {
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: var(--space-sm);
  stroke: var(--color-brand);
}

.icon-card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   16. TAG CHIPS
   -------------------------------------------------------------------------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tag-chip {
  font-size: 1.125rem;
  color: var(--color-brand-dark);
  background-color: var(--color-tint-1);
  border: 1px solid var(--color-tint-2);
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
}

/* --------------------------------------------------------------------------
   17. NUMBERED ROWS (e.g. "Enhanced brain performance")
   -------------------------------------------------------------------------- */
.numbered-rows {
  display: flex;
  flex-direction: column;
}

.numbered-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: baseline;
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-line-grey);
}

.numbered-rows > .numbered-row:last-child {
  border-bottom: 1px solid var(--color-line-grey);
}

.numbered-row-label {
  flex: 0 1 280px;
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}

.numbered-row-index {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-brand);
}

.numbered-row-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-near-black);
}

.numbered-rows-accent .numbered-row-title {
  color: var(--color-brand);
}

.numbered-row p {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 70ch;
  color: var(--color-slate);
}

/* --------------------------------------------------------------------------
   18. TESTIMONIAL CAROUSEL
   -------------------------------------------------------------------------- */
.testimonial-section {
  background-color: #1017B9;
  padding-block: var(--space-2xl);
}

.testimonial-inner {
  max-width: 1000px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.375rem);
  line-height: 1.35;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  min-height: 4.05em;
  transition: opacity 0.5s ease;
}

.testimonial-name {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.375rem;
}

.testimonial-role {
  font-size: 1.125rem;
  color: var(--color-accent-1);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin-top: var(--space-lg);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  padding: 0;
}

.testimonial-dot.is-active {
  background-color: var(--color-white);
}

.testimonial-fading {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   19. CHECKLIST (checkmark + title + description rows)
   -------------------------------------------------------------------------- */
.checklist-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding-block: var(--space-sm);
  border-top: 1px solid var(--color-line-grey);
}

.checklist-item:first-child {
  border-top: none;
  padding-top: 0;
}

.checklist-check {
  flex: none;
  font-weight: 600;
  color: var(--color-brand);
  line-height: 1.4;
}

.checklist-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.375rem;
  color: var(--color-brand);
  margin-bottom: 0.375rem;
}

.checklist-item p {
  max-width: 52ch;
  color: var(--color-slate);
}

/* --------------------------------------------------------------------------
   20. DEPLOYMENTS / PARTNER STRIP
   -------------------------------------------------------------------------- */
.deployments-strip {
  background-color: var(--color-section-tint);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-line-grey);
}

.deployments-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.deployments-list span {
  font-family: var(--font-display);
  font-size: 1.29rem;
  color: var(--color-slate-light);
}

/* --------------------------------------------------------------------------
   21. ACCORDION (clinical effectiveness, FAQ)
   -------------------------------------------------------------------------- */
.accordion-item {
  border-top: 1px solid var(--color-line-grey);
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--color-line-grey);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-trigger-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.375rem;
  color: var(--color-near-black);
  transition: color 0.2s ease;
}

.accordion-item.is-open .accordion-trigger-title {
  color: var(--color-brand);
}

.accordion-trigger-icon {
  position: relative;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-brand);
}

.accordion-trigger-icon::before,
.accordion-trigger-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.25s ease;
}

.accordion-trigger-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-trigger-icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-item.is-open .accordion-trigger-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.accordion-panel {
  display: none;
  padding-bottom: 1.75rem;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.accordion-check-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 1.125rem;
}

.accordion-check-row .checklist-check {
  font-size: 1.0625rem;
}

.accordion-check-title {
  font-weight: 400;
  font-size: 1.1875rem;
  color: var(--color-brand);
  margin-bottom: 0.375rem;
}

.accordion-check-row p {
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-slate);
  max-width: 52ch;
}

.accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.accordion-media img {
  position: sticky;
  top: 96px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   22. GETTING STARTED / NUMBERED STEP CARDS
   -------------------------------------------------------------------------- */
.step-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--space-sm);
}

.step-card {
  background-color: var(--color-cream-light);
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 1px 3px rgba(12, 12, 12, 0.05);
}

.step-card-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.cta-center {
  display: block;
  width: max-content;
  margin: var(--space-lg) auto 0;
}

/* Responsive: two-column sections collapse on smaller screens */
@media (max-width: 900px) {
  .media-grid,
  .accordion-grid {
    grid-template-columns: 1fr;
  }

  .media-grid.media-media-first .media-text {
    order: 0;
  }

  .accordion-media img {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   23. SIMPLE CHECKLIST (checkmark + single line, no title/desc split)
   -------------------------------------------------------------------------- */
.check-simple-list {
  display: flex;
  flex-direction: column;
}

.check-simple-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding-block: 1.375rem;
  border-top: 1px solid var(--color-line-grey);
  color: var(--color-brand);
  font-size: 1.125rem;
}

.check-simple-item:last-child {
  border-bottom: 1px solid var(--color-line-grey);
}

.check-simple-item .checklist-check {
  color: var(--color-brand);
}

/* --------------------------------------------------------------------------
   24. STATIC TESTIMONIAL CARDS (Research partners — not a carousel)
   -------------------------------------------------------------------------- */
.testimonial-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  background-color: var(--color-cream-light);
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  padding: var(--space-lg);
  box-shadow: 0 1px 3px rgba(12, 12, 12, 0.05);
  display: flex;
  flex-direction: column;
}

.testimonial-card p {
  font-weight: 300;
  font-size: 1.1875rem;
  color: var(--color-near-black);
  max-width: 46ch;
  margin-bottom: var(--space-md);
}

.testimonial-card-attribution {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line-grey);
}

.testimonial-card-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-near-black);
  margin-bottom: 0.375rem;
}

.testimonial-card-role {
  font-size: 0.97rem;
  color: var(--color-slate-light);
}

/* --------------------------------------------------------------------------
   25. INSET CTA BAND (image-backed, rounded box CTA within a section)
   -------------------------------------------------------------------------- */
.inset-cta {
  position: relative;
  overflow: hidden;
  max-width: 1360px;
  margin-inline: auto;
  background-color: #0A1180;
  border-radius: 14px;
  padding: var(--space-lg) var(--gutter);
}

.inset-cta img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: screen;
  mask-image: radial-gradient(120% 120% at 100% 100%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 28%, rgba(0,0,0,0.35) 58%, rgba(0,0,0,0) 82%);
}

.inset-cta-content {
  position: relative;
  z-index: 1;
}

.inset-cta h2 {
  color: var(--color-white);
  font-size: clamp(1.625rem, 2.2vw, 2.125rem);
  margin-bottom: var(--space-sm);
  max-width: 28ch;
}

.inset-cta p {
  color: var(--color-accent-3);
  max-width: 64ch;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   26. PUBLICATIONS LIST
   -------------------------------------------------------------------------- */
.publications-list {
  max-width: 1180px;
}

.publication-item {
  padding-block: 1.625rem;
  border-top: 1px solid var(--color-line-grey);
}

.publication-title {
  font-size: 1.25rem;
  color: var(--color-near-black);
  margin-bottom: 0.5rem;
}

.publication-byline {
  font-size: 1.08rem;
  color: var(--color-slate-light);
}

.publication-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-brand);
  margin-top: 0.375rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.publications-more {
  display: none;
}

.publications-more.is-visible {
  display: block;
}

.publications-toggle-row {
  border-top: 1px solid var(--color-line-grey);
  padding-top: var(--space-md);
}

.publications-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--color-brand);
  border-bottom: 1.5px solid var(--color-brand);
  padding-bottom: 3px;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

/* --------------------------------------------------------------------------
   27. GRADIENT CTA BAND (closing section)
   -------------------------------------------------------------------------- */
.gradient-cta {
  background: linear-gradient(135deg, #0C0C0C 0%, var(--color-brand) 48%, #2F3AFF 100%);
  padding-block: var(--space-2xl);
}

.gradient-cta h2 {
  font-size: clamp(2rem, 3.24vw, 3.24rem);
  color: var(--color-white);
  max-width: 26ch;
  margin-bottom: var(--space-md);
}

.gradient-cta-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.gradient-cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 1.5px solid var(--color-white);
  padding-bottom: 3px;
}

/* --------------------------------------------------------------------------
   28. TEAM ROWS
   -------------------------------------------------------------------------- */
.team-list {
  display: flex;
  flex-direction: column;
  max-width: 1180px;
}

.team-row {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  flex-wrap: wrap;
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-line-grey);
}

.team-headshot {
  flex: none;
  width: clamp(140px, 15vw, 200px);
  aspect-ratio: 4 / 5;
  background-color: var(--color-cream);
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-slate-light);
  letter-spacing: 0.04em;
}

.team-bio {
  flex: 1 1 420px;
  min-width: 0;
}

.team-name {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06px;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.team-bio p {
  max-width: 78ch;
  color: var(--color-slate);
}

/* --------------------------------------------------------------------------
   29. MEDIA MENTION ROWS
   -------------------------------------------------------------------------- */
.media-mentions-list {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
}

.media-mention-row {
  display: flex;
  gap: 1.75rem;
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-line-grey);
  align-items: flex-start;
  flex-wrap: wrap;
}

.media-mention-row:last-child {
  border-bottom: 1px solid var(--color-line-grey);
}

.media-mention-logo {
  flex: none;
  width: clamp(96px, 11vw, 140px);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-mention-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.media-mention-body {
  flex: 1 1 320px;
  min-width: 0;
}

.media-mention-title {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.media-mention-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06px;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.media-mention-body p {
  max-width: 70ch;
  color: var(--color-slate);
}

/* --------------------------------------------------------------------------
   30. INSET GRADIENT CTA (military section — rounded box, gradient bg, image)
   -------------------------------------------------------------------------- */
.inset-gradient-cta {
  max-width: 1360px;
  margin-inline: auto;
  background: linear-gradient(135deg, #0A1180 0%, #101C9E 46%, #1E2FC4 100%);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: stretch;
}

.inset-gradient-cta-text {
  min-width: 0;
  padding: 2.75rem;
}

.inset-gradient-cta-text .eyebrow {
  color: #C7CDFF;
  background-color: rgba(255, 255, 255, 0.12);
  display: inline-block;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.375rem 0.9375rem;
  margin-bottom: var(--space-md);
}

.inset-gradient-cta-text h2 {
  color: var(--color-white);
  font-size: clamp(1.625rem, 2.2vw, 2.125rem);
  max-width: 22ch;
  margin-bottom: var(--space-sm);
}

.inset-gradient-cta-text p {
  color: var(--color-tint-4);
  max-width: 52ch;
  margin-bottom: var(--space-md);
}

.inset-gradient-cta-media {
  min-width: 0;
  position: relative;
  min-height: 340px;
}

.inset-gradient-cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   31. LIGHT HERO WITH DECORATIVE CORNER GRAPHIC (Get in touch)
   -------------------------------------------------------------------------- */
.light-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-cream) 0%, var(--color-cream) 46%, var(--color-white) 100%);
}

.light-hero-decoration {
  position: absolute;
  right: 0;
  bottom: -12%;
  width: min(44%, 600px);
  aspect-ratio: 6613 / 6430;
  pointer-events: none;
  opacity: 0.55;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 22%, rgba(0,0,0,0.2) 52%, rgba(0,0,0,0) 74%);
}

.light-hero-decoration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.light-hero .container {
  position: relative;
  padding-block: var(--space-2xl);
}

.light-hero h1 {
  font-size: clamp(2.25rem, 4.15vw, 4.125rem);
  max-width: 26ch;
  margin-bottom: var(--space-md);
}

.light-hero p {
  font-size: 1.294rem;
  font-weight: 300;
  color: var(--color-slate);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   32. CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-form-panel {
  background-color: var(--color-cream-light);
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 1px 3px rgba(12, 12, 12, 0.05);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-near-black);
  background-color: var(--color-white);
}

.form-field textarea {
  resize: vertical;
}

.form-submit {
  align-self: flex-start;
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-slate-light);
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   33. ENQUIRY CARDS (simple label + description card, no icon)
   -------------------------------------------------------------------------- */
.enquiry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-sm);
}

.enquiry-card {
  background-color: var(--color-cream-light);
  border: 1px solid var(--color-line-grey);
  border-radius: 10px;
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 1px 3px rgba(12, 12, 12, 0.05);
}

.enquiry-card-label {
  font-family: var(--font-mono);
  font-size: 1.03rem;
  font-weight: 500;
  letter-spacing: 0.06px;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}