/* ======================== */
/* 1. GLOBAL & RESET */
/* ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-2: #0e0e0e;
    --line: #1a1a1a;
    --dim: #333;
    --mid: #666;
    --text: #999;
    --bright: #ccc;
    --white: #e5e5e5;
}

/* REMOVED: scroll-behavior: smooth from html — handled in JS only where needed */

body {
    font-family: 'EB Garamond', Georgia, serif;
    background: var(--bg);
    color: var(--white);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ======================== */
/* FOCUS INDICATORS (A11Y) */
/* ======================== */

/* Global focus-visible: visible ring for keyboard users, hidden for mouse clicks */
:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* Fallback for browsers without :focus-visible support */
@supports not selector(:focus-visible) {
    :focus {
        outline: 2px solid rgba(255, 255, 255, 0.85);
        outline-offset: 3px;
    }
    /* Hide focus ring on mouse click */
    :focus:not(:focus-visible) {
        outline: none;
    }
}

/* Buttons, links, nav items: consistent ring */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Split panels: inset ring so it doesn't clip outside the viewport */
.split-panel:focus-visible {
    outline-offset: -4px;
}

/* Form inputs: replace outline:none with visible focus state */
.contact-form .form-group input:focus-visible,
.contact-form .form-group select:focus-visible,
.contact-form .form-group textarea:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 1px;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Contact panel (light bg): dark focus ring */
.contact-panel-form .form-group input:focus-visible,
.contact-panel-form .form-group select:focus-visible,
.contact-panel-form .form-group textarea:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.6);
    outline-offset: 1px;
    border-color: #111;
    background: #fff;
}

/* Submit buttons: ring + subtle glow */
.contact-form .form-submit:focus-visible,
.contact-panel-submit:focus-visible,
.cta-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* Nav items */
.nav button.nav-btn:focus-visible,
.footer-nav button.footer-nav-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Social icons: circular ring */
.footer-social a:focus-visible,
.splash-footer-social a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Hamburger menu */
.hamburger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

/* Legal/footer links */
.footer-legal a:focus-visible,
.splash-footer-legal a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Close button on contact panel (dark ring on light bg) */
.contact-panel-close:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.6);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Screen reader only: visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loader */
.loader {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--bg);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-text {
    font-size: 18px;
    font-style: italic;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: loaderPulse 1.5s ease infinite;
}

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

.loader.done {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease 1s;
}

/* ======================== */
/* 2. SPLIT HOMEPAGE (DESKTOP) */
/* ======================== */
.split-home {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Inner viewport wrapper: holds all the splash content at exactly 100vh */
.split-home-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.split-home.hidden {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 1.2s, opacity 0.5s ease 0.7s; 
}

/* Logo centered */
.split-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.split-home.loaded .split-logo {
    opacity: 1;
    transition-delay: 0.3s;
}

.split-home.transitioning .split-logo {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-box {
    width: 200px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-box img {
    width: 100%;
    height: auto;
}

/* Divider */
.split-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
    pointer-events: none;
}

.split-divider svg {
    width: 100%;
    height: 100%;
}

.split-divider line {
    stroke: rgba(255,255,255,0.12);
    stroke-width: 0.15;
}

.split-home.loaded .split-divider {
    opacity: 1;
}

.split-home.transitioning .split-divider {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Panels */
.split-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    cursor: pointer;
    /* OPTIMIZED: will-change removed from default state, applied via .animating class */
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
    overflow: hidden;
}

/* will-change applied only when animation is about to happen */
.split-panel.animating {
    will-change: transform;
}

.split-panel-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
    background: url('flag-sm.webp') center center / cover no-repeat;
}

/* Fallback for browsers without WebP */
.no-webp .split-panel-bg {
    background-image: url('flag-sm.jpg');
}

.split-panel-bg::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.94);
    transition: background 0.4s ease;
}

.split-panel-bg:hover::after {
    background: rgba(0, 0, 0, 0.90);
}

