/* ==========================================================================
   Web Design Lahore — Main Stylesheet
   Mobile-first. Modern. Fast. No framework.
   ========================================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Colors */
    --bg:            #0b0f19;
    --bg-elev:       #111827;
    --surface:       #0f1624;
    --surface-2:     #1a2234;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text:          #e5e7ef;
    --text-muted:    #9aa3b7;
    --text-dim:      #6b7280;

    --accent:        #6366f1;
    --accent-2:      #06b6d4;
    --accent-soft:   rgba(99, 102, 241, 0.12);

    --gradient:      linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99,102,241,.15) 0%, rgba(6,182,212,.15) 100%);

    --success:       #10b981;
    --danger:        #ef4444;

    /* Typography */
    --font-sans:     'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display:  'Fraunces', Georgia, serif;

    /* Sizing */
    --container:     1200px;
    --radius-sm:     8px;
    --radius:        14px;
    --radius-lg:     22px;
    --radius-xl:     32px;

    /* Shadows */
    --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow:        0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg:     0 25px 50px rgba(0, 0, 0, 0.35);
    --shadow-glow:   0 10px 40px rgba(99, 102, 241, 0.25);

    /* Motion */
    --ease:          cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-h:      68px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric background */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 100vh;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(6, 182, 212, 0.10), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-muted); }

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 0 0 8px 0;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
    position: relative;
}

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: #a5b4fc;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.section__title {
    margin-bottom: 14px;
}

.section__subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 99px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 50px rgba(99, 102, 241, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(11, 15, 25, 0.92);
    border-bottom-color: var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__mark {
    display: inline-flex;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.brand__sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-elev);
    border-left: 1px solid var(--border);
    padding: calc(var(--header-h) + 24px) 28px 28px;
    transition: right 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-lg);
}

.nav.is-open { right: 0; }

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav__link {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.nav__link--active {
    color: #fff;
    background: var(--accent-soft);
}

.nav__cta {
    margin-top: 16px;
    align-self: stretch;
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 99;
}
.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Hamburger */
.hamburger {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s var(--ease);
    z-index: 101;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.05); }
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 1024px) {
    .nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }
    .nav__list { flex-direction: row; gap: 4px; }
    .nav__link { padding: 8px 14px; font-size: 0.93rem; border-radius: 99px; }
    .nav__cta { margin-top: 0; margin-left: 12px; }
    .hamburger { display: none; }
}

/* ---------- HERO ---------- */
.hero {
    padding: calc(var(--header-h) + 48px) 0 72px;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 99px;
    margin-bottom: 24px;
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
    50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
}

.hero__title {
    margin-bottom: 20px;
}
.hero__title em {
    font-style: italic;
    font-weight: 400;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 56px auto 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.hero__metric-num {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #fff;
}
.hero__metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (min-width: 768px) {
    .hero { padding: calc(var(--header-h) + 80px) 0 100px; }
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--gradient);
    color: #fff;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.service-card__title {
    position: relative;
    margin-bottom: 10px;
}

.service-card__desc {
    position: relative;
    font-size: 0.96rem;
    margin-bottom: 18px;
}

.service-card__list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.service-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-card__list li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    flex-shrink: 0;
    position: relative;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- ABOUT / SPLIT ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.split__visual {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.3), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.25), transparent 50%);
}

.split__content h2 { margin-bottom: 16px; }
.split__content p  { margin-bottom: 16px; }

.split__list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}
.split__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.split__list-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.split__list-text strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
}
.split__list-text span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

@media (min-width: 1024px) {
    .split { grid-template-columns: 1fr 1fr; gap: 72px; }
    .split--reverse .split__visual { order: 2; }
}

/* ---------- PROJECTS GRID ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.project-card__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gradient-soft);
}

.project-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    z-index: 1;
}

.project-card__media-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: transform 0.5s var(--ease), color 0.3s var(--ease);
}

.project-card:hover .project-card__media-inner {
    transform: scale(1.05);
    color: rgba(255, 255, 255, 0.35);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.85), transparent 60%);
    z-index: 3;
}

.project-card__body {
    padding: 22px 24px;
}

.project-card__cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.project-card__title {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.project-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- CTA BAND ---------- */
.cta-band {
    position: relative;
    padding: 56px 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.12));
    border: 1px solid var(--border-strong);
    text-align: center;
    overflow: hidden;
}

.cta-band::before,
.cta-band::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.cta-band::before {
    top: -60px; left: -60px;
    width: 240px; height: 240px;
    background: rgba(99, 102, 241, 0.3);
}
.cta-band::after {
    bottom: -60px; right: -60px;
    width: 240px; height: 240px;
    background: rgba(6, 182, 212, 0.25);
}

.cta-band__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p  { margin-bottom: 28px; color: var(--text-muted); }
.cta-band__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 768px) {
    .cta-band { padding: 72px 56px; }
}

/* ---------- PAGE HERO (for sub-pages) ---------- */
.page-hero {
    padding: calc(var(--header-h) + 56px) 0 48px;
    text-align: center;
    position: relative;
}
.page-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: #a5b4fc;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p  { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

@media (min-width: 768px) {
    .page-hero { padding: calc(var(--header-h) + 80px) 0 64px; }
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.contact-info h3 { margin-bottom: 18px; }

.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}
.contact-info__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-info__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info__label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
}
.contact-info__value { color: var(--text); }
.contact-info__value a:hover { color: #a5b4fc; }

.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(25%) contrast(1.05);
}

/* Form */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--danger); }

.form-error {
    font-size: 0.82rem;
    color: var(--danger);
    margin-top: 6px;
    display: none;
}
.form-group.has-error .form-error { display: block; }

.form-alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.93rem;
    border: 1px solid;
}
.form-alert--success {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}
.form-alert--error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.contact-form button[type="submit"] { width: 100%; margin-top: 6px; }

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 40px; }
}

/* ---------- ABOUT EXTRAS ---------- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.value-card {
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.value-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}
.value-card__num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    margin-bottom: 10px;
    display: block;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value-card p { font-size: 0.92rem; }

@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.team-card {
    text-align: center;
    padding: 28px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.team-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.team-card h4 { margin-bottom: 4px; }
.team-card__role { font-size: 0.86rem; color: var(--text-muted); }

@media (min-width: 768px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 20px 40px;
}

.site-footer__title {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.brand--footer { margin-bottom: 16px; }

.site-footer__about {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 300px;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-footer__links a {
    font-size: 0.92rem;
    color: var(--text-muted);
}
.site-footer__links a:hover { color: #fff; }

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.site-footer__contact li {
    display: flex;
    gap: 10px;
    align-items: center;
}
.site-footer__contact a:hover { color: #fff; }

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.15);
}
.site-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
}

@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
    .site-footer__bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================================================
   SCROLL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.fade-up, .fade-left, .fade-right, .fade-in, .zoom-in {
    opacity: 0;
    transition:
        opacity 0.7s var(--ease-smooth),
        transform 0.7s var(--ease-smooth);
    will-change: opacity, transform;
}

.fade-up    { transform: translateY(32px); }
.fade-left  { transform: translateX(-32px); }
.fade-right { transform: translateX(32px); }
.zoom-in    { transform: scale(0.94); }

.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.fade-in.visible,
.zoom-in.visible {
    opacity: 1;
    transform: none;
}

/* Staggered delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }

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

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

/* 404 page styling */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 20vw, 10rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}
