/* =============================================
   RESET & BASE
============================================= */

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

:root {
    --red:       #ff2d2d;
    --red-dark:  #cc1e1e;
    --black:     #050505;
    --surface:   #111111;
    --surface2:  #1a1a1a;
    --white:     #ffffff;
    --gray:      #888888;
    --gray-dim:  rgba(255,255,255,.06);
    --border:    rgba(255,255,255,.08);
    --border-r:  rgba(255,45,45,.25);
    --font-h:    'Outfit', sans-serif;
    --font-b:    'Space Grotesk', sans-serif;
    --ease:      cubic-bezier(.25,.46,.45,.94);
    --ease-out:  cubic-bezier(.16,1,.3,1);
}

.light {
    --black:    #f8f8f8;
    --surface:  #eeeeee;
    --surface2: #e4e4e4;
    --white:    #111111;
    --gray:     #555555;
    --gray-dim: rgba(0,0,0,.04);
    --border:   rgba(0,0,0,.08);
}

html {
    scroll-behavior: auto; /* Lenis handles this */
    font-size: 16px;
}

body {
    font-family: var(--font-b);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
    transition: background .5s var(--ease), color .5s var(--ease);
}

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

/* =============================================
   NOISE TEXTURE
============================================= */

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .035;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    mix-blend-mode: overlay;
}

/* =============================================
   AMBIENT BLOBS
============================================= */

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(180px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.blob-1 {
    width: 700px;
    height: 700px;
    background: rgba(255,45,45,.09);
    top: -200px;
    right: -200px;
    animation: blobFloat 18s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(255,45,45,.06);
    bottom: 20%;
    left: -200px;
    animation: blobFloat 22s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(60px, -40px) scale(1.05); }
    66%       { transform: translate(-40px, 30px) scale(.95); }
}

/* =============================================
   CUSTOM CURSOR
============================================= */

#cursor-dot,
#cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transition: opacity .3s;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    transform: translate(-50%, -50%);
}

#cursor-ring {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255,45,45,.6);
    transform: translate(-50%, -50%);
    transition: width .35s var(--ease-out),
                height .35s var(--ease-out),
                border-color .35s,
                background .35s;
}

#cursor-ring.hovering {
    width: 70px;
    height: 70px;
    background: rgba(255,45,45,.1);
    border-color: var(--red);
}

#cursor-ring.clicking {
    width: 30px;
    height: 30px;
    background: rgba(255,45,45,.3);
}

@media (hover: none) {
    #cursor-dot, #cursor-ring { display: none; }
    body { cursor: auto; }
}

/* =============================================
   LOADER
============================================= */

#loader {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.loader-inner {
    text-align: center;
    z-index: 2;
    position: relative;
}

.loader-name {
    font-family: var(--font-h);
    font-size: clamp(52px, 10vw, 120px);
    font-weight: 900;
    letter-spacing: 16px;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    gap: 4px;
}

.loader-name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

.loader-sub {
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 5px;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    opacity: 0;
}

.loader-bar-wrap {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,.1);
    margin: 0 auto 48px;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--red);
    border-radius: 2px;
    transition: width .05s linear;
}

.loader-overlay {
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: bottom;
    z-index: 3;
}

/* =============================================
   HEADER
============================================= */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 26px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background .4s, backdrop-filter .4s, padding .4s;
}

#header.scrolled {
    background: rgba(5,5,5,.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.light #header.scrolled {
    background: rgba(248,248,248,.88);
}

.logo {
    font-family: var(--font-h);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 4px;
    position: relative;
}

.logo-dot {
    color: var(--red);
}

#nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--red);
    transition: width .4s var(--ease);
}

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

#themeToggle {
    font-size: 20px;
    padding: 6px;
    border-radius: 8px;
    transition: transform .3s var(--ease);
}

#themeToggle:hover {
    transform: rotate(20deg) scale(1.15);
}

/* Mobile menu button */
#menuBtn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 1100;
}

#menuBtn span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .3s;
}

#menuBtn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menuBtn.open span:nth-child(2) { opacity: 0; }

/* Mobile drawer */
#mobileMenu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform .55s var(--ease-out);
}

#mobileMenu.open {
    transform: translateX(0);
}

.mob-link {
    font-family: var(--font-h);
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* =============================================
   HERO
============================================= */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 80px;
    overflow: hidden;
    z-index: 1;
}

