:root {
    --void: #0A0A0B;
    --monolith-white: #F8F9FA;
    --monolith-gray: #161617;
    --brand-primary: #7F1734;
    --brand-aura: rgba(127,23,52,0.12);
    --brand-secondary: #F2B800;        /* Golden yellow — from logo */
    --brand-secondary-dim: rgba(242,184,0,0.15);
    --text-muted: rgba(255,255,255,0.90);
    --text-secondary: rgba(255,255,255,0.68);
    --text-label: rgba(255,255,255,0.50);
    --glass-border: rgba(255,255,255,0.08);
    --glass-bg: rgba(20,20,22,0.92);
    --nav-bg: rgba(10,10,11,0);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ─── Gold utility classes ──────────────────────── */
.brand-gold       { color: var(--brand-secondary) !important; }
.brand-gold-glow  { color: var(--brand-secondary); text-shadow: 0 0 24px rgba(242,184,0,0.22); }
.brand-gold-border{ border-color: var(--brand-secondary) !important; }
.since-label      { color: var(--brand-secondary); font-size:9px; letter-spacing:.6em; font-weight:700; text-transform:uppercase; }
.gold-dot::after  { content:'.'; color:var(--brand-secondary); }

/* ─── Contrast boosts ───────────────────────────── */
.text-white\/40 { color: rgba(255,255,255,0.65) !important; }
.text-white\/20 { color: rgba(255,255,255,0.55) !important; }
.text-white\/10 { color: rgba(255,255,255,0.40) !important; }

/* ─── Base ──────────────────────────────────────── */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    background-color: var(--void);
    color: rgba(255,255,255,0.92);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.01em;
}
p { color: var(--text-muted); }

.text-muted           { color: var(--text-muted) !important; }
.bg-void              { background-color: var(--void) !important; }
.brand-outline        { border: 1px solid var(--brand-primary) !important; }
.brand-text-glow      { color: var(--brand-primary); text-shadow: 0 0 20px rgba(127,23,52,0.15); }
.brand-border-bottom  { border-bottom: 2px solid var(--brand-primary); }

/* ─── Noise overlay ─────────────────────────────── */
.noise-overlay {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ─── Navigation ────────────────────────────────── */
nav {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
    border-bottom: 1px solid transparent;
}
nav.nav-scrolled {
    --nav-bg: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 5rem !important;
}
.nav-logo { height: 3rem; width: auto; transition: all 0.5s cubic-bezier(0.23,1,0.32,1); }
.nav-logo:hover { transform: scale(1.05); }

.nav-link {
    color: rgba(255,255,255,0.40);
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}
.nav-link:hover { color: rgba(255,255,255,0.92); }
.nav-link.active-nav { color: var(--brand-primary) !important; opacity: 1 !important; }

nav a { position: relative; }
nav a::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 0;
    width: 0%; height: 1px;
    background: var(--brand-primary);
    transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
    opacity: 0.95;
}
nav a:hover::after, nav a.active-nav::after { width: 100%; }

/* ─── Hamburger ─────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none; border: none;
    cursor: pointer; z-index: 200;
}
.hamburger-line {
    display: block; height: 1px; background: white;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.hamburger-line:nth-child(1) { width: 24px; }
.hamburger-line:nth-child(2) { width: 24px; }
.hamburger-line:nth-child(3) { width: 16px; }
.mobile-menu-btn.is-open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 24px; }
.mobile-menu-btn.is-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.is-open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 24px; }

/* ─── Mobile Menu Overlay ───────────────────────── */
.mobile-menu-overlay {
    position: fixed; inset: 0; z-index: 150;
    background: var(--void);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), visibility 0.5s;
    overflow: hidden;
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-nav-link {
    display: block; text-align: center; text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-heading); font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 800; color: rgba(255,255,255,0.25);
    letter-spacing: 0.08em; line-height: 1.1; padding: 0.5rem 0;
    opacity: 0; transform: translateY(20px);
    transition: color 0.3s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.5s cubic-bezier(0.22,1,0.36,1);
}
.mobile-menu-overlay.is-open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.07s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.17s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.22s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(5) { transition-delay: 0.27s; }
.mobile-menu-overlay.is-open .mobile-nav-link:nth-child(6) { transition-delay: 0.32s; }
.mobile-nav-link:hover { color: rgba(255,255,255,0.95); }
.mobile-nav-link.contact-link { color: var(--brand-primary); }
.mobile-nav-link.contact-link:hover { color: white; }

.mobile-nav-sublabel {
    display: block;
    font-family: var(--font-body); font-size: 8px;
    letter-spacing: 0.5em; font-weight: 700;
    color: rgba(255,255,255,0.18); text-transform: uppercase; margin-top: 1px;
}
.mobile-menu-footer {
    position: absolute; bottom: 2rem;
    display: flex; gap: 2rem; align-items: center;
    opacity: 0; transition: opacity 0.5s 0.32s ease;
}
.mobile-menu-overlay.is-open .mobile-menu-footer { opacity: 1; }

