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

:root {
    --dark-blue: #005b7c;
    --light-blue: #0092d2;
    --white: #ffffff;
    --grey-light: #f4f7fa;
    --grey-mid: #e2eaf0;
    --grey-text: #5a6a78;
    --dark-footer: #0c1c27;
    --dark: #1a2535;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.container-home{
    max-width: 1180px;
    padding: 120px 0 0 100px;
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.93rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.28s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--light-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #007ab8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 146, 210, 0.32);
}

.btn-ghost {
    background-color: transparent;
    color: rgba(255,255,255,0.88);
    border-color: rgba(255,255,255,0.38);
}
.btn-ghost:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.65);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-blue);
    font-weight: 600;
}
.btn-white:hover {
    background-color: var(--grey-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.18);
}

/* ==========================================
   TOPBAR
========================================== */
.topbar {
    width: 100%;
    background-color: var(--dark-footer);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar span {
    font-size: 0.76rem;
    color: rgba(180,205,220,0.6);
    letter-spacing: 0.3px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-contact a {
    font-size: 0.76rem;
    color: rgba(180,205,220,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.topbar-contact a:hover {
    color: var(--light-blue);
}

.topbar-contact .topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    border-radius: 50px;
    background-color: var(--light-blue);
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background-color 0.2s, transform 0.2s;
}
.topbar-contact .topbar-btn:hover {
    background-color: #007ab8;
    color: var(--white);
    transform: translateY(-1px);
}

.topbar-contact .topbar-btn-whatsapp {
    background-color: #25D366;
}
.topbar-contact .topbar-btn-whatsapp:hover {
    background-color: #1ebe57;
    color: var(--white);
}
.topbar-contact .topbar-btn-whatsapp svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ==========================================
   NAVIGATION
========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 24px rgba(0,0,0,0.25);
    transition: padding 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 90px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
}

.navbar.scrolled {
    padding: 6px 0;
    background-color: var(--dark);
    box-shadow: 0 4px 28px rgba(0,0,0,0.18);
}

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

.nav-links a {
    color: var(--dark-footer);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.2s;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.navbar.scrolled .hamburger span {
    background-color: #fff;
}

.navbar.scrolled .nav-links a {
    color: #fff;
    font-size: 0.85rem;
}

.nav-links a:hover {
    color: var(--light-blue);
    background-color: rgba(0,146,210,0.07);
}

.nav-links .nav-cta a {
    background-color: var(--light-blue);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 500;
}
.nav-links .nav-cta a:hover {
    background-color: #007ab8;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--dark-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==========================================
   HERO
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* background-color: #212425; */
    background-image: url('images/optimized/cells.jpg');
    background-image: image-set(url('images/optimized/cells.webp') type('image/webp'), url('images/optimized/cells.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    overflow-x: clip;
}

/* .hero-microscope {
    position: absolute;
    bottom: -150px;
    right: 20%;
    height: 600px;
    width: auto;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 24px 48px rgba(0, 91, 124, 0.25));
} */

/* Dot grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Glow orbs */
.hero-glow-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 146, 210, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-glow-2 {
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 91, 124, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Right panel (image area) */
.hero-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44%;
    display: flex;
    align-items: stretch;
}
/* .hero-panel-inner {
    flex: 1;
    background: linear-gradient(160deg, rgba(0,146,210,0.12) 0%, rgba(0,91,124,0.06) 100%);
    border-left: 1px solid rgba(0,146,210,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 40px 40px 40px;
} */

/* Decorative microscope illustration in right panel */
.hero-illustration {
    width: 100%;
    max-width: 320px;
    opacity: 0.12;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 146, 210, 0.18);
    border: 1px solid rgba(0, 146, 210, 0.38);
    color: #80d0f5;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 26px;
}
.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: block;
}

.hero h1 {
    font-size: clamp(2.1rem, 3.8vw, 3.3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--light-blue); }

.hero-lead {
    font-size: 18px;
    color: rgba(255,255,255);
    margin-bottom: 38px;
    max-width: 520px;
    font-weight: 400;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 250px;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-curve svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
}

@media (max-width: 900px) {
    .hero-curve { height: 150px; }
}

@media (max-width: 768px) {
    .hero-curve { height: 110px; }
}

/* Scroll cue */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(0.7); }
}

/* ==========================================
   ABOUT SECTION
========================================== */
.marquee {
  width: 100%;
  max-width: 100%;
  background: var(--dark-blue);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 15px 0;
}

.marquee-track {
  display: inline-block;
  animation: scroll 45s linear infinite;
}

.marquee-track span {
  padding-right: 100px; /* space between repeats */
  font-weight: 600;
  font-style: italic;
  letter-spacing: 1px;
  font-size: 18px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

hr {
    border: none;
    border-top: 2px solid #fff;
    margin: 20px auto 30px;
    width: 60px;
}

.section-about {
    padding: 108px 0;
    background-color: var(--dark);
}

.section-about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.section-about-content .section-body {
    margin-left: auto;
    margin-right: auto;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.two-col.flip {
    direction: rtl;
}
.two-col.flip > * {
    direction: ltr;
}

.eyebrow {
    display: inline-block;
    color: var(--light-blue);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.22;
    margin-bottom: 18px;
}

.section-title-founder {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.22;
    margin-bottom: 18px;
}

.section-body {
    color: var(--white);
    font-size: 0.96rem;
    line-height: 1.85;
    margin-top: 14px;
    margin-bottom: 14px;
}
.section-body-founder {
    color: var(--dark-blue);
    font-size: 0.96rem;
    line-height: 1.85;
    margin-top: 14px;
    margin-bottom: 14px;
}

.section-body:last-of-type {
    margin-bottom: 30px;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: #e6f5ff;
    color: var(--dark-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border-left: 3px solid var(--light-blue);
    line-height: 1.3;
}

/* Image frame with decorative border */
.img-frame {
    position: relative;
}
.img-frame::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: -14px;
    left: 14px;
    top: 14px;
    /* border: 2px solid rgba(0, 146, 210, 0.22); */
    border-radius: 14px;
    z-index: 0;
    pointer-events: none;
}

.img-box {
    width: 100%;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.img-box-inner {
    width: 100%;
    /* aspect-ratio: 4/3; */
    /* background: linear-gradient(145deg, #003e56 0%, #005b7c 45%, #0087c4 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.img-box-inner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.img-box-inner.tall { aspect-ratio: 3/4; overflow: hidden; }
.img-box-inner.tall img { height: 100%; }

.img-placeholder-text {
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* Floating badge */
.float-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--white);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}
.float-badge-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.float-badge-icon svg { width: 20px; height: 20px; fill: white; }
.float-badge-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark-blue);
}
.float-badge-text span {
    font-size: 0.72rem;
    color: var(--grey-text);
}

/* ==========================================
   FOUNDER SECTION
========================================== */
.section-founder {
    padding: 80px;
    background-color: var(--grey-light);
    position: relative;
    overflow: hidden;
}
/* Subtle watermark dots */
.section-founder::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 480px;
    height: 480px;
    background-image: radial-gradient(circle, rgba(0,146,210,0.07) 2px, transparent 2px);
    background-size: 22px 22px;
    pointer-events: none;
    border-radius: 50%;
}

