/* ========================================
   PerceptioLab — Stylesheet
   ======================================== */

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

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-surface: #111111;
    --dark-border: #1a1a1a;
    --gray-800: #1f1f1f;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-500: #555555;
    --gray-400: #888888;
    --gray-300: #aaaaaa;
    --gray-200: #cccccc;
    --white: #ffffff;
    --accent: #6fcbdc;
    --accent-dark: #4ABFED;
    --accent-deep: #3a9fcb;

    /* Ecru palette */
    --ecru-1: #FAF7F0;
    --ecru-2: #F5F0E6;
    --ecru-3: #EDE7D9;
    --ecru-4: #E6DFD0;
    --ecru-5: #DDD5C4;
    --ecru-border-light: #E8E1D3;
    --ecru-border: #D9D1C1;
    --ecru-text: #1a1a1a;
    --ecru-text-secondary: #4a453c;
    --ecru-text-muted: #7a7367;

    /* Cyan ribbon */
    --ribbon-bg: #6fcbdc;
    --ribbon-bg-dark: #ffffff;
    --ribbon-text: #ffffff;
    --ribbon-border: #5DCAF2;

    --font: Helvetica, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: Helvetica, 'Helvetica Neue', Arial, sans-serif;
    --nav-height: 120px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.section-heading {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}

.section-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 600px;
}

