/* ============================================
   Maya Neuman — Dancer & Choreographer
   ============================================ */

:root {
    --bg-primary: #ECEEF3;
    --bg-secondary: #E0E4EB;
    --bg-dark: #D4D9E2;
    --text-primary: #162035;
    --text-secondary: #4A5568;
    --text-light: #7E8A9A;
    --accent: #5A85A0;
    --accent-hover: #4A7390;
    --accent-light: rgba(90, 133, 160, 0.10);
    --border: #C0C8D4;
    --white: #FFFFFF;

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0, 1);
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; image-orientation: from-image; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 140px 0; position: relative; }

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-label--center { justify-content: center; }

.section-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.section-title.sub-title { margin-top: 100px; }

.section-title em,
.page-title em,
.contact-title em,
.hero-name em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
}

.hero-name em { color: inherit; }

/* Inner pages (no hero) */
.page-inner { padding-top: var(--nav-height); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 40px;
    height: var(--nav-height);
    transition: all 0.6s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(236, 238, 243, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--white);
    transition: color 0.6s var(--ease-smooth);
}

.nav.scrolled .nav-logo { color: var(--text-primary); }

.nav-links { display: flex; gap: 36px; }

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.4s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-smooth);
}

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

.nav.scrolled .nav-links a { color: var(--text-secondary); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--text-primary); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block; width: 28px; height: 1.5px;
    background: var(--white);
    transition: all 0.5s var(--ease-smooth);
    transform-origin: center;
}

.nav.scrolled .nav-toggle span { background: var(--text-primary); }
.nav-toggle.active span { background: var(--text-primary) !important; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 105;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.6s var(--ease-smooth);
}

.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { text-align: center; }

.mobile-menu li {
    margin: 20px 0;
    opacity: 0; transform: translateY(24px);
    transition: all 0.5s var(--ease-smooth);
}

.mobile-menu.open li { opacity: 1; transform: translateY(0); }
.mobile-menu.open li:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open li:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open li:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open li:nth-child(4) { transition-delay: 0.32s; }
.mobile-menu.open li:nth-child(5) { transition-delay: 0.40s; }

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 300;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

.mobile-menu a:hover { color: var(--accent); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh; height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    transform: scale(1.08);
    animation: heroZoom 20s ease-out forwards;
    will-change: transform;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        170deg,
        rgba(8, 18, 38, 0.08) 0%,
        rgba(8, 18, 38, 0.18) 40%,
        rgba(8, 18, 38, 0.58) 100%
    );
}

.hero-content { position: relative; z-index: 2; padding: 0 60px 100px; }

.hero-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3.8rem, 10vw, 8rem);
    line-height: 0.95;
    color: var(--white);
    letter-spacing: -0.02em;
    opacity: 0; transform: translateY(50px);
    animation: fadeUp 1.6s var(--ease-smooth) 0.3s forwards;
}

.hero-line {
    width: 60px; height: 1px;
    background: var(--accent);
    margin: 32px 0 28px;
    transform: scaleX(0); transform-origin: left;
    animation: lineGrow 1s var(--ease-smooth) 1.1s forwards;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.82rem; font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 1s var(--ease-smooth) 1.5s forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes lineGrow { to { transform: scaleX(1); } }

.scroll-indicator {
    position: absolute; bottom: 40px; right: 60px; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    opacity: 0; animation: fadeUp 1s var(--ease-smooth) 2.2s forwards;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.62rem; font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    writing-mode: vertical-lr;
}

.scroll-line {
    width: 1px; height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative; overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute; top: -100%; left: 0;
    width: 100%; height: 100%;
    background: var(--accent);
    animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg-primary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image { position: relative; }
.about-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-content .section-title { margin-bottom: 32px; }

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem; line-height: 1.85;
}

.about-text p:last-child { margin-bottom: 0; }

.about-details {
    margin-top: 40px; padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex; gap: 48px;
}

.detail-label {
    display: block;
    font-size: 0.68rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent); margin-bottom: 6px;
}

.detail-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 300; }

.about-cv {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 1px solid var(--accent);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    transition: all 0.4s var(--ease-smooth);
}

.cv-button:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90, 133, 160, 0.25);
}

.cv-button svg:last-child { transition: transform 0.4s var(--ease-smooth); }
.cv-button:hover svg:last-child { transform: translate(2px, -2px); }

/* ============================================
   GALLERY PREVIEW
   ============================================ */
.gallery-section { background: var(--bg-secondary); }

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gp-item {
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
}

.gp-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: saturate(0.88);
    transition: transform 0.8s var(--ease-smooth), filter 0.8s var(--ease-smooth);
}

.gp-item:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* "+N more" card */
.gp-more {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
}

