/* ═══════════════════════════════════════════════════════════════
   VESTADZ STUDIO PAGE — Scoped Styles
   Inspired by Alien Studio / Adapted to VESTADZ branding
   ═══════════════════════════════════════════════════════════════ */

/* ───── Design Tokens (Studio-scoped) ───── */
.studio-page {
    --st-black: #0a0a0a;
    --st-white: #f0ede8;
    --st-accent: #ae0079;
    --st-accent-hover: #c7008f;
    --st-mid: #141414;
    --st-border: rgba(240, 237, 232, 0.10);
    --st-text-muted: rgba(240, 237, 232, 0.45);
    --st-font-display: 'Bebas Neue', 'Inter', sans-serif;
    --st-font-body: 'Inter', sans-serif;
    --st-font-mono: 'JetBrains Mono', 'Space Mono', monospace;
    --st-pad-x: clamp(20px, 4vw, 60px);
    background-color: var(--st-black);
    color: var(--st-white);
    font-family: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 1: HERO — with video-clipped text
   ═══════════════════════════════════════════════════════════════ */
.st-hero {
    position: relative;
    min-height: 70vh;
    /* Changed from 100vh to naturally elevate contents slightly above center */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14rem var(--st-pad-x) 6rem;
    /* Standardized with other pages' 12-14rem padding */
    overflow: hidden;
}

.st-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(174, 0, 121, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Hero Title: "Vestadz" solid + "studio" with video mask ─── */
.st-hero-title {
    position: relative;
    z-index: 1;
}

.st-hero-title h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3.5rem, 12vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 clamp(12px, 2vw, 30px);
}

.st-title-solid {
    color: var(--st-white);
    opacity: 0;
    /* Prevent FOUC */
}

.st-title-studio {
    color: #ae0079;
    font-style: italic;
    opacity: 0;
    /* Prevent FOUC */
}

/* ─── Hero Bottom: Desc left + Image Reel right ─── */
.st-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    gap: 2rem;
    opacity: 0;
    /* Prevent FOUC */
}

/* ─── Hero Divider ─── */
.st-hero-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-top: clamp(40px, 6vw, 60px);
    position: relative;
    z-index: 1;
    opacity: 0;
    /* Prevent FOUC */
}

.st-hero-desc {
    max-width: 420px;
}

.st-hero-desc p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--st-text-muted);
}

/* Right side: image reel + tagline */
.st-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex-shrink: 0;
}

