/* ═══ ECLYPSO SOFTWARE LIMITED v2 ═══ */
/* Dark/Gold Professional Theme */

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

:root {
    --bg: #0a0a0c;
    --bg-elevated: #0f0f12;
    --bg-card: #141418;
    --bg-card-hover: #1a1a1f;
    --accent: #e8c547;
    --accent-dim: rgba(232, 197, 71, 0.08);
    --accent-glow: rgba(232, 197, 71, 0.04);
    --accent-hover: #f0d060;
    --text: #e8e6e1;
    --text-dim: #8a8a8d;
    --text-muted: #555558;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --success: #4ade80;
    --danger: #ef4444;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 72px;
    --section-pad: 5rem 3rem;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-label {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.section-subtitle { font-size: 1rem; color: var(--text-dim); max-width: 520px; margin: 0 auto; }

section { padding: var(--section-pad); max-width: 1200px; margin: 0 auto; }

/* ═══ NAVIGATION ═══ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 2rem; height: var(--nav-height);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 12, 0.95); }

.logo {
    font-family: var(--font-mono); font-size: 0.88rem;
    color: var(--text-muted); letter-spacing: 0.02em;
    transition: color 0.3s; white-space: nowrap;
}
.logo span { color: var(--text); font-weight: 500; }
.logo:hover { color: var(--accent); }

.nav-links {
    display: flex; align-items: center; gap: 0;
    list-style: none; height: 100%;
}
.nav-links > li {
    position: relative; height: 100%;
    display: flex; align-items: center;
}
.nav-links > li > a {
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 400;
    color: var(--text-dim); padding: 0 1.1rem; height: 100%;
    display: flex; align-items: center; gap: 0.35rem;
    transition: color 0.3s; letter-spacing: 0.01em;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--text); }
.nav-links > li > a .nav-arrow {
    font-size: 0.55rem; transition: transform 0.3s; opacity: 0.5;
}
.nav-links > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* ═══ MEGA DROPDOWN ═══ */
.mega-dropdown {
    position: absolute; top: var(--nav-height); left: 50%; transform: translateX(-50%);
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem; min-width: 280px;
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
    transition: all 0.25s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    pointer-events: none;
}
.nav-links > li:hover .mega-dropdown {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-dropdown.wide { min-width: 560px; padding: 2rem; }

.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mega-single { display: flex; flex-direction: column; gap: 0.25rem; }

.mega-heading {
    font-family: var(--font-mono); font-size: 0.62rem; color: var(--accent);
    letter-spacing: 0.15em; text-transform: uppercase;
    padding: 0.5rem 0.75rem 0.5rem; margin-bottom: 0.25rem;
}

.mega-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.75rem; border-radius: 8px;
    transition: all 0.2s; color: var(--text);
}
.mega-link:hover { background: var(--accent-dim); color: var(--accent); }
.mega-link-icon {
    width: 32px; height: 32px; border-radius: 6px;
    background: var(--accent-dim); display: flex; align-items: center;
    justify-content: center; font-size: 0.85rem; flex-shrink: 0;
}
.mega-link-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.mega-link-text { display: flex; flex-direction: column; }
.mega-link-title { font-size: 0.82rem; font-weight: 500; }
.mega-link-desc { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ═══ AI ACADEMY NAV BUTTON ═══ */
.nav-ai-btn {
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: var(--bg) !important;
    background: var(--accent) !important;
    padding: 0.45rem 1rem !important;
    border-radius: 50px;
    height: auto !important;
    margin-left: 0.6rem;
    letter-spacing: 0.06em;
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s !important;
    animation: aiNavGlow 3s ease-in-out infinite;
}
.nav-ai-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.55s ease;
}
.nav-ai-btn:hover::before { transform: translateX(110%); }
.nav-ai-btn:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 0 22px rgba(232,197,71,0.45), 0 4px 20px rgba(232,197,71,0.2) !important;
    color: var(--bg) !important;
}
.nav-ai-star {
    font-size: 0.58rem;
    display: inline-block;
    animation: starSpin 5s linear infinite;
}
@keyframes starSpin { to { transform: rotate(360deg); } }
@keyframes aiNavGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(232,197,71,0.25); }
    50%       { box-shadow: 0 0 18px rgba(232,197,71,0.5), 0 0 35px rgba(232,197,71,0.15); }
}

/* Mobile: AI button full-width gold strip */
@media (max-width: 900px) {
    .nav-ai-btn {
        margin-left: 0 !important;
        border-radius: 6px !important;
        padding: 0.85rem 1rem !important;
        justify-content: center;
        font-size: 0.8rem !important;
        animation: none;
        box-shadow: none !important;
    }
    .nav-ai-btn:hover { transform: none !important; }
}

/* ═══ BUTTONS ═══ */
.btn-primary {
    display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.08em; padding: 1rem 2rem; background: var(--accent);
    color: var(--bg); font-weight: 500; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,197,71,0.25); background: var(--accent-hover); }

.btn-secondary {
    display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.08em; padding: 1rem 2rem; border: 1px solid var(--border);
    color: var(--text-dim); transition: all 0.3s; cursor: pointer; background: transparent;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ═══ PROJECT ANCHOR OFFSET — account for fixed navbar ═══ */
#project-nageye, #project-redstone, #project-golden-crown {
    scroll-margin-top: 80px;
}

/* ═══ PAGE HERO ═══ */
.page-hero {
    padding: 10rem 3rem 4rem; max-width: 800px; margin: 0 auto; text-align: center;
}
.page-hero-tag {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.page-hero-tag::before, .page-hero-tag::after { content: ''; width: 2rem; height: 1px; background: var(--accent); }
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.page-hero p { font-size: 1.05rem; color: var(--text-dim); max-width: 560px; margin: 0 auto; }
.highlight { color: var(--accent); }

/* ═══ STATS ═══ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card { text-align: center; padding: 2rem; }
.stat-number {
    font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800; color: var(--accent); line-height: 1.2;
}
.stat-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.5rem; }

/* ═══ CARDS ═══ */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 2rem; transition: all 0.4s;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 16px 50px rgba(0,0,0,0.3); }

