/* =========================================
   Žan Zupančič Photography — v2.0
   Premium Cinematic Dark Portfolio
   ========================================= */

/* --- Reset & Custom Properties --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette */
    --bg-deep: #050505;
    --bg-primary: #0a0a0a;
    --bg-elevated: #111111;
    --bg-surface: #161616;
    --bg-hover: #1c1c1c;

    --text-primary: #f0ece6;
    --text-secondary: #9e9689;
    --text-muted: #5a554d;

    --accent: #c4a265;
    --accent-light: #d4b67a;
    --accent-dim: rgba(196, 162, 101, 0.08);
    --accent-border: rgba(196, 162, 101, 0.25);

    --border-subtle: rgba(255,255,255,0.04);
    --border-light: rgba(255,255,255,0.08);
    --border-medium: rgba(255,255,255,0.12);

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
    --t-fast: 180ms;
    --t-med: 350ms;
    --t-slow: 700ms;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

::selection {
    background: var(--accent);
    color: var(--bg-deep);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    transition: all var(--t-med) var(--ease);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
    transition: height var(--t-med) var(--ease);
}

.navbar.scrolled .nav-inner { height: 60px; }

.nav-logo-img {
    height: 40px;
    width: auto;
    margin-left: -4px;
    transition: opacity var(--t-fast) var(--ease);
}

.nav-logo:hover .nav-logo-img { opacity: 0.8; }

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

.nav-link {
    font-size: 0.775rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.25rem 0;
    position: relative;
    transition: color var(--t-fast) var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--t-med) var(--ease);
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active-link::after {
    width: 100%;
}

.nav-link-cta {
    color: var(--bg-deep) !important;
    background: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 1px;
    letter-spacing: 0.08em;
    transition: all var(--t-fast) var(--ease);
}

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

.nav-link-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(196, 162, 101, 0.15);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all var(--t-fast) var(--ease);
    transform-origin: center;
}

.nav-toggle.active span:first-child { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav-toggle.active span:last-child { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease);
}

.mobile-menu.active { opacity: 1; pointer-events: auto; }

.mobile-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 300;
    color: var(--text-secondary);
    transition: color var(--t-fast) var(--ease);
    letter-spacing: 0.03em;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 3s ease, transform 20s ease-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.7) 100%),
        linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.3) 40%, rgba(5,5,5,0.1) 70%, rgba(5,5,5,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-logo-mark {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: heroFadeUp 1s var(--ease) 0.2s forwards;
}

.hero-logo-img {
    height: clamp(60px, 10vw, 90px);
    margin: 0 auto;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.5));
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 1s var(--ease) forwards;
}

.hero-line-sm {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation-delay: 0.4s;
}

.hero-line-accent {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-style: italic;
    color: var(--text-primary);
    animation-delay: 0.6s;
    text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(15px);
    animation: heroFadeUp 1s var(--ease) 0.8s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    padding: 0.875rem 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all var(--t-fast) var(--ease);
    opacity: 0;
    transform: translateY(15px);
    animation: heroFadeUp 1s var(--ease) 1s forwards;
    cursor: pointer;
}

.hero-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-deep);
}

.hero-cta svg { transition: transform var(--t-fast) var(--ease); }
.hero-cta:hover svg { transform: translateY(3px); }

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 1.3s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2.5s var(--ease-smooth) infinite;
}

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes scrollPulse { 0%,100% { opacity: 0.2; transform: scaleY(0.5); } 50% { opacity: 0.8; transform: scaleY(1); } }

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent-border);
}
.section-eyebrow::before { right: calc(100% + 12px); }
.section-eyebrow::after { left: calc(100% + 12px); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.75rem;
    letter-spacing: 0.01em;
}

/* --- Work / Portfolio Grid --- */
.work-section {
    padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 3vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    display: block;
}

.work-card-wide {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 9;
}

.work-card-image {
    position: absolute;
    inset: 0;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,5,5,0.85) 0%,
        rgba(5,5,5,0.2) 40%,
        rgba(5,5,5,0) 70%,
        rgba(5,5,5,0.15) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: background var(--t-med) var(--ease);
}

.work-card:hover .work-card-overlay {
    background: linear-gradient(
        to top,
        rgba(5,5,5,0.9) 0%,
        rgba(5,5,5,0.35) 50%,
        rgba(5,5,5,0.1) 100%
    );
}

.work-card-category {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.work-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: transform var(--t-med) var(--ease);
}

