/* =============================================
   CHANGI INNOVATION LAB — STYLES
   Clean black / white / grey design system
   ============================================= */


/* ─── Design Tokens ────────────────────────── */
:root {
    --black: #000000;
    --white: #ffffff;
    --grey-light: #F5F5F5;
    --grey-mid: #E0E0E0;
    --grey-text: #666666;
    --grey-muted: #999999;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Section vertical padding */
    --section-pad: 96px;

    --transition: 200ms ease;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, .12);
    --radius-card: 8px;
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
}

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

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

ul {
    list-style: none;
}


/* ─── Layout helpers ────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-pad) 40px;
}

.container--narrow {
    max-width: 760px;
}

.center-text {
    text-align: center;
}

.section-white {
    background: var(--white);
}

.section-grey {
    background: var(--grey-light);
}

.section-header {
    margin-bottom: 56px;
}

.section-heading {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--grey-text);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--grey-mid);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--white);
    transition: color var(--transition);
    white-space: nowrap;
}

.navbar.scrolled .logo-text {
    color: var(--black);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a {
    color: var(--grey-text);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--black);
}

.btn-nav {
    background: var(--white) !important;
    color: var(--black) !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
    transition: opacity var(--transition);
}

.navbar.scrolled .btn-nav {
    background: var(--black) !important;
    color: var(--white) !important;
}

.btn-nav:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 1px;
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--black);
}


/* =============================================
   HERO
   ============================================= */

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .52) 0%,
            rgba(0, 0, 0, .38) 50%,
            rgba(0, 0, 0, .60) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(1.25);
    }
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.btn-hero {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 4px;
    transition: opacity var(--transition), transform var(--transition);
    margin-top: 8px;
}

.btn-hero:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}


/* =============================================
   ABOUT
   ============================================= */

.about-tagline {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--grey-text);
    margin: 12px 0 20px;
}

.about-desc {
    font-size: 1.0625rem;
    color: var(--grey-text);
    line-height: 1.8;
    margin-bottom: 56px;
}

/* Framework visual */
.framework {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 8px;
}

.framework-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 40px;
    background: var(--grey-light);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-card);
    flex: 1;
    max-width: 220px;
    text-align: center;
}

.fw-icon {
    width: 52px;
    height: 52px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fw-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
}

.fw-desc {
    font-size: 0.8125rem;
    color: var(--grey-text);
    line-height: 1.55;
}

.fw-arrow {
    color: var(--grey-mid);
    align-self: center;
    padding: 0 16px;
    flex-shrink: 0;
    margin-top: -8px;
}


/* =============================================
   OUR INNOVATION LABS (2×2 card grid)
   ============================================= */

.labs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.lab-card {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.lab-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.lab-icon {
    width: 56px;
    height: 56px;
    background: var(--black);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lab-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.lab-desc {
    font-size: 0.9375rem;
    color: var(--grey-text);
    line-height: 1.65;
}


/* =============================================
   VIDEO SHOWCASE (shared pattern)
   ============================================= */

/* .showcase background is set by .section-white / .section-grey on the element */
.showcase-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 48px;
}

.showcase-split--reverse {
    grid-template-columns: 2fr 3fr;
}

/* Visually swap info to the left on reverse */
.showcase-split--reverse .showcase-info {
    order: -1;
}

/* ── Media panel ── */
.showcase-media {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-hover);
}

.showcase-vid {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Ultra-wide videos: show full content without cropping */
.showcase-vid--contain {
    object-fit: contain;
    background: #000;
}

/* ── Info panel ── */
.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

/* Lab attribution badge */
.lab-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-text);
    background: var(--grey-mid);
    padding: 5px 12px;
    border-radius: 100px;
    align-self: flex-start;
}

.showcase-title {
    font-size: clamp(2rem, 3.5vw, 2.875rem);
    font-weight: 700;
    line-height: 1.05;
    margin-top: 4px;
}