/* ═══ PROJECT CARDS ═══ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; transition: all 0.4s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,0.3); }
.project-preview {
    height: 220px; position: relative; overflow: hidden; cursor: pointer; background: #0a0a0c;
}
.project-preview video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-preview video { transform: scale(1.03); }
.project-preview .play-indicator {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px; background: rgba(0,0,0,0.6);
    border: 2px solid var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; pointer-events: none; z-index: 2;
}
.project-preview .play-indicator::after {
    content: ''; display: block; width: 0; height: 0; border-style: solid;
    border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--accent);
    margin-left: 3px;
}
.project-card:hover .play-indicator { opacity: 0; }
.project-status {
    position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono);
    font-size: 0.65rem; padding: 0.3rem 0.7rem; border-radius: 20px; z-index: 2;
}
.status-live { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.status-dev { background: rgba(232, 197, 71, 0.15); color: var(--accent); }
.project-info { padding: 1.5rem; }
.project-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 1rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tech span {
    font-family: var(--font-mono); font-size: 0.65rem; padding: 0.25rem 0.6rem;
    background: var(--accent-dim); color: var(--accent); border-radius: 3px;
}

/* ═══ PROJECT DETAIL ═══ */
.project-detail {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 3rem;
}
.project-detail-video {
    width: 100%; height: 400px; position: relative;
    overflow: hidden; cursor: pointer; background: #0a0a0c;
}
.project-detail-video video { width: 100%; height: 100%; object-fit: cover; }
.project-detail-video .play-indicator {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 72px; height: 72px; background: rgba(0,0,0,0.6);
    border: 2px solid var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; pointer-events: none;
}
.project-detail-video .play-indicator::after {
    content: ''; display: block; width: 0; height: 0; border-style: solid;
    border-width: 10px 0 10px 18px; border-color: transparent transparent transparent var(--accent);
    margin-left: 4px;
}
.project-detail-video:hover .play-indicator { opacity: 0; }
.project-detail-body { padding: 2.5rem; }
.project-detail-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.5rem; }
.project-detail-body h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.project-detail-body .project-desc { font-size: 1rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 2rem; max-width: 700px; }
.project-detail-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    padding-top: 2rem; border-top: 1px solid var(--border);
}
.meta-group h4 {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.meta-group p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

/* ═══ VIDEO MODAL ═══ */
.video-modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999; background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
    align-items: center; justify-content: center; flex-direction: column; padding: 2rem;
}
.video-modal.active { display: flex !important; }
.video-modal-content { position: relative; width: 90%; max-width: 900px; }
.video-modal-content video { width: 100%; border-radius: 8px; }
.video-modal-close {
    position: absolute; top: -3rem; right: 0; width: 40px; height: 40px;
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; color: var(--text); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* ═══ SOLUTION PAGE ═══ */
.solution-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 2rem; border-radius: 8px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }

.solution-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-step {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 2rem; border-radius: 8px; text-align: center; transition: all 0.3s;
}
.process-step:hover { border-color: var(--accent); transform: translateY(-3px); }
.process-number {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
    color: var(--accent); opacity: 0.3; line-height: 1; margin-bottom: 1rem;
}
.process-step h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

/* ═══ CTA BANNER ═══ */
.cta-banner {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 4rem; text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -100px; left: 50%;
    transform: translateX(-50%); width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none; opacity: 0.5;
}
.cta-banner h2 {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800; margin-bottom: 1rem; position: relative;
}
.cta-banner p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 2rem; position: relative; }

