/* =========================================================
   KA PRODUCTIONS
   Global Design System
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    /* ---------- Colors ---------- */

    --color-bg: #080c12;
    --color-surface: #0d131b;
    --color-surface-2: #121a24;
    --color-surface-3: #17212d;

    --color-border: #263544;
    --color-border-light: #334556;

    --color-text: #f3f7fa;
    --color-text-muted: #aab6c2;
    --color-text-subtle: #71808e;

    --color-accent: #14d1c7;
    --color-accent-dark: #0da9a2;
    --color-accent-soft: rgba(20, 209, 199, 0.12);

    --color-secondary: #a855f7;

    --color-live: #ff3030;

    /* ---------- Typography ---------- */

    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;

    --text-xs: 0.7rem;
    --text-sm: 0.85rem;
    --text-md: 1rem;
    --text-lg: 1.2rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 3rem;
    --text-4xl: 4rem;

    /* ---------- Layout ---------- */

    --content-width: 1200px;
    --content-width-wide: 1400px;

    --section-padding: 6rem;
    --section-padding-mobile: 4rem;

    --container-padding: 2rem;
    --container-padding-mobile: 1.25rem;

    /* ---------- Spacing ---------- */

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* ---------- Borders / Radius ---------- */

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* ---------- Effects ---------- */

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);

    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 400ms ease;
}


/* =========================================================
   2. RESET / GLOBAL
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.6;
}

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

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}
/* ==========================================
   SCROLL FADE-UP ANIMATION
   ========================================== */

.fade-up {
    opacity: 1;
    transform: none;
}

/* Only hide elements when JavaScript is ready */
.js-animations .fade-up {
    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 650ms ease,
        transform 650ms ease;
}

/* Visible state */
.js-animations .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional stagger delays */
.fade-delay-1 { transition-delay: 100ms !important; }
.fade-delay-2 { transition-delay: 200ms !important; }
.fade-delay-3 { transition-delay: 300ms !important; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .js-animations .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   3. GLOBAL LAYOUT
   ========================================================= */

.container {
    width: min(100% - (var(--container-padding) * 2), var(--content-width));
    margin-inline: auto;
}

.container-wide {
    width: min(100% - (var(--container-padding) * 2), var(--content-width-wide));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-padding);
}

.section-sm {
    padding-block: var(--space-8);
}

.section-lg {
    padding-block: 8rem;
}

.section-dark {
    background: var(--color-bg);
}

.section-surface {
    background: var(--color-surface);
}

.section-divider {
    border-bottom: 1px solid var(--color-border);
}


/* =========================================================
   4. SECTION HEADERS
   ========================================================= */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-6);
    margin-bottom: var(--space-7);
}

.section-header-content {
    max-width: 700px;
}

.section-eyebrow {
    margin: 0 0 var(--space-2);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.15;
}

.section-description {
    max-width: 650px;
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
    font-size: var(--text-md);
}


/* =========================================================
   5. TYPOGRAPHY
   ========================================================= */

.heading-xl {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6vw, var(--text-4xl));
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.heading-lg {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
}

.heading-md {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.2;
}

.heading-sm {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.3;
}

.body-lg {
    font-size: 1.1rem;
}

.body-muted {
    color: var(--color-text-muted);
}

.body-subtle {
    color: var(--color-text-subtle);
}

.text-accent {
    color: var(--color-accent);
}

.text-secondary {
    color: var(--color-secondary);
}


/* =========================================================
   6. TEXT UTILITIES
   ========================================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.max-text {
    max-width: 700px;
}


/* =========================================================
   7. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);

    min-height: 44px;
    padding: 0.7rem 1.25rem;

    border: 1px solid transparent;
    border-radius: var(--radius-md);

    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}
.btn i {
    font-size: 0.8em;

    transition: transform var(--transition);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--color-accent);
    color: #061011;
}

.btn-primary:hover {
    background: #25e2d8;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent-soft);
}

.btn-ghost {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-sm {
    min-height: 36px;
    padding: 0.55rem 0.9rem;
    font-size: var(--text-xs);
}


/* =========================================================
   8. CARDS
   ========================================================= */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.card-padded {
    padding: var(--space-5);
}

.card-hover {
    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.card-hover:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}


/* =========================================================
   9. MEDIA / IMAGE CONTAINERS
   ========================================================= */

.media {
    position: relative;
    overflow: hidden;
    background: var(--color-surface-2);
}