.section-body + .section-body {
    margin-top: 1rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: #ffffff;
    border-bottom: none;
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

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

.nav-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.logo-perceptio {
    color: var(--white);
}

.logo-lab {
    color: var(--white);
}

.logo-a {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

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

.nav-links a.nav-active {
    color: var(--black);
}

.nav-cta {
    transition: all 0.2s ease !important;
}

.nav-cta:hover {
    color: var(--accent) !important;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 5, 5, 0.97);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 240px;
    backdrop-filter: blur(20px);
    z-index: 100;
    flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.825rem;
    color: var(--gray-300);
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-dropdown-menu a:hover {
    color: var(--white);
    background: rgba(74, 191, 237, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

/* --- Hero (stays dark) --- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('Company image2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: invert(1) saturate(0) contrast(1.4) brightness(0.2);
    mix-blend-mode: screen;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 191, 237, 0.08);
    z-index: 1;
}

.hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    align-items: start;
    padding: calc(var(--nav-height) + 5.8rem) 4rem calc(3.2vh + 5.8rem);
    gap: 2rem;
    max-width: 1120px;
    margin: 0 auto;
    width: 80%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: center;
    z-index: 2;
}

.hero-logo-wrap {
    margin-bottom: 1rem;
}

.hero-logo-img {
    width: clamp(1646px, 188vw, 2822px);
    height: auto;
    display: block;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
}

.hero-text-panel {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border-left: 1px solid rgba(74, 191, 237, 0.2);
    padding-left: 3rem;
    justify-content: flex-start;
}

.hero-cta-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-left: 1px solid rgba(74, 191, 237, 0.2);
    padding-left: 3rem;
    padding-top: 3.5rem;
    z-index: 2;
}

.hero-panel-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-panel-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero-panel-body {
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.65;
    margin-bottom: 0.65rem;
}

.hero-panel-body:last-child {
    margin-bottom: 0;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.68vw, 1.5rem);
    color: #ffffff;
    line-height: 1.75;
    max-width: none;
    margin: 0 0 1.25rem;
    font-weight: 700;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-actions .btn-primary,
.hero-actions .btn-outline {
    background: #6fcbdc;
    color: var(--black);
    border: none;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-outline:hover {
    background: #4ABFED;
    color: var(--black);
    transform: translateY(-1px);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gray-500), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@media (max-width: 900px) {
    .hero {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .hero-split {
        grid-template-columns: 1fr;
        padding: calc(var(--nav-height) + 2.5rem) 2rem 5rem 1rem;
        gap: 0.5rem;
        min-height: auto;
    }

    .hero-left {
        align-items: flex-start;
        text-align: left;
    }

    .hero-logo-wrap {
        overflow: visible;
        height: auto;
        position: relative;
        width: 182%;
        left: 0;
        transform: none;
        margin-top: 1rem;
    }

    .hero-logo-img {
        position: relative;
        width: 100%;
        left: 0;
        top: 0.75rem;
        transform: none;
        margin-left: 0;
    }

    .hero-cta-panel {
        align-items: flex-start;
        text-align: left;
        border-left: none;
        padding-left: 0;
        border-top: none;
        padding-top: 0;
        position: relative;
        margin-top: -6.75rem;
    }

    .hero-cta-panel::before {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.79rem;
        margin: 0 0 1.25rem;
        white-space: normal;
        text-align: left;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        max-width: none;
    }

    .hero-actions {
        justify-content: flex-start;
        margin-left: 4px;
    }

    .hero-actions .btn {
        width: 127px;
        text-align: center;
    }

    .globe-canvas {
        max-width: 340px;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--white);
    transform: translateY(-1px);
}

/* Outline button on light backgrounds */
.btn-outline-dark {
    background: transparent;
    color: var(--ecru-text);
    border: 1px solid var(--ecru-border);
}

.btn-outline-dark:hover {
    border-color: var(--ecru-text);
    transform: translateY(-1px);
}

/* Button on cyan ribbon */
.btn-ribbon {
    background: var(--white);
    color: var(--accent-deep);
    font-weight: 700;
}

.btn-ribbon:hover {
    background: var(--ecru-1);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* =============================================
   ECRU SECTION SYSTEM
   ============================================= */

.section {
    padding: 4rem 0;
}

/* Media ribbon */
.media-ribbon-section {
    background: var(--ecru-3);
    border-top: 1px solid var(--ecru-border);
    border-bottom: 1px solid var(--ecru-border);
    padding: 2.5rem 0;
    overflow: hidden;
}

.media-ribbon-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ecru-text-muted);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.media-ribbon-mask {
    overflow: hidden;
    width: 100%;
}

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

.media-ribbon-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 40s linear infinite;
}

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

.media-ribbon-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 0 14px;
    height: 56px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.media-ribbon-item img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .media-ribbon-item {
        padding: 8px 14px;
        margin: 0 8px;
        height: 46px;
    }
    .media-ribbon-item img {
        height: 24px;
        max-width: 100px;
    }
    .media-ribbon-track {
        animation-duration: 30s;
    }
}

/* Ecru shades for alternating sections */
.section-ecru-1 {
    background: var(--ecru-1);
    color: var(--ecru-text);
}

.section-ecru-2 {
    background: var(--ecru-2);
    color: var(--ecru-text);
}

.section-ecru-3 {
    background: var(--ecru-3);
    color: var(--ecru-text);
}

.section-ecru-4 {
    background: var(--ecru-4);
    color: var(--ecru-text);
}

.section-ecru-5 {
    background: var(--ecru-5);
    color: var(--ecru-text);
}

/* Text colors on ecru backgrounds */
.section-ecru-1 .section-heading,
.section-ecru-2 .section-heading,
.section-ecru-3 .section-heading,
.section-ecru-4 .section-heading,
.section-ecru-5 .section-heading {
    color: var(--ecru-text);
}

.section-ecru-1 .section-body,
.section-ecru-2 .section-body,
.section-ecru-3 .section-body,
.section-ecru-4 .section-body,
.section-ecru-5 .section-body {
    color: var(--ecru-text-secondary);
}

.section-ecru-1 .label-text,
.section-ecru-2 .label-text,
.section-ecru-3 .label-text,
.section-ecru-4 .label-text,
.section-ecru-5 .label-text {
    color: var(--ecru-text-muted);
}

.section-ecru-1 .label-tag,
.section-ecru-2 .label-tag,
.section-ecru-3 .label-tag,
.section-ecru-4 .label-tag,
.section-ecru-5 .label-tag {
    color: var(--accent-deep);
}

/* --- Cyan Ribbon (bottom CTA + footer) --- */
.section-ribbon {
    padding: 6rem 0;
    background: var(--ribbon-bg);
    color: var(--ribbon-text);
}

.section-ribbon .section-heading {
    color: var(--white);
}

.section-ribbon .section-body {
    color: rgba(255, 255, 255, 0.85);
}

.footer-ribbon {
    padding: 4rem 0 2rem;
    background: var(--ribbon-bg-dark);
    color: var(--ecru-text);
    border-top: 1px solid #e0e0e0;
}

.footer-ribbon .footer-tagline {
    color: var(--ecru-text-secondary);
}

.footer-ribbon .footer-links-group h4 {
    color: var(--ecru-text-muted);
}

.footer-ribbon .footer-links-group a {
    color: var(--ecru-text-secondary);
}

.footer-ribbon .footer-links-group a:hover {
    color: var(--black);
}

.footer-ribbon .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-ribbon .footer-bottom p {
    color: var(--ecru-text-muted);
}

/* --- Section Grid Layout --- */
.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.label-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.label-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Page Header (inner pages) --- */
.page-header {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 4rem;
    background: var(--black);
    color: var(--white);
    border-bottom: 1px solid var(--dark-border);
}

.page-header-about,
.page-header-drm,
.page-header-insight,
.page-header-contact {
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.page-header-about::before,
.page-header-drm::before,
.page-header-insight::before,
.page-header-contact::before,
.page-header-legal::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('Company image2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: invert(1) saturate(0) contrast(1.4) brightness(0.2);
    mix-blend-mode: screen;
    z-index: 0;
}

.page-header-about::after,
.page-header-drm::after,
.page-header-insight::after,
.page-header-contact::after,
.page-header-legal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 191, 237, 0.08);
    z-index: 1;
}

.page-header-about .container,
.page-header-drm .container,
.page-header-insight .container,
.page-header-contact .container,
.page-header-legal .container {
    position: relative;
    z-index: 2;
}

.page-header-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.page-header-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 700px;
    color: var(--white);
}

