/* Start custom CSS *//* =====================================================
   ZOOM IN SUCCESS — Editorial Stylesheet
   ===================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --c-bg:      #171212;
    --c-lowest:  #120d0d;
    --c-high:    #3a3333;
    --c-cream:   #ece2c7;
    --c-crimson: #c81024;
    --c-primary: #ffb3ae;

    --font-display: 'Syne', sans-serif;
    --font-body:    'Hanken Grotesk', sans-serif;

    --tracking-display: -0.04em;
    --tracking-headline: -0.03em;
    --tracking-label: 0.08em;
    --tracking-body: -0.005em;

    --leading-display: 0.95;
    --leading-headline: 1.05;
    --leading-body: 1.65;
}

/* ---------- Global Reset / Scroll ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}
::-webkit-scrollbar { display: none; }
html, body { margin: 0; padding: 0; }
body { overscroll-behavior: none; }

main > :first-child { margin-top: 0 !important; }
main > :last-child  { margin-bottom: 0 !important; }

#gallery { scroll-margin-top: 24px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =====================================================
   TYPOGRAPHY REFINEMENTS
   ===================================================== */
.font-display-xl, .font-display-lg {
    font-family: var(--font-display);
    letter-spacing: var(--tracking-display);
    line-height: var(--leading-display);
    font-weight: 800;
}

.font-headline-xl, .font-headline-lg, .font-headline-md {
    font-family: var(--font-display);
    letter-spacing: var(--tracking-headline);
    line-height: var(--leading-headline);
    font-weight: 700;
}

.font-headline-sm {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
    line-height: 1.15;
    font-weight: 600;
}

.font-label-lg, .font-label-md, .font-label-sm {
    font-family: var(--font-body);
    letter-spacing: var(--tracking-label);
    line-height: 1.4;
    font-weight: 600;
}

.font-body-lg, .font-body-md, .font-body-sm {
    font-family: var(--font-body);
    letter-spacing: var(--tracking-body);
    line-height: var(--leading-body);
    font-weight: 400;
}

.leading-relaxed { line-height: 1.7; }
.leading-tight   { line-height: 1.1; }
.leading-none    { line-height: 1; }

/* =====================================================
   KEYFRAMES
   ===================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes imgReveal {
    from { opacity: 0; transform: scale(1.12); filter: blur(6px); }
    to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes pulseDot {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.75); }
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}
@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-8deg) scale(0.9); }
    to   { opacity: 1; transform: rotate(-2deg) scale(1); }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes playRing {
    0%   { box-shadow: 0 0 0 0 rgba(255, 179, 174, 0.55); }
    70%  { box-shadow: 0 0 0 18px rgba(255, 179, 174, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 174, 0); }
}
@keyframes shimmerSweep {
    from { transform: translateX(-150%) skewX(-20deg); }
    to   { transform: translateX(250%)  skewX(-20deg); }
}

/* Marquee Animation (Used for Logo) */
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =====================================================
   ENTRANCE UTILITIES
   ===================================================== */
.anim-fade-up       { animation: fadeUp 0.9s var(--ease-out-expo) both; }
.anim-fade-in       { animation: fadeIn 0.9s ease both; }
.anim-scale-in      { animation: scaleIn 0.9s var(--ease-out-expo) both; }
.anim-rotate-in     { animation: rotateIn 0.9s var(--ease-out-back) both; }

.anim-delay-1 { animation-delay: 0.10s; }
.anim-delay-2 { animation-delay: 0.22s; }
.anim-delay-3 { animation-delay: 0.34s; }
.anim-delay-4 { animation-delay: 0.46s; }
.anim-delay-5 { animation-delay: 0.58s; }
.anim-delay-6 { animation-delay: 0.70s; }

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }

/* =====================================================
   HERO & MARQUEES
   ===================================================== */
.pulse-dot { animation: pulseDot 2s ease-in-out infinite; }
.hero-img-wrap { animation: imgReveal 1.3s var(--ease-out-expo) 0.35s both; }
.hero-frame-accent { animation: scaleIn 0.9s var(--ease-out-expo) 0.55s both; }
.hero-badge-float { animation: floatY 6s ease-in-out infinite 0.8s; }
.hero-badge-float-2 { animation: floatY 5s ease-in-out infinite 1.2s; }
.hero-tape { animation: rotateIn 0.9s var(--ease-out-back) 0.9s both; }
.bounce-down { animation: bounceDown 2s ease-in-out infinite; }

.chip {
    transition: transform 0.3s var(--ease-out-back), background-color 0.3s ease;
}
.chip:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.14);
}

/* Scrolling Logo Marquee */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: var(--c-crimson);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.marquee-content {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marqueeScroll 20s linear infinite;
}
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* =====================================================
   BUTTONS & LINKS
   ===================================================== */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none;
    z-index: 1;
}
.btn-shimmer:hover::after {
    animation: shimmerSweep 0.9s var(--ease-out-expo);
}

.arrow-link .arrow-icon {
    display: inline-block;
    transition: transform 0.3s var(--ease-out-back);
}
.arrow-link:hover .arrow-icon {
    transform: translateX(5px);
}

/* =====================================================
   PORTFOLIO CARDS
   ===================================================== */
.project-item {
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
    will-change: transform;
}
.project-item:hover {
    transform: translateY(-6px);
}

.card-arrow {
    transition: transform 0.45s var(--ease-out-back), opacity 0.35s ease;
}
.project-item:hover .card-arrow {
    transform: translateY(0);
    opacity: 1;
}

.project-item img {
    transition: transform 0.8s var(--ease-out-expo), filter 0.6s ease;
}

/* =====================================================
   FILTER BUTTONS
   ===================================================== */
.filter-btn {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s var(--ease-out-back);
}
.filter-btn:active { transform: scale(0.95); }

/* =====================================================
   PLAY BUTTON — Pulsing ring
   ===================================================== */
.play-pulse {
    position: relative;
    border-radius: 0;
}
.play-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    animation: playRing 2.4s ease-out infinite;
    pointer-events: none;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-backdrop { animation: backdropIn 0.3s ease both; }
.modal-panel { animation: modalIn 0.5s var(--ease-out-back) both; }

/* =====================================================
   ACCESSIBILITY: Reduced Motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-badge-float, .hero-badge-float-2, .bounce-down, .pulse-dot, .play-pulse::before, 
    .marquee-content {
        animation: none !important;
    }
}/* End custom CSS */