.showcase-subtitle {
    font-size: 1.0625rem;
    color: var(--grey-text);
    font-weight: 500;
    margin-top: -8px;
}

.showcase-desc {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.8;
}

/* Black stat badge */
.stat-badge {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 100px;
    align-self: flex-start;
    margin-top: 4px;
}

/* ── Collaboration badge (Inspection Bot) ── */
.collab-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.collab-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--black);
    background: var(--grey-light);
    border: 1px solid var(--grey-mid);
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.collab-sep {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--grey-muted);
}

.collab-note {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-muted);
    margin-bottom: 4px;
}

/* ── Side-by-side comparison images ── */
.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid var(--grey-mid);
}

.compare-item {
    cursor: zoom-in;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--grey-mid);
    transition: box-shadow var(--transition), transform var(--transition);
}

.compare-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.compare-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.compare-item:hover img {
    transform: scale(1.03);
}

.compare-label {
    display: block;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-text);
    background: var(--grey-light);
    border-top: 1px solid var(--grey-mid);
    transition: color var(--transition);
}

.compare-item:hover .compare-label {
    color: var(--black);
}


/* ── Three-column compare row ── */
.compare-row--three {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Video compare item ── */
.compare-item--video {
    cursor: pointer;
}

.compare-video-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.compare-item--video:hover .compare-video-preview {
    transform: scale(1.03);
}

.compare-label .play-icon {
    display: inline-block;
    margin-right: 4px;
    font-size: 0.75em;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .compare-row--three {
        grid-template-columns: repeat(2, 1fr);
    }

    .compare-row--three .compare-item--video {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .compare-row--three {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   MORE INNOVATIONS (product cards)
   ============================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-card-img {
    aspect-ratio: 16 / 9;
    background: var(--grey-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-lab-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-text);
    background: var(--grey-light);
    border: 1px solid var(--grey-mid);
    padding: 4px 10px;
    border-radius: 100px;
    align-self: flex-start;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 4px;
}

.product-subtitle {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #444;
    margin-top: -2px;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--grey-text);
    line-height: 1.7;
    flex: 1;
    margin-top: 4px;
}

.product-stat {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 100px;
    align-self: flex-start;
    margin-top: 8px;
}


/* =============================================
   IMPACT STATS BANNER
   ============================================= */

.stats-banner {
    background: var(--black);
    color: var(--white);
}

.stats-banner .container {
    padding-top: 80px;
    padding-bottom: 80px;
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 32px;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-lbl {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey-muted);
    margin-top: 10px;
}

.stat-div {
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, .12);
    flex-shrink: 0;
}


/* =============================================
   LEADERSHIP
   ============================================= */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.leader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-card);
    padding: 48px 40px;
    box-shadow: var(--shadow-card);
}

.leader-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
    border: 3px solid var(--white);
    outline: 1px solid var(--grey-mid);
    flex-shrink: 0;
}

.leader-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 4px;
}

.leader-role {
    font-size: 0.9375rem;
    color: var(--grey-text);
    line-height: 1.5;
}

.leader-quote {
    font-style: italic;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.75;
    max-width: 440px;
    border: none;
    padding: 0;
    margin: 8px 0 0;
}

.leader-quote::before {
    content: '"';
}

.leader-quote::after {
    content: '"';
}


/* =============================================
   TEAM
   ============================================= */

/* ══════════════════════════════════════════
   MEET THE TEAM — Grouped by Lab
   ══════════════════════════════════════════ */

/* Container for all lab groups */
.lab-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual lab group */
.lab-group {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    text-align: center;
}

/* Lab group title */
.lab-group-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--grey-mid);
}

/* Row 1: Team Lead — centered */
.lab-lead-row {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--grey-light);
}

/* Row 2: Members — centered flex wrap */
.lab-members-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Base Team Card */
.team-card {
    background: transparent;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 140px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: rgba(0, 0, 0, .02);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
    z-index: 10;
}

.team-card:hover::before {
    opacity: 1;
}

