/*
Theme Name: Glass Studios Custom
Author: Glass Studios
Description: A custom GSAP-powered theme with pinned scrolling, cinematic layouts, and PRO Navigation.
Version: 1.2
*/

:root { 
    /* --- COLORS --- */
    --bg: #030303; 
    --surface: #0f0f0f; 
    --accent: #00d4ff; 
    --accent-glow: rgba(0, 212, 255, 0.15);
    --text: #ffffff; 
    --text-dim: rgba(255,255,255,0.7); 
    --border: rgba(255, 255, 255, 0.12); 
    
    /* --- MATERIALS --- */
    --glass: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    --glass-hover: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; } /* Prevents background scrolling when menu is open */

/* Texture Overlay */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s var(--ease); }
ul { list-style: none; }

.container { width: 90%; max-width: 1400px; margin: 0 auto; }
.section-pad { padding: 6rem 0; }

/* Unified Typography */
.label {
  font-size: 0.75rem; color: var(--accent); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 1rem; display: block; font-weight: 700;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.text-lead { font-size: 1.3rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); font-weight: 400; }
.section-desc { font-size: 1.15rem; color: var(--text-dim); max-width: 600px; margin-top: 1rem; margin-bottom: 3rem; line-height: 1.6; font-weight: 300; }
.section-header-wrapper { margin-bottom: 3rem; }

/* =========================================
   2. BUTTONS
   ========================================= */
.btn-primary, .btn-secondary, .btn-portal, .btn-nav {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 100px; font-weight: 700; transition: 0.3s var(--ease);
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; cursor: pointer;
}
.btn-primary { background: white; color: black; padding: 1rem 2.5rem; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-3px); }

.btn-secondary { color: white; border: 1px solid rgba(255, 255, 255, 0.4); padding: 1rem 2.5rem; backdrop-filter: blur(10px); background: rgba(255,255,255,0.02); }
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.btn-portal { background: white; color: black; padding: 1.5rem 4rem; font-size: 1.1rem; box-shadow: 0 0 60px rgba(0, 212, 255, 0.4); }
.btn-portal:hover { transform: scale(1.05); box-shadow: 0 0 90px rgba(0, 212, 255, 0.7); }

.btn-nav { padding: 0.6rem 1.5rem; border: 1px solid var(--accent); color: var(--accent); font-size: 0.8rem; background: rgba(0, 212, 255, 0.05); }
.btn-nav:hover { background: var(--accent); color: black; }

/* =========================================
   3. NAVIGATION & SIDEBAR (REBUILT)
   ========================================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; height: 90px; display: flex; align-items: center; background: transparent; transition: all 0.4s ease; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; letter-spacing: 2px; color: white; font-size: 1.2rem; position: relative; z-index: 10002; }
.logo img { max-height: 70px; width: auto; object-fit: contain; }

/* Desktop Menu */
.nav-wrapper { display: flex; align-items: center; gap: 3rem; }
.nav-list { display: flex; gap: 2rem; }
.nav-list a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.nav-list a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }

/* --- MOBILE TOGGLE BUTTON (THE HAMBURGER) --- */
.mobile-toggle { 
    display: none; /* Hidden on desktop */
    background: transparent; 
    border: none; 
    cursor: pointer; 
    z-index: 10002; /* Must be above the sidebar */
    padding: 10px;
    width: 45px; 
    height: 45px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.bar { 
    display: block; 
    width: 25px; 
    height: 2px; 
    background: white; 
    transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Bouncy animation */
    transform-origin: center;
}

/* Button Active State (Transforms to X) */
.mobile-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--accent); }
.mobile-toggle.active .bar:nth-child(2) { opacity: 0; transform: translateX(10px); }
.mobile-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--accent); }