/* ═══ TEAM ═══ */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.team-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; transition: all 0.4s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,0.3); }
.team-card.featured { display: grid; grid-template-columns: 1fr 2fr; }
.team-avatar {
    height: 100%; min-height: 350px; background: #111114;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.avatar-initials { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: var(--accent); opacity: 0.15; }
.team-avatar-icon {
    position: absolute; bottom: 1rem; right: 1rem; font-family: var(--font-mono);
    font-size: 0.65rem; color: var(--accent); background: var(--accent-dim);
    padding: 0.3rem 0.7rem; border-radius: 4px; letter-spacing: 0.05em;
}
.team-info { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.team-role {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.team-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.team-bio { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 1.25rem; }
.team-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.team-skills span {
    font-family: var(--font-mono); font-size: 0.65rem; padding: 0.25rem 0.6rem;
    background: var(--accent-dim); color: var(--accent); border-radius: 3px;
}
.team-links { display: flex; gap: 1rem; }
.team-links a {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
    transition: color 0.3s; display: flex; align-items: center; gap: 0.3rem;
}
.team-links a:hover { color: var(--accent); }

/* ═══ FORMS ═══ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase;
}
.form-group input, .form-group textarea, .form-group select {
    background: var(--bg); border: 1px solid var(--border); padding: 0.85rem 1rem;
    border-radius: 6px; color: var(--text); font-family: var(--font-body);
    font-size: 0.9rem; transition: border-color 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ═══ FOOTER ═══ */
footer {
    border-top: 1px solid var(--border); padding: 4rem 3rem 2rem;
    max-width: 1200px; margin: 0 auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); margin-top: 1rem; line-height: 1.6; max-width: 280px; }
.footer-heading {
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent);
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 2rem; border-top: 1px solid var(--border);
}
.footer-text { font-size: 0.75rem; color: var(--text-muted); }
.footer-association { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.footer-association span { color: var(--accent); }

/* ═══ ANIMATIONS ═══ */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ HAMBURGER ═══ */
.hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
    z-index: 1001;
}
.hamburger span {
    display: block; width: 22px; height: 1.5px; background: var(--text);
    margin: 5px 0; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
.nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 998;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .solution-features { grid-template-columns: repeat(2, 1fr); }
    .solution-process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --section-pad: 3rem 1.5rem; }
    nav { padding: 0 1.5rem; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px;
        height: 100vh; background: var(--bg-elevated); flex-direction: column;
        justify-content: flex-start; padding: 5rem 1.5rem 2rem; gap: 0;
        transition: right 0.35s ease; z-index: 999; border-left: 1px solid var(--border);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .nav-links.open { right: 0; }
    .nav-links > li { height: auto; flex-direction: column; align-items: stretch; width: 100%; border-bottom: 1px solid var(--border); }
    .nav-links > li:last-child { border-bottom: none; }
    .nav-links > li > a { padding: 1rem 0; height: auto; justify-content: space-between; font-size: 0.88rem; color: var(--text); }
    .nav-links > li > a .nav-arrow { font-size: 0.6rem; opacity: 0.6; transition: transform 0.3s; }
    .nav-links > li:hover > a .nav-arrow { transform: none; }
    .nav-arrow.rotated { transform: rotate(180deg) !important; }
    .mega-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: 0 !important;
        display: none;
        pointer-events: auto !important;
        border-radius: 0;
        max-height: none;
        overflow: visible;
    }
    .mega-dropdown.wide { min-width: 0 !important; padding: 0; }
    .mega-dropdown.mobile-open {
        display: block;
        padding: 0.5rem 0 0.75rem 0.75rem;
        border-left: 2px solid var(--accent);
        margin: 0.25rem 0 0.5rem 0.25rem;
        background: rgba(20, 20, 24, 0.6);
    }
    .nav-links > li:hover .mega-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
    }
    .nav-links > li:hover .mega-dropdown.mobile-open {
        display: block;
    }
    .mega-grid { grid-template-columns: 1fr; gap: 0.15rem; }
    .mega-heading { padding: 0.5rem 0.5rem 0.25rem; font-size: 0.6rem; margin-bottom: 0; }
    .mega-link { padding: 0.5rem 0.5rem; gap: 0.6rem; border-radius: 6px; }
    .mega-link-icon { width: 28px; height: 28px; font-size: 0.72rem; border-radius: 5px; }
    .mega-link-icon svg { width: 15px; height: 15px; }
    .mega-link-title { font-size: 0.8rem; }
    .mega-link-desc { font-size: 0.65rem; display: block; color: var(--text-muted); }

    .page-hero { padding: 7rem 1.5rem 3rem; }
    .page-hero h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .solution-features { grid-template-columns: 1fr; }
    .solution-process { grid-template-columns: 1fr; }
    .team-card.featured { grid-template-columns: 1fr; }
    .team-avatar { min-height: 280px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .project-detail-video { height: 250px; }
    .project-detail-meta { grid-template-columns: 1fr; gap: 1.5rem; }
    .cta-banner { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ═══ CURSOR GLOW ═══ */
.cursor-glow {
    position: fixed; pointer-events: none; z-index: 0;
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,197,71,0.055) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    transition: left 0.12s ease-out, top 0.12s ease-out;
    will-change: left, top;
}
@media (max-width: 900px) { .cursor-glow { display: none; } }

/* ═══ MAC MOCKUP — Premium MacBook Pro Style ═══ */
.mac-wrap { position: relative; width: 100%; max-width: 900px; margin: 0 auto; }
.mac-body {
    position: relative;
    background: linear-gradient(175deg, #484849 0%, #393a3c 20%, #2d2d31 48%, #212125 100%);
    border-radius: 18px 18px 0 0;
    padding: 34px 18px 0;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.3),
        0 0 0 1px rgba(0,0,0,0.55),
        0 60px 120px rgba(0,0,0,0.85),
        0 24px 48px rgba(0,0,0,0.5);
}
.mac-body::before {
    content: '';
    position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.42) 50%, rgba(255,255,255,0.1) 85%, transparent 100%);
    pointer-events: none;
}
.mac-cam {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 8px; height: 8px;
    background: radial-gradient(circle at 36% 36%, #2a2c36 0%, #0b0c10 68%);
    border-radius: 50%;
    box-shadow:
        inset 0 1.5px 3px rgba(0,0,0,0.95),
        0 0 0 1.5px rgba(255,255,255,0.07),
        0 0 12px rgba(0,120,255,0.1);
}
.mac-display {
    background: #030305; border-radius: 4px 4px 0 0;
    overflow: hidden; aspect-ratio: 16/10; position: relative; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.9);
}
.mac-display video, .mac-display img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.mac-display video {
    will-change: opacity;
}
.mac-display-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.18); transition: background 0.3s;
}
.mac-display:hover .mac-display-overlay { background: rgba(0,0,0,0.04); }
.mac-play-btn {
    width: 76px; height: 76px; border-radius: 50%;
    border: 2px solid var(--accent); background: rgba(0,0,0,0.52);
    backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.mac-display:hover .mac-play-btn {
    transform: scale(1.1); box-shadow: 0 0 36px rgba(232,197,71,0.28);
    background: rgba(232,197,71,0.07);
}
.mac-play-btn::after {
    content: ''; display: block; width: 0; height: 0; border-style: solid;
    border-width: 10px 0 10px 18px; border-color: transparent transparent transparent var(--accent);
    margin-left: 5px;
}
.mac-display.no-overlay .mac-display-overlay { display: none; }

/* ─── MAC THUMBNAIL — sits on top of video, fades on hover ─── */
.mac-thumb {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    z-index: 2;
    transition: opacity 0.5s ease;
    will-change: opacity;
    pointer-events: none;
}
.mac-display:hover .mac-thumb { opacity: 0; }
.mac-hinge {
    height: 22px;
    background: linear-gradient(180deg, #2c2c30 0%, #202024 55%, #18181c 100%);
    border-radius: 0 0 3px 3px;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.07),
        inset 0 -1px 0 rgba(0,0,0,0.45),
        0 8px 28px rgba(0,0,0,0.55);
}
.mac-hinge-slot {
    width: 26%; height: 12px;
    background: linear-gradient(180deg, #111114 0%, #0d0d10 100%);
    border-radius: 0 0 7px 7px;
    box-shadow: inset 0 1.5px 4px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.4);
}
.mac-stand {
    height: 7px;
    background: linear-gradient(90deg, transparent 0%, #2c2c30 5%, #383839 22%, #424244 50%, #383839 78%, #2c2c30 95%, transparent 100%);
    border-radius: 0 0 5px 5px;
    width: 80%; margin: 0 auto;
    box-shadow:
        0 4px 18px rgba(0,0,0,0.65),
        inset 0 1px 0 rgba(255,255,255,0.09);
}

/* ═══ WORK GRID — home recent projects ═══ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.work-card { display: flex; flex-direction: column; gap: 1.25rem; }
.work-card-link {
    display: block; text-decoration: none; color: inherit;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card-link:hover { transform: translateY(-6px); }
.work-card-link:hover .mac-body {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px rgba(255,255,255,0.08),
                0 50px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,197,71,0.08);
}
.work-info { padding: 0 0.25rem; }
.work-meta {
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.work-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.work-info p { font-size: 0.83rem; color: var(--text-dim); line-height: 1.55; margin-bottom: 0.75rem; }
.work-arrow {
    font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent);
    letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.4rem; transition: gap 0.2s;
}
.work-card-link:hover .work-arrow { gap: 0.75rem; }

/* ═══ CLIENTS TRUST SLIDER ═══ */
.clients-section {
    max-width: 100% !important;
    padding: 0 !important; margin: 0 !important; width: 100%;
    background: var(--bg); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); overflow: hidden;
    position: relative;
}

/* Subtle ambient glow behind the section */
.clients-section::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 800px; height: 200px;
    background: radial-gradient(ellipse, rgba(232,197,71,0.025) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

.clients-header {
    max-width: 1200px; margin: 0 auto; padding: 3.5rem 3rem 2rem;
    text-align: center; position: relative; z-index: 1;
}
.clients-label {
    font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted);
    letter-spacing: 0.22em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 1.5rem;
}
.clients-label::before, .clients-label::after {
    content: ''; flex: 1; max-width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
}
.clients-label::after { background: linear-gradient(90deg, var(--border), transparent); }

/* Track wrapper — clips overflow and adds fade edges */
.clients-ticker {
    position: relative; overflow: hidden;
    padding: 0.5rem 0 3.5rem; z-index: 1;
}
.clients-ticker::before,
.clients-ticker::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 180px; z-index: 3; pointer-events: none;
}
.clients-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.clients-ticker::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

