/* 
   SafeSimXR CSS Design System: Deep Sim
   ─────────────────────────────────────
   Primary:  Spandrel Amber   #f7941d  (only orange — all accents, CTAs, interactive)
   
   BG:       Deep Sim         #0B0F1A  (base dark)
   Surface:  Steel Blue       #162038  (cards, raised elements)
   Light:    Off White        #F0EDE6  (light sections)
   Neutral:  Steel Mist       #7A8FA0  (secondary text, supporting UI)
   ─────────────────────────────────────
   Headings: Space Grotesk
   Body:     Inter
*/

:root {
    /* Color Palette */
    --bg: #0B0F1A;
    --primary: #FF9015;       /* Spandrel amber — only orange throughout */
    --surface: #162038;
    --neutral: #7A8FA0;        /* Steel Mist neutral */
    --light: #F0EDE6;
    
    /* Functional Defaults */
    --text-primary: #FFFFFF;
    --text-secondary: var(--neutral);
    --accent-accessible: #c47010; /* Darker coral for light background contrast */
    
    /* Layout */
    --container-max: 1240px;
    --section-gap: 8rem;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.teal-text { color: var(--primary); }   /* primary brand orange */

/* Layout Containers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
}

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

section {
    padding: var(--section-gap) 0;
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    section { padding: 3rem 0; }
}

section.off-white {
    background-color: var(--light);
    color: var(--bg);
}

section.off-white h1, 
section.off-white h2, 
section.off-white h3 {
    color: var(--bg);
}

section.off-white p {
    color: #333; /* Improved contrast over default #0B0F1A with lower opacity */
}

/* Header & Nav */
header {
    height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

header .logo {
    margin-right: auto; /* Force to top left */
}

header .logo a {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.nav-links a:hover { opacity: 1; color: var(--primary); }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: var(--primary);
    color: var(--bg) !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(247, 148, 29, 0.2);
}

.btn-primary.large { padding: 1.1rem 2.2rem; font-size: 1.1rem; }

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }

.btn-secondary.large { padding: 1.1rem 2.2rem; font-size: 1.1rem; }

/* Hero */
#hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 4rem;
    overflow: hidden; /* Contain video */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better legibility */
    background: linear-gradient(180deg, rgba(11, 15, 26, 0.7) 0%, rgba(11, 15, 26, 0.95) 100%);
    z-index: 2;
}

#hero .container {
    position: relative;
    z-index: 3;
}

#hero h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    /* Clean text shadow for depth */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#hero .h2-sub {
    font-size: 1.5rem; /* Increased size */
    max-width: 850px;
    margin: 0 auto 4rem;
    opacity: 0.9;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}
/* Logo Scrolling Banner */
.logo-banner {
    background: #FFFFFF;
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    margin-top: auto;
    z-index: 10;
    /* Fade out effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-slider {
    display: flex;
    width: calc(300px * 10); /* Adjust based on logo count */
    animation: scroll 30s linear infinite;
}

.logo-slider img {
    height: 50px;
    width: auto;
    margin: 0 4rem;
    filter: none; /* Ensure original colors on white */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 5)); }
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}

.stat-card .stat-value {
    display: block;
    font-size: 4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-card .stat-title {
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card cite {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--neutral);
    display: block;
    margin-top: 1.5rem;
}

.stat-card.accent {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}
/* Reusable Utility for Typography Contrast */
h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.section-desc {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 0 3rem 0; /* Left align */
    opacity: 0.7;
}

#why-simulation .container {
    text-align: left;
}

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

@media (max-width: 768px) {
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 3rem;
    }
}

.offer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0; /* Changed to allow full-width images */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offer-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-container {
    width: 100%;
    height: 300px;
    background: #162038;
    position: relative;
    overflow: hidden;
}

