/* Core Variables */
:root {
    --navy: #162846;
    --navy-light: #1f3a66;
    --white: #FFFFFF;
    --slate: #f8fafc;
    --silver: #8A9AAB;
    --silver-muted: #cbd5e1;
    --text-dark: #333333;
    --accent-gold: #D4AF37;
}

/* Global Reset & Typography */
html { font-size: 14.4px; }
body, html { margin: 0; padding: 0; width: 100%; max-width: 100vw; font-family: 'Helvetica Neue', Arial, sans-serif; color: var(--text-dark); background-color: var(--slate); scroll-behavior: smooth; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, .serif { font-family: 'Times New Roman', Times, serif; font-weight: normal; }

/* ========================================= */
/* SOLID HEADER & FULL-WIDTH DROPDOWNS       */
/* ========================================= */

/* Main Solid Banner */
.solid-header { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100px; 
    display: flex; 
    align-items: center; 
    background-color: var(--navy); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    z-index: 1000; 
    padding: 0 5%; 
}

/* Absolute Center Logo */
.logo { 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 1010; 
}
.logo img { height: 75px; width: auto; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.02); }

/* Left/Right Menu Balancing */
.nav-links-wrapper { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 40px; }

/* Padding prevents links from hiding behind the centered logo */
.nav-left { padding-right: 150px; }
.nav-right { padding-left: 150px; justify-content: flex-end; }

/* Top Level Links */
.nav-links-wrapper a, .dropbtn { 
    color: var(--white); 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: color 0.3s; 
    position: relative;
}
.nav-links-wrapper a:hover, .dropbtn:hover { color: var(--silver); }

/* Underline Hover Effect */
.nav-links-wrapper a::after, .dropbtn::after { 
    content: ''; 
    position: absolute; 
    width: 100%; 
    height: 1px; 
    bottom: -6px; 
    left: 0; 
    background-color: currentColor; 
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.3s ease; 
}
.nav-links-wrapper a:hover::after, .mega-dropdown:hover .dropbtn::after { transform: scaleX(1); }

/* Dropdown Carets */
.dropbtn { display: inline-flex; align-items: center; gap: 8px; }
.dropbtn::before { 
    content: ''; 
    display: inline-block; 
    width: 5px; 
    height: 5px; 
    border-right: 1px solid currentColor; 
    border-bottom: 1px solid currentColor; 
    transform: translateY(-2px) rotate(45deg); 
    transition: transform 0.3s ease; 
    order: 2; 
}
.mega-dropdown:hover .dropbtn::before, .mega-dropdown.open .dropbtn::before { transform: translateY(2px) rotate(225deg); }

/* Full Width Panel Logic */
.mega-dropdown { position: static; } 

.full-width-panel { 
    position: absolute; 
    top: 100px; 
    left: 0; 
    width: 100vw; 
    background-color: var(--white); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    border-top: 1px solid #eaeaea;
    display: none; 
    z-index: 999;
}

/* THE FIX: Invisible bridge to prevent hover gap disconnect */
.full-width-panel::before {
    content: '';
    position: absolute;
    top: -40px; 
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
}

@media (min-width: 993px) { 
    .mega-dropdown:hover .full-width-panel { display: block; } 
}

.panel-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 60px 5%; 
    display: flex; 
    gap: 60px; 
}

/* Inside the White Panel */
.mega-column { flex: 1; min-width: 200px; }
.mega-column h4 { 
    color: var(--navy); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.85rem; 
    margin-top: 0; 
    margin-bottom: 20px; 
    font-weight: bold; 
    border-bottom: 2px solid var(--slate); 
    padding-bottom: 10px; 
}

.mega-column a { 
    display: block; 
    color: #555 !important; 
    padding: 10px 0 !important; 
    font-size: 0.95rem; 
    text-transform: none !important; 
    letter-spacing: 0px !important; 
    font-weight: normal !important; 
    transition: color 0.2s, transform 0.2s; 
}
.mega-column a::after { display: none; } /* Removes underline effect from sub-links */

.mega-column a:hover { 
    color: var(--navy) !important; 
    transform: translateX(5px); 
}