/* --- RESPONSIVE SIDEBAR (MOBILE MENU) --- */
@media (max-width: 992px) {
    .mobile-toggle { display: flex; align-items: flex-end; }
    
    .nav-wrapper { 
        position: fixed; 
        top: 0; 
        right: 0; 
        width: 100%; 
        max-width: 100%; /* Full width on small phones, sidebar on larger */
        height: 100vh; 
        background: rgba(10, 10, 10, 0.98); 
        backdrop-filter: blur(20px); 
        border-left: 1px solid var(--border);
        flex-direction: column; 
        justify-content: center; 
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
        z-index: 10000; 
        transform: translateX(100%); /* Hide off-screen by default */
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }
    
    /* When Active (Slide In) */
    .nav-wrapper.active { transform: translateX(0); }
    
    .nav-list { 
        flex-direction: column; 
        gap: 3rem; 
        text-align: center;
    }
    
    .nav-list a { 
        font-size: 2rem; /* Big cinematic links */
        font-weight: 800; 
        color: white; 
    }
    
    .nav-list a:hover { color: var(--accent); letter-spacing: 2px; }
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero { 
    position: relative; width: 100%; display: flex; align-items: center; overflow: hidden; 
}

/* HOMEPAGE (Desktop): Full Height */
body.home .hero, body.front-page .hero { height: 100vh; }

/* HOMEPAGE (Mobile): Correct Spacing */
@media (max-width: 768px) {
    body.home .hero, body.front-page .hero { 
        height: auto; 
        min-height: 600px; 
        padding-top: 180px; 
        padding-bottom: 60px;
        align-items: flex-start;
    }
}

/* INNER PAGES: Flexible Height */
body:not(.home):not(.front-page) .hero { 
    height: auto; 
    min-height: 60vh; 
    padding-bottom: 4rem; 
    padding-top: 150px; 
    align-items: flex-start; 
}

.video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background-color: #000; background-image: none; }
.bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: blur(3px) contrast(1.1); }
.overlay-dark { position: absolute; inset: 0; background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%); z-index: 1; }
.overlay-scanlines { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.3) 3px); opacity: 0.5; }

.hero-content { position: relative; z-index: 10; width: 90%; max-width: 1400px; }

/* --- TYPOGRAPHY TUNING --- */
/* Default Mobile/Tablet Sizes */
body.home .hero-content, body.front-page .hero-content { padding-top: 60px; }
body.home .reveal-text, body.front-page .reveal-text {
    font-size: 3.5rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em;
}

body:not(.home):not(.front-page) .reveal-text, .about-title .line {
    font-size: 2.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em;
}

/* Laptop+ Scaling */
@media (min-width: 1024px) {
    body.home .reveal-text, body.front-page .reveal-text { font-size: clamp(4rem, 10vw, 9rem); }
    body:not(.home):not(.front-page) .reveal-text, .about-title .line { font-size: clamp(3rem, 5vw, 4.5rem); }
}

