/* ==========================================================================
   LUXURY EDITORIAL DESIGN SYSTEM — jacobtmartinmoore.com
   Premium Cinema-Grade Portfolio — Inspired by petermckinnon.com
   ========================================================================== */

/* Google Fonts: Fraunces (Luxury Serif), Syne (Wide Grotesque), Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,200;0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=Space+Grotesk:wght@300;400;500;600&family=Syne:wght@400;700;800&display=swap');

/* ─── Design Tokens ───────────────────────────────────────────────────────── */
:root {
    --bg-black:    #06060a;
    --bg-pure:     #020204;
    --bg-elevated: #0c0c10;
    --bg-card:     #0a0a0e;

    --border-subtle: rgba(255,255,255,0.05);
    --border-active: rgba(255,255,255,0.18);

    --text-white: #f8f8fc;
    --text-grey:  #8a8a96;
    --text-dark:  #464650;
    --accent-red: #b50020;

    --font-serif:     'Fraunces', Georgia, serif;
    --font-grotesque: 'Syne', sans-serif;
    --font-mono:      'Space Grotesk', sans-serif;

    --max-width:    1480px;
    --header-h:     88px;
    --gutter:       48px;
    --radius:       0px;

    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:   cubic-bezier(0.4, 0, 1, 1);
    --t-slow:    0.8s var(--ease-out);
    --t-med:     0.45s var(--ease-out);
    --t-fast:    0.22s var(--ease-out);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    background: var(--bg-black);
}
body {
    background: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    letter-spacing: -0.012em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4 { font-weight:400; line-height:1.1; color:var(--text-white); }
a { color:inherit; text-decoration:none; transition:color var(--t-fast); }
img, video { display:block; width:100%; }
button { cursor:pointer; }

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--bg-black); }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.12); }
::-webkit-scrollbar-thumb:hover { background:var(--accent-red); }

/* ─── Architectural Grid Overlay ──────────────────────────────────────────── */
.grid-overlay {
    position:fixed; inset:0; pointer-events:none; z-index:1;
    display:grid; grid-template-columns:repeat(4,1fr);
    max-width:var(--max-width); margin:0 auto;
    border-left:1px solid rgba(255,255,255,0.018);
    border-right:1px solid rgba(255,255,255,0.018);
}
.grid-overlay-line { border-right:1px solid rgba(255,255,255,0.018); }

