/* ═══════════════════════════════════════════════════════════════
   Veinte Creation — Main Stylesheet v2.0.1
   Theme: driven by prefers-color-scheme (no JS required)
   Brand: Teal #027373 · Lime #D7F205 · Green #0DF205
   Fonts: Barlow Condensed (headings) · Barlow (body)
═══════════════════════════════════════════════════════════════ */

/* ── 1. Light theme (default) ─────────────────────────────── */
:root {
    /* Brand — unchanged across themes */
    --vc-teal        : #027373;
    --vc-teal-dark   : #015959;
    --vc-teal-light  : #028f8f;
    --vc-lime        : #D7F205;
    --vc-lime-dark   : #b8d004;

    /* Light surfaces */
    --bg-base        : #f5f5f2;
    --bg-surface     : #ececea;
    --bg-elevated    : #ffffff;
    --bg-card        : #ffffff;

    /* Light borders */
    --border-subtle  : rgba(0,0,0,0.08);
    --border-mid     : rgba(0,0,0,0.14);
    --border-strong  : rgba(0,0,0,0.22);

    /* Light text */
    --text-primary   : #0f0f0f;
    --text-secondary : #3d3d3d;
    --text-muted     : #777777;

    /* UI */
    --nav-bg         : rgba(245,245,242,0.95);
    --footer-bg      : #e3e3e0;

    /* Accent text (lime is unreadable on light — use teal) */
    --accent-text    : var(--vc-teal);
    --accent-bg      : var(--vc-lime);    /* safe on dark surfaces */

    /* Shadows */
    --shadow-card    : 0 2px 16px rgba(0,0,0,0.08);
    --shadow-hover   : 0 8px 32px rgba(0,0,0,0.13);

    /* Misc */
    --nav-height     : 68px;
    --transition     : 0.22s ease;
    --radius-sm      : 3px;
    --radius-md      : 5px;
}

/* ── 2. Dark theme (system dark mode) ─────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-base        : #080808;
        --bg-surface     : #101010;
        --bg-elevated    : #181818;
        --bg-card        : #141414;

        --border-subtle  : rgba(255,255,255,0.06);
        --border-mid     : rgba(255,255,255,0.10);
        --border-strong  : rgba(255,255,255,0.18);

        --text-primary   : #f2f2f2;
        --text-secondary : #999999;
        --text-muted     : #555555;

        --nav-bg         : rgba(8,8,8,0.96);
        --footer-bg      : #050505;

        --accent-text    : var(--vc-lime);
        --accent-bg      : var(--vc-lime);

        --shadow-card    : 0 2px 16px rgba(0,0,0,0.5);
        --shadow-hover   : 0 8px 40px rgba(2,115,115,0.18);
    }
}

/* ── 3. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    background: var(--vc-teal);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ── 4. Typography helpers ────────────────────────────────── */
.display-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--text-primary);
}

.section-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-text);
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* ── 5. Navigation ────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 38px; width: auto; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-secondary);
    padding: 0.45rem 0.2rem;
    margin: 0 0.8rem;
    border-radius: 0;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-link::after { display: none; }

.nav-link:hover  { color: var(--vc-teal); }
.nav-link.active { color: var(--vc-teal); font-weight: 500; }

@media (prefers-color-scheme: dark) {
    .nav-link:hover  { color: var(--vc-lime); }
    .nav-link.active { color: var(--vc-lime); }
}

.nav-controls { display: flex; align-items: center; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition);
}
.nav-hamburger:hover { border-color: var(--vc-teal); }
.nav-hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    background: var(--nav-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 1rem clamp(1rem,4vw,2rem) 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul   { display: flex; flex-direction: column; }
.mobile-menu a {
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-secondary);
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color var(--transition);
}
.mobile-menu a.active { font-weight: 500; }
.mobile-menu a.active,
.mobile-menu a:hover { color: var(--vc-teal); }

@media (prefers-color-scheme: dark) {
    .mobile-menu a.active,
    .mobile-menu a:hover { color: var(--vc-lime); }
}

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--vc-teal);
    color: #fff;
    border-color: var(--vc-teal);
}
.btn-primary:hover {
    background: var(--vc-teal-dark);
    border-color: var(--vc-teal-dark);
    transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
    .btn-primary {
        background: var(--vc-lime);
        color: #000;
        border-color: var(--vc-lime);
    }
    .btn-primary:hover {
        background: var(--vc-lime-dark);
        border-color: var(--vc-lime-dark);
    }
}