.qualifications-list {
    list-style: none;
    margin: 18px 0 28px;
}
.qualifications-list li {
    padding: 10px 0 10px 18px;
    position: relative;
    color: var(--grey-text);
    font-size: 0.94rem;
    border-bottom: 1px solid var(--grey-mid);
    line-height: 1.5;
}
.qualifications-list li:last-child { border-bottom: none; }
.qualifications-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background-color: var(--light-blue);
    border-radius: 50%;
}

/* ==========================================
   PATHOLOGY CTA (dark band)
========================================== */
/* histopathology-bg-section */
.section-cta-dark {
    padding: 80px;
    background-color: var(--dark-blue);
    background-image: url('images/optimized/pathology-bg.jpg');
    background-image: image-set(url('images/optimized/pathology-bg.webp') type('image/webp'), url('images/optimized/pathology-bg.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-curve-bottom {
    position: relative;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
    margin-top: -1px;
}

.cta-curve-bottom svg {
    display: block;
    width: 100%;
    height: 120px;
    transform: rotateY(180deg);
}
.section-cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 5, 15, 0.72);
    pointer-events: none;
    z-index: 1;
}
.section-cta-dark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(0,146,210,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.section-cta-dark .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.section-cta-dark h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.2;
}
.section-cta-dark p {
    color: #fff;
    font-size: 0.97rem;
    line-height: 1.88;
    margin-bottom: 36px;
    font-weight: 400;
}

/* ==========================================
   SERVICES SECTION
========================================== */
.section-services {
    padding: 108px 0;
    background-color: var(--dark-footer);
}

