/* ============================================================
   Base Reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  color: #515151;
  background: #ffffff;
  padding-top: 72px;
}

/* ============================================================
   Accessibility Utilities
   ============================================================ */

.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: #1a3f6e;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transform: translateY(-110%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Focus-visible styles — keyboard-only, no mouse outline */
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid #3871e0;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   Reusable Section Styles
   ============================================================ */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a3f6e;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: #3871e0;
  border-radius: 2px;
  margin: 14px auto 48px;
}

/* ============================================================
   About Section
   ============================================================ */

#about {
  background-color: #f7f9fc;
}

.about-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 280px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #4b5563;
}

.about-text p:first-child {
  margin-top: 0;
}

.about-highlights {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.highlight-item {
  text-align: center;
  flex: 1;
}

.highlight-number {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #3871e0;
}

.highlight-label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

/* ============================================================
   Scroll Animations
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Therapeutic Areas Banner
   ============================================================ */

#therapeutic-areas {
  background: #1a3f6e;
  padding: 28px 24px;
}

.ta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ta-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64c2e4;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-badge {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 6px 16px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ta-badge:hover {
  background: rgba(100, 194, 228, 0.14);
  border-color: rgba(100, 194, 228, 0.45);
  color: #ffffff;
}

/* ============================================================
   Services Section
   ============================================================ */

#services {
  background-color: #ffffff;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -36px auto 48px;
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: #3871e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.service-icon {
  color: #3871e0;
  margin-bottom: 20px;
}

.service-name {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a3f6e;
  margin-bottom: 12px;
}

.service-teaser {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  flex: 1;
  margin-bottom: 20px;
}

.service-learn-more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3871e0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-learn-more::after {
  content: "→";
}

.service-learn-more:hover {
  color: #2d5fc0;
  gap: 8px;
}

/* ============================================================
   Modals
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 63, 110, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: modalOverlayIn 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: modalDialogIn 0.22s ease;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

@keyframes modalDialogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-close:hover {
  color: #1a3f6e;
  background: #f3f4f6;
}

.modal-close:focus-visible {
  outline: 3px solid #3871e0;
  outline-offset: 2px;
}

.modal-icon {
  color: #3871e0;
  margin-bottom: 16px;
}

.modal-title {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a3f6e;
  margin: 0 0 16px;
  line-height: 1.3;
  padding-right: 32px;
}

.modal-body p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 16px;
}

.modal-body ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-body ul li {
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
}

/* --- Modal subtitle (category label above title) --- */
.modal-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64c2e4;
  margin: 0 0 6px;
}

/* --- Content sections within a modal --- */
.modal-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.modal-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.modal-section-title {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 10px;
}

.modal-section p {
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 8px;
}

.modal-section ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-section ul li {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

/* --- Software pills --- */
.modal-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-pills li {
  background: #e8f4fc;
  color: #3871e0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #c8e4f4;
}

/* --- Modal photos & captions --- */
.modal-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  display: block;
}

.modal-img-caption {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.4;
}

/* Two-photo side-by-side grid */
.modal-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.modal-img-grid figure {
  margin: 0;
}

/* Sub-card thumbnail images */
.modal-sub-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  display: block;
}

/* --- Publications footer --- */
.modal-pubs-footer {
  margin-top: 16px;
  padding: 11px 14px;
  background: #f7f9fc;
  border-radius: 6px;
  border-left: 3px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  line-height: 1.6;
}

