/* ============================================
   NITEX CLONE - COMPLETE STYLESHEET
   Full animation system matching nitex.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    /* Colors */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-neon-yellow: #d4ff00;
    --color-neon-yellow-60: rgba(212, 255, 0, 0.6);
    --color-light-grey: #f5f5f5;
    --color-grey-200: #e6e6e6;
    --color-grey-500: #737373;
    --color-grey-600: #525252;
    
    /* Typography */
    --font-display: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    /* Spacing */
    --spacing-bleed: clamp(1rem, 3vw, 2rem);
    --spacing-gap: 0.5rem;
    
    /* Easing - Nitex signature easings */
    --ease-in-out-quint: cubic-bezier(0.83, 0, 0.17, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-quint: cubic-bezier(0.64, 0, 0.78, 0);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Durations */
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
    --duration-slowest: 1000ms;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
}

html.lenis {
    height: auto;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-sans);
    background: var(--color-grey-200);
    color: var(--color-black);
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-bleed);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    user-select: none;
    transition: background-color var(--duration-normal) var(--ease-out-quint),
                padding var(--duration-normal) var(--ease-out-quint);
}

.header.scrolled {
    background: rgba(230, 230, 230, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
    transform: translateX(calc(50vw - 50% - 12px));
    transition: transform var(--duration-slowest) var(--ease-in-out-quint);
}

.header.scrolled .header-logo {
    transform: translateX(0);
}

.header-logo svg {
    height: 16px;
    transition: color var(--duration-normal) ease;
}

.header-logo svg path {
    fill: var(--color-neon-yellow);
    transition: fill var(--duration-normal) ease;
}

.header.scrolled .header-logo svg path {
    fill: var(--color-black);
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 12px;
    right: var(--spacing-bleed);
    z-index: 1000;
    height: 32px;
    display: flex;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    gap: var(--spacing-gap);
}

.top-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    width: 50%;
    min-width: 120px;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-in-out-quint);
}

.top-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--duration-normal) var(--ease-in-out-quint);
}

.top-nav a:first-child {
    color: var(--color-black);
}

.top-nav a:first-child::before {
    background: var(--color-neon-yellow-60);
}

/* Progress bar inside nav link */
.top-nav a .progress {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: -8px;
    right: -8px;
    z-index: 1;
    transform: skewX(-20deg);
    transition: transform var(--duration-normal) ease-in-out;
}

.top-nav a .progress::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-neon-yellow);
    transition: transform var(--duration-normal) ease;
}

.top-nav a:last-child::before {
    background: rgba(255, 255, 255, 0.5);
    border-left: 0;
}

.top-nav a:last-child {
    transition: all var(--duration-slow) var(--ease-in-out-quint);
}

.top-nav a:last-child:hover {
    padding: 0 24px;
}

.top-nav a:last-child:hover::before {
    transform: scaleX(0.97) skewX(-20deg);
}

.top-nav a span {
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   HERO SECTION - DUAL MEDIA
   ============================================ */

.hero-dual {
    position: relative;
    height: 100svh;
    width: 100%;
    background: var(--color-black);
    color: var(--color-neon-yellow);
    overflow: hidden;
}

.hero-dual-media {
    display: flex;
    height: 100%;
}

.hero-media {
    position: relative;
    width: 50%;
    overflow: hidden;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.5s var(--ease-out-quint);
}

.hero-media.loaded img,
.hero-media.loaded video {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.hero-content-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--spacing-bleed);
}

/* Hero Icons with reveal animation */
.hero-icon {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 200px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slower) var(--ease-out-quint),
                transform var(--duration-slower) var(--ease-out-quint);
}

.hero-icon.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-icon svg {
    height: 100%;
    max-height: 180px;
    fill: currentColor;
}

.hero-icon.right {
    justify-content: flex-end;
}

.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0 20px;
    text-align: center;
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 36rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slower) var(--ease-out-quint),
                transform var(--duration-slower) var(--ease-out-quint);
    transition-delay: 0.3s;
}

.hero-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Primary Button - Nitex skew style */
.btn-primary {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--color-black);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-slow) var(--ease-out-quint);
    transition-delay: 0.5s;
}