.media-container img, .media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Implementation */
.carousel-wrapper {
    position: relative;
    margin: 4rem 0 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.carousel-slide.active {
    opacity: 1;
}

/* Controls row: no longer a flex row */
.carousel-controls {
    display: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(15, 20, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-prev { left: -28px; }
.carousel-next { right: -28px; }

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg);
}

.carousel-dots {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.offer-item {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative; /* Base for overlay */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
}

@media (max-width: 992px) {
    .offer-item { flex-direction: column; min-height: auto; }
}

.offer-item .media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.offer-item .media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.offer-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(11, 15, 26, 0.97) 0%, rgba(11, 15, 26, 0.85) 50%, rgba(11, 15, 26, 0.15) 100%);
    pointer-events: none;
}

.offer-item .offer-content {
    position: relative;
    z-index: 3;
    width: 55%;
    padding: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    /* Stack: image fixed-height top, solid content area below */
    .offer-item {
        flex-direction: column;
        min-height: auto;
        justify-content: flex-start;
    }
    .offer-item .media-container {
        position: relative;
        height: 240px;
        width: 100%;
        flex-shrink: 0;
    }
    .offer-item::before {
        display: none; /* No overlay needed — content is below image, not on it */
    }
    .offer-item .offer-content {
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 2rem 1.5rem;
        background: #0B0F1A;
        justify-content: flex-start;
    }
}

.offer-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.offer-header h4 {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 500;
}

.offer-applications h5 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem; /* bumped from 0.8rem — bold + ≥14px qualifies as large text under WCAG */
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.offer-applications ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.offer-applications li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    opacity: 0.8;
}

.offer-applications li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Industry Card Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.industry-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem; 
    border-radius: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 280px; /* Reduced for more compact desktop view */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(247, 148, 29, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-smooth);
    margin-bottom: 2rem; /* Always have margin */
    margin-top: 1rem;
}

.card-icon i {
    width: 36px;
    height: 36px;
}

.industry-card:hover {
    background: rgba(11, 15, 26, 0.92);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.industry-card .card-info h3 {
    opacity: 1; /* Always visible */
    transform: none;
    margin-bottom: 0.5rem; /* Tighter spacing */
    transition: var(--transition-smooth);
}

.industry-card .card-info p,
.industry-card .card-info .ind-stat {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.industry-card:hover .card-info p,
.industry-card:hover .card-info .ind-stat {
    opacity: 1;
    height: auto;
    margin-top: 1rem;
    transform: translateY(0);
}

.industry-card:hover .card-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--bg);
}

.industry-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.industry-card:hover h3 {
    letter-spacing: 0.01em;
}

.industry-card .ind-stat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.4;
    text-align: left; /* Ensure alignment */
}

.industry-card p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    text-align: left;
}

.industry-card ul {
    list-style: none;
    margin-top: auto;
}

.industry-card li {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.industry-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.industry-card:hover li {
    opacity: 0.9;
    transform: translateX(4px);
}

.industry-card:hover li::before {
    transform: scale(1.4);
    color: #fff;
}

/* Projects Section */
#projects {
    background: #162038;
    padding: var(--section-gap) 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 6rem;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding: 5rem 4rem;
    border-radius: 20px;
}

.project-row:nth-child(odd) {
    background: rgba(22, 32, 56, 0.25);
    border: 1px solid rgba(22, 32, 56, 0.5);
}

.project-row:nth-child(even) {
    background: transparent;
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.project-row:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-content .tag {
    font-size: 0.875rem; /* bumped from 0.8rem — bold + ≥14px qualifies as large text under WCAG */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 700;
}

.project-content h3 {
    font-size: 2.5rem;
    line-height: 1.1;
}

.project-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.project-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-stats li {
    background: rgba(247, 148, 29, 0.1);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(247, 148, 29, 0.2);
}

@media (max-width: 992px) {
    .project-row, .project-row:nth-child(even) {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        padding: 3rem 2rem;
    }
    .project-stats { justify-content: center; }
}

@media (max-width: 480px) {
    .project-row, .project-row:nth-child(even) {
        padding: 2rem 1.25rem;
        gap: 2rem;
    }
}

/* FAQ Section */
.faq-container {
    margin-top: 4rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 2rem 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 2rem;
    opacity: 0.8;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

/* Footer */
#footer {
    background-color: #0B0F1A;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

#footer .logo a {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

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

.footer-nav a {
    text-decoration: none;
    color: #fff;
    opacity: 0.6;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--primary);
}

.privacy-link {
    font-size: 0.8rem;
    opacity: 0.4;
    text-decoration: none;
    color: #fff;
    transition: var(--transition-smooth);
}

.privacy-link:hover {
    opacity: 0.8;
}

/* Contact Section Redesign */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center; /* Center vertically to allow headset float */
}

.contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-side-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevent cropping */
    filter: drop-shadow(0 20px 40px rgba(247, 148, 29, 0.1)); /* Add glow instead of box */
}

.contact-form p {
    text-align: left;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Carousel Navigation */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 15, 26, 0.8);
    border: 1px solid rgba(247, 148, 29, 0.3);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(247, 148, 29, 0.4);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(247, 148, 29, 0.4);
}

/* Responsive Utilities */
@media (max-width: 1100px) {
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .contact-split { grid-template-columns: 1fr; gap: 3rem; }
    .contact-image { min-height: 300px; order: 2; }
    .contact-form { order: 1; }
    #hubspot-form-container,
    #hubspot-form-container form,
    #hubspot-form-container .hs-form {
        max-width: 100%;
        box-sizing: border-box;
    }
    #footer .container { flex-direction: column; gap: 2.5rem; text-align: center; }
}

@media (max-width: 768px) {
    #hero h1 { font-size: 3.5rem; }
    .nav-links { display: none; } 
    .stats-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr; }
    .carousel-container { margin-top: 2rem; }

    .carousel-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .carousel-container {
        width: 100%;
    }

    .carousel-prev,
    .carousel-next {
        position: static;
        transform: none;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    #hero h1 { font-size: 2.6rem; }
    #hero .h2-sub { font-size: 1rem; }
    section h2 { font-size: 1.75rem; }
    .stat-number { font-size: 2.8rem; }
}


/* ============================================
   WCAG 2.2 & Functional Fixes
   ============================================ */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: var(--bg);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.skip-link:focus {
    top: 1rem;
}

/* Global Focus Styles (WCAG 2.4.7, 2.4.11) */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) {
    outline: none;
}

/* Hamburger / Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: 4px;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animated hamburger → X */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Video Pause Button */
.video-pause-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    background: rgba(11, 15, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.video-pause-btn:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

/* Logo Banner - pause on hover/focus */
.logo-banner:hover .logo-slider,
.logo-banner:focus-within .logo-slider {
    animation-play-state: paused;
}

/* Industry cards - reveal on focus-within for keyboard users */
.industry-card:focus-within .card-info p,
.industry-card:focus-within .card-info .ind-stat {
    opacity: 1;
    height: auto;
    margin-top: 1rem;
    transform: translateY(0);
}

.industry-card:focus-within {
    background: rgba(11, 15, 26, 0.92);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.industry-card:focus-within .card-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--bg);
}

/* Carousel dots - keyboard focus */
.dot:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* FAQ answer transition accessible */
.faq-item.active .faq-answer {
    max-height: 600px;
    padding-bottom: 2rem;
    opacity: 1;
}

/* Reduced Motion (WCAG 2.2.2) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .logo-slider {
        animation: none;
    }

    .carousel-track {
        transition: none;
    }

    .hero-video {
        display: none;
    }

    .video-pause-btn {
        display: none;
    }
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background: rgba(11, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
    }

    .nav-links.is-open {
        display: flex;
    }

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

    .nav-links a:not(.btn-primary) {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        opacity: 1;
    }

    .nav-links li:last-child {
        padding: 1rem 2rem;
        border-bottom: none;
    }

    .nav-links .btn-primary {
        display: inline-block;
        margin: 0;
    }
}

/* Product Eyebrow Tag (Spandrel XR Studio / Corbel LMS) */
.product-eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem; /* bumped from 0.75rem — WCAG large text threshold at bold weight */
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(247, 148, 29, 0.35);
    border-radius: 4px;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