.work-card:hover .work-card-title {
    transform: translateY(-4px);
}

.work-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--t-med) var(--ease);
}

.work-card:hover .work-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.work-card-cta svg {
    transition: transform var(--t-fast) var(--ease);
}

.work-card:hover .work-card-cta svg {
    transform: translateX(3px);
}

/* --- About Section --- */
.about-section {
    padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.about-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 3 / 4;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--accent-border);
    border-radius: 3px;
    pointer-events: none;
}

.about-title { margin-bottom: 1.75rem; }

.about-body { margin-bottom: 2.5rem; }

.about-body p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.about-body p:last-child { margin-bottom: 0; }

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat {
    min-width: 80px;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Contact Section --- */
.contact-section {
    position: relative;
    padding: clamp(6rem, 14vw, 14rem) 2rem;
    text-align: center;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(6px);
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.contact-title {
    font-style: italic;
    margin-bottom: 1.25rem;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.875rem 1.75rem;
    border-radius: 1px;
    transition: all var(--t-fast) var(--ease);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 162, 101, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 3rem clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 32px;
    display: block;
    opacity: 0.35;
    transition: opacity var(--t-fast) var(--ease);
}

.footer-logo:hover .footer-logo-img { opacity: 0.6; }

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.725rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease);
    line-height: 1;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
    font-size: 0.675rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0;
    opacity: 0.6;
}

/* --- Gallery Page Styles --- */
.gallery-hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-deep) 0%, rgba(5,5,5,0.3) 60%, rgba(5,5,5,0.5) 100%);
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 3.5rem;
}

.gallery-hero-content .section-title {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.gallery-hero-content .section-subtitle {
    margin-top: 0;
}

.gallery-back {
    position: absolute;
    top: 100px;
    left: clamp(1.25rem, 4vw, 3rem);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.725rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--t-fast) var(--ease);
}

.gallery-back:hover { color: var(--accent); }
.gallery-back svg { transition: transform var(--t-fast) var(--ease); }
.gallery-back:hover svg { transform: translateX(-3px); }

/* Gallery Carousel */
.gallery-page-section {
    padding: clamp(2rem, 4vw, 4rem) 0;
    overflow: hidden;
    position: relative;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 2rem 1.5rem;
}

.gallery-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.gallery-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(196, 162, 101, 0.08);
}

.gallery-counter {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    min-width: 60px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .gallery-nav { display: none; }
}

.masonry-grid {
    display: flex;
    gap: 10px;
    padding: 0 clamp(1rem, 3vw, 3rem);
    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: default;
}

.masonry-grid::-webkit-scrollbar { display: none; }

.masonry-item {
    flex: 0 0 auto;
    height: clamp(350px, 55vh, 550px);
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;

}

.masonry-item img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.masonry-item:hover img {
    transform: scale(1.04);
}

.masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.4) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
    pointer-events: none;
}

.masonry-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease);
}

.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--text-muted);
    padding: 0.75rem;
    transition: color var(--t-fast) var(--ease);
    z-index: 210;
}

.lightbox-close:hover { color: var(--text-primary); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    padding: 1.5rem 1rem;
    transition: color var(--t-fast) var(--ease);
    z-index: 210;
}

.lightbox-nav:hover { color: var(--text-primary); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-image-container {
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.97);
    transition: all var(--t-med) var(--ease);
    border-radius: 2px;
}

.lightbox.active .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .masonry-item { height: clamp(280px, 45vh, 420px); }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper { aspect-ratio: 16 / 10; }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card { aspect-ratio: 16 / 10; }
    .work-card-wide { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero-content { padding: 0 1.25rem; }

    .masonry-item { height: clamp(250px, 40vh, 350px); }
    .masonry-grid { gap: 6px; }

    .work-card { aspect-ratio: 4 / 3; }
    .work-card-wide { aspect-ratio: 4 / 3; }

    .about-stats { gap: 1.5rem 2rem; }

    .contact-bg { background-attachment: scroll; }

    .footer-links { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .masonry-item { height: clamp(220px, 35vh, 300px); }
    .masonry-grid { gap: 4px; }

    .work-card { aspect-ratio: 3 / 2; }

    .contact-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; max-width: 280px; }

    .about-stats { flex-direction: column; gap: 1.5rem; }

    .gallery-hero { height: 40vh; min-height: 300px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-slide {
        transition: opacity 3s ease, transform 20s ease-out !important;
    }
    html { scroll-behavior: auto; }
}