/* ─── Layout Container ────────────────────────────────────────────────────── */
.container {
    max-width:var(--max-width);
    margin:0 auto;
    padding:0 var(--gutter);
    width:100%;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
header {
    position:fixed; top:0; left:0; width:100%;
    height:var(--header-h);
    background:rgba(6,6,10,0.88);
    backdrop-filter:blur(18px) saturate(180%);
    -webkit-backdrop-filter:blur(18px) saturate(180%);
    border-bottom:1px solid var(--border-subtle);
    z-index:900;
    display:flex; align-items:center;
    transition:height var(--t-med), border-color var(--t-med);
}
header.scrolled {
    height:68px;
    border-bottom-color:var(--border-active);
    background:rgba(6,6,10,0.96);
}
.nav-container {
    display:flex; justify-content:space-between; align-items:center; width:100%;
}
.logo {
    font-family:var(--font-grotesque);
    font-size:1rem; font-weight:800;
    letter-spacing:0.18em; text-transform:uppercase;
    position:relative; z-index:1;
}
.logo::after {
    content:''; position:absolute; bottom:-3px; left:0;
    width:100%; height:1px;
    background:linear-gradient(90deg, var(--accent-red), transparent);
    opacity:0; transition:opacity var(--t-med);
}
.logo:hover::after { opacity:1; }

.nav-menu { display:flex; gap:44px; list-style:none; }
.nav-link {
    font-size:0.78rem; font-weight:500; color:var(--text-grey);
    text-transform:uppercase; letter-spacing:0.14em;
    padding:4px 0; position:relative;
    transition:color var(--t-fast);
}
.nav-link::after {
    content:''; position:absolute; bottom:0; left:0;
    width:0; height:1px; background:var(--accent-red);
    transition:width var(--t-med);
}
.nav-link:hover, .nav-link.active { color:var(--text-white); }
.nav-link:hover::after, .nav-link.active::after { width:100%; }

.nav-toggle {
    display:none; background:none; border:none;
    color:var(--text-white); font-size:0.85rem;
    font-family:var(--font-mono); letter-spacing:0.12em;
    text-transform:uppercase; padding:8px;
    transition:color var(--t-fast);
}
.nav-toggle:hover { color:var(--accent-red); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    padding:14px 34px;
    font-family:var(--font-mono); font-size:0.78rem; font-weight:500;
    letter-spacing:0.15em; text-transform:uppercase;
    border-radius:0; transition:all var(--t-med);
}
.btn-primary {
    background:var(--text-white); color:var(--bg-black);
    border:1px solid var(--text-white);
}
.btn-primary:hover {
    background:var(--accent-red); color:var(--text-white);
    border-color:var(--accent-red);
    box-shadow:0 12px 30px rgba(181,0,32,0.3);
}
.btn-secondary {
    background:transparent; color:var(--text-white);
    border:1px solid var(--border-active);
}
.btn-secondary:hover { border-color:var(--text-white); }

/* ==========================================================================
   HERO — KEN BURNS SLIDER
   ========================================================================== */
.hero {
    position:relative;
    height:100vh; height:100dvh; min-height:640px;
    overflow:hidden;
    display:flex; flex-direction:column;
    justify-content:flex-end;
    padding-top:var(--header-h);
}

/* Ambient Luxury Background Art */
.hero-background-art {
    position:absolute; inset:0; z-index:0;
    width:100%; height:100%;
    background:#060606;
    overflow:hidden;
}
.hero-bg-img {
    width:100%; height:100%;
    object-fit:cover;
    opacity:0.45; /* elegant starlight brightness */
    filter:brightness(0.65) contrast(1.3);
}

/* Gradient overlays — cinematic scrim */
.hero-scrim {
    position:absolute; inset:0; z-index:1;
    background:
        linear-gradient(to top,  rgba(6,6,10,0.92) 0%, rgba(6,6,10,0.45) 40%, transparent 70%),
        linear-gradient(to right, rgba(6,6,10,0.55) 0%, transparent 60%);
}

/* Content */
.hero-content {
    position:relative; z-index:2;
    padding:0 var(--gutter) 72px;
    max-width:var(--max-width); margin:0 auto; width:100%;
}
.hero-eyebrow {
    font-family:var(--font-mono);
    font-size:0.75rem; letter-spacing:0.22em;
    text-transform:uppercase; color:var(--accent-red);
    margin-bottom:24px;
    display:flex; align-items:center; gap:16px;
}
.hero-eyebrow::before {
    content:''; display:block;
    width:36px; height:1px; background:var(--accent-red);
}
.hero-title {
    font-family:var(--font-grotesque);
    font-size:clamp(3.5rem, 8vw, 9rem);
    font-weight:800;
    line-height:0.92;
    letter-spacing:-0.04em;
    text-transform:uppercase;
    margin-bottom:8px;
}
.hero-title-serif {
    display:block;
    font-family:var(--font-serif);
    font-size:clamp(2.5rem, 5.5vw, 6rem);
    font-weight:200;
    font-style:italic;
    letter-spacing:-0.02em;
    text-transform:none;
    color:rgba(248,248,252,0.75);
    padding-left:0.35em;
    margin-bottom:40px;
}
.hero-footer-bar {
    display:flex; align-items:flex-end; justify-content:space-between;
    gap:40px;
    border-top:1px solid rgba(255,255,255,0.12);
    padding-top:32px;
    flex-wrap:wrap;
}
.hero-manifesto {
    font-family:var(--font-serif);
    font-size:clamp(1rem, 1.4vw, 1.25rem);
    font-weight:300;
    color:var(--text-grey);
    line-height:1.55;
    max-width:520px;
}
.hero-cta-group {
    display:flex; align-items:center; gap:28px; flex-shrink:0;
}
.hero-cta-link {
    display:inline-flex; align-items:center; gap:10px;
    font-family:var(--font-mono); font-size:0.8rem;
    font-weight:500; text-transform:uppercase; letter-spacing:0.14em;
    border-bottom:1px solid var(--text-white); padding-bottom:4px;
    transition:all var(--t-fast);
}
.hero-cta-link:hover { color:var(--text-grey); border-color:var(--text-grey); }
.hero-slide-counter {
    font-family:var(--font-mono); font-size:0.75rem;
    color:var(--text-dark); letter-spacing:0.1em;
    display:flex; align-items:center; gap:10px; flex-shrink:0;
}
.hero-slide-counter-bar {
    width:60px; height:1px; background:var(--border-active);
    position:relative; overflow:hidden;
}
.hero-slide-counter-bar.animating::after {
    content:''; position:absolute; inset:0 auto 0 0;
    background:var(--accent-red);
    animation:counterBar 5s linear forwards;
}
@keyframes counterBar { from { width:0%; } to { width:100%; } }

/* ==========================================================================
   SECTION BASE
   ========================================================================== */
.section {
    padding:130px 0;
    border-bottom:1px solid var(--border-subtle);
}

.section-editorial-header {
    display:flex; justify-content:space-between; align-items:flex-end;
    margin-bottom:80px;
    border-bottom:1px solid var(--border-subtle);
    padding-bottom:40px;
}
.sec-title-number {
    font-family:var(--font-mono); font-size:0.8rem;
    color:var(--text-dark); display:block; margin-bottom:14px;
    letter-spacing:0.12em; text-transform:uppercase;
}
.sec-title-text {
    font-family:var(--font-grotesque);
    font-size:clamp(2rem, 4.5vw, 3.8rem);
    font-weight:700; text-transform:uppercase;
    letter-spacing:-0.025em;
}
.sec-header-desc {
    max-width:360px; font-size:0.95rem;
    color:var(--text-grey); line-height:1.6;
}

/* ==========================================================================
   PORTFOLIO FILTERS
   ========================================================================== */
.portfolio-filters {
    display:flex; gap:28px; margin-bottom:64px;
    flex-wrap:wrap; border-bottom:1px solid var(--border-subtle);
    padding-bottom:28px;
}
.filter-btn {
    background:none; border:none; color:var(--text-dark);
    font-family:var(--font-mono); font-size:0.76rem; font-weight:500;
    letter-spacing:0.16em; text-transform:uppercase;
    padding:6px 0; position:relative;
    transition:color var(--t-fast);
}
.filter-btn::after {
    content:''; position:absolute; bottom:0; left:0;
    width:0; height:1px; background:var(--accent-red);
    transition:width var(--t-med);
}
.filter-btn:hover { color:var(--text-white); }
.filter-btn.active { color:var(--text-white); }
.filter-btn.active::after { width:100%; }

/* ==========================================================================
   PORTFOLIO GRID — EDITORIAL MASONRY-INSPIRED
   ========================================================================== */
.portfolio-grid {
    display: block;
    columns: 3 320px;
    column-gap: 40px;
}
.grid-col-8  { grid-column:span 8; }
.grid-col-4  { grid-column:span 4; }
.grid-col-6  { grid-column:span 6; }
.grid-col-12 { grid-column:span 12; }

/* ─── Portfolio Card ──────────────────────────────────────────────────────── */
.portfolio-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 40px;
    break-inside: avoid;
    cursor:pointer;
    transition:transform var(--t-med) ease;
}
.portfolio-card:hover { transform:translateY(-4px); }