.btn-outline {
    background: transparent;
    color: var(--vc-teal);
    border-color: var(--vc-teal);
}
.btn-outline:hover {
    background: rgba(2,115,115,0.08);
    transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
    .btn-outline {
        color: var(--vc-lime);
        border-color: var(--vc-lime);
    }
    .btn-outline:hover { background: rgba(215,242,5,0.08); }
}

.btn-teal {
    background: var(--vc-teal);
    color: #fff;
    border-color: var(--vc-teal);
}
.btn-teal:hover {
    background: var(--vc-teal-light);
    border-color: var(--vc-teal-light);
    transform: translateY(-1px);
}

/* ── 7. Layout ────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section    { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }

/* ── 8. HERO ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;     /* safe area on mobile */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background: url('../images/hero_2.jpeg') center/cover no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.72) 0%,
        rgba(2,115,115,0.18) 50%,
        rgba(0,0,0,0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: clamp(1.5rem, 5vw, 3rem) 1rem;
    animation: fadeUp 0.9s ease both;
}

/* Eyebrow always white on hero (sits on dark overlay) */
.hero-content .section-eyebrow { color: rgba(215,242,5,0.9); }
@media (prefers-color-scheme: light) {
    .hero-content .section-eyebrow { color: rgba(215,242,5,0.9); }
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-title .accent { color: var(--vc-lime); }

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.78);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

/* Hero buttons always use lime/outline-white (dark bg) */
.hero-content .btn-primary {
    background: var(--vc-lime) !important;
    color: #000 !important;
    border-color: var(--vc-lime) !important;
}
.hero-content .btn-outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.55) !important;
}
.hero-content .btn-outline:hover {
    background: rgba(255,255,255,0.1) !important;
}

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
    position: absolute;
    bottom: clamp(1rem, 3vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: bounce 2.5s ease-in-out infinite;
}

/* ── 9. Intro strip ───────────────────────────────────────── */
.intro-strip {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: clamp(3rem,5vw,4.5rem) 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}
.intro-text p { color: var(--text-secondary); font-size: 0.95rem; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: clamp(1rem, 2vw, 1.5rem) 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
    border-color: var(--vc-teal);
    box-shadow: var(--shadow-hover);
}

.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--vc-teal);
    line-height: 1;
    display: block;
}
@media (prefers-color-scheme: dark) { .stat-num { color: var(--vc-lime); } }

.stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

/* ── 10. Section header ───────────────────────────────────── */
.section-header { margin-bottom: clamp(2rem,4vw,3rem); }
.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    margin-bottom: 0.65rem;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 540px;
    font-size: 0.95rem;
}

/* ── 11. Project cards ────────────────────────────────────── */
.proj-teaser-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.9rem, 2vw, 1.25rem);
}

.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.proj-card:hover {
    transform: translateY(-4px);
    border-color: var(--vc-teal);
    box-shadow: var(--shadow-hover);
}
.proj-card:focus-visible {
    outline: 2px solid var(--vc-teal);
    outline-offset: 2px;
}

.proj-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
}
.proj-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.04); }

.proj-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.proj-card:hover .proj-thumb-overlay { opacity: 1; }

.play-icon {
    width: 50px; height: 50px;
    background: var(--vc-lime);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transform: scale(0.75);
    transition: transform var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.proj-card:hover .play-icon { transform: scale(1); }
.play-icon svg { fill: #000; margin-left: 3px; }

.proj-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.proj-info { padding: clamp(0.9rem,2vw,1.1rem) clamp(0.9rem,2vw,1.25rem) clamp(1rem,2vw,1.25rem); }

.proj-cat {
    font-size: 0.63rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--vc-teal);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.proj-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.proj-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all { text-align: center; margin-top: 2.5rem; }

/* ── 12. Services ─────────────────────────────────────────── */
.page-hero {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4rem);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.page-hero p  {
    color: var(--text-secondary);
    max-width: 560px;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.9rem, 2vw, 1.25rem);
}

.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vc-teal), #02a8a8);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover {
    transform: translateY(-4px);
    border-color: var(--vc-teal);
    box-shadow: var(--shadow-hover);
}

.svc-icon-wrap {
    width: 46px; height: 46px;
    background: rgba(2,115,115,0.1);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    transition: background var(--transition);
}
.svc-card:hover .svc-icon-wrap { background: rgba(2,115,115,0.18); }
.svc-icon-wrap svg { stroke: var(--vc-teal); }

.svc-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}
.svc-desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; }