/* Footer Brand Block */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-platform {
    font-size: 0.8rem;
    opacity: 0.55;
    color: #fff;
    margin-top: 0.5rem;
}

.footer-platform strong {
    color: var(--primary);
    opacity: 1;
    font-weight: 600;
}

.footer-attribution {
    font-size: 0.75rem;
    opacity: 0.55;
    color: #fff;
}

.footer-attribution a {
    color: #fff;
    text-decoration: none;
    opacity: 1;
    transition: var(--transition-smooth);
}

.footer-attribution a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .footer-brand {
        align-items: center;
        text-align: center;
    }
}

/* LMS screenshot project image - preserve UI context, don't over-crop */
.project-image--screen {
    background: #162038;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.project-image--screen img {
    object-fit: contain;
    object-position: top center;
    background: #fff;
    width: 100%;
    height: 100%;
    display: block;
}

/* Productivity Callout Block */
.productivity-callout {
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.productivity-callout-inner {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 3rem;
}

.productivity-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(247, 148, 29, 0.08);
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.productivity-icon i {
    width: 26px;
    height: 26px;
}

.productivity-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.productivity-text p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 72ch;
}

@media (max-width: 768px) {
    .productivity-callout-inner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
}

/* ============================================
   TERRACOTTA PALETTE & LOGO ADDITIONS
   ============================================ */

/* Accent text class — primary orange */
.accent-text {
    color: var(--primary);
}

/* Steel Mist for supporting/muted text */
.sand-text {
    color: var(--neutral);
}

/* Safety accent — ember reserved for hazard callouts, warnings, urgency signals */
.ember-text { color: var(--primary); }
.ember-bg {
    background: rgba(247, 148, 29, 0.1);
    border: 1px solid rgba(247, 148, 29, 0.25);
    color: var(--primary);
}

/* Logo lockup */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark-img {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo-mark-img--footer {
    height: 22px;
}

.logo-wordmark {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Footer logo wordmark smaller */
.footer-brand .logo-wordmark {
    font-size: 1.4rem;
}

/* Productivity callout icon - primary orange */
.productivity-icon {
    background: rgba(247, 148, 29, 0.08);
    border: 1px solid rgba(247, 148, 29, 0.2);
    color: var(--primary);
}

/* Focus ring - primary orange */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link - primary orange */
.skip-link {
    background: var(--primary);
    color: #fff;
}

/* Video pause btn hover */
.video-pause-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Nav btn-primary override */
.btn-primary {
    background-color: var(--primary);
    color: #fff !important;
}

.btn-primary:hover {
    box-shadow: 0 8px 16px rgba(247, 148, 29, 0.25);
    background-color: #d4780f;
}

/* Logo XR suffix - lighter weight, no colour, matches headset branding */
.logo-xr {
    font-weight: 400;
    color: #fff;
    opacity: 0.85;
}





section {
    position: relative;
}

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



/* ============================================
   FOOTER MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    #footer .container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.5rem;
    }

    .footer-brand {
        align-items: center;
    }
}


/* ============================================
   INDUSTRY CARDS — MOBILE CAROUSEL
   ============================================ */

.industry-mobile-carousel {
    display: none;
}

@media (max-width: 768px) {

    /* Hide desktop grid, show mobile carousel */
    .industry-grid {
        display: none;
    }

    .industry-mobile-carousel {
        display: block;
        margin-top: 2rem;
    }

    .industry-mobile-track-wrapper {
        overflow: hidden;
        border-radius: 16px;
    }

    .industry-mobile-track {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }

    .industry-mobile-card {
        min-width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 2.5rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        cursor: pointer;
        transition: border-color 0.3s ease;
    }

    .industry-mobile-card.active {
        border-color: var(--primary);
    }

    .industry-mobile-icon {
        width: 64px;
        height: 64px;
        background: rgba(247, 148, 29, 0.1);
        border: 1px solid rgba(247, 148, 29, 0.2);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        flex-shrink: 0;
    }

    .industry-mobile-icon i {
        width: 28px;
        height: 28px;
    }

    .industry-mobile-card h3 {
        font-size: 1.3rem;
        color: var(--primary);
        margin: 0;
    }

    .industry-mobile-stat {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.4;
    }

    .industry-mobile-card p {
        font-size: 0.95rem;
        opacity: 0.7;
        line-height: 1.6;
        margin: 0;
    }

    /* Controls row */
    .industry-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .industry-prev,
    .industry-next {
        background: rgba(11, 15, 26, 0.8);
        border: 1px solid rgba(247, 148, 29, 0.3);
        color: var(--primary);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition-smooth);
        flex-shrink: 0;
    }

    .industry-prev:hover,
    .industry-next:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

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

    .industry-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        cursor: pointer;
        transition: var(--transition-smooth);
    }

    .industry-dot.active {
        background: var(--primary);
        width: 20px;
        border-radius: 4px;
    }
}