.card-media {
    position:relative; overflow:hidden;
    background:var(--bg-pure);
    border:1px solid var(--border-subtle);
    width:100%;
}

.card-media img {
    width:100%; height:auto;
    display:block;
    transition:opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out);
    will-change:transform, opacity;
}

img.lazy-load {
    opacity: 0;
}

img.lazy-load.loaded {
    opacity: 1;
}
.portfolio-card:hover .card-media img {
    transform:scale(1.06);
    filter:brightness(1.06) contrast(1.03);
}

/* Card image grid (multi-photo teaser) */
.card-image-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:1fr 1fr;
    width:100%; height:100%;
    gap:2px;
}
.card-image-grid img {
    width:100%; height:100%; object-fit:cover;
    transition:opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out);
}
.card-image-grid img:first-child {
    grid-column:1; grid-row:1/3;
}
.portfolio-card:hover .card-image-grid img {
    transform:scale(1.05);
    filter:brightness(1.06);
}

/* Luxury Sliding Hover Overlay */
.card-overlay-editorial {
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(6,6,10,0.95) 0%, rgba(6,6,10,0.45) 50%, rgba(6,6,10,0.15) 100%);
    opacity:0; display:flex; flex-direction:column; justify-content:flex-end;
    padding:28px; transition:opacity var(--t-med) ease;
    z-index:2;
}
.portfolio-card:hover .card-overlay-editorial { opacity:1; }