/* ── 13. Process steps ────────────────────────────────────── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 10%; right: 10%;
    height: 1px;
    background: var(--border-mid);
    z-index: 0;
}
.step { text-align: center; padding: 0 0.5rem; position: relative; z-index: 1; }
.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--vc-teal);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--vc-teal);
    box-shadow: var(--shadow-card);
}
@media (prefers-color-scheme: dark) { .step-num { color: var(--vc-lime); } }

.step h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.step p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

/* ── 14. Projects filter ──────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.filter-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--vc-teal);
    border-color: var(--vc-teal);
    color: #fff;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 0;
    font-size: 0.9rem;
}

/* ── 15. Project Dialog ───────────────────────────────────── */
.proj-dialog {
    position: fixed;
    inset: 0;
    width: min(860px, 96vw);
    max-height: 92vh;
    margin: auto;
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.proj-dialog::backdrop {
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.proj-dialog-inner {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dialog-close {
    position: absolute;
    top: 0.85rem; right: 0.85rem;
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), transform var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}
.dialog-close:hover { background: rgba(0,0,0,0.8); transform: scale(1.08); }

/* Media area */
.dialog-media {
    width: 100%;
    background: #000;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

/* Thumbnail + play button */
.yt-thumb-wrap {
    width: 100%; height: 100%;
    position: relative;
    cursor: pointer;
}
.yt-thumb-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.yt-thumb-wrap:hover img { filter: brightness(0.8); }
.yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; height: 68px;
    background: var(--vc-lime);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
.yt-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 6px 36px rgba(0,0,0,0.6); }
.yt-play-btn svg { fill: #000; margin-left: 4px; }

/* Static image (no video) */
.dialog-media > img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* YouTube iframe */
.dialog-media iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Dialog body */
.dialog-body {
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}
.dialog-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0.4rem 0 0.8rem;
    color: var(--text-primary);
}
.dialog-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── 16. About page ───────────────────────────────────────── */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: visible;
    aspect-ratio: 1 / 1;
}
.about-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    position: relative;
    z-index: 1;
}
.about-visual.about-visual--founder {
    aspect-ratio: auto;
}
.about-visual.about-visual--founder img {
    height: auto;
    object-fit: unset;
}
.about-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--vc-teal);
    border-radius: var(--radius-md);
    transform: translate(10px, 10px);
    z-index: 0;
}

.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.about-text p  { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }
.about-text .highlight { color: var(--vc-teal); font-weight: 600; }
@media (prefers-color-scheme: dark) {
    .about-text .highlight { color: var(--vc-lime); }
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.mv-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--vc-teal);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.1rem 1.35rem;
    box-shadow: var(--shadow-card);
}
.mv-card h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vc-teal);
    margin-bottom: 0.45rem;
}
.mv-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.9rem, 2vw, 1.25rem);
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
    border-color: var(--vc-teal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.team-avatar-wrap {
    height: 88px;
    background: rgba(2,115,115,0.1);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem; font-weight: 900;
    color: var(--vc-teal);
    letter-spacing: 0.05em;
}
.team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 1rem;
    padding: 0 1rem;
    color: var(--text-primary);
}
.team-role { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── 17. CTA strip ────────────────────────────────────────── */
.cta-strip {
    background: var(--vc-teal);
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    text-align: center;
}
.cta-strip .section-eyebrow { color: rgba(255,255,255,0.65); }
.cta-strip h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 0.75rem;
}
.cta-strip p {
    color: rgba(255,255,255,0.78);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.cta-strip .btn-primary {
    background: var(--vc-lime) !important;
    color: #000 !important;
    border-color: var(--vc-lime) !important;
}
.cta-strip .btn-outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.55) !important;
}
.cta-strip .btn-outline:hover { background: rgba(255,255,255,0.1) !important; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ── 18. Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3rem,5vw,4rem) clamp(1rem,4vw,2rem) clamp(2.5rem,4vw,3rem);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: clamp(2rem, 4vw, 3rem);
}

.footer-logo { height: 34px; width: auto; margin-bottom: 1rem; }

.footer-tagline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.88rem; font-weight: 700;
    color: var(--vc-teal);
    margin-bottom: 0.65rem;
}
@media (prefers-color-scheme: dark) { .footer-tagline { color: var(--vc-lime); } }

.footer-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; }

.footer-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.66rem; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-nav a {
    font-size: 0.84rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--vc-teal); }
@media (prefers-color-scheme: dark) { .footer-nav a:hover { color: var(--vc-lime); } }

