:root {
    --bg-color: #F9F9F5;
    /* Cream background */
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Lora', serif;
    --btn-primary-bg: #1a1a1a;
    --btn-primary-text: #ffffff;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    /* Helps with containment */
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    height: 100%;
}

/* Header */
/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    /* Reduced padding to 1rem as requested */
    z-index: 100;
    background-color: #ffffff;
    /* White background as requested */
}

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

@media (max-width: 900px) {

    .nav-links,
    .nav-actions,
    .main-nav {
        display: none;
        /* Hide layout items */
    }

    .hero-badge,
    .badge-tag {
        font-size: 12px;
    }

    .nav-container {
        justify-content: space-between;
        gap: 0;
        width: 100%;
    }

    .hamburger-btn {
        display: block;
        margin-left: auto;
        /* Force to right */
    }
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    /* Increased height as requested */
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    /* For pseudo-element */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link-login {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    /* Space for header */
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    /* For absolute positioning of background */
    overflow: hidden;
    /* Ensure background doesn't spill out */
    width: 100%;
    /* Ensure it doesn't exceed viewport width */
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    /* Use geometry scaling instead of transform to avoid scroll glitches */
    width: 140%;
    /* Increase width to hide watermark and scale up */
    height: 140%;
    /* Increase height to match aspect ratio */
    left: -25%;
    /* Shift left to center the content */
    top: -15%;
    /* Shift up to center vertically */
}

.hero-unicorn-embed {
    width: 100%;
    height: 100%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex: 1;
    padding: 0 2rem;
    max-width: none;
    /* Explicitly remove max-width constraint */
    margin: 0;
    /* Remove auto margins */
    width: 100%;
    /* Force full width */
    position: relative;
    /* Above background */
}

.mobile-only-embed {
    display: none;
}

/* Badge */
.hero-badge-wrapper {
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 0;
    /* Sharp corners as requested */
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.badge-tag {
    background: #E0E7FF;
    color: #4338CA;
    padding: 2px 8px;
    border-radius: 0;
    /* Sharp corners as requested */
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Typography */
h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    /* Adjusted to 4rem as requested */
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero-heading-top h1 {
    text-align: left;
}

.hero-heading-bottom h1 {
    text-align: right;
}

.hero-spacer {
    flex-grow: 1;
    min-height: 100px;
    /* Space between headings */
}

/* Footer Row */
.hero-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4rem;
    gap: 2rem;
}

.hero-desc-col {
    max-width: 400px;
    padding-left: 0.5rem;
    /* Small padding for text readability on edge */
}

.subheading {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-action-col {
    display: flex;
    gap: 1rem;
    padding-right: 0.5rem;
    /* Small padding for button readability on edge */
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    /* Sharp corners as requested */
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-bg);
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

/* Research & Publications Section */
.research-section {
    padding-top: 5rem;
    /* Reduced from 8rem to close gap */
    padding-bottom: 2rem;
    overflow: hidden;
    /* For marquee */
}

.research-section .section-header {
    margin-bottom: 4rem;
    padding: 0 2rem;
    text-align: center;
}

.research-marquee {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* Restored as requested */
    padding-block: 2rem;
    display: flex;
    align-items: center;
}

.research-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding-right: 4rem;
    /* Loop buffer */
}

.research-track:hover {
    animation-play-state: paused;
}

.scientists-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: 2rem;
    animation: scroll 40s linear infinite;
    /* Fixed: changed from marquee-scroll to scroll */
    align-items: flex-start;
}

.scientists-track:hover {
    animation-play-state: paused;
}

.blog-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 4rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 400px;
    max-width: 400px;
}

.blog-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.blog-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Patient Stories Section */
.stories-section {
    padding-block: 4rem;
    /* Standardized spacing to match Team section */
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    /* Reduced margin for subtitle */
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Marquee Styles */
.stories-marquee {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    /* Add padding to prevent shadow clipping */
    /* Hide scrollbar */
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    /* Smooth continuous scroll */
    align-items: stretch;
    /* Enforce equal height */
}

/* Pause on hover for readability */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the width (the original set) */
    }
}

.story-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Slightly crisper border */
    padding: 2rem;
    /* Reduced padding */
    border-radius: 4px;
    /* More squared off like reference */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; Removed to allow margin-top: auto to work */
    height: auto;
    /* Let flex stretch determine opacity/height */
    min-height: 100%;
    /* Ensure it fills the stretched space */
    width: 600px;
    /* Increased width significantly */
    flex-shrink: 0;
    /* Prevent shrinking in flex container */
    box-sizing: border-box;
    position: relative;
    /* Context */
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    /* Softer lift */
}

.story-content {
    margin-bottom: 2rem;
}