.split-label {
    position: absolute;
    top: 50%;
    font-size: 32px; /* fallback for browsers without clamp() */
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
    transition: font-weight 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.split-home.loaded .split-label {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.split-label:hover {
    font-weight: 600;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.08);
}

/* Mobile Specific Home Nav */
.mobile-home-nav {
    display: none;
    position: absolute;
    top: 60%; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    text-align: center;
}

.mobile-home-nav-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-home-nav span.nav-link {
    pointer-events: auto;
    cursor: pointer;
    font-size: 22px;
    font-style: normal !important;
    color: #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    padding: 15px 5px;
    transition: opacity 0.3s;
    white-space: nowrap; 
}

.mobile-home-nav span.nav-link:hover {
    opacity: 0.7;
}

.mobile-home-nav .slash {
    font-size: 55px;
    font-weight: 300;
    font-style: normal !important;
    color: rgba(255,255,255,0.4);
    line-height: 0; 
    display: block;
    transform: translateY(-5px); 
}

.split-home.loaded .mobile-home-nav {
    opacity: 1;
}

.split-home.transitioning .mobile-home-nav {
    opacity: 0;
}

/* Desktop Split Logic */
.split-left {
    left: 0;
    -webkit-clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
    clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
}

.split-left .split-panel-bg { left: 0; }
.split-left .split-label {
    right: 52%;
    margin-right: 130px;
    transform: translateY(-50%);
    transform-origin: right center;
}

.split-left .split-label:hover {
    transform: translateY(-50%) scale(1.08);
}

.split-right {
    right: 0;
    -webkit-clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
}

.split-right .split-panel-bg { right: 0; }
.split-right .split-label {
    left: 52%;
    margin-left: 130px;
    transform: translateY(-50%);
    transform-origin: left center;
}

.split-right .split-label:hover {
    transform: translateY(-50%) scale(1.08);
}

/* Peel Animations */
.split-home.peel-political .split-left,
.split-home.peel-corporate .split-left,
.split-home.peel-contact .split-left {
    transform: translateX(-120%) rotate(-4deg);
}

.split-home.peel-political .split-right,
.split-home.peel-corporate .split-right,
.split-home.peel-contact .split-right {
    transform: translateX(120%) rotate(4deg);
}

.split-home.closing .split-left,
.split-home.closing .split-right {
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ======================== */
/* 3. MAIN CONTENT STRUCTURE */
/* ======================== */
.main-content {
    opacity: 1;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.main-content.visible {
    pointer-events: auto;
}

.page-wipe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 400;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-wipe.wipe-active {
    transform: scaleX(1);
    transform-origin: left;
}

.page-wipe.wipe-exit {
    transform: scaleX(0);
    transform-origin: right;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 70%, transparent 100%);
}

.header-logo {
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.header-logo:hover { opacity: 1; }
.header-logo img { height: 60px; width: auto; }

.nav { display: flex; gap: 50px; }
.nav span,
.nav button.nav-btn {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    font-style: italic;
    color: var(--white);
    cursor: pointer;
    opacity: 0.65; /* A11Y: was 0.5 (~4.1:1); 0.65 clears AA for inactive nav */
    transition: opacity 0.3s ease;
    letter-spacing: 0.1em;
    background: none;
    border: none;
    padding: 0;
}
.nav span:hover, .nav span.active,
.nav button.nav-btn:hover, .nav button.nav-btn.active { opacity: 1; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 600;
    background: none;
    border: none;
    padding: 0;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 550;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 30px;
}
.mobile-nav-link {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 28px;
    font-style: italic;
    color: var(--white);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    background: none;
    border: none;
    padding: 0;
}
.mobile-nav.active .mobile-nav-link { transform: translateY(0); }
.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-link:hover, .mobile-nav-link.active { opacity: 1; }

/* ======================== */
/* 4. SECTIONS & HERO */
/* ======================== */
.section {
    min-height: 100vh;
    display: none;
    position: relative;
}
.section.active { display: block; }

.section-video-bg {
    position: fixed;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120vh;
    z-index: -1;
    overflow: hidden;
}
.section-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-video-bg::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.7);
}

.section-content {
    position: relative;
    z-index: 10;
    padding: 160px 50px 80px;
}

/* Hero Styles */
.corporate, .political { background: transparent; }
.corporate .section-content, .political .section-content { padding: 0; }

.corporate .section-header, .political .section-header {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
    position: relative;
    padding: 0 20px;
}

.corporate .section-label, .political .section-label {
    position: absolute;
    top: 140px; 
    left: 50px;
}

.corporate .section-title, .political .section-title {
    text-align: center;
    max-width: 900px;
    font-size: 60px;
    font-size: clamp(40px, 6vw, 75px);
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* Content Backdrop */
/* OPTIMIZED: backdrop-filter only on desktop (removed from mobile via media query) */
.content-backdrop {
    background: rgba(10, 10, 10, 0.85);
    padding: 80px 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 100%;
}

.corporate .services-list, .corporate .founder-section, .corporate .trusted-section, .corporate .quote-section, .corporate .section-cta,
.political .services-list, .political .founder-section, .political .trusted-section, .political .quote-section, .political .section-cta {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Standard Section Header Elements */
.section-label {
    font-size: 14px;
    font-style: italic;
    color: var(--text);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}
.section-label.show { opacity: 1; transform: translateY(0); }

.section-title .word {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.1em;
}
.section-title .word span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.section-title.show .word span { transform: translateY(0); opacity: 1; }
.section-title .word:nth-child(1) span { transition-delay: 0.05s; }
.section-title .word:nth-child(2) span { transition-delay: 0.1s; }
.section-title .word:nth-child(3) span { transition-delay: 0.15s; }
.section-title .word:nth-child(4) span { transition-delay: 0.2s; }
.section-title .word:nth-child(5) span { transition-delay: 0.25s; }

/* Services */
.services-list { margin-bottom: 80px; }
.service-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 50px;
    padding: 35px 0;
    border-top: 1px solid var(--line);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease, border-color 0.3s ease;
}
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item.show { opacity: 1; transform: translateY(0); }
.service-item:hover { border-color: var(--dim); }
.service-name { font-size: 28px; font-style: italic; color: var(--white); }
.service-desc { font-size: 24px; color: var(--bright); line-height: 1.6; }

/* Founder Section */
.founder-section {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding: 60px 0;
}
.founder-image {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
    max-width: 450px;
    margin: 0;
    width: 100%;
}
.founder-image.show { opacity: 1; transform: translateX(0); }
.founder-image img { width: 100%; height: auto; display: block; filter: grayscale(20%); transition: filter 0.4s ease; }
.founder-image:hover img { filter: grayscale(0%); }
.founder-content { opacity: 0; transform: translateX(30px); transition: all 0.8s ease 0.2s; }
.founder-content.show { opacity: 1; transform: translateX(0); }
.founder-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text); margin-bottom: 20px; }
.founder-name { font-size: 40px; font-size: clamp(32px, 4vw, 48px); font-style: italic; font-weight: 400; color: var(--white); margin-bottom: 15px; }
.founder-title { font-size: 18px; font-style: italic; color: var(--text); margin-bottom: 30px; }
.founder-bio { font-size: 18px; color: var(--bright); line-height: 1.7; }