.btn-primary.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--color-neon-yellow);
    transition: transform var(--duration-slow) ease-out;
}

.btn-primary:hover {
    letter-spacing: 0.05em;
}

.btn-primary:hover::before {
    transform: scaleX(1.1) skewX(-20deg);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* ============================================
   BIG HEADING SECTION
   ============================================ */

.section-big-heading {
    position: relative;
    min-height: 200vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--color-white);
    overflow: hidden;
}

/* Sticky wrapper for parallax effect */
.big-heading-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px var(--spacing-bleed);
    transition: color var(--duration-slowest) ease-in-out;
}

/* Chapter Label with clip-path animation */
.chapter-label {
    display: inline-flex;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 24px;
    clip-path: polygon(-100% 0%, 0% 0%, -5% 100%, -100% 100%);
    transition: clip-path var(--duration-slower) var(--ease-in-out-quint);
}

.chapter-label.visible {
    clip-path: polygon(0% 0%, 105% 0%, 100% 100%, 0% 100%);
}

.chapter-index {
    color: var(--color-grey-500);
}

/* Big Heading Typography */
.big-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-stretch: expanded;
    transition: all var(--duration-normal) ease-in-out;
}

.big-heading-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
}

.big-heading-line .word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform var(--duration-slower) var(--ease-in-out-quint);
}

.big-heading-line.visible .word {
    transform: translateY(0);
}

/* Staggered word animations */
.big-heading-line .word:nth-child(1) { transition-delay: 0s; }
.big-heading-line .word:nth-child(2) { transition-delay: 0.05s; }
.big-heading-line .word:nth-child(3) { transition-delay: 0.1s; }
.big-heading-line .word:nth-child(4) { transition-delay: 0.15s; }

/* Inline media in headings - parallelogram clip */
.heading-media {
    position: relative;
    width: 0.8em;
    height: 0.8em;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(110%);
    transition: transform var(--duration-slower) var(--ease-in-out-quint);
}

.heading-media.visible {
    transform: translateY(0);
}

.heading-media-inner {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
    transition: clip-path 0.6s ease-in-out;
}

.heading-media-inner.visible {
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}

.heading-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SPLIT SCREEN SECTION
   ============================================ */

.section-split {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-light-grey);
}

.split-header {
    padding: 80px var(--spacing-bleed) 40px;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.split-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px var(--spacing-bleed);
    background: var(--color-light-grey);
}

.split-right {
    position: relative;
    overflow: hidden;
}

.split-right img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform var(--duration-slowest) var(--ease-out-quint);
}

.split-right.visible img {
    transform: scale(1);
}

/* Split text reveal */
.split-text {
    max-width: 480px;
}

.split-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slower) var(--ease-out-quint),
                transform var(--duration-slower) var(--ease-out-quint);
}

.split-text.visible h3 {
    opacity: 1;
    transform: translateY(0);
}

.split-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-grey-600);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slower) var(--ease-out-quint),
                transform var(--duration-slower) var(--ease-out-quint);
}

.split-text.visible p {
    opacity: 1;
    transform: translateY(0);
}

.split-text.visible p:nth-of-type(1) { transition-delay: 0.1s; }
.split-text.visible p:nth-of-type(2) { transition-delay: 0.2s; }
.split-text.visible p:nth-of-type(3) { transition-delay: 0.3s; }

/* Arrow link animation */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out-quint),
                transform var(--duration-slow) var(--ease-out-quint);
    transition-delay: 0.3s;
}

.split-text.visible .arrow-link {
    opacity: 1;
    transform: translateY(0);
}

.arrow-link .arrow {
    display: flex;
    align-items: center;
    width: 24px;
    height: 24px;
    transition: all var(--duration-fast) var(--ease-out-quint);
}

.arrow-link:hover .arrow {
    width: 28px;
    transform: translateX(8px);
}

.arrow-link .arrow svg {
    width: 100%;
    height: auto;
}

/* ============================================
   DUAL MEDIA SECTION
   ============================================ */

.section-dual-media {
    position: relative;
    display: flex;
    flex-direction: column;
}

.dual-media-row {
    display: flex;
}

.dual-media-item {
    flex: 1;
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.dual-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity var(--duration-slow) var(--ease-out-quint),
                transform var(--duration-slowest) var(--ease-out-quint);
}