.media-rounded {
    border-radius: var(--radius-md);
}

.media img,
.media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-16-9 {
    aspect-ratio: 16 / 9;
}

.media-4-3 {
    aspect-ratio: 4 / 3;
}

.media-square {
    aspect-ratio: 1 / 1;
}


/* =========================================================
   10. PROJECT CARDS
   ========================================================= */

.project-card {
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    transition:
        border-color var(--transition),
        transform var(--transition);
}

.project-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-3px);
}

.project-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 500ms ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.03);
}

.project-card-content {
    padding: var(--space-4);
}

.project-card-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: 600;
}

.project-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);

    margin-top: var(--space-2);

    color: var(--color-text-subtle);
    font-size: var(--text-xs);
}


/* =========================================================
   11. TAGS / CATEGORIES
   ========================================================= */

.tag {
    display: inline-flex;
    align-items: center;

    padding: 0.3rem 0.65rem;

    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 999px;

    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1;
}

.tag-accent {
    background: var(--color-accent-soft);
    border-color: rgba(20, 209, 199, 0.35);
    color: var(--color-accent);
}

.tag-live {
    background: rgba(255, 48, 48, 0.12);
    border-color: rgba(255, 48, 48, 0.4);
    color: var(--color-live);
}


/* =========================================================
   12. FILTERS / PILLS
   ========================================================= */

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.filter {
    padding: 0.55rem 0.9rem;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;

    color: var(--color-text-muted);
    font-size: var(--text-xs);

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.filter:hover,
.filter.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #061011;
}


/* =========================================================
   13. GRIDS
   ========================================================= */

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-auto {
    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );
}

.grid-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}


/* =========================================================
   14. FLEX UTILITIES
   ========================================================= */

.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}


.items-end {
    align-items: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: var(--space-1);
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-5 {
    gap: var(--space-5);
}

.gap-6 {
    gap: var(--space-6);
}


/* =========================================================
   15. HERO
   ========================================================= */
.home-hero {
    position: relative;

    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--color-bg);
}


/* ---------- Background Video ---------- */

.hero-background-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;
}


/* ---------- Video Overlay ---------- */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(8, 12, 18, 0.95) 0%,
            rgba(8, 12, 18, 0.78) 35%,
            rgba(8, 12, 18, 0.35) 70%,
            rgba(8, 12, 18, 0.2) 100%
        );
}


/* ---------- Content ---------- */

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero .hero-content {
    max-width: 620px;
}
.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 75vh;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-eyebrow {
    margin-bottom: var(--space-3);

    color: var(--color-accent);

    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 560px;
    margin: var(--space-5) 0 var(--space-6);

    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}


/* =========================================================
   16. VIDEO / MEDIA PLAYER UI
   ========================================================= */

.video-frame {
    position: relative;
    overflow: hidden;

    background: #000;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    aspect-ratio: 16 / 9;
}

.video-frame video,
.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.25);

    pointer-events: none;
}


/* =========================================================
   17. LIVE INDICATOR
   ========================================================= */

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.live-indicator::before {
    content: "";

    width: 7px;
    height: 7px;

    background: var(--color-live);
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(255, 48, 48, 0.7);
}


/* =========================================================
   18. DIVIDERS
   ========================================================= */

.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
}

.divider-accent {
    width: 48px;
    height: 2px;
    background: var(--color-accent);
}


/* =========================================================
   19. SPACING UTILITIES
   ========================================================= */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }


/* =========================================================
   20. VISIBILITY
   ========================================================= */

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   21. RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --section-padding: 5rem;
    }

    .grid-4,
    .grid-projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: 65vh;
    }
}
/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(8, 12, 18, 0.92);
    border-bottom: 1px solid var(--color-border);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 76px;
}


/* =========================================================
   SITE LOGO
   ========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    flex-shrink: 0;
}

.site-logo-image {
    display: block;

    width: 54px;
    height: 54px;

    object-fit: contain;
}

.site-logo-name {
    color: var(--color-text);

    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.22em;
}


/* ---------- Navigation ---------- */

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 44px;
    padding: 0 0.9rem;

    color: var(--color-text-muted);

    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;

    transition:
        color var(--transition),
        background var(--transition);
}

.site-nav-link:hover {
    color: var(--color-text);
}

.site-nav-link.active {
    color: var(--color-accent);
}