/* Trusted & Marquee */
.trusted-section { margin-bottom: 80px; }
.trusted-label { font-size: 14px; font-style: italic; color: var(--text); margin-bottom: 25px; text-transform: uppercase; letter-spacing: 0.1em; }
.trusted-marquee { overflow: hidden; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); }
.trusted-marquee:hover .trusted-track { animation-play-state: paused; }
.trusted-track { display: flex; gap: 80px; animation: trustedScroll 20s linear infinite; }
@keyframes trustedScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.trusted-name { font-size: 32px; font-style: italic; color: var(--white); white-space: nowrap; transition: opacity 0.3s ease; }
.trusted-name:hover { opacity: 0.7; }

/* A11Y (WCAG 2.2.2): accessible pause/play control for the marquee */
.trusted-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.trusted-header .trusted-label { margin-bottom: 0; }
.marquee-toggle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 18px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}
.marquee-toggle:hover { background: var(--white); color: var(--bg); }
.trusted-track.paused { animation-play-state: paused; }

/* Quote */
.quote-section { text-align: center; padding: 80px 0; margin-bottom: 60px; }
.quote-text { font-size: 36px; font-size: clamp(28px, 3.5vw, 44px); font-style: italic; line-height: 1.4; max-width: 800px; margin: 0 auto; color: var(--white); opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.quote-text.show { opacity: 1; transform: translateY(0); }

/* CTA */
.section-cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 50px; background: rgba(255,255,255,0.03); margin-top: 60px; gap: 35px; }
.cta-text { font-size: 36px; font-size: clamp(28px, 4vw, 42px); font-style: italic; color: var(--white); opacity: 0; transform: translateY(10px); transition: all 0.5s ease; }
.cta-text.show { opacity: 1; transform: translateY(0); }
.cta-btn { font-family: 'EB Garamond', Georgia, serif; font-size: 18px; font-style: italic; color: var(--white); background: transparent; border: 1px solid var(--white); padding: 20px 60px; cursor: pointer; position: relative; overflow: hidden; transition: all 0.4s ease; opacity: 0; transform: translateY(10px); letter-spacing: 0.1em; }
.cta-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--white); transition: left 0.4s ease; z-index: -1; }
.cta-btn.show { opacity: 1; transform: translateY(0); }
.cta-btn:hover { color: var(--bg); border-color: var(--white); }
.cta-btn:hover::before { left: 0; }

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; min-height: 70vh; align-items: start; }
.contact-info { padding-top: 40px; }
.contact-title { font-size: 50px; font-size: clamp(40px, 5vw, 60px); font-weight: 400; font-style: italic; margin-bottom: 20px; color: var(--white); opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.contact-title.show { opacity: 1; transform: translateY(0); }
.contact-subtitle { font-size: 14px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text); margin-bottom: 10px; opacity: 0; transform: translateY(20px); transition: all 0.6s ease 0.05s; }
.contact-subtitle.show { opacity: 1; transform: translateY(0); }
.contact-desc { font-size: 18px; color: var(--text); line-height: 1.7; margin-bottom: 50px; max-width: 400px; font-style: italic; opacity: 0; transform: translateY(20px); transition: all 0.6s ease 0.1s; }
.contact-desc.show { opacity: 1; transform: translateY(0); }
.contact-details { display: flex; flex-direction: column; gap: 30px; opacity: 0; transform: translateY(20px); transition: all 0.6s ease 0.2s; }
.contact-details.show { opacity: 1; transform: translateY(0); }
.contact-item { display: flex; flex-direction: column; gap: 5px; }
.contact-label { font-size: 12px; font-style: italic; color: var(--text); text-transform: uppercase; letter-spacing: 0.15em; }
.contact-item a, .contact-item span:not(.contact-label) { font-size: 22px; font-style: italic; color: var(--white); text-decoration: none; transition: opacity 0.3s ease; }
.contact-item a:hover { opacity: 0.7; }