/* Team Lead Card — slightly larger */
.team-card--lead {
    width: 160px;
    padding: 20px 16px;
}

.team-card--lead .team-photo {
    width: 110px;
    height: 110px;
}

.team-card--lead .team-name {
    font-size: 1rem;
}

/* Team Photo — circular portrait */
.team-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid var(--grey-light);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.team-card:hover .team-photo {
    border-color: var(--black);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
    transform: scale(1.08);
}

/* Vacant placeholder photo */
.team-photo--vacant {
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--grey-mid);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.vacant-icon {
    font-size: 32px;
    font-weight: 700;
    color: var(--grey-text);
}

/* Vacant card styling */
.team-card--vacant {
    opacity: 0.7;
}

.team-card--vacant .team-name {
    color: var(--grey-text);
    font-style: italic;
}

.vacant-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    background: #E53E3E;
    padding: 3px 8px;
    border-radius: 100px;
    margin-top: 8px;
}

/* Team Name */
.team-name {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Team Role */
.team-role {
    font-size: 0.6875rem;
    color: var(--grey-text);
    line-height: 1.4;
    min-height: 2.8em;
}


/* Clickable lab group title */
a.lab-group-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--grey-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

a.lab-group-title:hover {
    color: #444;
    border-bottom-color: var(--black);
}

.lab-link-arrow {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

a.lab-group-title:hover .lab-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

a.lab-group-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.3s ease;
}

a.lab-group-title:hover::after {
    width: 50%;
}


/* ══════════════════════════════════════════
   AWARDS SECTION
   ══════════════════════════════════════════ */

.awards-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.award-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 12px 8px 16px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.award-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    background: var(--white);
}

.award-image-wrapper {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.award-card:hover .award-image-wrapper {
    transform: scale(1.08);
}

.award-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.award-card:hover .award-image {
    filter: grayscale(0%);
}

.award-year-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.award-card:hover .award-year-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.awards-footnote {
    text-align: center;
    font-size: 0.875rem;
    color: var(--grey-text);
    margin-top: 40px;
    font-style: italic;
}

@media (min-width: 1200px) {
    .awards-row {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .award-card {
        width: 75px;
    }

    .award-image-wrapper {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1400px) {
    .awards-row {
        gap: 20px;
    }

    .award-card {
        width: 85px;
    }

    .award-image-wrapper {
        width: 78px;
        height: 78px;
    }
}

@media (max-width: 1024px) {
    .awards-row {
        gap: 12px;
        max-width: 700px;
    }

    .award-card {
        width: 70px;
        padding: 10px 6px 14px;
    }

    .award-image-wrapper {
        width: 66px;
        height: 66px;
    }

    .award-year-label {
        font-size: 0.625rem;
        padding: 4px 10px;
    }
}

@media (max-width: 768px) {
    .awards-row {
        gap: 8px;
        max-width: 400px;
        padding: 10px 0;
    }

    .award-card {
        width: 60px;
        padding: 8px 4px 12px;
    }

    .award-image-wrapper {
        width: 58px;
        height: 58px;
    }

    .award-year-label {
        font-size: 0.5625rem;
        padding: 3px 8px;
        bottom: -6px;
    }

    .award-card:hover {
        transform: translateY(-8px);
    }

    .awards-footnote {
        font-size: 0.75rem;
        margin-top: 32px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .awards-row {
        gap: 6px;
        max-width: 320px;
    }

    .award-card {
        width: 55px;
        padding: 6px 3px 10px;
    }

    .award-image-wrapper {
        width: 54px;
        height: 54px;
    }
}


/* =============================================
   PARTNERS
   ============================================= */

.partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.partner-logo {
    background: var(--white);
    border: 1px solid var(--grey-mid);
    border-radius: var(--radius-card);
    padding: 20px 36px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--grey-text);
    letter-spacing: 0.03em;
    transition: color var(--transition), box-shadow var(--transition), transform var(--transition);
    min-width: 140px;
    text-align: center;
}

.partner-logo:hover {
    color: var(--black);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}


/* =============================================
   CONTACT + FOOTER
   ============================================= */

.contact-section {
    background: var(--black);
    color: var(--white);
}

.contact-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, .5);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.btn-contact {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background var(--transition), border-color var(--transition);
}

.btn-contact:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .55);
}

.footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

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

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, .3);
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, .3);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, .7);
}


/* =============================================
   UNIVERSAL MEDIA LIGHTBOX
   ============================================= */

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.media-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.media-lb-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: .55;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 10;
}

.media-lb-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Content wrapper */
.media-lb-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image mode */
.media-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
    display: none;
    /* shown via JS */
}

/* Video mode */
.media-lb-video-wrap {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
    display: none;
    /* shown via JS */
    background: #000;
}

.media-lb-video {
    width: min(85vw, 1200px);
    max-height: 80vh;
    display: block;
    background: #000;
}

/* Caption */
.media-lb-caption {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .4);
    text-align: center;
    max-width: 640px;
}

/* ── Clickable showcase videos ── */
.showcase-vid {
    cursor: pointer;
}

/* Play-icon overlay on showcase media — always visible, hides on hover */
.showcase-media::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 28px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

/* Hide play icon on hover */
.showcase-media:hover::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── Clickable product card images ── */
.product-card-img {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .media-lightbox {
        padding: 20px;
    }

    .media-lb-close {
        top: 10px;
        right: 14px;
        font-size: 2.25rem;
    }

    .media-lb-img,
    .media-lb-video-wrap {
        max-height: 70vh;
    }

    .media-lb-video {
        max-height: 70vh;
    }
}


/* =============================================
   RPA PILLAR GALLERY
   ============================================= */

.rpa-pillar-section .container {
    padding-bottom: 0;
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
    padding-bottom: 48px;
}

.pillar-card {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.pillar-card:hover {
    box-shadow: var(--shadow-hover);
}

.pillar-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pillar-header--blue   { background: #2563EB; }
.pillar-header--green  { background: #059669; }
.pillar-header--purple { background: #7C3AED; }
.pillar-header--orange { background: #D97706; }

.pillar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.pillar-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    background: rgba(0, 0, 0, .2);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.pillar-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pillar-slides {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.pillar-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pillar-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pillar-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pillar-slides:hover .pillar-slide.is-active img {
    transform: scale(1.03);
}

.pillar-slide-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    pointer-events: none;
}

.pillar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--grey-light);
}

.pillar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grey-mid);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition), width var(--transition);
    flex-shrink: 0;
}

.pillar-dot.is-active {
    background: var(--black);
    width: 20px;
    border-radius: 4px;
}

.pillar-dot:hover:not(.is-active) {
    background: #aaa;
    transform: scale(1.25);
}

/* Dots container (inside pillar-nav) */
.pillar-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Arrow buttons */
.pillar-arrow {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pillar-arrow:hover {
    background: var(--black);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pillar-arrow:active {
    transform: scale(0.95);
}

.pillar-arrow--prev { margin-right: 12px; }
.pillar-arrow--next { margin-left: 12px; }

@media (max-width: 768px) {
    .pillar-arrow { width: 28px; height: 28px; }
    .pillar-arrow--prev { margin-right: 8px; }
    .pillar-arrow--next { margin-left: 8px; }
}

@media (max-width: 480px) {
    .pillar-arrow { width: 26px; height: 26px; }
}

@media (max-width: 900px) {
    .pillar-grid { grid-template-columns: 1fr; }
}


/* =============================================
   RPA WORKFLOW LIGHTBOX
   ============================================= */

.rpa-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rpa-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.rpa-lb-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: .5;
    transition: opacity var(--transition);
    padding: 4px;
}

.rpa-lb-close:hover {
    opacity: 1;
}

.rpa-lb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 90vw;
    max-height: 90vh;
}