.site-nav-link.active::after {
    content: "";

    position: absolute;
    right: 0.9rem;
    bottom: 0.25rem;
    left: 0.9rem;

    height: 2px;

    background: var(--color-accent);
}


/* ---------- Mobile Toggle ---------- */

.site-nav-toggle {
    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    width: 44px;
    height: 44px;
    padding: 0;

    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.site-nav-toggle span {
    width: 18px;
    height: 2px;

    background: var(--color-text);

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.site-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   SITE FOOTER
   ========================================================= */

.site-footer {
    padding-block: var(--space-8) var(--space-6);

    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.site-footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-8);

    padding-bottom: var(--space-7);
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.site-footer-brand .body-subtle {
    margin: 0;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-4);

    padding-top: 0.4rem;
}

.site-footer-links a {
    color: var(--color-text-muted);

    font-size: var(--text-sm);

    transition: color var(--transition);
}

.site-footer-links a:hover {
    color: var(--color-accent);
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);

    padding-top: var(--space-5);
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-socials {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.site-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    color: var(--color-text-muted);
    font-size: 0.95rem;

    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.site-footer-socials a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: var(--color-accent-soft);

    transform: translateY(-2px);
}


/* =========================================================
   HOMEPAGE - SELECTED WORK
   ========================================================= */

.home-work {
    background: var(--color-bg);
}

.home-work .section-header {
    align-items: center;
    margin-bottom: var(--space-6);
}

.home-work-grid {
    gap: var(--space-6);
}


/* ---------- Minimal Project Cards ---------- */

.home-work .project-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transform: none;
}

.home-work .project-card:hover {
    border: none;
    transform: none;
    box-shadow: none;
}

.project-card-link {
    display: block;
}

.home-work .project-card-media {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.home-work .project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.home-work .project-card:hover img {
    transform: scale(1.035);
}

.home-work .project-card-content {
    padding: var(--space-3) 0 0;
}

.home-work .project-card-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.home-work .project-card-meta {
    display: block;
    margin: var(--space-1) 0 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}


/* =========================================================
   TEXT LINKS
   ========================================================= */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;

    transition: color var(--transition);
}

.text-link:hover {
    color: var(--color-text);
}

.text-link i {
    font-size: 0.85em;
    transition: transform var(--transition);
}

.text-link:hover i {
    transform: translateX(3px);
}


/* =========================================================
   HOMEPAGE - ABOUT
   ========================================================= */

.home-about {
    background: var(--color-surface);
}

.home-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

.home-about-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    background: var(--color-surface-2);
}

.home-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-about-content {
    max-width: 650px;
}

.home-about-content .section-title {
    margin-bottom: var(--space-5);
}

.home-about-content p {
    margin: 0 0 var(--space-4);
    color: var(--color-text-muted);
    line-height: 1.8;
}

.home-about-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-6);
}


/* =========================================================
   HOMEPAGE - RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .home-about-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .home-about-image {
        max-width: 520px;
    }

}

@media (max-width: 640px) {

    .home-work .section-header {
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
    }

    .home-work .section-title {
        font-size: 1.5rem;
    }

    .home-work-grid {
        gap: var(--space-7);
    }

    .home-about-links {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

#selected-work {
    scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-background-video {
        display: none;
    }

    .home-hero {
        background:
            linear-gradient(
                90deg,
                rgba(8, 12, 18, 0.9),
                rgba(8, 12, 18, 0.5)
            ),
            url("../images/hero/live-production-poster.jpg")
            center / cover no-repeat;
    }

    .home-work .project-card-media img,
    .text-link i {
        transition: none;
    }

}

/* =========================================================
   HEADER / FOOTER RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .site-nav {
        min-height: 68px;
    }

    .site-nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: var(--space-3) var(--container-padding);

        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);

        box-shadow: var(--shadow-md);
    }

    .site-nav-links.open {
        display: flex;
    }

    .site-nav-link {
        justify-content: flex-start;

        min-height: 48px;
        padding: 0 0.75rem;
    }

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

    .site-nav-link.active {
        background: var(--color-accent-soft);
        border-radius: var(--radius-sm);
    }

    .site-nav-toggle {
        display: flex;
    }

    .site-footer-content {
        flex-direction: column;
        gap: var(--space-6);
    }

    .site-footer-links {
        justify-content: flex-start;
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 640px) {

    :root {
        --section-padding: var(--section-padding-mobile);
        --container-padding: var(--container-padding-mobile);
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-projects {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2.75rem, 15vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }
}