/* Rapid-cycling image reel */
.st-hero-reel {
    width: clamp(180px, 18vw, 260px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

.st-reel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.st-reel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: st-reel-cycle 4s infinite;
}

/* Stagger each image's animation start */
.st-reel-images img:nth-child(1) {
    animation-delay: 0s;
}

.st-reel-images img:nth-child(2) {
    animation-delay: 0.8s;
}

.st-reel-images img:nth-child(3) {
    animation-delay: 1.6s;
}

.st-reel-images img:nth-child(4) {
    animation-delay: 2.4s;
}

.st-reel-images img:nth-child(5) {
    animation-delay: 3.2s;
}

@keyframes st-reel-cycle {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    22% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Tagline below the reel */
.st-hero-tagline {
    max-width: clamp(240px, 22vw, 340px);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--st-text-muted);
    text-align: left;
}

.st-hero-scroll {
    position: absolute;
    bottom: 40px;
    right: var(--st-pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.st-scroll-text {
    font-family: var(--st-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--st-text-muted);
    writing-mode: vertical-rl;
}

.st-scroll-line {
    width: 1px;
    height: 50px;
    background: var(--st-accent);
    animation: st-scroll-pulse 2s ease-in-out infinite;
}

@keyframes st-scroll-pulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 2: FULL-WIDTH IMAGE BAND
   ═══════════════════════════════════════════════════════════════ */
.st-image-band {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.st-image-band-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.st-band-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.st-image-band-wrapper:hover .st-band-img {
    transform: scale(0.97);
}

.st-band-gradient-top,
.st-band-gradient-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

.st-band-gradient-top {
    top: 0;
    background: linear-gradient(to bottom, var(--st-black), transparent);
}

.st-band-gradient-bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--st-black), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 3: WORKS / PORTFOLIO
   ═══════════════════════════════════════════════════════════════ */
.st-works {
    padding: clamp(60px, 10vw, 150px) var(--st-pad-x);
}

.st-works-header {
    margin-bottom: clamp(40px, 6vw, 80px);
}

.st-works-header.panoramic-header {
    margin-bottom: clamp(60px, 8vw, 100px);
    width: 100%;
    overflow: hidden;
    cursor: ew-resize;
}

/* ─── Image Comparison Slider ─── */
.img-comparison {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    height: auto;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.img-comparison-under {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-comparison-over {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.img-comparison-over img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider line */
.img-comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10;
    cursor: ew-resize;
    transition: background 0.2s ease;
}

.img-comparison:hover .img-comparison-slider {
    background: rgba(255, 255, 255, 0.55);
}

/* Handle circle */
.img-comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #1a1a1a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.img-comparison:hover .img-comparison-handle,
.img-comparison.is-dragging .img-comparison-handle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 5px rgba(255, 255, 255, 0.15);
}

.img-comparison-handle svg {
    flex-shrink: 0;
}

/* Override label colors for dark studio page */
.studio-page .label-number {
    color: var(--st-accent);
    font-family: 'Inter', sans-serif;
}

.studio-page .label-text {
    color: var(--st-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* ─── Desktop: Alien Studio "Playground" Scattered Gallery ─── */
.st-works-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 40px 0 0;
}

/* Each gallery row holds 2 items, flex-row with spacing */
.st-gallery-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Individual gallery item */
.st-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: var(--st-white);
    position: relative;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.st-gallery-item:hover {
    opacity: 0.85;
}

/* Number label (01, 02, etc.) */
.st-gallery-num {
    font-family: var(--st-font-mono);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--st-text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

/* Media container */
.st-gallery-media {
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    line-height: 0;
}

.st-gallery-media img,
.st-gallery-media video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.st-gallery-item:hover .st-gallery-media img,
.st-gallery-item:hover .st-gallery-media video {
    transform: scale(1.03);
}

/* Project name below image */
.st-gallery-name {
    font-family: var(--st-font-mono);
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--st-white);
    margin-top: 14px;
    display: block;
}

/* ─── Positional classes for desktop scatter ─── */

/* Default item width (now 2 columns large) */
.st-gallery-item {
    width: 48%;
}

/* Wide items — same width but can be tweaked if needed */
.st-gallery-item:has(.st-media-wide) {
    width: 48%;
}

/* Small items — made larger */
.st-gallery-item:has(.st-media-small) {
    width: 40%;
}

/* Position classes adjusted for new large grid */

/* Retain vertical staggering slightly so it's not totally rigid */
.st-gpos-push-down {
    margin-top: clamp(40px, 6vw, 120px);
}

/* Old classes — hidden since HTML changed */
.st-work-meta,
.st-work-preview {
    display: none;
}



/* ═══════════════════════════════════════════════════════════════
   SECTION 5: BRAND TICKER / MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.st-ticker {
    background: var(--st-mid);
    border-top: 1px solid var(--st-border);
    border-bottom: 1px solid var(--st-border);
    padding: clamp(16px, 2vw, 24px) 0;
    overflow: hidden;
}

.st-ticker-track {
    display: flex;
    width: max-content;
    animation: st-marquee 30s linear infinite;
}

.st-ticker:hover .st-ticker-track {
    animation-play-state: paused;
}

.st-ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.st-ticker-content span {
    font-family: var(--st-font-mono);
    font-size: clamp(11px, 1.3vw, 14px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--st-white);
    white-space: nowrap;
    padding: 0 clamp(16px, 2vw, 28px);
}

.st-ticker-sep {
    color: var(--st-accent) !important;
    font-size: clamp(8px, 1vw, 12px) !important;
    padding: 0 4px !important;
}

@keyframes st-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 6: SHOWREEL / VIDEO
   ═══════════════════════════════════════════════════════════════ */
.st-showreel {
    padding: clamp(60px, 10vw, 150px) var(--st-pad-x);
}

.st-showreel-header {
    margin-bottom: clamp(24px, 3vw, 40px);
}

.st-showreel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--st-mid);
    overflow: hidden;
    border-radius: 4px;
}

.st-showreel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.st-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(80px, 10vw, 150px);
    height: clamp(80px, 10vw, 150px);
    border-radius: 50%;
    border: 2px solid var(--st-white);
    background: rgba(10, 10, 10, 0.4);
    color: var(--st-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    cursor: pointer;
    pointer-events: auto;
}

.st-play-btn::before {
    display: none !important;
}

.st-play-btn:hover {
    background: var(--st-accent);
    border-color: var(--st-accent);
    transform: translate(-50%, -50%) scale(1.08);
}

.st-play-btn svg {
    width: clamp(20px, 3vw, 28px);
    height: clamp(20px, 3vw, 28px);
}

.st-play-btn.playing {
    opacity: 0;
    pointer-events: auto;
}

.st-showreel-container:hover .st-play-btn.playing {
    opacity: 1;
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 7: CTA
   ═══════════════════════════════════════════════════════════════ */
.st-cta {
    text-align: center;
    padding: clamp(80px, 14vw, 200px) var(--st-pad-x);
    background: #ae0079;
    color: #fff;
}

.st-cta-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(10px, 1.1vw, 12px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: clamp(20px, 3vw, 40px);
}

.st-cta-heading {
    font-family: var(--st-font-display);
    font-size: clamp(3rem, 10vw, 10rem);
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: clamp(24px, 4vw, 50px);
}

.st-cta-highlight {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.st-cta-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background-color: #fff;
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 0;
}

.st-cta-email:hover {
    transform: translateY(-3px);
    color: #0a0a0a;
    background-color: rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: TABLET (768px – 1279px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1279px) {
    .st-work-preview {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: MOBILE (below 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .studio-page {
        --st-pad-x: 20px;
    }

    /* Hero */
    .st-hero {
        padding-top: 9rem;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .st-hero-divider {
        display: none !important;
    }

    .st-hero-title h1 {
        font-size: clamp(1.8rem, 10vw, 3.5rem);
        flex-direction: column;
        gap: 0;
    }

    .st-title-studio {
        font-size: clamp(4.5rem, 24vw, 8rem);
        line-height: 0.9;
        padding-right: 0.15em;
    }

    .st-hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .st-hero-right {
        width: 100%;
    }

    .st-hero-reel {
        width: 60%;
    }

    .st-hero-tagline {
        max-width: 100%;
    }

    .st-hero-scroll {
        display: none;
    }

    /* Image Band */
    .st-image-band-wrapper {
        aspect-ratio: 4 / 3;
    }

    .st-band-gradient-top {
        top: -50px;
        height: 170px;
        background: linear-gradient(to bottom, var(--st-black) 50px, transparent);
    }

    /* ─── Mobile Works: Single column gallery ─── */
    .st-works-header {
        margin-bottom: 24px;
    }

    .img-comparison {
        aspect-ratio: 2 / 1;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .img-comparison-handle {
        width: 36px;
        height: 36px;
    }

    .img-comparison-handle svg {
        width: 16px;
        height: 16px;
    }

    .st-works-gallery {
        gap: 0;
        padding-top: 0;
    }

    .st-gallery-row {
        flex-direction: column;
        gap: 0;
    }

    .st-gallery-item {
        width: 100% !important;
        flex-shrink: 1;
        padding: 0 0 clamp(24px, 5vw, 40px) 0;
        border-bottom: 1px solid var(--st-border);
    }

    /* Reset scatter positioning on mobile */
    .st-gpos-push-down {
        margin-top: 0;
    }

    .st-gallery-num {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .st-gallery-media {
        aspect-ratio: 4 / 3;
    }

    .st-gallery-media img,
    .st-gallery-media video {
        height: 100%;
        object-fit: cover;
    }

    .st-gallery-name {
        font-family: var(--st-font-display);
        font-size: clamp(1.3rem, 6vw, 2rem);
        font-weight: 700;
        letter-spacing: 0.02em;
        margin-top: 12px;
    }

    /* Ticker */
    .st-ticker-track {
        animation-duration: 20s;
    }

    /* Showreel */
    .st-showreel-video {
        width: 100%;
    }

    .st-showreel-container {
        border-radius: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PREVENT HORIZONTAL OVERFLOW
   ═══════════════════════════════════════════════════════════════ */
.studio-page {
    overflow-x: hidden;
}

.studio-page section {
    overflow-x: hidden;
}