.rpa-lb-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.rpa-lb-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rpa-lb-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
}

.rpa-lb-desc {
    font-size: 0.9375rem;
    color: #ccc;
    max-width: 560px;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .rpa-lightbox { padding: 24px 16px; }
    .pillar-slide-label { font-size: 0.75rem; }
}


/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================
   RESPONSIVE — 1024px
   ============================================= */

@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .showcase-split,
    .showcase-split--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Reset info order to follow media on mobile */
    .showcase-split--reverse .showcase-info {
        order: unset;
    }

    .compare-row {
        margin-top: 0;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 560px;
        margin: 0 auto;
    }

    .stats-inner {
        flex-wrap: wrap;
        gap: 40px;
    }

    .stat-div {
        display: none;
    }

    .stat-item {
        flex: 1 1 30%;
    }

    .partners-row {
        gap: 12px;
    }

    .partner-logo {
        padding: 16px 24px;
        min-width: 110px;
    }

    /* Gallery: 2 items visible */
    .gallery-outer {
        padding: 0 56px;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 12px);
    }

    /* RPA lightbox nav */
    .rpa-lb-prev {
        left: 10px;
    }

    .rpa-lb-next {
        right: 10px;
    }

    .rpa-lightbox {
        padding: 40px 60px;
    }
}


/* =============================================
   RESPONSIVE — 768px (mobile)
   ============================================= */

@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Framework steps: stack vertically */
    .framework {
        flex-direction: column;
        align-items: center;
    }

    .fw-arrow {
        transform: rotate(90deg);
        padding: 0;
        margin: 4px 0;
    }

    .framework-step {
        max-width: 100%;
        width: 100%;
    }

    /* Labs: single column */
    .labs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Product cards: single column */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Compare images: stack vertically */
    .compare-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Stats */
    .stats-banner .container {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .stat-item {
        flex: 1 1 45%;
    }

    /* Team: tighten spacing on tablet */
    .lab-groups {
        gap: 32px;
    }

    .lab-group {
        padding: 24px 16px;
    }

    .team-card {
        width: 120px;
    }

    .team-card--lead {
        width: 140px;
    }

    .team-photo {
        width: 77px;
        height: 77px;
    }

    .team-card--lead .team-photo {
        width: 99px;
        height: 99px;
    }

    .team-photo--vacant {
        width: 99px;
        height: 99px;
    }

    .lab-members-row {
        gap: 12px;
    }

    .lab-group-title {
        font-size: 1rem;
    }

    .team-name {
        font-size: 0.8125rem;
    }

    .team-role {
        font-size: 0.625rem;
    }

    /* Partners: 2 per row */
    .partners-row {
        gap: 12px;
    }

    .partner-logo {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
    }

    /* Gallery: 1 item visible, hide arrows (use swipe) */
    .gallery-outer {
        padding: 0 20px;
    }

    .gallery-item {
        flex: 0 0 100%;
    }

    .gallery-arrow {
        display: none;
    }

    /* RPA lightbox: compact on mobile */
    .rpa-lightbox {
        padding: 20px 16px;
    }

    .rpa-lb-prev {
        left: 6px;
    }

    .rpa-lb-next {
        right: 6px;
    }

    .rpa-lb-nav {
        width: 40px;
        height: 40px;
    }

    .rpa-lb-img {
        max-height: 55vh;
    }

    .rpa-lb-title {
        font-size: 1.125rem;
    }

    .rpa-lb-desc {
        font-size: 0.875rem;
    }

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

    .hero-headline {
        font-size: 2.125rem;
    }

    .hero-content {
        padding: 0 20px;
    }
}


/* =============================================
   RESPONSIVE — 480px (small phones)
   ============================================= */

@media (max-width: 480px) {
    :root {
        --section-pad: 56px;
    }

    .hero-headline {
        font-size: 1.875rem;
    }

    .stat-item {
        flex: 1 1 100%;
    }

    .partner-logo {
        flex: 1 1 100%;
    }

    .leader-photo {
        width: 160px;
        height: 160px;
    }

    .leader-card {
        padding: 32px 24px;
    }
}