.gp-more img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: blur(3px) brightness(0.7);
    transform: scale(1.08);
    transition: filter 0.6s var(--ease-smooth);
}

.gp-more:hover img { filter: blur(2px) brightness(0.6); }

.gp-more-overlay {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gp-more-count {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ============================================
   PAGE HEADER (sub-pages)
   ============================================ */
.page-header {
    padding: 70px 0 36px;
}

.page-header .container {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 4rem);
    line-height: 1.1;
    color: var(--text-primary);
}

/* ============================================
   FEATURED PERFORMANCE
   ============================================ */
.featured-performance {
    padding: 60px 0 80px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.fp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.fp-visual {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.fp-visual img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    cursor: pointer;
    transition: transform 1s var(--ease-smooth);
}

.fp-visual:hover img { transform: scale(1.03); }

/* Wide (landscape) variant — cropped a little, closer to the portrait cards */
.fp-visual--wide img { aspect-ratio: 4 / 3; object-position: center; }

/* Natural-aspect variant — shows the full image uncropped (e.g. a poster) */
.fp-visual--natural { background: transparent; }
.fp-visual--natural img { aspect-ratio: auto; object-fit: contain; }

.fp-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 20px;
}

.fp-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.fp-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px; line-height: 1.5;
}

.fp-description p {
    color: var(--text-secondary);
    font-size: 0.95rem; line-height: 1.8;
    margin-bottom: 16px;
}

.fp-meta {
    margin-top: 36px; padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 16px;
}

.fp-meta-item { display: flex; gap: 16px; align-items: baseline; }

.fp-meta-label {
    font-size: 0.66rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--accent);
    min-width: 70px; flex-shrink: 0;
}

.fp-meta-item span:last-child { font-size: 0.92rem; color: var(--text-primary); font-weight: 300; }

.fp-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 32px; padding: 14px 28px;
    background: var(--accent); color: var(--white);
    font-size: 0.82rem; font-weight: 400; letter-spacing: 0.06em;
    border-radius: 2px;
    transition: all 0.4s var(--ease-smooth);
}

.fp-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90, 133, 160, 0.25);
}

.fp-link svg { transition: transform 0.4s var(--ease-smooth); }
.fp-link:hover svg { transform: translate(3px, -3px); }

.fp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 60px;
}

.fp-gallery-item {
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
}

.fp-gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: saturate(0.88);
    transition: transform 0.8s var(--ease-smooth), filter 0.8s var(--ease-smooth);
}

.fp-gallery-item:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* ============================================
   OTHER PERFORMANCES / TIMELINE
   ============================================ */
.other-performances { background: var(--bg-primary); }

.timeline { max-width: 820px; }

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
    transition: padding-left 0.5s var(--ease-smooth), border-color 0.5s var(--ease-smooth);
}

.timeline-item:hover { padding-left: 10px; border-bottom-color: var(--accent); }

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

.timeline-year {
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 600;
    color: var(--accent); letter-spacing: 0.04em;
    padding-top: 2px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 600;
    margin-bottom: 8px; line-height: 1.3;
}

.timeline-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s var(--ease-smooth);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.timeline-link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A85A0' stroke-width='2.5'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.timeline-link:hover { color: var(--accent); }
.timeline-link:hover::after { opacity: 1; transform: translate(2px, -2px); }

.timeline-content p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
/* Portfolio background video */
.portfolio-bg-video {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.portfolio-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(236, 238, 243, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.page-header--transparent { background: transparent; }
.page-header--transparent .page-title { color: var(--text-primary); }
.page-header--transparent .container { border-bottom-color: rgba(192, 200, 212, 0.5); }

.portfolio-section--transparent { background: transparent; }

/* Portfolio fullscreen layout */
.page-portfolio {
    overflow: hidden;
}

.page-portfolio .portfolio-section--transparent {
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    padding: 24px 0;
    box-sizing: border-box;
}

.page-portfolio .portfolio-section--transparent .container {
    height: 100%;
}

.page-portfolio .portfolio-grid--compact {
    height: 100%;
    grid-template-rows: 1fr 1fr;
}

.page-portfolio .portfolio-card {
    aspect-ratio: unset;
}

.portfolio-section { padding: 20px 0 60px; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.portfolio-grid--compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.portfolio-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.portfolio-card__media {
    position: absolute;
    inset: 0;
}

.portfolio-card__media img,
.portfolio-card__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-smooth);
}

.portfolio-card:hover .portfolio-card__media img,
.portfolio-card:hover .portfolio-card__media video { transform: scale(1.05); }

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 18, 38, 0.7) 0%, rgba(8, 18, 38, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: background 0.6s var(--ease-smooth);
}