/* Scrolling track */
.clients-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
    will-change: transform;
}
.clients-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Individual logo cards */
.logo-card {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 240px; height: 96px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0 2rem;
    position: relative; overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
                transform 0.4s cubic-bezier(0.22,1,0.36,1);
    background: rgba(20,20,26,0.8);
    backdrop-filter: blur(12px);
    cursor: default;
}

/* Sheen sweep on hover */
.logo-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(232,197,71,0.06) 50%, transparent 65%);
    opacity: 0; transition: opacity 0.4s;
}
.logo-card:hover::after { opacity: 1; }

.logo-card:hover {
    border-color: rgba(232,197,71,0.22);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,197,71,0.06);
    transform: translateY(-4px);
}

/* Nageye logo — bump up from default logo-card size */
.logo-card img[alt="Nageye School of Languages"] {
    max-height: 80px;
    max-width: 200px;
}

/* Redstone logo has large whitespace canvas — scale up so the actual mark is legible */
.logo-card img[alt="Redstone Housing Solutions"] {
    max-height: 115px;
    max-width: 280px;
}

/* Circular badge logos (JPG with white background) */
.logo-badge {
    border-radius: 50% !important;
    background: #fff;
    padding: 5px;
    width: 58px !important;
    height: 58px !important;
    max-height: 58px !important;
    max-width: 58px !important;
    object-fit: cover !important;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.15);
}

/* Logo images — all transparent PNGs, full colour */
.logo-card img {
    max-height: 56px; max-width: 160px;
    width: auto; height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), filter 0.4s, opacity 0.4s;
    filter: brightness(0.88) saturate(0.9);
    opacity: 0.82;
    position: relative; z-index: 1;
}
.logo-card:hover img {
    transform: scale(1.07);
    filter: brightness(1.08) saturate(1.15);
    opacity: 1;
}

.logo-placeholder {
    font-family: var(--font-display); font-size: 0.88rem; font-weight: 700;
    color: var(--text-muted); transition: color 0.3s; white-space: nowrap;
}
.logo-card:hover .logo-placeholder { color: var(--text); }

/* ═══ PROJECT SCENE — projects page ═══ */
.project-scene {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; margin-bottom: 4rem; transition: border-color 0.4s;
}
.project-scene:hover { border-color: rgba(232,197,71,0.12); }
.project-scene-cinema {
    background: linear-gradient(180deg, #060608 0%, #0c0c0f 100%);
    padding: 3.5rem 4rem 0; position: relative; overflow: hidden;
}
.project-scene-cinema::before {
    content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 350px;
    background: radial-gradient(ellipse, rgba(232,197,71,0.04) 0%, transparent 65%);
    pointer-events: none;
}
.project-scene-header {
    padding: 2rem 2.5rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid var(--border);
}
.project-scene-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.project-scene-badges { display: flex; gap: 0.75rem; align-items: center; }
.project-scene-body { padding: 2.5rem; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.case-block {
    padding: 1.5rem; background: var(--bg-elevated); border-radius: 8px; border-left: 3px solid var(--accent);
}
.case-block h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }
.case-block p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }
.case-block ul { list-style: none; padding: 0; }
.case-block ul li { font-size: 0.83rem; color: var(--text-dim); line-height: 1.85; padding-left: 1.2rem; position: relative; }
.case-block ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.72rem; }
.case-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); margin-bottom: 1.5rem; }
.case-stack span { font-family: var(--font-mono); font-size: 0.67rem; padding: 0.3rem 0.7rem; background: var(--accent-dim); color: var(--accent); border-radius: 3px; }
.case-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ═══ RESPONSIVE — new components ═══ */
@media (max-width: 1024px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .work-grid { grid-template-columns: 1fr; }
    .project-scene-cinema { padding: 2rem 1.5rem 0; }
    .project-scene-header { padding: 1.5rem 1.5rem 1rem; }
    .project-scene-body { padding: 1.5rem; }
    .project-scene-title { font-size: 1.4rem; }
    .case-grid { grid-template-columns: 1fr; }
    .clients-header { padding: 2rem 1.5rem 1rem; }
}
@media (max-width: 600px) {
    .mac-body { padding: 24px 10px 0; }
    .project-scene-cinema { padding: 1.5rem 1rem 0; }
}

/* ═══════════════════════════════════════════════════
   DESIGN REFACTOR V2 — Premium Layer
═══════════════════════════════════════════════════ */

/* ─── DOT GRID BODY TEXTURE ─── */
body {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.022) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ─── GRAIN OVERLAY (injected by JS) ─── */
.grain-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 9998;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* ─── ANIMATED GRADIENT HIGHLIGHT TEXT ─── */
.highlight {
    background: linear-gradient(90deg, #e8c547 0%, #f5d96b 20%, #ffcf40 40%, #e8a820 60%, #f0d060 80%, #e8c547 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ─── BUTTON SHIMMER ─── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn-primary:hover::after { left: 100%; }

.btn-secondary { position: relative; overflow: hidden; }
.btn-secondary span { position: relative; z-index: 1; }
.btn-secondary::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(232,197,71,0.05);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-secondary:hover::before { transform: scaleX(1); }

/* ─── ENHANCED STAT CARDS ─── */
.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative; overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: -100%; right: auto;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.6s ease;
}
.stat-card:hover { border-color: rgba(232,197,71,0.18); box-shadow: 0 12px 40px rgba(232,197,71,0.06); transform: translateY(-4px); }
.stat-card:hover::before { left: 100%; }

/* ─── SECTION LABEL LINE ─── */
.section-label { display: inline-flex; align-items: center; gap: 0.75rem; }
.section-label::before, .section-label::after {
    content: ''; flex: 0 0 24px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
    opacity: 0.6;
}
.section-label::after { background: linear-gradient(90deg, var(--accent), transparent); }

/* ─── ENHANCED FEATURE CARDS ─── */
.feature-card {
    position: relative; overflow: hidden;
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.feature-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover { border-color: rgba(232,197,71,0.14); box-shadow: 0 16px 50px rgba(0,0,0,0.35); transform: translateY(-5px); }
.feature-card:hover::after { right: 0; }

/* ─── PROCESS STEP UPGRADE ─── */
.process-step { position: relative; overflow: hidden; }
.process-step::before {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(ellipse at top left, rgba(232,197,71,0.05) 0%, transparent 60%);
    transition: opacity 0.4s;
}
.process-step:hover::before { opacity: 1; }
.process-number { color: var(--accent); opacity: 0.2; transition: opacity 0.3s; }
.process-step:hover .process-number { opacity: 0.4; }

/* ─── MAC MOCKUP — 3D TILT SETUP ─── */
.mac-tilt-wrapper { perspective: 1100px; }
.mac-wrap { transform-style: preserve-3d; will-change: transform; }

/* ─── MAC FLOAT IN PROJECT SCENES ─── */
@keyframes macFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-12px) rotateX(0.5deg); }
}
.project-scene-cinema .mac-wrap { animation: macFloat 6s ease-in-out infinite; }