.section-footer{
    text-align: center;
    margin-top: 30px;
    color: var(--grey-text);
    font-size: 0.96rem;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: 45px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 14px;
}
.section-header p {
    color: var(--grey-text);
    max-width: 580px;
    margin: 0 auto;
    font-size: 0.96rem;
    line-height: 1.85;
}

.section-services .section-header h2 {
    color: var(--white);
}
.section-services .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.service-card {
    background-color: #112536;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.service-card-img {
    height: 214px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.service-card-img.histo {
    background-color: #002f42;
}
.service-card-img.cyto {
    background-color: #003e5e;
}

/* Dark gradient overlay over the photo */
.service-card-img-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(145deg, rgba(0,47,66,0.78) 0%, rgba(0,91,124,0.72) 50%, rgba(0,120,168,0.65) 100%); */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Dot texture on top of overlay */
.service-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    z-index: 1;
}

.service-icon-wrap {
    width: 74px;
    height: 74px;
    background-color: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.service-icon-wrap svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.service-card-body {
    padding: 28px 30px 32px;
    border-top: 3px solid var(--light-blue);
}
.service-card-body h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.service-card-body p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.91rem;
    line-height: 1.82;
    margin-bottom: 22px;
}

.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--light-blue);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: gap 0.22s, color 0.22s;
}
.link-cta:hover {
    gap: 10px;
    color: var(--white);
}
.link-cta svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background-color: var(--dark-footer);
    background-image: url('images/optimized/footer-img.jpg');
    background-image: image-set(url('images/optimized/footer-img.webp') type('image/webp'), url('images/optimized/footer-img.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    padding: 72px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 5, 15, 0.95);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 16px;
    display: inline-block;
    margin-bottom: 18px;
}
.footer-logo-wrap img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.87rem;
    color: rgba(180,205,220,0.72);
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.footer-social {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0,146,210,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer-social svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    display: block;
    fill: rgba(180,205,220,0.85);
    transition: fill 0.25s ease;
}
.footer-social:hover {
    background: var(--light-blue, #0092d2);
    border-color: var(--light-blue, #0092d2);
    transform: translateY(-2px);
}
.footer-social:hover svg {
    fill: #fff;
}

.footer-col-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,146,210,0.25);
}

.footer-nav-list {
    list-style: none;
}
.footer-nav-list a {
    display: block;
    color: rgba(180,205,220,0.75);
    text-decoration: none;
    font-size: 0.89rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s, padding-left 0.2s;
}
.footer-nav-list a:hover {
    color: var(--light-blue);
    padding-left: 8px;
}

.footer-hours-list {
    list-style: none;
}
.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
    color: rgba(180,205,220,0.75);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.footer-hours-closed span:last-child {
    color: rgba(255, 100, 100, 0.75);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.contact-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(0,146,210,0.14);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.contact-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--light-blue);
}
.contact-text {
    font-size: 0.86rem;
    color: rgba(180,205,220,0.78);
    line-height: 1.5;
}
.contact-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-text a:hover { color: var(--light-blue); }

.footer-bottom {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(180,205,220,0.38);
}
.footer-legal-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-legal-sep {
    font-size: 0.8rem;
    color: rgba(180,205,220,0.35);
}
.footer-privacy {
    font-size: 0.8rem;
    color: rgba(180,205,220,0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-privacy:hover {
    color: rgba(180,205,220,0.95);
}
.footer-avily {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    text-decoration: none;
}
.footer-avily:hover {
    opacity: 1;
}
.footer-avily span {
    font-size: 0.8rem;
    color: rgba(180,205,220,0.55);
}
.footer-avily img {
    height: auto;
    width: 35px;
    display: block;
}

/* ==========================================
   SERVICE PAGE: When Might I Need It?
========================================== */
.section-when {
    padding: 108px 0;
    background-color: var(--grey-light);
    position: relative;
    overflow: hidden;
}
.section-when::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 480px;
    height: 480px;
    background-image: radial-gradient(circle, rgba(0,146,210,0.07) 2px, transparent 2px);
    background-size: 22px 22px;
    pointer-events: none;
    border-radius: 50%;
}

.service-list-card {
    background: var(--white);
    border-radius: 14px;
    padding: 30px 34px;
    border: 1px solid var(--grey-mid);
    box-shadow: 0 4px 24px rgba(0,91,124,0.06);
}
.service-list-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,146,210,0.2);
}