.story-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    /* Reduced from 1.5rem to accommodate longer text */
    line-height: 1.6;
    /* Increased line height for better readability of paragraph text */
    color: var(--text-primary);
    font-weight: 400;
}

.story-divider {
    height: 1px;
    width: 100%;
    /* Gradient divider like the reference */
    background: #E5E7EB;
    /* Light grey as requested */
    margin-bottom: 1.5rem;
    margin-top: auto;
    /* Pushes divider and footer to the bottom */
}

.story-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    /* Slight rounded square or full circle */
    background-color: #ddd;
    flex-shrink: 0;
    object-fit: cover;
    /* Ensure images fill the box without distortion */
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-family: var(--font-sans);
    /* Or monospace per reference */
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-heading-bottom h1 {
        text-align: left;
    }

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

    .hero-action-col {
        width: 100%;
        justify-content: flex-start;
    }
}

/* About Section */
.about-section {
    padding: 6rem 0;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5rem;
    gap: 4rem;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    flex: 1;
}

.about-description {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    max-width: 600px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    /* Vertical gap, Horizontal gap */
}

.team-card {
    display: flex;
    flex-direction: column;
}

.team-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Portrait ratio like reference */
    background-color: #e5e5e5;
    /* Placeholder gray */
    margin-bottom: 1rem;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.team-role {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-header {
        flex-direction: column;
        gap: 2rem;
    }

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

/* Dark Footer (A24 Style) */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 3.5rem 4rem;
    /* Increased by 24px (1.5rem) from 2rem to 3.5rem */
    position: relative;
    overflow: hidden;
    margin-top: 0;
    /* Removed 128px (margin) as requested */
    font-family: var(--font-sans);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 1.5rem;
    /* Reduced from 8rem to 24px as requested */
}

.footer-col {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

.footer-col-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Nav Links */
.footer-main-nav,
.footer-social-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-main-nav a,
.footer-social-nav a,
.footer-legal a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-main-nav a:hover,
.footer-social-nav a:hover,
.footer-legal a:hover {
    color: #aaa;
}

/* Legal Section */
.footer-legal {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: #888;
}

.footer-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.5;
    max-width: 300px;
}

/* Newsletter */
.newsletter-desc {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    border: 1px solid #fff;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #666;
}

.newsletter-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #ddd;
}

/* Bottom Brand */
.footer-bottom-brand {
    position: absolute;
    bottom: -4.5vw;
    /* Lifted upwards to be more visible */
    /* Push down to peek half (font-size is 15vw) */
    right: -1vw;
    font-family: 'Inter', sans-serif;
    font-size: 15vw;
    font-weight: 800;
    color: #292929;
    /* Lighter grey for visibility */
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.footer-credit-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #cccccc;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 0.75rem 4rem;
    text-align: center;
    /* Centered as requested */
    z-index: 10;
}

@media (max-width: 900px) {
    .site-footer {
        padding: 4rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-col {
        border-top: none;
        padding-top: 0;
    }

    .footer-bottom-brand {
        font-size: 20vw;
        bottom: -2vw;
        right: -2vw;
    }
}

/* Stories Section */
.stories-section {
    padding-block: 4rem;
    padding-bottom: 4rem;
    /* Reduced bottom padding to bring next section closer */
}

/* Scientists Section */
/* Scientists Section */
/* Scientists Section */
.scientists-section {
    padding-block: 4rem;
    padding-top: 2rem;
    /* Reduced top padding */
    padding-bottom: 4rem;
    /* Increased to 3rem as requested (added 1rem) */
    background-color: var(--bg-primary);
}

/* Team Marquee Styles */
.scientists-marquee {
    width: 100%;
    overflow: hidden;
}

.scientists-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: 2rem;
    /* Ensure seamless loop spacing */
    animation: scroll 40s linear infinite;
    align-items: flex-start;
}

.scientists-track:hover {
    animation-play-state: paused;
}

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

.scientists-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.scientists-header .section-title {
    flex: 1;
    min-width: 250px;
    font-size: 3rem;
    margin: 0;
    text-align: left;
}