/* ─── ENHANCED CINEMA BACKGROUND ─── */
.project-scene-cinema {
    background: linear-gradient(180deg, #030307 0%, #06060c 50%, #0a0a10 100%) !important;
}
.project-scene-cinema::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(232,197,71,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,197,71,0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none; mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.project-scene-cinema .mac-wrap { position: relative; z-index: 1; }

/* Mac glow shadow at base */
.project-scene-cinema .mac-wrap::after {
    content: ''; position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
    width: 75%; height: 48px;
    background: radial-gradient(ellipse, rgba(232,197,71,0.14) 0%, transparent 70%);
    filter: blur(18px); pointer-events: none; z-index: -1;
}

/* ─── WORK CARD ENHANCED HOVER ─── */
.work-card-link:hover .mac-body {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1),
                0 0 0 1px rgba(255,255,255,0.08),
                0 50px 100px rgba(0,0,0,0.7),
                0 0 50px rgba(232,197,71,0.08);
}
.work-card {
    position: relative;
    transition: filter 0.4s;
}
.work-card:hover { filter: drop-shadow(0 30px 50px rgba(232,197,71,0.06)); }

/* ─── ENHANCED PROJECT SCENE ─── */
.project-scene {
    transition: border-color 0.4s, box-shadow 0.4s;
    box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.project-scene:hover {
    box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,197,71,0.06);
}

/* ─── ENHANCED CTA BANNER ─── */
.cta-banner {
    background: linear-gradient(135deg, #0e0e14 0%, #12121a 50%, #0a0a10 100%);
    border: 1px solid rgba(232,197,71,0.1) !important;
    position: relative; overflow: hidden;
}
.cta-banner::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232,197,71,0.06) 0%, transparent 65%);
    pointer-events: none;
}
.cta-banner h2, .cta-banner p, .cta-banner a { position: relative; z-index: 1; }

/* ─── PAGE HERO AMBIENT GLOW ─── */
.page-hero::after {
    content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
    width: 700px; height: 350px;
    background: radial-gradient(ellipse, rgba(232,197,71,0.045) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}
.page-hero * { position: relative; z-index: 1; }

/* ─── PHONE MOCKUP — Premium iPhone 15 Pro Style ─── */
.phone-wrap {
    position: relative; width: 196px; flex-shrink: 0;
}
.phone-body {
    background: linear-gradient(162deg, #424246 0%, #303034 36%, #232328 66%, #1b1b20 100%);
    border-radius: 48px; padding: 20px 11px 18px;
    border: 1px solid rgba(255,255,255,0.13);
    position: relative;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.22),
        inset 1.5px 0 0 rgba(255,255,255,0.06),
        inset -1.5px 0 0 rgba(255,255,255,0.04),
        0 0 0 1px rgba(0,0,0,0.6),
        0 50px 100px rgba(0,0,0,0.88);
}
.phone-body::before {
    content: '';
    position: absolute; top: 0; left: 22px; right: 22px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.38) 50%, rgba(255,255,255,0.08) 80%, transparent 100%);
    pointer-events: none;
}
.phone-side-btn {
    position: absolute; right: -4px;
    width: 3px;
    background: linear-gradient(180deg, #52525c 0%, #3e3e48 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: inset -1px 0 0 rgba(0,0,0,0.45);
}
.phone-power { top: 32%; height: 48px; }
.phone-vol-up { left: -4px; top: 27%; height: 36px; width: 3px; position: absolute; background: linear-gradient(180deg, #52525c 0%, #3e3e48 100%); border-radius: 3px 0 0 3px; box-shadow: inset 1px 0 0 rgba(0,0,0,0.45); }
.phone-vol-dn { left: -4px; top: 42%; height: 36px; width: 3px; position: absolute; background: linear-gradient(180deg, #52525c 0%, #3e3e48 100%); border-radius: 3px 0 0 3px; box-shadow: inset 1px 0 0 rgba(0,0,0,0.45); }

/* Dynamic Island pill */
.phone-notch {
    width: 76px; height: 24px;
    background: #000;
    border-radius: 50px;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: flex-end;
    padding: 0 9px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 2px 12px rgba(0,0,0,0.7);
}
.phone-notch-cam {
    width: 9px; height: 9px;
    background: radial-gradient(circle at 34% 34%, #1c3a5c 0%, #060810 65%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 0 8px rgba(0,100,220,0.16);
    flex-shrink: 0;
}
.phone-notch-speaker { display: none; }

.phone-display {
    background: #020204; border-radius: 34px; overflow: hidden;
    aspect-ratio: 9/19.5; position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.85);
}
.phone-display video, .phone-display img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.phone-home-bar {
    width: 34%; height: 4px;
    background: rgba(255,255,255,0.22);
    border-radius: 2px; margin: 11px auto 2px;
}

/* ─── DEVICE PLACEHOLDER SCREEN ─── */
.device-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(140deg, #0d0d15 0%, #111119 55%, #09090e 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.device-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(232,197,71,0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,197,71,0.026) 1px, transparent 1px);
    background-size: 28px 28px;
}
.device-placeholder::after {
    content: '';
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    width: 90px; height: 90px;
    background: radial-gradient(circle, rgba(232,197,71,0.07) 0%, transparent 70%);
}
.ph-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem; letter-spacing: 0.04em;
    color: rgba(232,197,71,0.22);
    position: relative; z-index: 1;
}
.ph-logo span { color: rgba(232,197,71,0.48); }

/* ─── REAL MAC PHOTO MOCKUP (cross-device section) ─── */
.mac-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 840px;
    flex-shrink: 0;
}
.mac-photo-frame {
    /* In-flow sizer that also renders as the frame overlay (screen area is transparent in the PNG) */
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.mac-photo-screen {
    position: absolute;
    /* Pixel-exact: screen transparent area is x=47–981, y=107–718 in the 1024×1024 PNG */
    top: 10.5%;
    left: 4.6%;
    right: 4.1%;
    bottom: 29.9%;
    z-index: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #0a0a0f;
}
.mac-photo-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ─── REAL iPHONE PHOTO MOCKUP (cross-device section) ─── */
/* iPhone image is 1024×1024 px; phone frame occupies px 320-703 × 114-907 */
/* Scale 280/383 = 0.731 makes the phone 280px wide in the display */
.iphone-photo-wrap {
    width: 280px !important;
    height: auto;
    overflow: visible; /* badge needs to escape outside the crop boundary */
}
/* Inner container handles the cropping of the oversized frame image */
.iphone-photo-inner {
    position: relative;
    width: 280px;
    height: 580px;
    overflow: hidden;
}
.iphone-photo-frame {
    position: absolute;
    width: 749px;   /* 1024 × 0.731 */
    left: -234px;   /* -(320 × 0.731) */
    top: -83px;     /* -(114 × 0.731) */
    height: auto;
    pointer-events: none;
    z-index: 2;
    display: block;
}
.iphone-photo-screen {
    position: absolute;
    /* Screen fills from just inside the outer frame — Dynamic Island (z-index:2) floats on top */
    top: 6px;
    left: 9px;
    right: 9px;
    bottom: 6px;
    padding-top: 19px;
    z-index: 1;
    overflow: hidden;
    border-radius: 36px;
    background: #ffffff;
    /* Subtle screen glare for realism */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.iphone-photo-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.07) 0%,
        transparent 45%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 3;
    border-radius: inherit;
}
.iphone-photo-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Device duo layout — Mac + Phone */
.device-duo {
    position: relative; display: flex; align-items: flex-end; justify-content: center;
}
.device-duo .mac-wrap { width: 100%; max-width: 700px; }
.device-duo .phone-wrap {
    position: absolute; right: 2%; bottom: 0;
    transform: translateY(20px) rotate(3deg);
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.7));
    z-index: 10; animation: phoneFloat 7s 1s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(20px) rotate(3deg); }
    50% { transform: translateY(8px) rotate(3deg); }
}
@media (max-width: 900px) { .device-duo .phone-wrap { display: none; } }
.device-solo { justify-content: center; }
.device-solo .mac-wrap { max-width: 840px; }