/* ==========================================
   SERVICE PAGE: Sample Journey / Process
========================================== */
.section-process {
    padding: 108px 0;
    background-color: var(--dark-footer);
}
.section-process .section-header h2 { color: var(--white); }
.section-process .section-header p { color: rgba(255,255,255,0.6); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.process-step {
    background-color: #112536;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.process-step-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(0,146,210,0.22);
    line-height: 1;
    margin-bottom: 18px;
}
.process-step h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.process-step p {
    font-size: 0.86rem;
    color: rgba(180,205,220,0.68);
    line-height: 1.75;
    margin: 0;
}

/* ==========================================
   CONTACT PAGE
========================================== */
.section-contact {
    padding: 108px 0;
    background-color: var(--grey-light);
    position: relative;
    overflow: hidden;
}
.section-contact::before {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 480px;
    height: 480px;
    background-image: radial-gradient(circle, rgba(0,146,210,0.07) 2px, transparent 2px);
    background-size: 22px 22px;
    pointer-events: none;
    border-radius: 50%;
}
.contact-col-heading {
    margin-bottom: 32px;
}
.contact-col-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 10px;
}
.contact-col-heading p {
    font-size: 0.94rem;
    color: var(--grey-text);
    line-height: 1.7;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--white);
    border-radius: 12px;
    padding: 22px 24px;
    border: 1px solid var(--grey-mid);
    box-shadow: 0 3px 18px rgba(0,91,124,0.05);
    margin-bottom: 14px;
}
.contact-info-card:last-child { margin-bottom: 0; }
.contact-info-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}
.contact-info-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 5px;
}
.contact-info-value {
    font-size: 0.93rem;
    color: var(--dark);
    line-height: 1.65;
}
.contact-info-value a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info-value a:hover { color: var(--light-blue); }
.contact-info-tba {
    color: var(--grey-text);
    font-style: italic;
    font-size: 0.88rem;
}

.hours-card {
    background: var(--dark);
    border-radius: 14px;
    padding: 34px 36px;
    height: 100%;
}
.hours-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,146,210,0.25);
}
.hours-list {
    list-style: none;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day {
    color: rgba(180,205,220,0.75);
}
.hours-list .time {
    color: var(--white);
    font-weight: 500;
    text-align: right;
}
.hours-list .closed {
    color: rgba(255, 100, 100, 0.8);
    font-weight: 500;
}
.hours-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
    color: rgba(180,205,220,0.45);
    line-height: 1.6;
}

.contact-form-card {
    background: var(--white);
    border-radius: 14px;
    padding: 32px 34px;
    border: 1px solid var(--grey-mid);
    box-shadow: 0 4px 24px rgba(0,91,124,0.06);
}
.contact-form-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--grey-mid);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.2px;
}
.form-group input,
.form-group textarea {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;  /* >=16px — anything smaller makes iOS Safari zoom the page on focus */
    color: var(--dark);
    background: var(--grey-light);
    border: 1.5px solid var(--grey-mid);
    border-radius: 8px;
    padding: 11px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0b0bc;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--light-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,146,210,0.1);
}

.map-embed {
    position: relative;
    line-height: 0;
    overflow: hidden;
}

.map-embed-address {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    max-width: 260px;
    background: var(--white);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(10, 30, 45, 0.18);
    line-height: 1.5;
}

.map-embed-address p {
    margin: 0;
    font-size: 14px;
    color: var(--grey-text);
}

.map-embed-address strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--dark);
}

@media (max-width: 600px) {
    .map-embed-address {
        position: static;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
    }
}

/* ==========================================
   IMAGE BACKGROUND CTA SECTION
========================================== */
.section-img-cta {
    padding: 108px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.section-img-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 5, 15, 0.72);
    pointer-events: none;
    z-index: 1;
}
.section-img-cta .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.section-img-cta h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.2;
}
.section-img-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.97rem;
    line-height: 1.88;
    margin-bottom: 28px;
}

/* ==========================================
   INLINE BODY LINK
========================================== */
.body-link {
    color: var(--light-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0,146,210,0.4);
    transition: color 0.2s, text-decoration-color 0.2s;
}
.body-link:hover {
    color: #007ab8;
    text-decoration-color: rgba(0,120,184,0.8);
}

