/* FRAME — Minimal Gallery Photography Template */
/* Design: Gallery-like, image-first, generous whitespace, editorial feel */

:root {
    --bg: #ffffff;
    --bg-alt: #f9f9f7;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: #999;
    --accent: #1a1a1a;
    --border: #e8e8e6;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', serif;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
    --space-xxl: 160px;
    --max-width: 1200px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; font-weight: 300; font-size: 16px; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    transition: background var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    font-size: .82rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: .5px;
    transition: color var(--transition);
}
.nav a:hover { color: var(--text); }
.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--text);
    color: var(--text) !important;
    font-weight: 400 !important;
    transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: var(--text); color: var(--bg) !important; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    transition: var(--transition);
}
.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

/* --- Hero: Asymmetric grid --- */
.hero {
    padding: var(--space-xxl) 40px var(--space-xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-lg);
    align-items: center;
}
.hero-tag {
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}
.hero h1 em {
    font-style: italic;
}
.hero-sub {
    color: var(--text-muted);
    font-size: .95rem;
    max-width: 400px;
    margin-bottom: var(--space-lg);
}
.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
}
.hero-scroll:hover { color: var(--text); }
.hero-scroll svg { animation: scrollBounce 2s infinite; }

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.hero-image-caption {
    position: absolute;
    bottom: -28px;
    right: 0;
    font-size: .72rem;
    color: var(--text-light);
    letter-spacing: .5px;
}

/* --- Work Section --- */
.work {
    padding: var(--space-xl) 40px;
}
.work-header {
    max-width: var(--max-width);
    margin: 0 auto var(--space-lg);
}
.work-header h2 {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}
.work-header p {
    color: var(--text-muted);
    font-size: .9rem;
}

/* Masonry Gallery */
.gallery-masonry {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 12px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.gallery-item:hover img {
    transform: scale(1.04);
}
.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s, transform .4s;
}
.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}
.gallery-cat {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}
.gallery-title {
    font-size: .95rem;
    color: #fff;
    font-weight: 400;
}

/* --- Image Band (full-bleed break) --- */
.image-band {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
}
.image-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.85);
}

/* --- About --- */
.about {
    padding: var(--space-xl) 40px;
}
.about-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.about-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
}
.about-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--text);
}
.about-content p {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-size: .92rem;
}
.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}
.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.stat-label {
    font-size: .72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Services --- */
.services {
    padding: var(--space-xl) 40px;
    background: var(--bg-alt);
}
.services-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.services-inner h2 {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}
.services-list {
    display: flex;
    flex-direction: column;
}
.service-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left var(--transition);
}
.service-item:first-child { border-top: 1px solid var(--border); }
.service-item:hover { padding-left: 12px; }
.service-num {
    font-size: .75rem;
    color: var(--text-light);
    padding-top: 4px;
}
.service-content h3 {
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 8px;
}
.service-content p {
    color: var(--text-muted);
    font-size: .88rem;
    max-width: 520px;
}

/* --- Contact --- */
.contact {
    padding: var(--space-xxl) 40px;
    text-align: center;
}
.contact-inner {
    max-width: 500px;
    margin: 0 auto;
}
.contact h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
}
.contact > .contact-inner > p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--space-lg);
}
.contact-link {
    font-size: .9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.contact-link:hover { color: var(--text); }

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--text);
    color: var(--bg);
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    transition: opacity var(--transition);
}
.btn:hover { opacity: .8; }

/* --- Footer --- */
.footer {
    padding: var(--space-md) 40px;
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer p, .footer-note {
    font-size: .75rem;
    color: var(--text-light);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger .reveal:nth-child(2) { transition-delay: .1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: .2s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: .3s; }

/* --- Responsive --- */
@media (max-width: 900px) {
    :root {
        --space-xl: 80px;
        --space-xxl: 100px;
    }
    .header { padding: 16px 24px; }
    .hero { padding: 120px 24px 60px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .hero-image { order: -1; }
    .hero-image img { aspect-ratio: 16/9; }
    .hero-image-caption { position: static; margin-top: 8px; }
    .work, .about, .services, .contact { padding-left: 24px; padding-right: 24px; }
    .gallery-masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
    .gallery-item--wide { grid-column: span 1; }
    .about-layout { grid-template-columns: 1fr; gap: var(--space-md); }
    .about-stats { gap: var(--space-md); }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
    .nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.98); flex-direction: column; align-items: center; justify-content: center; gap: 32px; z-index: 999; }
    .nav.open { display: flex; }
    .nav.open a { font-size: 1.2rem; }
    .nav-toggle { display: block; z-index: 1001; }
    .gallery-masonry { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .gallery-item--tall { grid-row: span 1; }
    .hero h1 { font-size: 2.2rem; }
    .about-stats { flex-direction: column; gap: var(--space-sm); }
    .service-item { grid-template-columns: 1fr; gap: 8px; }
    .service-num { display: none; }
}