.portfolio-card:hover .portfolio-card__overlay {
    background: linear-gradient(0deg, rgba(8, 18, 38, 0.8) 0%, rgba(8, 18, 38, 0.1) 60%);
}

.portfolio-card__tag {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.portfolio-card__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    color: var(--white);
}

.portfolio-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
    pointer-events: none;
}

.portfolio-card:hover .portfolio-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }

/* ============================================
   PROJECT DETAIL PAGES
   ============================================ */
.project-back {
    padding: 24px 0 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    transition: color 0.4s var(--ease-smooth);
}

.back-link:hover { color: var(--accent); }
.back-link svg { transition: transform 0.4s var(--ease-smooth); }
.back-link:hover svg { transform: translateX(-4px); }

.project-detail { padding: 40px 0 80px; }

.project-video {
    max-width: 960px;
    margin: 0 auto 48px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--text-primary);
}

.project-video video {
    width: 100%;
    display: block;
}

.project-info {
    max-width: 700px;
}

/* CCDS tour — looping video in the visual slot + compact image grid */
.fp-visual--video { align-self: center; background: var(--text-primary); }

.fp-visual--video video {
    width: 100%;
    display: block;
}

.fp-visual--video:hover video { transform: none; }

.ccds-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.ccds-gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 3px;
    filter: saturate(0.9);
    transition: filter 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.ccds-gallery img:hover { filter: saturate(1.05); transform: scale(1.02); }

/* CCDS tour — video + text, with a single row of stills below (scrolls normally) */
.page-ccds .featured-performance { padding: 48px 0 72px; }
.page-ccds .fp-grid { gap: 56px; align-items: center; }
.page-ccds .ccds-gallery { margin-top: 44px; }

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-full { padding: 40px 0 100px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid__item {
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
}

.gallery-grid__item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: saturate(0.88);
    transition: transform 0.8s var(--ease-smooth), filter 0.8s var(--ease-smooth);
}

.gallery-grid__item:hover img { transform: scale(1.05); filter: saturate(1.05); }

/* ============================================
   CV PAGE
   ============================================ */
.cv-section { padding: 100px 0; }
.cv-section--first { padding-top: 50px; }
.cv-section--alt { background: var(--bg-secondary); }

.cv-block {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 80px;
    align-items: start;
}

.cv-block--img-left {
    grid-template-columns: 0.55fr 1fr;
}

.cv-block__image {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.cv-block--img-right .cv-block__image { margin-top: 60px; }
.cv-block--img-left .cv-block__image { margin-top: 40px; }

.cv-block__image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: saturate(0.88);
    transition: transform 1.2s var(--ease-smooth), filter 0.8s var(--ease-smooth);
}

.cv-block__image:hover img { filter: saturate(1.05); }

.cv-block__image:hover img { transform: scale(1.03); }

.cv-block__content .section-title { margin-bottom: 44px; }

.cv-block__content .timeline { max-width: 100%; }

/* Skills grid */
.cv-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.cv-skill-group {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.cv-skill-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 10px;
}

.cv-skill-group p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    min-height: calc(100vh - var(--nav-height) - 81px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.contact-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 40px;
    position: relative;
    transition: color 0.4s var(--ease-smooth);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 1px;
    background: var(--border);
    transition: background 0.4s var(--ease-smooth);
}

.contact-email:hover { color: var(--accent); }
.contact-email:hover::after { background: var(--accent); }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 1.05rem; font-weight: 300;
    color: var(--text-secondary);
    padding: 14px;
    transition: color 0.4s var(--ease-smooth);
}

a.contact-item:hover { color: var(--accent); }

.contact-item svg {
    flex-shrink: 0; opacity: 0.6;
    transition: opacity 0.4s var(--ease-smooth);
}

a.contact-item:hover svg { opacity: 1; }

/* ============================================
   PHOTO MARQUEE (home)
   ============================================ */
.photo-marquee {
    overflow: hidden;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.photo-marquee__track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 160s linear infinite;
    will-change: transform;
}

.photo-marquee:hover .photo-marquee__track { animation-play-state: paused; }

.photo-marquee img {
    height: 360px;
    width: auto;
    flex-shrink: 0;
    display: block;
    border-radius: 2px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.03);
    cursor: pointer;
    transition: filter 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.photo-marquee img:hover {
    filter: grayscale(0) contrast(1);
    transform: scale(1.03);
}

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