.card-overlay-content {
    display:flex; flex-direction:column; gap:8px;
    transform:translateY(16px);
    transition:transform var(--t-med) cubic-bezier(0.25, 1, 0.5, 1);
}
.portfolio-card:hover .card-overlay-content {
    transform:translateY(0);
}

.card-overlay-category {
    font-family:var(--font-mono); font-size:0.72rem;
    color:var(--accent-red); letter-spacing:0.18em; text-transform:uppercase;
}

.card-overlay-title {
    font-family:var(--font-serif); font-size:clamp(1.1rem, 1.6vw, 1.6rem);
    font-weight:300; color:var(--text-white); line-height:1.25;
}

.card-overlay-action {
    font-family:var(--font-mono); font-size:0.68rem;
    color:var(--text-grey); letter-spacing:0.15em; text-transform:uppercase;
    margin-top:4px; display:inline-block;
}

/* Photo count badge */
.card-photo-count {
    position:absolute; top:16px; right:16px;
    font-family:var(--font-mono); font-size:0.7rem; letter-spacing:0.1em;
    background:rgba(6,6,10,0.82); color:var(--text-white);
    padding:5px 12px; border:1px solid var(--border-active);
    backdrop-filter:blur(6px);
    pointer-events:none;
}

/* Caption */
.card-meta-editorial {
    display:flex; justify-content:space-between; align-items:flex-start;
    font-family:var(--font-mono); font-size:0.76rem;
    border-bottom:1px solid var(--border-subtle);
    padding-bottom:14px;
    color:var(--text-dark);
}
.card-num { color:var(--text-dark); }
.card-title-editorial {
    font-family:var(--font-serif);
    font-size:clamp(1.2rem, 2vw, 1.6rem);
    font-weight:300; color:var(--text-white);
    margin-top:2px; line-height:1.25;
}

/* ==========================================================================
   INTERACTIVE HOVER REVEAL LIST
   ========================================================================== */
.interactive-list-section {
    padding-top:64px; grid-column:span 12;
}
.list-section-title {
    font-family:var(--font-mono); font-size:0.78rem;
    text-transform:uppercase; letter-spacing:0.15em;
    color:var(--text-dark); margin-bottom:28px;
    border-bottom:1px solid var(--border-subtle); padding-bottom:16px;
}
.reveal-list { display:flex; flex-direction:column; }
.reveal-item {
    display:flex; justify-content:space-between; align-items:center;
    padding:28px 0; border-bottom:1px solid var(--border-subtle);
    cursor:pointer; position:relative;
    transition:padding-left var(--t-fast), border-color var(--t-fast);
}
.reveal-item:hover { padding-left:18px; border-bottom-color:var(--text-white); }
.reveal-item-left { display:flex; align-items:center; gap:36px; }
.reveal-item-num { font-size:0.8rem; color:var(--text-dark); font-family:var(--font-mono); }
.reveal-item-title {
    font-family:var(--font-serif);
    font-size:clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight:300; transition:all var(--t-med);
}
.reveal-item:hover .reveal-item-title { font-style:italic; }
.reveal-item-right {
    display:flex; align-items:center; gap:36px;
    font-size:0.78rem; color:var(--text-grey);
}
.reveal-item-tags { display:flex; gap:12px; }
.reveal-item-tag {
    border:1px solid var(--border-subtle);
    padding:4px 10px; font-size:0.72rem; color:var(--text-dark);
    font-family:var(--font-mono);
}
.reveal-item-link-icon { opacity:0.28; transition:all var(--t-fast); }
.reveal-item:hover .reveal-item-link-icon { opacity:1; transform:rotate(45deg); }

/* Mobile preview of website list items */
.reveal-item-mobile-preview {
    display:none;
}



/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display:grid; grid-template-columns:1fr 1.25fr;
    gap:80px; align-items:flex-start;
}
.about-visual-box {
    position:relative; border:1px solid var(--border-subtle);
    padding:20px; background:var(--bg-pure);
}
.about-visual-box img {
    width:100%; aspect-ratio:1/1.25; object-fit:cover;
}
.viewfinder-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25;
    background: #060606;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}