/* ─── Scroll progress ───────────────────────────── */
.v2-progress {
    position: fixed; top: 0; left: 0;
    width: 0%; height: 1px;
    background: var(--brand-primary); z-index: 1000;
}

/* ─── Custom cursor ─────────────────────────────── */
.cursor-active * { cursor: none !important; }
.custom-cursor { position:fixed; width:6px; height:6px; background:white; border-radius:50%; pointer-events:none; z-index:9999; }
.custom-cursor-follower { position:fixed; width:30px; height:30px; border:0.5px solid rgba(255,255,255,0.2); border-radius:50%; pointer-events:none; z-index:9998; transition:transform 0.2s cubic-bezier(0.23,1,0.32,1); }

/* ─── Interactions ──────────────────────────────── */
a, button { transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), opacity 0.18s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a:active, button:active { transform: scale(0.96); }

.cta-button { box-shadow: 0 0 40px rgba(127,23,52,0.20); transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.18s ease; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(127,23,52,0.18); }

/* ─── Typography ────────────────────────────────── */
h1, .colossal-title {
    font-family: var(--font-heading); font-weight: 800;
    font-size: clamp(4.5rem, 14vw, 20rem);
    line-height: 0.82; text-transform: uppercase;
    letter-spacing: -0.05em; margin-left: -0.05em;
}
h2, .monolith-header {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 8vw, 10rem);
    font-weight: 800; text-transform: uppercase; line-height: 0.9;
}

/* ─── Obsidian card ─────────────────────────────── */
.obsidian-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    transition: all 0.8s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.obsidian-card:hover { border-color: var(--brand-primary); transform: translateY(-5px); box-shadow: 0 18px 60px rgba(0,0,0,0.35); }

/* ─── Portfolio ─────────────────────────────────── */
.portfolio-filters { display:flex; gap:1rem; margin-bottom:2.5rem; align-items:center; flex-wrap:wrap; }
.filter-btn {
    background: transparent; color: var(--text-secondary);
    border: 0; padding: 0.45rem 1rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    border-radius: 999px;
    transition: all 0.28s cubic-bezier(0.22,1,0.36,1);
    cursor: pointer; font-size: 10px;
}
.filter-btn.active { background: rgba(255,255,255,0.04); color: var(--brand-primary); transform: translateY(-2px); }
.filter-btn:hover:not(.active) { color: rgba(255,255,255,0.8); }

.portfolio-card-v2 {
    position: relative; background: var(--void); overflow: hidden;
    aspect-ratio: 4/5; cursor: pointer; transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s cubic-bezier(0.16,1,0.3,1);
}
.portfolio-card-v2:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.portfolio-card-v2 img { width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.1) brightness(0.85); transition:all 1.2s cubic-bezier(0.16,1,0.3,1); }
.portfolio-card-v2:hover img { filter:grayscale(0) contrast(1.15) brightness(1); transform:scale(1.08); }
.portfolio-card-v2 .card-overlay {
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.1) 70%, transparent 100%);
    opacity:0; transition:opacity 0.8s cubic-bezier(0.16,1,0.3,1);
    display:flex; flex-direction:column; justify-content:flex-end; padding:3rem;
}
.portfolio-card-v2:hover .card-overlay { opacity:1; }
.portfolio-card-v2.filtered-out { opacity:0; transform:scale(0.96) translateY(20px) !important; pointer-events:none; filter:grayscale(0.6) blur(0.4px); transition:all 0.45s cubic-bezier(0.16,1,0.3,1); }

/* ─── Gallery Page ──────────────────────────────── */
.gallery-masonry { columns: 3; column-gap: 1px; }
.gallery-item { break-inside: avoid; margin-bottom: 1px; position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img { width:100%; display:block; filter:grayscale(0.75) brightness(0.82); transition:all 0.9s cubic-bezier(0.16,1,0.3,1); }
.gallery-item:hover img { filter:grayscale(0) brightness(1); transform:scale(1.04); }
.gallery-item-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 60%);
    opacity:0; transition:opacity 0.5s ease;
    display:flex; flex-direction:column; justify-content:flex-end; padding:1.25rem;
}
.gallery-item:hover .gallery-item-overlay { opacity:1; }