/* Team: mobile — 1 column */
@media (max-width: 768px) {
    .lab-groups {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lab-group {
        padding: 24px 20px;
    }

    .team-card {
        width: 100px;
        padding: 12px 8px;
    }

    .team-card--lead {
        width: 120px;
    }

    .team-photo {
        width: 66px;
        height: 66px;
    }

    .team-card--lead .team-photo {
        width: 88px;
        height: 88px;
    }

    .team-photo--vacant {
        width: 88px;
        height: 88px;
    }

    .lab-members-row {
        gap: 8px;
    }
}

/* Team: small mobile */
@media (max-width: 480px) {
    .team-card {
        width: 90px;
    }

    .team-card--lead {
        width: 110px;
    }

    .team-photo {
        width: 62px;
        height: 62px;
    }

    .team-card--lead .team-photo {
        width: 79px;
        height: 79px;
    }

    .team-photo--vacant {
        width: 79px;
        height: 79px;
    }

    .vacant-icon {
        font-size: 24px;
    }
}


/* =============================================
   CAG LOGO — navbar
   ============================================= */

.cag-logo {
    height: 32px;
    width: auto;
    display: block;
    /* white version on transparent hero; JS adds .scrolled → invert for dark text nav */
    filter: brightness(0) invert(1);
    transition: filter var(--transition);
    flex-shrink: 0;
}

.navbar.scrolled .cag-logo {
    filter: none;
    /* full-colour on white nav */
}

.logo-divider {
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, .4);
    flex-shrink: 0;
    transition: background var(--transition);
}

.navbar.scrolled .logo-divider {
    background: var(--grey-mid);
}

@media (max-width: 480px) {
    .cag-logo {
        height: 26px;
    }

    .logo-text {
        font-size: 0.875rem;
    }
}


/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    background: #111;
    color: var(--white);
    padding: 18px 40px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}

.cookie-text a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity var(--transition);
}

.cookie-btn:hover {
    opacity: 0.8;
}

.cookie-btn--accept {
    background: var(--white);
    color: var(--black);
}

.cookie-btn--decline {
    background: transparent;
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .3);
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 18px 20px;
    }

    .cookie-banner-inner {
        gap: 16px;
    }

    .cookie-text {
        font-size: 0.8125rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


/* =============================================
   FEEDBACK WIDGET — right-side sticky
   ============================================= */

.feedback-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7000;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
}

.feedback-tab {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    padding: 16px 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    border-radius: 6px 0 0 6px;
    transition: background var(--transition);
    flex-shrink: 0;
}

.feedback-tab:hover {
    background: #333;
}

.feedback-panel {
    width: 340px;
    background: var(--white);
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 32px rgba(0, 0, 0, .18);
    overflow: hidden;
    /* Hidden state */
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-width 0.35s ease, opacity 0.3s ease;
}

.feedback-panel.is-open {
    max-width: 340px;
    opacity: 1;
    pointer-events: auto;
}

.feedback-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--grey-mid);
}

.feedback-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.feedback-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--grey-muted);
    padding: 0;
    transition: color var(--transition);
}

.feedback-close:hover {
    color: var(--black);
}

.feedback-form {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: -6px;
}

.feedback-input,
.feedback-textarea,
.feedback-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-family: var(--font-body);
    border: 1px solid var(--grey-mid);
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    transition: border-color var(--transition);
    outline: none;
}

.feedback-input:focus,
.feedback-textarea:focus,
.feedback-select:focus {
    border-color: var(--black);
}

.feedback-textarea {
    resize: vertical;
    min-height: 90px;
}

.feedback-submit {
    margin-top: 4px;
    padding: 10px 0;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: opacity var(--transition);
}

.feedback-submit:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .feedback-panel {
        width: calc(100vw - 44px);
    }

    .feedback-panel.is-open {
        max-width: calc(100vw - 44px);
    }
}


