/* ═══════════════════════════════════════════════════════
   SITE.CSS — Jason Tyburczy / Burzee Studio
   Shared styles for all pages
═══════════════════════════════════════════════════════ */

/* ── READING PROGRESS BAR ── */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    z-index: 1001;
    will-change: width;
    pointer-events: none;
}

/* ── PAGE LOAD FADE-IN ── */
body {
    opacity: 0;
}
body.js-loaded {
    opacity: 1;
    transition: opacity 0.38s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
    --cream:  #F3F0E6;
    --dark:   #0C0B09;
    --text:   #131210;
    --muted:  #8A8880;
    --gold:   #B6901E;
    --border: #DEDAD0;
    --serif: 'Playfair Display', Georgia, serif;
    --sans:  'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: rgba(243, 240, 230, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 48px;
    transition: box-shadow 0.3s, background 0.3s;
}
nav.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.07); background: rgba(243, 240, 230, 0.96); }

.nav-logo {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}
.nav-right a {
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-right a:hover { color: var(--text); }

.badge-available {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: var(--dark) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 7px 14px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}
.badge-available::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4ADE80;
    flex-shrink: 0;
}
.badge-available:hover { background: var(--gold) !important; }

/* ── FOOTER ── */
.site-footer {
    background: var(--dark);
    padding: 28px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger support */
.reveal.stagger-1 { transition-delay: 80ms; }
.reveal.stagger-2 { transition-delay: 160ms; }
.reveal.stagger-3 { transition-delay: 240ms; }
.reveal.stagger-4 { transition-delay: 320ms; }

/* ── HERO TEXT ENTRANCE ── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cs-back       { animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both; }
.cs-hero-eyebrow { animation: heroFadeUp 0.7s  cubic-bezier(0.16, 1, 0.3, 1) 0.52s both; }
.cs-hero-title { animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.64s both; }
.cs-hero-sub   { animation: heroFadeUp 0.7s  cubic-bezier(0.16, 1, 0.3, 1) 0.80s both; }

/* ── UTILITIES ── */
.pill {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--muted);
    display: inline-block;
}

/* ════════════════════════════════════════════════════════
   CASE STUDY — HERO
════════════════════════════════════════════════════════ */
.cs-hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.cs-hero-bg {
    position: absolute;
    top: -25%;
    left: 0;
    right: 0;
    bottom: -25%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

/* Video hero support */
.cs-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Work section video — full width, same as cs-img-full */
.cs-work-video {
    width: 100%;
    display: block;
    border-radius: 4px;
    margin-bottom: 80px;
    overflow: hidden;
}

.cs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,9,7,0.92) 0%,
        rgba(10,9,7,0.55) 40%,
        rgba(10,9,7,0.18) 100%
    );
    z-index: 1;
}

.cs-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 52px 56px;
}

.cs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    margin-bottom: 36px;
    transition: color 0.2s;
}
.cs-back:hover { color: var(--gold); }

.cs-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.48);
    margin-bottom: 14px;
}
.cs-hero-eyebrow::before {
    content: '';
    width: 24px; height: 1.5px;
    background: var(--gold);
    flex-shrink: 0;
}

.cs-hero-title {
    font-family: var(--serif);
    font-size: clamp(48px, 8vw, 116px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 14px;
}

.cs-hero-sub {
    font-family: var(--serif);
    font-size: clamp(18px, 2.2vw, 30px);
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,0.38);
}

/* ════════════════════════════════════════════════════════
   CASE STUDY — INFO BAR
════════════════════════════════════════════════════════ */
.cs-info-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.cs-info-item {
    flex: 1;
    padding: 40px 52px;
    border-right: 1px solid var(--border);
}
.cs-info-item:last-child { border-right: none; }

.cs-info-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 5px;
}

.cs-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

/* ════════════════════════════════════════════════════════
   CASE STUDY — CONTENT SECTIONS
════════════════════════════════════════════════════════ */
.cs-section {
    padding: 112px 52px;
    border-bottom: 1px solid var(--border);
}

.cs-section.dark {
    background: var(--dark);
    color: #fff;
    border-color: rgba(255,255,255,0.08);
}

.cs-section-2col {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 72px;
    align-items: start;
}

.cs-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 20px;
}
.cs-section.dark .cs-section-label { color: rgba(255,255,255,0.4); }

.cs-section-heading {
    font-family: var(--serif);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 24px;
}
.cs-section.dark .cs-section-heading { color: #fff; }
.cs-section-heading em { font-style: italic; color: var(--muted); }
.cs-section.dark .cs-section-heading em { color: rgba(255,255,255,0.35); }

.cs-body {
    font-size: 16px;
    line-height: 1.88;
    color: #44433E;
}
.cs-section.dark .cs-body { color: rgba(255,255,255,0.65); }
.cs-body p + p { margin-top: 24px; }

.cs-rule {
    border: none;
    border-top: 1px solid rgba(12,11,9,0.12);
    margin: 0 0 80px 0;
}

/* ── METRICS STRIP ── */
.cs-metrics {
    display: flex;
    margin-bottom: 0;
}

.cs-metric {
    flex: 1;
    padding: 48px 0;
    text-align: center;
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cs-section.dark .cs-metric { border-color: rgba(255,255,255,0.1); }
.cs-metric:first-child { border-left: 1px solid var(--border); }
.cs-section.dark .cs-metric:first-child { border-color: rgba(255,255,255,0.1); }

.cs-metric-num {
    display: block;
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--text);
}
.cs-section.dark .cs-metric-num { color: #fff; }

.cs-metric-lbl {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}
.cs-section.dark .cs-metric-lbl { color: rgba(255,255,255,0.4); }

/* ── WORK SHOWCASE ── */
.cs-work-copy {
    max-width: 600px;
    margin: 0 0 80px 0;
}
.cs-work-copy .cs-section-label {
    font-size: 12px;
    color: var(--text);
}
.cs-work-copy p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    margin: 8px 0 0;
}

.cs-work {
    padding: 52px 52px 112px;
    border-bottom: 1px solid var(--border);
}

.cs-work-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 56px;
    display: block;
}