/* ── Device Viewer Tabs ── */
.device-viewer { position: relative; }
.device-tabs {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 0 auto 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 4px;
    width: fit-content;
}
.device-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 20px;
    border-radius: 100px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,0.38);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.device-tab svg { flex-shrink: 0; transition: stroke 0.2s ease; }
.device-tab:hover:not(.active) { color: rgba(255,255,255,0.65); }
.device-tab.active {
    background: rgba(201,168,76,0.12);
    border-color: rgba(201,168,76,0.35);
    color: #c9a84c;
}
.device-tab-panel { display: none; }
.device-tab-panel.active {
    display: block;
    animation: dvPanelIn 0.32s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes dvPanelIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.device-mobile-solo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0 32px;
}

/* ─── CROSS-DEVICE SHOWCASE SECTION ─── */
.devices-section { position: relative; overflow: hidden; }
.devices-section::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 900px; height: 500px;
    background: radial-gradient(ellipse, rgba(232,197,71,0.03) 0%, transparent 65%);
    pointer-events: none;
}
.devices-row {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 2rem; position: relative; max-width: 860px; margin: 0 auto;
}
.devices-row .mac-wrap { flex: 1; max-width: 640px; }
.devices-row .phone-side {
    flex-shrink: 0; position: relative;
    animation: phoneFloat 7s ease-in-out infinite;
}
.devices-row .phone-side:first-child {
    transform: translateY(24px) rotate(-4deg);
    animation-delay: 0.5s;
}
.devices-row .phone-side:last-child {
    transform: translateY(20px) rotate(4deg);
    animation-delay: 1s;
}
@media (max-width: 900px) { .devices-row .phone-side { display: none; } }

/* ─── HERO GRADIENT ORBS ─── */
.hero-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(80px);
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,197,71,0.07) 0%, transparent 70%);
    top: -150px; right: -150px; animation: orbDrift 8s ease-in-out infinite;
}
.hero-orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(120,80,180,0.04) 0%, transparent 70%);
    bottom: -80px; left: -80px; animation: orbDrift 12s 2s ease-in-out infinite reverse;
}
@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.04); }
    66% { transform: translate(-20px, 30px) scale(0.97); }
}

/* ─── ENHANCED NAV LOGO ─── */
.logo:hover span { color: var(--accent); transition: color 0.3s; }