/* Nav Dark Override (For Contact Page) */
.nav-dark.solid-header { background-color: var(--white); border-bottom: 1px solid #eaeaea; }
.nav-dark .nav-links-wrapper a, .nav-dark .dropbtn { color: var(--navy); }
.nav-dark .nav-links-wrapper a:hover, .nav-dark .dropbtn:hover { color: var(--silver); }
.nav-dark .hamburger span { background-color: var(--navy); }

/* Hamburger Icon */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; position: relative; z-index: 1100; }
.hamburger span { width: 30px; height: 2px; background-color: var(--white); transition: all 0.3s ease; }


/* HOMEPAGE SPECIFIC STYLES */
.hero { position: relative; height: 100vh; display: flex; align-items: center; padding: 0 10%; color: var(--white); background-color: var(--navy); overflow: hidden; }
@keyframes ambientFloat { 0% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.08) translate(-1%, 2%); } 100% { transform: scale(1) translate(0, 0); } }
.slide { position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; opacity: 0; transition: opacity 1.5s ease-in-out; background-size: cover; background-position: center; z-index: 1; animation: ambientFloat 24s ease-in-out infinite; }
.slide.active { opacity: 1; z-index: 2; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(22, 40, 70, 0.95) 0%, rgba(22, 40, 70, 0.4) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; width: 100%; display: flex; flex-direction: column; align-items: center; margin: 0 auto; transform: translateY(60px); }
.hero-title-wrapper { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
.hero-title-main { margin: 0; line-height: 1; font-size: 5.5rem; letter-spacing: 4px; margin-right: -4px; color: var(--white); white-space: nowrap; }
.hero-title-sub { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 300; font-size: 1.4rem; letter-spacing: 1em; margin-right: -1em; margin-top: 15px; color: var(--silver); text-transform: uppercase; white-space: nowrap; }
.hero-subtitle { border: none; padding: 0; text-align: center; margin: 0; font-size: 1.3rem; color: #d1d9e6; line-height: 1.6; }
.slider-dots { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 15px; z-index: 3; }
.dot { width: 10px; height: 10px; border: 1px solid var(--white); border-radius: 50%; cursor: pointer; transition: background-color 0.3s, transform 0.3s; }
.dot.active { background-color: var(--white); transform: scale(1.3); }

/* PANNING SCHEMATIC STAT TIMELINE */
.stat-schematic-wrapper { position: relative; width: 100%; height: 100vh; overflow: hidden; background-color: var(--slate); border-top: 4px solid var(--navy); border-bottom: 1px solid #eaeaea; }
.stat-schematic-canvas { position: absolute; top: 0; left: 0; width: 4000px; height: 3000px; background-image: linear-gradient(rgba(112, 128, 144, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 128, 144, 0.06) 1px, transparent 1px); background-size: 40px 40px; transform-origin: 0 0; will-change: transform; }
#stat-svg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.stat-node { position: absolute; width: 480px; height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translate(-50%, -50%); z-index: 10; opacity: 0.3; text-align: center; background-color: var(--white); border-top: 4px solid var(--navy); border-radius: 8px; padding: 2.5rem; box-sizing: border-box; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.stat-node h3 { font-size: 1.8rem; margin-top: 0; margin-bottom: 1rem; color: var(--navy); }
.stat-node p { margin: 0; color: #444; font-size: 1.05rem; line-height: 1.6; max-width: 380px; }
.stat-node-1 { left: 2000px; top: 600px; opacity: 1; box-shadow: 0 20px 40px rgba(11, 19, 43, 0.15); }
.stat-node-2 { left: 1550px; top: 1100px; }
.stat-node-3 { left: 2450px; top: 1600px; }
.stat-number-wrapper { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 5px; color: var(--navy); }
.stat-number { font-family: 'Times New Roman', Times, serif; font-size: 3.2rem; line-height: 1; font-weight: normal; margin-top: 15px; }
.stat-prefix, .stat-suffix { font-family: 'Times New Roman', Times, serif; font-size: 1.8rem; margin-top: 20px; color: var(--navy-light); opacity: 0.8; }
.stat-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 20px; }
.navy-tag { background-color: var(--navy); color: var(--white); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 0.6rem 1rem; border-radius: 4px; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(22, 40, 70, 0.2); transition: background-color 0.2s ease; }
.navy-tag:hover { background-color: var(--navy-light); cursor: default; }

/* PARALLAX FADE SECTION */
.scroll-fade-section { position: relative; background-color: var(--slate); height: 250vh; border-bottom: 1px solid #eaeaea; }
.scroll-fade-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('../images/assets/images/woi_logo.png'); background-size: 800px; background-repeat: no-repeat; background-position: center; background-attachment: fixed; filter: invert(1) opacity(0.04); z-index: 1; }
.bg-navy-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--navy); opacity: 0; z-index: 2; will-change: opacity; }
.bg-navy-layer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('../images/assets/images/woi_logo.png'); background-size: 800px; background-repeat: no-repeat; background-position: center; background-attachment: fixed; opacity: 0.05; }
.sticky-text-container { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; z-index: 3; overflow: hidden; }
.intro-text { position: absolute; max-width: 810px; text-align: center; padding: 0 5%; will-change: opacity, transform; width: 100%; }
.text-block-1 { opacity: 1; transform: translateY(0); }
.text-block-2 { opacity: 0; transform: translateY(30px); }
.intro-text h2 { font-size: 3.5rem; margin-top: 0; margin-bottom: 25px; letter-spacing: 1px; }
.text-block-1 h2 { color: var(--navy); }
.text-block-1 p { color: #444; font-family: 'Times New Roman', Times, serif; font-size: 1.6rem; line-height: 1.8; }
.text-block-1 strong { color: var(--navy); font-weight: bold; }
.text-block-2 h2 { color: var(--white) !important; margin-bottom: 10px; }
.text-block-2 .promise-subhead { color: var(--white); font-family: 'Times New Roman', Times, serif; font-size: 2.2rem; font-style: italic; font-weight: bold; margin-bottom: 20px; }
.text-block-2 p { color: var(--silver-muted) !important; font-family: 'Times New Roman', Times, serif; font-size: 1.6rem; line-height: 1.8; font-style: normal; max-width: 720px; margin: 0 auto; }

/* BASE CONTENT SECTIONS */
.service-band { padding: 80px 10%; display: flex; flex-direction: column; justify-content: center; }
.deep-dive-section { padding: 90px 10%; display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-content: center; border-bottom: 1px solid #eaeaea; background-color: var(--white); }
.sticky-stack { position: relative; }
.sticky-stack > * { position: sticky; top: 0; min-height: 100vh; box-shadow: 0 -25px 50px rgba(0,0,0,0.15); }
.bg-slate { background-color: var(--slate); background-image: radial-gradient(rgba(22, 40, 70, 0.06) 1.5px, transparent 1.5px); background-size: 25px 25px; }
.bg-navy { background-color: var(--navy); color: var(--white); background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 40px 40px; }
.bg-white { background-color: var(--white); background-image: repeating-linear-gradient(45deg, rgba(22, 40, 70, 0.02) 0, rgba(22, 40, 70, 0.02) 1px, transparent 1px, transparent 12px); }
.band-header { margin-bottom: 50px; max-width: 600px; }
.band-tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; font-weight: bold; margin-bottom: 10px; display: block; color: var(--silver); }
.band-header h2 { font-size: 3.5rem; margin: 0; }
.bg-navy .band-header h2 { color: var(--white); }
.bg-slate .band-header h2, .bg-white .band-header h2 { color: var(--navy); }
.mini-section-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mini-section h4 { font-size: 1.15rem; margin: 0; text-transform: uppercase; letter-spacing: 1.2px; line-height: 1.4; }
.mini-section p { font-size: 1.05rem; line-height: 1.6; margin: 0; }
.deep-dive-header h2 { font-size: 2.5rem; color: var(--navy); margin: 0 0 10px 0; }
.deep-dive-header span { color: var(--silver); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: bold; }
.deep-dive-content p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 30px; }
.bg-navy .deep-dive-header h2 { color: var(--white); }
.bg-navy .deep-dive-header span { color: var(--silver-muted); }
.bg-navy .deep-dive-content p { color: rgba(255, 255, 255, 0.85); }
.tech-stack { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 20px;}
.tech-pill { padding: 8px 15px; background-color: var(--slate); border: 1px solid #ddd; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); font-weight: bold; border-radius: 4px; }
.bg-navy .tech-pill, .schematic-canvas .tech-pill { background-color: var(--navy-light); color: var(--white); border-color: rgba(255,255,255,0.2); }

/* ROOTS & CAPABILITIES GRIDS */
.roots-section { position: relative; padding: 100px 10%; background-color: var(--navy); color: var(--white); text-align: center; box-shadow: 0 -20px 40px rgba(0,0,0,0.1); background-image: url('../images/roots_background.jpeg'); background-attachment: fixed; background-size: cover; background-position: center; overflow: hidden; z-index: 40; }
.roots-section::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(22, 40, 70, 0.85); z-index: 1; }
.roots-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.roots-content h2 { font-size: 3.5rem; margin-top: 0; margin-bottom: 20px; }
.roots-content p { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 1.3rem; line-height: 1.8; color: #d1d9e6; font-weight: 300; letter-spacing: 0.5px; }
.interior-hero { padding: 160px 10% 90px; background-color: var(--navy); color: var(--white); background-image: linear-gradient(rgba(22, 40, 70, 0.9), rgba(22, 40, 70, 0.95)), url('../images/hero-2.jpeg'); background-size: cover; background-position: center; background-attachment: fixed; }
.interior-hero h1 { font-size: 4rem; margin: 0 0 20px 0; text-transform: uppercase; letter-spacing: 2px; }
.interior-hero p { font-size: 1.2rem; max-width: 540px; color: var(--silver); line-height: 1.8; }
.capabilities-section { padding: 100px 10%; background-color: var(--white); background-image: linear-gradient(rgba(22, 40, 70, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 40, 70, 0.05) 1px, transparent 1px); background-size: 40px 40px; border-bottom: 1px solid #eaeaea; }
.capabilities-header { text-align: center; margin-bottom: 50px; }
.capabilities-header h2 { color: var(--navy); font-size: 2.5rem; margin: 0 0 15px 0; letter-spacing: 1px; }
.capabilities-header p { color: #555; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.capabilities-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; max-width: 1000px; margin: 0 auto; }
.cap-tag { padding: 12px 25px; background: var(--navy); border: 1px solid var(--navy-light); color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; cursor: default; transform: translateY(var(--scroll-y, 0px)); transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.1s linear; will-change: transform; }
.cap-tag:hover { background: var(--navy-light); border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(calc(var(--scroll-y, 0px) - 6px)) !important; box-shadow: 0 8px 20px rgba(22, 40, 70, 0.15); }

/* COMPACT FOOTER & CTA */
.cta-section { position: relative; z-index: 200; background-color: var(--white); color: var(--navy); padding: 70px 10%; text-align: center; }
.cta-section h2 { font-size: 3rem; margin-bottom: 20px; margin-top: 0; }
.cta-section p { font-size: 1.2rem; color: #555; max-width: 540px; margin: 0 auto 30px auto; line-height: 1.6; }
.btn { display: inline-block; padding: 15px 40px; background-color: var(--navy); color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; font-size: 0.9rem; transition: background-color 0.3s, transform 0.3s; }
.btn:hover { background-color: var(--navy-light); transform: translateY(-2px); }
.site-footer { background-color: var(--slate); padding: 40px 10% 25px; border-top: 1px solid #eaeaea; position: relative; z-index: 200; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-brand h2 { font-size: 1.8rem; color: var(--navy); margin: 0; letter-spacing: 2px; }
.footer-links { display: flex; gap: 25px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #eaeaea; font-size: 0.8rem; color: var(--silver); flex-wrap: wrap; gap: 15px; }
.footer-legal { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: var(--silver); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--navy); }

/* CONTACT FORMS & LEGAL PAGES */
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; min-height: 100vh; }
.contact-form-side { padding: 130px 10% 90px; background-color: var(--white); }
.contact-info-side { padding: 130px 15% 90px; background-color: var(--navy); color: var(--white); display: flex; flex-direction: column; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 40px 40px; }
.contact-form-side h1 { font-size: 3.5rem; color: var(--navy); margin: 0 0 10px 0; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row .input-wrapper { flex: 1; }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 18px 0; border: none; border-bottom: 2px solid #eaeaea; font-family: inherit; font-size: 1.1rem; outline: none; box-sizing: border-box; background: transparent; transition: border-color 0.3s; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-bottom-color: var(--navy); }
textarea { resize: vertical; min-height: 57px; margin-top: 20px;} 
.submit-btn { margin-top: 40px; padding: 18px 50px; background-color: var(--navy); color: var(--white); border: none; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; }
.info-block { margin-bottom: 50px; }
.info-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px; color: var(--silver); margin-bottom: 10px; }
.info-block p { font-size: 1.3rem; line-height: 1.6; margin: 0; color: #d1d9e6; }
.legal-content { max-width: 900px; margin: 0 auto; padding: 100px 10%; color: #444; line-height: 1.8; font-size: 1.1rem; }
.legal-content h2 { color: var(--navy); font-size: 2rem; margin-top: 40px; margin-bottom: 15px; }
.legal-content p { margin-bottom: 20px; }

/* SCHEMATIC DIAGNOSTIC */
.compact-header { padding: 120px 10% 50px; background-color: var(--navy); color: var(--white); background-size: cover; background-position: center; background-attachment: fixed; text-align: center; }
.compact-header h1 { font-size: 3.2rem; margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 2px; }
.compact-header h1 em { color: var(--accent-gold); font-style: italic; }
.compact-header p { font-size: 1.1rem; max-width: 600px; color: var(--silver); line-height: 1.6; margin: 0 auto; }
.schematic-wrapper { position: relative; width: 100%; background-color: var(--slate); }
.schematic-viewport { width: 100%; overflow: hidden; position: relative; border-top: 4px solid var(--navy); border-bottom: 1px solid #eaeaea; transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.dynamic-back-btn { background: transparent; border: none; color: var(--silver); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; cursor: pointer; padding: 10px 0; margin-bottom: 1.5rem; display: inline-flex; align-items: center; opacity: 0; transition: opacity 0.3s ease, color 0.3s ease; position: relative; z-index: 20; }
.dynamic-back-btn.visible { opacity: 1; }
.dynamic-back-btn:hover { color: var(--navy); }
.schematic-canvas { position: relative; width: 5000px; height: 4500px; background-image: linear-gradient(rgba(112, 128, 144, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 128, 144, 0.06) 1px, transparent 1px); background-size: 40px 40px; }
#connection-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.line-path { fill: none; stroke: var(--navy); stroke-width: 3px; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: drawLine 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.node-dot { fill: var(--navy); opacity: 0; animation: fadeIn 0.3s ease forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.tree-node { position: absolute; width: 100%; max-width: 650px; opacity: 0; visibility: hidden; transform: translate(-50%, -30px); transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 10; }
.tree-node.active { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.pos-origin  { top: 150px; left: 2500px; }
.pos-left-1  { top: 650px; left: 1700px; } 
.pos-right-1 { top: 650px; left: 3300px; } 
.pos-rev   { top: 1350px; left: 2850px; }
.pos-scale { top: 1350px; left: 3750px; }
.pos-brand { top: 2150px; left: 2850px; }
.pos-data  { top: 2150px; left: 3750px; }
.pos-rev-tech   { top: 2200px; left: 2100px; }
.pos-rev-case1  { top: 2200px; left: 2850px; }
.pos-rev-case2  { top: 2200px; left: 3600px; }
.pos-scale-tech { top: 2200px; left: 3300px; }
.pos-scale-case { top: 2200px; left: 4200px; }
.pos-brand-tech { top: 3000px; left: 2400px; }
.pos-brand-case { top: 3000px; left: 3300px; }
.pos-data-tech  { top: 3000px; left: 2850px; }
.pos-data-case1 { top: 3000px; left: 3750px; }
.pos-data-case2 { top: 3000px; left: 4650px; }
.node-content-wrapper { background: var(--slate); padding: 10px; border-radius: 8px; text-align: center; }
.tree-node h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--navy); }
.node-options { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.node-options.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tree-btn { flex: 1; background-color: var(--white); color: var(--navy); border: 1px solid rgba(112, 128, 144, 0.3); padding: 1.2rem 1.5rem; font-family: inherit; font-size: 1.05rem; cursor: pointer; transition: all 0.3s ease; text-align: center; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); font-weight: 600; }
.tree-btn:hover { border-color: var(--navy); box-shadow: 0 8px 20px rgba(11, 19, 43, 0.08); transform: translateY(-2px); }
.tree-btn.selected { border-color: var(--navy); background-color: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(22, 40, 70, 0.2); }
.solution-card { background: var(--white); border-top: 4px solid var(--navy); padding: 2.5rem; box-shadow: 0 15px 35px rgba(11, 19, 43, 0.08); border-radius: 8px; text-align: left; position: relative; z-index: 20; }
.solution-card h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--navy); }
.solution-card p { margin-bottom: 1.5rem; color: #444; font-size: 1.05rem; line-height: 1.7; }
.level-3-label { font-size: 0.85rem; color: var(--silver); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
.action-link { display: inline-block; background-color: var(--navy); color: var(--white); padding: 1rem 2.5rem; text-decoration: none; font-weight: 600; border-radius: 4px; transition: background-color 0.3s ease; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; margin-top: 1rem; }
.action-link:hover { background-color: var(--navy-light); }

/* SPLIT-SCREEN TIMELINE LAYOUT */
.timeline-section { height: 300vh; position: relative; }
.split-container { position: sticky; top: 0; height: 100vh; width: 100%; display: flex; flex-direction: row; background-color: var(--white); background-image: repeating-linear-gradient(45deg, rgba(22, 40, 70, 0.02) 0, rgba(22, 40, 70, 0.02) 1px, transparent 1px, transparent 12px); overflow: hidden; }
.text-column { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 5% 10%; }
.media-column { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 5%; }
.navy-tree-box { background-color: var(--navy); width: 100%; max-width: 700px; aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: 0 25px 50px rgba(22, 40, 70, 0.15); display: flex; justify-content: center; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); position: relative; }
#tree-canvas { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; mix-blend-mode: screen; position: relative; z-index: 1; opacity: 0; transform: scale(1.02); }
#tree-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; mix-blend-mode: screen; z-index: 2; transform: scale(1.02); }
.timeline-step { position: absolute; width: 100%; max-width: 480px; opacity: 0; visibility: hidden; pointer-events: auto; }
.timeline-step h3 { font-size: 2.5rem; color: var(--navy); margin-top: 0; margin-bottom: 15px; }
.timeline-step p { color: #555; font-size: 1.15rem; line-height: 1.6; margin: 0; }
.step-intro-title { font-size: 3.5rem; color: var(--navy); margin-top: 0; margin-bottom: 10px; }

/* RESPONSIVE DESIGN (MOBILE) */
@media (max-width: 992px) {
    .nav-left, .nav-right { padding: 0; gap: 0; flex-direction: column; width: 100%; align-items: flex-start; }
    
    .nav-links-wrapper { 
        position: fixed; 
        top: 100px; 
        left: 0; 
        width: 100%; 
        height: calc(100vh - 100px); 
        background-color: var(--navy); 
        flex-direction: column; 
        justify-content: flex-start; 
        padding: 20px 5% 60px; 
        transform: translateX(-100%); 
        transition: transform 0.4s ease; 
        overflow-y: auto; 
    }
    .nav-links-wrapper.active { transform: translateX(0); }
    
    /* THE FIX: Changed mobile main links to flex to keep the caret aligned to the right */
    .nav-links-wrapper a, .dropbtn { 
        padding: 18px 0; 
        display: flex; 
        align-items: center; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        width: 100%; 
    }
    
    .full-width-panel { position: static; width: 100%; background: transparent; box-shadow: none; border: none; display: none; padding-left: 15px; }
    .mega-dropdown.open .full-width-panel { display: block !important; }
    .panel-container { flex-direction: column; gap: 30px; padding: 20px 0; }
    
    .mega-column h4 { color: var(--silver); margin-bottom: 10px; border-bottom-color: rgba(255,255,255,0.05); }
    
    /* THE FIX: Ensure sub-menu items don't inherit the flex layout of the main links */
    .mega-column a { 
        display: block; 
        color: rgba(255,255,255,0.7) !important; 
        padding: 10px 0 !important; 
        border: none; 
    }
    
    .hamburger { display: flex; }
    .hamburger.toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .intro-text h2, .band-header h2 { font-size: 2.8rem; }
    .mini-section-grid { gap: 30px; }
    .hero-title-main { font-size: 4.5rem; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form-side { padding-top: 150px; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) {
    html { font-size: 16px; }
    .logo img { height: 60px; }
    
    .hero { align-items: center; justify-content: center; text-align: center; }
    .hero-content { transform: translateY(0); }
    .hero-title-main { font-size: 2.8rem; letter-spacing: 2px; margin-right: -2px; }
    .hero-title-sub { font-size: 0.75rem; letter-spacing: 0.8em; margin-right: -0.8em; margin-top: 10px; }
    .hero-subtitle { font-size: 1.1rem; margin-top: 15px; }

    .sticky-stack > * { min-height: auto; height: auto; padding: 100px 5% 40px; display: flex; flex-direction: column; justify-content: flex-start; gap: 15px; } 
    .band-header, .deep-dive-header { margin-bottom: 10px; }
    .band-header h2, .deep-dive-header h2 { font-size: 1.65rem; line-height: 1.2; }
    .band-tag, .deep-dive-header span { font-size: 0.7rem; margin-bottom: 5px; }
    
    .mini-section-grid { grid-template-columns: 1fr; gap: 15px; }
    .mini-section-header { min-height: auto; margin-bottom: 2px; padding-bottom: 2px; }
    .mini-section h4 { font-size: 1rem; }
    .mini-section p, .deep-dive-content p { font-size: 0.95rem; line-height: 1.4; margin-bottom: 10px; }

    .intro-section { min-height: auto; padding: 80px 5%; }
    .intro-text h2 { font-size: 2.2rem; }
    .text-block-1 p, .text-block-2 p { font-size: 1.1rem; line-height: 1.6; }
    .text-block-2 .promise-subhead { font-size: 1.3rem; margin-bottom: 10px; }

    .roots-section { padding: 80px 5%; }
    .roots-content h2 { font-size: 2.2rem; }
    .roots-content p { font-size: 1rem; line-height: 1.5; }

    .footer-top { flex-direction: column; text-align: center; gap: 20px; }
    .footer-links { justify-content: center; gap: 12px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .footer-legal { justify-content: center; gap: 15px; }

    .slider-dots { display: none; }
    .deep-dive-section { grid-template-columns: 1fr; padding: 80px 5% 40px; }
    .interior-hero { padding: 160px 5% 60px; }
    .interior-hero h1 { font-size: 2.5rem; }
    .compact-header { padding: 160px 5% 40px; }
    .compact-header h1 { font-size: 2.2rem; }
    
    .tree-node { width: 92%; max-width: 400px; }
    .node-options { flex-direction: column; gap: 1rem; }
    .node-options.grid { grid-template-columns: 1fr; }
    .tree-btn[style*="grid-column: span 2"] { grid-column: span 1 !important; }
    .tree-btn { padding: 1rem; font-size: 0.95rem; }
    .solution-card { padding: 1.5rem; }

    .cap-tag { padding: 10px 18px; font-size: 0.75rem; }
    .stat-node { width: 90vw; max-width: 380px; height: 320px; padding: 1.5rem 1rem; }
    .stat-node-1 { left: 2000px; top: 500px; }
    .stat-node-2 { left: 1800px; top: 950px; } 
    .stat-node-3 { left: 2200px; top: 1400px; }
    .stat-number { font-size: 2.1rem !important; margin-top: 10px !important; letter-spacing: -1px; }
    .stat-prefix, .stat-suffix { font-size: 1.4rem !important; margin-top: 14px !important; }
    
    .split-container { flex-direction: column; justify-content: flex-start; padding-top: 5vh; }
    .media-column { flex: none; width: 100%; padding: 0 5%; margin-bottom: 15px; }
    .navy-tree-box { aspect-ratio: 4 / 3; max-width: 100%; height: auto; }
    .text-column { flex: none; height: 35vh; width: 100%; padding: 0 5%; }
    .timeline-step { position: absolute; top: 0; padding: 10px 15px; text-align: center; }
    .step-intro-title { font-size: 2.4rem !important; }
    .timeline-step h3 { font-size: 1.6rem !important; margin-bottom: 8px !important; }
    .timeline-step p { font-size: 0.95rem !important; line-height: 1.4 !important; }
    .step-intro, .step-1, .step-2, .step-3 { left: 0; right: 0; margin: 0 auto; width: 95%; }
    .mobile-center-text { text-align: center !important; }
}

@media (max-width: 400px) {
    .stat-number { font-size: 1.5rem !important; letter-spacing: -2px; }
}