.scientists-description {
    flex: 1;
    min-width: 300px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.scientists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .scientists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .scientists-header {
        flex-direction: column;
        gap: 2rem;
    }

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

.scientist-card {
    background-color: transparent;
    width: 300px;
    height: 460px;
    perspective: 1000px;
    flex-shrink: 0;
}

.scientist-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.scientist-card:hover .scientist-card-inner {
    transform: rotateY(180deg);
}

.scientist-card-front,
.scientist-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.scientist-card-front {
    background-color: var(--bg-primary);
    gap: 1rem;
}

.scientist-card-back {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotateY(180deg);
    padding: 2rem;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.scientist-card-back p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.scientist-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 0;
    filter: none;
    display: block;
}

.scientist-info {
    text-align: left;
}

.scientist-name {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.scientist-role {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* FAQ Section */
.faq-section {
    padding: 2rem 2rem;
    /* Reduced top padding from 6rem to 2rem */
    position: relative;
    overflow: visible;
    padding-bottom: 8rem;
    /* Keep bottom padding for images */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 5;
}

/* Accordion Styles */
.accordion {
    margin-top: 3rem;
    text-align: left;
    background: #fff;
    /* Box background */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    /* Removing margin to keep border flush */
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-item summary {
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.accordion-item summary::after {
    content: '+';
    font-weight: 300;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.accordion-item[open] summary::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Images */
.draggable-img {
    position: absolute;
    bottom: -20px;
    /* Base position */
    width: 220px;
    /* Reduced size slightly to fit 6 */
    height: auto;
    cursor: grab;
    transition: transform 0.3s ease;
    z-index: 10;
    border: 1px solid #ccc;
    /* 1px grey stroke as requested */
    border-radius: 4px;
    /* Optional slight radius for better look with stroke */
    background: #fff;
    /* Ensure transparent parts of PNG (if any) don't look weird with border, or just aesthetic */
}

/* Positioning 6 images to peek */
/* Positioning 6 images to peek */
/* Positioning 6 images to peek */
/* Left Side Group */
.faq-img-1 {
    left: -40px;
    top: 50px;
    /* Top Left */
    transform: rotate(-15deg);
}

.faq-img-2 {
    left: -80px;
    top: 50%;
    /* Middle Left */
    transform: translateY(-50%) rotate(8deg);
    z-index: 11;
}

.faq-img-3 {
    left: 40px;
    bottom: -20px;
    /* Bottom Left */
    transform: rotate(-5deg);
    z-index: 12;
}

/* Right Side Group */
.faq-img-4 {
    right: -50px;
    top: 50px;
    /* Top Right */
    transform: rotate(12deg);
}

.faq-img-5 {
    right: -100px;
    top: 50%;
    /* Middle Right */
    transform: translateY(-50%) rotate(-8deg);
    z-index: 11;
}

.faq-img-6 {
    right: 40px;
    bottom: -10px;
    /* Bottom Right */
    transform: rotate(6deg);
    z-index: 12;
}

/* Combined Hover State */
.draggable-img:hover {
    transform: rotate(45deg) !important;
    /* Force tilt on hover, override individual rotations */
    z-index: 20;
    /* Bring to front on hover */
}

.draggable-img:active {
    cursor: grabbing;
    transform: scale(1.05) !important;
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 101;
    /* Above drawer if needed, but drawer has its own close btn */
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    z-index: 200;
    padding: 1.5rem 2rem;
    /* Shadow moved to .active state */
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bounce effect */
}

.mobile-drawer.active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.drawer-header {
    display: flex;
    justify-content: flex-end;
    /* Changed from space-between */
    align-items: center;
    margin-bottom: 2rem;
}

.drawer-logo {
    height: 32px;
    width: auto;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    display: block;
}

/* Responsive Styles */

/* Tablet / Small Laptop (max-width: 900px) */
@media (max-width: 900px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .hero-heading-top h1,
    .hero-heading-bottom h1 {
        font-size: 3rem;
        /* Smaller H1 */
    }

    .hero-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-action-col {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile (max-width: 420px) */
@media (max-width: 420px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    .container {
        padding: 0 1rem;
        /* 16px side margin as requested */
        width: 100%;
        overflow-x: hidden;
    }

    /* Hero */
    .hero-section {
        padding-top: 80px;
    }

    .hero-badge-wrapper {
        margin-bottom: 1rem;
        /* 16px instead of 32px */
        padding-top: 1rem;
        /* 16px top padding */
    }

    .hero-heading-top h1,
    .hero-heading-bottom h1 {
        font-size: 2.25rem;
        /* Even smaller H1 */
        line-height: 1.1;
    }

    .hero-bg-wrapper {
        display: none;
        /* Hide original background on mobile */
    }

    .mobile-only-embed {
        display: block !important;
        width: 100%;
        height: 300px;
        /* Reduced height from 400px */
        margin-bottom: 1rem;
        overflow: hidden;
        /* Ensure canvas fits */
        position: relative;
    }

    .mobile-only-embed canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        transform: scale(2.5);
        /* Scale up to clip watermark */
        transform-origin: center center;
    }

    .hero-spacer {
        min-height: auto;
        flex-grow: 0;
    }

    /* Team / About */
    .about-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-title {
        font-size: 1.5rem !important;
        /* 24px */
        font-weight: 600 !important;
        text-align: center !important;
    }

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

    /* Mobile Footer Remake */
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 columns for Nav & Socials */
        gap: 1.5rem 1rem;
        /* Vertical & Horizontal gap */
    }

    .footer-col-newsletter {
        grid-column: 1 / -1;
        /* Full width */
    }

    /* Remove dividers and padding as requested */
    .footer-col,
    .footer-col-legal {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .footer-col-legal {
        grid-column: 1 / -1;
        /* Full width */
    }

    .footer-col-header {
        margin-bottom: 1rem;
        /* 16px as requested */
    }

    /* Legal Section Remake */
    .footer-legal {
        margin-top: 0;
        /* Reduced from 4rem */
        gap: 0.5rem;
    }

    .footer-disclaimer {
        margin-top: 1rem;
        /* Reduced from 1.5rem */
    }

    /* Ensure other cols like Nav & Social take 1fr naturally */

    .research-section {
        padding-top: 2rem;
    }

    .stories-section {
        padding: 40px 0;
    }

    .research-section .section-header {
        padding-bottom: 0;
        /* 0px */
    }

    /* Section Headings & Subtitles */
    .section-title {
        font-size: 1.5rem !important;
        /* 24px - Force override */
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.4 !important;
        /* 140% line height */
    }

    .section-subtitle {
        font-size: 0.875rem;
        /* 14px */
        margin-bottom: 8px;
    }

    /* Our Team Center Alignment */
    .scientists-header {
        text-align: center;
        align-items: center;
        gap: 0.5rem;
        /* Reduced Gap between Heading and Description */
    }

    .scientists-header .section-title {
        text-align: center;
        margin-bottom: 0;
        /* Remove extra margin if any */
    }

    .scientists-description {
        text-align: center;
        width: 100%;
        /* Ensure full width for centering */
    }

    .scientists-description p {
        text-align: center;
        font-size: 0.875rem;
        /* 14px */
        margin-top: 0.5rem;
        /* Add small margin between paragraphs if needed */
    }

    .scientists-section {
        padding-top: 0;
        padding-bottom: 2rem;
        /* 32px */
    }

    /* Marquees */
    .research-track,
    .scientists-track {
        gap: 2rem;
        /* Reduce gap */
    }

    .stories-marquee .marquee-track {
        display: flex;
        gap: 1rem;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1rem;
        /* Space for scrollbar if visible */
        animation: none;
        /* Disable CSS scroll animation, use JS */
    }

    .stories-marquee .marquee-track::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar */
    }

    .story-card {
        width: 85vw;
        /* Use viewport width directly */
        min-width: 0;
        /* Override desktop min-width */
        max-width: 350px;
        /* Limit maximum width */
        padding: 1rem;
        /* Decreased padding to reduce height */
        scroll-snap-align: center;
        flex-shrink: 0;
        /* Prevent shrinking */
        box-sizing: border-box;
        /* Ensure padding is included in width */
    }

    .story-quote {
        font-size: 1rem;
        /* 16px */
    }

    /* FAQ Section */
    .faq-section {
        padding-left: 1rem;
        /* 16px */
        padding-right: 1rem;
        /* 16px */
        padding-bottom: 3rem;
        /* 48px */
    }

    .faq-section .draggable-img {
        display: none;
        /* Hide decorative images on mobile */
    }

    .accordion-item summary {
        font-size: 1rem;
        /* 16px */
        padding: 0.5rem 0;
        /* 4px top/bottom, 0 left/right */
    }

    .accordion-item {
        margin: 0.5rem 0;
        /* 8px top/bottom */
    }

    .accordion {
        padding: 1rem;
        /* 16px all sides */
        margin-top: 1.5rem;
        /* 24px */
    }

    /* Footer */
    .site-footer {
        padding: 2.5rem 1.5rem;
    }

    .footer-col-newsletter {
        position: relative;
        z-index: 10;
        /* Appear on top of other footer sections */
    }

    .footer-bottom-brand {
        font-size: 18vw;
        bottom: -5vw;
    }

    /* Fix Potential Overflows */
    .blog-item {
        min-width: 280px;
        /* Reduce from 400px */
        max-width: 80vw;
        padding-right: 2rem;
    }

    .hero-desc-col {
        max-width: 100%;
        padding-left: 0;
    }

    .hero-footer-row {
        margin-top: 1rem;
        /* Reduced from 4rem */
        gap: 1rem;
        /* Reduced gap */
    }

    .hero-action-col {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .hero-action-col .btn {
        flex: 1;
        margin: 0;
        justify-content: center;
        text-align: center;
    }

    .research-marquee {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        padding-left: 1rem;
        /* Restore inner padding */
        padding-right: 1rem;
    }

    .stories-marquee {
        width: 100%;
        /* Full container width */
    }
}