/* ─── CASE BLOCK UPGRADE ─── */
.case-block { border-left: 2px solid var(--accent); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.case-block:hover { border-left-color: var(--accent-hover); transform: translateX(4px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* ─── FOOTER TOP BORDER ─── */
footer { border-top: none !important; position: relative; }
footer::before {
    content: ''; position: absolute; top: 0; left: 3rem; right: 3rem; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ─── MEGA LINK ENHANCED HOVER ─── */
.mega-link { transition: background 0.2s, color 0.2s, transform 0.2s; }
.mega-link:hover { transform: translateX(4px); }

/* ─── SCROLLED NAV GOLD ACCENT ─── */
nav.scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 40px rgba(0,0,0,0.4); }

/* ─── IMPROVED REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ─── CLIENTS SECTION — overrides handled in base slider block above ─── */

/* ─── WORK GRID RESPONSIVE ─── */
@media (max-width: 700px) {
    .work-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ─── MAGNETIC BUTTON SETUP ─── */
.btn-primary, .btn-secondary { transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

/* ─── TERMINAL ENHANCED ─── */
.terminal {
    box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,197,71,0.05) !important;
    transition: box-shadow 0.4s;
}
.terminal:hover { box-shadow: 0 32px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,197,71,0.1) !important; }

/* ─── SECTION TRANSITIONS ─── */
.clients-section, footer { position: relative; }

/* ═══ CROSS-DEVICE SHOWCASE ═══ */

.cross-device-section {
    position: relative;
    padding: 6rem 0 7rem;
    overflow: hidden;
}

.cds-ambient {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 55% at 30% 60%, rgba(232,197,71,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 35% 50% at 80% 28%, rgba(140,90,230,0.04) 0%, transparent 70%);
}

.cds-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 3rem;
}

.cds-stage {
    position: relative;
    padding-bottom: 2.5rem;
}

.cds-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.cds-glow-mac {
    width: 720px; height: 180px;
    background: radial-gradient(ellipse, rgba(232,197,71,0.07) 0%, transparent 65%);
    bottom: 0; left: 50%; transform: translateX(-50%);
}

.cds-glow-phone {
    width: 200px; height: 320px;
    background: radial-gradient(ellipse, rgba(140,90,230,0.065) 0%, transparent 65%);
    right: 2%; bottom: 8%;
}

.cds-stage .device-duo { position: relative; z-index: 1; }
.cds-stage .device-duo .mac-wrap { max-width: 840px; }

/* Frosted-glass status badges */
.cds-badge {
    position: absolute;
    display: flex; align-items: center; gap: 0.48rem;
    padding: 0.42rem 0.9rem;
    background: rgba(10,10,14,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(232,197,71,0.2);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(232,230,225,0.82);
    letter-spacing: 0.06em;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    animation: cdsFloat 4.5s ease-in-out infinite;
}

/* Badges anchored to the top of their device — positions relative to device container */
.cds-badge-desktop {
    top: auto;
    bottom: calc(100% + 14px); /* float just above the mac */
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -1.5s;
}
.cds-badge-mobile {
    top: auto;
    bottom: calc(100% + 14px); /* float just above the phone */
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -3.2s;
    right: auto;
}

.cds-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74,222,128,0.8);
    flex-shrink: 0;
    animation: cdsDot 2.2s ease-in-out infinite;
}

@keyframes cdsFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50%       { transform: translateX(-50%) translateY(-7px); }
}

@keyframes cdsDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.72); }
}

/* Feature pills */
.cds-features {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 0.65rem;
    padding-top: 1.5rem;
}

.cds-feat {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.52rem 1.1rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}

.cds-feat:hover {
    border-color: rgba(232,197,71,0.22);
    background: rgba(232,197,71,0.05);
    color: var(--text);
    transform: translateY(-2px);
}

.cds-feat span { color: var(--accent); font-size: 0.78rem; }

@media (max-width: 640px) {
    .cross-device-section { padding: 4rem 0 5rem; }
    .cds-inner { padding: 0 1.5rem; }
    .cds-badge-mobile { display: none; }
    .cds-badge-desktop { left: 50%; }
    .cds-feat { font-size: 0.64rem; padding: 0.45rem 0.85rem; }
}

/* ═══════════════════════════════════════════════════════════
   INDUSTRY PAGES — EDUCATION / HOUSING / SECURITY
   ═══════════════════════════════════════════════════════════ */

.ind-cta-section { padding-bottom: 6rem; }

/* ── EDUCATION ─────────────────────────────────────────── */

.edu-hero {
    padding: 8rem 5% 6rem;
    position: relative;
}
.edu-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
}
.edu-hero-left h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1rem 0 1.2rem;
}
.edu-hero-left > p {
    font-size: 1.02rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}
.edu-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.edu-stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.edu-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}
.edu-stat:first-child { padding-top: 0; }
.edu-stat:last-child { padding-bottom: 0; border-bottom: none; }
.edu-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.edu-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.edu-showcase {
    padding: 6rem 5%;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.edu-showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.edu-showcase-left h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 800;
    margin: 0.5rem 0 1rem;
}
.edu-showcase-left > p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}
.edu-curriculum {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.8rem;
}
.edu-module {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}
.edu-module:last-child { border-bottom: none; }
.edu-module:hover { background: rgba(201,168,76,0.04); }
.edu-mod-check {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.35);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.edu-mod-content { flex: 1; min-width: 0; }
.edu-mod-name { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.edu-mod-desc { font-size: 0.72rem; color: var(--text-dim); }
.edu-mod-tag {
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 100px; flex-shrink: 0;
}
.edu-mod-tag.live { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.edu-mod-tag.dev  { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }

.edu-caps-section { padding: 6rem 5%; }
.edu-caps-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.edu-cap-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.edu-cap-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-3px); }
.edu-cap-num {
    font-family: 'Syne', sans-serif;
    font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.15em; color: var(--accent);
    margin-bottom: 1rem; opacity: 0.7;
}
.edu-cap-icon {
    width: 42px; height: 42px;
    background: rgba(201,168,76,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 1.2rem;
}
.edu-cap-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.edu-cap-card p  { font-size: 0.83rem; color: var(--text-dim); line-height: 1.7; }

/* ── HOUSING ─────────────────────────────────────────────── */

.hmo-hero {
    padding: 8rem 5% 4rem;
    text-align: center;
}
.hmo-hero-content {
    max-width: 720px;
    margin: 0 auto 3rem;
}
.hmo-hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1rem 0 1.2rem;
}
.hmo-hero-content > p {
    font-size: 1.02rem;
    color: var(--text-dim);
    line-height: 1.8;
}
.hmo-replaces { max-width: 820px; margin: 0 auto; }
.hmo-replaces-label {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 0.9rem;
}
.hmo-replaces-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.hmo-old-tool {
    display: inline-flex; align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 0.8rem; color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: rgba(201,168,76,0.5);
}