/* Contact Form Styles (Shared) */
.contact-form-wrapper { background: rgba(255,255,255,0.03); padding: 50px; opacity: 0; transform: translateY(20px); transition: all 0.6s ease 0.3s; }
.contact-form-wrapper.show { opacity: 1; transform: translateY(0); }
.contact-form .form-group { margin-bottom: 30px; }
.contact-form .form-group label { display: block; font-size: 13px; font-weight: 600; font-style: normal; color: var(--bright); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-form .form-group input, .contact-form .form-group select, .contact-form .form-group textarea { width: 100%; padding: 15px; font-family: 'EB Garamond', Georgia, serif; font-size: 18px; font-style: italic; color: var(--white); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.2); outline: none; transition: border-color 0.3s ease, background 0.3s ease; }
.contact-form .form-group input:focus:not(:focus-visible), .contact-form .form-group select:focus:not(:focus-visible), .contact-form .form-group textarea:focus:not(:focus-visible) { outline: none; }
.contact-form .form-group input::placeholder, .contact-form .form-group textarea::placeholder { color: rgba(255, 255, 255, 0.55); font-style: italic; }
.contact-form .form-group input:focus, .contact-form .form-group select:focus, .contact-form .form-group textarea:focus { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.contact-form .form-group textarea { resize: none; min-height: 120px; }
.contact-form .form-group select option { background: var(--bg); }

.contact-form .form-submit { font-family: 'EB Garamond', Georgia, serif; font-size: 18px; font-style: italic; color: var(--white); background: transparent; border: 1px solid var(--white); padding: 15px 60px; margin-top: 20px; cursor: pointer; position: relative; overflow: hidden; transition: all 0.4s ease; letter-spacing: 0.1em; text-transform: uppercase; width: auto; display: inline-block; }
.contact-form .form-submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--white); transition: left 0.4s ease; z-index: -1; }
.contact-form .form-submit:hover { color: var(--bg); border-color: var(--white); }
.contact-form .form-submit:hover::before { left: 0; }

/* Footer */
.footer { padding: 35px 50px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); background: #000; }
.footer-logo img { height: 45px; width: auto; opacity: 0.9; }

.footer-nav { display: flex; gap: 40px; }
.footer-nav button.footer-nav-btn {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    font-style: italic;
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    padding: 0;
}
.footer-nav button.footer-nav-btn:hover { opacity: 1; }