/* Background giant text */
.hero-bg-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: none;
    z-index: 0;
    width: max-content;
}

.hero-bg-text span {
    font-family: var(--font-h);
    font-size: clamp(80px, 16vw, 220px);
    font-weight: 900;
    letter-spacing: -6px;
    line-height: .88;
    color: var(--white);
    opacity: .025;
    text-transform: uppercase;
    will-change: transform;
}

/* Grid lines */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Red radial glow */
.hero-red-glow {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,45,45,.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50%       { opacity: .7; transform: translateY(-50%) scale(1.08); }
}

/* Hero layout */
.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-tag {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--red);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.hero-h1 {
    font-family: var(--font-h);
    font-size: clamp(72px, 9vw, 130px);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    overflow: hidden;
}

.hero-h1 .line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
}

/* Text with red outline (stroke) */
.red-stroke {
    -webkit-text-stroke: 3px var(--red);
    color: transparent;
}

.light .red-stroke {
    -webkit-text-stroke: 3px var(--red);
    color: transparent;
}

.hero-name {
    font-family: var(--font-h);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--gray);
    margin-bottom: 20px;
    opacity: 0;
}

.hero-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin-bottom: 44px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
    opacity: 0;
}

.hero-disciplines .sep {
    margin: 0 10px;
    color: var(--red);
}

.hero-cta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 52px;
    opacity: 0;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: var(--red);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.12);
    transform: translateX(-100%);
    transition: transform .4s var(--ease);
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(255,45,45,.35); }

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform .3s var(--ease);
}

.btn-primary:hover svg { transform: translateX(4px); }

/* Outline button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 34px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: border-color .3s, transform .3s var(--ease), background .3s;
}

.btn-outline:hover {
    border-color: var(--red);
    background: rgba(255,45,45,.07);
    transform: translateY(-4px);
}

/* Editorial label */
.hero-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(255,255,255,.2);
    text-transform: uppercase;
    opacity: 0;
}

.label-sep {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: rgba(255,255,255,.15);
}

/* Right — photo */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    opacity: 0;
    will-change: transform;
}

.photo-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    border-radius: 32px;
    overflow: visible;
}

.photo-frame.no-photo {
    background: linear-gradient(145deg, #1a0808 0%, #2a0a0a 40%, #1a1a1a 100%);
}

.photo-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(255,45,45,.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

.photo-outline {
    position: absolute;
    inset: -14px;
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 40px;
    pointer-events: none;
    z-index: 2;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    position: relative;
    z-index: 1;
    filter: contrast(1.08) saturate(1.05);
    box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
}

/* Floating editorial badges */
.float-badge {
    position: absolute;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
    pointer-events: none;
}

.float-badge span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.3;
    color: rgba(255,255,255,.7);
}

.float-badge span:first-child {
    color: var(--red);
}

.float-badge-1 {
    top: 20px;
    left: -30px;
    animation: floatY 3.5s ease-in-out infinite;
}

.float-badge-2 {
    bottom: 80px;
    right: -30px;
    animation: floatY 4.2s ease-in-out infinite .8s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.float-accent {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.float-circle {
    width: 70px;
    height: 70px;
    border: 1.5px solid rgba(255,45,45,.35);
    border-radius: 50%;
    top: -30px;
    right: -20px;
    animation: spinSlow 20s linear infinite;
}

.float-line {
    width: 90px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,45,45,.5), transparent);
    bottom: 30px;
    left: -50px;
    animation: floatY 5s ease-in-out infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 420px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-num {
    font-family: var(--font-h);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gray);
    text-transform: uppercase;
}

.stat-div {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: .4;
    z-index: 5;
}

.scroll-line {
    width: 1.5px;
    height: 50px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-cue span {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

@keyframes scrollPulse {
    0%, 100% { opacity: .4; transform: scaleY(1); }
    50%       { opacity: 1; transform: scaleY(1.1); }
}

/* =============================================
   MARQUEE
============================================= */

.marquee-wrap {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    z-index: 1;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 50px;
    font-family: var(--font-h);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.06);
    white-space: nowrap;
    animation: marquee 24s linear infinite;
    will-change: transform;
}

.light .marquee-track { color: rgba(0,0,0,.07); }

.mark-dot {
    color: var(--red);
    opacity: 1;
    font-size: .6em;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   SECTION LABEL
============================================= */

.section-label {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 1.5px;
    background: var(--red);
}

/* =============================================
   FEATURED SECTION
============================================= */

#featured {
    padding: 120px 8%;
    position: relative;
    z-index: 1;
}

.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feat-card {
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    cursor: none;
    transition: border-color .4s;
}

.feat-card:first-child { border-top: 1px solid var(--border); }

.feat-card-inner {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 40px;
    padding: 48px 24px;
    position: relative;
    z-index: 2;
    transition: transform .45s var(--ease-out);
}

.feat-card:hover .feat-card-inner {
    transform: translateX(16px);
}

.feat-num {
    font-family: var(--font-h);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--gray);
    font-weight: 600;
}

.feat-info {}

.feat-title {
    font-family: var(--font-h);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1;
    transition: color .3s;
}

.feat-card:hover .feat-title { color: var(--red); }

.feat-type {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-top: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.feat-desc {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 500px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s .1s, transform .4s .1s var(--ease);
}

.feat-card:hover .feat-desc {
    opacity: 1;
    transform: translateY(0);
}

.feat-arrow {
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, border-color .3s, transform .45s var(--ease-out);
}

.feat-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform .35s var(--ease);
}

.feat-card:hover .feat-arrow {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(-45deg);
}

.feat-hover-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 40%, rgba(255,45,45,.04) 100%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    z-index: 1;
}