.hmo-split {
    padding: 6rem 5%;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.hmo-split-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.hmo-portfolio-widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.hmo-widget-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.hmo-widget-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.hmo-widget-badge {
    font-size: 0.65rem; font-weight: 700;
    padding: 3px 10px;
    background: rgba(201,168,76,0.1); color: var(--accent);
    border: 1px solid rgba(201,168,76,0.3); border-radius: 100px;
}
.hmo-prop-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.hmo-prop-name { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.hmo-prop-sub  { font-size: 0.72rem; color: var(--text-dim); }
.hmo-prop-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; flex-shrink: 0; }
.hmo-prop-status {
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 100px;
}
.hmo-prop-status.compliant { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.hmo-prop-status.warning   { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.hmo-prop-occ { font-size: 0.72rem; color: var(--text-dim); }
.hmo-widget-footer {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 1.1rem 1.4rem; gap: 0.5rem;
    background: rgba(255,255,255,0.015);
}
.hmo-wf-label {
    font-size: 0.65rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.08em;
    display: block; margin-bottom: 0.35rem;
}
.hmo-wf-value { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.hmo-wf-value.amber { color: #fbbf24; }
.hmo-split-right h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 800;
    margin: 0.5rem 0 1rem;
}
.hmo-split-right > p {
    font-size: 0.92rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 1.6rem;
}
.hmo-feat-list {
    list-style: none; display: flex; flex-direction: column;
    gap: 0.75rem; margin-bottom: 1.8rem;
}
.hmo-feat-list li {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.875rem; color: var(--text-dim);
}
.hmo-feat-list li svg { color: var(--accent); flex-shrink: 0; }

.hmo-mockup-section { padding: 5rem 5%; }
.hmo-mockup-section .mac-photo-wrap { max-width: 900px; margin: 0 auto; }

.hmo-features-section {
    padding: 6rem 5%;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.hmo-features-grid {
    max-width: 1200px; margin: 3rem auto 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.hmo-feat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 1.8rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.hmo-feat-card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-2px); }
.hmo-feat-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.63rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #22c55e; margin-bottom: 1rem;
}
.hmo-feat-icon {
    width: 40px; height: 40px;
    background: rgba(201,168,76,0.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 1rem;
}
.hmo-feat-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.hmo-feat-card p  { font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; }

/* ── SECURITY ─────────────────────────────────────────────── */

.sec-hero { padding: 8rem 5% 6rem; }
.sec-hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 420px;
    gap: 4rem; align-items: center;
}
.sec-hero-left h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800; line-height: 1.1;
    margin: 1rem 0 1.2rem;
}
.sec-hero-left > p {
    font-size: 1rem; color: var(--text-dim);
    line-height: 1.8; margin-bottom: 2rem; max-width: 500px;
}
.sec-hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-bottom: 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden;
}
.sec-stat {
    text-align: center; padding: 1.3rem 0.5rem;
    border-right: 1px solid var(--border);
}
.sec-stat:last-child { border-right: none; }
.sec-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem; font-weight: 800;
    color: var(--accent); display: block;
    line-height: 1; margin-bottom: 0.35rem;
}
.sec-stat-label {
    font-size: 0.65rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.07em; line-height: 1.4;
}

/* Ops Panel */
.sec-ops-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
}
.sec-ops-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.sec-ops-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.sec-ops-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.7rem; color: #22c55e;
}
.sec-ops-pulse {
    width: 8px; height: 8px;
    background: #22c55e; border-radius: 50%;
    display: inline-block;
    animation: opsPulse 2s ease-in-out infinite;
}
@keyframes opsPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
    50%       { opacity: 0.75; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.sec-ops-metric {
    display: flex; align-items: center;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--border);
    gap: 0.9rem;
}
.sec-ops-label { font-size: 0.76rem; color: var(--text-dim); flex: 1; }
.sec-ops-value { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.sec-ops-bar {
    flex: 1; height: 5px;
    background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden;
}
.sec-ops-bar-fill { height: 100%; background: var(--accent); border-radius: 100px; }
.sec-ops-pct { font-size: 0.8rem; font-weight: 700; color: var(--accent); min-width: 34px; text-align: right; }
.sec-ops-badge {
    font-size: 0.68rem; font-weight: 700;
    padding: 3px 11px; border-radius: 100px;
}
.sec-ops-badge.green { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.sec-ops-sites { padding: 1rem 1.4rem; }
.sec-ops-sites-label {
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-dim);
    display: block; margin-bottom: 0.7rem;
}
.sec-site-grid { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.sec-site-item { display: flex; align-items: center; gap: 6px; }
.sec-site-dot {
    width: 7px; height: 7px;
    background: #22c55e; border-radius: 50%;
}
.sec-site-dot.active { animation: opsPulse 2.5s ease-in-out infinite; }
.sec-site-name { font-size: 0.73rem; color: var(--text-dim); }

/* Security Showcase */
.sec-showcase {
    padding: 6rem 5%;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.sec-showcase-inner { max-width: 1200px; margin: 0 auto; }
.sec-showcase-header { text-align: center; margin-bottom: 3rem; }
.sec-mockup-row {
    display: flex; align-items: flex-end;
    justify-content: center; gap: 2rem; margin-bottom: 2.5rem;
}
.sec-mac { flex: 1; max-width: 780px; }

/* Security Features */
.sec-features-section { padding: 6rem 5%; }
.sec-features-grid {
    max-width: 1200px; margin: 3rem auto 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.sec-feat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 1.8rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.sec-feat-card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-2px); }
.sec-feat-indicator {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.63rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.sec-feat-indicator.c-green  { color: #22c55e; }
.sec-feat-indicator.c-blue   { color: #60a5fa; }
.sec-feat-indicator.c-gold   { color: var(--accent); }
.sec-feat-pulse {
    width: 6px; height: 6px;
    border-radius: 50%; background: currentColor;
    animation: opsPulse 2s ease-in-out infinite;
}
.sec-feat-icon {
    width: 42px; height: 42px;
    background: rgba(201,168,76,0.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 1rem;
}
.sec-feat-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.sec-feat-card p  { font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; }

/* ── Responsive — Industry Pages ─────────────────────────── */
@media (max-width: 1024px) {
    .edu-hero-inner  { grid-template-columns: 1fr; }
    .edu-stat-card   { display: grid; grid-template-columns: repeat(3,1fr); }
    .edu-stat        { padding: 0 1.5rem 0 0; border-bottom: none; border-right: 1px solid var(--border); }
    .edu-stat:last-child { border-right: none; padding-right: 0; }
    .edu-showcase-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .edu-caps-grid   { grid-template-columns: 1fr 1fr; }

    .hmo-split-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hmo-features-grid { grid-template-columns: 1fr 1fr; }

    .sec-hero-inner  { grid-template-columns: 1fr; }
    .sec-mockup-row  { flex-direction: column; align-items: center; }
    .sec-features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .edu-stat-card { display: flex; flex-direction: column; }
    .edu-stat { padding: 1rem 0; border-right: none; border-bottom: 1px solid var(--border); }
    .edu-stat:last-child { border-bottom: none; }
    .edu-caps-grid { grid-template-columns: 1fr; }
    .hmo-features-grid { grid-template-columns: 1fr; }
    .hmo-replaces-row { gap: 0.4rem; }
    .sec-hero-stats { grid-template-columns: 1fr; }
    .sec-stat { border-right: none; border-bottom: 1px solid var(--border); }
    .sec-stat:last-child { border-bottom: none; }
    .sec-features-grid { grid-template-columns: 1fr; }
}