.footer-contact { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-email, .footer-phone {
    font-size: 0.84rem;
    color: var(--text-secondary);
    transition: color var(--transition);
    display: block;
}
.footer-email:hover, .footer-phone:hover { color: var(--vc-teal); }
@media (prefers-color-scheme: dark) {
    .footer-email:hover, .footer-phone:hover { color: var(--vc-lime); }
}

.social-links {
    display: flex; gap: 0.45rem;
    margin-top: 0.9rem; flex-wrap: wrap;
}
.social-link {
    width: 34px; height: 34px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}
.social-link:hover {
    border-color: var(--vc-teal);
    color: var(--vc-teal);
    background: rgba(2,115,115,0.08);
    transform: translateY(-2px);
}
@media (prefers-color-scheme: dark) {
    .social-link:hover {
        border-color: var(--vc-lime);
        color: var(--vc-lime);
        background: rgba(215,242,5,0.07);
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.35rem clamp(1rem,4vw,2rem);
    font-size: 0.77rem;
    color: var(--text-muted);
    text-align: center;
}
.footer-bottom a {
    color: var(--vc-teal);
    font-weight: 600;
    transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--vc-teal-light); }
@media (prefers-color-scheme: dark) {
    .footer-bottom a { color: var(--vc-lime); }
    .footer-bottom a:hover { color: #e8ff20; }
}

/* ── 19. Animations ───────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .fade-up { opacity: 1; transform: none; }
}

/* ── 20. Responsive ───────────────────────────────────────── */

/* Large tablets / small desktops */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .proj-teaser-grid,
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets portrait */
@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    .nav-links  { display: none; }
    .nav-hamburger { display: flex; }

    .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-row  { grid-template-columns: repeat(3, 1fr); }

    .services-grid,
    .team-grid,
    .mission-vision { grid-template-columns: repeat(2, 1fr); }

    .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual { aspect-ratio: 1 / 1; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Dialog: full width on tablet */
    .proj-dialog {
        width: 100vw;
        max-height: 100dvh;
        border-radius: 8px 8px 0 0;
        margin: auto auto 0;
        border-bottom: none;
    }
}

/* Large phones */
@media (max-width: 540px) {
    .proj-teaser-grid,
    .projects-grid,
    .services-grid,
    .team-grid { grid-template-columns: 1fr; }

    .stats-row { grid-template-columns: 1fr 1fr; }
    .mission-vision { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; width: 100%; }
    .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

    .footer-inner { grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 380px) {
    .stats-row { grid-template-columns: 1fr; }
    .filter-bar { gap: 0.35rem; }
    .filter-btn { padding: 0.4rem 0.75rem; font-size: 0.65rem; }
}

/* ── 21. Gallery in Dialog ────────────────────────────────── */
.gallery-main {
    width: 100%; height: 100%;
    position: relative;
}
.gallery-main-img {
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.gallery-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}
.gallery-arrow:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }
.gallery-counter {
    position: absolute;
    bottom: 0.75rem; right: 0.75rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    z-index: 5;
}

/* Thumbnail strip */
.gallery-thumbstrip {
    display: flex;
    gap: 0.35rem;
    padding: 0.6rem 0.8rem;
    overflow-x: auto;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumb {
    width: 64px; height: 44px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--vc-teal);
}
@media (prefers-color-scheme: dark) {
    .gallery-thumb.active { border-color: var(--vc-lime); }
}

/* Type badge on project cards */
.proj-type-badge {
    position: absolute;
    top: 0.5rem; left: 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    z-index: 3;
}
.proj-type-badge--video { background: rgba(2,115,115,0.9); color: #fff; }
.proj-type-badge--photo { background: rgba(215,242,5,0.9); color: #000; }

/* Founder section */
.founder-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.founder-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}
.founder-info { padding: 2rem 2rem 2rem 0; }
.founder-info h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}
.founder-info .founder-aka {
    font-size: 0.85rem;
    color: var(--accent-text);
    font-weight: 600;
    margin-bottom: 1rem;
}
.founder-info p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

@media (max-width: 640px) {
    .founder-card { grid-template-columns: 1fr; }
    .founder-photo { aspect-ratio: 16/10; max-height: 300px; }
    .founder-info { padding: 1.5rem; }
}

/* ── 21. Project type badge ───────────────────────────────── */
.proj-type-badge {
    position: absolute;
    top: 0.6rem; left: 0.6rem;
    z-index: 3;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 0.3rem;
}

/* ── 22. Gallery in dialog ────────────────────────────────── */
.gallery-viewer {
    width: 100%; height: 100%;
    position: relative;
}
.gallery-main-img {
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}
.gallery-arrow:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }
.gallery-counter {
    position: absolute;
    bottom: 0.75rem; left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.5);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    z-index: 5;
}
.gallery-thumbs-strip {
    display: flex;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    overflow-x: auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 64px; height: 44px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.55;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active {
    border-color: var(--vc-teal);
    opacity: 1;
}
@media (prefers-color-scheme: dark) {
    .gallery-thumb.active { border-color: var(--vc-lime); }
    .gallery-thumbs-strip { background: var(--bg-surface); }
}
.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