/* =============================================
   SERVICE SECTIONS (Home page)
   ============================================= */

.service-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--ecru-border-light);
}

/* Ecru service variants */
.service-ecru-1 { background: var(--ecru-1); color: var(--ecru-text); }
.service-ecru-2 { background: var(--ecru-2); color: var(--ecru-text); }
.service-ecru-3 { background: var(--ecru-3); color: var(--ecru-text); }
.service-ecru-4 { background: var(--ecru-4); color: var(--ecru-text); }

.service-block {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
}

.service-header {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    align-self: start;
    text-align: right;
}

.service-number {
    display: none;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--ecru-text);
}

.service-icon {
    margin-top: 1rem;
    color: var(--accent);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--ecru-text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 620px;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-detail {
    padding: 0.765rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.service-detail:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--ecru-border);
}

.service-detail h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ecru-text);
}

.service-detail p {
    font-size: 0.875rem;
    color: var(--ecru-text-muted);
    line-height: 1.65;
}

.service-cta {
    margin-top: 1.25rem;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    background: var(--accent);
    color: var(--black);
    border: 1.5px solid var(--accent);
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-service:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* =============================================
   CTA BANNER
   ============================================= */

.cta-block {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-block .section-body {
    margin: 0 auto 2rem;
}

.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
}

.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--white);
}

.cta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.cta-body {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.cta-email-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta-email-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .cta-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.ribbon-logo-img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    mix-blend-mode: screen;
}

.footer-logo-img {
    width: auto;
    height: 56px;
    display: block;
    margin-bottom: 1rem;
    margin-left: 0;
}

/* =============================================
   ABOUT PAGE — Team
   ============================================= */

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

.team-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--ecru-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.team-photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--ecru-3), var(--ecru-4));
}

.team-info {
    padding: 1.75rem;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--ecru-text);
}

.team-role {
    font-size: 0.8125rem;
    color: var(--accent-deep);
    font-weight: 500;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--ecru-text-muted);
    line-height: 1.65;
}

/* =============================================
   ABOUT PAGE — Leader Profile (image left, bio right)
   ============================================= */

.leader-profile {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 860px;
}

.leader-photo {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    text-align: left;
}

.leader-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--ecru-3), var(--ecru-5));
    border-radius: 6px;
    border: 1px solid var(--ecru-border);
    margin-bottom: 0.75rem;
}

.leader-photo-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

.leader-photo-img:hover {
    filter: grayscale(0);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    display: block;
}

.leader-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ecru-text);
    margin-bottom: 0.6rem;
    margin-top: 1rem;
}

.leader-role {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.02em;
    display: block;
}

.leader-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.leader-linkedin:hover {
    color: var(--accent-dark);
}

.leader-bio {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.leader-bio p {
    font-size: 0.875rem;
    color: var(--ecru-text-secondary);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .leader-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .leader-photo {
        position: static;
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 1.25rem;
        align-items: center;
    }

    .leader-photo-placeholder,
    .leader-photo-img {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .leader-photo {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ABOUT PAGE — Values
   ============================================= */

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

.value-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--ecru-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.value-icon {
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ecru-text);
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--ecru-text-muted);
    line-height: 1.7;
}

/* =============================================
   ABOUT PAGE — Media
   ============================================= */

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

/* Carousel */
.media-carousel {
    position: relative;
}

.media-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.media-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
}

.media-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 1rem;
    align-items: start;
}

.media-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.media-card-thumb {
    width: 100px;
    height: 80px;
    background: var(--ecru-border-light);
    border-radius: 4px;
    border: 1px solid var(--ecru-border);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(200,195,185,0.3));
}