.gallery-video-card { position:relative; background:var(--void); overflow:hidden; cursor:pointer; border:1px solid var(--glass-border); }
.gallery-video-card video { width:100%; display:block; filter:brightness(0.75); transition:filter 0.5s ease; }
.gallery-video-card:hover video { filter:brightness(1); }
.gallery-play-btn { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.gallery-play-icon { width:60px; height:60px; border:1px solid rgba(255,255,255,0.4); border-radius:50%; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(8px); background:rgba(127,23,52,0.25); transition:all 0.3s ease; }
.gallery-video-card:hover .gallery-play-icon { background:var(--brand-primary); border-color:var(--brand-primary); transform:scale(1.1); }

/* ─── Contact Form ──────────────────────────────── */
.contact-form-field { margin-bottom: 1.5rem; }
.contact-form-field label { display:block; font-size:9px; letter-spacing:0.5em; font-weight:700; text-transform:uppercase; color:rgba(255,255,255,0.45); margin-bottom:0.6rem; }
.contact-input, .contact-select, .contact-textarea {
    width:100%; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08);
    color:rgba(255,255,255,0.90); padding:1rem 1.25rem;
    font-family:var(--font-body); font-size:14px; outline:none;
    transition: border-color 0.3s ease, background 0.3s ease;
    -webkit-appearance: none; appearance: none;
}
.contact-input:focus, .contact-select:focus, .contact-textarea:focus { border-color:var(--brand-primary); background:rgba(127,23,52,0.04); }
.contact-input::placeholder, .contact-textarea::placeholder { color:rgba(255,255,255,0.22); }
.contact-select option { background:#161617; color:white; }
.contact-textarea { resize:vertical; min-height:160px; }

.contact-submit-btn {
    width:100%; background:var(--brand-primary); color:white; border:none;
    padding:1.1rem 3rem; font-family:var(--font-heading); font-size:14px;
    font-weight:800; letter-spacing:0.2em; text-transform:uppercase;
    cursor:pointer; transition:all 0.25s ease;
}
.contact-submit-btn:hover { background:white; color:black; transform:translateY(-2px); box-shadow:0 20px 50px rgba(0,0,0,0.3); }
.contact-submit-btn:active { transform:scale(0.98); }

.contact-info-item { display:flex; gap:1.25rem; align-items:flex-start; padding:1.5rem 0; border-bottom:1px solid rgba(255,255,255,0.05); }
.contact-info-item:last-child { border-bottom:none; }
.contact-info-icon { width:40px; height:40px; border:1px solid rgba(127,23,52,0.4); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--brand-primary); font-size:14px; }

.form-success-state { display:none; text-align:center; padding:3rem 2rem; }
.form-success-state.visible { display:block; }

/* ─── Lightbox ──────────────────────────────────── */
.portfolio-lightbox, .gallery-lightbox {
    position:fixed; inset:0; background:rgba(0,0,0,0.96);
    display:flex; align-items:center; justify-content:center;
    opacity:0; visibility:hidden; transition:all 0.5s ease; z-index:99999;
}
.portfolio-lightbox.active, .gallery-lightbox.active { opacity:1; visibility:visible; }
.lightbox-inner { position:relative; }
.lightbox-inner img, .gallery-lightbox-img {
    max-width:85vw; max-height:85vh; object-fit:contain;
    transform:scale(0.9); transition:transform 0.6s cubic-bezier(0.16,1,0.3,1); display:block;
}
.portfolio-lightbox.active .lightbox-inner img,
.gallery-lightbox.active .gallery-lightbox-img { transform:scale(1); }
.lightbox-close {
    position:absolute; top:2rem; right:2rem;
    color:rgba(255,255,255,0.5); font-size:1.5rem;
    cursor:pointer; background:none; border:none; transition:color 0.2s;
}
.lightbox-close:hover { color:white; }

/* ─── Back to top ───────────────────────────────── */
.back-to-top {
    position:fixed; bottom:2rem; right:2rem; width:44px; height:44px;
    border:1px solid rgba(255,255,255,0.12); background:var(--glass-bg);
    backdrop-filter:blur(12px); color:rgba(255,255,255,0.6);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; opacity:0; transform:translateY(10px);
    transition:all 0.3s ease; z-index:50; font-size:14px;
}
.back-to-top.visible { opacity:1; transform:translateY(0); }
.back-to-top:hover { border-color:var(--brand-primary); color:white; background:var(--brand-primary); }

/* ─── Atmospheric aura ──────────────────────────── */
.monolith-aura { position:absolute; width:80vw; height:80vw; background:radial-gradient(circle, var(--brand-aura) 0%, transparent 70%); filter:blur(100px); pointer-events:none; z-index:0; border-radius:50%; }