.feat-card:hover .feat-hover-glow { opacity: 1; }

/* =============================================
   GALLERY FILTER
============================================= */

.gallery-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1.5px solid var(--border);
    color: var(--gray);
    transition: all .3s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* =============================================
   MASONRY GALLERY
============================================= */

#works {
    padding: 120px 8%;
    position: relative;
    z-index: 1;
}

.masonry {
    column-count: 4;
    column-gap: 20px;
}

.item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    cursor: none;
    background: var(--surface);
}

.item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .8s var(--ease), filter .5s;
    will-change: transform;
}

/* placeholder gradient when no image */
.item:not(:has(img[src^="images"])) {
    min-height: 260px;
    background: linear-gradient(135deg, #1a0808, #111, #0a0a1a);
}

.item:has(img) img {
    min-height: 180px;
    object-fit: cover;
}

.item.tall img { height: 480px; object-fit: cover; }

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 30%, rgba(0,0,0,.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    opacity: 0;
    transition: opacity .4s var(--ease);
}

.item:hover .item-overlay { opacity: 1; }

.item:hover img { transform: scale(1.08); filter: brightness(.85); }

.item-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 6px;
}

.item-view {
    font-family: var(--font-h);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Gallery color placeholders (for missing images) */
.item:nth-child(1)  { background: linear-gradient(135deg,#1a0808,#2d0d0d); }
.item:nth-child(2)  { background: linear-gradient(135deg,#08101a,#0d1a2d); }
.item:nth-child(3)  { background: linear-gradient(135deg,#0a1a08,#1a2d0d); }
.item:nth-child(4)  { background: linear-gradient(135deg,#1a1a08,#2d2d0d); }
.item:nth-child(5)  { background: linear-gradient(135deg,#1a0814,#2d0d1e); }
.item:nth-child(6)  { background: linear-gradient(135deg,#080a1a,#0d102d); }
.item:nth-child(7)  { background: linear-gradient(135deg,#0d1a14,#152d1e); }
.item:nth-child(8)  { background: linear-gradient(135deg,#1a1008,#2d1e0d); }
.item:nth-child(9)  { background: linear-gradient(135deg,#0d0d1a,#15152d); }
.item:nth-child(10) { background: linear-gradient(135deg,#1a0808,#2d1010); }
.item:nth-child(11) { background: linear-gradient(135deg,#081010,#0d2020); }
.item:nth-child(12) { background: linear-gradient(135deg,#100810,#200d20); }

/* =============================================
   MODAL
============================================= */

#modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.95);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
    backdrop-filter: blur(10px);
}

#modal.open {
    opacity: 1;
    pointer-events: all;
}

#modalContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    transform: scale(.92) translateY(20px);
    transition: transform .45s var(--ease-out);
}

#modal.open #modalContent {
    transform: scale(1) translateY(0);
}

#modalImg {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: 0 40px 120px rgba(0,0,0,.7);
}

.modal-info {
    text-align: center;
}

#modalType {
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}

#modalTitle {
    font-family: var(--font-h);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

#modalClose {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, background .3s, transform .3s;
}

#modalClose:hover {
    border-color: var(--red);
    background: rgba(255,45,45,.15);
    transform: rotate(90deg);
}

#modalClose svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* =============================================
   CONTACT
============================================= */

#contact {
    padding: 140px 8%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-bg-text {
    position: absolute;
    bottom: -40px;
    right: -40px;
    font-family: var(--font-h);
    font-size: clamp(120px, 20vw, 280px);
    font-weight: 900;
    color: var(--white);
    opacity: .02;
    pointer-events: none;
    letter-spacing: -8px;
    line-height: 1;
    z-index: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-h1 {
    font-family: var(--font-h);
    font-size: clamp(52px, 7vw, 100px);
    font-weight: 900;
    line-height: .88;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

.contact-h1 .cline {
    display: block;
    overflow: hidden;
}

.contact-avail {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
    letter-spacing: .3px;
}

/* Contact links */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 20px;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left .4s var(--ease), border-color .3s;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--red);
    transform: scaleY(0);
    transition: transform .35s var(--ease);
}

.contact-link:hover::before { transform: scaleY(1); }
.contact-link:hover { padding-left: 18px; border-color: rgba(255,45,45,.2); }

.cl-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cl-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 500;
}

.cl-value {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 600;
    transition: color .3s;
}

.contact-link:hover .cl-value { color: var(--red); }

.cl-arrow {
    font-size: 22px;
    color: var(--gray);
    transition: transform .35s var(--ease), color .3s;
}

.contact-link:hover .cl-arrow {
    transform: translate(4px, -4px);
    color: var(--red);
}

.resume-btn {
    margin-top: 32px;
    align-self: flex-start;
}

/* =============================================
   FOOTER
============================================= */

#footer {
    padding: 60px 8% 40px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-family: var(--font-h);
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 6px;
    opacity: .15;
}

.footer-marquee {
    overflow: hidden;
    margin-bottom: 30px;
}

.footer-track {
    display: inline-block;
    font-family: var(--font-h);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: 4px;
    white-space: nowrap;
    color: rgba(255,255,255,.04);
    animation: marquee 18s linear infinite;
    text-transform: uppercase;
}

.light .footer-track { color: rgba(0,0,0,.05); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gray);
    text-transform: uppercase;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* =============================================
   SCROLL REVEAL INITIAL STATE
============================================= */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

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

/* =============================================
   RIPPLE EFFECT
============================================= */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    animation: rippleAnim .6s ease-out forwards;
    pointer-events: none;
    transform: translate(-50%,-50%);
}

@keyframes rippleAnim {
    from { width: 0; height: 0; opacity: 1; }
    to   { width: 200px; height: 200px; opacity: 0; }
}

/* =============================================
   RESPONSIVE — TABLET
============================================= */

@media (max-width: 1100px) {
    .masonry { column-count: 3; }

    .hero-h1 {
        font-size: clamp(58px, 8vw, 100px);
    }

    .float-badge-1 { left: -10px; }
    .float-badge-2 { right: -10px; }
}

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-right {
        order: -1;
    }

    .photo-frame {
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-stats {
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-bg-text span {
        font-size: clamp(64px, 18vw, 140px);
        letter-spacing: -3px;
    }

    .masonry { column-count: 2; }

    #featured .feat-card-inner {
        grid-template-columns: 60px 1fr 44px;
        gap: 24px;
        padding: 36px 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-h1 {
        font-size: clamp(44px, 10vw, 80px);
    }
}

@media (max-width: 600px) {

    #header { padding: 22px 6%; }

    #hero { padding: 100px 6% 70px; }

    #featured, #works, #contact { padding: 80px 6%; }

    #nav { display: none; }

    #menuBtn { display: flex; }

    #mobileMenu { display: flex; }

    .masonry { column-count: 1; }

    .item.tall img { height: 360px; }

    .hero-h1 { font-size: clamp(54px, 14vw, 80px); }

    .feat-card-inner {
        grid-template-columns: 50px 1fr;
    }

    .feat-arrow { display: none; }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-cta { flex-direction: column; }

    .btn-primary, .btn-outline { text-align: center; justify-content: center; }
}