.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--white); opacity: 0.6; transition: opacity 0.3s ease; }
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 20px; height: 20px; }
.footer-contact { font-size: 14px; font-style: italic; color: var(--white); }
.footer-contact a { color: var(--white); text-decoration: none; transition: opacity 0.3s ease; }
.footer-contact a:hover { opacity: 0.7; }

/* Legal links row */
.footer-legal {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-legal a {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    letter-spacing: 0.03em;
}
.footer-legal a:hover { opacity: 1; }
.footer-legal .legal-sep {
    color: rgba(255,255,255,0.15);
    font-size: 13px;
    user-select: none;
}
.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #7a7a7a;
    letter-spacing: 0.03em;
}

/* Splash footer (inside split-home, below viewport) */
.splash-footer {
    position: relative;
    z-index: 40;
    background: #000;
    border-top: 1px solid var(--line);
    padding: 40px 50px 30px;
    text-align: center;
}
.splash-footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 25px;
}
.splash-footer-social a {
    color: var(--white);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.splash-footer-social a:hover { opacity: 1; }
.splash-footer-social svg { width: 18px; height: 18px; }
.splash-footer-contact {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
}
.splash-footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.splash-footer-contact a:hover { opacity: 0.7; }
.splash-footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 15px;
}
.splash-footer-legal a {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    letter-spacing: 0.03em;
}
.splash-footer-legal a:hover { opacity: 1; }
.splash-footer-copyright {
    font-size: 11px;
    color: #7a7a7a;
    letter-spacing: 0.03em;
}

/* Splash scroll hint: subtle down arrow at bottom of viewport */
.splash-scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease 1.5s;
    pointer-events: none;
}
.split-home.loaded .splash-scroll-hint {
    opacity: 0.4;
}
.split-home.transitioning .splash-scroll-hint {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.splash-scroll-hint svg {
    width: 16px;
    height: 16px;
    stroke: var(--white);
    animation: splashBounce 2.5s ease infinite;
}
@keyframes splashBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); }
    60% { transform: translateY(3px); }
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    animation: bounceHint 2s infinite;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}
.scroll-hint-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.7);
}
.scroll-hint-icon {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    position: relative;
}
.scroll-hint-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}
@keyframes bounceHint {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes scrollDot {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 18px; }
}

/* ======================== */
/* 5. CONTACT PANEL */
/* ======================== */
.contact-panel-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.contact-panel-overlay.active { 
    opacity: 1 !important; 
    pointer-events: auto;
}

.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 550px;
    max-width: 100%;
    height: 100vh; 
    height: 100dvh; 
    background: #fff;
    z-index: 9999; 
    transform: translate3d(100%, 0, 0); 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5); 
}
.contact-panel.active { 
    transform: translate3d(0, 0, 0) !important; 
}