@media (prefers-reduced-motion: reduce) {
    .photo-marquee__track { animation: none; }
    .photo-marquee { overflow-x: auto; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 56px;
}

.footer-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

.footer-role {
    display: block;
    margin-top: 8px;
    font-size: 0.68rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

.footer-heading {
    font-size: 0.66rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 14px;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.04em; font-weight: 300; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 14, 28, 0.94);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.5s var(--ease-smooth);
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-content {
    max-width: 90vw; max-height: 85vh;
    display: flex; align-items: center; justify-content: center;
}

.lightbox-content img {
    max-width: 100%; max-height: 85vh;
    object-fit: contain;
    transform: scale(0.92); opacity: 0;
    transition: all 0.6s var(--ease-smooth);
}

.lightbox.open .lightbox-content img { transform: scale(1); opacity: 1; }

.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    background: none; border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.8rem; font-weight: 200;
    cursor: pointer; padding: 8px 12px; line-height: 1;
    transition: color 0.4s ease; z-index: 210;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 4rem; font-weight: 200;
    cursor: pointer; padding: 20px;
    transition: color 0.4s ease; z-index: 210; line-height: 1;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--white); }

.lightbox-counter {
    position: absolute; bottom: 28px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

body.lightbox-active { overflow: hidden; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.1s var(--ease-smooth), transform 1.1s var(--ease-smooth);
}

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

.reveal-left {
    opacity: 0; transform: translateX(-50px);
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(50px);
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.gallery-preview .reveal:nth-child(2) { transition-delay: 0.08s; }
.gallery-preview .reveal:nth-child(3) { transition-delay: 0.16s; }
.gallery-preview .reveal:nth-child(4) { transition-delay: 0.08s; }
.gallery-preview .reveal:nth-child(5) { transition-delay: 0.16s; }
.gallery-preview .reveal:nth-child(6) { transition-delay: 0.24s; }

.fp-gallery .reveal:nth-child(2) { transition-delay: 0.12s; }
.fp-gallery .reveal:nth-child(3) { transition-delay: 0.24s; }

.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right {
    opacity: 1; transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .section { padding: 110px 0; }
    .about-grid { gap: 50px; }
    .fp-grid { gap: 50px; }
    .cv-block { gap: 50px; }
    .cv-section { padding: 80px 0; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .section { padding: 80px 0; }
    .nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero-content { padding: 0 28px 70px; }
    .scroll-indicator { right: 28px; bottom: 28px; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { aspect-ratio: 4 / 5; }
    .about-details { flex-direction: column; gap: 18px; }

    .gallery-preview { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .fp-grid { grid-template-columns: 1fr; gap: 40px; }
    .fp-gallery { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
    .fp-gallery-item:last-child { display: none; }
    .featured-performance { padding: 40px 0 60px; }

    .portfolio-grid, .portfolio-grid--compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .portfolio-card { aspect-ratio: 3 / 4; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .project-video { margin-bottom: 36px; }
    .ccds-gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
    .page-ccds { height: auto; overflow: visible; display: block; }
    .page-ccds .featured-performance { display: block; padding: 40px 0 60px; }
    .page-ccds .fp-grid { gap: 40px; }

    .cv-block { grid-template-columns: 1fr; gap: 40px; }
    .cv-block--img-left { grid-template-columns: 1fr; }
    .cv-block--img-left .cv-block__image { order: -1; }
    .cv-block--img-right .cv-block__image { margin-top: 0; }
    .cv-block--img-left .cv-block__image { margin-top: 0; }
    .cv-block__image img { aspect-ratio: 16 / 9; }
    .cv-section { padding: 60px 0; }
    .cv-skills { grid-template-columns: 1fr; gap: 24px; }

    .timeline-item { grid-template-columns: 80px 1fr; gap: 20px; padding: 24px 0; }
    .section-title { margin-bottom: 44px; }
    .section-title.sub-title { margin-top: 70px; }

    .lightbox-prev, .lightbox-next { font-size: 2.8rem; padding: 12px; }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }

    .reveal-left, .reveal-right { transform: translateY(30px); }

    .footer-inner { flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 44px; }
    .photo-marquee img { height: 240px; }
    .photo-marquee__track { animation-duration: 110s; }
}

@media (max-width: 480px) {
    .section { padding: 64px 0; }
    .section-title { margin-bottom: 36px; }
    .hero-content { padding: 0 20px 56px; }

    .gallery-preview { grid-template-columns: repeat(2, 1fr); }

    .fp-gallery { grid-template-columns: 1fr; }
    .fp-gallery-item:last-child { display: block; }

    .timeline-item { grid-template-columns: 1fr; gap: 6px; }
    .timeline-year { font-size: 0.72rem; }

    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mobile-menu a { font-size: 2rem; }
    .fp-link { width: 100%; justify-content: center; }
    .about-cv { justify-content: stretch; }
    .cv-button { width: 100%; justify-content: center; }
    .cv-section { padding: 48px 0; }
}