/* ─── Reveal system ─────────────────────────────── */
.v2-reveal, .v2-reveal-3d, .v2-reveal-3d-left, .v2-reveal-3d-right, .v2-reveal-3d-scale {
    opacity:0; transform:translate3d(0, 56px, -28px) rotateX(5deg);
    transform-style:preserve-3d; backface-visibility:hidden;
}
.v2-reveal-3d-left  { transform:translate3d(-34px, 42px, -28px) rotateX(5deg); }
.v2-reveal-3d-right { transform:translate3d(34px, 42px, -28px) rotateX(5deg); }
.v2-reveal-3d-scale { transform:translate3d(0, 30px, -18px) scale(0.965); }
.v2-reveal.active, .v2-reveal-3d.active, .v2-reveal-3d-left.active,
.v2-reveal-3d-right.active, .v2-reveal-3d-scale.active {
    opacity:1; transform:translate3d(0,0,0) rotateX(0deg) scale(1);
}
html:not(.monolith-loaded) .v2-reveal, html:not(.monolith-loaded) .v2-reveal-3d,
html:not(.monolith-loaded) .v2-reveal-3d-left, html:not(.monolith-loaded) .v2-reveal-3d-right,
html:not(.monolith-loaded) .v2-reveal-3d-scale { opacity:1 !important; transform:none !important; transition:none !important; }

section { border-top: 1px solid rgba(255,255,255,0.03); }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }

/* ─── Page transitions ──────────────────────────── */
.page-transition-overlay { position:fixed; inset:0; z-index:99999; pointer-events:none; opacity:0; overflow:hidden; }
.page-transition-overlay.active { opacity:1; }
.page-transition-layer { position:absolute; inset:-5%; transform:translateY(100%); will-change:transform,opacity; }
.page-transition-layer-a { background:radial-gradient(120% 100% at 50% 100%, rgba(127,23,52,0.34) 0%, rgba(10,10,11,0.98) 60%, rgba(10,10,11,1) 100%),linear-gradient(170deg, rgba(127,23,52,0.16) 0%, rgba(10,10,11,0.96) 55%); }
.page-transition-layer-b { opacity:0.92; mix-blend-mode:screen; background:radial-gradient(80% 70% at 20% 30%, rgba(127,23,52,0.2) 0%, rgba(127,23,52,0) 70%),repeating-linear-gradient(145deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 4px); }
body.is-transitioning-out { overflow:hidden; }

/* ─── Marquee ───────────────────────────────────── */
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.animate-marquee { animation:marquee 30s linear infinite; display:flex; width:max-content; }

/* ─── Container ─────────────────────────────────── */
.container-v2 { width:100%; max-width:1600px; min-width:0; margin:0 auto; padding:0 4rem; }

/* ─── Map ───────────────────────────────────────── */
.monolith-map { border:0; filter:none; width:100%; height:100%; }

/* ─── Reduced motion ────────────────────────────── */
html.motion-reduced .custom-cursor, html.motion-reduced .custom-cursor-follower { display:none !important; }
html.motion-reduced .v2-reveal, html.motion-reduced .v2-reveal-3d,
html.motion-reduced .v2-reveal-3d-left, html.motion-reduced .v2-reveal-3d-right,
html.motion-reduced .v2-reveal-3d-scale { transform:none !important; transition:opacity 0.2s ease !important; }
html.motion-reduced .page-transition-layer { display:none; }
html.motion-reduced .page-transition-overlay { background:rgba(10,10,11,0.72); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .v2-reveal, .v2-reveal-3d, .v2-reveal-3d-left, .v2-reveal-3d-right, .v2-reveal-3d-scale { transition-duration:0.2s !important; }
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1024px) { .mobile-menu-btn { display:flex; } }
@media (max-width: 768px) {
    .container-v2 { padding:0 1.5rem; }
    .container-v2 .grid:not([class~="grid-cols-2"]) { grid-template-columns:minmax(0, 1fr); }
    .container-v2 .grid > * { min-width:0; }
    * { cursor:auto !important; }
    .custom-cursor, .custom-cursor-follower { display:none; }
    .colossal-title { font-size:clamp(1.9rem, 10vw, 5rem); line-height:0.9; }
    .monolith-header { font-size:clamp(1.3rem, 7vw, 4rem); letter-spacing:-0.04em; }
    .page-root h2:not(.monolith-header) { font-size:clamp(1.7rem, 10vw, 4rem); line-height:0.95; }
    .mobile-menu-overlay nav { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
    .mobile-nav-link { max-width:100%; box-sizing:border-box; font-size:clamp(1.65rem, 6vw, 3rem); }
    .mobile-menu-footer { left:1.5rem; right:1.5rem; justify-content:center; flex-wrap:wrap; gap:1rem; }
    .page-root a[href^="mailto:"] { overflow-wrap:anywhere; }
    .gallery-masonry { columns:2; }
    nav { padding-left:1.5rem; padding-right:1.5rem; }
}
@media (max-width: 480px) { .gallery-masonry { columns:1; } }