/* --- 1. THEME VARIABLES (Strictly Dark Mode) --- */
:root {
    /* Brand Identity Colors */
    --brand-navy: #022e47;
    --brand-cream: #FAF8F1;
    --brand-orange: #f68f1d;
    --brand-pink: #ea3b60;
    --vf-navy: #0a1128;
    
    /* Dark Theme Mapping */
    --bg-body: var(--vf-navy);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --nav-bg-scrolled: rgba(10, 17, 40, 0.95);
    --nav-mobile-bg: var(--vf-navy);
    --nav-mobile-shadow: rgba(0,0,0,0.5);
    --footer-bg: #050812; /* Deep dark for footer */
    
    --vf-grad: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange) 65%, var(--brand-pink) 100%);
    
    --font-display: 'Bakbak One', cursive;
    --font-body: 'Work Sans', sans-serif;
}

/* --- 2. GLOBAL STYLES --- */
body {
    background-color: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 600;
}

.text-gradient {
    background: var(--vf-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 3. AMBIENT BACKGROUND --- */
.ambient-light {
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
    background: var(--bg-body);
}

.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 { width: 100vw; height: 100vw; background: var(--brand-orange); top: -10%; left: -10%; opacity: 0.15; }
.orb-2 { width: 30vw; height: 30vw; background: var(--brand-pink); bottom: 10%; right: -5%; animation-delay: -5s; opacity: 0.15; }
.orb-3 { width: 60vw; height: 60vw; background: #ff5500; top: 40%; left: 40%; animation-delay: -10s; opacity: 0.1; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -50px) scale(1.1); }
}

/* --- 4. BRAND LOGO & THEME IMAGES --- */
.brand-logo { 
    height: clamp(50px, 5vw, 70px); /* Responsive logo height */
    width: auto; 
    object-fit: contain; 
}
.logo-light, .theme-img-light { display: none; }
.logo-dark, .theme-img-dark { display: block; }

/* --- 5. VIEWPORT MANAGEMENT & HERO SECTION --- */
.agency-focus {
    box-sizing: border-box;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade-left-to-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

/* --- HERO TITLE --- */
.hero-title {
    font-family: var(--font-display);
    /* Increased font size substantially */
    font-size: clamp(3.8rem, 6.5vw, 5rem); 
    line-height: 0.9;
    letter-spacing: -0.01em;
    margin-top: 0.2rem; 
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--text-main);
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- HERO SUBTITLE (About Us) --- */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main); 
    display: block;
    /* Removed bottom margin to close the gap */
    margin-bottom: 0; 
}

.vf-stat-box {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vf-stat-box:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 62, 140, 0.3);
}

.text-vf-gradient {
    background: linear-gradient(90deg, #f68f1d, #e83e8c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- THE DIGITAL THREAD WRAPPER & LINE --- */
.genz-thread-wrapper {
    position: relative;
    /* Tighter left padding */
    padding-left: clamp(1.5rem, 3vw, 2.5rem); 
}

.thread-line {
    position: absolute;
    /* Shifted slightly left to align with smaller nodes */
    left: clamp(2px, 1vw, 8px); 
    top: 10px;
    bottom: 45px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-orange) 0%, var(--brand-pink) 50%, transparent 100%);
    opacity: 0.4;
    border-radius: 2px;
}