.media-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: none;
    border: 1.5px solid var(--ecru-text);
    color: var(--ecru-text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover {
    background: var(--ecru-text);
    color: var(--ecru-1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ecru-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background: var(--ecru-text);
    transform: scale(1.3);
}

/* =============================================
   IN THE MEDIA — Appearance Cards
   ============================================= */

.media-appearances-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-appearance-card {
    display: flex;
    flex-direction: column;
    width: 180px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.media-appearance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-color: var(--ecru-border);
}

.media-appearance-thumb {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
}

.media-appearance-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-appearance-text {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-top: 1px solid var(--ecru-border-light);
}

.carousel-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ecru-text);
    letter-spacing: 0.05em;
    min-width: 50px;
    text-align: center;
}

.media-card:hover {
    border-color: var(--ecru-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.media-source {
    font-size: 0.75rem;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.media-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
    color: var(--ecru-text);
}

.media-date {
    font-size: 0.8125rem;
    color: var(--ecru-text-muted);
}

.media-link {
    font-size: 0.875rem;
    color: var(--ecru-text-muted);
    transition: color 0.2s ease;
}

.media-card:hover .media-link {
    color: var(--accent-deep);
}

/* =============================================
   HOME PAGE — Latest Insight
   ============================================= */

#latest-insight .media-card-new-date {
    display: block;
    margin-top: 0.75rem;
}

.latest-insight-photos {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    margin-left: calc(200px + 2rem);
    max-width: 560px;
}

.insight-photo {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--ecru-border-light);
    background: rgba(255, 255, 255, 0.55);
}

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

.insight-photo:hover img {
    transform: scale(1.02);
}

.latest-insight-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .latest-insight-photos,
    .latest-insight-cta {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .latest-insight-cta {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 2.5rem;
    }

    .latest-insight-cta .btn-service {
        width: 100%;
        justify-content: flex-start;
    }

    #latest-insight .media-card-new:not(:first-child) {
        display: none;
    }

    .date-month {
        display: none;
    }
}


/* =============================================
   DRM PAGE
   ============================================= */

.drm-image-placeholder {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    overflow: hidden;
    padding: 2rem 0;
}

.drm-mockup-img {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.drm-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.drm-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    color: var(--ecru-text-secondary);
    line-height: 1.65;
}

.drm-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* --- Media grid (About page) --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.media-card-new {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.25s ease;
}

.media-card-new:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.media-card-new-thumb {
    width: 100%;
    height: 220px;
    background-color: var(--ecru-2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.media-card-new-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.5rem 1.5rem;
    flex-grow: 1;
}

.media-card-new-source {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.media-card-new-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ecru-text-secondary);
    margin: 0.2rem 0 auto;
    flex-grow: 1;
}

.media-card-new-date {
    font-size: 0.8125rem;
    color: var(--ecru-text-secondary);
    margin-top: 0.6rem;
}

.media-card-new-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.2rem;
}

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

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

/* --- Insight page --- */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.25s ease;
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.insight-card-thumb {
    width: 100%;
    height: 160px;
    background-color: var(--ecru-2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.insight-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.5rem 1.5rem;
    flex-grow: 1;
}

.insight-card-source {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.insight-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ecru-text);
    margin: 0.2rem 0 auto;
    flex-grow: 1;
}

.insight-card-date {
    font-size: 0.8125rem;
    color: var(--ecru-text-secondary);
    margin-top: 0.6rem;
}

.insight-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.2rem;
}

/* Pagination */
.insight-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.insight-page-btn {
    background: none;
    border: 1px solid var(--ecru-border-light);
    border-radius: 4px;
    padding: 0.5rem 1.1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ecru-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.insight-page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.insight-page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.insight-page-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.insight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ecru-border-light);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.insight-dot.active {
    background: var(--accent);
}

@media (max-width: 900px) {
    .insight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .insight-pagination {
        display: none;
    }
}

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

/* --- DRM mockup image --- */
.drm-image-placeholder {
    background: var(--ecru-1);
    border-radius: 6px;
    overflow: hidden;
}