.dual-media-item.visible img {
    opacity: 1;
    transform: scale(1);
}

.dual-media-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px var(--spacing-bleed);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out-quint),
                transform var(--duration-slow) var(--ease-out-quint);
    transition-delay: 0.3s;
}

.dual-media-item.visible .dual-media-content {
    opacity: 1;
    transform: translateY(0);
}

.dual-media-content.light {
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    color: var(--color-black);
}

/* ============================================
   LOGOS / MARQUEE SECTION
   ============================================ */

.section-logos {
    background: var(--color-neon-yellow);
    padding: 60px 0;
    overflow: hidden;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    --duration: 52s;
}

.marquee-content {
    display: inline-flex;
    gap: 60px;
    padding-right: 60px;
    animation: marquee var(--duration) linear infinite;
}

.marquee-content span {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--color-black);
}

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

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* ============================================
   CENTERED MEDIA SECTION
   ============================================ */

.section-centered-media {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    place-items: center;
    background: var(--color-black);
    padding: var(--spacing-bleed);
    gap: var(--spacing-gap);
}

.centered-media-wrapper {
    grid-column: 2 / 12;
    position: relative;
    width: 100%;
    aspect-ratio: 8/9;
    overflow: hidden;
}

.centered-media-wrapper img,
.centered-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    opacity: 0;
    transition: transform var(--duration-slowest) var(--ease-out-quint),
                opacity var(--duration-slow) var(--ease-out-quint);
}

.centered-media-wrapper.visible img,
.centered-media-wrapper.visible video {
    transform: scale(1);
    opacity: 1;
}

.centered-media-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--duration-slow) var(--ease-out-quint),
                transform var(--duration-slow) var(--ease-out-quint);
    transition-delay: 0.5s;
}

.centered-media-wrapper.visible .centered-media-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NUMBERED LIST SECTION
   ============================================ */

.section-numbered-list {
    background: var(--color-white);
    padding: 100px var(--spacing-bleed) 160px;
}

.numbered-list-header {
    margin-bottom: 60px;
}

.numbered-list {
    display: grid;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.numbered-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--color-grey-200);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slower) var(--ease-out-quint),
                transform var(--duration-slower) var(--ease-out-quint);
}

.numbered-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for list items */
.numbered-item:nth-child(1) { transition-delay: 0s; }
.numbered-item:nth-child(2) { transition-delay: 0.1s; }
.numbered-item:nth-child(3) { transition-delay: 0.2s; }
.numbered-item:nth-child(4) { transition-delay: 0.3s; }
.numbered-item:nth-child(5) { transition-delay: 0.4s; }

.numbered-item-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-grey-200);
    line-height: 1;
}

.numbered-item-content h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.numbered-item-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-grey-600);
}

/* ============================================
   FULL WIDTH MEDIA SECTION
   ============================================ */

.section-fullwidth-media {
    position: relative;
    height: 110vh;
    background: var(--color-white);
    overflow: hidden;
}

.fullwidth-media-wrapper {
    position: absolute;
    inset: 0;
}

.fullwidth-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 2s var(--ease-out-quint);
}

.fullwidth-media-wrapper.visible img {
    transform: scale(1);
}

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
    background: var(--color-light-grey);
    padding: 100px var(--spacing-bleed) 160px;
}

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

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 32px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slower) var(--ease-out-quint),
                transform var(--duration-slower) var(--ease-out-quint);
}

.cta-content.visible .cta-heading {
    opacity: 1;
    transform: translateY(0);
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-grey-600);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slower) var(--ease-out-quint),
                transform var(--duration-slower) var(--ease-out-quint);
    transition-delay: 0.15s;
}

.cta-content.visible .cta-text {
    opacity: 1;
    transform: translateY(0);
}

.cta-content .btn-primary {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.3s;
}

.cta-content.visible .btn-primary {
    opacity: 1;
    transform: translateY(0);
}

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

.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px var(--spacing-bleed) 40px;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo svg {
    height: 20px;
}

.footer-logo svg path {
    fill: var(--color-neon-yellow);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-grey-500);
}