.contact-panel-inner { padding: 60px 50px; color: #111; }
.contact-panel-close { position: absolute; top: 25px; right: 25px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.contact-panel-close svg { width: 24px; height: 24px; stroke: #111; transition: transform 0.3s ease; }
.contact-panel-close:hover svg { transform: rotate(90deg); }
.contact-panel-title { font-size: 32px; font-size: clamp(26px, 4vw, 36px); font-weight: 700; font-family: 'EB Garamond', Georgia, serif; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -0.02em; opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }
.contact-panel.active .contact-panel-title { opacity: 1; transform: translateY(0); }
.contact-panel-subtitle { font-size: 14px; text-transform: uppercase; letter-spacing: 0.15em; color: #666; margin-bottom: 8px; opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
.contact-panel.active .contact-panel-subtitle { opacity: 1; transform: translateY(0); }
.contact-panel-desc { font-size: 16px; color: #333; line-height: 1.6; margin-bottom: 40px; font-family: 'EB Garamond', Georgia, serif; font-style: italic; opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s; }
.contact-panel.active .contact-panel-desc { opacity: 1; transform: translateY(0); }
.contact-panel-form .form-group { margin-bottom: 28px; opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-panel.active .contact-panel-form .form-group:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.contact-panel.active .contact-panel-form .form-group:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.contact-panel.active .contact-panel-form .form-group:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.contact-panel.active .contact-panel-form .form-group:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.contact-panel.active .contact-panel-form .form-group:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.contact-panel.active .contact-panel-form .form-group:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.contact-panel-form .form-group label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: #111; margin-bottom: 10px; }
.contact-panel-form .form-group input, .contact-panel-form .form-group select, .contact-panel-form .form-group textarea { width: 100%; padding: 16px 18px; font-family: 'EB Garamond', Georgia, serif; font-size: 16px; color: #111; background: #f5f5f5; border: 1px solid #e0e0e0; outline: none; transition: border-color 0.3s ease, background 0.3s ease; }
.contact-panel-form .form-group input:focus:not(:focus-visible), .contact-panel-form .form-group select:focus:not(:focus-visible), .contact-panel-form .form-group textarea:focus:not(:focus-visible) { outline: none; }
.contact-panel-form .form-group input::placeholder, .contact-panel-form .form-group textarea::placeholder { color: #6a6a6a; }
.contact-panel-form .form-group input:focus, .contact-panel-form .form-group select:focus, .contact-panel-form .form-group textarea:focus { border-color: #111; background: #fff; }
.contact-panel-form .form-group textarea { resize: vertical; min-height: 120px; }
.contact-panel-form .form-group select { cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.contact-panel-submit { display: inline-block; padding: 18px 50px; font-family: 'EB Garamond', Georgia, serif; font-size: 15px; font-weight: 500; color: #fff; background: #111; border: none; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.65s, background 0.3s ease; }
.contact-panel.active .contact-panel-submit { opacity: 1; transform: translateY(0); }
.contact-panel-submit:hover { background: #333; }

/* ======================== */
/* 6. RESPONSIVE QUERIES */
/* ======================== */
@media (max-width: 900px) {
    .section-header { flex-direction: column; gap: 25px; }
    .section-title { text-align: left; }
    .section-content { padding: 120px 25px 60px; }
    
    .corporate .section-header, .political .section-header { padding: 0 25px; }
    .corporate .section-label, .political .section-label { top: 100px; left: 25px; }
    .corporate .section-title, .political .section-title { font-size: 42px; font-size: clamp(32px, 8vw, 50px); }
    .content-backdrop {
        padding: 60px 25px;
        /* OPTIMIZED: Remove expensive backdrop-filter on mobile */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 10, 0.95);
    }
    .corporate .services-list, .corporate .founder-section, .corporate .trusted-section, .corporate .quote-section, .corporate .section-cta,
    .political .services-list, .political .founder-section, .political .trusted-section, .political .quote-section, .political .section-cta { padding-left: 25px; padding-right: 25px; }

    .founder-section { grid-template-columns: 1fr; gap: 40px; }
    .founder-image { max-width: 400px; margin: 0 auto; }
    .founder-content { text-align: center; }

    .split-panel { width: 100% !important; height: 50% !important; }
    .split-left { top: 0 !important; bottom: auto !important; -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; }
    .split-right { top: auto !important; bottom: 0 !important; -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; }
    .split-panel-bg { width: 100%; height: 100vh; }
    .split-left .split-panel-bg { top: 0; }
    .split-right .split-panel-bg { bottom: 0; }
    
    .split-label { display: none !important; }
    .mobile-home-nav { display: block !important; }
    .split-home.loaded .split-label { transform: translateX(-50%) !important; }
    .split-logo { z-index: 50; }
    .split-divider { display: none; }

    .split-home.peel-political .split-left, .split-home.peel-corporate .split-left, .split-home.peel-contact .split-left { transform: translateY(-120%) rotate(-2deg); }
    .split-home.peel-political .split-right, .split-home.peel-corporate .split-right, .split-home.peel-contact .split-right { transform: translateY(120%) rotate(2deg); }

    .header { padding: 20px 25px; }
    .header-logo img { height: 50px; }
    .nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: block; }

    .service-item { grid-template-columns: 1fr; gap: 12px; }
    .clients-row { flex-direction: column; gap: 25px; }
    .clients-names { align-items: flex-start; }
    .stats-row { flex-direction: column; gap: 35px; }
    .section-cta { flex-direction: column; gap: 25px; text-align: center; }
    .trusted-name { font-size: 24px; }
    .trusted-track { gap: 50px; }
    .marquee { padding: 25px 0; }
    .marquee-item { font-size: 18px; }
    
    .contact-layout { grid-template-columns: 1fr; gap: 50px; }
    .contact-form-wrapper { padding: 30px; }
    .contact-info { padding-top: 20px; }
    .contact-title { font-size: 36px; font-size: clamp(30px, 8vw, 40px); }
    .contact-details { gap: 25px; }
    .contact-item a, .contact-item span:not(.contact-label) { font-size: 18px; }
    
    .footer { padding: 30px 25px; flex-direction: column; gap: 30px; text-align: center; }
    .footer-logo { order: 1; }
    .footer-nav { order: 2; flex-direction: column; gap: 15px; }
    .footer-social { order: 3; }
    .footer-contact { font-size: 14px; order: 4; }
    .footer-legal { order: 5; gap: 6px 16px; }
    .footer-copyright { order: 6; }

    .splash-footer { padding: 30px 25px 25px; }
    .splash-footer-legal { gap: 4px 14px; }
    
    .contact-panel { width: 100%; }
    .contact-panel-inner { padding: 50px 25px; padding-bottom: 120px; }
    .contact-panel-title { font-size: 26px; font-size: clamp(22px, 6vw, 30px); }
}

@media (max-width: 600px) {
    .header { padding: 15px 20px; }
    .header-logo img { height: 45px; }
    .section-content { padding: 100px 20px 50px; }
    .section-cta { padding: 30px 20px; }
    .footer { padding: 25px 20px; }
    .footer-logo img { height: 30px; }
    .footer-contact { font-size: 13px; }
    .logo-box { width: 160px; }
    .split-label { font-size: 24px; font-size: clamp(22px, 6vw, 28px); letter-spacing: 0.2em; }
    .service-name { font-size: 20px; }
    .service-desc { font-size: 14px; }
    .section-label { font-size: 12px; }
    .section-title { font-size: 30px; font-size: clamp(26px, 7vw, 36px); }
    .cta-text { font-size: 22px; font-size: clamp(20px, 5vw, 26px); }
    .cta-btn { font-size: 14px; }
    .contact-panel-inner { padding: 40px 20px 100px; }
    .contact-panel-close { top: 15px; right: 15px; }
    .contact-panel-form .form-group input, .contact-panel-form .form-group select, .contact-panel-form .form-group textarea { padding: 14px 15px; font-size: 16px; }
    .contact-panel-submit { padding: 16px 40px; font-size: 14px; width: 100%; }
    .contact-form-wrapper { padding: 25px 20px; }
    .contact-form .form-group input, .contact-form .form-group select, .contact-form .form-group textarea { padding: 12px 0; font-size: 16px; }
    .contact-form .form-submit { width: 100%; text-align: center; }
    .marquee-item { font-size: 16px; }
    .marquee-track { gap: 30px; }
    .stat-num { font-size: 40px; }
    .stat-label { font-size: 12px; }
    .client-name { font-size: 20px; }
    .clients-label { font-size: 12px; }
}

@media (max-width: 380px) {
    .header-logo img { height: 40px; }
    .split-label { font-size: 20px; }
    .logo-box { width: 140px; }
    .footer-logo img { height: 28px; }
    .footer-contact { font-size: 12px; }
}

/* Skip-to-content link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--white);
    color: var(--bg);
    padding: 10px 20px;
    z-index: 10000;
    font-size: 16px;
}
.skip-link:focus {
    top: 0;
}

/* ======================== */
/* 7. COMPATIBILITY & A11Y */
/* ======================== */

/* Color scheme: tells browser this is a dark page (proper scrollbar/form control colors) */
:root {
    color-scheme: dark;
}

/* Flexbox gap fallback for Safari < 14.1 using margin-based spacing */
@supports not (gap: 1px) {
    .nav > * + * { margin-left: 50px; }
    .mobile-home-nav-inner > * + * { margin-left: 10px; }
    .mobile-nav-inner > * + * { margin-top: 30px; }
    .footer-nav > * + * { margin-left: 40px; }
    .footer-social > * + * { margin-left: 20px; }
    .footer-legal > * + * { margin-left: 24px; }
    .splash-footer-social > * + * { margin-left: 24px; }
    .splash-footer-legal > * + * { margin-left: 20px; }
    .contact-details > * + * { margin-top: 30px; }
    .contact-item > * + * { margin-top: 5px; }
    .scroll-hint > * + * { margin-top: 10px; }
    .service-item { column-gap: 0; margin-right: 50px; }
    .trusted-track > * + * { margin-left: 80px; }
}

/* Prefers reduced motion: disable all animations and transitions */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .loader {
        display: none !important;
    }

    .split-panel {
        transition: none !important;
    }

    .page-wipe {
        transition: none !important;
    }

    .split-logo,
    .split-label,
    .mobile-home-nav {
        opacity: 1 !important;
        transition: none !important;
    }

    .section-label,
    .section-title .word span,
    .service-item,
    .founder-image,
    .founder-content,
    .quote-text,
    .cta-text,
    .cta-btn,
    .contact-title,
    .contact-subtitle,
    .contact-desc,
    .contact-details,
    .contact-form-wrapper {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .contact-panel-title,
    .contact-panel-subtitle,
    .contact-panel-desc,
    .contact-panel-form .form-group,
    .contact-panel-submit {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .trusted-track {
        animation: none !important;
    }

    .scroll-hint {
        animation: none !important;
    }

    .scroll-hint-icon::before {
        animation: none !important;
    }

    .splash-scroll-hint svg {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    :root {
        --line: #444;
        --dim: #555;
        --mid: #888;
        --text: #bbb;
        --bright: #ddd;
        --white: #fff;
    }

    .split-panel-bg::after {
        background: rgba(0, 0, 0, 0.85);
    }

    .content-backdrop {
        background: rgba(10, 10, 10, 0.95);
    }

    .service-item {
        border-color: var(--dim);
    }

    .cta-btn,
    .contact-form .form-submit,
    .contact-panel-submit {
        border-width: 2px;
    }

    .contact-form .form-group input,
    .contact-form .form-group select,
    .contact-form .form-group textarea,
    .contact-panel-form .form-group input,
    .contact-panel-form .form-group select,
    .contact-panel-form .form-group textarea {
        border-width: 2px;
    }

    .nav span, .nav button.nav-btn {
        opacity: 0.7;
    }
    .nav span:hover, .nav span.active,
    .nav button.nav-btn:hover, .nav button.nav-btn.active {
        opacity: 1;
        text-decoration: underline;
    }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
    .cta-btn,
    .contact-form .form-submit,
    .contact-panel-submit {
        border: 2px solid ButtonText;
    }

    .cta-btn:hover,
    .contact-form .form-submit:hover {
        background: Highlight;
        color: HighlightText;
    }

    .split-panel-bg::after {
        background: Canvas;
    }

    .contact-panel {
        border-left: 2px solid ButtonText;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    .split-label:hover {
        font-weight: 400;
        text-shadow: none;
        transform: translateY(-50%);
    }

    .split-panel-bg:hover::after {
        background: rgba(0, 0, 0, 0.94);
    }

    /* Larger touch targets for interactive elements */
    .nav button.nav-btn {
        padding: 8px 4px;
    }

    .footer-nav button.footer-nav-btn {
        padding: 8px 4px;
    }
}

/* IE11 / older Edge fallback for CSS custom properties */
/* These browsers are essentially dead, but this prevents a completely broken layout */
@supports not (--a: 0) {
    body {
        background: #0a0a0a;
        color: #e5e5e5;
    }
    .service-item {
        border-color: #1a1a1a;
    }
    .section-label {
        color: #999;
    }
}

/* Safari-specific: ensure form controls render consistently */
input, select, textarea {
    -webkit-border-radius: 0;
    border-radius: 0;
}

/* Ensure select dropdown arrows work on Firefox */
.contact-form .form-group select,
.contact-panel-form .form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fix iOS zoom on input focus (font-size must be >= 16px) */
@media screen and (max-width: 600px) {
    .contact-form .form-group input,
    .contact-form .form-group select,
    .contact-form .form-group textarea,
    .contact-panel-form .form-group input,
    .contact-panel-form .form-group select,
    .contact-panel-form .form-group textarea {
        font-size: 16px;
    }
}

/* Print styles: basic readable output */
@media print {
    .loader,
    .split-home,
    .page-wipe,
    .header,
    .hamburger,
    .mobile-nav,
    .section-video-bg,
    .scroll-hint,
    .splash-scroll-hint,
    .contact-panel,
    .contact-panel-overlay,
    .footer-social,
    .cta-btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .main-content {
        pointer-events: auto;
    }

    .section {
        display: block !important;
        page-break-inside: avoid;
    }

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

    .content-backdrop {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 20px 0;
    }

    .service-item,
    .founder-image,
    .founder-content,
    .section-label,
    .section-title .word span,
    .quote-text,
    .cta-text,
    .contact-title,
    .contact-subtitle,
    .contact-desc,
    .contact-details,
    .contact-form-wrapper {
        opacity: 1 !important;
        transform: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}