/* ── Urgency Strip ── */
.urgency-strip {
    margin-top: 3rem;
    background: var(--surface);
    border-left: 3px solid var(--primary); /* ember: urgency/safety signal */
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.urgency-line {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    max-width: 680px;
    line-height: 1.4;
}

.btn-ghost {
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .urgency-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .urgency-line {
        font-size: 1.05rem;
    }
}

/* ── Used For line (carousel) ── */
.used-for {
    font-size: 0.875rem;
    color: var(--neutral);
    margin-top: 1.25rem;
    line-height: 1.5;
}

.used-for span {
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

/* ── Projects Mobile Carousel ── */
.projects-desktop {
    display: block;
}

.projects-mobile-carousel {
    display: none;
}

@media (max-width: 768px) {
    .projects-desktop {
        display: none;
    }

    .projects-mobile-carousel {
        display: block;
    }

    .projects-mobile-track-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
    }

    .projects-mobile-track {
        display: flex;
        transition: transform 0.35s ease;
        will-change: transform;
    }

    .projects-mobile-card {
        min-width: 100%;
        box-sizing: border-box;
        background: var(--surface);
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.06);
    }

    /* Image wrapper: relative so overlay arrows can anchor to it */
    .projects-mobile-image {
        position: relative;
    }

    .projects-mobile-image img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

    .projects-mobile-image--screen img {
        object-fit: contain;
        background: var(--bg);
    }

    /* Overlay arrows — anchored to track-wrapper, vertically centred on image */
    .projects-prev,
    .projects-next {
        position: absolute;
        top: 95px; /* half of 190px image height */
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(11, 15, 26, 0.72);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(247, 148, 29, 0.4);
        color: var(--text-primary);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
        flex-shrink: 0;
    }

    .projects-prev { left: 0.65rem; }
    .projects-next { right: 0.65rem; }

    .projects-prev:hover,
    .projects-next:hover {
        background: var(--primary);
        border-color: var(--primary);
    }

    .projects-mobile-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .projects-mobile-content .tag {
        display: inline-block;
        margin-bottom: 0.75rem;
    }

    .projects-mobile-content h3 {
        margin-bottom: 0.75rem;
    }

    .projects-mobile-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Dots only — arrows are now on the image */
    .projects-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .projects-mobile-dots {
        display: flex;
        gap: 6px;
        align-items: center;
    }

    .project-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.25);
        cursor: pointer;
        transition: background 0.2s, width 0.2s, border-radius 0.2s;
        display: inline-block;
    }

    .project-dot.active {
        background: var(--primary);
        width: 20px;
        border-radius: 4px;
    }
}

/* ── Keyword Callout Treatment (Jeff's game design principle) ── */
.kw {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.08em;
}