.footer-column h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--color-grey-500);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    font-size: 0.875rem;
    color: var(--color-white);
    transition: color var(--duration-normal) ease;
}

.footer-column a:hover {
    color: var(--color-neon-yellow);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-grey-500);
}

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

.footer-social a {
    color: var(--color-grey-500);
    transition: color var(--duration-normal) ease;
}

.footer-social a:hover {
    color: var(--color-neon-yellow);
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background: var(--color-neon-yellow);
    color: var(--color-black);
}

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

@media (max-width: 1024px) {
    .hero-dual-media {
        flex-direction: column;
    }
    
    .hero-media {
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
    }
    
    .hero-media:last-child {
        display: none;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        align-items: end;
        padding-bottom: 80px;
    }
    
    .hero-icon {
        position: absolute;
        top: 80px;
        max-width: 25%;
        max-height: 120px;
    }
    
    .hero-icon.right {
        right: var(--spacing-bleed);
    }
    
    .hero-icon:first-of-type {
        left: var(--spacing-bleed);
    }
    
    .hero-center-content {
        grid-row: 3;
    }
    
    .split-content {
        grid-template-columns: 1fr;
    }
    
    .split-right {
        min-height: 400px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .top-nav {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        height: 40px;
        width: 100%;
    }
    
    .top-nav a {
        width: 50%;
    }
    
    .centered-media-wrapper {
        grid-column: 1 / -1;
        aspect-ratio: 8/9;
    }
}

@media (max-width: 768px) {
    .dual-media-row {
        flex-direction: column;
    }
    
    .dual-media-item {
        aspect-ratio: 4/3;
    }
    
    .numbered-item {
        grid-template-columns: 60px 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-logo {
        transform: none;
    }

    /* ===================
       ESCO GLOBAL MOBILE ADDITIONS
       =================== */

    /* Hero section mobile */
    .hero-text-layer {
        position: absolute !important;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 1.25rem;
        gap: 1.5rem;
        top: 15vh !important;
    }
    
    .hero-text-left,
    .hero-text-right {
        text-align: left;
        align-items: flex-start;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.75rem);
        max-width: 100%;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Header mobile */
    .header-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    /* Split section: stack vertically, image first */
    .split-content {
        grid-template-columns: 1fr !important;
    }
    
    .split-left {
        padding: 2.5rem 1.25rem;
        order: 2;
    }
    
    .split-right {
        min-height: 50vh;
        order: 1;
    }
    
    .split-right img {
        min-height: 50vh;
    }
    
    .split-text {
        max-width: 100%;
    }
    
    .split-text h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    /* Numbered list mobile - fix overflow */
    .section-numbered-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .numbered-item {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        gap: 16px;
    }
    
    .numbered-item-number {
        font-size: 2.25rem;
    }
    
    .numbered-item-content h4 {
        font-size: 1.15rem;
    }
    
    .numbered-list-header {
        padding-left: 0;
        padding-right: 0;
    }

    /* Video overlay text mobile */
    .video2-overlay-text {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    /* CTA section mobile */
    .section-cta {
        padding: 60px 1.25rem 80px;
    }
    
    .cta-heading {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    /* Contact form mobile - stack vertically */
    .contact-wrapper {
        width: 100%;
    }
    
    .contact-form {
        position: relative;
        left: 0;
        top: 0;
        transform: scaleX(0);
        transform-origin: center;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-wrapper.expanded .contact-form {
        transform: scaleX(1) translateX(0);
    }
    
    .contact-form input,
    .contact-form textarea {
        min-width: 100%;
        width: 100%;
    }

    /* Footer mobile */
    .footer {
        padding: 40px 1.25rem 30px;
    }
}

/* ===================
   SMALL PHONES (≤480px)
   =================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .numbered-item {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }
    
    .numbered-item-number {
        font-size: 1.75rem;
    }
    
    .numbered-item-content h4 {
        font-size: 1rem;
    }
    
    .numbered-item-content p {
        font-size: 0.9rem;
    }
    
    .cta-heading {
        font-size: clamp(1.25rem, 7vw, 1.75rem);
    }
    
    .split-text p {
        font-size: 0.95rem;
    }
    
    .chapter-label {
        font-size: 0.75rem;
    }
}