.drm-mockup-img {
    display: block;
    width: 60%;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

/* --- DRM features grid --- */
.drm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.drm-feature-card {
    padding: 2rem 2rem 2.25rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--ecru-border-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.drm-feature-card:hover {
    border-color: var(--ecru-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.drm-feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ecru-text);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.drm-feature-card p {
    font-size: 0.9375rem;
    color: var(--ecru-text-muted);
    line-height: 1.7;
}

.drm-placeholder {
    display: flex;
    justify-content: center;
    padding: 6rem 0;
}

.drm-placeholder-inner {
    text-align: center;
    max-width: 440px;
}

.drm-placeholder-inner svg {
    margin: 0 auto 1.5rem;
    opacity: 0.6;
}

.drm-placeholder-inner h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--ecru-text-secondary);
}

.drm-placeholder-inner p {
    font-size: 0.9375rem;
    color: var(--ecru-text-muted);
    line-height: 1.65;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

/* Legal page */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--black);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.4rem;
}
.legal-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}
.legal-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.9rem;
    color: var(--dark);
}
.legal-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}
.legal-content ul li {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.4rem;
    color: var(--dark);
}
.legal-content ul ul {
    margin-top: 0.3rem;
    margin-left: 1.5rem;
}
.legal-toc {
    background: rgba(111, 203, 220, 0.1);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 2rem;
}
.legal-toc ol {
    margin: 0;
    padding-left: 1.25rem;
}
.legal-toc ol li {
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 600;
}
.legal-toc a {
    color: var(--black);
    text-decoration: none;
}
.legal-toc a:hover {
    color: var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-block h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ecru-text);
}

.contact-info-block p {
    font-size: 0.9375rem;
    color: var(--ecru-text-muted);
    line-height: 1.65;
}

.contact-email {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-deep);
    transition: opacity 0.2s ease;
}

.contact-email:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ecru-border);
    border-radius: 4px;
    color: var(--ecru-text-muted);
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--accent-deep);
    border-color: var(--accent-deep);
}

/* --- Contact Form on ecru --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8125rem;
    color: var(--ecru-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--white);
    border: 1px solid var(--ecru-border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: var(--ecru-text);
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7367' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =============================================
   FOOTER
   ============================================= */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links-group h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-group a {
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom {
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 968px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-label {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-header {
        position: static;
        text-align: center;
    }

    .service-icon {
        display: block;
        transform: scale(0.85);
        transform-origin: center center;
        margin: 1rem auto 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

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

    .drm-features-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-logo-img {
        height: 40px;
        margin-left: 0;
    }

    .footer-ribbon {
        overflow: hidden;
    }

    .footer-brand {
        max-width: 100%;
        text-align: left;
        position: relative;
        padding-top: 3rem;
    }

    .footer-logo {
        position: absolute;
        top: 0;
        left: calc(42vw + 75px);
        transform: translateX(-50%);
        margin-left: 0;
    }

    .footer-bottom p {
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .drm-mockup-img {
        width: 87%;
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        height: 40px;
        margin-left: 0;
    }

    .nav-logo {
        position: absolute;
        left: 42%;
        transform: translateX(-50%);
        margin-left: 0;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: 1.5rem;
        width: 140px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #e0e0e0;
        border-top: 2px solid var(--accent);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
        border-radius: 0 0 6px 6px;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        letter-spacing: 0.04em;
        text-align: right;
    }

    .nav-links a.nav-cta {
        color: var(--accent);
    }

    .hero-lab {
        margin-right: 0;
        align-self: center;
    }

    .section {
        padding: 5rem 0;
    }

    .service-section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding-top: calc(var(--nav-height) + 3rem);
        padding-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn {
        width: 127px;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 700px) {
    .media-card {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .media-card-thumb {
        order: -1;
        width: 100%;
        height: 160px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-line {
        animation: none;
        opacity: 0.5;
    }

    .service-detail,
    .media-card,
    .team-card,
    .value-card,
    .btn {
        transition: none;
    }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--black);
    color: #fff;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
#cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 260px;
}
.cookie-banner-text p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}
.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.cookie-btn {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept {
    background: var(--accent);
    color: var(--black);
}
.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.cookie-btn-customise {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Cookie preferences modal */
#cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
#cookie-modal.open {
    display: flex;
}
.cookie-modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    max-width: 520px;
    width: 90%;
    color: var(--black);
}
.cookie-modal-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cookie-modal-box p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-top: 1px solid #eee;
}
.cookie-row:last-of-type {
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}
.cookie-row-label strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.cookie-row-label span {
    font-size: 0.8rem;
    color: #777;
}
/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.25s;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}
.cookie-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
@media (max-width: 768px) {
  .logo {
    max-width: 140px;
    height: auto;
    width: 100%;
  }

  .hero-logo-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .hero-logo-img {
    content: url('PeceptiolabwhitetextLogo.svg');
    width: 140px;
    height: auto;
    object-fit: contain;
  }

  .hero-subtitle {
    margin-top: 8em;
    font-size: 105%;
  }

  .nav-logo-img {
    content: url('Mayfinalblacklogo.svg');
    width: 100px;
    height: auto;
  }

  .footer-logo-img {
    content: url('Mayfinalblacklogo.svg');
    width: 100px;
    height: auto;
  }
}