.cs-img-full {
    width: 100%;
    display: block;
    border-radius: 4px;
    margin-bottom: 80px;
}

/* ── LIGHTBOX ── */
img.cs-img-full {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}
img.cs-img-full:hover { opacity: 0.92; }

#lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 11, 9, 0.97);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
#lb-overlay.lb-open {
    opacity: 1;
    pointer-events: all;
}
#lb-overlay img {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
    cursor: default;
    user-select: none;
}
#lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}
#lb-close:hover { color: #fff; }

.cs-img-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}
.cs-img-2col img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.cs-img-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}
.cs-img-3col img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.cs-img-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}
.cs-img-4col img,
.cs-img-4col .cs-img-placeholder {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.img-note {
    font-size: 15px;
    color: var(--muted);
    margin-top: 16px;
    margin-bottom: 56px;
    padding-left: 2px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* ── METRIC COUNTER ── */
.cs-metric-num {
    will-change: contents;
}

/* ── NEXT PROJECT ── */
.next-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 56px 52px;
    text-decoration: none;
    color: var(--text);
    background: var(--cream);
    transition: background 0.22s;
}
.next-project:hover { background: #EAE6DA; }

.next-project-left { }

.next-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.next-name {
    font-family: var(--serif);
    font-size: clamp(28px, 4.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.next-arrow {
    font-size: 48px;
    color: var(--muted);
    transition: transform 0.25s, color 0.25s;
}
.next-project:hover .next-arrow {
    transform: translate(8px, -8px);
    color: var(--gold);
}

/* ════════════════════════════════════════════════════════
   ABOUT PAGE
════════════════════════════════════════════════════════ */
.about-hero {
    min-height: 72vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
}

.about-hero-left {
    padding: 72px 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--dark);
    color: #fff;
}

.about-hero-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.about-hero-eyebrow::before {
    content: '';
    width: 24px; height: 1.5px;
    background: var(--gold);
}

.about-hero-name {
    font-family: var(--serif);
    font-size: clamp(52px, 8vw, 110px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 20px;
}
.about-hero-name em {
    font-style: italic;
    color: rgba(255,255,255,0.32);
}

.about-hero-role {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 26px);
    font-style: italic;
    color: rgba(255,255,255,0.45);
}

.about-hero-right {
    overflow: hidden;
}
.about-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ════════════════════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════════════════════ */
.contact-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 120px 52px 64px;
    border-bottom: 1px solid var(--border);
    margin-top: 56px;
}

.contact-hero-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.contact-hero-label::before {
    content: '';
    width: 24px; height: 1.5px;
    background: var(--gold);
}

.contact-hero-headline {
    font-family: var(--serif);
    font-size: clamp(56px, 10vw, 140px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.88;
}
.contact-hero-headline em { font-style: italic; color: var(--muted); }

/* ── CASE STUDY TAGS ROW ── */
.cs-tags {
    padding: 40px 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

/* ── IMAGE PLACEHOLDERS (for assets not yet added) ── */
.cs-img-placeholder {
    background: #EDE9DC;
    border: 1.5px dashed #C8C2B4;
    border-radius: 4px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.cs-img-placeholder::after {
    content: attr(data-note);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B5AFA6;
    text-align: center;
    padding: 20px;
}
.cs-img-2col .cs-img-placeholder,
.cs-img-3col .cs-img-placeholder {
    margin-bottom: 0;
    min-height: 300px;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { gap: 20px; }
    .site-footer { padding: 22px 28px; flex-direction: column; gap: 16px; align-items: flex-start; }

    .cs-hero-content { padding: 0 28px 44px; }
    .cs-info-bar { flex-wrap: wrap; }
    .cs-info-item { flex: 1 1 50%; padding: 20px 28px; }

    .cs-section { padding: 56px 28px; }
    .cs-section-2col { grid-template-columns: 1fr; gap: 32px; }
    .cs-work { padding: 56px 28px; }
    .cs-img-2col, .cs-img-3col { grid-template-columns: 1fr; }
    .cs-metrics { flex-wrap: wrap; }
    .cs-metric { flex: 1 1 50%; }

    .next-project { padding: 40px 28px; }

    .about-hero { grid-template-columns: 1fr; min-height: auto; }
    .about-hero-left { padding: 56px 28px; min-height: 60vh; }
    .about-hero-right { height: 55vw; }

    .contact-hero { padding: 80px 28px 48px; }
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 600;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.nav-drawer {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    z-index: 490;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-drawer.open {
    opacity: 1;
    pointer-events: all;
}
.nav-drawer ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}
.nav-drawer ul li { margin: 0; }
.nav-drawer ul a {
    display: block;
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    padding: 14px 40px;
    transition: color 0.2s;
}
.nav-drawer ul a:hover { color: var(--gold); }
.nav-drawer .drawer-social {
    display: flex;
    gap: 28px;
    margin-top: 40px;
}
.nav-drawer .drawer-social a {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 0;
    transition: color 0.2s;
}
.nav-drawer .drawer-social a:hover { color: var(--text); }
.nav-drawer .badge-available { margin-top: 32px; }

@media (max-width: 768px) {
    nav { height: 52px; }
    .nav-links { display: none; }
    .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .nav-drawer { display: flex; }

    /* Full images: taller crop on mobile for more visual impact */
    img.cs-img-full {
        min-height: 72vw;
        object-fit: cover;
        object-position: center;
    }
}