.viewfinder-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-grey);
    opacity: 0.3;
}
.viewfinder-corner.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.viewfinder-corner.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.viewfinder-corner.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.viewfinder-corner.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.viewfinder-grid-lines {
    position: absolute;
    inset: 40px;
    opacity: 0.08;
    pointer-events: none;
}
.viewfinder-line {
    position: absolute;
    background: var(--text-light);
}
.viewfinder-line.horizontal {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}
.viewfinder-line.vertical {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
}
.viewfinder-center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red);
    opacity: 0.6;
    box-shadow: 0 0 10px var(--accent-red);
}
.viewfinder-data {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-grey);
    opacity: 0.6;
}
.viewfinder-data .text-red {
    color: var(--accent-red);
    font-weight: bold;
    animation: pulse 1.5s infinite;
}
.viewfinder-code-overlay {
    font-size: 0.8rem;
    line-height: 1.8;
    color: #e0e0e0;
    opacity: 0.75;
    z-index: 2;
    text-align: left;
    width: 100%;
    max-width: 240px;
    margin-top: 20px;
    border-left: 2px solid var(--accent-red);
    padding-left: 16px;
}
.viewfinder-code-overlay .class { color: #d4b17a; } /* warm gold */
.viewfinder-code-overlay .prop { color: #a5c2f4; }  /* cool blue */
.viewfinder-code-overlay .val { color: #a8d0a0; }   /* soft green */

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.about-statement { display:flex; flex-direction:column; gap:36px; }
.about-quote {
    font-family:var(--font-serif);
    font-size:clamp(1.6rem, 3vw, 2.6rem);
    font-weight:300; line-height:1.3;
}
.about-quote span { font-style:italic; color:var(--text-grey); }
.about-bio-text { font-size:0.97rem; color:var(--text-grey); line-height:1.75; }
.about-services-box { border-top:1px solid var(--border-subtle); padding-top:8px; }

/* Services as modern cards instead of plain table */
.services-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:2px; margin-top:24px;
}
.services-card {
    background:var(--bg-elevated); padding:28px 24px;
    border:1px solid var(--border-subtle);
    transition:border-color var(--t-fast), background var(--t-fast);
    position:relative; overflow:hidden;
}
.services-card::before {
    content:''; position:absolute; top:0; left:0;
    width:2px; height:0; background:var(--accent-red);
    transition:height var(--t-med);
}
.services-card:hover { border-color:var(--border-active); background:rgba(255,255,255,0.02); }
.services-card:hover::before { height:100%; }
.services-num {
    font-family:var(--font-mono); font-size:0.75rem;
    color:var(--accent-red); letter-spacing:0.1em; display:block;
    margin-bottom:10px;
}
.services-title {
    font-family:var(--font-serif); font-size:1.05rem;
    font-weight:400; margin-bottom:10px; line-height:1.3;
}
.services-desc { font-size:0.82rem; color:var(--text-grey); line-height:1.6; }

/* Keep old table for backwards compat but hidden on larger */
.services-table { display:none; }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-layout {
    display:grid; grid-template-columns:1fr 1.2fr; gap:80px;
}
.contact-meta-box {
    display:flex; flex-direction:column; justify-content:space-between; height:100%;
}
.contact-info-list { display:flex; flex-direction:column; gap:28px; margin-top:40px; }
.contact-item-row { border-bottom:1px solid var(--border-subtle); padding-bottom:20px; }
.contact-item-label {
    font-family:var(--font-mono); font-size:0.72rem;
    text-transform:uppercase; color:var(--text-dark);
    margin-bottom:6px; letter-spacing:0.08em;
}
.contact-item-value {
    font-family:var(--font-serif); font-size:1.35rem;
    font-weight:300; color:var(--text-white);
}
.contact-item-value a:hover { color:var(--accent-red); }

.contact-form { display:flex; flex-direction:column; gap:36px; }
.form-row-editorial { display:grid; grid-template-columns:1fr 1fr; gap:36px; }
.form-group-editorial { display:flex; flex-direction:column; }
.form-label-editorial {
    font-family:var(--font-mono); font-size:0.72rem;
    text-transform:uppercase; color:var(--text-dark);
    letter-spacing:0.1em; margin-bottom:10px;
    transition:color var(--t-fast);
}
.form-group-editorial:focus-within .form-label-editorial { color:var(--text-white); }
.form-input-editorial {
    background:transparent; border:none;
    border-bottom:1px solid var(--border-subtle);
    padding:12px 0; color:var(--text-white);
    font-family:var(--font-mono); font-size:0.95rem; font-weight:300;
    border-radius:0; transition:border-color var(--t-fast);
    appearance:none; -webkit-appearance:none;
}
.form-input-editorial:focus { outline:none; border-bottom-color:var(--text-white); }
textarea.form-input-editorial { min-height:110px; resize:none; }
select.form-input-editorial { cursor:pointer; background:var(--bg-black); }

.form-status {
    padding:18px 20px; font-family:var(--font-mono);
    font-size:0.8rem; letter-spacing:0.05em; text-transform:uppercase;
    display:none; align-items:center; gap:10px;
}
.form-status.success {
    display:flex; background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.2); color:var(--text-white);
}
.form-status.error {
    display:flex; background:rgba(181,0,32,0.08);
    border:1px solid rgba(181,0,32,0.4); color:#ef4444;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    position:fixed; inset:0;
    background:rgba(4,4,7,0.97);
    z-index:2000; opacity:0; visibility:hidden;
    transition:opacity 0.4s ease, visibility 0.4s ease;
    display:flex; align-items:center; justify-content:center;
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
}
.lightbox.active { opacity:1; visibility:visible; }

.lightbox-close {
    position:absolute; top:36px; right:40px;
    background:none; border:none; color:var(--text-grey);
    font-family:var(--font-mono); font-size:0.78rem;
    letter-spacing:0.2em; text-transform:uppercase;
    transition:color var(--t-fast); z-index:2005;
}
.lightbox-close:hover { color:var(--text-white); }

.lightbox-container {
    width:88%; max-width:1260px;
    display:flex; flex-direction:column; gap:28px;
    transform:translateY(36px) scale(0.98);
    transition:transform 0.6s var(--ease-out);
}
.lightbox.active .lightbox-container { transform:translateY(0) scale(1); }

.lightbox-content {
    background:var(--bg-pure); border:1px solid var(--border-subtle);
    width:100%; position:relative; overflow:hidden;
}
.lightbox-video-wrapper { position:relative; padding-bottom:56.25%; height:0; }
.lightbox-video-wrapper iframe {
    position:absolute; top:0; left:0; width:100%; height:100%; border:0;
}
.lightbox-image-wrapper {
    display:flex; justify-content:center; align-items:center;
    max-height:68vh;
}
.lightbox-image-wrapper img {
    max-height:68vh; max-width:100%; width:auto; height:auto;
    object-fit:contain;
    transition:opacity 0.28s ease, transform 0.28s ease;
}

/* Thumbnail strip inside lightbox */
.lightbox-thumbs {
    display:flex; gap:6px; overflow-x:auto;
    padding:10px 0 4px;
    scrollbar-width:thin; scrollbar-color:var(--border-active) transparent;
}
.lightbox-thumb {
    flex-shrink:0; width:72px; height:52px;
    object-fit:cover; cursor:pointer; opacity:0.4;
    border:1px solid transparent;
    transition:opacity var(--t-fast), border-color var(--t-fast);
}
.lightbox-thumb:hover { opacity:0.75; }
.lightbox-thumb.active-thumb { opacity:1; border-color:var(--accent-red); }

.lightbox-info {
    display:grid; grid-template-columns:1.5fr 1fr;
    gap:36px; border-top:1px solid var(--border-subtle); padding-top:20px;
}
.lightbox-title { font-family:var(--font-serif); font-size:1.9rem; font-weight:300; }
.lightbox-desc  { font-size:0.9rem; color:var(--text-grey); line-height:1.55; }
.lightbox-actions { display:flex; justify-content:flex-end; align-items:flex-start; }

.lightbox-arrow {
    position:absolute; top:50%; transform:translateY(-50%);
    background:rgba(6,6,10,0.7); border:1px solid var(--border-active);
    color:var(--text-grey); padding:16px 14px;
    font-size:0.72rem; font-family:var(--font-mono);
    letter-spacing:0.1em; text-transform:uppercase;
    display:none; transition:all var(--t-fast); z-index:2002;
    backdrop-filter:blur(8px);
}
.lightbox-arrow:hover { background:var(--accent-red); border-color:var(--accent-red); color:#fff; }
.lightbox-arrow-left  { left:20px; }
.lightbox-arrow-right { right:20px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background:var(--bg-pure);
    border-top:1px solid var(--border-subtle);
    padding:90px 0 52px;
}
.footer-top {
    display:grid; grid-template-columns:1.5fr 1fr 1fr;
    gap:60px; margin-bottom:70px;
}
.footer-brand-title {
    font-family:var(--font-grotesque); font-size:1.1rem;
    text-transform:uppercase; letter-spacing:0.16em; margin-bottom:14px;
}
.footer-brand-desc { max-width:310px; font-size:0.84rem; color:var(--text-grey); line-height:1.65; }
.footer-section-title {
    font-family:var(--font-mono); font-size:0.72rem;
    text-transform:uppercase; color:var(--text-dark);
    letter-spacing:0.1em; margin-bottom:20px;
}
.footer-links-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-link-item a {
    font-size:0.84rem; color:var(--text-grey);
    text-transform:uppercase; letter-spacing:0.05em;
    transition:color var(--t-fast), padding-left var(--t-fast);
}
.footer-link-item a:hover { color:var(--text-white); padding-left:4px; }
.footer-bottom {
    border-top:1px solid var(--border-subtle); padding-top:36px;
    display:flex; justify-content:space-between; align-items:center;
    font-size:0.72rem; font-family:var(--font-mono);
    color:var(--text-dark); text-transform:uppercase; letter-spacing:0.05em;
}
.footer-socials { display:flex; gap:24px; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity:0; transform:translateY(36px);
    transition:opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}
.reveal.active { opacity:1; transform:translateY(0); }
.delay-100  { transition-delay:80ms; }
.delay-150  { transition-delay:130ms; }
.delay-200  { transition-delay:180ms; }
.delay-300  { transition-delay:280ms; }

/* ==========================================================================
   RESPONSIVE — 1024px
   ========================================================================== */
@media (max-width: 1100px) {
    :root { --gutter: 36px; }
    .grid-overlay { grid-template-columns:repeat(2,1fr); }
    .about-grid, .contact-layout { grid-template-columns:1fr; gap:56px; }
    .footer-top { grid-template-columns:1fr 1fr; }
    .services-grid { grid-template-columns:1fr; }
    .hero-footer-bar { flex-direction:column; gap:24px; }
}

/* ==========================================================================
   RESPONSIVE — 768px (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-h: 72px;
        --gutter: 20px;
    }

    .grid-overlay { display:none; }

    /* ── Nav ── */
    .nav-toggle { display:block; }
    .nav-menu {
        position:fixed; top:var(--header-h); left:-100%; width:100%;
        height:calc(100vh - var(--header-h));
        background:rgba(6,6,10,0.98);
        backdrop-filter:blur(20px);
        flex-direction:column; align-items:center; justify-content:center;
        gap:40px; transition:left var(--t-med);
        border-top:1px solid var(--border-subtle);
    }
    .nav-menu.active { left:0; }
    .nav-link { font-size:1.1rem; }

    /* ── Hero ── */
    .hero-title { font-size:clamp(2.8rem, 12vw, 5rem); }
    .hero-title-serif { font-size:clamp(1.8rem, 8vw, 3rem); }
    .hero-content { padding-bottom:48px; }
    .hero-footer-bar { gap:20px; }
    .hero-manifesto { font-size:0.95rem; }

    /* ── Portfolio Grid ── */
    .portfolio-grid {
        columns: 2 280px; /* naturally 2 columns on tablets, 1 column on true mobile */
        column-gap: 24px;
    }
    .portfolio-card {
        margin-bottom: 24px;
        break-inside: avoid;
    }

    .section-editorial-header { flex-direction:column; gap:20px; align-items:flex-start; }
    .sec-header-desc { max-width:100%; }
    .portfolio-filters { gap:16px; }

    /* ── Reveal list ── */
    .reveal-item { flex-direction:column; align-items:flex-start; gap:14px; padding:22px 0; }
    .reveal-item-left { gap:20px; }
    .reveal-item-right { width:100%; flex-wrap:wrap; }
    .reveal-item-mobile-preview {
        display: block;
        width: 100%;
        margin-top: 14px;
        border: 1px solid var(--border-subtle);
        background: var(--bg-elevated);
        overflow: hidden;
        aspect-ratio: 16 / 9;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .reveal-item-mobile-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.85;
        transition: opacity var(--t-fast) ease;
    }
    .reveal-item:hover .reveal-item-mobile-preview img {
        opacity: 1;
    }

    /* ── About ── */
    .about-grid { grid-template-columns:1fr; gap:40px; }
    .services-grid { grid-template-columns:1fr; }

    /* ── Contact ── */
    .contact-layout { grid-template-columns:1fr; gap:48px; }
    .form-row-editorial { grid-template-columns:1fr; gap:28px; }

    /* ── Footer ── */
    .footer-top { grid-template-columns:1fr; gap:36px; }
    .footer-bottom { flex-direction:column; gap:16px; text-align:center; }

    /* ── Lightbox ── */
    .lightbox-close { top:20px; right:20px; }
    .lightbox-info { grid-template-columns:1fr; gap:20px; }
    .lightbox-arrow { display:none !important; }
    .lightbox-container { width:94%; }
    .lightbox-thumbs { display:none; }
}

@media (max-width: 480px) {
    .hero-title  { font-size:clamp(2.2rem, 10vw, 3.5rem); }
    .sec-title-text { font-size:1.8rem; }
    .card-title-editorial { font-size:1.1rem; }
    .reveal-item-title { font-size:1.3rem; }
}

/* ==========================================================================
   CRITICAL FIXES & OVERRIDES
   ========================================================================== */

/* Fix: lightbox arrows display correctly */
.lightbox-arrow-left,
.lightbox-arrow-right {
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox-arrow[style*="display: flex"],
.lightbox-arrow[style*="display:flex"] {
    display: flex !important;
}

/* Fix: img base — needs height auto for aspect ratio to work */
img { height: auto; }

/* Fix: card-media img must fill container, override width:100% from base */
.card-media img,
.card-image-grid img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Fix: hero background art fills full viewport height */
.hero-background-art {
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
}

/* Fix: services-table hidden (replaced by services-grid) */
.services-table { display: none !important; }

/* Fix: contact-editorial-header (was only in inline style before) */
.contact-editorial-header { margin-bottom: 40px; }

/* Fix: card-photo-count positioning */
.card-photo-count {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    pointer-events: none;
}

/* Fix: hero content container width for large screens */
@media (min-width: 1481px) {
    .hero-content {
        max-width: var(--max-width);
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 0 var(--gutter) 72px;
    }
}

/* Fix: lightbox arrow show state — JS uses style display */
#lightbox-arrow-left[style*="display"],
#lightbox-arrow-right[style*="display"] {
    align-items: center;
}

/* Visual: add red accent line under section numbers */
.sec-title-number::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent-red);
    margin-top: 8px;
}