/* --- Two-column layout (modal 4) --- */
.modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.modal-columns .modal-section {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* --- Opening/intro paragraph --- */
.modal-opening {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 4px;
  border-left: 3px solid #3871e0;
  padding-left: 14px;
}

/* --- Disease model sub-cards (2×2 grid) --- */
.modal-sub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-sub-card {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 14px;
  border-left: 3px solid #3871e0;
}

.modal-sub-card--sleep      { border-left-color: #3871e0; }
.modal-sub-card--neuropsych { border-left-color: #6b5ce7; }
.modal-sub-card--psychedelic { border-left-color: #2a9d8f; }
.modal-sub-card--epilepsy   { border-left-color: #c8880a; }

.modal-sub-card-title {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1a3f6e;
  margin: 0 0 8px;
}

.modal-sub-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-sub-card ul li {
  font-size: 12px;
  color: #4b5563;
  padding-left: 10px;
  position: relative;
  line-height: 1.4;
}

.modal-sub-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-weight: 700;
}

/* Note callout inside sub-card */
.modal-note {
  margin-top: 8px;
  padding: 7px 10px;
  background: rgba(42, 157, 143, 0.07);
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
  font-style: italic;
  line-height: 1.4;
}

/* --- Background info cards (modal 6) --- */
.modal-bg-card {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.65;
}

/* --- Modal close animation --- */
.modal-overlay.modal-closing {
  animation: modalOverlayOut 0.2s ease forwards;
}

.modal-overlay.modal-closing .modal-dialog {
  animation: modalDialogOut 0.2s ease forwards;
}

@keyframes modalOverlayOut {
  to { opacity: 0; }
}

@keyframes modalDialogOut {
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

/* --- Responsive: collapse multi-column layouts on narrow screens --- */
@media (max-width: 560px) {
  .modal-dialog {
    padding: 28px 20px;
  }

  .modal-sub-cards,
  .modal-columns,
  .modal-img-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Case Studies Section
   ============================================================ */

#case-studies {
  background-color: #f7f9fc;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-study-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #3871e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.case-study-card--teal { border-left-color: #2a9d8f; }
.case-study-card--blue { border-left-color: #3871e0; }

.case-study-content {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a3f6e;
  margin: 0 0 6px;
}

.case-study-subtitle {
  font-size: 14px;
  color: #4b5563;
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 18px;
}

.case-study-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.case-study-points li {
  font-size: 14px;
  color: #374151;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.case-study-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3871e0;
  font-size: 12px;
  top: 1px;
}

.case-study-card--teal .case-study-points li::before {
  color: #2a9d8f;
}

.case-study-citation {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  line-height: 1.55;
  padding-top: 16px;
  margin: 0;
  border-top: 1px solid #f0f0f0;
}

/* ============================================================
   Publications Section
   ============================================================ */

#publications {
  background-color: #ffffff;
}

.publications-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.publication-item {
  display: flex;
  gap: 24px;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover {
  border-color: #3871e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.publication-year {
  flex: 0 0 60px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #3871e0;
  padding-top: 2px;
}

.publication-details {
  flex: 1;
}

.publication-title {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a3f6e;
  margin-bottom: 8px;
  line-height: 1.4;
}

.publication-title a {
  color: #1a3f6e;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.publication-title a:hover {
  color: #3871e0;
  text-decoration: underline;
}

.publication-authors {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 4px;
}

.publication-journal {
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
}

/* ============================================================
   Contact Section
   ============================================================ */

#contact {
  background-color: #f7f9fc;
}

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

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.contact-detail svg {
  flex-shrink: 0;
  color: #3871e0;
}

.contact-detail a {
  color: #3871e0;
  text-decoration: none;
  font-weight: 500;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  background-color: #1a3f6e;
  color: #ffffff;
  padding: 8px 24px 6px;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2px;
}

.footer-logo-img {
  width: 200px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 2px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
  margin: 0;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-legal {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-scrolled {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

/* White logo icon + text when overlaid on the dark hero */
.navbar:not(.navbar-scrolled) .nav-logo-icon {
  filter: brightness(0) invert(1);
}

.navbar:not(.navbar-scrolled) .nav-logo-text {
  color: #ffffff;
}

.navbar:not(.navbar-scrolled) .nav-logo:hover .nav-logo-icon {
  opacity: 0.85;
}

.navbar:not(.navbar-scrolled) .nav-logo:hover .nav-logo-text {
  color: rgba(255, 255, 255, 0.85);
}

.navbar:not(.navbar-scrolled) .nav-menu a {
  color: rgba(255, 255, 255, 0.92);
}

.navbar:not(.navbar-scrolled) .nav-menu a:hover,
.navbar:not(.navbar-scrolled) .nav-menu a.active-link {
  color: #ffffff;
}

.navbar:not(.navbar-scrolled) .hamburger-line {
  background-color: #ffffff;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

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

.nav-logo-icon {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease, filter 0.3s ease;
}

.nav-logo-text {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1a3f6e;
  transition: color 0.3s ease;
}

.logo-highlight {
  color: #64c2e4;
}

.nav-logo:hover .nav-logo-text {
  color: #1a3f6e;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #4b5563;
  text-decoration: none;
}

.nav-menu a:hover {
  color: #3871e0;
}

.nav-menu a.active-link {
  color: #3871e0;
  font-weight: 600;
}

.nav-toggle {
  display: none;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a3f6e;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

/* ============================================================
   Hero Section
   ============================================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #112d52 0%, #1a3f6e 55%, #153760 100%);
  overflow: hidden;
}

/* Real EEG recording background */
.hero-bg-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-wave-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  mix-blend-mode: screen;
  display: block;
}

/* Hero content layout */
.hero-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 148px 24px 88px;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-photo {
  flex: 0 0 auto;
}

.hero-photo img {
  width: 484px;
  height: auto;
  display: block;
}

.hero-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64c2e4;
  margin: 0 0 20px;
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.06;
  color: #ffffff;
  margin: 0 0 28px;
  letter-spacing: -0.025em;
}

.hero-description {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.80);
  margin: 0 0 44px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: #3871e0;
  color: #ffffff;
  border-color: #3871e0;
}

.btn-primary:hover {
  background: #2d5fc0;
  border-color: #2d5fc0;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ============================================================
   Responsive — max-width 768px
   ============================================================ */

@media (max-width: 768px) {

  /* Navigation */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .nav-menu li a {
    padding: 8px 0;
    display: block;
    font-size: 16px;
  }

  /* Hero */
  .hero-layout {
    flex-direction: column;
    gap: 36px;
  }

  .hero-photo img {
    width: 280px;
  }

  .hero-content-wrapper {
    padding: 120px 24px 72px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* About */
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    flex: 0 0 auto;
    max-width: 220px;
  }

  .about-highlights {
    flex-wrap: wrap;
    gap: 16px;
  }

  .highlight-item {
    flex-basis: calc(50% - 8px);
  }

  /* Therapeutic areas banner */
  .ta-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ta-label {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 14px;
    width: 100%;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Case Studies */
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Publications */
  .publication-item {
    flex-direction: column;
    gap: 8px;
  }

  .publication-year {
    flex: 0 0 auto;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .footer-logo-img {
    margin: 0 auto;
  }

  .footer-nav ul {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

}

/* ============================================================
   Responsive — max-width 480px
   ============================================================ */

@media (max-width: 480px) {

  .section-container {
    padding: 60px 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-content-wrapper {
    padding: 100px 16px 60px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-photo {
    display: none;
  }

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

  .publication-item {
    padding: 20px;
  }

  .about-highlights {
    flex-direction: column;
    gap: 12px;
  }

  .highlight-item {
    flex-basis: 100%;
  }

}

/* ============================================================
   Reduced Motion Preferences
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Print Stylesheet
   ============================================================ */

@media print {

  /* Hide interactive / screen-only elements */
  .navbar,
  footer,
  #contact,
  #therapeutic-areas,
  .skip-link {
    display: none !important;
  }

  /* Remove paddings added to account for fixed navbar */
  body {
    padding-top: 0;
    color: #000000;
    background: #ffffff;
  }

  /* Strip section backgrounds so ink isn't wasted */
  #about,
  #publications,
  #case-studies,
  .publication-item,
  .service-card,
  .case-study-card {
    background: #ffffff !important;
  }

  /* Flatten layout — services as a single-column list */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Ensure text is fully black for legibility */
  .section-title,
  .service-name,
  .publication-title,
  .about-text p,
  .highlight-number {
    color: #000000;
  }

  /* Remove box shadows and borders that look odd on paper */
  .service-card,
  .publication-item {
    border: 1px solid #cccccc;
    box-shadow: none;
  }

  /* Prevent elements from splitting across page breaks */
  .service-card,
  .publication-item,
  .about-content,
  .case-study-card {
    break-inside: avoid;
  }

  /* Case studies: single column for print */
  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  /* Show href for links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 12px;
    color: #444444;
  }

  /* But not for anchor links — they're internal and useless on paper */
  a[href^="#"]::after {
    content: "";
  }

  /* Disable animations */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

}