.thread-block {
    position: relative;
    /* Tighter bottom spacing between blocks */
    padding-bottom: 1rem; 
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thread-block:last-child { padding-bottom: 0; }
.thread-block:hover { transform: translateX(8px); }

/* --- THREAD NODES (Icons) --- */
.thread-node {
    position: absolute;
    /* Adjusted position for smaller size */
    left: -2.5rem; 
    /* Reduced from 32px */
    width: 26px; 
    height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Force icons inside the smaller node to be smaller */
.thread-node i {
    font-size: 0.7rem;
}

.fs-7 { font-size: 0.8rem; }
.bg-orange-glow { background: var(--brand-orange); }
.bg-pink-glow { background: var(--brand-pink); }
.bg-navy-glow { background: var(--brand-navy); }

.thread-block:hover .thread-node {
    transform: scale(1.15);
    box-shadow: 0 0 15px currentColor;
}

/* --- THREAD TYPOGRAPHY --- */
.thread-title {
    font-family: var(--font-body);
    font-weight: 800;
    /* Reduced from 24px/4vw/30px */
    font-size: clamp(16px, 2vw, 20px); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.thread-desc {
    /* Reduced from 16px/2.5vw/19px */
    font-size: clamp(15px, 2.5vw, 15px); 
    line-height: 1;
    font-weight: 500;
    color: var(--text-main);
    /* Tighter padding to match smaller titles */
    padding-left: 1rem; 
}

.thread-stat-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.thread-block:hover .thread-stat-glass { background: rgba(255, 255, 255, 0.1); }

/* --- STATS SECTION --- */
.stat-number { 
    font-family: var(--font-display); 
    /* Reduced from 1.8rem/3vw/2.2rem */
    font-size: clamp(1.2rem, 2vw, 1.6rem); 
}

.stat-label {
    font-family: var(--font-body);
    /* Reduced from 0.65rem */
    font-size: 0.55rem; 
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    color: var(--text-muted); 
    display: block; 
    margin-top: 2px;
}

/* --- 7. AGENCY FOCUS & SERVICES --- */
.agency-focus {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; padding: 100px 0; z-index: 1;
}

.focus-tag-line { width: 40px; height: 2px; background-color: var(--brand-orange); margin-right: 15px; }
.focus-tag-text { letter-spacing: 2px; color: var(--brand-orange); font-size: 0.85rem; }

.focus-headline { line-height: 1.2; }
.focus-headline-gradient {
    font-size: clamp(1.5em, 3vw, 1.9em);
    line-height: 0.8; 
    display: inline-block; 
}

.focus-mission-text, .focus-mission-text b {
    line-height: 1.6;
    font-weight: 600 !important;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

.services-highlight-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.services-highlight-border {
    height: 4px;
    background: linear-gradient(90deg, #e83e8c, #f68f1d, #d4af37);
}

.services-highlight-title { font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; }

.service-icon { width: 40px; height: 40px; }
.service-icon.icon-pink { background: rgba(232, 62, 140, 0.1); color: #e83e8c; }
.service-icon.icon-orange { background: rgba(246, 143, 29, 0.1); color: #f68f1d; }
.service-icon.icon-gold { background: rgba(212, 175, 55, 0.1); color: #d4af37; }
.service-name { letter-spacing: -0.5px; }

/* Verafede Service Card (Dark Glassmorphism default) */
.vf-svc-card {
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column; height: 100%;
}

/* --- 8. MISSION, VISION & CORE CARDS --- */
.mv-section { padding: 100px 0; background: transparent; }
.mv-subtitle {
    font-size: 1.1rem; color: #ffffff; opacity: 0.8; max-width: 90%; font-weight: 600;
}

.stack-container { display: flex; flex-direction: column; position: relative; }

.mv-card {
    position: relative; padding: 40px; border-radius: 30px;
    margin-bottom: -30px; 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mv-card-vision {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.mv-card-mission {
    background: rgba(246, 143, 29, 0.1);
    border: 1px solid rgba(246, 143, 29, 0.4);
    z-index: 2;
}

.mv-tag {
    font-weight: 900; font-size: clamp(2rem, 5vw, 3rem);
    position: absolute; right: 30px; top: 20px; opacity: 0.1; color: #ffffff;
}

.mv-title {
    font-weight: 800; letter-spacing: 2px; font-size: 0.85rem;
    color: var(--brand-orange); margin-bottom: 15px;
}

.mv-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.4;
    color: #ffffff; font-weight: 600; max-width: 90%;
}

.mv-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-orange);
    transform: translateY(-10px) scale(1.02); z-index: 5;
}

.v-tag { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }

/* Vision & Core Value Cards */
.vf-vision-card, .vf-core-card {
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 16px; overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.vf-vision-card { min-height: 400px; }

.vf-card-text { line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.vf-core-text { color: rgba(255, 255, 255, 0.85); }
.vf-core-content h3 { color: #ffffff; }
.vf-core-content .font-monospace { color: rgba(255, 255, 255, 0.5); }

.vf-card-img-top {
    width: 100%; height: 220px; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.vf-core-img-tall {
    width: 100%; height: 180px; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}

.vf-core-img-short {
    width: 100%; height: 140px; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
}

.vf-card-content { padding: 0px 30px 40px 30px; margin-top: -20px; z-index: 2; }
.vf-core-content { margin-top: -30px; z-index: 2; }

/* --- 9. HISTORY SECTION --- */
.history-section {
    background-color: var(--bg-body); padding: 100px 0; color: white;
    position: relative; overflow: hidden;
}

.history-accordion {
    display: flex; width: 100%; height: 600px; gap: 0; margin-top: 40px;
}

.history-panel {
    flex: 1; position: relative; overflow: hidden;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer; border-right: 1px solid rgba(255,255,255,0.1);
}
.history-panel:last-child { border-right: none; }

/* --- 10. MEDIA QUERIES (RESPONSIVENESS FOR TABLET & MOBILE) --- */

@media (min-width: 992px) {
    .hero-right-bleed {
        position: absolute; top: 0; right: 0; bottom: 0; width: 50vw; z-index: 1;
    }
    .focus-headline { line-height: 1.1; }
    .vf-vision-card:hover, .vf-core-card:hover { transform: translateY(-8px); }
}

@media (max-width: 991px) {
    /* Safe fluid heights for mobile/tablet */
    .agency-focus, .hero-right-bleed { height: auto !important; min-height: 100vh; }
    .agency-focus { padding: 100px 0 60px 0 !important; }
    
    /* Hero fixes */
    .hero-right-bleed { position: relative; width: 100%; height: 50vh !important; }
    .hero-section { flex-direction: column-reverse; justify-content: center; text-align: center; }
    .fade-left-to-right { mask-image: none; -webkit-mask-image: none; }
    
    /* Mission & Vision fixes */
    .mv-section { padding: 60px 0; }
    .stack-container { gap: 20px; }
    .mv-card { margin-bottom: 0; padding: 30px; }
    .mv-tag { top: 15px; right: 20px; }
    
    /* History Accordion Fix for mobile */
    .history-accordion { flex-direction: column; height: auto; min-height: 800px; }
    .history-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); min-height: 150px; }
    .history-panel:last-child { border-bottom: none; }
}

/* =========================================
   11. HISTORY SECTION (Hover & Mobile)
   ========================================= */
.history-panel:hover {
    flex: 3.5; 
}

.h-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.7s ease;
}

.history-panel:hover .h-bg-img {
    opacity: 0.8;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.h-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%);
    z-index: 1;
}

.h-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 40px; z-index: 2;
}

.h-year {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: rgba(255,255,255,0.3);
    transition: all 0.5s ease;
    transform-origin: bottom left;
}

.h-details {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: all 0.5s ease 0.1s; transform: translateY(20px);
}

.history-panel:hover .h-year {
    font-size: clamp(3.5rem, 6vw, 5rem);
    color: #d4af37; /* Replaced undefined var(--vf-gold) with actual hex */
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
}

.history-panel:hover .h-details {
    max-height: 200px; opacity: 1; transform: translateY(0);
}

/* =========================================
   12. ELASTIC SERVICES & FOOTER
   ========================================= */
.elastic-section {
    background-color: var(--bg-body);
    padding: 100px 0;
    position: relative; overflow: hidden; z-index: 10;
}

.elastic-wrapper { display: flex; width: 100%; height: 500px; gap: 10px; }

.elastic-card {
    flex: 1; position: relative; background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    overflow: hidden; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
}

.card-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; opacity: 0.3;
    filter: grayscale(100%) contrast(1.2); transition: all 0.8s ease;
}

.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(2, 46, 71, 0.2) 0%, rgba(10, 17, 40, 0.95) 90%);
    z-index: 1; transition: all 0.6s ease;
}

.elastic-card:hover { flex: 3; border-color: var(--brand-orange); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.elastic-card:hover .card-bg-image { opacity: 1; transform: scale(1.1); filter: grayscale(0%) contrast(1); }

.elastic-card:hover .card-overlay {
    background: linear-gradient(180deg, rgba(246, 143, 29, 0.6) 0%, rgba(246, 143, 29, 0.4) 50%, rgba(10, 17, 40, 1) 100%);
    mix-blend-mode: hard-light;
}

.card-content { position: relative; z-index: 2; width: 100%; min-width: 250px; }
.elastic-card:hover .elastic-icon { color: #fff; transform: scale(0.8) translateY(-20px); }
.elastic-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; margin-bottom: 10px; white-space: nowrap; }

.elastic-desc {
    font-family: var(--font-body); font-size: 1.1rem; color: rgba(255, 255, 255, 0.9);
    line-height: 1.6; max-height: 0; opacity: 0; transform: translateY(20px);
    transition: all 0.4s ease 0.1s; font-weight: 600;
}
.elastic-card:hover .elastic-desc { max-height: 150px; opacity: 1; transform: translateY(0); }

/* =========================================
   13. TYPOGRAPHY & BADGES (Dark Mode Hardcoded)
   ========================================= */
.mv-accent-line {
    width: 4px; height: 60px; background: var(--brand-orange); margin-bottom: 25px; border-radius: 2px;
}

.modern-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(246, 143, 29, 0.1); color: var(--brand-orange);
    font-weight: 800; font-size: 0.75rem; letter-spacing: 3px;
    border-radius: 100px; margin-bottom: 20px;
    border: 1px solid rgba(246, 143, 29, 0.2);
}

.text-gradient-bold {
    background: linear-gradient(90deg, #f68f1d 0%, #ff5e3a 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; display: block; 
}

.mv-description-box {
    margin-top: 30px; padding-left: 0; border-left: 0;
    border-left-color: rgba(255, 255, 255, 0.1); /* Dark mode override applied */
}

.mv-subtitle, .mv-subtitle strong {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #ffffff; /* Dark mode override applied */
    opacity: 0.9;
    font-weight: 400;
}
.mv-subtitle strong { font-weight: 700; }
.mv-subtitle { max-width: 320px; margin-top: 20px; }

.highlight-text {
    display: block; font-weight: 800; color: var(--brand-orange); margin-top: 5px;
}

.compass-label {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    letter-spacing: 4px; color: var(--brand-orange);
    font-weight: 700; display: block; margin-bottom: 15px;
}

.hero-statement {
    font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 900;
    line-height: 0.9; letter-spacing: -2px; text-transform: uppercase;
}

.outline-text {
    display: block; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); /* Dark mode override applied */
}

/* ==========================================================
   14. ALIGNMENT & SEAMLESS TIMELINE CONNECTION
   ========================================================== */
:root { --bs-aligned-offset: 15px; }
@media (min-width: 576px)  { :root { --bs-aligned-offset: calc((100vw - 540px) / 2 + 15px); } }
@media (min-width: 768px)  { :root { --bs-aligned-offset: calc((100vw - 720px) / 2 + 15px); } }
@media (min-width: 992px)  { :root { --bs-aligned-offset: calc((100vw - 960px) / 2 + 15px); } }
@media (min-width: 1200px) { :root { --bs-aligned-offset: calc((100vw - 1140px) / 2 + 15px); } }
@media (min-width: 1400px) { :root { --bs-aligned-offset: calc((100vw - 1320px) / 2 + 15px); } }

.aligned-header { padding-left: var(--bs-aligned-offset); }

.mv-section, .values-scroller-section {
    position: relative; overflow: visible !important; 
}

.prestige-anchor {
    display: flex; gap: 40px; align-items: flex-start; position: relative;
}

.brand-rail {
    width: 2px; background: var(--brand-orange); position: absolute; left: 0; z-index: 1;
}

.mv-section .brand-rail { top: 0; height: 200vh; }
.values-scroller-section .brand-rail { bottom: 0; height: 200vh; }

.brand-rail::after {
    content: ''; position: absolute; top: 10px; left: -4px;
    width: 10px; height: 10px; background: var(--brand-orange);
    border-radius: 50%; box-shadow: 0 0 15px var(--brand-orange);
}

.anchor-content { padding-left: 30px; }

.timeline-spine {
    position: absolute; left: 0; width: 2px; background: var(--brand-orange); z-index: 1;
}
.timeline-spine.extend-down { top: 0; height: 150vh; }
.timeline-spine.extend-up { bottom: 0; height: 150vh; }

.radiating-node {
    position: absolute; top: 10px; left: -4px;
    width: 10px; height: 10px; background: var(--brand-orange);
    border-radius: 50%; z-index: 2; box-shadow: 0 0 10px var(--brand-orange);
}

.radiating-node::before, .radiating-node::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border-radius: 50%; border: 2px solid var(--brand-orange);
    animation: pulse-radiate 2.5s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
.radiating-node::after { animation-delay: 1.25s; }

@keyframes pulse-radiate {
    0% { width: 10px; height: 10px; opacity: 1; }
    100% { width: 50px; height: 50px; opacity: 0; }
}

.unified-compass-values .values-header-zone { margin-top: 5rem; }

/* =========================================
   15. GALLERY SCROLLER (Converted to Dark Glassmorphism)
   ========================================= */
.values-track-viewport {
    overflow-x: hidden; padding: 2rem 0; perspective: 1000px; position: relative;
}

.values-track { display: flex; gap: 2rem; transition: transform 0.5s ease; }

.values-track .gallery-card {
    flex: 0 0 280px; 
    /* Hardcoded Dark Mode Glass Effect */
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    transform-style: preserve-3d; 
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: #ffffff;
}

.values-track .gallery-card:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(246, 143, 29, 0.4);
}

.values-track .gallery-card .card-inner { padding: 1.5rem; }
.values-track .gallery-card .card-top { display: flex; justify-content: space-between; align-items: center; }
.values-track .gallery-card .card-body { margin-top: 1rem; }

.values-track .gallery-card .card-title { font-weight: 700; font-size: 1.1rem; color: #ffffff; }
.values-track .gallery-card .card-desc { font-size: 0.9rem; margin: 0.5rem 0; color: rgba(255, 255, 255, 0.7); }

.values-track .gallery-card .card-footer { display: flex; gap: 0.5rem; }
.values-track .gallery-card .pill {
    background: var(--brand-orange); color: #fff; padding: 0.25rem 0.75rem;
    border-radius: 50px; font-size: 0.7rem; font-weight: 700;
}

/* =========================================
   16. MEDIA QUERIES (Mobile Breakdowns)
   ========================================= */
@media (max-width: 991px) {
    /* Responsive Spacing & Layout */
    .mv-accent-line { height: 40px; margin-left: auto; margin-right: auto; }
    .sticky-wrapper { text-align: center; }
    .focus-headline { letter-spacing: -1px; }
    .mv-subtitle { padding-left: 0; }
    
    .prestige-anchor { flex-direction: column; gap: 15px; text-align: left; }
    .hero-statement { font-size: 3.5rem; letter-spacing: -1px; }
    
    /* Disconnect timelines so they don't break horizontal layouts */
    .timeline-spine.extend-down, .timeline-spine.extend-up { height: 100%; top: 0; bottom: auto; }
    .mv-section .brand-rail, .values-scroller-section .brand-rail { height: 100%; top: 0; }
    
    .timeline-spine, .brand-rail {
        width: 100px; height: 2px;
        background: linear-gradient(to right, var(--brand-orange), transparent);
    }
    
    .radiating-node { top: -4px; left: 0; }
    .brand-rail::before { display: none; }
}

@media (max-width: 768px) {
    /* Gallery Track Mobile Stacking */
    .values-track { flex-direction: column; align-items: center; gap: 1.5rem; }
    .values-track .gallery-card { width: 100%; max-width: 350px; flex: none; margin-bottom: 0; }
    .values-track .gallery-card:hover { transform: scale(1.02); } /* Safer hover for touch devices */
    
    /* Elastic Service Cards */
    .elastic-wrapper { flex-direction: column; height: auto; min-height: 800px; }
    .elastic-card { min-height: 200px; }
    .elastic-card:hover { flex: none; transform: scale(1.02); } /* Disable crazy flex growth on mobile */
}

/* =========================================
   17. BENTO GRID SYSTEM (Dark Glassmorphism)
   ========================================= */
.bento-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 20px; width: 100%;
}

/* Base Card: Dark Navy Glass with Orange Accents */
.bento-item {
    background: rgba(10, 17, 40, 0.6); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(246, 143, 29, 0.3); 
    border-radius: 24px; padding: 30px; position: relative;
    overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
    justify-content: flex-end; min-height: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover State: Deeper Orange Glow */
.bento-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(246, 143, 29, 0.25) 0%, rgba(10, 17, 40, 0.8) 100%);
    border-color: rgba(246, 143, 29, 0.6);
    box-shadow: 0 15px 40px rgba(246, 143, 29, 0.25); 
}

/* Grid Placement & Brand Accents */
.bento-purpose { grid-column: span 2; border-top: 4px solid var(--brand-orange); }
.bento-passion { grid-column: span 1; border-top: 4px solid #ea3b60; /* Replaced undefined var(--vf-pink) */ }
.bento-people { grid-column: span 1; border-top: 4px solid #d4af37; /* Replaced undefined var(--vf-gold) */ }

/* Text & Typography */
.bento-title {
    font-weight: 800; font-size: 1.4rem; margin-bottom: 5px; letter-spacing: 2px;
    transition: transform 0.3s ease; color: #ffffff;
}

.bento-purpose .bento-title { color: var(--brand-orange); }
.bento-passion .bento-title { color: #ea3b60; }
.bento-people .bento-title { color: #d4af37; }

/* The Interaction (Hidden by default, reveals on hover) */
.bento-desc {
    font-size: 0.95rem; line-height: 1.4; color: rgba(255, 255, 255, 0.85);
    margin: 0; max-height: 0; opacity: 0; transform: translateY(15px);
    transition: all 0.4s ease; font-weight: 400;
}

/* --- Icon Styling --- */
.bento-icon {
    color: var(--brand-orange) !important; font-size: 3rem; 
    position: absolute; top: 25px; right: 25px; opacity: 0.8; 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-item:hover .bento-icon {
    opacity: 1; transform: scale(1.15) rotate(-10deg);
    filter: drop-shadow(0 4px 8px rgba(246, 143, 29, 0.5)); 
}

.bento-item:hover .bento-desc { max-height: 100px; opacity: 1; transform: translateY(0); margin-top: 10px; }

/* =========================================
   18. STICKER PATCHES & FOCUS HEADLINES (Dark Mode Merged)
   ========================================= */
.focus-headline,
.sticker-intro-text,
.sticker-outro-text {
    color: #ffffff !important;
    font-weight: 600;
}

/* =========================================
   19. ANNIVERSARY LANDSCAPE (Video Frame)
   ========================================= */
.anniversary-section { padding: 80px 20px; }
.anniversary-landscape {
    width: 100%; padding: 80px 20px; display: flex;
    justify-content: center; align-items: center; background: transparent; 
}

.anniversary-title h2 { letter-spacing: -1px; line-height: 1.2; font-weight: 800; }

.landscape-frame {
    position: relative; width: 100%; max-width: 900px; aspect-ratio: 16 / 9;
    border: 16px solid #1a1a1a; border-radius: 30px; background-color: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 0 2px #333; overflow: hidden;
}

.landscape-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 160px; height: 20px; background-color: #1a1a1a;
    border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; z-index: 10;
}

.landscape-frame video {
    width: 100%; height: 100%; object-fit: cover; border-radius: 18px; pointer-events: none;
}

/* =========================================
   20. VF STICKY NOTE (Preserved Identity)
   ========================================= */
.vf-sticky-note {
    background: #fff8dc; border: 3px solid var(--brand-orange); border-radius: 16px;
    padding: 40px; max-width: 420px; box-shadow: 8px 10px 20px rgba(0,0,0,0.35);
    position: relative; transform-origin: top center; transform: rotate(-3deg); 
    transition: transform 0.3s ease;
}

.vf-sticky-note::before {
    content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 20px; background: #d4af37; border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4); z-index: 2;
}

.vf-sticky-badge {
    display: inline-block; background: linear-gradient(135deg, var(--brand-orange), #ea3b60);
    color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; letter-spacing: 1px; animation: pulse 2s infinite;
}

.vf-sticky-heading {
    font-size: 1.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px;
    margin-bottom: 1rem; background: linear-gradient(135deg, var(--brand-orange) 0%, #ea3b60 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.vf-sticky-desc { font-size: 1.1rem; line-height: 1.6; color: #333; margin-bottom: 1rem; }
.vf-sticky-footer { text-align: right; }
.vf-sticky-date { font-size: 0.9rem; font-weight: 600; color: #555; }

.swing-bottom:hover { animation: swing-bottom 3s ease-in-out infinite; }

@keyframes swing-bottom {
    0% { transform: rotate(-3deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(-3deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   21. MOBILE LOCKS & OPTIMIZATIONS
   ========================================= */
@media (max-width: 991px) {
    .anniversary-title { text-align: center; margin-bottom: 30px; }

    /* --- History Section Mobile Locks --- */
    .history-accordion { flex-direction: column !important; height: auto !important; gap: 15px; }
    .history-panel { width: 100% !important; height: 250px !important; flex: none !important; border-radius: 16px !important; }
    
    .history-panel .h-details, .history-panel .h-content {
        opacity: 1 !important; transform: translateY(0) !important; max-height: 500px !important; 
    }
    
    .history-panel .h-overlay {
        background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%) !important; opacity: 1 !important;
    }

    /* --- Elastic Section Mobile Locks --- */
    .elastic-wrapper { flex-direction: column !important; height: auto !important; gap: 15px; }
    .elastic-card { width: 100% !important; height: 280px !important; flex: none !important; border-radius: 16px !important; }
    
    .elastic-card .card-content, .elastic-card .elastic-desc {
        opacity: 1 !important; transform: translateY(0) !important; height: auto !important; max-height: none !important; font-weight: 600;
    }
    
    .elastic-card .card-overlay {
        opacity: 1 !important; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 100%) !important;
    }
    
    .elastic-desc p { font-weight: 600 !important; font-size: 0.95rem; line-height: 1.6; color: #ffffff; }

    /* Kill All Hover Effects on Touch Devices */
    .history-panel:hover, .history-panel:active, .elastic-card:hover, .elastic-card:active {
        width: 100% !important; flex: none !important; transform: none !important;
    }
    .history-panel:hover .h-bg-img, .elastic-card:hover .card-bg-image,
    .history-panel:active .h-bg-img, .elastic-card:active .card-bg-image { transform: none !important; }
}

@media (max-width: 768px) {
    /* --- Bento Grid Mobile Fixes --- */
    .bento-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 2rem; }
    .bento-purpose, .bento-passion, .bento-people { grid-column: span 1; }
    .bento-item { padding: 20px; min-height: auto; }
    .bento-title { font-size: 1.2rem; margin-right: 50px; }
    
    .bento-desc { max-height: 200px; opacity: 1; transform: translateY(0); margin-top: 8px; font-size: 0.9rem; }
    .bento-icon { font-size: 2rem; top: 20px; right: 20px; opacity: 1; transform: rotate(-10deg); filter: drop-shadow(0 4px 8px rgba(246, 143, 29, 0.4)); }
    
    .timeline-spine { display: none !important; }
    .prestige-anchor { padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 1rem; }
    .mb-5.mb-lg-0 { margin-bottom: 1rem !important; }

    /* --- Agency Focus & Media Optimizations --- */
    .focus-headline { font-size: 2.2rem !important; line-height: 1.1; margin-bottom: 1rem; }
    .sticker-patch { padding: 8px 16px; font-size: 0.85rem; border-radius: 50px; white-space: nowrap; }
    .sticker-intro-text, .sticker-outro-text { font-size: 0.95rem; line-height: 1.6; padding: 0 15px; }
    
    .glass-stat-card { padding: 1.5rem 1rem !important; border-radius: 20px; }
    .stat-number { font-size: 3.5rem !important; }
    
    .map-title { font-size: 1.3rem; }
    .map-graphic-container { width: 100%; padding: 0 10px; }
    .map-pin { transform: scale(0.8) translate(-50%, -50%); }

    .landscape-frame { max-width: 100%; border-radius: 20px; }
}

/* =========================================
   22. ADDITIONAL OVERLAYS & CONTENT (History & Elastic Updates)
   ========================================= */

/* Base Dark Gradient */
.h-overlay-dark {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

/* Gold Tint Overlay (Fades out on hover to reveal image) */
.h-overlay-yellow {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(212, 175, 55, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2; transition: opacity 0.4s ease-in-out;
}

.history-panel:hover .h-overlay-yellow {
    opacity: 0;
}

/* Content Container Stacking Above Overlays */
.h-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 1.5rem; z-index: 3;
}

/* Override: Keep Elastic Card moody and deep black on hover */
.elastic-card:hover .card-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%) !important;
    opacity: 1 !important;
}

/* --- 10-YEAR ANNIVERSARY FULL-SCREEN VIDEO --- */

.anniversary-fullscreen-wrapper {
    position: relative;
    width: 100%;
    /* Fallback for older browsers */
    height: 100vh; 
    /* Modern dynamic height for mobile browsers (fixes address bar jumps) */
    height: 100dvh; 
    overflow: hidden;
    margin-top: 3rem;
}

.anniversary-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video fills the screen without stretching */
    z-index: 0;
}

.anniversary-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.anniversary-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding-bottom: 3rem; /* Spacing from the bottom */
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .anniversary-gradient-overlay {
        height: 80%; /* Taller dark fade on mobile to keep text readable over portrait crops */
    }
    
    .anniversary-content {
        padding-bottom: 2rem; /* Tighter padding on mobile */
    }
}