/* ══════════════════════════════════════════
   MEGA MENU OVERLAY
   ══════════════════════════════════════════ */

.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mega-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mega-menu-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: opacity 0.2s ease;
    z-index: 10000;
}

.mega-menu-close:hover {
    opacity: 0.6;
}

.mega-menu-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    flex: 1;
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-menu-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grey-mid);
}

.mega-menu-link {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--black);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mega-menu-link:hover {
    color: var(--grey-text);
    padding-left: 8px;
}

.mega-menu-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--grey-mid);
    text-align: center;
}

.mega-menu-footer p {
    font-size: 0.75rem;
    color: var(--grey-text);
}

@media (max-width: 1024px) {
    .mega-menu-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .mega-menu-container {
        padding: 80px 24px 40px;
    }

    .mega-menu-nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mega-menu-close {
        top: 16px;
        right: 16px;
    }
}


/* ══════════════════════════════════════════
   NEWS TICKER BAR
   ══════════════════════════════════════════ */

.ticker-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
    height: 40px;
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 80s linear infinite;
}

.ticker-set {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-bar:hover .ticker-content {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(-50%);
    }
}

a.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-body);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

a.ticker-item:hover {
    color: #fff;
}

a.ticker-item:hover .ticker-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ticker-badge {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 3px;
    flex-shrink: 0;
    color: #fff;
}

.ticker-badge--new {
    background: #10B981;
}

.ticker-badge--update {
    background: #3B82F6;
}

.ticker-badge--award {
    background: #F59E0B;
}

.ticker-badge--hiring {
    background: #EF4444;
    animation: pulse-badge 2s ease-in-out infinite;
}

.ticker-badge--live {
    background: #8B5CF6;
}

.ticker-badge--partner {
    background: #06B6D4;
}

.ticker-badge--event {
    background: #EC4899;
}

.ticker-badge--milestone {
    background: #F97316;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.ticker-text {
    color: rgba(255, 255, 255, .85);
    transition: color 0.2s ease;
}

a.ticker-item:hover .ticker-text {
    color: #fff;
}

.ticker-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .2);
    margin: 0 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ticker-bar {
        top: 52px;
        height: 36px;
    }

    a.ticker-item {
        font-size: 0.75rem;
        padding: 0 20px;
        gap: 8px;
    }

    .ticker-badge {
        font-size: 0.5rem;
        padding: 2px 6px;
    }

    .ticker-content {
        animation-duration: 60s;
    }
}

/* ══════════════════════════════════════════
   BACKGROUND MUSIC TOGGLE
   ══════════════════════════════════════════ */

.music-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.music-toggle:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.music-toggle:active {
    transform: scale(0.95);
}

.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle pulse animation when music is playing */
.music-toggle.is-playing {
    animation: music-pulse 2s ease-in-out infinite;
}

@keyframes music-pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.1);
    }
}

/* Mobile: slightly smaller and tighter to corner */
@media (max-width: 768px) {
    .music-toggle {
        width: 44px;
        height: 44px;
        bottom: 20px;
        left: 20px;
    }

    .music-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* ══════════════════════════════════════════
   COMPARE VIDEO PLAY ICON
   ══════════════════════════════════════════ */

/* Wrapper for compare videos with play icon */
.compare-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Play icon overlay */
.compare-video-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

/* Hide play icon on hover (video is playing) */
.compare-video-wrapper:hover::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Ensure video fills wrapper */
.compare-video-wrapper .compare-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive - smaller play icon on mobile */
@media (max-width: 768px) {
    .compare-video-wrapper::after {
        width: 44px;
        height: 44px;
        background-size: 20px;
    }
}

/* ══════════════════════════════════════════
   SECURITY — Disable Media Interactions
   ══════════════════════════════════════════ */

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

img, video {
    -webkit-touch-callout: none;
}

.hero-bg img,
.section-bg img {
    pointer-events: none;
}