/* ==========================================
   PAGE HERO (inner pages)
========================================== */
.page-hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('images/optimized/cells.jpg');
    background-image: image-set(url('images/optimized/cells.webp') type('image/webp'), url('images/optimized/cells.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 140px 0 90px;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,5,15,0.84) 0%, rgba(0,40,60,0.72) 100%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
.page-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.page-hero-content {
    text-align: left;
}
.page-hero h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 16px;
}
.page-hero .hero-lead {
    color: rgba(255,255,255,0.7);
    max-width: 800px;
    margin-bottom: 0;
}

/* ==========================================
   ACADEMIC CONTRIBUTIONS SECTION
========================================== */
.section-contributions {
    padding: 108px 0;
    background-color: var(--dark-footer);
}
.section-contributions .section-header h2 {
    color: var(--white);
}
.section-contributions .section-header p {
    color: rgba(255,255,255,0.6);
}
.contrib-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.contrib-card {
    background-color: #112536;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 30px 32px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contrib-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.contrib-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(0,146,210,0.14);
    border: 1px solid rgba(0,146,210,0.26);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contrib-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--light-blue);
}
.contrib-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.contrib-card p {
    font-size: 0.88rem;
    color: rgba(180,205,220,0.7);
    line-height: 1.75;
    margin: 0;
}

/* ==========================================
   DIAGNOSTIC INTERESTS SECTION
========================================== */
.section-interests {
    padding: 108px 0;
    background-color: var(--dark);
}
.section-interests .section-header h2 {
    color: var(--white);
}
.section-interests .section-header p {
    color: rgba(255,255,255,0.6);
}
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.interest-tag {
    display: inline-block;
    background-color: rgba(0,146,210,0.1);
    border: 1px solid rgba(0,146,210,0.28);
    color: rgba(180,205,220,0.88);
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.interest-tag:hover {
    background-color: rgba(0,146,210,0.22);
    border-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-2px);
    cursor: default;
}

/* ==========================================
   PERSONAL / BEYOND THE LAB SECTION
========================================== */
.section-personal {
    padding: 108px 0;
    background-color: var(--grey-light);
}
.section-title-light {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.22;
    margin-bottom: 18px;
}
.hr-dark {
    border-top-color: var(--dark-blue);
}
.section-body-light {
    color: var(--grey-text);
    font-size: 0.96rem;
    line-height: 1.85;
    margin-top: 14px;
    margin-bottom: 14px;
}

/* ==========================================
   SCROLL ANIMATIONS
========================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 900px) {
    .hero-panel { display: none; }
    .float-badge { display: none; }

    .two-col,
    .two-col.flip {
        grid-template-columns: 1fr;
        gap: 44px;
        direction: ltr;
    }
    /* Image above text when columns stack */
    .two-col.flip .img-frame { order: -1; }

    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .contrib-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }

    .topbar { display: none; }
    .navbar { top: 0 !important; }

    .nav-links {
        display: none;
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background-color: var(--dark-blue);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 999;
        padding: 12px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        color: #fff;
        padding: 14px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background-color: transparent;
    }
    .nav-links a:hover {
        color: #fff;
        background-color: rgba(255,255,255,0.1);
    }
    .nav-links .nav-cta a { margin: 12px 24px; border-radius: 50px; text-align: center; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {

    .container-home { padding: 90px 28px 0; }

    .hero { padding: 110px 0 80px; min-height: auto; }
    .hero-microscope { display: none; }
    .section-about, .section-founder, .section-services { padding: 72px 0; }
    .section-contributions, .section-interests, .section-personal { padding: 72px 0; }
    .section-when, .section-process { padding: 72px 0; }
    .process-steps { grid-template-columns: 1fr; }
    .section-cta-dark { padding: 72px 0; }
    .page-hero { padding: 110px 0 70px; height:500px; }
    .hero-scroll { display: none; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Headings — one step per level, so hierarchy survives on mobile */
    h1 { font-size: 28px !important; line-height: 1.25; }
    .section-title,
    .section-title-founder,
    h2 { font-size: 23px !important; line-height: 1.3; }
    h3 { font-size: 19px !important; line-height: 1.35; }
    h4 { font-size: 17px !important; line-height: 1.4; }
    .footer-col-label { font-size: 16px !important; }

    /* Body text */
    p, li,
    .hero-lead,
    .section-body,
    .section-body-founder,
    .section-header p,
    .process-step p,
    .service-card-body p,
    .contact-text,
    .footer-tagline,
    .hours-note {
        font-size: 15px !important;
        line-height: 1.7;
    }
}