.color-accent { color: var(--accent); text-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
.hero-subtext { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); max-width: 600px; margin: 2rem 0; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-btns { display: flex; gap: 1rem; }

/* Marquee */
.trust-bar { border-block: 1px solid var(--border); padding: 1.5rem 0; overflow: hidden; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); }
.marquee-content { display: flex; gap: 5rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee-content span { font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =========================================
   5. PAGE SECTIONS
   ========================================= */
.centered-layout { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 4rem; }
.big-headline { font-size: 2.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; color: white; }
@media (min-width: 1024px) { .big-headline { font-size: clamp(3rem, 6vw, 5rem); } }

.centered-subtext { font-size: 1.2rem; color: var(--text-dim); max-width: 700px; margin: 0 auto 2rem; }
.centered-layout .btn-secondary { margin-top: 1rem; display: inline-block; }

.cinematic-image-container { 
    width: 100%; border-radius: 24px; overflow: hidden; position: relative; 
    border: 1px solid var(--border); margin-top: 5rem; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.cinematic-img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; filter: grayscale(100%); }
.cinematic-image-container:hover .cinematic-img { filter: grayscale(0%); transform: scale(1.02); }

/* --- SPLIT PINNING (NATURAL SCROLL HEADER + PINNED CARDS) --- */
.split-pin-section { 
    position: relative; 
    width: 100%; 
    height: auto; 
    min-height: 100vh; 
    background: transparent; 
    display: block;
    z-index: 10; 
    padding-bottom: 4rem;
}

/* Header floats absolute top (8% down) for visual overlap */
.fixed-header { 
    position: absolute; 
    top: 8%; 
    left: 0; 
    width: 100%; 
    text-align: center; 
    z-index: 20; 
    pointer-events: none; 
    padding: 0 2rem;
}

.section-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 900; 
    color: white; 
    letter-spacing: -0.02em; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

/* The Deck Container */
.deck-container { 
    position: relative; 
    width: 90%; 
    max-width: 1200px; 
    height: 100vh; 
    max-height: 800px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: 0 auto;
}

.split-card { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    height: 100%; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
}

.card-content { 
    background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(20px); 
    border: 1px solid var(--border); border-right: none; 
    border-radius: 24px 0 0 24px; padding: 5rem; 
    display: flex; flex-direction: column; justify-content: center; z-index: 2; 
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.card-visual { height: 100%; border: 1px solid var(--border); border-left: none; border-radius: 0 24px 24px 0; overflow: hidden; z-index: 2; background: #000; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.card-num { font-size: 3.5rem; font-weight: 900; opacity: 0.1; color: white; margin-bottom: 0.5rem; }
.split-card h3 { font-size: 2.2rem; line-height: 1.1; margin-bottom: 1rem; color: white; }
.card-tags { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.card-tags li { border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.75rem; color: #00d4ff; text-transform: uppercase; }

/* Laptop Padding Tweaks */
@media (min-width: 1024px) and (max-width: 1440px) {
    .deck-container { height: 80vh; max-height: 700px; }
    .card-content { padding: 3rem; }
    .split-card h3 { font-size: 2rem; margin-bottom: 1rem; }
    .card-num { font-size: 3rem; }
    .fixed-header { top: 5%; } 
}

/* Mobile Stack */
@media (max-width: 1024px) {
    .split-pin-section { padding-top: 100px; }
    
    /* Header becomes relative on mobile so it doesn't overlap weirdly */
    .fixed-header { position: relative; top: 0; margin-bottom: 3rem; }
    
    .deck-container { height: auto; display: block; padding-bottom: 4rem; padding-top: 0; }
    .split-card { 
        position: relative; height: auto; grid-template-columns: 1fr; 
        left: 0; transform: none; width: 100%; margin-bottom: 2rem;
        opacity: 1 !important; visibility: visible !important;
    }
    .card-content { border-right: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 3rem 2rem; opacity: 1 !important; transform: none !important; }
    .card-visual { height: 300px; border-left: 1px solid var(--border); border-radius: 0 0 24px 24px; opacity: 1 !important; transform: none !important; }
}

/* --- APPROACH --- */
.approach-section { border-top: 1px solid var(--border); position: relative; overflow: visible; background: rgba(5,5,5,0.3); }
.approach-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; align-items: start; min-height: 80vh; }
.approach-intro { position: sticky; top: 120px; height: fit-content; display: flex; flex-direction: column; gap: 3rem; }
.approach-image-wrapper { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #111; border: 1px solid var(--border); }
.approach-img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.philosophy-wrapper { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; padding-bottom: 2rem; }
.philosophy-list { display: flex; flex-direction: column; gap: 3rem; }
.philosophy-item { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 900; line-height: 1; display: flex; align-items: center; gap: 1.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; opacity: 0.5; transition: 0.4s; }
.philosophy-item:hover, .philosophy-item.active { opacity: 1; padding-left: 2rem; border-color: var(--accent); }
.phil-positive { color: white; text-shadow: 0 0 10px rgba(255,255,255,0.1); }
.phil-positive:hover, .phil-negative:hover { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.phil-negative { color: #555; text-decoration: line-through; text-decoration-color: var(--accent); }

/* --- UNIFIED CARDS --- */
.industry-item, .value-card, .team-member {
    background: var(--glass); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 3rem 2rem; transition: 0.4s var(--ease);
}
.industry-item:hover, .value-card:hover { background: var(--glass-hover); border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.industry-list, .values-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }

.ind-icon, .val-icon { font-size: 3rem; color: var(--accent); opacity: 0.5; margin-bottom: 1.5rem; display: block; }
.industry-item:hover .ind-icon, .value-card:hover .val-icon { opacity: 1; transform: scale(1.1); text-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
.value-card h3, .industry-item h3 { font-size: 1.5rem; margin-bottom: 1rem; color: white; }
.value-card p { font-size: 1rem; color: var(--text-dim); line-height: 1.6; }

/* Team Specific */
.team-member { padding: 2rem; }
.member-img { width: 100%; aspect-ratio: 1/1.2; overflow: hidden; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.member-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.team-member:hover img { filter: grayscale(0%); transform: scale(1.05); }
.team-member h4 { color: white; margin-top: 1rem; font-size: 1.2rem; }
.team-member span { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; }

/* =========================================
   6. ABOUT PAGE SPECIFIC
   ========================================= */
.about-hero { 
    padding-top: 150px; padding-bottom: 5rem; 
    min-height: 60vh; height: auto; 
    display: flex; flex-direction: column; justify-content: flex-start; 
    border-bottom: 1px solid var(--border); 
}
.about-title { margin-bottom: 3rem; }
.about-hero-sub { max-width: 700px; border-left: 2px solid var(--accent); padding-left: 2rem; margin-left: 5px; }
.about-hero-sub p { font-size: 1.3rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }

.manifesto-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.manifesto-header { position: sticky; top: 150px; }
.manifesto-header h2 { font-size: 3rem; line-height: 1; margin-top: 1rem; }
.manifesto-content { border-left: 1px solid var(--border); padding-left: 4rem; }
.block-title { color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; font-weight: 700; }
.spacer-top { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 4rem; }

/* =========================================
   7. SERVICES & JOURNAL
   ========================================= */
.spec-card { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--border); padding: 5rem 0; transition: 0.3s; background: transparent; }
.spec-card:hover { background: var(--glass); padding-left: 2rem; border-color: var(--accent); }
.spec-header h2 { font-size: 2.5rem; line-height: 1.1; max-width: 300px; margin-top: 1rem; color: white; }
.spec-id { font-family: monospace; font-size: 0.9rem; opacity: 0.5; color: var(--accent); letter-spacing: 2px; }
.spec-body { padding-left: 4rem; border-left: 1px solid var(--border); }
.spec-body p { font-size: 1.3rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 3rem; max-width: 700px; line-height: 1.6; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 1rem; }
.spec-tags span { border: 1px solid var(--border); padding: 0.5rem 1.2rem; font-size: 0.85rem; color: var(--text-dim); border-radius: 100px; text-transform: uppercase; transition: 0.3s; }
.spec-card:hover .spec-tags span { border-color: var(--accent); color: var(--accent); background: rgba(0, 212, 255, 0.05); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.post-card { display: flex; flex-direction: column; transition: 0.3s; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); overflow: hidden; backdrop-filter: blur(10px); }
.post-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.post-link-wrapper { display: flex; flex-direction: column; height: 100%; }
.post-visual { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); background: #111; }
.post-visual img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; }
.post-card:hover .post-visual img { transform: scale(1.1); }
.fallback-thumb { width: 100%; height: 100%; background: linear-gradient(45deg, #111, #222); }
.post-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { font-family: monospace; font-size: 0.8rem; margin-bottom: 1rem; color: var(--text-dim); }
.post-date { color: var(--accent); margin-right: 0.5rem; }
.post-title { font-size: 1.4rem; line-height: 1.3; margin-bottom: 1rem; color: white; transition: 0.3s; }
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 2rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-btn { margin-top: auto; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: white; display: inline-flex; align-items: center; gap: 0.5rem; transition: 0.3s; }
.post-card:hover .read-btn { gap: 1rem; color: var(--accent); }
.pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 4rem; }
.pagination .page-numbers { padding: 0.8rem 1.5rem; border: 1px solid var(--border); color: white; transition: 0.3s; border-radius: 4px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--accent); color: black; border-color: var(--accent); }

/* =========================================
   8. CONTACT & FOOTER
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; }
.info-block { margin-bottom: 2.5rem; }
.info-label { display: block; font-size: 0.8rem; color: var(--accent); text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 1px; }
.info-link { font-size: 1.3rem; color: white; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 2px; transition: 0.3s; }
.info-link:hover { color: var(--accent); border-color: var(--accent); }
.node-list { list-style: none; color: white; font-family: monospace; }
.node-list li { margin-bottom: 0.5rem; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { font-size: 1rem; color: var(--text-dim); transition: 0.3s; text-decoration: underline; }
.social-links a:hover { color: var(--accent); }
.glass-form { display: flex; flex-direction: column; gap: 2rem; padding: 3rem; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 24px; }
.form-group { display: flex; flex-direction: column; gap: 0.8rem; }
.form-group label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.form-input { background: transparent; border: none; border-bottom: 1px solid var(--border); padding: 1rem 0; color: white; font-family: "Inter", sans-serif; font-size: 1.1rem; transition: 0.3s; border-radius: 0; }
.form-input:focus { outline: none; border-bottom-color: var(--accent); background: rgba(0, 212, 255, 0.02); padding-left: 1rem; }
select.form-input { cursor: pointer; }
select.form-input option { background: #000; color: white; }

/* CTA & Footer */
.cta-portal-section { position: relative; padding: 14rem 0 10rem; background: #000; overflow: hidden; perspective: 600px; text-align: center; }
.cta-horizon-grid { position: absolute; bottom: -15%; left: -50%; width: 200%; height: 100%; transform: rotateX(70deg); z-index: 0; pointer-events: none; mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 80%); }
.horizon-lines { position: absolute; width: 100%; height: 200%; background-image: linear-gradient(rgba(0, 212, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, 0.2) 1px, transparent 1px); background-size: 80px 80px; animation: gridMove 3s linear infinite; opacity: 0.6; }
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(80px); } }
.horizon-glow { position: absolute; top: -100px; left: 0; width: 100%; height: 80%; background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.4) 0%, transparent 70%); filter: blur(80px); z-index: 0; }
.cta-content-wrapper { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-headline { font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; line-height: 1; margin: 2rem 0; color: white; }

.site-footer { border-top: 1px solid var(--border); background: rgba(5,5,5,0.8); backdrop-filter: blur(10px); padding: 5rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 5rem; align-items: start; }
.brand-col .logo { margin-bottom: 1.5rem; }
.brand-col .footer-desc { color: var(--text-dim); line-height: 1.6; max-width: 300px; }
.footer-col h4 { color: var(--accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links li a { color: var(--text-dim); text-decoration: none; transition: 0.3s; }
.footer-links li a:hover { color: white; padding-left: 5px; text-shadow: 0 0 10px var(--accent-glow); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: #555; font-size: 0.8rem; }
.legal-links { display: flex; gap: 2rem; }
.legal-links a { color: #555; text-decoration: none; transition: 0.3s; }
.legal-links a:hover { color: var(--accent); }

/* =========================================
   9. SINGLE POST LAYOUT
   ========================================= */

/* Hero Specifics */
.single-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

/* DESKTOP (WEB) OVERRIDE: Full Height Cover */
@media (min-width: 1024px) {
    .single-hero {
        height: 100vh;
        background-attachment: fixed;
        padding-top: 0;
    }
    .single-hero .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }
}

.single-meta {
    font-family: monospace;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.single-meta .divider { margin: 0 15px; height: 1px; width: 30px; background: rgba(255,255,255,0.3); display: inline-block; }
.single-meta a { color: var(--accent); }

.small-container { max-width: 800px; margin: 0 auto; position: relative; z-index: 5; }

.entry-content { font-size: 1.25rem; line-height: 1.8; color: rgba(255, 255, 255, 0.9); font-weight: 300; }
.entry-content h2 { font-size: 2.5rem; font-weight: 800; margin-top: 4rem; margin-bottom: 1.5rem; color: white; letter-spacing: -0.02em; }
.entry-content h3 { font-size: 1.8rem; font-weight: 700; margin-top: 3rem; margin-bottom: 1rem; color: var(--accent); }
.entry-content p { margin-bottom: 2rem; }
.entry-content ul, .entry-content ol { margin-bottom: 2.5rem; padding-left: 1.5rem; color: var(--text-dim); }
.entry-content li { margin-bottom: 0.8rem; }
.entry-content a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(0, 212, 255, 0.3); transition: 0.3s; }
.entry-content a:hover { color: white; border-color: white; background: rgba(0, 212, 255, 0.1); }
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 4rem 0; font-size: 1.6rem; font-weight: 400; font-style: italic; color: white;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    padding: 3rem; border-radius: 0 12px 12px 0; position: relative;
}
.entry-content img { border-radius: 12px; border: 1px solid var(--border); margin: 3rem 0; width: 100%; height: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }

.post-footer { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.tags-list a { 
    display: inline-block; padding: 0.5rem 1.5rem; border: 1px solid var(--border); border-radius: 100px; 
    font-size: 0.8rem; margin-right: 0.8rem; margin-bottom: 0.8rem; color: var(--text-dim); text-transform: uppercase; transition: 0.3s;
}
.tags-list a:hover { border-color: var(--accent); color: black; background: var(--accent); }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-navigation a { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; color: white; transition: 0.3s; line-height: 1.4; }
.post-navigation a:hover { color: var(--accent); }
.nav-next { text-align: right; }

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: 1fr; gap: 3rem; }
  .approach-intro { position: relative; top: 0; }
  .industry-item { width: calc(50% - 1rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .manifesto-header { position: relative; top: 0; margin-bottom: 2rem; }
  .manifesto-content { border-left: none; padding-left: 0; }
  .spec-card { grid-template-columns: 1fr; gap: 2rem; }
  .spec-body { border-left: none; padding-left: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .glass-form { padding: 2rem; }
}
@media (max-width: 992px) {
  .mobile-toggle { display: flex; align-items: flex-end; }
  .nav-wrapper { 
      position: fixed; top: 0; right: 0; width: 100%; max-width: 100%; height: 100vh; 
      background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(20px); border-left: 1px solid var(--border);
      flex-direction: column; justify-content: center; transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
      z-index: 10000; transform: translateX(100%); box-shadow: -20px 0 50px rgba(0,0,0,0.5);
  }
  .nav-wrapper.active { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 3rem; text-align: center; }
  .nav-list a { font-size: 2rem; font-weight: 800; color: white; }
  .nav-list a:hover { color: var(--accent); letter-spacing: 2px; }
}
@media (max-width: 768px) {
  .single-hero { height: 70vh; padding-top: 150px; align-items: flex-start; }
  .entry-content { font-size: 1.1rem; }
  .entry-content h2 { font-size: 2rem; }
  .entry-content blockquote { font-size: 1.2rem; padding: 2rem; }
  .post-navigation { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .nav-next { text-align: left; }
  .industry-item { width: 100%; }
  .cta-headline { font-size: 3rem; }
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .brand-col .footer-desc { margin: 0 auto; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
  .legal-links { justify-content: center; }
  .about-title .line { font-size: 2.5rem; }
  .about-hero-sub { border-left: none; padding-left: 0; }
  .posts-grid { grid-template-columns: 1fr; }
}