/* Visual: portfolio-card-interactive cursor */
.portfolio-card-interactive {
    cursor: pointer;
}

/* Fix: hero counter bar alignment */
.hero-slide-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   LUXURY MAGNETIC CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(calc(var(--cursor-x, 0px) - 50%), calc(var(--cursor-y, 0px) - 50%), 0);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
    opacity: 0;
}
.custom-cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(calc(var(--follower-x, 0px) - 50%), calc(var(--follower-y, 0px) - 50%), 0);
    transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
    opacity: 0;
}
.custom-cursor.visible,
.custom-cursor-follower.visible {
    opacity: 1;
}
/* Cursor states on hover over interactive elements */
.custom-cursor.hover {
    width: 4px;
    height: 4px;
    background: var(--text-white);
}
.custom-cursor-follower.hover {
    width: 52px;
    height: 52px;
    border-color: var(--accent-red);
    background: rgba(181, 0, 32, 0.04);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
/* Hide native cursor when custom is active (on fine pointers) */
@media (any-pointer: fine) {
    body {
        cursor: none;
    }
    a, button, select, textarea, input, [role="button"] {
        cursor: none;
    }
}

/* Luxury Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    max-width: 420px;
    background: rgba(16, 16, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
    transform: translateY(130%) scale(0.95);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    pointer-events: none;
}
.cookie-banner.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}
.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-text {
    font-size: 0.8rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin: 0;
}
.cookie-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 20px;
        transform: translateY(140%) scale(0.95);
    }
}
